@ashishpandeyone/cdk-lambda-web-function 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +81 -107
- package/.jsii.tabl.json +1 -1
- package/API.md +21 -18
- package/README.md +38 -3
- package/assets/web-function-provider/index.js +23 -23
- package/lib/nodejs-web-function.js +1 -1
- package/lib/private/code-bucket.js +3 -1
- package/lib/private/nag.d.ts +19 -0
- package/lib/private/nag.js +139 -0
- package/lib/private/provider-protocol.d.ts +15 -0
- package/lib/private/provider-protocol.js +7 -2
- package/lib/private/resource-policy-statements.d.ts +23 -0
- package/lib/private/resource-policy-statements.js +112 -0
- package/lib/private/traffic-shift.js +10 -6
- package/lib/web-function-deployment.js +1 -1
- package/lib/web-function-endpoint.js +1 -1
- package/lib/web-function-grants.d.ts +3 -3
- package/lib/web-function-grants.js +8 -9
- package/lib/web-function-origin.d.ts +1 -1
- package/lib/web-function-origin.js +7 -9
- package/lib/web-function-revision.js +1 -1
- package/lib/web-function.d.ts +25 -18
- package/lib/web-function.js +62 -49
- package/package.json +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var tAe=Object.create;var bh=Object.defineProperty;var rAe=Object.getOwnPropertyDescriptor;var nAe=Object.getOwnPropertyNames;var oAe=Object.getPrototypeOf,sAe=Object.prototype.hasOwnProperty;var g=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var st=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ct=(t,e)=>{for(var r in e)bh(t,r,{get:e[r],enumerable:!0})},B3=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of nAe(e))!sAe.call(t,o)&&o!==r&&bh(t,o,{get:()=>e[o],enumerable:!(n=rAe(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?tAe(oAe(t)):{},B3(e||!t||!t.__esModule?bh(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>B3(bh({},"__esModule",{value:!0}),t);var gp,us,U3=g(()=>{gp={warningEmitted:!1},us=t=>{if(t&&!gp.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){gp.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(gp.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
2
|
versions published after the first week of January 2027
|
|
3
3
|
will require node >=${r}. You are running node ${t}.
|
|
4
4
|
|
|
5
5
|
To continue receiving updates to AWS services, bug fixes,
|
|
6
6
|
and security updates please upgrade to node >=${r}.
|
|
7
7
|
|
|
8
|
-
More information can be found at: https://a.co/c895JFp`))}}});var Kbe,Qbe,N3,F3=g(()=>{Kbe=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),Qbe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},N3=t=>({applyToStack:e=>{e.add(Kbe(),Qbe)}})});function Yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var B3=g(()=>{});var U3,ND,G3=g(()=>{U3=require("node:stream"),ND=t=>t?.body instanceof U3.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var gc,Ji,Xi,q3,H3,bh=g(()=>{gc=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ji=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Xi=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>q3[_.step]-q3[y.step]||H3[_.priority||"normal"]-H3[y.priority||"normal"]),s=m=>{let y=!1,_=C=>{let A=gc(C.name,C.aliases);if(A.includes(m)){y=!0;for(let x of A)n.delete(x);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=C=>{if(C.middleware===m){y=!0;for(let A of gc(C.name,C.aliases))n.delete(A);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],C={};return t.forEach(x=>{let T={...x,before:[],after:[]};for(let I of gc(T.name,T.aliases))C[I]=T;y.push(T)}),e.forEach(x=>{let T={...x,before:[],after:[]};for(let I of gc(T.name,T.aliases))C[I]=T;_.push(T)}),_.forEach(x=>{if(x.toMiddleware){let T=C[x.toMiddleware];if(T===void 0){if(m)return;throw new Error(`${x.toMiddleware} is not found when adding ${Ji(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&T.after.push(x),x.relation==="before"&&T.before.push(x)}}),o(y).map(c).reduce((x,T)=>(x.push(...T),x),[])},f={add:(m,y={})=>{let{name:_,override:C,aliases:A}=y,x={step:"initialize",priority:"normal",middleware:m,...y},T=gc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=t.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=t[q];if(H.step!==x.step||x.priority!==H.priority)throw new Error(`"${Ji(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${Ji(_,A)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(q,1)}}for(let I of T)n.add(I)}t.push(x)},addRelativeTo:(m,y)=>{let{name:_,override:C,aliases:A}=y,x={middleware:m,...y},T=gc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=e.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=e[q];if(H.toMiddleware!==x.toMiddleware||H.relation!==x.relation)throw new Error(`"${Ji(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${Ji(_,A)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(q,1)}}for(let I of T)n.add(I)}e.push(x)},clone:()=>a(Xi()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=C=>{let{tags:A,name:x,aliases:T}=C;if(A&&A.includes(m)){let I=gc(x,T);for(let q of I)n.delete(q);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(Xi());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ji(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(C=>C.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},q3={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},H3={high:3,normal:2,low:1}});var Eo=st(yo=>{var FD;(function(t){t.HEADER="header",t.QUERY="query"})(FD||(FD={}));var BD;(function(t){t.HEADER="header",t.QUERY="query"})(BD||(BD={}));var UD;(function(t){t.HTTP="http",t.HTTPS="https"})(UD||(UD={}));var gp;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(gp||(gp={}));var Ybe=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>gp.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>gp.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},Jbe=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Xbe=t=>Ybe(t),Zbe=t=>Jbe(t),GD;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(GD||(GD={}));var eAe="__smithy_context",qD;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(qD||(qD={}));var HD;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(HD||(HD={}));yo.AlgorithmId=gp;yo.EndpointURLScheme=UD;yo.FieldPosition=GD;yo.HttpApiKeyAuthLocation=BD;yo.HttpAuthLocation=FD;yo.IniSectionType=qD;yo.RequestHandlerProtocol=HD;yo.SMITHY_CONTEXT_KEY=eAe;yo.getDefaultClientConfiguration=Xbe;yo.resolveDefaultRuntimeConfig=Zbe});var jD,Le,j3=g(()=>{jD=Ie(Eo()),Le=t=>t[jD.SMITHY_CONTEXT_KEY]||(t[jD.SMITHY_CONTEXT_KEY]={})});function W(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var zD=g(()=>{});function tAe(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var re,z3=g(()=>{re=class t{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=tAe(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var ft,V3=g(()=>{ft=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var rAe,_o,W3=g(()=>{rAe=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),_o=(t,e=!1)=>{if(!e)return rAe.test(t);let r=t.split(".");for(let n of r)if(!_o(n))return!1;return!0}});function hp(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var K3=g(()=>{});var we,Q3=g(()=>{we=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Sp(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var VD=g(()=>{});var Cr,WD=g(()=>{VD();Cr=t=>{if(typeof t=="string")return Cr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=Sp(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var Tn,Y3=g(()=>{zD();WD();Tn=t=>{if(typeof t=="object"){if("url"in t){let e=Cr(t.url);if(t.headers){e.headers={};for(let r in t.headers)W(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Cr(t)}});var oe=g(()=>{j3();zD();z3();V3();W3();K3();Q3();VD();WD();Y3()});var J3,X3=g(()=>{J3=t=>()=>{throw new Error(t)}});var Z3,eF=g(()=>{Z3=t=>()=>Promise.reject(t)});var Du,KD=g(()=>{Du=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var tF,rF=g(()=>{tF=t=>new Promise(e=>setTimeout(e,t*1e3))});var Ah,vn,nF,xh=g(()=>{KD();Ah={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(vn||(vn={}));nF=t=>{if(t.state===vn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Du())}`);throw e.name="AbortError",e}else if(t.state===vn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Du())}`);throw e.name="TimeoutError",e}else if(t.state!==vn.SUCCESS)throw new Error(`${JSON.stringify(t,Du())}`);return t}});var oF,nAe,oAe,sAe,iAe,sF=g(()=>{KD();rF();xh();oF=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,C=!1;for(;;){if(m>0){let T=sAe(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let I="AbortController signal aborted.";return c[I]|=0,c[I]+=1,{state:vn.ABORTED,observedResponses:c}}if(Date.now()+T>y)return{state:vn.TIMEOUT,observedResponses:c};await tF(T/1e3)}let{state:A,reason:x}=await a(o,i);if(x){let T=oAe(x);c[T]|=0,c[T]+=1}if(A!==vn.RETRY)return{state:A,reason:x,final:x,observedResponses:c};m+=1,!C&&Date.now()>=_&&(nAe(c,o),C=!0)}},nAe=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},oAe=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Du())??"Unknown")},sAe=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=iAe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},iAe=(t,e)=>t+Math.random()*(e-t)});var iF,aF=g(()=>{iF=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var cF,uF,lF=g(()=>{sF();aF();xh();cF=t=>{let e,r=new Promise(n=>{e=()=>n({state:vn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},uF=async(t,e,r)=>{let n={...Ah,...t};iF(n);let o=[oF(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=cF(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=cF(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Lr,dF=g(()=>{bh();Lr=class{config;middlewareStack=Xi();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var mn,QD=g(()=>{mn=t=>typeof t=="function"?t():t});var Iu,Th=g(()=>{Iu=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var pF,YD,fF=g(()=>{oe();Th();pF=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Le(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(Iu(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
|
|
9
|
-
`+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ft.isInstance(o)){let{headers:_={},statusCode:C}=o,A=Object.entries(_);m.$metadata={httpStatusCode:C,requestId:YD(/^x-[\w-]+-request-?id$/,A),extendedRequestId:YD(/^x-[\w-]+-id-2$/,A),cfId:YD(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw m}},YD=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var mF,gF=g(()=>{oe();Th();mF=t=>(e,r)=>async n=>{let{operationSchema:o}=Le(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>Tn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(Iu(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function ls(t){return{applyToStack:e=>{e.add(mF(t),XD),e.add(pF(t),JD),t.protocol.setSerdeContext(t)}}}var JD,XD,hF=g(()=>{fF();gF();JD={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},XD={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mt,Zi=g(()=>{mt=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var yp,SF,yF=g(()=>{Zi();yp=class t extends mt{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},SF=(t,e,r,n)=>mt.assign(new yp,{name:e,namespace:t,traits:r,valueSchema:n})});var Ep,EF,_F=g(()=>{Zi();Ep=class t extends mt{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},EF=(t,e,r,n,o)=>mt.assign(new Ep,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var _p,RF,CF=g(()=>{Zi();_p=class t extends mt{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},RF=(t,e,r,n,o)=>mt.assign(new _p,{name:e,namespace:t,traits:r,input:n,output:o})});var hc,bF,ZD=g(()=>{Zi();hc=class t extends mt{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},bF=(t,e,r,n,o)=>mt.assign(new hc,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var Rp,AF,xF=g(()=>{Zi();ZD();Rp=class t extends hc{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},AF=(t,e,r,n,o,s)=>mt.assign(new Rp,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function Ro(t){if(typeof t=="object")return t;if(t=t|0,Cp[t])return Cp[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Cp[t]=e}var Cp,eI=g(()=>{Cp=[]});function Ap(t,e){if(t instanceof B)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=B;return new r(t,e)}var bp,xp,Tp,B,tI,rI,TF=g(()=>{QD();eI();bp={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},xp=[],Tp={},B=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;tI(o);)n.push(o[1]),o=o[0],s=mn(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=mn(s),rI(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(xp[e])return xp[e]}else if(typeof e=="string"){if(Tp[e])return Tp[e]}else if(r&&e[bp.ns])return e[bp.ns];let n=mn(e);if(n instanceof t)return n;if(tI(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),Ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[bp.ns]=o:typeof n=="string"?Tp[n]=o:typeof n=="number"?xp[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ro(this.memberTraits)}getOwnTraits(){return Ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return Ap([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return Ap([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return Ap(tI(o)?o:[o,0],e)}if(this.isDocumentSchema())return Ap([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[bp.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=Ap([e[5][o],0],s);yield n[o]=[s,i]}e[bp.it]=n}};tI=t=>Array.isArray(t)&&t.length===2,rI=t=>Array.isArray(t)&&t.length>=5});var wu,vF,DF,IF=g(()=>{Zi();wu=class t extends mt{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},vF=(t,e,r,n)=>mt.assign(new wu,{name:e,namespace:t,traits:n,schemaRef:r}),DF=(t,e,r,n)=>mt.assign(new wu,{name:e,namespace:t,traits:r,schemaRef:n})});var wF,PF=g(()=>{wF={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Fe,OF=g(()=>{Fe=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var vp={};Ct(vp,{ErrorSchema:()=>Rp,ListSchema:()=>yp,MapSchema:()=>Ep,NormalizedSchema:()=>B,OperationSchema:()=>_p,SCHEMA:()=>wF,Schema:()=>mt,SimpleSchema:()=>wu,StructureSchema:()=>hc,TypeRegistry:()=>Fe,deref:()=>mn,deserializerMiddlewareOption:()=>JD,error:()=>AF,getSchemaSerdePlugin:()=>ls,isStaticSchema:()=>rI,list:()=>SF,map:()=>EF,op:()=>RF,operation:()=>Iu,serializerMiddlewareOption:()=>XD,sim:()=>vF,simAdapter:()=>DF,simpleSchemaCacheN:()=>xp,simpleSchemaCacheS:()=>Tp,struct:()=>bF,traitsCache:()=>Cp,translateTraits:()=>Ro});var ae=g(()=>{QD();hF();yF();_F();CF();Th();xF();TF();Zi();IF();ZD();PF();eI();OF()});function Pu(t,e){if(e==null)return e;let r=B.of(t);if(r.getMergedTraits().sensitive)return nI;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return nI}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return nI}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Pu(i,n[s]));return o}return e}var nI,oI=g(()=>{ae();nI="***SensitiveInformation***"});var sI,Xr,iI,aI=g(()=>{sI=Ie(Eo());bh();oI();Xr=class{middlewareStack=Xi();schema;static classBuilder(){return new iI}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let I of o.bind(this)(m,e,r,n))this.middlewareStack.use(I);let y=e.concat(this.middlewareStack),{logger:_}=r,C=f[sI.SMITHY_CONTEXT_KEY],A={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[sI.SMITHY_CONTEXT_KEY]:{...C,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:x}=r,T=n??{};return T.metricsRecorder&&(T={...T},delete T.metricsRecorder),u.eventStream&&(T={isEventStream:!0,...T}),y.resolve(I=>x.handle(I.request,T),A)}},iI=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends Xr{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Pu.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Pu.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var $F,kF=g(()=>{$F="***SensitiveInformation***"});var ds,MF=g(()=>{ds=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var jn,Sc,cI=g(()=>{jn=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},Sc=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var uI,LF,aAe,NF=g(()=>{cI();uI=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=aAe(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw Sc(i,e)},LF=t=>({output:e,parsedBody:r,errorCode:n})=>{uI({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},aAe=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var ps,FF=g(()=>{ps=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var BF,fs,UF=g(()=>{BF=!1,fs=t=>{t&&!BF&&parseInt(t.substring(1,t.indexOf(".")))<16&&(BF=!0)}});var yc,GF,vh,Dh,lI=g(()=>{oe();yc=Ie(Eo()),GF=Object.values(yc.AlgorithmId),vh=t=>{let e=[];for(let r in yc.AlgorithmId){if(!W(yc.AlgorithmId,r))continue;let n=yc.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();GF.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},Dh=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();GF.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var Ih,wh,dI=g(()=>{Ih=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),wh=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var Co,qF,ms,HF=g(()=>{lI();dI();Co=t=>Object.assign(vh(t),Ih(t)),qF=Co,ms=t=>Object.assign(Dh(t),wh(t))});var jF,zF=g(()=>{jF=t=>Array.isArray(t)?t:[t]});var Ec,VF=g(()=>{oe();Ec=t=>{let e="#text";for(let r in t)W(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=Ec(t[r])));return t}});var WF,KF=g(()=>{WF=t=>t!=null});var Nr,QF=g(()=>{Nr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function pI(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,cAe(n,o,s);s=e}for(let i in s)if(W(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}XF(n,null,s,i)}return n}var YF,JF,cAe,XF,uAe,lAe,ZF=g(()=>{oe();YF=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},JF=(t,e)=>{let r={};for(let n in e)W(e,n)&&XF(r,t,e,n);return r},cAe=(t,e,r)=>pI(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),XF=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=uAe,c=lAe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},uAe=t=>t!=null,lAe=t=>t});var eB,tB,rB=g(()=>{eB=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},tB=t=>t.toISOString().replace(".000Z","Z")});var Ph,nB=g(()=>{oe();Ph=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Ph);if(typeof t=="object"){let e={};for(let r in t)W(t,r)&&t[r]!=null&&(e[r]=Ph(t[r]));return e}return t}});function gs(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Xr.classBuilder().ep(f).m(function(m,y,_,C){let A=i.call(this,m,y,_,C);return A.unshift(n(_,m.getEndpointParameterInstructions())),A}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var oB=g(()=>{aI()});var bo={};Ct(bo,{AlgorithmId:()=>yc.AlgorithmId,Client:()=>Lr,Command:()=>Xr,NoOpLogger:()=>Nr,SENSITIVE_STRING:()=>$F,ServiceException:()=>jn,WaiterState:()=>vn,_json:()=>Ph,checkExceptions:()=>nF,constructStack:()=>Xi,convertMap:()=>YF,createAggregatedClient:()=>ds,createWaiter:()=>uF,decorateServiceException:()=>Sc,emitWarningIfUnsupportedVersion:()=>fs,getArrayIfSingleItem:()=>jF,getChecksumConfiguration:()=>vh,getDefaultClientConfiguration:()=>qF,getDefaultExtensionConfiguration:()=>Co,getRetryConfiguration:()=>Ih,getSmithyContext:()=>Le,getValueFromTextNode:()=>Ec,invalidFunction:()=>J3,invalidProvider:()=>Z3,isSerializableHeaderValue:()=>WF,loadConfigsForDefaultMode:()=>ps,makeBuilder:()=>gs,map:()=>pI,normalizeProvider:()=>we,resolveChecksumRuntimeConfig:()=>Dh,resolveDefaultRuntimeConfig:()=>ms,resolveRetryRuntimeConfig:()=>wh,schemaLogFilter:()=>Pu,serializeDateTime:()=>tB,serializeFloat:()=>eB,take:()=>JF,throwDefaultError:()=>uI,waiterServiceDefaults:()=>Ah,withBaseException:()=>LF});var J=g(()=>{bh();oe();oe();X3();eF();lF();xh();dF();aI();kF();MF();NF();FF();UF();cI();HF();lI();dI();zF();VF();KF();QF();ZF();oI();rB();nB();oB()});var Ou,fI=g(()=>{Ou=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var Ao,ea,ta=g(()=>{fI();Ao=(t,e=0,r=t.byteLength-e)=>{if(!Ou(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},ea=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var dAe,Xe,sB=g(()=>{ta();dAe=/^[A-Za-z0-9+/]*={0,2}$/,Xe=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!dAe.exec(t))throw new TypeError("Invalid base64 string.");let e=ea(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var qt,Oh=g(()=>{ta();qt=t=>{let e=ea(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var De,mI=g(()=>{ta();Oh();De=t=>{let e;if(typeof t=="string"?e=qt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ao(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function iB(t,e,r,n){return class $h extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?$h.mutate(n(s)):$h.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,$h.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var aB=g(()=>{});var ze,cB=g(()=>{ta();ze=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ao(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function uB(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Fr[e[0]]+Fr[e[1]]+Fr[e[2]]+Fr[e[3]]+"-"+Fr[e[4]]+Fr[e[5]]+"-"+Fr[e[6]]+Fr[e[7]]+"-"+Fr[e[8]]+Fr[e[9]]+"-"+Fr[e[10]]+Fr[e[11]]+Fr[e[12]]+Fr[e[13]]+Fr[e[14]]+Fr[e[15]]}}var Fr,lB=g(()=>{Fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var dB,pB=g(()=>{dB=(t,e,r=n=>n)=>t});var fB,mB,$u,pAe,Dp,ku,gB,kh,Mh,Lh,gI,fAe,hB,hI,SB,Fh,Ip,yB,Bh,mAe,Lu,Uh,EB,_B,RB,CB,SI,bB,AB,ra,Gh,Nh,Mu,yI=g(()=>{oe();fB=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},mB=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Mu.warn(Nh(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Mu.warn(Nh(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},$u=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Mu.warn(Nh(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},pAe=Math.ceil(2**127*(2-2**-23)),Dp=t=>{let e=$u(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>pAe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},ku=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},gB=ku,kh=t=>gI(t,32),Mh=t=>gI(t,16),Lh=t=>gI(t,8),gI=(t,e)=>{let r=ku(t);if(r!==void 0&&fAe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},fAe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},hB=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},hI=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},SB=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Mu.warn(Nh(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Fh=t=>{if(t==null)return;let e=hI(t),r=[];for(let n in e)W(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},Ip=t=>$u(typeof t=="string"?Lu(t):t),yB=Ip,Bh=t=>Dp(typeof t=="string"?Lu(t):t),mAe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Lu=t=>{let e=t.match(mAe);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Uh=t=>typeof t=="string"?CB(t):$u(t),EB=Uh,_B=Uh,RB=t=>typeof t=="string"?CB(t):Dp(t),CB=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},SI=t=>ku(typeof t=="string"?Lu(t):t),bB=SI,AB=t=>kh(typeof t=="string"?Lu(t):t),ra=t=>Mh(typeof t=="string"?Lu(t):t),Gh=t=>Lh(typeof t=="string"?Lu(t):t),Nh=t=>String(new TypeError(t).stack||t).split(`
|
|
8
|
+
More information can be found at: https://a.co/c895JFp`))}}});var iAe,aAe,G3,q3=g(()=>{iAe=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),aAe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},G3=t=>({applyToStack:e=>{e.add(iAe(),aAe)}})});function Yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var H3=g(()=>{});var j3,GD,z3=g(()=>{j3=require("node:stream"),GD=t=>t?.body instanceof j3.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var hc,Ji,Xi,V3,W3,Ah=g(()=>{hc=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ji=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Xi=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>V3[_.step]-V3[y.step]||W3[_.priority||"normal"]-W3[y.priority||"normal"]),s=m=>{let y=!1,_=C=>{let A=hc(C.name,C.aliases);if(A.includes(m)){y=!0;for(let x of A)n.delete(x);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=C=>{if(C.middleware===m){y=!0;for(let A of hc(C.name,C.aliases))n.delete(A);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],C={};return t.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;y.push(T)}),e.forEach(x=>{let T={...x,before:[],after:[]};for(let I of hc(T.name,T.aliases))C[I]=T;_.push(T)}),_.forEach(x=>{if(x.toMiddleware){let T=C[x.toMiddleware];if(T===void 0){if(m)return;throw new Error(`${x.toMiddleware} is not found when adding ${Ji(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&T.after.push(x),x.relation==="before"&&T.before.push(x)}}),o(y).map(c).reduce((x,T)=>(x.push(...T),x),[])},f={add:(m,y={})=>{let{name:_,override:C,aliases:A}=y,x={step:"initialize",priority:"normal",middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=t.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=t[q];if(H.step!==x.step||x.priority!==H.priority)throw new Error(`"${Ji(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${Ji(_,A)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(q,1)}}for(let I of T)n.add(I)}t.push(x)},addRelativeTo:(m,y)=>{let{name:_,override:C,aliases:A}=y,x={middleware:m,...y},T=hc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=e.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=e[q];if(H.toMiddleware!==x.toMiddleware||H.relation!==x.relation)throw new Error(`"${Ji(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${Ji(_,A)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(q,1)}}for(let I of T)n.add(I)}e.push(x)},clone:()=>a(Xi()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=C=>{let{tags:A,name:x,aliases:T}=C;if(A&&A.includes(m)){let I=hc(x,T);for(let q of I)n.delete(q);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(Xi());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ji(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(C=>C.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},V3={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},W3={high:3,normal:2,low:1}});var Eo=st(yo=>{var qD;(function(t){t.HEADER="header",t.QUERY="query"})(qD||(qD={}));var HD;(function(t){t.HEADER="header",t.QUERY="query"})(HD||(HD={}));var jD;(function(t){t.HTTP="http",t.HTTPS="https"})(jD||(jD={}));var hp;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(hp||(hp={}));var cAe=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>hp.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>hp.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},uAe=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},lAe=t=>cAe(t),dAe=t=>uAe(t),zD;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zD||(zD={}));var pAe="__smithy_context",VD;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VD||(VD={}));var WD;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(WD||(WD={}));yo.AlgorithmId=hp;yo.EndpointURLScheme=jD;yo.FieldPosition=zD;yo.HttpApiKeyAuthLocation=HD;yo.HttpAuthLocation=qD;yo.IniSectionType=VD;yo.RequestHandlerProtocol=WD;yo.SMITHY_CONTEXT_KEY=pAe;yo.getDefaultClientConfiguration=lAe;yo.resolveDefaultRuntimeConfig=dAe});var KD,Le,K3=g(()=>{KD=De(Eo()),Le=t=>t[KD.SMITHY_CONTEXT_KEY]||(t[KD.SMITHY_CONTEXT_KEY]={})});function W(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var QD=g(()=>{});function fAe(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var re,Q3=g(()=>{re=class t{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=fAe(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var ft,Y3=g(()=>{ft=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var mAe,_o,J3=g(()=>{mAe=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),_o=(t,e=!1)=>{if(!e)return mAe.test(t);let r=t.split(".");for(let n of r)if(!_o(n))return!1;return!0}});function Sp(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var X3=g(()=>{});var we,Z3=g(()=>{we=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function yp(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var YD=g(()=>{});var Cr,JD=g(()=>{YD();Cr=t=>{if(typeof t=="string")return Cr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=yp(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var Tn,eF=g(()=>{QD();JD();Tn=t=>{if(typeof t=="object"){if("url"in t){let e=Cr(t.url);if(t.headers){e.headers={};for(let r in t.headers)W(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Cr(t)}});var oe=g(()=>{K3();QD();Q3();Y3();J3();X3();Z3();YD();JD();eF()});var tF,rF=g(()=>{tF=t=>()=>{throw new Error(t)}});var nF,oF=g(()=>{nF=t=>()=>Promise.reject(t)});var Iu,XD=g(()=>{Iu=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var sF,iF=g(()=>{sF=t=>new Promise(e=>setTimeout(e,t*1e3))});var xh,vn,aF,Th=g(()=>{XD();xh={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(vn||(vn={}));aF=t=>{if(t.state===vn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Iu())}`);throw e.name="AbortError",e}else if(t.state===vn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Iu())}`);throw e.name="TimeoutError",e}else if(t.state!==vn.SUCCESS)throw new Error(`${JSON.stringify(t,Iu())}`);return t}});var cF,gAe,hAe,SAe,yAe,uF=g(()=>{XD();iF();Th();cF=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,C=!1;for(;;){if(m>0){let T=SAe(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let I="AbortController signal aborted.";return c[I]|=0,c[I]+=1,{state:vn.ABORTED,observedResponses:c}}if(Date.now()+T>y)return{state:vn.TIMEOUT,observedResponses:c};await sF(T/1e3)}let{state:A,reason:x}=await a(o,i);if(x){let T=hAe(x);c[T]|=0,c[T]+=1}if(A!==vn.RETRY)return{state:A,reason:x,final:x,observedResponses:c};m+=1,!C&&Date.now()>=_&&(gAe(c,o),C=!0)}},gAe=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},hAe=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Iu())??"Unknown")},SAe=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=yAe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},yAe=(t,e)=>t+Math.random()*(e-t)});var lF,dF=g(()=>{lF=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var pF,fF,mF=g(()=>{uF();dF();Th();pF=t=>{let e,r=new Promise(n=>{e=()=>n({state:vn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},fF=async(t,e,r)=>{let n={...xh,...t};lF(n);let o=[cF(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=pF(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=pF(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Lr,gF=g(()=>{Ah();Lr=class{config;middlewareStack=Xi();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var mn,ZD=g(()=>{mn=t=>typeof t=="function"?t():t});var wu,vh=g(()=>{wu=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var hF,eI,SF=g(()=>{oe();vh();hF=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Le(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(wu(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
|
|
9
|
+
`+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ft.isInstance(o)){let{headers:_={},statusCode:C}=o,A=Object.entries(_);m.$metadata={httpStatusCode:C,requestId:eI(/^x-[\w-]+-request-?id$/,A),extendedRequestId:eI(/^x-[\w-]+-id-2$/,A),cfId:eI(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw m}},eI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var yF,EF=g(()=>{oe();vh();yF=t=>(e,r)=>async n=>{let{operationSchema:o}=Le(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>Tn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(wu(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function ls(t){return{applyToStack:e=>{e.add(yF(t),rI),e.add(hF(t),tI),t.protocol.setSerdeContext(t)}}}var tI,rI,_F=g(()=>{SF();EF();tI={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},rI={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mt,Zi=g(()=>{mt=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Ep,RF,CF=g(()=>{Zi();Ep=class t extends mt{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},RF=(t,e,r,n)=>mt.assign(new Ep,{name:e,namespace:t,traits:r,valueSchema:n})});var _p,bF,AF=g(()=>{Zi();_p=class t extends mt{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},bF=(t,e,r,n,o)=>mt.assign(new _p,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var Rp,xF,TF=g(()=>{Zi();Rp=class t extends mt{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},xF=(t,e,r,n,o)=>mt.assign(new Rp,{name:e,namespace:t,traits:r,input:n,output:o})});var Sc,vF,nI=g(()=>{Zi();Sc=class t extends mt{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},vF=(t,e,r,n,o)=>mt.assign(new Sc,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var Cp,DF,IF=g(()=>{Zi();nI();Cp=class t extends Sc{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},DF=(t,e,r,n,o,s)=>mt.assign(new Cp,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function Ro(t){if(typeof t=="object")return t;if(t=t|0,bp[t])return bp[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return bp[t]=e}var bp,oI=g(()=>{bp=[]});function xp(t,e){if(t instanceof B)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=B;return new r(t,e)}var Ap,Tp,vp,B,sI,iI,wF=g(()=>{ZD();oI();Ap={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Tp=[],vp={},B=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;sI(o);)n.push(o[1]),o=o[0],s=mn(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=mn(s),iI(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Tp[e])return Tp[e]}else if(typeof e=="string"){if(vp[e])return vp[e]}else if(r&&e[Ap.ns])return e[Ap.ns];let n=mn(e);if(n instanceof t)return n;if(sI(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),Ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[Ap.ns]=o:typeof n=="string"?vp[n]=o:typeof n=="number"?Tp[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ro(this.memberTraits)}getOwnTraits(){return Ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return xp([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return xp([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return xp(sI(o)?o:[o,0],e)}if(this.isDocumentSchema())return xp([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Ap.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=xp([e[5][o],0],s);yield n[o]=[s,i]}e[Ap.it]=n}};sI=t=>Array.isArray(t)&&t.length===2,iI=t=>Array.isArray(t)&&t.length>=5});var Pu,PF,OF,$F=g(()=>{Zi();Pu=class t extends mt{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},PF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:n,schemaRef:r}),OF=(t,e,r,n)=>mt.assign(new Pu,{name:e,namespace:t,traits:r,schemaRef:n})});var kF,MF=g(()=>{kF={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Fe,LF=g(()=>{Fe=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var Dp={};Ct(Dp,{ErrorSchema:()=>Cp,ListSchema:()=>Ep,MapSchema:()=>_p,NormalizedSchema:()=>B,OperationSchema:()=>Rp,SCHEMA:()=>kF,Schema:()=>mt,SimpleSchema:()=>Pu,StructureSchema:()=>Sc,TypeRegistry:()=>Fe,deref:()=>mn,deserializerMiddlewareOption:()=>tI,error:()=>DF,getSchemaSerdePlugin:()=>ls,isStaticSchema:()=>iI,list:()=>RF,map:()=>bF,op:()=>xF,operation:()=>wu,serializerMiddlewareOption:()=>rI,sim:()=>PF,simAdapter:()=>OF,simpleSchemaCacheN:()=>Tp,simpleSchemaCacheS:()=>vp,struct:()=>vF,traitsCache:()=>bp,translateTraits:()=>Ro});var ae=g(()=>{ZD();_F();CF();AF();TF();vh();IF();wF();Zi();$F();nI();MF();oI();LF()});function Ou(t,e){if(e==null)return e;let r=B.of(t);if(r.getMergedTraits().sensitive)return aI;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return aI}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Ou(i,n[s]));return o}return e}var aI,cI=g(()=>{ae();aI="***SensitiveInformation***"});var uI,Xr,lI,dI=g(()=>{uI=De(Eo());Ah();cI();Xr=class{middlewareStack=Xi();schema;static classBuilder(){return new lI}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let I of o.bind(this)(m,e,r,n))this.middlewareStack.use(I);let y=e.concat(this.middlewareStack),{logger:_}=r,C=f[uI.SMITHY_CONTEXT_KEY],A={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[uI.SMITHY_CONTEXT_KEY]:{...C,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:x}=r,T=n??{};return T.metricsRecorder&&(T={...T},delete T.metricsRecorder),u.eventStream&&(T={isEventStream:!0,...T}),y.resolve(I=>x.handle(I.request,T),A)}},lI=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends Xr{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Ou.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Ou.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var NF,FF=g(()=>{NF="***SensitiveInformation***"});var ds,BF=g(()=>{ds=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var jn,yc,pI=g(()=>{jn=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},yc=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var fI,UF,EAe,GF=g(()=>{pI();fI=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=EAe(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw yc(i,e)},UF=t=>({output:e,parsedBody:r,errorCode:n})=>{fI({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},EAe=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var ps,qF=g(()=>{ps=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var HF,fs,jF=g(()=>{HF=!1,fs=t=>{t&&!HF&&parseInt(t.substring(1,t.indexOf(".")))<16&&(HF=!0)}});var Ec,zF,Dh,Ih,mI=g(()=>{oe();Ec=De(Eo()),zF=Object.values(Ec.AlgorithmId),Dh=t=>{let e=[];for(let r in Ec.AlgorithmId){if(!W(Ec.AlgorithmId,r))continue;let n=Ec.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();zF.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},Ih=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();zF.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var wh,Ph,gI=g(()=>{wh=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Ph=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var Co,VF,ms,WF=g(()=>{mI();gI();Co=t=>Object.assign(Dh(t),wh(t)),VF=Co,ms=t=>Object.assign(Ih(t),Ph(t))});var KF,QF=g(()=>{KF=t=>Array.isArray(t)?t:[t]});var _c,YF=g(()=>{oe();_c=t=>{let e="#text";for(let r in t)W(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=_c(t[r])));return t}});var JF,XF=g(()=>{JF=t=>t!=null});var Nr,ZF=g(()=>{Nr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function hI(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,_Ae(n,o,s);s=e}for(let i in s)if(W(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}rB(n,null,s,i)}return n}var eB,tB,_Ae,rB,RAe,CAe,nB=g(()=>{oe();eB=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},tB=(t,e)=>{let r={};for(let n in e)W(e,n)&&rB(r,t,e,n);return r},_Ae=(t,e,r)=>hI(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),rB=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=RAe,c=CAe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},RAe=t=>t!=null,CAe=t=>t});var oB,sB,iB=g(()=>{oB=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},sB=t=>t.toISOString().replace(".000Z","Z")});var Oh,aB=g(()=>{oe();Oh=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Oh);if(typeof t=="object"){let e={};for(let r in t)W(t,r)&&t[r]!=null&&(e[r]=Oh(t[r]));return e}return t}});function gs(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Xr.classBuilder().ep(f).m(function(m,y,_,C){let A=i.call(this,m,y,_,C);return A.unshift(n(_,m.getEndpointParameterInstructions())),A}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var cB=g(()=>{dI()});var bo={};Ct(bo,{AlgorithmId:()=>Ec.AlgorithmId,Client:()=>Lr,Command:()=>Xr,NoOpLogger:()=>Nr,SENSITIVE_STRING:()=>NF,ServiceException:()=>jn,WaiterState:()=>vn,_json:()=>Oh,checkExceptions:()=>aF,constructStack:()=>Xi,convertMap:()=>eB,createAggregatedClient:()=>ds,createWaiter:()=>fF,decorateServiceException:()=>yc,emitWarningIfUnsupportedVersion:()=>fs,getArrayIfSingleItem:()=>KF,getChecksumConfiguration:()=>Dh,getDefaultClientConfiguration:()=>VF,getDefaultExtensionConfiguration:()=>Co,getRetryConfiguration:()=>wh,getSmithyContext:()=>Le,getValueFromTextNode:()=>_c,invalidFunction:()=>tF,invalidProvider:()=>nF,isSerializableHeaderValue:()=>JF,loadConfigsForDefaultMode:()=>ps,makeBuilder:()=>gs,map:()=>hI,normalizeProvider:()=>we,resolveChecksumRuntimeConfig:()=>Ih,resolveDefaultRuntimeConfig:()=>ms,resolveRetryRuntimeConfig:()=>Ph,schemaLogFilter:()=>Ou,serializeDateTime:()=>sB,serializeFloat:()=>oB,take:()=>tB,throwDefaultError:()=>fI,waiterServiceDefaults:()=>xh,withBaseException:()=>UF});var J=g(()=>{Ah();oe();oe();rF();oF();mF();Th();gF();dI();FF();BF();GF();qF();jF();pI();WF();mI();gI();QF();YF();XF();ZF();nB();cI();iB();aB();cB()});var $u,SI=g(()=>{$u=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var Ao,ea,ta=g(()=>{SI();Ao=(t,e=0,r=t.byteLength-e)=>{if(!$u(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},ea=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var bAe,Xe,uB=g(()=>{ta();bAe=/^[A-Za-z0-9+/]*={0,2}$/,Xe=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!bAe.exec(t))throw new TypeError("Invalid base64 string.");let e=ea(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var qt,$h=g(()=>{ta();qt=t=>{let e=ea(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var Ie,yI=g(()=>{ta();$h();Ie=t=>{let e;if(typeof t=="string"?e=qt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ao(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function lB(t,e,r,n){return class kh extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?kh.mutate(n(s)):kh.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,kh.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var dB=g(()=>{});var ze,pB=g(()=>{ta();ze=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ao(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function fB(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Fr[e[0]]+Fr[e[1]]+Fr[e[2]]+Fr[e[3]]+"-"+Fr[e[4]]+Fr[e[5]]+"-"+Fr[e[6]]+Fr[e[7]]+"-"+Fr[e[8]]+Fr[e[9]]+"-"+Fr[e[10]]+Fr[e[11]]+Fr[e[12]]+Fr[e[13]]+Fr[e[14]]+Fr[e[15]]}}var Fr,mB=g(()=>{Fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var gB,hB=g(()=>{gB=(t,e,r=n=>n)=>t});var SB,yB,ku,AAe,Ip,Mu,EB,Mh,Lh,Nh,EI,xAe,_B,_I,RB,Bh,wp,CB,Uh,TAe,Nu,Gh,bB,AB,xB,TB,RI,vB,DB,ra,qh,Fh,Lu,CI=g(()=>{oe();SB=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},yB=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Lu.warn(Fh(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},ku=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Lu.warn(Fh(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},AAe=Math.ceil(2**127*(2-2**-23)),Ip=t=>{let e=ku(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>AAe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},Mu=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},EB=Mu,Mh=t=>EI(t,32),Lh=t=>EI(t,16),Nh=t=>EI(t,8),EI=(t,e)=>{let r=Mu(t);if(r!==void 0&&xAe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},xAe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},_B=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},_I=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},RB=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Lu.warn(Fh(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Bh=t=>{if(t==null)return;let e=_I(t),r=[];for(let n in e)W(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},wp=t=>ku(typeof t=="string"?Nu(t):t),CB=wp,Uh=t=>Ip(typeof t=="string"?Nu(t):t),TAe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Nu=t=>{let e=t.match(TAe);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Gh=t=>typeof t=="string"?TB(t):ku(t),bB=Gh,AB=Gh,xB=t=>typeof t=="string"?TB(t):Ip(t),TB=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},RI=t=>Mu(typeof t=="string"?Nu(t):t),vB=RI,DB=t=>Mh(typeof t=="string"?Nu(t):t),ra=t=>Lh(typeof t=="string"?Nu(t):t),qh=t=>Nh(typeof t=="string"?Nu(t):t),Fh=t=>String(new TypeError(t).stack||t).split(`
|
|
10
10
|
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
|
|
11
|
-
`),
|
|
12
|
-
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(ft.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:vI(/^x-[\w-]+-request-?id$/,u),extendedRequestId:vI(/^x-[\w-]+-id-2$/,u),cfId:vI(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},vI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var Dn,Op=g(()=>{Dn=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var oa,Qh=g(()=>{Op();oa=class t extends Dn{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Yh,FB=g(()=>{Op();Yh=class t extends Dn{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Jh,II=g(()=>{Op();Jh=(...t)=>async()=>{if(t.length===0)throw new Dn("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Xh,wI=g(()=>{Xh=t=>()=>Promise.resolve(t)});var Uu,Zh=g(()=>{Uu=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ve,eS=g(()=>{Ve=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var BB,UB=g(()=>{BB=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var Be,tS=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Be||(Be={}))});var GB,qB,PI,kAe,_s,Gu=g(()=>{GB=require("node:os"),qB=require("node:path"),PI={},kAe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",_s=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${qB.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=kAe();return PI[o]||(PI[o]=(0,GB.homedir)()),PI[o]}});var OI,$I,rS,kI=g(()=>{OI="AWS_PROFILE",$I="default",rS=t=>t.profile||process.env[OI]||$I});var HB,jB,nS,MI=g(()=>{HB=require("node:crypto"),jB=require("node:path");Gu();nS=t=>{let r=(0,HB.createHash)("sha1").update(t).digest("hex");return(0,jB.join)(_s(),".aws","sso","cache",`${r}.json`)}});var zB,$p,VB,LI=g(()=>{zB=require("node:fs/promises");MI();$p={},VB=async t=>{if($p[t])return $p[t];let e=nS(t),r=await(0,zB.readFile)(e,"utf8");return JSON.parse(r)}});var Rs,WB=g(()=>{Rs="."});var NI,KB,QB=g(()=>{NI=Ie(Eo()),KB=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(NI.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===NI.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var YB,MAe,oS,FI=g(()=>{YB=require("node:path");Gu();MAe="AWS_CONFIG_FILE",oS=()=>process.env[MAe]||(0,YB.join)(_s(),".aws","config")});var JB,LAe,XB,ZB=g(()=>{JB=require("node:path");Gu();LAe="AWS_SHARED_CREDENTIALS_FILE",XB=()=>process.env[LAe]||(0,JB.join)(_s(),".aws","credentials")});var e2,NAe,FAe,kp,BI=g(()=>{e2=Ie(Eo()),NAe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,FAe=["__proto__","profile __proto__"],kp=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=NAe.exec(a);if(c){let[,u,,f]=c;Object.values(e2.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(FAe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var t2,UI,Mp,_c,Lp=g(()=>{t2=require("node:fs/promises"),UI={},Mp={},_c=(t,e)=>Mp[t]!==void 0?Mp[t]:((!UI[t]||e?.ignoreCache)&&(UI[t]=(0,t2.readFile)(t,"utf8")),UI[t])});var GI,r2,qu,sS=g(()=>{GI=require("node:path");QB();FI();ZB();Gu();BI();Lp();r2=()=>({}),qu=async(t={})=>{let{filepath:e=XB(),configFilepath:r=oS()}=t,n=_s(),o="~/",s=e;e.startsWith(o)&&(s=(0,GI.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,GI.join)(n,r.slice(2)));let a=await Promise.all([_c(i,{ignoreCache:t.ignoreCache}).then(kp).then(KB).catch(r2),_c(s,{ignoreCache:t.ignoreCache}).then(kp).catch(r2)]);return{configFile:a[0],credentialsFile:a[1]}}});var n2,o2,s2=g(()=>{n2=Ie(Eo()),o2=t=>Object.entries(t).filter(([e])=>e.startsWith(n2.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var BAe,i2,a2=g(()=>{FI();s2();BI();Lp();BAe=()=>({}),i2=async(t={})=>_c(t.configFilepath??oS()).then(kp).then(o2).catch(BAe)});var c2,u2=g(()=>{c2=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var l2,d2=g(()=>{sS();u2();l2=async t=>{let e=await qu(t);return c2(e.configFile,e.credentialsFile)}});var p2,f2=g(()=>{LI();Lp();p2={getFileRecord(){return Mp},interceptFile(t,e){Mp[t]=Promise.resolve(e)},getTokenRecord(){return $p},interceptToken(t,e){$p[t]=e}}});function iS(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var qI=g(()=>{});var m2,g2=g(()=>{Qh();qI();m2=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new oa(r.message||`Not found in ENV: ${iS(t.toString())}`,{logger:e?.logger})}}});var h2,S2=g(()=>{Qh();kI();sS();qI();h2=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=rS(r),{configFile:o,credentialsFile:s}=await qu(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new oa(u.message||`Not found in config files w/ profile [${n}]: ${iS(t.toString())}`,{logger:r.logger})}}});var UAe,aS,HI=g(()=>{wI();UAe=t=>typeof t=="function",aS=t=>UAe(t)?async()=>await t():Xh(t)});var ue,jI=g(()=>{II();Zh();g2();S2();HI();ue=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return Uu(Jh(m2(t,{signingName:o,logger:s}),h2(e,n),aS(r)))}});var cS,uS,y2,Cs,E2,_2=g(()=>{eS();tS();cS="AWS_USE_DUALSTACK_ENDPOINT",uS="use_dualstack_endpoint",y2=!1,Cs={environmentVariableSelector:t=>Ve(t,cS,Be.ENV),configFileSelector:t=>Ve(t,uS,Be.CONFIG),default:!1},E2={environmentVariableSelector:t=>Ve(t,cS,Be.ENV),configFileSelector:t=>Ve(t,uS,Be.CONFIG),default:void 0}});var lS,dS,R2,bs,C2,b2=g(()=>{eS();tS();lS="AWS_USE_FIPS_ENDPOINT",dS="use_fips_endpoint",R2=!1,bs={environmentVariableSelector:t=>Ve(t,lS,Be.ENV),configFileSelector:t=>Ve(t,dS,Be.CONFIG),default:!1},C2={environmentVariableSelector:t=>Ve(t,lS,Be.ENV),configFileSelector:t=>Ve(t,dS,Be.CONFIG),default:void 0}});var A2,x2=g(()=>{J();A2=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:we(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:we(o??!1)})}});var T2,v2=g(()=>{T2=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var D2,I2=g(()=>{J();v2();D2=t=>{let e=we(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?we(typeof r=="string"?o(r):r):()=>T2({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var w2,zI,VI,P2,O2,$2,k2,M2,L2,WI=g(()=>{w2="AWS_EXECUTION_ENV",zI="AWS_REGION",VI="AWS_DEFAULT_REGION",P2="AWS_EC2_METADATA_DISABLED",O2=["in-region","cross-region","mobile","standard","legacy"],$2="/latest/meta-data/placement/region",k2="/latest/api/token",M2="x-aws-ec2-metadata-token",L2="x-aws-ec2-metadata-token-ttl-seconds"});var N2,GAe,U2,pS,F2,qAe,B2,KI=g(()=>{WI();N2=1e3,GAe=6e4,U2=0,pS=async()=>{if(!process.env[P2]&&!(Date.now()<U2))try{let t=qAe(),e=(await B2({...t,path:k2,method:"PUT",headers:{[L2]:"21600"}})).toString();return(await B2({...t,path:$2,method:"GET",headers:{[M2]:e}})).toString().trim()||F2()}catch{return F2()}},F2=()=>{U2=Date.now()+GAe},qAe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},B2=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:N2,signal:AbortSignal.timeout(N2)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var Hu,ju,Ar,Zr,QI=g(()=>{KI();Hu="AWS_REGION",ju="region",Ar={environmentVariableSelector:t=>t[Hu],configFileSelector:t=>t[ju],default:async()=>{let t=await pS();if(t)return t;throw new Error("Region is missing")}},Zr={preferredFile:"credentials"}});var G2,q2,H2=g(()=>{oe();G2=new Set,q2=(t,e=_o)=>{if(!G2.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else G2.add(t)}});var fS,YI=g(()=>{fS=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var j2,z2=g(()=>{YI();j2=t=>fS(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var In,V2=g(()=>{H2();z2();YI();In=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=j2(n);return q2(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return fS(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var JI,W2=g(()=>{JI=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var K2,Q2=g(()=>{K2=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var Y2,J2=g(()=>{Y2=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var X2,Z2=g(()=>{X2=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var eU,tU=g(()=>{W2();Q2();J2();Z2();eU=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=Y2(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=JI(o[a]?.variants,c),f=JI(s[i]?.variants,c),m=K2(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=X2(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var HAe,jAe,rU,nU=g(()=>{HAe="AWS_DEFAULTS_MODE",jAe="defaults_mode",rU={environmentVariableSelector:t=>t[HAe],configFileSelector:t=>t[jAe],default:"legacy"}});var As,zAe,VAe,oU=g(()=>{QI();KI();jI();Zh();WI();nU();As=({region:t=ue(Ar),defaultsMode:e=ue(rU)}={})=>Uu(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return zAe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${O2.join(", ")}, got ${r}`)}}),zAe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await VAe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},VAe=async()=>process.env[w2]&&(process.env[zI]||process.env[VI])?process.env[zI]??process.env[VI]:pS()});var Br={};Ct(Br,{CONFIG_PREFIX_SEPARATOR:()=>Rs,CONFIG_USE_DUALSTACK_ENDPOINT:()=>uS,CONFIG_USE_FIPS_ENDPOINT:()=>dS,CredentialsProviderError:()=>oa,DEFAULT_PROFILE:()=>$I,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>y2,DEFAULT_USE_FIPS_ENDPOINT:()=>R2,ENV_PROFILE:()=>OI,ENV_USE_DUALSTACK_ENDPOINT:()=>cS,ENV_USE_FIPS_ENDPOINT:()=>lS,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Cs,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bs,ProviderError:()=>Dn,REGION_ENV_NAME:()=>Hu,REGION_INI_NAME:()=>ju,SelectorType:()=>Be,TokenProviderError:()=>Yh,booleanSelector:()=>Ve,chain:()=>Jh,externalDataInterceptor:()=>p2,fromStatic:()=>aS,fromValue:()=>Xh,getHomeDir:()=>_s,getProfileName:()=>rS,getRegionInfo:()=>eU,getSSOTokenFilepath:()=>nS,getSSOTokenFromFile:()=>VB,loadConfig:()=>ue,loadSharedConfigFiles:()=>qu,loadSsoSessionData:()=>i2,memoize:()=>Uu,nodeDualstackConfigSelectors:()=>E2,nodeFipsConfigSelectors:()=>C2,numberSelector:()=>BB,parseKnownFiles:()=>l2,readFile:()=>_c,resolveCustomEndpointsConfig:()=>A2,resolveDefaultsModeConfig:()=>As,resolveEndpointsConfig:()=>D2,resolveRegionConfig:()=>In});var ye=g(()=>{Op();Qh();FB();II();wI();Zh();eS();UB();tS();Gu();kI();MI();LI();WB();sS();a2();d2();f2();Lp();jI();HI();_2();b2();x2();I2();QI();V2();tU();oU()});var sU,iU,aU,cU=g(()=>{sU="AWS_ENDPOINT_URL",iU="endpoint_url",aU=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[sU,...r].join("_")];if(n)return n;let o=e[sU];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),iU].join(".")];if(a)return a}let n=e[iU];if(n)return n},default:void 0})});var WAe,KAe,uU,lU=g(()=>{ye();WAe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",KAe="ignore_configured_endpoint_urls",uU={environmentVariableSelector:t=>Ve(t,WAe,Be.ENV),configFileSelector:t=>Ve(t,KAe,Be.CONFIG),default:!1}});var Np,dU=g(()=>{ye();cU();lU();Np=async t=>{if(!await ue(uU)())return ue(aU(t??""))()}});var XI,QAe,YAe,JAe,pU,fU,mU=g(()=>{XI=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),fU(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!pU(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},QAe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,YAe=/(\d+\.){3}\d+/,JAe=/\.\./,pU=t=>QAe.test(t)&&!YAe.test(t)&&!JAe.test(t),fU=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var gU=g(()=>{mU()});var hU,SU=g(()=>{hU=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var mS=g(()=>{oe()});function gS(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(Tn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Fp(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var Fp,hS=g(()=>{gU();SU();mS();Fp=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await hU(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await XI(n),n}});function XAe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function SS(t){let e=gS(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&XAe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Le(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var ZI=g(()=>{oe();hS()});function yU(t){let e=SS(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),ew)}})}var ZAe,ew,tw=g(()=>{ZI();ZAe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},ew={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZAe.name}});function EU(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>Tn(await we(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:we(o??!1),useFipsEndpoint:we(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var _U=g(()=>{oe();mS()});var Wn,RU=g(()=>{Wn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Kn,CU=g(()=>{Kn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var be,bU=g(()=>{be=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var wn=g(()=>{bU()});var xs,AU=g(()=>{xs="endpoints"});function Pn(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Pn(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Pn).join(", ")})`:JSON.stringify(t,null,2)}var xU=g(()=>{});var Bp=g(()=>{AU();xU()});var hn,rw=g(()=>{hn={}});var nw,TU=g(()=>{nw=(t,e)=>t===e});function ow(...t){for(let e of t)if(e!=null)return e}var vU=g(()=>{});var DU,IU=g(()=>{wn();DU=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new be(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new be(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var Up,wU=g(()=>{wn();IU();Up=(t,e)=>DU(e).reduce((r,n)=>{if(typeof r!="object")throw new be(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var sw,PU=g(()=>{sw=t=>t!=null});function iw(t,e,r){return t?e:r}var OU=g(()=>{});var aw,$U=g(()=>{aw=t=>!t});var exe,_i,cw=g(()=>{exe=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}$"),_i=t=>exe.test(t)||t.startsWith("[")&&t.endsWith("]")});var yS,uw,lw,kU=g(()=>{yS=Ie(Eo());cw();uw={[yS.EndpointURLScheme.HTTP]:80,[yS.EndpointURLScheme.HTTPS]:443},lw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:C="",path:A="",query:x={}}=t,T=new URL(`${C}//${y}${_?`:${_}`:""}${A}`);return T.search=Object.entries(x).map(([I,q])=>`${I}=${q}`).join("&"),T}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(yS.EndpointURLScheme).includes(c))return null;let u=_i(o),f=r.includes(`${n}:${uw[c]}`)||typeof t=="string"&&t.includes(`${n}:${uw[c]}`),m=`${n}${f?`:${uw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function dw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var MU=g(()=>{});var pw,LU=g(()=>{pw=(t,e)=>t===e});var fw,NU=g(()=>{fw=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var mw,FU=g(()=>{mw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var gw=g(()=>{TU();vU();wU();PU();oe();OU();$U();kU();MU();LU();NU();FU()});var BU,UU=g(()=>{gw();BU={booleanEquals:nw,coalesce:ow,getAttr:Up,isSet:sw,isValidHostLabel:_o,ite:iw,not:aw,parseURL:lw,split:dw,stringEquals:pw,substring:fw,uriEncode:mw}});var ES,hw=g(()=>{gw();ES=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(Up(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var GU,qU=g(()=>{GU=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var Ri,_S,HU,zu=g(()=>{wn();rw();UU();hw();qU();Ri=(t,e,r)=>{if(typeof t=="string")return ES(t,r);if(t.fn)return HU.callFunction(t,r);if(t.ref)return GU(t,r);throw new be(`'${e}': ${String(t)} is not a string, function or reference.`)},_S=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=HU.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=hn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=BU[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},HU={evaluateExpression:Ri,callFunction:_S}});var jU=g(()=>{zu()});var RS,Sw=g(()=>{Bp();wn();jU();RS=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new be(`'${r}' is already defined in Reference Record.`);let n=_S(t,e);e.logger?.debug?.(`${xs} evaluateCondition: ${Pn(t)} = ${Pn(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var CS,yw=g(()=>{wn();zu();CS=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Ri(s,"Header value entry",e);if(typeof i!="string")throw new be(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var Gp,zU,VU,Ew=g(()=>{wn();hw();Gp=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=VU.getEndpointProperty(o,e),r),{}),zU=(t,e)=>{if(Array.isArray(t))return t.map(r=>zU(r,e));switch(typeof t){case"string":return ES(t,e);case"object":if(t===null)throw new be(`Unexpected endpoint property: ${t}`);return VU.getEndpointProperties(t,e);case"boolean":return t;default:throw new be(`Unexpected endpoint property type: ${typeof t}`)}},VU={getEndpointProperty:zU,getEndpointProperties:Gp}});var bS,_w=g(()=>{wn();zu();bS=(t,e)=>{let r=Ri(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new be(`Endpoint URL must be a string, got ${typeof r}`)}});var Rw,Ts,WU=g(()=>{wn();Sw();zu();yw();Ew();_w();Rw=1e8,Ts=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<Rw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,C,A]=s[f],x=RS({fn:_,assign:A,argv:C},c);if(x.toAssign){let{name:T,value:I}=x.toAssign;a[T]=I}i=i>=0===x.result?m:y}if(i>=Rw){let u=o[i-Rw];if(u[0]===-1){let[,_]=u;throw new be(Ri(_,"Error",c))}let[f,m,y]=u;return{url:bS(f,c),properties:Gp(m,c),headers:CS(y??{},c)}}throw new be("No matching endpoint.")}});var Vu,AS=g(()=>{Bp();Sw();Vu=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=RS(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${xs} assign: ${a.name} := ${Pn(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var KU,QU=g(()=>{Bp();AS();yw();Ew();_w();KU=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${xs} Resolving endpoint from template: ${Pn(n)}`);let f={url:bS(a,i)};return u!=null&&(f.headers=CS(u,i)),c!=null&&(f.properties=Gp(c,i)),f}});var YU,JU=g(()=>{wn();AS();zu();YU=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new be(Ri(n,"Error",i))}});var xS,XU,Cw,ZU=g(()=>{wn();AS();QU();JU();xS=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=KU(r,e);if(n)return n}else if(r.type==="error")YU(r,e);else if(r.type==="tree"){let n=Cw.evaluateTreeRule(r,e);if(n)return n}else throw new be(`Unknown endpoint rule: ${r}`);throw new be("Rules evaluation failed")},XU=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Cw.evaluateRules(n,i)},Cw={evaluateRules:xS,evaluateTreeRule:XU}});var eG=g(()=>{ZU()});var qp,tG=g(()=>{oe();Bp();wn();eG();qp=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${xs} Initial EndpointParams: ${Pn(r)}`);for(let a in o){if(!W(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new be(`Missing required parameter: '${a}'`)}let i=xS(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${xs} Resolved endpoint: ${Pn(i)}`),i}});var rG,nG=g(()=>{rG=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var Hp={};Ct(Hp,{BinaryDecisionDiagram:()=>Wn,EndpointCache:()=>Kn,EndpointError:()=>be,customEndpointFunctions:()=>hn,decideEndpoint:()=>Ts,endpointMiddleware:()=>rxe,endpointMiddlewareOptions:()=>ew,getEndpointFromInstructions:()=>txe,getEndpointPlugin:()=>bi,isIpAddress:()=>_i,isValidHostLabel:()=>_o,middlewareEndpointToEndpointV1:()=>Tn,resolveEndpoint:()=>qp,resolveEndpointConfig:()=>Ci,resolveEndpointRequiredConfig:()=>rG,resolveParams:()=>Fp,toEndpointV1:()=>Tn});var txe,Ci,rxe,bi,He=g(()=>{dU();hS();ZI();tw();_U();oe();RU();CU();WU();cw();oe();rw();tG();wn();hS();mS();tw();nG();txe=gS(Np),Ci=EU(Np),rxe=SS(Np),bi=yU(Np)});var TS,bw=g(()=>{He();TS=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>Tn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function oG(t,e,r){return{applyToStack:n=>{n.add(Kh(t,r),Aw),n.add(TS(t,e),xw)}}}var Aw,xw,sG=g(()=>{DI();bw();Aw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},xw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function iG(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ea(t,e):ArrayBuffer.isView(t)?Ao(t.buffer,t.byteOffset,t.byteLength):Ao(t)}var DS,vS,aG=g(()=>{DS=require("node:crypto");ta();TI();vS=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bt(iG(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,DS.createHmac)(this.algorithmIdentifier,iG(this.secret)):(0,DS.createHash)(this.algorithmIdentifier)}}});var cG,Wu,Tw=g(()=>{cG=require("node:stream");mI();Wu=class extends cG.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??De,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Ht,sa,xo=g(()=>{Ht=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),sa=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var uG,lG=g(()=>{uG=t=>new TextEncoder().encode(t)});var dG,MAt,pG,IS,vw,fG,mG=g(()=>{dG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",MAt=Object.entries(dG).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),pG=dG.split(""),IS=6,vw=8,fG=63});function wS(t){let e;typeof t=="string"?e=uG(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*vw,a+=vw;let c=Math.ceil(a/IS);i<<=c*IS-a;for(let u=1;u<=c;u++){let f=(c-u)*IS;o+=pG[(i&fG<<f)>>f]}o+="==".slice(0,4-c)}return o}var Dw=g(()=>{lG();mG()});var nxe,PS,gG=g(()=>{nxe=typeof ReadableStream=="function"?ReadableStream:function(){},PS=class extends nxe{}});var hG,SG=g(()=>{Dw();xo();gG();hG=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Ht(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??wS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,PS.prototype),a}});function OS(t){return typeof ReadableStream=="function"&&Ht(t.source)?hG(t):new Wu(t)}var yG=g(()=>{xo();Tw();SG()});var Rc,Iw=g(()=>{Rc=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function EG(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new Rc(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=Cc(i,a);Ai(_)>0&&u.enqueue(_)}u.close()}else{let _=Pw(y,!1);if(a!==_&&(a>=0&&u.enqueue(Cc(i,a)),a=_),a===-1){u.enqueue(y);return}let C=Ai(y);s+=C;let A=Ai(i[a]);if(C>=e&&A===0)u.enqueue(y);else{let x=ww(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(Cc(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function ww(t,e,r){switch(e){case 0:return t[0]+=r,Ai(t[0]);case 1:case 2:return t[e].push(r),Ai(t[e])}}function Cc(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ai(t){return t?.byteLength??t?.length??0}function Pw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var _G=g(()=>{Iw()});function $S(t,e,r){if(Ht(t))return EG(t,e,r);let n=new RG.Readable({read(){}}),o=!1,s=0,i=["",new Rc(c=>new Uint8Array(c)),new Rc(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Pw(c,!0);if(a!==u&&(a>=0&&n.push(Cc(i,a)),a=u),a===-1){n.push(c);return}let f=Ai(c);s+=f;let m=Ai(i[a]);if(f>=e&&m===0)n.push(c);else{let y=ww(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(Cc(i,a))}}),t.on("end",()=>{if(a!==-1){let c=Cc(i,a);Ai(c)>0&&n.push(c)}n.push(null)}),n}var RG,CG=g(()=>{RG=require("node:stream");Iw();_G();xo()});var bG,AG=g(()=>{bG=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
|
|
11
|
+
`),Lu={warn:console.warn}});function br(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,f=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${vAe[n]}, ${c} ${AI[r]} ${e} ${u}:${f}:${m} GMT`}var vAe,AI,DAe,IB,IAe,Ss,wAe,PAe,OAe,gn,ys,Pp,$Ae,kAe,MAe,bI,LAe,NAe,FAe,hs,BAe,UAe,Fu,wB=g(()=>{CI();vAe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];DAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),IB=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=DAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u]=e,f=ra(Fu(n)),m=hs(o,"month",1,12),y=hs(s,"day",1,31);return Pp(f,m,y,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})},IAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ss=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=IAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u,f]=e,m=ra(Fu(n)),y=hs(o,"month",1,12),_=hs(s,"day",1,31),C=Pp(m,y,_,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u});return f.toUpperCase()!="Z"&&C.setTime(C.getTime()-UAe(f)),C},wAe=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$/),PAe=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$/),OAe=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})$/),gn=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=wAe.exec(t);if(e){let[r,n,o,s,i,a,c,u]=e;return Pp(ra(Fu(s)),bI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})}if(e=PAe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return MAe(Pp($Ae(s),bI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(e=OAe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return Pp(ra(Fu(u)),bI(n),hs(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},ys=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=wp(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},Pp=(t,e,r,n)=>{let o=e-1;return NAe(t,o,r),new Date(Date.UTC(t,o,r,hs(n.hours,"hour",0,23),hs(n.minutes,"minute",0,59),hs(n.seconds,"seconds",0,60),BAe(n.fractionalMilliseconds)))},$Ae=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+ra(Fu(t));return r<e?r+100:r},kAe=50*365*24*60*60*1e3,MAe=t=>t.getTime()-new Date().getTime()>kAe?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,bI=t=>{let e=AI.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},LAe=[31,28,31,30,31,30,31,31,30,31,30,31],NAe=(t,e,r)=>{let n=LAe[e];if(e===1&&FAe(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${AI[e]} in ${t}: ${r}`)},FAe=t=>t%4===0&&(t%100!==0||t%400===0),hs=(t,e,r,n)=>{let o=qh(Fu(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},BAe=t=>t==null?0:Uh("0."+t)*1e3,UAe=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1e3},Fu=t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)}});var qe,PB=g(()=>{qe=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};qe.from=t=>t&&typeof t=="object"&&(t instanceof qe||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?qe(String(t)):qe(JSON.stringify(t));qe.fromObject=qe.from});function Hh(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var OB=g(()=>{});function Ei(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var xI,TI,vI,$B,kB,GAe,qAe,HAe,jAe,zAe,na,jh,zh,MB=g(()=>{xI="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",TI="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",vI="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",$B="(\\d?\\d)",kB="(\\d{4})",GAe=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),qAe=new RegExp(`^${xI}, ${$B} ${TI} ${kB} ${vI} GMT$`),HAe=new RegExp(`^${xI}, ${$B}-${TI}-(\\d\\d) ${vI} GMT$`),jAe=new RegExp(`^${xI} ${TI} ( [1-9]|\\d\\d) ${vI} ${kB}$`),zAe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],na=t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},jh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=GAe.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,o,s,i,a,,c,u]=e;Ei(n,1,12),Ei(o,1,31),Ei(s,0,23),Ei(i,0,59),Ei(a,0,60);let f=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(f.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,m,y,_]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],C=m==="-"?1:-1;f.setTime(f.getTime()+C*(Number(y)*60*60*1e3+Number(_)*60*1e3))}return f},zh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,o,s,i,a,c;if((c=qAe.exec(t))?[,e,r,n,o,s,i,a]=c:(c=HAe.exec(t))?([,e,r,n,o,s,i,a]=c,n=(Number(n)+1900).toString()):(c=jAe.exec(t))&&([,r,e,o,s,i,a,n]=c),n&&i){let u=Date.UTC(Number(n),zAe.indexOf(r),Number(e),Number(o),Number(s),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);Ei(e,1,31),Ei(o,0,23),Ei(s,0,59),Ei(i,0,60);let f=new Date(u);return f.setUTCFullYear(Number(n)),f}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)}});function Vh(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=e+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var LB=g(()=>{});var Bu,NB=g(()=>{Bu=t=>{let e=t.length,r=[],n=!1,o,s=0;for(let i=0;i<e;++i){let a=t[i];switch(a){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(s,i)),s=i+1);break;default:}o=a}return r.push(t.slice(s)),r.map(i=>{i=i.trim();let a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})}});function Wh(t){return new Y(String(t),"bigDecimal")}var FB,Y,BB=g(()=>{FB=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Y=class t{string;type;constructor(e,r){if(this.string=e,this.type=r,!FB.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&FB.test(r.string)}}});function Kh(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in DI)e[r/2]=DI[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function zn(t){let e="";for(let r=0;r<t.byteLength;r++)e+=UB[t[r]];return e}var UB,DI,II=g(()=>{UB={},DI={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),UB[t]=e,DI[e]=t}});var Uu,Es,GB=g(()=>{Uu=require("node:fs"),Es=t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Uu.ReadStream){if(t.path!=null)return(0,Uu.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Uu.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)}});var bt,wI=g(()=>{$h();bt=t=>t instanceof Uint8Array?t:typeof t=="string"?qt(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)});function Vn(t,e){if(e===void 0){e=0;for(let o of t)e+=o.byteLength}let r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.byteLength;return r}var Op=g(()=>{});var Qh,PI,OI=g(()=>{oe();Qh=(t,e)=>(r,n)=>async o=>{let{response:s}=await r(o);try{let i=await e(s,t);return{response:s,output:i}}catch(i){if(Object.defineProperty(i,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in i)){let a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{i.message+=`
|
|
12
|
+
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(ft.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:PI(/^x-[\w-]+-request-?id$/,u),extendedRequestId:PI(/^x-[\w-]+-id-2$/,u),cfId:PI(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},PI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var Dn,$p=g(()=>{Dn=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var oa,Yh=g(()=>{$p();oa=class t extends Dn{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Jh,qB=g(()=>{$p();Jh=class t extends Dn{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Xh,$I=g(()=>{$p();Xh=(...t)=>async()=>{if(t.length===0)throw new Dn("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Zh,kI=g(()=>{Zh=t=>()=>Promise.resolve(t)});var Gu,eS=g(()=>{Gu=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ve,tS=g(()=>{Ve=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var HB,jB=g(()=>{HB=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var Be,rS=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Be||(Be={}))});var zB,VB,MI,VAe,_s,qu=g(()=>{zB=require("node:os"),VB=require("node:path"),MI={},VAe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",_s=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${VB.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=VAe();return MI[o]||(MI[o]=(0,zB.homedir)()),MI[o]}});var LI,NI,nS,FI=g(()=>{LI="AWS_PROFILE",NI="default",nS=t=>t.profile||process.env[LI]||NI});var WB,KB,oS,BI=g(()=>{WB=require("node:crypto"),KB=require("node:path");qu();oS=t=>{let r=(0,WB.createHash)("sha1").update(t).digest("hex");return(0,KB.join)(_s(),".aws","sso","cache",`${r}.json`)}});var QB,kp,YB,UI=g(()=>{QB=require("node:fs/promises");BI();kp={},YB=async t=>{if(kp[t])return kp[t];let e=oS(t),r=await(0,QB.readFile)(e,"utf8");return JSON.parse(r)}});var Rs,JB=g(()=>{Rs="."});var GI,XB,ZB=g(()=>{GI=De(Eo()),XB=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(GI.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===GI.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var e2,WAe,sS,qI=g(()=>{e2=require("node:path");qu();WAe="AWS_CONFIG_FILE",sS=()=>process.env[WAe]||(0,e2.join)(_s(),".aws","config")});var t2,KAe,r2,n2=g(()=>{t2=require("node:path");qu();KAe="AWS_SHARED_CREDENTIALS_FILE",r2=()=>process.env[KAe]||(0,t2.join)(_s(),".aws","credentials")});var o2,QAe,YAe,Mp,HI=g(()=>{o2=De(Eo()),QAe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,YAe=["__proto__","profile __proto__"],Mp=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=QAe.exec(a);if(c){let[,u,,f]=c;Object.values(o2.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(YAe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var s2,jI,Lp,Rc,Np=g(()=>{s2=require("node:fs/promises"),jI={},Lp={},Rc=(t,e)=>Lp[t]!==void 0?Lp[t]:((!jI[t]||e?.ignoreCache)&&(jI[t]=(0,s2.readFile)(t,"utf8")),jI[t])});var zI,i2,Hu,iS=g(()=>{zI=require("node:path");ZB();qI();n2();qu();HI();Np();i2=()=>({}),Hu=async(t={})=>{let{filepath:e=r2(),configFilepath:r=sS()}=t,n=_s(),o="~/",s=e;e.startsWith(o)&&(s=(0,zI.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,zI.join)(n,r.slice(2)));let a=await Promise.all([Rc(i,{ignoreCache:t.ignoreCache}).then(Mp).then(XB).catch(i2),Rc(s,{ignoreCache:t.ignoreCache}).then(Mp).catch(i2)]);return{configFile:a[0],credentialsFile:a[1]}}});var a2,c2,u2=g(()=>{a2=De(Eo()),c2=t=>Object.entries(t).filter(([e])=>e.startsWith(a2.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var JAe,l2,d2=g(()=>{qI();u2();HI();Np();JAe=()=>({}),l2=async(t={})=>Rc(t.configFilepath??sS()).then(Mp).then(c2).catch(JAe)});var p2,f2=g(()=>{p2=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var m2,g2=g(()=>{iS();f2();m2=async t=>{let e=await Hu(t);return p2(e.configFile,e.credentialsFile)}});var h2,S2=g(()=>{UI();Np();h2={getFileRecord(){return Lp},interceptFile(t,e){Lp[t]=Promise.resolve(e)},getTokenRecord(){return kp},interceptToken(t,e){kp[t]=e}}});function aS(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var VI=g(()=>{});var y2,E2=g(()=>{Yh();VI();y2=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new oa(r.message||`Not found in ENV: ${aS(t.toString())}`,{logger:e?.logger})}}});var _2,R2=g(()=>{Yh();FI();iS();VI();_2=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=nS(r),{configFile:o,credentialsFile:s}=await Hu(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new oa(u.message||`Not found in config files w/ profile [${n}]: ${aS(t.toString())}`,{logger:r.logger})}}});var XAe,cS,WI=g(()=>{kI();XAe=t=>typeof t=="function",cS=t=>XAe(t)?async()=>await t():Zh(t)});var ue,KI=g(()=>{$I();eS();E2();R2();WI();ue=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return Gu(Xh(y2(t,{signingName:o,logger:s}),_2(e,n),cS(r)))}});var uS,lS,C2,Cs,b2,A2=g(()=>{tS();rS();uS="AWS_USE_DUALSTACK_ENDPOINT",lS="use_dualstack_endpoint",C2=!1,Cs={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:!1},b2={environmentVariableSelector:t=>Ve(t,uS,Be.ENV),configFileSelector:t=>Ve(t,lS,Be.CONFIG),default:void 0}});var dS,pS,x2,bs,T2,v2=g(()=>{tS();rS();dS="AWS_USE_FIPS_ENDPOINT",pS="use_fips_endpoint",x2=!1,bs={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:!1},T2={environmentVariableSelector:t=>Ve(t,dS,Be.ENV),configFileSelector:t=>Ve(t,pS,Be.CONFIG),default:void 0}});var D2,I2=g(()=>{J();D2=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:we(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:we(o??!1)})}});var w2,P2=g(()=>{w2=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var O2,$2=g(()=>{J();P2();O2=t=>{let e=we(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?we(typeof r=="string"?o(r):r):()=>w2({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var k2,QI,YI,M2,L2,N2,F2,B2,U2,JI=g(()=>{k2="AWS_EXECUTION_ENV",QI="AWS_REGION",YI="AWS_DEFAULT_REGION",M2="AWS_EC2_METADATA_DISABLED",L2=["in-region","cross-region","mobile","standard","legacy"],N2="/latest/meta-data/placement/region",F2="/latest/api/token",B2="x-aws-ec2-metadata-token",U2="x-aws-ec2-metadata-token-ttl-seconds"});var G2,ZAe,j2,fS,q2,exe,H2,XI=g(()=>{JI();G2=1e3,ZAe=6e4,j2=0,fS=async()=>{if(!process.env[M2]&&!(Date.now()<j2))try{let t=exe(),e=(await H2({...t,path:F2,method:"PUT",headers:{[U2]:"21600"}})).toString();return(await H2({...t,path:N2,method:"GET",headers:{[B2]:e}})).toString().trim()||q2()}catch{return q2()}},q2=()=>{j2=Date.now()+ZAe},exe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},H2=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:G2,signal:AbortSignal.timeout(G2)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var ju,zu,Ar,Zr,ZI=g(()=>{XI();ju="AWS_REGION",zu="region",Ar={environmentVariableSelector:t=>t[ju],configFileSelector:t=>t[zu],default:async()=>{let t=await fS();if(t)return t;throw new Error("Region is missing")}},Zr={preferredFile:"credentials"}});var z2,V2,W2=g(()=>{oe();z2=new Set,V2=(t,e=_o)=>{if(!z2.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else z2.add(t)}});var mS,ew=g(()=>{mS=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var K2,Q2=g(()=>{ew();K2=t=>mS(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var In,Y2=g(()=>{W2();Q2();ew();In=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=K2(n);return V2(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return mS(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var tw,J2=g(()=>{tw=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var X2,Z2=g(()=>{X2=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var eU,tU=g(()=>{eU=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var rU,nU=g(()=>{rU=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var oU,sU=g(()=>{J2();Z2();tU();nU();oU=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=eU(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=tw(o[a]?.variants,c),f=tw(s[i]?.variants,c),m=X2(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=rU(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var txe,rxe,iU,aU=g(()=>{txe="AWS_DEFAULTS_MODE",rxe="defaults_mode",iU={environmentVariableSelector:t=>t[txe],configFileSelector:t=>t[rxe],default:"legacy"}});var As,nxe,oxe,cU=g(()=>{ZI();XI();KI();eS();JI();aU();As=({region:t=ue(Ar),defaultsMode:e=ue(iU)}={})=>Gu(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return nxe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${L2.join(", ")}, got ${r}`)}}),nxe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await oxe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},oxe=async()=>process.env[k2]&&(process.env[QI]||process.env[YI])?process.env[QI]??process.env[YI]:fS()});var Br={};Ct(Br,{CONFIG_PREFIX_SEPARATOR:()=>Rs,CONFIG_USE_DUALSTACK_ENDPOINT:()=>lS,CONFIG_USE_FIPS_ENDPOINT:()=>pS,CredentialsProviderError:()=>oa,DEFAULT_PROFILE:()=>NI,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>C2,DEFAULT_USE_FIPS_ENDPOINT:()=>x2,ENV_PROFILE:()=>LI,ENV_USE_DUALSTACK_ENDPOINT:()=>uS,ENV_USE_FIPS_ENDPOINT:()=>dS,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Cs,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bs,ProviderError:()=>Dn,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,SelectorType:()=>Be,TokenProviderError:()=>Jh,booleanSelector:()=>Ve,chain:()=>Xh,externalDataInterceptor:()=>h2,fromStatic:()=>cS,fromValue:()=>Zh,getHomeDir:()=>_s,getProfileName:()=>nS,getRegionInfo:()=>oU,getSSOTokenFilepath:()=>oS,getSSOTokenFromFile:()=>YB,loadConfig:()=>ue,loadSharedConfigFiles:()=>Hu,loadSsoSessionData:()=>l2,memoize:()=>Gu,nodeDualstackConfigSelectors:()=>b2,nodeFipsConfigSelectors:()=>T2,numberSelector:()=>HB,parseKnownFiles:()=>m2,readFile:()=>Rc,resolveCustomEndpointsConfig:()=>D2,resolveDefaultsModeConfig:()=>As,resolveEndpointsConfig:()=>O2,resolveRegionConfig:()=>In});var ye=g(()=>{$p();Yh();qB();$I();kI();eS();tS();jB();rS();qu();FI();BI();UI();JB();iS();d2();g2();S2();Np();KI();WI();A2();v2();I2();$2();ZI();Y2();sU();cU()});var uU,lU,dU,pU=g(()=>{uU="AWS_ENDPOINT_URL",lU="endpoint_url",dU=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[uU,...r].join("_")];if(n)return n;let o=e[uU];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),lU].join(".")];if(a)return a}let n=e[lU];if(n)return n},default:void 0})});var sxe,ixe,fU,mU=g(()=>{ye();sxe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",ixe="ignore_configured_endpoint_urls",fU={environmentVariableSelector:t=>Ve(t,sxe,Be.ENV),configFileSelector:t=>Ve(t,ixe,Be.CONFIG),default:!1}});var Fp,gU=g(()=>{ye();pU();mU();Fp=async t=>{if(!await ue(fU)())return ue(dU(t??""))()}});var rw,axe,cxe,uxe,hU,SU,yU=g(()=>{rw=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),SU(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!hU(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},axe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,cxe=/(\d+\.){3}\d+/,uxe=/\.\./,hU=t=>axe.test(t)&&!cxe.test(t)&&!uxe.test(t),SU=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var EU=g(()=>{yU()});var _U,RU=g(()=>{_U=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var gS=g(()=>{oe()});function hS(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(Tn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Bp(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var Bp,SS=g(()=>{EU();RU();gS();Bp=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await _U(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await rw(n),n}});function lxe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function yS(t){let e=hS(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&lxe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Le(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var nw=g(()=>{oe();SS()});function CU(t){let e=yS(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),ow)}})}var dxe,ow,sw=g(()=>{nw();dxe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},ow={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:dxe.name}});function bU(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>Tn(await we(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:we(o??!1),useFipsEndpoint:we(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var AU=g(()=>{oe();gS()});var Wn,xU=g(()=>{Wn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Kn,TU=g(()=>{Kn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var be,vU=g(()=>{be=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var wn=g(()=>{vU()});var xs,DU=g(()=>{xs="endpoints"});function Pn(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Pn(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Pn).join(", ")})`:JSON.stringify(t,null,2)}var IU=g(()=>{});var Up=g(()=>{DU();IU()});var hn,iw=g(()=>{hn={}});var aw,wU=g(()=>{aw=(t,e)=>t===e});function cw(...t){for(let e of t)if(e!=null)return e}var PU=g(()=>{});var OU,$U=g(()=>{wn();OU=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new be(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new be(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var Gp,kU=g(()=>{wn();$U();Gp=(t,e)=>OU(e).reduce((r,n)=>{if(typeof r!="object")throw new be(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var uw,MU=g(()=>{uw=t=>t!=null});function lw(t,e,r){return t?e:r}var LU=g(()=>{});var dw,NU=g(()=>{dw=t=>!t});var pxe,_i,pw=g(()=>{pxe=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}$"),_i=t=>pxe.test(t)||t.startsWith("[")&&t.endsWith("]")});var ES,fw,mw,FU=g(()=>{ES=De(Eo());pw();fw={[ES.EndpointURLScheme.HTTP]:80,[ES.EndpointURLScheme.HTTPS]:443},mw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:C="",path:A="",query:x={}}=t,T=new URL(`${C}//${y}${_?`:${_}`:""}${A}`);return T.search=Object.entries(x).map(([I,q])=>`${I}=${q}`).join("&"),T}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(ES.EndpointURLScheme).includes(c))return null;let u=_i(o),f=r.includes(`${n}:${fw[c]}`)||typeof t=="string"&&t.includes(`${n}:${fw[c]}`),m=`${n}${f?`:${fw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function gw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var BU=g(()=>{});var hw,UU=g(()=>{hw=(t,e)=>t===e});var Sw,GU=g(()=>{Sw=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var yw,qU=g(()=>{yw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Ew=g(()=>{wU();PU();kU();MU();oe();LU();NU();FU();BU();UU();GU();qU()});var HU,jU=g(()=>{Ew();HU={booleanEquals:aw,coalesce:cw,getAttr:Gp,isSet:uw,isValidHostLabel:_o,ite:lw,not:dw,parseURL:mw,split:gw,stringEquals:hw,substring:Sw,uriEncode:yw}});var _S,_w=g(()=>{Ew();_S=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(Gp(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var zU,VU=g(()=>{zU=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var Ri,RS,WU,Vu=g(()=>{wn();iw();jU();_w();VU();Ri=(t,e,r)=>{if(typeof t=="string")return _S(t,r);if(t.fn)return WU.callFunction(t,r);if(t.ref)return zU(t,r);throw new be(`'${e}': ${String(t)} is not a string, function or reference.`)},RS=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=WU.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=hn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=HU[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},WU={evaluateExpression:Ri,callFunction:RS}});var KU=g(()=>{Vu()});var CS,Rw=g(()=>{Up();wn();KU();CS=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new be(`'${r}' is already defined in Reference Record.`);let n=RS(t,e);e.logger?.debug?.(`${xs} evaluateCondition: ${Pn(t)} = ${Pn(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var bS,Cw=g(()=>{wn();Vu();bS=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Ri(s,"Header value entry",e);if(typeof i!="string")throw new be(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var qp,QU,YU,bw=g(()=>{wn();_w();qp=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=YU.getEndpointProperty(o,e),r),{}),QU=(t,e)=>{if(Array.isArray(t))return t.map(r=>QU(r,e));switch(typeof t){case"string":return _S(t,e);case"object":if(t===null)throw new be(`Unexpected endpoint property: ${t}`);return YU.getEndpointProperties(t,e);case"boolean":return t;default:throw new be(`Unexpected endpoint property type: ${typeof t}`)}},YU={getEndpointProperty:QU,getEndpointProperties:qp}});var AS,Aw=g(()=>{wn();Vu();AS=(t,e)=>{let r=Ri(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new be(`Endpoint URL must be a string, got ${typeof r}`)}});var xw,Ts,JU=g(()=>{wn();Rw();Vu();Cw();bw();Aw();xw=1e8,Ts=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<xw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,C,A]=s[f],x=CS({fn:_,assign:A,argv:C},c);if(x.toAssign){let{name:T,value:I}=x.toAssign;a[T]=I}i=i>=0===x.result?m:y}if(i>=xw){let u=o[i-xw];if(u[0]===-1){let[,_]=u;throw new be(Ri(_,"Error",c))}let[f,m,y]=u;return{url:AS(f,c),properties:qp(m,c),headers:bS(y??{},c)}}throw new be("No matching endpoint.")}});var Wu,xS=g(()=>{Up();Rw();Wu=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=CS(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${xs} assign: ${a.name} := ${Pn(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var XU,ZU=g(()=>{Up();xS();Cw();bw();Aw();XU=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${xs} Resolving endpoint from template: ${Pn(n)}`);let f={url:AS(a,i)};return u!=null&&(f.headers=bS(u,i)),c!=null&&(f.properties=qp(c,i)),f}});var eG,tG=g(()=>{wn();xS();Vu();eG=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new be(Ri(n,"Error",i))}});var TS,rG,Tw,nG=g(()=>{wn();xS();ZU();tG();TS=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=XU(r,e);if(n)return n}else if(r.type==="error")eG(r,e);else if(r.type==="tree"){let n=Tw.evaluateTreeRule(r,e);if(n)return n}else throw new be(`Unknown endpoint rule: ${r}`);throw new be("Rules evaluation failed")},rG=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=Wu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Tw.evaluateRules(n,i)},Tw={evaluateRules:TS,evaluateTreeRule:rG}});var oG=g(()=>{nG()});var Hp,sG=g(()=>{oe();Up();wn();oG();Hp=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${xs} Initial EndpointParams: ${Pn(r)}`);for(let a in o){if(!W(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new be(`Missing required parameter: '${a}'`)}let i=TS(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${xs} Resolved endpoint: ${Pn(i)}`),i}});var iG,aG=g(()=>{iG=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var jp={};Ct(jp,{BinaryDecisionDiagram:()=>Wn,EndpointCache:()=>Kn,EndpointError:()=>be,customEndpointFunctions:()=>hn,decideEndpoint:()=>Ts,endpointMiddleware:()=>mxe,endpointMiddlewareOptions:()=>ow,getEndpointFromInstructions:()=>fxe,getEndpointPlugin:()=>bi,isIpAddress:()=>_i,isValidHostLabel:()=>_o,middlewareEndpointToEndpointV1:()=>Tn,resolveEndpoint:()=>Hp,resolveEndpointConfig:()=>Ci,resolveEndpointRequiredConfig:()=>iG,resolveParams:()=>Bp,toEndpointV1:()=>Tn});var fxe,Ci,mxe,bi,He=g(()=>{gU();SS();nw();sw();AU();oe();xU();TU();JU();pw();oe();iw();sG();wn();SS();gS();sw();aG();fxe=hS(Fp),Ci=bU(Fp),mxe=yS(Fp),bi=CU(Fp)});var vS,vw=g(()=>{He();vS=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>Tn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function cG(t,e,r){return{applyToStack:n=>{n.add(Qh(t,r),Dw),n.add(vS(t,e),Iw)}}}var Dw,Iw,uG=g(()=>{OI();vw();Dw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Iw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function lG(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ea(t,e):ArrayBuffer.isView(t)?Ao(t.buffer,t.byteOffset,t.byteLength):Ao(t)}var IS,DS,dG=g(()=>{IS=require("node:crypto");ta();wI();DS=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bt(lG(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,IS.createHmac)(this.algorithmIdentifier,lG(this.secret)):(0,IS.createHash)(this.algorithmIdentifier)}}});var pG,Ku,ww=g(()=>{pG=require("node:stream");yI();Ku=class extends pG.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??Ie,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Ht,sa,xo=g(()=>{Ht=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),sa=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var fG,mG=g(()=>{fG=t=>new TextEncoder().encode(t)});var gG,YAt,hG,wS,Pw,SG,yG=g(()=>{gG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YAt=Object.entries(gG).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),hG=gG.split(""),wS=6,Pw=8,SG=63});function PS(t){let e;typeof t=="string"?e=fG(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*Pw,a+=Pw;let c=Math.ceil(a/wS);i<<=c*wS-a;for(let u=1;u<=c;u++){let f=(c-u)*wS;o+=hG[(i&SG<<f)>>f]}o+="==".slice(0,4-c)}return o}var Ow=g(()=>{mG();yG()});var gxe,OS,EG=g(()=>{gxe=typeof ReadableStream=="function"?ReadableStream:function(){},OS=class extends gxe{}});var _G,RG=g(()=>{Ow();xo();EG();_G=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Ht(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??PS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,OS.prototype),a}});function $S(t){return typeof ReadableStream=="function"&&Ht(t.source)?_G(t):new Ku(t)}var CG=g(()=>{xo();ww();RG()});var Cc,$w=g(()=>{Cc=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function bG(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new Cc(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=bc(i,a);Ai(_)>0&&u.enqueue(_)}u.close()}else{let _=Mw(y,!1);if(a!==_&&(a>=0&&u.enqueue(bc(i,a)),a=_),a===-1){u.enqueue(y);return}let C=Ai(y);s+=C;let A=Ai(i[a]);if(C>=e&&A===0)u.enqueue(y);else{let x=kw(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(bc(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function kw(t,e,r){switch(e){case 0:return t[0]+=r,Ai(t[0]);case 1:case 2:return t[e].push(r),Ai(t[e])}}function bc(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ai(t){return t?.byteLength??t?.length??0}function Mw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var AG=g(()=>{$w()});function kS(t,e,r){if(Ht(t))return bG(t,e,r);let n=new xG.Readable({read(){}}),o=!1,s=0,i=["",new Cc(c=>new Uint8Array(c)),new Cc(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Mw(c,!0);if(a!==u&&(a>=0&&n.push(bc(i,a)),a=u),a===-1){n.push(c);return}let f=Ai(c);s+=f;let m=Ai(i[a]);if(f>=e&&m===0)n.push(c);else{let y=kw(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(bc(i,a))}}),t.on("end",()=>{if(a!==-1){let c=bc(i,a);Ai(c)>0&&n.push(c)}n.push(null)}),n}var xG,TG=g(()=>{xG=require("node:stream");$w();AG();xo()});var vG,DG=g(()=>{vG=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
|
|
13
13
|
`),a){let _=r(await c);f.enqueue(`${s}:${_}\r
|
|
14
14
|
`),f.enqueue(`\r
|
|
15
15
|
`)}f.close()}else f.enqueue(`${(n(m)||0).toString(16)}\r
|
|
16
16
|
${m}\r
|
|
17
|
-
`)}})}});function
|
|
17
|
+
`)}})}});function wG(t,e){let r=t,n=t;if(Ht(n))return vG(n,e);let{base64Encoder:o,bodyLengthChecker:s,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:c}=e,u=o!==void 0&&i!==void 0&&a!==void 0&&c!==void 0,f=u?c(i,r):void 0;Promise.resolve(f).catch(()=>{});let m=new IG.Readable({read(){r.resume()}});return r.on("data",y=>{let _=s(y)||0;_!==0&&(m.push(`${_.toString(16)}\r
|
|
18
18
|
`),m.push(y),m.push(`\r
|
|
19
19
|
`)||r.pause())}),r.on("error",y=>{m.destroy(y)}),r.pause(),r.on("end",async()=>{try{if(m.push(`0\r
|
|
20
20
|
`),u){let y=o(await f);m.push(`${a}:${y}\r
|
|
21
21
|
`),m.push(`\r
|
|
22
|
-
`)}m.push(null)}catch(y){m.destroy(y)}}),m}var
|
|
23
|
-
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 o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return wS(s);if(o==="hex")return zn(s);if(o===void 0||o==="utf8"||o==="utf-8")return $G(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(LG);if(e=!0,NG(t))return n(t);if(Ht(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},NG=t=>typeof Blob=="function"&&t instanceof Blob});var UG,kS,Lw,Nw=g(()=>{UG=require("node:stream");Pp();Mw();xo();kS=t=>sa(t)?$w(t):Ht(t)?kw(t):new Promise((e,r)=>{let n=new Lw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=Vn(this.bufferedBytes);e(s)})}),Lw=class extends UG.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var MS,GG,LS,qG=g(()=>{MS=require("node:stream");ta();BG();Nw();GG="The stream has already been transformed.",LS=t=>{if(!(t instanceof MS.Readable))try{return FG(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(GG);return e=!0,await kS(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?Ao(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(GG);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof MS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,MS.Readable.toWeb(t)}})}});async function HG(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var jG=g(()=>{});async function zG(t){if(Ht(t)||sa(t))return HG(t);let e=new Fw.PassThrough,r=new Fw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var Fw,VG=g(()=>{Fw=require("node:stream");jG();xo()});var To={};Ct(To,{ChecksumStream:()=>Wu,Hash:()=>vS,LazyJsonString:()=>qe,NumericValue:()=>Y,Uint8ArrayBlobAdapter:()=>bc,_parseEpochTimestamp:()=>na,_parseRfc3339DateTimeWithOffset:()=>Hh,_parseRfc7231DateTime:()=>jh,calculateBodyLength:()=>Es,concatBytes:()=>Vn,copyDocumentWithTransform:()=>dB,createBufferedReadable:()=>$S,createChecksumStream:()=>OS,dateToUtcString:()=>br,deserializerMiddleware:()=>Kh,deserializerMiddlewareOption:()=>Aw,expectBoolean:()=>mB,expectByte:()=>Lh,expectFloat32:()=>Dp,expectInt:()=>gB,expectInt32:()=>kh,expectLong:()=>ku,expectNonNull:()=>hB,expectNumber:()=>$u,expectObject:()=>hI,expectShort:()=>Mh,expectString:()=>SB,expectUnion:()=>Fh,fromArrayBuffer:()=>Ao,fromBase64:()=>Xe,fromHex:()=>Wh,fromString:()=>ea,fromUtf8:()=>qt,generateIdempotencyToken:()=>xr,getAwsChunkedEncodingStream:()=>TG,getSerdePlugin:()=>oG,handleFloat:()=>EB,hasOwn:()=>W,headStream:()=>PG,isArrayBuffer:()=>Ou,isBlob:()=>sa,isReadableStream:()=>Ht,limitedParseDouble:()=>Uh,limitedParseFloat:()=>_B,limitedParseFloat32:()=>RB,logger:()=>Mu,nv:()=>Vh,parseBoolean:()=>fB,parseEpochTimestamp:()=>ys,parseRfc3339DateTime:()=>xB,parseRfc3339DateTimeWithOffset:()=>Ss,parseRfc7231DateTime:()=>gn,quoteHeader:()=>qh,sdkStreamMixin:()=>LS,serializerMiddleware:()=>TS,serializerMiddlewareOption:()=>xw,splitEvery:()=>zh,splitHeader:()=>Fu,splitStream:()=>zG,streamCollector:()=>kS,strictParseByte:()=>Gh,strictParseDouble:()=>Ip,strictParseFloat:()=>yB,strictParseFloat32:()=>Bh,strictParseInt:()=>bB,strictParseInt32:()=>AB,strictParseLong:()=>SI,strictParseShort:()=>ra,toBase64:()=>De,toHex:()=>zn,toUint8Array:()=>bt,toUtf8:()=>ze,v4:()=>Ku});var WG,bc,oxe,Ku,xr,j=g(()=>{WG=require("node:crypto");sB();mI();aB();Oh();cB();lB();pB();TB();vB();yI();DB();PB();OB();$B();MB();xI();NB();TI();Pp();ta();fI();DI();sG();bw();aG();Tw();yG();CG();vG();OG();qG();VG();xo();Nw();oe();bc=class extends iB(ze,qt,De,Xe){},oxe=WG.getRandomValues,Ku=uB(oxe),xr=Ku});var At,Qu=g(()=>{j();At=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return bc.mutate(t);if(!t)return bc.mutate(new Uint8Array);let r=e.streamCollector(t);return bc.mutate(await r)}});function vo(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var NS=g(()=>{});var Zt,Yu=g(()=>{Zt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function FS(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Bw=g(()=>{});var KG,QG=g(()=>{Bw();KG=async function(e,r){let n=new e;return await FS(r,o=>{n.update(o)}),n.digest()}});var YG,Ju,Uw=g(()=>{YG=require("node:stream");j();Ju=class extends YG.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bt(e))}catch(o){return n(o)}n()}}});var JG,XG,sxe,ZG=g(()=>{JG=require("node:fs");Uw();XG=(t,e)=>new Promise((r,n)=>{if(!sxe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,JG.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new Ju(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),sxe=t=>typeof t.path=="string"});var e4,t4=g(()=>{Uw();e4=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new Ju(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function Gw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=ixe[(i>>4)*4+(i&3)],y=(r+a&ia)+(u+axe[i]&ia)&ia;n=n+((y<<m|y>>>32-m)>>>0)&ia,r=f}t[0]=t[0]+r&ia,t[1]=t[1]+n&ia,t[2]=t[2]+o&ia,t[3]=t[3]+s&ia}var Xu,r4,ia,ixe,axe,qw=g(()=>{j();Xu=class{digestLength=16;state=Uint32Array.from(r4);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bt(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(Gw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);Gw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),Gw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(r4),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},r4=[1732584193,4023233417,2562383102,271733878],ia=4294967295,ixe=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),axe=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function uxe(){return class{digestLength=16;hash=(0,BS.createHash)("md5");update(e){this.hash.update(bt(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,BS.createHash)("md5")}}}var BS,cxe,Hw,n4=g(()=>{BS=require("node:crypto");j();qw();cxe=(()=>{try{return(0,BS.createHash)("md5"),!0}catch{return!1}})(),Hw=cxe?uxe():Xu});var o4,jw,Ac,zw=g(()=>{o4=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;o4[t]=e>>>0}jw=4294967295,Ac=class{digestLength=4;checksum=jw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^o4[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^jw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=jw}}});function lxe(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Vw,s4,Do,i4=g(()=>{Vw=Ie(require("node:zlib"));zw();s4=typeof Vw.crc32=="function"?Vw.crc32:void 0,Do=s4?lxe(s4):Ac});var Tr,a4,dxe,Io,c4,pxe,US=g(()=>{j();Tr=64,a4=32,dxe=2**53-1,Io=class t{digestLength=a4;state=Int32Array.from(c4);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(Tr*2);for(let i=0;i<Tr;++i)s[i]=54^r[i],s[i+Tr]=92^r[i];n.update(s.subarray(0,Tr)),o.update(s.subarray(Tr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bt(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>dxe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===Tr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(c4),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%Tr>=Tr-8){for(let a=n;a<Tr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<Tr-8;++a)s.setUint8(a,0);s.setUint32(Tr-8,Math.floor(o/4294967296),!1),s.setUint32(Tr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(a4);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(Tr);return s.set(o),s}if(r.byteLength<Tr){let n=new Uint8Array(Tr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<Tr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let A=n[y-2],x=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[y-15];let T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[y]=(x+n[y-7]|0)+(T+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(pxe[y]+n[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+C|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},c4=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pxe=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function mxe(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,jp.createHmac)("sha256",gxe(this.secret)):(0,jp.createHash)("sha256")}}}function gxe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var jp,fxe,Sn,u4=g(()=>{jp=require("node:crypto");US();fxe=(()=>{try{return(0,jp.createHash)("sha256"),!0}catch{return!1}})(),Sn=fxe?mxe():Io});var hxe,Sxe,yxe,GS,Exe,qS,l4=g(()=>{j();US();({digest:hxe,sign:Sxe,importKey:yxe}=globalThis?.crypto?.subtle??{}),GS=typeof hxe=="function"&&typeof Sxe=="function"&&typeof yxe=="function"?globalThis.crypto.subtle:void 0,Exe=8*1024*1024,qS=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=Exe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(GS){if(this.secret){this.finished=!0;let o=await GS.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await GS.sign("HMAC",o,e);return new Uint8Array(s)}let n=await GS.digest("SHA-256",e);return new Uint8Array(n)}let r=new Io(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Io(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var zp={};Ct(zp,{Crc32:()=>Do,Crc32Js:()=>Ac,Crc32Node:()=>Do,Md5:()=>Hw,Md5Js:()=>Xu,Md5Node:()=>Hw,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn,Sha256WebCrypto:()=>qS,blobHasher:()=>KG,blobReader:()=>FS,fileStreamHasher:()=>XG,readableStreamHasher:()=>e4});var On=g(()=>{QG();ZG();t4();qw();n4();zw();i4();US();u4();l4();Bw()});function d4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var aa,Ww=g(()=>{j();aa=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&d4(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&d4(e),parseInt(zn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var Zu,p4,f4,_xe,Rxe,Cxe,bxe,Axe,xxe,Txe,vxe,Dxe,Kw=g(()=>{oe();j();Ww();Zu=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!W(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(aa.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!Dxe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Wh(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:f4,value:!0};break;case 1:r[s]={type:f4,value:!1};break;case 2:r[s]={type:_xe,value:e.getInt8(n++)};break;case 3:r[s]={type:Rxe,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:Cxe,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:bxe,value:new aa(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:Axe,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:xxe,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:Txe,value:new Date(new aa(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:vxe,value:`${zn(c.subarray(0,4))}-${zn(c.subarray(4,6))}-${zn(c.subarray(6,8))}-${zn(c.subarray(8,10))}-${zn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(p4||(p4={}));f4="boolean",_xe="byte",Rxe="short",Cxe="integer",bxe="long",Axe="binary",xxe="string",Txe="timestamp",vxe="uuid",Dxe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function g4({byteLength:t,byteOffset:e,buffer:r}){if(t<Ixe)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(m4,!1),i=n.getUint32(ca,!1),a=n.getUint32(t-xc,!1),c=new Do;if(c.update(new Uint8Array(r,e,ca)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+ca,t-(ca+xc))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+ca+xc,s),body:new Uint8Array(r,e+ca+xc+s,o-s-(ca+xc+xc))}}var m4,ca,xc,Ixe,h4=g(()=>{On();m4=4,ca=m4*2,xc=4,Ixe=ca+xc*2});var el,Qw=g(()=>{On();Kw();h4();el=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new Zu(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Do;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=g4(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var tl,Yw=g(()=>{tl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var rl,Jw=g(()=>{rl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var nl,Xw=g(()=>{nl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var ol,Zw=g(()=>{ol=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function HS(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let C=Math.min(4-r,_);if(o.set(c.slice(m,m+C),r),r+=C,m+=C,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var eP=g(()=>{});function S4(t,e){let r=Vp(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Vp(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var tP=g(()=>{});var Tc,y4,rP=g(()=>{Qw();Yw();Jw();Xw();Zw();eP();tP();Tc=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new el(e,r),this.utfEncoder=e}deserialize(e,r){let n=HS(e);return new nl({messageStream:new tl({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Vp(r,this.utfEncoder)})}serialize(e,r){return new rl({messageStream:new ol({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},y4=t=>new Tc(t)});async function*wxe(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var E4,Wp,_4,R4=g(()=>{E4=require("node:stream");rP();Wp=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Tc({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:wxe(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return E4.Readable.from(this.universalMarshaller.serialize(e,r))}},_4=t=>new Wp(t)});var C4,b4,A4=g(()=>{C4=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),b4=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var x4,T4=g(()=>{x4=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var jS,v4=g(()=>{oe();ae();j();jS=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let q in y)if(W(y,q)&&q!=="__type"){_=q;break}let{additionalHeaders:C,body:A,eventType:x,explicitPayloadContentType:T}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:T??u},...C},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let C="";for(let x in _)if(W(_,x)&&x!=="__type"){C=x;break}let A=_[C].body;if(C===(o??"initial-response")){let x=await this.deserializer.read(r,A);return delete x[i],{[u]:!0,...x}}else if(C in c){let x=c[C];if(x.isStructSchema()){let T={},I=!1;for(let[q,H]of x.structIterator()){let{eventHeader:me,eventPayload:et}=H.getMergedTraits();if(I=I||!!(me||et),et)H.isBlobSchema()?T[q]=A:H.isStringSchema()?T[q]=(this.serdeContext?.utf8Encoder??ze)(A):H.isStructSchema()&&(T[q]=await this.deserializer.read(H,A));else if(me){let ot=_[C].headers[q]?.value;ot!=null&&(H.isNumericSchema()?ot&&typeof ot=="object"&&"bytes"in ot?T[q]=BigInt(ot.toString()):T[q]=Number(ot):T[q]=ot)}}return{[C]:await this.readEventMember(x,A,I,T)}}return{[C]:await this.deserializer.read(x,A)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)W(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:C}=await m.next();if(_)break;yield C}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Fe.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,C]of y.structIterator()){let{eventHeader:A,eventPayload:x}=C.getMergedTraits();if(x)i=_;else if(A){let T=n[e][_],I="binary";C.isNumericSchema()?(-2)**31<=T&&T<=2**31-1?I="integer":I="long":C.isTimestampSchema()?I="timestamp":C.isStringSchema()?I="string":C.isBooleanSchema()&&(I="boolean"),T!=null&&(u[_]={type:I,value:T},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??qt)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var zS={};Ct(zS,{EventStreamCodec:()=>el,EventStreamMarshaller:()=>Wp,EventStreamSerde:()=>jS,HeaderMarshaller:()=>Zu,Int64:()=>aa,MessageDecoderStream:()=>tl,MessageEncoderStream:()=>rl,SmithyMessageDecoderStream:()=>nl,SmithyMessageEncoderStream:()=>ol,UniversalEventStreamMarshaller:()=>Tc,eventStreamSerdeProvider:()=>_4,getChunkedStream:()=>HS,getMessageUnmarshaller:()=>Vp,getUnmarshalledStream:()=>S4,iterableToReadableStream:()=>b4,readableStreamToIterable:()=>C4,resolveEventStreamSerdeConfig:()=>x4,universalEventStreamSerdeProvider:()=>y4});var VS=g(()=>{Qw();Kw();Ww();Yw();Jw();Xw();Zw();R4();A4();rP();eP();tP();T4();v4()});var ua,WS=g(()=>{oe();ae();oe();Yu();ua=class extends Zt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Fe(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return re}getResponseType(){return ft}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=B.of(r.input),s=Ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!hp(e.hostname))throw new Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(VS(),zS)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var la,D4=g(()=>{oe();ae();j();oe();WS();Qu();NS();la=class extends ua{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=B.of(e?.input),f=[],m=[],y=!1,_,C=new re({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(C,c),this.setHostPrefix(C,e,o);let A=Ro(e.traits);if(A.http){C.method=A.http[0];let[x,T]=A.http[1].split("?");C.path=="/"?C.path=x:C.path+=x;let I=new URLSearchParams(T??"");for(let[q,H]of I)i[q]=H}}for(let[A,x]of u.structIterator()){let T=x.getMergedTraits()??{},I=o[A];if(I==null&&!x.isIdempotencyToken()){if(T.httpLabel&&(C.path.includes(`{${A}+}`)||C.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(T.httpPayload)x.isStreaming()?x.isStructSchema()?o[A]&&(_=await this.serializeEventStream({eventStream:o[A],requestSchema:u})):_=I:(s.write(x,I),_=s.flush());else if(T.httpLabel){s.write(x,I);let q=s.flush();C.path.includes(`{${A}+}`)?C.path=C.path.replace(`{${A}+}`,q.split("/").map(vo).join("/")):C.path.includes(`{${A}}`)&&(C.path=C.path.replace(`{${A}}`,vo(q)))}else if(T.httpHeader)s.write(x,I),a[T.httpHeader.toLowerCase()]=String(s.flush());else if(typeof T.httpPrefixHeaders=="string")for(let q in I){if(!W(I,q))continue;let H=I[q],me=T.httpPrefixHeaders+q;s.write([x.getValueSchema(),{httpHeader:me}],H),a[me.toLowerCase()]=s.flush()}else T.httpQuery||T.httpQueryParams?this.serializeQuery(x,I,i):(y=!0,f.push(A),m.push(x))}if(y&&o){let[A,x]=(u.getName(!0)??"#Unknown").split("#"),T=u.getSchema()[6],I=[3,A,x,u.getMergedTraits(),f,m,void 0];T?I[6]=T:I.pop(),s.write(I,o),_=s.flush()}return C.headers=a,C.query=i,C.body=_,C}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(W(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await At(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await At(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=B.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=LS(n.body);else if(n.body){let A=await At(n.body,r);A.byteLength>0&&(i[m]=await c.read(y,A))}}else if(_.httpHeader){let C=String(_.httpHeader).toLowerCase(),A=n.headers[C];if(A!=null)if(y.isListSchema()){let x=y.getValueSchema();x.getMergedTraits().httpHeader=C;let T;x.isTimestampSchema()&&x.getSchema()===4?T=zh(A,",",2):T=Fu(A);let I=[];for(let q of T)I.push(await c.read(x,q.trim()));i[m]=I}else i[m]=await c.read(y,A)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let C in n.headers)if(W(n.headers,C)&&C.startsWith(_.httpPrefixHeaders)){let A=n.headers[C],x=y.getValueSchema();x.getMergedTraits().httpHeader=C,i[m][C.slice(_.httpPrefixHeaders.length)]=await c.read(x,A)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Qn,nP=g(()=>{oe();ae();oe();WS();Qu();Qn=class extends ua{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=B.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new re({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let C={};for(let[A]of c.structIterator())A!==_&&m[A]!=null&&(C[A]=m[A]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:C})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await At(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var KS,oP=g(()=>{NS();KS=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>vo(a)).join("/"):vo(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function QS(t,e){return new Kp(t,e)}var Kp,I4=g(()=>{oe();oP();Kp=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new re({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=KS(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ze(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var da=g(()=>{});var pa,sP=g(()=>{ae();j();Yu();da();pa=class extends Zt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=B.of(e);if(n.isListSchema())return Fu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Xe)(r);if(n.isTimestampSchema())switch(Ze(n,this.settings)){case 5:return Hh(r);case 6:return jh(r);case 7:return na(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Y(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ze)((this.serdeContext?.base64Decoder??Xe)(e))}}});var fa,w4=g(()=>{ae();j();Yu();sP();fa=class extends Zt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new pa(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=B.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ze;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??qt;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var sl,iP=g(()=>{ae();j();Yu();da();sl=class extends Zt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ze(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=br(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??De)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:qh(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??De)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=xr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var ma,P4=g(()=>{ae();iP();ma=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new sl(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=B.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var O4,YS,$4=g(()=>{O4=Ie(Eo()),YS=class{name;kind;values;constructor({name:e,kind:r=O4.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var JS,k4=g(()=>{JS=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var vs,Ds,M4=g(()=>{vs=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),Ds=t=>({requestHandler:t.httpHandler()})});function aP(t){return e=>async r=>{let n=r.request;if(re.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(L4)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[L4]:String(i)})}catch{}}return e({...r,request:n})}}var L4,cP,Is,N4=g(()=>{oe();L4="content-length";cP={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Is=t=>({applyToStack:e=>{e.add(aP(t.bodyLengthChecker),cP)}})});var ga,Pxe,XS=g(()=>{ga=t=>encodeURIComponent(t).replace(/[!'()*]/g,Pxe),Pxe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var F4,B4=g(()=>{XS();F4=t=>t.split("/").map(ga).join("/")});function U4(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=ga(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${ga(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${ga(n)}`),e.push(o)}}return e.join("&")}var G4=g(()=>{XS()});var yn,vc=g(()=>{yn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var il,uP=g(()=>{il=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function ZS(){if(Qp===void 0)try{if(typeof Buffer!="function")Qp=!1;else{let t=JSON.parse(Buffer.from([123,125]));Qp=t!==null&&typeof t=="object"}}catch{Qp=!1}return Qp}var Qp,lP=g(()=>{});function al(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?$xe(n,e)?e:new Y(n,"bigDecimal"):Oxe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?kxe(n):BigInt(n)}return e}function Oxe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function $xe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return dP(t)===dP(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===dP(n):!1}function dP(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function kxe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var e0=g(()=>{j()});function cl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(pP in r)return r[pP];let n=t0(e,new Set);return r[pP]=n,n}return t0(e,new Set)}function t0(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(t0(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(t0(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var pP,r0=g(()=>{ae();pP=Symbol.for("@aws-sdk/reviver")});var q4,H4=g(()=>{Qu();j();q4=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Dc(t,e,r){let n;if(ZS()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await q4(t,e)),n.length===0)return{};let o=r&&cl(r)?al:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var z4,j4,fP,V4,W4,n0,K4,Yp=g(()=>{Qu();H4();lP();e0();r0();z4=async(t,e)=>{let r=await Dc(t,e);return r.message=r.message??r.Message,r},j4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),fP=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},V4=(t,e)=>K4(t,e,["header","code","type"]),W4=(t,e,r=!1)=>K4(t,e,r?["code","header","type"]:["type","code","header"]),n0=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},K4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=j4(t??{},"x-amzn-errortype");if(o!==void 0)return fP(t[o]);break;case"code":let s=j4(e??{},"code");if(s&&e[s]!==void 0)return fP(e[s]);break;case"type":if(e?.__type!==void 0)return fP(e.__type);break}}});function ws(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var o0=g(()=>{});var ul,mP=g(()=>{da();ae();j();vc();uP();lP();e0();r0();Yp();o0();oe();ul=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=cl(e)?al:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&ZS()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Dc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)W(a,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!W(i,a))continue;a==="__proto__"&&ws(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new il(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!W(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var s0,Q4,Y4=g(()=>{j();s0=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>Q4+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),Q4=e),this.string=ze(this)}return this.string}},Q4=0});function gP(t){return s0.allocUnsafe(t)}var i0,J4,X4,Mxe,Lxe,ll,a0,c0,Z4,Nxe,Fxe,Bxe,Ps,eq,dl,hP=g(()=>{da();ae();j();vc();oe();Y4();i0=new TextEncoder,J4=123,X4=125,Mxe=91,Lxe=93,ll=34,a0=58,c0=44,Z4=92,Nxe=new Uint8Array([116,114,117,101]),Fxe=new Uint8Array([102,97,108,115,101]),Bxe=new Uint8Array([110,117,108,108]),Ps=new Array(128).fill(null);Ps[8]="b";Ps[9]="t";Ps[10]="n";Ps[12]="f";Ps[13]="r";Ps[34]='"';Ps[92]="\\";for(let t=0;t<32;t++)Ps[t]===null&&(Ps[t]="u00"+t.toString(16).padStart(2,"0"));eq=2048;dl=class t extends yn{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=gP(eq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),i0.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=gP(eq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=gP(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ll;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ll,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ll;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ps[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=Z4;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=i0.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ll}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=Z4,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ll;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ll,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(Bxe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof Y?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??De)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Nxe,i),i+=4):(a.set(Fxe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=J4;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=c0),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=a0,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=a0,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=c0),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=a0,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=X4}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=i0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Mxe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=c0),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Lxe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!W(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=i0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=J4;let i=!0;for(let a in r){if(!W(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=c0),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=a0,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=X4}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var pl,SP=g(()=>{vc();mP();hP();pl=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new dl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ul(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var u0,tq=g(()=>{nP();ae();oe();SP();Yp();u0=class extends Qn{codec=new pl({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=n0(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=Fe.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let q=Fe.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(q);let H=u.getBaseException();if(H){let me=u.getErrorCtor(H);throw Object.assign(new me({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=B.of(m),_=u.getErrorCtor(m),C=o.message??o.Message??"Unknown",A=new _({}),x={},T=this.codec.createDeserializer();for(let[I,q]of y.structIterator())o[I]!=null&&(x[I]=T.readObject(q,o[I]));throw Object.assign(A,a,{$fault:y.getMergedTraits().error,message:C},x)}getDefaultContentType(){return"application/json"}}});var fl,yP=g(()=>{da();ae();j();j();oe();vc();uP();e0();r0();Yp();o0();fl=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=cl(e)?al:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Dc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new il(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!W(i,y))continue;let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)W(r,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;a==="__proto__"&&ws(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var rq,l0,nq=g(()=>{j();rq="\u039D",l0=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${rq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${rq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var ml,EP=g(()=>{da();ae();j();vc();nq();o0();oe();ml=class extends yn{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new l0;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&ws(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!W(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!W(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&ws(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??De)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;let c=r[a];a==="__proto__"&&ws(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var d0,oq=g(()=>{vc();yP();EP();d0=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ml(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new fl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var wo={};Ct(wo,{Field:()=>YS,Fields:()=>JS,FromStringShapeDeserializer:()=>pa,HttpBindingProtocol:()=>la,HttpInterceptingShapeDeserializer:()=>fa,HttpInterceptingShapeSerializer:()=>ma,HttpProtocol:()=>ua,HttpRequest:()=>re,HttpResponse:()=>ft,JsonCodec:()=>d0,JsonCodec2:()=>pl,JsonShapeDeserializer:()=>fl,JsonShapeDeserializer2:()=>ul,JsonShapeSerializer:()=>ml,JsonShapeSerializer2:()=>dl,RequestBuilder:()=>Kp,RpcProtocol:()=>Qn,SerdeContext:()=>Zt,SmithyRpcV2JsonProtocol:()=>u0,ToStringShapeSerializer:()=>sl,buildQueryString:()=>U4,collectBody:()=>At,contentLengthMiddleware:()=>aP,contentLengthMiddlewareOptions:()=>cP,determineTimestampFormat:()=>Ze,escapeUri:()=>ga,escapeUriPath:()=>F4,extendedEncodeURIComponent:()=>vo,getContentLengthPlugin:()=>Is,getHttpHandlerExtensionConfiguration:()=>vs,isValidHostname:()=>hp,loadJsonRpcErrorCode:()=>W4,loadRestJsonErrorCode:()=>V4,loadSmithyRpcV2JsonErrorCode:()=>n0,parseJsonBody:()=>Dc,parseJsonErrorBody:()=>z4,parseQueryString:()=>Sp,parseUrl:()=>Cr,requestBuilder:()=>QS,resolveHttpHandlerRuntimeConfig:()=>Ds,resolvedPath:()=>KS});var V=g(()=>{Qu();NS();D4();WS();nP();I4();oP();sP();w4();P4();iP();da();Yu();$4();k4();oe();oe();oe();M4();N4();XS();B4();G4();oe();oe();tq();Yp();oq();EP();yP();SP();hP();mP()});var sq,iq,aq,cq,uq,lq,dq=g(()=>{sq=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],iq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],aq=["TimeoutError","RequestTimeout","RequestTimeoutException"],cq=[500,502,503,504],uq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],lq=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function CP(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Jp,p0,_P,RP,Os,ha,f0,gl=g(()=>{dq();Jp=t=>t?.$retryable!==void 0,p0=t=>sq.includes(t.name),_P=t=>t.$metadata?.clockSkewCorrected,RP=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Os=t=>t.$metadata?.httpStatusCode===429||iq.includes(t.name)||t.$retryable?.throttling==!0,ha=(t,e=0)=>t?.name!=="AbortError"&&(Jp(t)||_P(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||aq.includes(t.name)||uq.includes(t?.code||"")||lq.includes(t?.code||"")||cq.includes(t.$metadata?.httpStatusCode||0)||RP(t)||CP(t)||t.cause!==void 0&&e<=10&&ha(t.cause,e+1)),f0=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!ha(t)}return!1}});var m0,Xp,g0,hl,bP,AP,h0,Sa,ya,Zp=g(()=>{m0=100,Xp=2e4,g0=500,hl=500,bP=5,AP=10,h0=1,Sa="amz-sdk-invocation-id",ya="amz-sdk-request"});function xP(t,e){if(ft.isInstance(t))for(let r in t.headers){if(!W(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(gn(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function pq(t,e){return xP(t,e)}var TP=g(()=>{oe();V();j()});var S0,vP=g(()=>{S0=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function DP(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(Gxe(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=re.isInstance(m);for(y&&(m.headers[Sa]=Ku());;)try{y&&(m.headers[ya]=`attempt=${u+1}; max=${i}`);let{response:_,output:C}=await r(o);return s.recordSuccess(a),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=f,{response:_,output:C}}catch(_){let C=qxe(_,e.logger);if(c=S0(_),y&&t(m))throw(n.logger instanceof Nr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,C)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let A=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+A,A>0&&await Uxe(A)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function fq(t){let e=DP(t);return r=>({applyToStack:n=>{n.add(e(r),IP)}})}var Uxe,Gxe,qxe,Hxe,IP,wP=g(()=>{J();V();j();gl();Zp();TP();vP();Uxe=t=>new Promise(e=>setTimeout(e,t)),Gxe=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",qxe=(t,e)=>{let r={error:t,errorType:Hxe(t)},n=xP(t.$response,e);return n&&(r.retryAfterHint=n),r},Hxe=t=>Os(t)?"THROTTLING":ha(t)?"TRANSIENT":f0(t)?"SERVER_ERROR":"CLIENT_ERROR",IP={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ea,y0=g(()=>{gl();Ea=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Os(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var xt,Sl=g(()=>{xt=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var E0,mq=g(()=>{Sl();E0=class{x=xt.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var ef,gq=g(()=>{ef=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var er,Po,Yn,Ic=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(er||(er={}));Po=3,Yn=er.STANDARD});var _0,Oo,tf=g(()=>{mq();gq();Ic();Sl();_0={incompatible:1,attempts:2,capacity:3},Oo=class{mode=er.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Po,this.baseDelay??=xt.delay(),this.retryBackoffStrategy??=new E0}async acquireInitialRetryToken(e){return new ef(xt.delay(),0,void 0,xt.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?xt.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new ef(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=xt.v2026&&o===_0.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Po}`),Po}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:_0.incompatible,i=o<n?0:_0.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:_0.capacity;return s||i||a}getCapacityCost(e){return e===xt.modifiedCostType()?xt.throttlingCost():xt.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var yl,PP=g(()=>{y0();tf();Ic();yl=class{mode=er.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Ea,this.standardRetryStrategy=r?new Oo({maxAttempts:typeof e=="number"?e:3,...r}):new Oo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var R0,hq=g(()=>{tf();Sl();R0=class extends Oo{computeNextBackoffDelay;constructor(e,r=xt.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var Sq,yq=g(()=>{Sq=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var C0,OP=g(()=>{C0=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var b0,$P=g(()=>{gl();b0=t=>t?Jp(t)||p0(t)||Os(t)||ha(t):!1});var El,jxe,kP=g(()=>{V();j();gl();Ic();Zp();vP();yq();OP();$P();El=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=er.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??b0,this.delayDecider=r?.delayDecider??C0,this.retryQuota=r?.retryQuota??Sq(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Po}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(re.isInstance(c)&&(c.headers[Sa]=Ku());;)try{re.isInstance(c)&&(c.headers[ya]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=S0(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(Os(f)?500:100,s),y=jxe(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(C=>setTimeout(C,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},jxe=t=>{if(!ft.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var A0,Eq=g(()=>{y0();Ic();kP();A0=class extends El{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new Ea,this.mode=er.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var x0,T0,$s,ks,MP,LP,Ms,_q=g(()=>{J();PP();tf();Ic();Sl();x0="AWS_MAX_ATTEMPTS",T0="max_attempts",$s={environmentVariableSelector:t=>{let e=t[x0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${x0} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[T0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${T0} mast be a number, got "${e}"`);return r},default:Po},ks=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=Po,defaultBaseDelay:s=xt.delay()}=e??{},i=we(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await we(n)()===er.ADAPTIVE?new yl(i,{maxAttempts:u,baseDelay:s}):new Oo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},MP="AWS_RETRY_MODE",LP="retry_mode",Ms={environmentVariableSelector:t=>t[MP],configFileSelector:t=>t[LP],default:Yn}});var NP,FP,Rq,Cq=g(()=>{V();Zp();NP=()=>t=>async e=>{let{request:r}=e;return re.isInstance(r)&&(delete r.headers[Sa],delete r.headers[ya]),t(e)},FP={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Rq=t=>({applyToStack:e=>{e.addRelativeTo(NP(),FP)}})});var rf={};Ct(rf,{AdaptiveRetryStrategy:()=>yl,CONFIG_MAX_ATTEMPTS:()=>T0,CONFIG_RETRY_MODE:()=>LP,ConfiguredRetryStrategy:()=>R0,DEFAULT_MAX_ATTEMPTS:()=>Po,DEFAULT_RETRY_DELAY_BASE:()=>m0,DEFAULT_RETRY_MODE:()=>Yn,DefaultRateLimiter:()=>Ea,DeprecatedAdaptiveRetryStrategy:()=>A0,DeprecatedStandardRetryStrategy:()=>El,ENV_MAX_ATTEMPTS:()=>x0,ENV_RETRY_MODE:()=>MP,INITIAL_RETRY_TOKENS:()=>hl,INVOCATION_ID_HEADER:()=>Sa,MAXIMUM_RETRY_DELAY:()=>Xp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>$s,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Ms,NO_RETRY_INCREMENT:()=>h0,REQUEST_HEADER:()=>ya,RETRY_COST:()=>bP,RETRY_MODES:()=>er,Retry:()=>xt,StandardRetryStrategy:()=>Oo,THROTTLING_RETRY_DELAY_BASE:()=>g0,TIMEOUT_RETRY_COST:()=>AP,defaultDelayDecider:()=>C0,defaultRetryDecider:()=>b0,getOmitRetryHeadersPlugin:()=>Rq,getRetryAfterHint:()=>pq,getRetryPlugin:()=>xi,isBrowserNetworkError:()=>RP,isClockSkewCorrectedError:()=>_P,isClockSkewError:()=>p0,isNodeJsHttp2TransientError:()=>CP,isRetryableByTrait:()=>Jp,isServerError:()=>f0,isThrottlingError:()=>Os,isTransientError:()=>ha,omitRetryHeadersMiddleware:()=>NP,omitRetryHeadersMiddlewareOptions:()=>FP,resolveRetryConfig:()=>ks,retryMiddleware:()=>zxe,retryMiddlewareOptions:()=>IP});var zxe,xi,en=g(()=>{G3();wP();gl();PP();hq();y0();tf();Ic();Zp();Sl();Eq();kP();OP();$P();_q();Cq();wP();TP();zxe=DP(ND),xi=fq(ND)});function We(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var BP=g(()=>{en();xt.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function bq(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Aq=g(()=>{});function _l(t){return t}var UP,GP,Ls,xq=g(()=>{V();UP=t=>e=>async r=>{if(!re.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},GP={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ls=t=>({applyToStack:e=>{e.add(UP(t),GP)}})});var qP,HP,Ns,Tq=g(()=>{qP=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},HP={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ns=t=>({applyToStack:e=>{e.add(qP(),HP)}})});var v0,jP=g(()=>{v0={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _a,zP,D0,VP,WP,nf,vq=g(()=>{_a={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},zP=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");zP||(globalThis.awslambda=globalThis.awslambda||{});D0=class{static PROTECTED_KEYS=_a;isProtectedKey(e){return Object.values(_a).includes(e)}getRequestId(){return this.get(_a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_a.X_RAY_TRACE_ID)}getTenantId(){return this.get(_a.TENANT_ID)}getTraceparent(){return this.get(_a.TRACEPARENT)}getTracestate(){return this.get(_a.TRACESTATE)}getBaggage(){return this.get(_a.BAGGAGE)}},VP=class extends D0{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},WP=class t extends D0{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await WP.create():new VP;return!zP&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!zP&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(nf||(nf={}))});function Kxe(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===QP||r===Dq||r===Iq)&&(t[r]=t[e],delete t[e])}}var Vxe,Wxe,KP,QP,Dq,Iq,I0,YP=g(()=>{vq();V();Vxe="AWS_LAMBDA_FUNCTION_NAME",Wxe="_X_AMZN_TRACE_ID",KP="X-Amzn-Trace-Id",QP="traceparent",Dq="tracestate",Iq="baggage",I0=()=>t=>async e=>{let{request:r}=e;if(!re.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===KP.toLowerCase())??KP;if(!r.headers.hasOwnProperty(o)){let s=process.env[Vxe],i=process.env[Wxe];n??=await nf.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[KP]=c)}}if(Kxe(r.headers),!r.headers[QP]){let s=(n??=await nf.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[QP]=s;let i=n?.getTracestate?.();i&&(r.headers[Dq]=i);let a=n?.getBaggage?.();a&&(r.headers[Iq]=a)}}return t(e)}});var Fs,wq=g(()=>{jP();YP();Fs=t=>({applyToStack:e=>{e.add(I0(),v0)}})});var Pq,Oq=g(()=>{Pq=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function Qxe(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var wc,w0=g(()=>{oe();Oq();wc=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=Pq(s,i),c=Qxe(t.httpAuthSchemes),u=Le(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:C={},signingProperties:A={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},C),m.signingProperties=Object.assign(m.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
|
|
24
|
-
`));return r(o)}});var P0,$o,$q=g(()=>{w0();P0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},$o=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(wc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),P0)}})});var O0,JP,kq=g(()=>{w0();O0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},JP=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(wc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),O0)}})});var Mq=g(()=>{w0();$q();kq()});var Yxe,Jxe,of,XP=g(()=>{V();oe();Yxe=t=>e=>{throw e},Jxe=(t,e)=>{},of=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||Yxe)(i));return(c.successHandler||Jxe)(u.response,i),u}});var Pc,ko,Lq=g(()=>{XP();Pc={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ko=t=>({applyToStack:e=>{e.addRelativeTo(of(t),Pc)}})});var Nq=g(()=>{XP();Lq()});var Jn,Fq=g(()=>{Jn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Bq(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await Xxe(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=Zxe(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var Xxe,Zxe,Uq=g(()=>{Xxe=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};Zxe=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function Gq(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var qq=g(()=>{});var $n,Hq=g(()=>{oe();$n=class{authSchemes=new Map;constructor(e){for(let r in e){if(!W(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var ZP,Rl,jq=g(()=>{V();ZP=Ie(Eo()),Rl=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=re.clone(e);if(n.in===ZP.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===ZP.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var Cl,zq=g(()=>{V();Cl=class{async sign(e,r,n){let o=re.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Ur,Vq=g(()=>{Ur=class{async sign(e,r,n){return e}}});var Wq=g(()=>{jq();zq();Vq()});var $0,eO,sf,bl,af,Kq=g(()=>{$0=t=>function(r){return bl(r)&&r.expiration.getTime()-Date.now()<t},eO=3e5,sf=$0(3e5),bl=t=>t.expiration!==void 0,af=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var Qq=g(()=>{Hq();Wq();Kq()});var Al={};Ct(Al,{DefaultIdentityProviderConfig:()=>$n,EXPIRATION_MS:()=>eO,HttpApiKeyAuthSigner:()=>Rl,HttpBearerAuthSigner:()=>Cl,NoAuthSigner:()=>Ur,createIsIdentityExpiredFunction:()=>$0,createPaginator:()=>Bq,doesIdentityRequireRefresh:()=>bl,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$o,getHttpAuthSchemePlugin:()=>JP,getHttpSigningPlugin:()=>ko,getSmithyContext:()=>Le,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>P0,httpAuthSchemeMiddleware:()=>wc,httpAuthSchemeMiddlewareOptions:()=>O0,httpSigningMiddleware:()=>of,httpSigningMiddlewareOptions:()=>Pc,isIdentityExpired:()=>sf,memoizeIdentityProvider:()=>af,normalizeProvider:()=>Jn,requestBuilder:()=>QS,setFeature:()=>Gq});var jt=g(()=>{oe();Mq();Nq();Fq();Uq();V();qq();Qq()});function eTe(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Bs(t){let e=Jn(t.userAgentAppId??cf),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!eTe(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var cf,tO=g(()=>{jt();cf=void 0});var rO,Yq=g(()=>{rO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}});var Jq,Xq,k0,nO,Zq,M0,L0=g(()=>{Yq();Jq=rO,Xq="",k0=t=>{let{partitions:e}=Jq;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},nO=(t,e="")=>{Jq=t,Xq=e},Zq=()=>{nO(rO,"")},M0=()=>Xq});async function eH(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&We(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case er.ADAPTIVE:We(t,"RETRY_MODE_ADAPTIVE","F");break;case er.STANDARD:We(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(tTe)&&We(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":We(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":We(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":We(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&We(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))We(t,i,a)}}var tTe,tH=g(()=>{en();BP();tTe=/\d{12}\.ddb/});var oO,N0,rH,nH,oH=g(()=>{oO="user-agent",N0="x-amz-user-agent",rH=/[^!$%&'*+\-.^_`|~\w]/g,nH=/[^!$%&'*+\-.^_`|~\w#]/g});function sH(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var iH=g(()=>{});var iO,F0,aO,Us,uH=g(()=>{V();L0();tH();oH();iH();iO=t=>(e,r)=>async n=>{let{request:o}=n;if(!re.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(F0)||[],a=(await t.defaultUserAgentProvider()).map(F0);await eH(r,t,n);let c=r;a.push(`m/${sH(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(F0)||[],f=await t.userAgentAppId();f&&a.push(F0(["app",`${f}`]));let m=M0(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(C=>C.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[N0]=s[N0]?`${s[oO]} ${_}`:_),s[oO]=y):s[N0]=y,e({...n,request:o})},F0=t=>{let e=t[0].split("/").map(i=>i.replace(rH,"-")).join("/"),r=t[1]?.replace(nH,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},aO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Us=t=>({applyToStack:e=>{e.add(iO(t),aO)}})});var B0,lH,dH=g(()=>{B0=require("node:process"),lH=()=>{let t=["deno","bun","llrt"];for(let e of t)if(B0.versions[e])return[`md/${e}`,B0.versions[e]];return["md/nodejs",B0.versions.node]}});var uf,cO=g(()=>{uf={isCrtAvailable:!1}});var pH,fH=g(()=>{cO();pH=()=>uf.isCrtAvailable?["md/crt-avail"]:null});var U0,uO,Mo,mH,gH=g(()=>{U0=require("node:os"),uO=require("node:process");dH();fH();cO();Mo=({serviceId:t,clientVersion:e})=>{let r=lH();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,U0.platform)()}`,(0,U0.release)()],["lang/js"],r],s=pH();s&&o.push(s),t&&o.push([`api/${t}`,e]),uO.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${uO.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},mH=Mo});var lO,dO,rTe,Gs,hH=g(()=>{tO();lO="AWS_SDK_UA_APP_ID",dO="sdk_ua_app_id",rTe="sdk-ua-app-id",Gs={environmentVariableSelector:t=>t[lO],configFileSelector:t=>t[dO]??t[rTe],default:cf}});var SH=st((lf,pO)=>{(function(t,e){typeof lf=="object"&&typeof pO=="object"?pO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof lf=="object"?lf.bowser=e():t.bowser=e()})(lf,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(C){var A=m-s.getVersionPrecision(C),x=C+new Array(A+1).join(".0");return s.map(x.split("."),(function(T){return new Array(20-T.length).join("0")+T})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var C=m[a];typeof C=="object"&&C!==null&&Object.keys(C).forEach((function(A){u[A]=C[A]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,C)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var A=!1;typeof _=="boolean"?(A=_,this._hints=C):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},A!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(C){return C.brand&&C.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),C=this._hints.brands.find((function(A){return A.brand&&A.brand.toLowerCase()===_}));return C?C.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,C={},A=0,x={},T=0;if(Object.keys(y).forEach((function(pt){var Yr=y[pt];typeof Yr=="string"?(x[pt]=Yr,T+=1):typeof Yr=="object"&&(C[pt]=Yr,A+=1)})),A>0){var I=Object.keys(C),q=a.default.find(I,(function(pt){return _.isOS(pt)}));if(q){var H=this.satisfies(C[q]);if(H!==void 0)return H}var me=a.default.find(I,(function(pt){return _.isPlatform(pt)}));if(me){var et=this.satisfies(C[me]);if(et!==void 0)return et}}if(T>0){var ot=Object.keys(x),tt=a.default.find(ot,(function(pt){return _.isBrowser(pt,!0)}));if(tt!==void 0)return this.compareVersion(x[tt])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var C=this.getBrowserName().toLowerCase(),A=y.toLowerCase(),x=a.default.getBrowserTypeByAlias(A);return _&&x&&(A=x.toLowerCase()),A===C},m.compareVersion=function(y){var _=[0],C=y,A=!1,x=this.getBrowserVersion();if(typeof x=="string")return y[0]===">"||y[0]==="<"?(C=y.substr(1),y[1]==="="?(A=!0,C=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?C=y.substr(1):y[0]==="~"&&(A=!0,C=y.substr(1)),_.indexOf(a.default.compareVersions(x,C,A))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(C){return _.is(C)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var yH,EH=g(()=>{yH=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>Ie(SH())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var _H,RH=g(()=>{_H={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var fO=g(()=>{He()});var df,mO=g(()=>{He();fO();df=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!df(r))return!1;return!0}return!(!_o(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_i(t))}});var G0,gO=g(()=>{G0=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var Lo,CH=g(()=>{He();mO();gO();L0();Lo={isVirtualHostableS3Bucket:df,parseArn:G0,partition:k0};hn.aws=Lo});var bH=g(()=>{He()});var AH,hO,xH=g(()=>{V();AH=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>hO(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},hO=t=>Cr(t.url)});var TH=g(()=>{He()});var vH=g(()=>{ye();ye()});function q0(t={}){return ue({...Ar,async default(){return SO.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Zr,...t})}var SO,DH=g(()=>{ye();SO={silence:!1}});var qs,Hs,IH=g(()=>{qs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Hs=t=>({region:t.region()})});var kn={};Ct(kn,{DEFAULT_UA_APP_ID:()=>cf,EndpointError:()=>be,NODE_APP_ID_CONFIG_OPTIONS:()=>Gs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,REGION_ENV_NAME:()=>Hu,REGION_INI_NAME:()=>ju,UA_APP_ID_ENV_NAME:()=>lO,UA_APP_ID_INI_NAME:()=>dO,awsEndpointFunctions:()=>Lo,createDefaultUserAgentProvider:()=>Mo,createUserAgentStringParsingProvider:()=>yH,crtAvailability:()=>uf,defaultUserAgent:()=>mH,emitWarningIfUnsupportedVersion:()=>us,fallback:()=>_H,getAwsRegionExtensionConfiguration:()=>qs,getHostHeaderPlugin:()=>Ls,getLoggerPlugin:()=>Ns,getLongPollPlugin:()=>N3,getRecursionDetectionPlugin:()=>Fs,getUserAgentMiddlewareOptions:()=>aO,getUserAgentPlugin:()=>Us,getUserAgentPrefix:()=>M0,hostHeaderMiddleware:()=>UP,hostHeaderMiddlewareOptions:()=>GP,isIpAddress:()=>_i,isVirtualHostableS3Bucket:()=>df,loggerMiddleware:()=>qP,loggerMiddlewareOptions:()=>HP,parseArn:()=>G0,partition:()=>k0,recursionDetectionMiddleware:()=>I0,recursionDetectionMiddlewareOptions:()=>v0,resolveAwsRegionExtensionConfiguration:()=>Hs,resolveDefaultAwsRegionalEndpointsConfig:()=>AH,resolveEndpoint:()=>qp,resolveHostHeaderConfig:()=>_l,resolveRegionConfig:()=>In,resolveUserAgentConfig:()=>Bs,setCredentialFeature:()=>Yi,setFeature:()=>We,setPartitionInfo:()=>nO,setTokenFeature:()=>bq,state:()=>mp,stsRegionDefaultResolver:()=>q0,stsRegionWarning:()=>SO,toEndpointV1:()=>hO,useDefaultPartitionInfo:()=>Zq,userAgentMiddleware:()=>iO});var Ee=g(()=>{L3();F3();B3();BP();Aq();xq();Tq();jP();wq();YP();tO();uH();gH();hH();RH();EH();CH();bH();xH();fO();mO();gO();L0();TH();vH();DH();IH()});var PH=st(wH=>{var{createGzip:nTe}=require("node:zlib");wH.compressStream=async t=>t.pipe(nTe())});var kH=st($H=>{var{promisify:oTe}=require("node:util"),{gzip:sTe}=require("node:zlib"),{toUint8Array:OH}=(j(),F(To)),iTe=oTe(sTe);$H.compressString=async t=>{try{let e=await iTe(OH(t||""));return OH(e)}catch(e){throw new Error("Failure during compression: "+e.message)}}});var VH=st(Mn=>{var{booleanSelector:MH,SelectorType:H0,numberSelector:LH}=(ye(),F(Br)),{setFeature:aTe}=(jt(),F(Al)),{HttpRequest:cTe}=(V(),F(wo)),{compressStream:uTe}=PH(),{compressString:lTe}=kH(),{isArrayBuffer:dTe}=(j(),F(To)),{normalizeProvider:NH}=(J(),F(bo)),FH="AWS_DISABLE_REQUEST_COMPRESSION",BH="disable_request_compression",UH=!1,pTe={environmentVariableSelector:t=>MH(t,FH,H0.ENV),configFileSelector:t=>MH(t,BH,H0.CONFIG),default:UH},GH="AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES",qH="request_min_compression_size_bytes",HH=10240,fTe={environmentVariableSelector:t=>LH(t,GH,H0.ENV),configFileSelector:t=>LH(t,qH,H0.CONFIG),default:HH},yO;(function(t){t.GZIP="gzip"})(yO||(yO={}));var mTe=[yO.GZIP],gTe=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!dTe(t),jH=(t,e)=>(r,n)=>async o=>{if(!cTe.isInstance(o.request)||await t.disableRequestCompression())return r(o);let{request:i}=o,{body:a,headers:c}=i,{encodings:u,streamRequiresLength:f}=e,m=a,y=c;for(let _ of u)if(mTe.includes(_)){let C=!1;if(gTe(a))if(!f)m=await uTe(a),C=!0;else throw new Error("Compression is not supported for streaming blobs that require a length.");else{let A=t.bodyLengthChecker(a),x=await t.requestMinCompressionSizeBytes();A&&A>=x&&(m=await lTe(a),C=!0)}if(C){c["content-encoding"]?y={...c,"content-encoding":`${c["content-encoding"]}, ${_}`}:y={...c,"content-encoding":_},y["content-encoding"].includes("gzip")&&aTe(n,"GZIP_REQUEST_COMPRESSION","L");break}}return r({...o,request:{...i,body:m,headers:y}})},zH={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},hTe=(t,e)=>({applyToStack:r=>{r.add(jH(t,e),zH)}}),STe=t=>{let{disableRequestCompression:e,requestMinCompressionSizeBytes:r}=t;return Object.assign(t,{disableRequestCompression:NH(e),requestMinCompressionSizeBytes:async()=>{let n=await NH(r)();if(n<0||n>10485760)throw new RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${n} is outside this range."`);return n}})};Mn.DEFAULT_DISABLE_REQUEST_COMPRESSION=UH;Mn.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES=HH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS=pTe;Mn.NODE_DISABLE_REQUEST_COMPRESSION_ENV_NAME=FH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_INI_NAME=BH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS=fTe;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_ENV_NAME=GH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_INI_NAME=qH;Mn.compressionMiddleware=jH;Mn.compressionMiddlewareOptions=zH;Mn.getCompressionPlugin=hTe;Mn.resolveCompressionConfig=STe});var j0,z0,WH=g(()=>{V();j0=t=>ft.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,z0=t=>ft.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var pf,KH=g(()=>{pf=t=>new Date(Date.now()+t)});var V0,QH=g(()=>{V0=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var EO=g(()=>{WH();KH();QH()});var YH,ff,yTe,xl,tr,_O,RO=g(()=>{V();YH=Ie(Eo());EO();ff=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},yTe=t=>t.context?.[YH.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,xl=async t=>{let e=ff("context",t.context),r=ff("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await ff("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},tr=class{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await xl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,C]=u.authSchemes;_?.name==="sigv4a"&&C?.name==="sigv4"&&(a=C?.signingRegion??a,c=C?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||yTe(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:pf(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??j0(n.$response);if(o){let s=ff("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=z0(n.$response),u=V0(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=j0(e);if(n){let o=ff("config",r.config),s=r._requestSentAt,i=z0(e);o.systemClockOffset=V0(n,o.systemClockOffset,s,i)}}},_O=tr});var Ti,JH=g(()=>{V();EO();RO();Ti=class extends tr{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await xl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:pf(o.systemClockOffset),signingRegion:f,signingService:c})}}});var CO,XH=g(()=>{CO=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var W0,bO=g(()=>{W0=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var ZH,ej,No,tj=g(()=>{XH();bO();ZH="AWS_AUTH_SCHEME_PREFERENCE",ej="auth_scheme_preference",No={environmentVariableSelector:(t,e)=>{if(e?.signingName&&W0(e.signingName)in t)return["httpBearerAuth"];if(ZH in t)return CO(t[ZH])},configFileSelector:t=>{if(ej in t)return CO(t[ej])},default:[]}});var mf,gf,rj=g(()=>{jt();ye();mf=t=>(t.sigv4aSigningRegionSet=Jn(t.sigv4aSigningRegionSet),t),gf={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Dn("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Dn("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var MO=st(fe=>{var{hasOwn:vl,fromUtf8:nj,fromHex:ETe,toHex:Oc,toUint8Array:hf,isArrayBuffer:_Te}=(j(),F(To)),{normalizeProvider:oj}=(J(),F(bo)),{escapeUri:K0,HttpRequest:cj}=(V(),F(wo)),AO=class{format(e){let r=[];for(let s in e){if(!vl(e,s))continue;let i=nj(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=nj(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(xO.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!RTe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(ETe(e.value.replace(/-/g,"")),1),m}}},sj;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(sj||(sj={}));var RTe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,xO=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&ij(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&ij(e),parseInt(Oc(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function ij(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var uj="X-Amz-Algorithm",lj="X-Amz-Credential",IO="X-Amz-Date",dj="X-Amz-SignedHeaders",pj="X-Amz-Expires",wO="X-Amz-Signature",PO="X-Amz-Security-Token",CTe="X-Amz-Region-Set",OO="authorization",$O=IO.toLowerCase(),fj="date",mj=[OO,$O,fj],gj=wO.toLowerCase(),Z0="x-amz-content-sha256",hj=PO.toLowerCase(),bTe="host",Sj={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},yj=/^proxy-/,Ej=/^sec-/,ATe=[/^proxy-/i,/^sec-/i],Q0="AWS4-HMAC-SHA256",xTe="AWS4-ECDSA-P256-SHA256",_j="AWS4-HMAC-SHA256-PAYLOAD",Rj="UNSIGNED-PAYLOAD",Cj=50,kO="aws4_request",bj=3600*24*7,Aj=({query:t={}})=>{let e=[],r={};for(let n in t){if(!vl(t,n)||n.toLowerCase()===gj)continue;let o=K0(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${K0(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${K0(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},TTe=t=>vTe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),vTe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ey=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=oj(n),this.credentialProvider=oj(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
|
|
22
|
+
`)}m.push(null)}catch(y){m.destroy(y)}}),m}var IG,PG=g(()=>{IG=require("node:stream");DG();xo()});async function OG(t,e){let r=0,n=[],o=t.getReader(),s=!1;for(;!s;){let{done:c,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;s=c}o.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var $G=g(()=>{});var kG,MG,Lw,LG=g(()=>{kG=require("node:stream");Op();$G();xo();MG=(t,e)=>Ht(t)?OG(t,e):new Promise((r,n)=>{let o=new Lw;o.limit=e,t.pipe(o),t.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=Vn(this.buffers);r(s)})}),Lw=class extends kG.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let o=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-o),this.emit("finish")}n()}}});var NG,FG=g(()=>{NG=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)}});async function Nw(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Fw(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(e.push(s),n+=s.length),o)break}return Vn(e,n)}var BG,Bw=g(()=>{Op();xo();BG=async t=>sa(t)?Nw(t):Fw(t)});var UG,qG,GG,HG=g(()=>{Ow();II();FG();Bw();xo();UG="The stream has already been transformed.",qG=t=>{if(!GG(t)&&!Ht(t)){let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(UG);return e=!0,await BG(t)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
23
|
+
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 o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return PS(s);if(o==="hex")return zn(s);if(o===void 0||o==="utf8"||o==="utf-8")return NG(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(UG);if(e=!0,GG(t))return n(t);if(Ht(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},GG=t=>typeof Blob=="function"&&t instanceof Blob});var jG,MS,Uw,Gw=g(()=>{jG=require("node:stream");Op();Bw();xo();MS=t=>sa(t)?Nw(t):Ht(t)?Fw(t):new Promise((e,r)=>{let n=new Uw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=Vn(this.bufferedBytes);e(s)})}),Uw=class extends jG.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var LS,zG,NS,VG=g(()=>{LS=require("node:stream");ta();HG();Gw();zG="The stream has already been transformed.",NS=t=>{if(!(t instanceof LS.Readable))try{return qG(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(zG);return e=!0,await MS(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?Ao(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(zG);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof LS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,LS.Readable.toWeb(t)}})}});async function WG(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var KG=g(()=>{});async function QG(t){if(Ht(t)||sa(t))return WG(t);let e=new qw.PassThrough,r=new qw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var qw,YG=g(()=>{qw=require("node:stream");KG();xo()});var To={};Ct(To,{ChecksumStream:()=>Ku,Hash:()=>DS,LazyJsonString:()=>qe,NumericValue:()=>Y,Uint8ArrayBlobAdapter:()=>Ac,_parseEpochTimestamp:()=>na,_parseRfc3339DateTimeWithOffset:()=>jh,_parseRfc7231DateTime:()=>zh,calculateBodyLength:()=>Es,concatBytes:()=>Vn,copyDocumentWithTransform:()=>gB,createBufferedReadable:()=>kS,createChecksumStream:()=>$S,dateToUtcString:()=>br,deserializerMiddleware:()=>Qh,deserializerMiddlewareOption:()=>Dw,expectBoolean:()=>yB,expectByte:()=>Nh,expectFloat32:()=>Ip,expectInt:()=>EB,expectInt32:()=>Mh,expectLong:()=>Mu,expectNonNull:()=>_B,expectNumber:()=>ku,expectObject:()=>_I,expectShort:()=>Lh,expectString:()=>RB,expectUnion:()=>Bh,fromArrayBuffer:()=>Ao,fromBase64:()=>Xe,fromHex:()=>Kh,fromString:()=>ea,fromUtf8:()=>qt,generateIdempotencyToken:()=>xr,getAwsChunkedEncodingStream:()=>wG,getSerdePlugin:()=>cG,handleFloat:()=>bB,hasOwn:()=>W,headStream:()=>MG,isArrayBuffer:()=>$u,isBlob:()=>sa,isReadableStream:()=>Ht,limitedParseDouble:()=>Gh,limitedParseFloat:()=>AB,limitedParseFloat32:()=>xB,logger:()=>Lu,nv:()=>Wh,parseBoolean:()=>SB,parseEpochTimestamp:()=>ys,parseRfc3339DateTime:()=>IB,parseRfc3339DateTimeWithOffset:()=>Ss,parseRfc7231DateTime:()=>gn,quoteHeader:()=>Hh,sdkStreamMixin:()=>NS,serializerMiddleware:()=>vS,serializerMiddlewareOption:()=>Iw,splitEvery:()=>Vh,splitHeader:()=>Bu,splitStream:()=>QG,streamCollector:()=>MS,strictParseByte:()=>qh,strictParseDouble:()=>wp,strictParseFloat:()=>CB,strictParseFloat32:()=>Uh,strictParseInt:()=>vB,strictParseInt32:()=>DB,strictParseLong:()=>RI,strictParseShort:()=>ra,toBase64:()=>Ie,toHex:()=>zn,toUint8Array:()=>bt,toUtf8:()=>ze,v4:()=>Qu});var JG,Ac,hxe,Qu,xr,j=g(()=>{JG=require("node:crypto");uB();yI();dB();$h();pB();mB();hB();wB();PB();CI();OB();MB();LB();NB();BB();II();GB();wI();Op();ta();SI();OI();uG();vw();dG();ww();CG();TG();PG();LG();VG();YG();xo();Gw();oe();Ac=class extends lB(ze,qt,Ie,Xe){},hxe=JG.getRandomValues,Qu=fB(hxe),xr=Qu});var At,Yu=g(()=>{j();At=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Ac.mutate(t);if(!t)return Ac.mutate(new Uint8Array);let r=e.streamCollector(t);return Ac.mutate(await r)}});function vo(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var FS=g(()=>{});var Zt,Ju=g(()=>{Zt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function BS(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Hw=g(()=>{});var XG,ZG=g(()=>{Hw();XG=async function(e,r){let n=new e;return await BS(r,o=>{n.update(o)}),n.digest()}});var e4,Xu,jw=g(()=>{e4=require("node:stream");j();Xu=class extends e4.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bt(e))}catch(o){return n(o)}n()}}});var t4,r4,Sxe,n4=g(()=>{t4=require("node:fs");jw();r4=(t,e)=>new Promise((r,n)=>{if(!Sxe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,t4.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new Xu(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),Sxe=t=>typeof t.path=="string"});var o4,s4=g(()=>{jw();o4=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new Xu(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function zw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=yxe[(i>>4)*4+(i&3)],y=(r+a&ia)+(u+Exe[i]&ia)&ia;n=n+((y<<m|y>>>32-m)>>>0)&ia,r=f}t[0]=t[0]+r&ia,t[1]=t[1]+n&ia,t[2]=t[2]+o&ia,t[3]=t[3]+s&ia}var Zu,i4,ia,yxe,Exe,Vw=g(()=>{j();Zu=class{digestLength=16;state=Uint32Array.from(i4);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bt(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(zw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);zw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),zw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(i4),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},i4=[1732584193,4023233417,2562383102,271733878],ia=4294967295,yxe=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Exe=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function Rxe(){return class{digestLength=16;hash=(0,US.createHash)("md5");update(e){this.hash.update(bt(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,US.createHash)("md5")}}}var US,_xe,Ww,a4=g(()=>{US=require("node:crypto");j();Vw();_xe=(()=>{try{return(0,US.createHash)("md5"),!0}catch{return!1}})(),Ww=_xe?Rxe():Zu});var c4,Kw,xc,Qw=g(()=>{c4=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;c4[t]=e>>>0}Kw=4294967295,xc=class{digestLength=4;checksum=Kw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^c4[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Kw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Kw}}});function Cxe(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Yw,u4,Do,l4=g(()=>{Yw=De(require("node:zlib"));Qw();u4=typeof Yw.crc32=="function"?Yw.crc32:void 0,Do=u4?Cxe(u4):xc});var Tr,d4,bxe,Io,p4,Axe,GS=g(()=>{j();Tr=64,d4=32,bxe=2**53-1,Io=class t{digestLength=d4;state=Int32Array.from(p4);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(Tr*2);for(let i=0;i<Tr;++i)s[i]=54^r[i],s[i+Tr]=92^r[i];n.update(s.subarray(0,Tr)),o.update(s.subarray(Tr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bt(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>bxe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===Tr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(p4),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%Tr>=Tr-8){for(let a=n;a<Tr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<Tr-8;++a)s.setUint8(a,0);s.setUint32(Tr-8,Math.floor(o/4294967296),!1),s.setUint32(Tr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(d4);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(Tr);return s.set(o),s}if(r.byteLength<Tr){let n=new Uint8Array(Tr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<Tr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let A=n[y-2],x=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[y-15];let T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[y]=(x+n[y-7]|0)+(T+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(Axe[y]+n[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+C|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},p4=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Axe=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function Txe(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,zp.createHmac)("sha256",vxe(this.secret)):(0,zp.createHash)("sha256")}}}function vxe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var zp,xxe,Sn,f4=g(()=>{zp=require("node:crypto");GS();xxe=(()=>{try{return(0,zp.createHash)("sha256"),!0}catch{return!1}})(),Sn=xxe?Txe():Io});var Dxe,Ixe,wxe,qS,Pxe,HS,m4=g(()=>{j();GS();({digest:Dxe,sign:Ixe,importKey:wxe}=globalThis?.crypto?.subtle??{}),qS=typeof Dxe=="function"&&typeof Ixe=="function"&&typeof wxe=="function"?globalThis.crypto.subtle:void 0,Pxe=8*1024*1024,HS=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=Pxe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(qS){if(this.secret){this.finished=!0;let o=await qS.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await qS.sign("HMAC",o,e);return new Uint8Array(s)}let n=await qS.digest("SHA-256",e);return new Uint8Array(n)}let r=new Io(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Io(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Vp={};Ct(Vp,{Crc32:()=>Do,Crc32Js:()=>xc,Crc32Node:()=>Do,Md5:()=>Ww,Md5Js:()=>Zu,Md5Node:()=>Ww,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn,Sha256WebCrypto:()=>HS,blobHasher:()=>XG,blobReader:()=>BS,fileStreamHasher:()=>r4,readableStreamHasher:()=>o4});var On=g(()=>{ZG();n4();s4();Vw();a4();Qw();l4();GS();f4();m4();Hw()});function g4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var aa,Jw=g(()=>{j();aa=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&g4(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&g4(e),parseInt(zn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var el,h4,S4,Oxe,$xe,kxe,Mxe,Lxe,Nxe,Fxe,Bxe,Uxe,Xw=g(()=>{oe();j();Jw();el=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!W(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(aa.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!Uxe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Kh(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:S4,value:!0};break;case 1:r[s]={type:S4,value:!1};break;case 2:r[s]={type:Oxe,value:e.getInt8(n++)};break;case 3:r[s]={type:$xe,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:kxe,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:Mxe,value:new aa(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:Lxe,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:Nxe,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:Fxe,value:new Date(new aa(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:Bxe,value:`${zn(c.subarray(0,4))}-${zn(c.subarray(4,6))}-${zn(c.subarray(6,8))}-${zn(c.subarray(8,10))}-${zn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(h4||(h4={}));S4="boolean",Oxe="byte",$xe="short",kxe="integer",Mxe="long",Lxe="binary",Nxe="string",Fxe="timestamp",Bxe="uuid",Uxe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function E4({byteLength:t,byteOffset:e,buffer:r}){if(t<Gxe)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(y4,!1),i=n.getUint32(ca,!1),a=n.getUint32(t-Tc,!1),c=new Do;if(c.update(new Uint8Array(r,e,ca)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+ca,t-(ca+Tc))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+ca+Tc,s),body:new Uint8Array(r,e+ca+Tc+s,o-s-(ca+Tc+Tc))}}var y4,ca,Tc,Gxe,_4=g(()=>{On();y4=4,ca=y4*2,Tc=4,Gxe=ca+Tc*2});var tl,Zw=g(()=>{On();Xw();_4();tl=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new el(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Do;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=E4(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var rl,eP=g(()=>{rl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var nl,tP=g(()=>{nl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var ol,rP=g(()=>{ol=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var sl,nP=g(()=>{sl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function jS(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let C=Math.min(4-r,_);if(o.set(c.slice(m,m+C),r),r+=C,m+=C,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var oP=g(()=>{});function R4(t,e){let r=Wp(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Wp(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var sP=g(()=>{});var vc,C4,iP=g(()=>{Zw();eP();tP();rP();nP();oP();sP();vc=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new tl(e,r),this.utfEncoder=e}deserialize(e,r){let n=jS(e);return new ol({messageStream:new rl({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Wp(r,this.utfEncoder)})}serialize(e,r){return new nl({messageStream:new sl({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},C4=t=>new vc(t)});async function*qxe(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var b4,Kp,A4,x4=g(()=>{b4=require("node:stream");iP();Kp=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new vc({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:qxe(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return b4.Readable.from(this.universalMarshaller.serialize(e,r))}},A4=t=>new Kp(t)});var T4,v4,D4=g(()=>{T4=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),v4=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var I4,w4=g(()=>{I4=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var zS,P4=g(()=>{oe();ae();j();zS=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let q in y)if(W(y,q)&&q!=="__type"){_=q;break}let{additionalHeaders:C,body:A,eventType:x,explicitPayloadContentType:T}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:T??u},...C},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let C="";for(let x in _)if(W(_,x)&&x!=="__type"){C=x;break}let A=_[C].body;if(C===(o??"initial-response")){let x=await this.deserializer.read(r,A);return delete x[i],{[u]:!0,...x}}else if(C in c){let x=c[C];if(x.isStructSchema()){let T={},I=!1;for(let[q,H]of x.structIterator()){let{eventHeader:me,eventPayload:et}=H.getMergedTraits();if(I=I||!!(me||et),et)H.isBlobSchema()?T[q]=A:H.isStringSchema()?T[q]=(this.serdeContext?.utf8Encoder??ze)(A):H.isStructSchema()&&(T[q]=await this.deserializer.read(H,A));else if(me){let ot=_[C].headers[q]?.value;ot!=null&&(H.isNumericSchema()?ot&&typeof ot=="object"&&"bytes"in ot?T[q]=BigInt(ot.toString()):T[q]=Number(ot):T[q]=ot)}}return{[C]:await this.readEventMember(x,A,I,T)}}return{[C]:await this.deserializer.read(x,A)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)W(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:C}=await m.next();if(_)break;yield C}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Fe.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,C]of y.structIterator()){let{eventHeader:A,eventPayload:x}=C.getMergedTraits();if(x)i=_;else if(A){let T=n[e][_],I="binary";C.isNumericSchema()?(-2)**31<=T&&T<=2**31-1?I="integer":I="long":C.isTimestampSchema()?I="timestamp":C.isStringSchema()?I="string":C.isBooleanSchema()&&(I="boolean"),T!=null&&(u[_]={type:I,value:T},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??qt)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var VS={};Ct(VS,{EventStreamCodec:()=>tl,EventStreamMarshaller:()=>Kp,EventStreamSerde:()=>zS,HeaderMarshaller:()=>el,Int64:()=>aa,MessageDecoderStream:()=>rl,MessageEncoderStream:()=>nl,SmithyMessageDecoderStream:()=>ol,SmithyMessageEncoderStream:()=>sl,UniversalEventStreamMarshaller:()=>vc,eventStreamSerdeProvider:()=>A4,getChunkedStream:()=>jS,getMessageUnmarshaller:()=>Wp,getUnmarshalledStream:()=>R4,iterableToReadableStream:()=>v4,readableStreamToIterable:()=>T4,resolveEventStreamSerdeConfig:()=>I4,universalEventStreamSerdeProvider:()=>C4});var WS=g(()=>{Zw();Xw();Jw();eP();tP();rP();nP();x4();D4();iP();oP();sP();w4();P4()});var ua,KS=g(()=>{oe();ae();oe();Ju();ua=class extends Zt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Fe(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return re}getResponseType(){return ft}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=B.of(r.input),s=Ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!Sp(e.hostname))throw new Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(WS(),VS)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var la,O4=g(()=>{oe();ae();j();oe();KS();Yu();FS();la=class extends ua{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=B.of(e?.input),f=[],m=[],y=!1,_,C=new re({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(C,c),this.setHostPrefix(C,e,o);let A=Ro(e.traits);if(A.http){C.method=A.http[0];let[x,T]=A.http[1].split("?");C.path=="/"?C.path=x:C.path+=x;let I=new URLSearchParams(T??"");for(let[q,H]of I)i[q]=H}}for(let[A,x]of u.structIterator()){let T=x.getMergedTraits()??{},I=o[A];if(I==null&&!x.isIdempotencyToken()){if(T.httpLabel&&(C.path.includes(`{${A}+}`)||C.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(T.httpPayload)x.isStreaming()?x.isStructSchema()?o[A]&&(_=await this.serializeEventStream({eventStream:o[A],requestSchema:u})):_=I:(s.write(x,I),_=s.flush());else if(T.httpLabel){s.write(x,I);let q=s.flush();C.path.includes(`{${A}+}`)?C.path=C.path.replace(`{${A}+}`,q.split("/").map(vo).join("/")):C.path.includes(`{${A}}`)&&(C.path=C.path.replace(`{${A}}`,vo(q)))}else if(T.httpHeader)s.write(x,I),a[T.httpHeader.toLowerCase()]=String(s.flush());else if(typeof T.httpPrefixHeaders=="string")for(let q in I){if(!W(I,q))continue;let H=I[q],me=T.httpPrefixHeaders+q;s.write([x.getValueSchema(),{httpHeader:me}],H),a[me.toLowerCase()]=s.flush()}else T.httpQuery||T.httpQueryParams?this.serializeQuery(x,I,i):(y=!0,f.push(A),m.push(x))}if(y&&o){let[A,x]=(u.getName(!0)??"#Unknown").split("#"),T=u.getSchema()[6],I=[3,A,x,u.getMergedTraits(),f,m,void 0];T?I[6]=T:I.pop(),s.write(I,o),_=s.flush()}return C.headers=a,C.query=i,C.body=_,C}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(W(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await At(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await At(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=B.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=NS(n.body);else if(n.body){let A=await At(n.body,r);A.byteLength>0&&(i[m]=await c.read(y,A))}}else if(_.httpHeader){let C=String(_.httpHeader).toLowerCase(),A=n.headers[C];if(A!=null)if(y.isListSchema()){let x=y.getValueSchema();x.getMergedTraits().httpHeader=C;let T;x.isTimestampSchema()&&x.getSchema()===4?T=Vh(A,",",2):T=Bu(A);let I=[];for(let q of T)I.push(await c.read(x,q.trim()));i[m]=I}else i[m]=await c.read(y,A)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let C in n.headers)if(W(n.headers,C)&&C.startsWith(_.httpPrefixHeaders)){let A=n.headers[C],x=y.getValueSchema();x.getMergedTraits().httpHeader=C,i[m][C.slice(_.httpPrefixHeaders.length)]=await c.read(x,A)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Qn,aP=g(()=>{oe();ae();oe();KS();Yu();Qn=class extends ua{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=B.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new re({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let C={};for(let[A]of c.structIterator())A!==_&&m[A]!=null&&(C[A]=m[A]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:C})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await At(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var QS,cP=g(()=>{FS();QS=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>vo(a)).join("/"):vo(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function YS(t,e){return new Qp(t,e)}var Qp,$4=g(()=>{oe();cP();Qp=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new re({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=QS(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ze(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var da=g(()=>{});var pa,uP=g(()=>{ae();j();Ju();da();pa=class extends Zt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=B.of(e);if(n.isListSchema())return Bu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Xe)(r);if(n.isTimestampSchema())switch(Ze(n,this.settings)){case 5:return jh(r);case 6:return zh(r);case 7:return na(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Y(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ze)((this.serdeContext?.base64Decoder??Xe)(e))}}});var fa,k4=g(()=>{ae();j();Ju();uP();fa=class extends Zt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new pa(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=B.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ze;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??qt;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var il,lP=g(()=>{ae();j();Ju();da();il=class extends Zt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ze(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=br(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:Hh(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ie)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=xr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var ma,M4=g(()=>{ae();lP();ma=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new il(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=B.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var L4,JS,N4=g(()=>{L4=De(Eo()),JS=class{name;kind;values;constructor({name:e,kind:r=L4.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var XS,F4=g(()=>{XS=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var vs,Ds,B4=g(()=>{vs=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),Ds=t=>({requestHandler:t.httpHandler()})});function dP(t){return e=>async r=>{let n=r.request;if(re.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(U4)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[U4]:String(i)})}catch{}}return e({...r,request:n})}}var U4,pP,Is,G4=g(()=>{oe();U4="content-length";pP={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Is=t=>({applyToStack:e=>{e.add(dP(t.bodyLengthChecker),pP)}})});var ga,Hxe,ZS=g(()=>{ga=t=>encodeURIComponent(t).replace(/[!'()*]/g,Hxe),Hxe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var q4,H4=g(()=>{ZS();q4=t=>t.split("/").map(ga).join("/")});function j4(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=ga(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${ga(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${ga(n)}`),e.push(o)}}return e.join("&")}var z4=g(()=>{ZS()});var yn,Dc=g(()=>{yn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var al,fP=g(()=>{al=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function e0(){if(Yp===void 0)try{if(typeof Buffer!="function")Yp=!1;else{let t=JSON.parse(Buffer.from([123,125]));Yp=t!==null&&typeof t=="object"}}catch{Yp=!1}return Yp}var Yp,mP=g(()=>{});function cl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?zxe(n,e)?e:new Y(n,"bigDecimal"):jxe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?Vxe(n):BigInt(n)}return e}function jxe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function zxe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return gP(t)===gP(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===gP(n):!1}function gP(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function Vxe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var t0=g(()=>{j()});function ul(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(hP in r)return r[hP];let n=r0(e,new Set);return r[hP]=n,n}return r0(e,new Set)}function r0(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(r0(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(r0(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var hP,n0=g(()=>{ae();hP=Symbol.for("@aws-sdk/reviver")});var V4,W4=g(()=>{Yu();j();V4=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Ic(t,e,r){let n;if(e0()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await V4(t,e)),n.length===0)return{};let o=r&&ul(r)?cl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var Q4,K4,SP,Y4,J4,o0,X4,Jp=g(()=>{Yu();W4();mP();t0();n0();Q4=async(t,e)=>{let r=await Ic(t,e);return r.message=r.message??r.Message,r},K4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),SP=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Y4=(t,e)=>X4(t,e,["header","code","type"]),J4=(t,e,r=!1)=>X4(t,e,r?["code","header","type"]:["type","code","header"]),o0=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},X4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=K4(t??{},"x-amzn-errortype");if(o!==void 0)return SP(t[o]);break;case"code":let s=K4(e??{},"code");if(s&&e[s]!==void 0)return SP(e[s]);break;case"type":if(e?.__type!==void 0)return SP(e.__type);break}}});function ws(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var s0=g(()=>{});var ll,yP=g(()=>{da();ae();j();Dc();fP();mP();t0();n0();Jp();s0();oe();ll=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&e0()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Ic(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)W(a,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!W(i,a))continue;a==="__proto__"&&ws(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new al(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!W(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var i0,Z4,eq=g(()=>{j();i0=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>Z4+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),Z4=e),this.string=ze(this)}return this.string}},Z4=0});function EP(t){return i0.allocUnsafe(t)}var a0,tq,rq,Wxe,Kxe,dl,c0,u0,nq,Qxe,Yxe,Jxe,Ps,oq,pl,_P=g(()=>{da();ae();j();Dc();oe();eq();a0=new TextEncoder,tq=123,rq=125,Wxe=91,Kxe=93,dl=34,c0=58,u0=44,nq=92,Qxe=new Uint8Array([116,114,117,101]),Yxe=new Uint8Array([102,97,108,115,101]),Jxe=new Uint8Array([110,117,108,108]),Ps=new Array(128).fill(null);Ps[8]="b";Ps[9]="t";Ps[10]="n";Ps[12]="f";Ps[13]="r";Ps[34]='"';Ps[92]="\\";for(let t=0;t<32;t++)Ps[t]===null&&(Ps[t]="u00"+t.toString(16).padStart(2,"0"));oq=2048;pl=class t extends yn{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=EP(oq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),a0.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=EP(oq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=EP(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=dl;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=dl,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=dl;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ps[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=nq;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=a0.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=dl}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=nq,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=dl;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=dl,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(Jxe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof Y?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Qxe,i),i+=4):(a.set(Yxe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=tq;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=u0),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=c0,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=u0),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=c0,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=rq}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Wxe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=u0),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Kxe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!W(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=a0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=tq;let i=!0;for(let a in r){if(!W(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=u0),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=c0,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=rq}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var fl,RP=g(()=>{Dc();yP();_P();fl=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new pl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ll(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var l0,sq=g(()=>{aP();ae();oe();RP();Jp();l0=class extends Qn{codec=new fl({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=o0(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=Fe.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let q=Fe.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(q);let H=u.getBaseException();if(H){let me=u.getErrorCtor(H);throw Object.assign(new me({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=B.of(m),_=u.getErrorCtor(m),C=o.message??o.Message??"Unknown",A=new _({}),x={},T=this.codec.createDeserializer();for(let[I,q]of y.structIterator())o[I]!=null&&(x[I]=T.readObject(q,o[I]));throw Object.assign(A,a,{$fault:y.getMergedTraits().error,message:C},x)}getDefaultContentType(){return"application/json"}}});var ml,CP=g(()=>{da();ae();j();j();oe();Dc();fP();t0();n0();Jp();s0();ml=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=ul(e)?cl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Ic(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new al(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!W(i,y))continue;let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)W(r,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;a==="__proto__"&&ws(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var iq,d0,aq=g(()=>{j();iq="\u039D",d0=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${iq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${iq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var gl,bP=g(()=>{da();ae();j();Dc();aq();s0();oe();gl=class extends yn{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new d0;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&ws(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!W(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!W(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&ws(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;let c=r[a];a==="__proto__"&&ws(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var p0,cq=g(()=>{Dc();CP();bP();p0=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ml(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var wo={};Ct(wo,{Field:()=>JS,Fields:()=>XS,FromStringShapeDeserializer:()=>pa,HttpBindingProtocol:()=>la,HttpInterceptingShapeDeserializer:()=>fa,HttpInterceptingShapeSerializer:()=>ma,HttpProtocol:()=>ua,HttpRequest:()=>re,HttpResponse:()=>ft,JsonCodec:()=>p0,JsonCodec2:()=>fl,JsonShapeDeserializer:()=>ml,JsonShapeDeserializer2:()=>ll,JsonShapeSerializer:()=>gl,JsonShapeSerializer2:()=>pl,RequestBuilder:()=>Qp,RpcProtocol:()=>Qn,SerdeContext:()=>Zt,SmithyRpcV2JsonProtocol:()=>l0,ToStringShapeSerializer:()=>il,buildQueryString:()=>j4,collectBody:()=>At,contentLengthMiddleware:()=>dP,contentLengthMiddlewareOptions:()=>pP,determineTimestampFormat:()=>Ze,escapeUri:()=>ga,escapeUriPath:()=>q4,extendedEncodeURIComponent:()=>vo,getContentLengthPlugin:()=>Is,getHttpHandlerExtensionConfiguration:()=>vs,isValidHostname:()=>Sp,loadJsonRpcErrorCode:()=>J4,loadRestJsonErrorCode:()=>Y4,loadSmithyRpcV2JsonErrorCode:()=>o0,parseJsonBody:()=>Ic,parseJsonErrorBody:()=>Q4,parseQueryString:()=>yp,parseUrl:()=>Cr,requestBuilder:()=>YS,resolveHttpHandlerRuntimeConfig:()=>Ds,resolvedPath:()=>QS});var V=g(()=>{Yu();FS();O4();KS();aP();$4();cP();uP();k4();M4();lP();da();Ju();N4();F4();oe();oe();oe();B4();G4();ZS();H4();z4();oe();oe();sq();Jp();cq();bP();CP();RP();_P();yP()});var uq,lq,dq,pq,fq,mq,gq=g(()=>{uq=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],lq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],dq=["TimeoutError","RequestTimeout","RequestTimeoutException"],pq=[500,502,503,504],fq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],mq=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function TP(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Xp,f0,AP,xP,Os,ha,m0,hl=g(()=>{gq();Xp=t=>t?.$retryable!==void 0,f0=t=>uq.includes(t.name),AP=t=>t.$metadata?.clockSkewCorrected,xP=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Os=t=>t.$metadata?.httpStatusCode===429||lq.includes(t.name)||t.$retryable?.throttling==!0,ha=(t,e=0)=>t?.name!=="AbortError"&&(Xp(t)||AP(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||dq.includes(t.name)||fq.includes(t?.code||"")||mq.includes(t?.code||"")||pq.includes(t.$metadata?.httpStatusCode||0)||xP(t)||TP(t)||t.cause!==void 0&&e<=10&&ha(t.cause,e+1)),m0=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!ha(t)}return!1}});var g0,Zp,h0,Sl,vP,DP,S0,Sa,ya,ef=g(()=>{g0=100,Zp=2e4,h0=500,Sl=500,vP=5,DP=10,S0=1,Sa="amz-sdk-invocation-id",ya="amz-sdk-request"});function IP(t,e){if(ft.isInstance(t))for(let r in t.headers){if(!W(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(gn(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function hq(t,e){return IP(t,e)}var wP=g(()=>{oe();V();j()});var y0,PP=g(()=>{y0=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function OP(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(Zxe(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=re.isInstance(m);for(y&&(m.headers[Sa]=Qu());;)try{y&&(m.headers[ya]=`attempt=${u+1}; max=${i}`);let{response:_,output:C}=await r(o);return s.recordSuccess(a),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=f,{response:_,output:C}}catch(_){let C=eTe(_,e.logger);if(c=y0(_),y&&t(m))throw(n.logger instanceof Nr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,C)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let A=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+A,A>0&&await Xxe(A)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function Sq(t){let e=OP(t);return r=>({applyToStack:n=>{n.add(e(r),$P)}})}var Xxe,Zxe,eTe,tTe,$P,kP=g(()=>{J();V();j();hl();ef();wP();PP();Xxe=t=>new Promise(e=>setTimeout(e,t)),Zxe=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",eTe=(t,e)=>{let r={error:t,errorType:tTe(t)},n=IP(t.$response,e);return n&&(r.retryAfterHint=n),r},tTe=t=>Os(t)?"THROTTLING":ha(t)?"TRANSIENT":m0(t)?"SERVER_ERROR":"CLIENT_ERROR",$P={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ea,E0=g(()=>{hl();Ea=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Os(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var xt,yl=g(()=>{xt=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var _0,yq=g(()=>{yl();_0=class{x=xt.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var tf,Eq=g(()=>{tf=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var er,Po,Yn,wc=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(er||(er={}));Po=3,Yn=er.STANDARD});var R0,Oo,rf=g(()=>{yq();Eq();wc();yl();R0={incompatible:1,attempts:2,capacity:3},Oo=class{mode=er.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Po,this.baseDelay??=xt.delay(),this.retryBackoffStrategy??=new _0}async acquireInitialRetryToken(e){return new tf(xt.delay(),0,void 0,xt.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?xt.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new tf(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=xt.v2026&&o===R0.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Po}`),Po}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:R0.incompatible,i=o<n?0:R0.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:R0.capacity;return s||i||a}getCapacityCost(e){return e===xt.modifiedCostType()?xt.throttlingCost():xt.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var El,MP=g(()=>{E0();rf();wc();El=class{mode=er.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Ea,this.standardRetryStrategy=r?new Oo({maxAttempts:typeof e=="number"?e:3,...r}):new Oo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var C0,_q=g(()=>{rf();yl();C0=class extends Oo{computeNextBackoffDelay;constructor(e,r=xt.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var Rq,Cq=g(()=>{Rq=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var b0,LP=g(()=>{b0=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var A0,NP=g(()=>{hl();A0=t=>t?Xp(t)||f0(t)||Os(t)||ha(t):!1});var _l,rTe,FP=g(()=>{V();j();hl();wc();ef();PP();Cq();LP();NP();_l=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=er.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??A0,this.delayDecider=r?.delayDecider??b0,this.retryQuota=r?.retryQuota??Rq(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Po}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(re.isInstance(c)&&(c.headers[Sa]=Qu());;)try{re.isInstance(c)&&(c.headers[ya]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=y0(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(Os(f)?500:100,s),y=rTe(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(C=>setTimeout(C,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},rTe=t=>{if(!ft.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var x0,bq=g(()=>{E0();wc();FP();x0=class extends _l{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new Ea,this.mode=er.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var T0,v0,$s,ks,BP,UP,Ms,Aq=g(()=>{J();MP();rf();wc();yl();T0="AWS_MAX_ATTEMPTS",v0="max_attempts",$s={environmentVariableSelector:t=>{let e=t[T0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${T0} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[v0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${v0} mast be a number, got "${e}"`);return r},default:Po},ks=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=Po,defaultBaseDelay:s=xt.delay()}=e??{},i=we(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await we(n)()===er.ADAPTIVE?new El(i,{maxAttempts:u,baseDelay:s}):new Oo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},BP="AWS_RETRY_MODE",UP="retry_mode",Ms={environmentVariableSelector:t=>t[BP],configFileSelector:t=>t[UP],default:Yn}});var GP,qP,xq,Tq=g(()=>{V();ef();GP=()=>t=>async e=>{let{request:r}=e;return re.isInstance(r)&&(delete r.headers[Sa],delete r.headers[ya]),t(e)},qP={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},xq=t=>({applyToStack:e=>{e.addRelativeTo(GP(),qP)}})});var nf={};Ct(nf,{AdaptiveRetryStrategy:()=>El,CONFIG_MAX_ATTEMPTS:()=>v0,CONFIG_RETRY_MODE:()=>UP,ConfiguredRetryStrategy:()=>C0,DEFAULT_MAX_ATTEMPTS:()=>Po,DEFAULT_RETRY_DELAY_BASE:()=>g0,DEFAULT_RETRY_MODE:()=>Yn,DefaultRateLimiter:()=>Ea,DeprecatedAdaptiveRetryStrategy:()=>x0,DeprecatedStandardRetryStrategy:()=>_l,ENV_MAX_ATTEMPTS:()=>T0,ENV_RETRY_MODE:()=>BP,INITIAL_RETRY_TOKENS:()=>Sl,INVOCATION_ID_HEADER:()=>Sa,MAXIMUM_RETRY_DELAY:()=>Zp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>$s,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Ms,NO_RETRY_INCREMENT:()=>S0,REQUEST_HEADER:()=>ya,RETRY_COST:()=>vP,RETRY_MODES:()=>er,Retry:()=>xt,StandardRetryStrategy:()=>Oo,THROTTLING_RETRY_DELAY_BASE:()=>h0,TIMEOUT_RETRY_COST:()=>DP,defaultDelayDecider:()=>b0,defaultRetryDecider:()=>A0,getOmitRetryHeadersPlugin:()=>xq,getRetryAfterHint:()=>hq,getRetryPlugin:()=>xi,isBrowserNetworkError:()=>xP,isClockSkewCorrectedError:()=>AP,isClockSkewError:()=>f0,isNodeJsHttp2TransientError:()=>TP,isRetryableByTrait:()=>Xp,isServerError:()=>m0,isThrottlingError:()=>Os,isTransientError:()=>ha,omitRetryHeadersMiddleware:()=>GP,omitRetryHeadersMiddlewareOptions:()=>qP,resolveRetryConfig:()=>ks,retryMiddleware:()=>nTe,retryMiddlewareOptions:()=>$P});var nTe,xi,en=g(()=>{z3();kP();hl();MP();_q();E0();rf();wc();ef();yl();bq();FP();LP();NP();Aq();Tq();kP();wP();nTe=OP(GD),xi=Sq(GD)});function We(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var HP=g(()=>{en();xt.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function vq(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Dq=g(()=>{});function Rl(t){return t}var jP,zP,Ls,Iq=g(()=>{V();jP=t=>e=>async r=>{if(!re.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},zP={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ls=t=>({applyToStack:e=>{e.add(jP(t),zP)}})});var VP,WP,Ns,wq=g(()=>{VP=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},WP={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ns=t=>({applyToStack:e=>{e.add(VP(),WP)}})});var D0,KP=g(()=>{D0={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _a,QP,I0,YP,JP,of,Pq=g(()=>{_a={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},QP=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");QP||(globalThis.awslambda=globalThis.awslambda||{});I0=class{static PROTECTED_KEYS=_a;isProtectedKey(e){return Object.values(_a).includes(e)}getRequestId(){return this.get(_a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_a.X_RAY_TRACE_ID)}getTenantId(){return this.get(_a.TENANT_ID)}getTraceparent(){return this.get(_a.TRACEPARENT)}getTracestate(){return this.get(_a.TRACESTATE)}getBaggage(){return this.get(_a.BAGGAGE)}},YP=class extends I0{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},JP=class t extends I0{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await JP.create():new YP;return!QP&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!QP&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(of||(of={}))});function iTe(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===ZP||r===Oq||r===$q)&&(t[r]=t[e],delete t[e])}}var oTe,sTe,XP,ZP,Oq,$q,w0,eO=g(()=>{Pq();V();oTe="AWS_LAMBDA_FUNCTION_NAME",sTe="_X_AMZN_TRACE_ID",XP="X-Amzn-Trace-Id",ZP="traceparent",Oq="tracestate",$q="baggage",w0=()=>t=>async e=>{let{request:r}=e;if(!re.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===XP.toLowerCase())??XP;if(!r.headers.hasOwnProperty(o)){let s=process.env[oTe],i=process.env[sTe];n??=await of.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[XP]=c)}}if(iTe(r.headers),!r.headers[ZP]){let s=(n??=await of.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[ZP]=s;let i=n?.getTracestate?.();i&&(r.headers[Oq]=i);let a=n?.getBaggage?.();a&&(r.headers[$q]=a)}}return t(e)}});var Fs,kq=g(()=>{KP();eO();Fs=t=>({applyToStack:e=>{e.add(w0(),D0)}})});var Mq,Lq=g(()=>{Mq=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function aTe(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Pc,P0=g(()=>{oe();Lq();Pc=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=Mq(s,i),c=aTe(t.httpAuthSchemes),u=Le(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:C={},signingProperties:A={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},C),m.signingProperties=Object.assign(m.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
|
|
24
|
+
`));return r(o)}});var O0,$o,Nq=g(()=>{P0();O0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},$o=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),O0)}})});var $0,tO,Fq=g(()=>{P0();$0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},tO=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Pc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$0)}})});var Bq=g(()=>{P0();Nq();Fq()});var cTe,uTe,sf,rO=g(()=>{V();oe();cTe=t=>e=>{throw e},uTe=(t,e)=>{},sf=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||cTe)(i));return(c.successHandler||uTe)(u.response,i),u}});var Oc,ko,Uq=g(()=>{rO();Oc={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ko=t=>({applyToStack:e=>{e.addRelativeTo(sf(t),Oc)}})});var Gq=g(()=>{rO();Uq()});var Jn,qq=g(()=>{Jn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Hq(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await lTe(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=dTe(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var lTe,dTe,jq=g(()=>{lTe=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};dTe=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function zq(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var Vq=g(()=>{});var $n,Wq=g(()=>{oe();$n=class{authSchemes=new Map;constructor(e){for(let r in e){if(!W(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var nO,Cl,Kq=g(()=>{V();nO=De(Eo()),Cl=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=re.clone(e);if(n.in===nO.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===nO.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var bl,Qq=g(()=>{V();bl=class{async sign(e,r,n){let o=re.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Ur,Yq=g(()=>{Ur=class{async sign(e,r,n){return e}}});var Jq=g(()=>{Kq();Qq();Yq()});var k0,oO,af,Al,cf,Xq=g(()=>{k0=t=>function(r){return Al(r)&&r.expiration.getTime()-Date.now()<t},oO=3e5,af=k0(3e5),Al=t=>t.expiration!==void 0,cf=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var Zq=g(()=>{Wq();Jq();Xq()});var xl={};Ct(xl,{DefaultIdentityProviderConfig:()=>$n,EXPIRATION_MS:()=>oO,HttpApiKeyAuthSigner:()=>Cl,HttpBearerAuthSigner:()=>bl,NoAuthSigner:()=>Ur,createIsIdentityExpiredFunction:()=>k0,createPaginator:()=>Hq,doesIdentityRequireRefresh:()=>Al,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$o,getHttpAuthSchemePlugin:()=>tO,getHttpSigningPlugin:()=>ko,getSmithyContext:()=>Le,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>O0,httpAuthSchemeMiddleware:()=>Pc,httpAuthSchemeMiddlewareOptions:()=>$0,httpSigningMiddleware:()=>sf,httpSigningMiddlewareOptions:()=>Oc,isIdentityExpired:()=>af,memoizeIdentityProvider:()=>cf,normalizeProvider:()=>Jn,requestBuilder:()=>YS,setFeature:()=>zq});var jt=g(()=>{oe();Bq();Gq();qq();jq();V();Vq();Zq()});function pTe(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Bs(t){let e=Jn(t.userAgentAppId??uf),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!pTe(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var uf,sO=g(()=>{jt();uf=void 0});var iO,eH=g(()=>{iO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}});var tH,rH,M0,aO,nH,L0,N0=g(()=>{eH();tH=iO,rH="",M0=t=>{let{partitions:e}=tH;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},aO=(t,e="")=>{tH=t,rH=e},nH=()=>{aO(iO,"")},L0=()=>rH});async function oH(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&We(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case er.ADAPTIVE:We(t,"RETRY_MODE_ADAPTIVE","F");break;case er.STANDARD:We(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(fTe)&&We(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":We(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":We(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":We(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&We(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))We(t,i,a)}}var fTe,sH=g(()=>{en();HP();fTe=/\d{12}\.ddb/});var cO,F0,iH,aH,cH=g(()=>{cO="user-agent",F0="x-amz-user-agent",iH=/[^!$%&'*+\-.^_`|~\w]/g,aH=/[^!$%&'*+\-.^_`|~\w#]/g});function uH(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var lH=g(()=>{});var lO,B0,dO,Us,fH=g(()=>{V();N0();sH();cH();lH();lO=t=>(e,r)=>async n=>{let{request:o}=n;if(!re.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(B0)||[],a=(await t.defaultUserAgentProvider()).map(B0);await oH(r,t,n);let c=r;a.push(`m/${uH(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(B0)||[],f=await t.userAgentAppId();f&&a.push(B0(["app",`${f}`]));let m=L0(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(C=>C.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[F0]=s[F0]?`${s[cO]} ${_}`:_),s[cO]=y):s[F0]=y,e({...n,request:o})},B0=t=>{let e=t[0].split("/").map(i=>i.replace(iH,"-")).join("/"),r=t[1]?.replace(aH,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},dO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Us=t=>({applyToStack:e=>{e.add(lO(t),dO)}})});var U0,mH,gH=g(()=>{U0=require("node:process"),mH=()=>{let t=["deno","bun","llrt"];for(let e of t)if(U0.versions[e])return[`md/${e}`,U0.versions[e]];return["md/nodejs",U0.versions.node]}});var lf,pO=g(()=>{lf={isCrtAvailable:!1}});var hH,SH=g(()=>{pO();hH=()=>lf.isCrtAvailable?["md/crt-avail"]:null});var G0,fO,Mo,yH,EH=g(()=>{G0=require("node:os"),fO=require("node:process");gH();SH();pO();Mo=({serviceId:t,clientVersion:e})=>{let r=mH();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,G0.platform)()}`,(0,G0.release)()],["lang/js"],r],s=hH();s&&o.push(s),t&&o.push([`api/${t}`,e]),fO.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${fO.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},yH=Mo});var mO,gO,mTe,Gs,_H=g(()=>{sO();mO="AWS_SDK_UA_APP_ID",gO="sdk_ua_app_id",mTe="sdk-ua-app-id",Gs={environmentVariableSelector:t=>t[mO],configFileSelector:t=>t[gO]??t[mTe],default:uf}});var RH=st((df,hO)=>{(function(t,e){typeof df=="object"&&typeof hO=="object"?hO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof df=="object"?df.bowser=e():t.bowser=e()})(df,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(C){var A=m-s.getVersionPrecision(C),x=C+new Array(A+1).join(".0");return s.map(x.split("."),(function(T){return new Array(20-T.length).join("0")+T})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var C=m[a];typeof C=="object"&&C!==null&&Object.keys(C).forEach((function(A){u[A]=C[A]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,C)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var A=!1;typeof _=="boolean"?(A=_,this._hints=C):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},A!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(C){return C.brand&&C.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),C=this._hints.brands.find((function(A){return A.brand&&A.brand.toLowerCase()===_}));return C?C.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,C={},A=0,x={},T=0;if(Object.keys(y).forEach((function(pt){var Yr=y[pt];typeof Yr=="string"?(x[pt]=Yr,T+=1):typeof Yr=="object"&&(C[pt]=Yr,A+=1)})),A>0){var I=Object.keys(C),q=a.default.find(I,(function(pt){return _.isOS(pt)}));if(q){var H=this.satisfies(C[q]);if(H!==void 0)return H}var me=a.default.find(I,(function(pt){return _.isPlatform(pt)}));if(me){var et=this.satisfies(C[me]);if(et!==void 0)return et}}if(T>0){var ot=Object.keys(x),tt=a.default.find(ot,(function(pt){return _.isBrowser(pt,!0)}));if(tt!==void 0)return this.compareVersion(x[tt])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var C=this.getBrowserName().toLowerCase(),A=y.toLowerCase(),x=a.default.getBrowserTypeByAlias(A);return _&&x&&(A=x.toLowerCase()),A===C},m.compareVersion=function(y){var _=[0],C=y,A=!1,x=this.getBrowserVersion();if(typeof x=="string")return y[0]===">"||y[0]==="<"?(C=y.substr(1),y[1]==="="?(A=!0,C=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?C=y.substr(1):y[0]==="~"&&(A=!0,C=y.substr(1)),_.indexOf(a.default.compareVersions(x,C,A))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(C){return _.is(C)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var CH,bH=g(()=>{CH=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>De(RH())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var AH,xH=g(()=>{AH={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var SO=g(()=>{He()});var pf,yO=g(()=>{He();SO();pf=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!pf(r))return!1;return!0}return!(!_o(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_i(t))}});var q0,EO=g(()=>{q0=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var Lo,TH=g(()=>{He();yO();EO();N0();Lo={isVirtualHostableS3Bucket:pf,parseArn:q0,partition:M0};hn.aws=Lo});var vH=g(()=>{He()});var DH,_O,IH=g(()=>{V();DH=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>_O(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},_O=t=>Cr(t.url)});var wH=g(()=>{He()});var PH=g(()=>{ye();ye()});function H0(t={}){return ue({...Ar,async default(){return RO.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Zr,...t})}var RO,OH=g(()=>{ye();RO={silence:!1}});var qs,Hs,$H=g(()=>{qs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Hs=t=>({region:t.region()})});var kn={};Ct(kn,{DEFAULT_UA_APP_ID:()=>uf,EndpointError:()=>be,NODE_APP_ID_CONFIG_OPTIONS:()=>Gs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,REGION_ENV_NAME:()=>ju,REGION_INI_NAME:()=>zu,UA_APP_ID_ENV_NAME:()=>mO,UA_APP_ID_INI_NAME:()=>gO,awsEndpointFunctions:()=>Lo,createDefaultUserAgentProvider:()=>Mo,createUserAgentStringParsingProvider:()=>CH,crtAvailability:()=>lf,defaultUserAgent:()=>yH,emitWarningIfUnsupportedVersion:()=>us,fallback:()=>AH,getAwsRegionExtensionConfiguration:()=>qs,getHostHeaderPlugin:()=>Ls,getLoggerPlugin:()=>Ns,getLongPollPlugin:()=>G3,getRecursionDetectionPlugin:()=>Fs,getUserAgentMiddlewareOptions:()=>dO,getUserAgentPlugin:()=>Us,getUserAgentPrefix:()=>L0,hostHeaderMiddleware:()=>jP,hostHeaderMiddlewareOptions:()=>zP,isIpAddress:()=>_i,isVirtualHostableS3Bucket:()=>pf,loggerMiddleware:()=>VP,loggerMiddlewareOptions:()=>WP,parseArn:()=>q0,partition:()=>M0,recursionDetectionMiddleware:()=>w0,recursionDetectionMiddlewareOptions:()=>D0,resolveAwsRegionExtensionConfiguration:()=>Hs,resolveDefaultAwsRegionalEndpointsConfig:()=>DH,resolveEndpoint:()=>Hp,resolveHostHeaderConfig:()=>Rl,resolveRegionConfig:()=>In,resolveUserAgentConfig:()=>Bs,setCredentialFeature:()=>Yi,setFeature:()=>We,setPartitionInfo:()=>aO,setTokenFeature:()=>vq,state:()=>gp,stsRegionDefaultResolver:()=>H0,stsRegionWarning:()=>RO,toEndpointV1:()=>_O,useDefaultPartitionInfo:()=>nH,userAgentMiddleware:()=>lO});var Ee=g(()=>{U3();q3();H3();HP();Dq();Iq();wq();KP();kq();eO();sO();fH();EH();_H();xH();bH();TH();vH();IH();SO();yO();EO();N0();wH();PH();OH();$H()});var MH=st(kH=>{var{createGzip:gTe}=require("node:zlib");kH.compressStream=async t=>t.pipe(gTe())});var FH=st(NH=>{var{promisify:hTe}=require("node:util"),{gzip:STe}=require("node:zlib"),{toUint8Array:LH}=(j(),F(To)),yTe=hTe(STe);NH.compressString=async t=>{try{let e=await yTe(LH(t||""));return LH(e)}catch(e){throw new Error("Failure during compression: "+e.message)}}});var YH=st(Mn=>{var{booleanSelector:BH,SelectorType:j0,numberSelector:UH}=(ye(),F(Br)),{setFeature:ETe}=(jt(),F(xl)),{HttpRequest:_Te}=(V(),F(wo)),{compressStream:RTe}=MH(),{compressString:CTe}=FH(),{isArrayBuffer:bTe}=(j(),F(To)),{normalizeProvider:GH}=(J(),F(bo)),qH="AWS_DISABLE_REQUEST_COMPRESSION",HH="disable_request_compression",jH=!1,ATe={environmentVariableSelector:t=>BH(t,qH,j0.ENV),configFileSelector:t=>BH(t,HH,j0.CONFIG),default:jH},zH="AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES",VH="request_min_compression_size_bytes",WH=10240,xTe={environmentVariableSelector:t=>UH(t,zH,j0.ENV),configFileSelector:t=>UH(t,VH,j0.CONFIG),default:WH},CO;(function(t){t.GZIP="gzip"})(CO||(CO={}));var TTe=[CO.GZIP],vTe=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!bTe(t),KH=(t,e)=>(r,n)=>async o=>{if(!_Te.isInstance(o.request)||await t.disableRequestCompression())return r(o);let{request:i}=o,{body:a,headers:c}=i,{encodings:u,streamRequiresLength:f}=e,m=a,y=c;for(let _ of u)if(TTe.includes(_)){let C=!1;if(vTe(a))if(!f)m=await RTe(a),C=!0;else throw new Error("Compression is not supported for streaming blobs that require a length.");else{let A=t.bodyLengthChecker(a),x=await t.requestMinCompressionSizeBytes();A&&A>=x&&(m=await CTe(a),C=!0)}if(C){c["content-encoding"]?y={...c,"content-encoding":`${c["content-encoding"]}, ${_}`}:y={...c,"content-encoding":_},y["content-encoding"].includes("gzip")&&ETe(n,"GZIP_REQUEST_COMPRESSION","L");break}}return r({...o,request:{...i,body:m,headers:y}})},QH={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},DTe=(t,e)=>({applyToStack:r=>{r.add(KH(t,e),QH)}}),ITe=t=>{let{disableRequestCompression:e,requestMinCompressionSizeBytes:r}=t;return Object.assign(t,{disableRequestCompression:GH(e),requestMinCompressionSizeBytes:async()=>{let n=await GH(r)();if(n<0||n>10485760)throw new RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${n} is outside this range."`);return n}})};Mn.DEFAULT_DISABLE_REQUEST_COMPRESSION=jH;Mn.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES=WH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS=ATe;Mn.NODE_DISABLE_REQUEST_COMPRESSION_ENV_NAME=qH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_INI_NAME=HH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS=xTe;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_ENV_NAME=zH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_INI_NAME=VH;Mn.compressionMiddleware=KH;Mn.compressionMiddlewareOptions=QH;Mn.getCompressionPlugin=DTe;Mn.resolveCompressionConfig=ITe});var z0,V0,JH=g(()=>{V();z0=t=>ft.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,V0=t=>ft.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var ff,XH=g(()=>{ff=t=>new Date(Date.now()+t)});var W0,ZH=g(()=>{W0=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var bO=g(()=>{JH();XH();ZH()});var ej,mf,wTe,Tl,tr,AO,xO=g(()=>{V();ej=De(Eo());bO();mf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},wTe=t=>t.context?.[ej.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,Tl=async t=>{let e=mf("context",t.context),r=mf("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await mf("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},tr=class{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await Tl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,C]=u.authSchemes;_?.name==="sigv4a"&&C?.name==="sigv4"&&(a=C?.signingRegion??a,c=C?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||wTe(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:ff(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??z0(n.$response);if(o){let s=mf("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=V0(n.$response),u=W0(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=z0(e);if(n){let o=mf("config",r.config),s=r._requestSentAt,i=V0(e);o.systemClockOffset=W0(n,o.systemClockOffset,s,i)}}},AO=tr});var Ti,tj=g(()=>{V();bO();xO();Ti=class extends tr{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await Tl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:ff(o.systemClockOffset),signingRegion:f,signingService:c})}}});var TO,rj=g(()=>{TO=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var K0,vO=g(()=>{K0=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var nj,oj,No,sj=g(()=>{rj();vO();nj="AWS_AUTH_SCHEME_PREFERENCE",oj="auth_scheme_preference",No={environmentVariableSelector:(t,e)=>{if(e?.signingName&&K0(e.signingName)in t)return["httpBearerAuth"];if(nj in t)return TO(t[nj])},configFileSelector:t=>{if(oj in t)return TO(t[oj])},default:[]}});var gf,hf,ij=g(()=>{jt();ye();gf=t=>(t.sigv4aSigningRegionSet=Jn(t.sigv4aSigningRegionSet),t),hf={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Dn("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Dn("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var BO=st(fe=>{var{hasOwn:Dl,fromUtf8:aj,fromHex:PTe,toHex:$c,toUint8Array:Sf,isArrayBuffer:OTe}=(j(),F(To)),{normalizeProvider:cj}=(J(),F(bo)),{escapeUri:Q0,HttpRequest:pj}=(V(),F(wo)),DO=class{format(e){let r=[];for(let s in e){if(!Dl(e,s))continue;let i=aj(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=aj(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(IO.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!$Te.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(PTe(e.value.replace(/-/g,"")),1),m}}},uj;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(uj||(uj={}));var $Te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,IO=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&lj(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&lj(e),parseInt($c(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function lj(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var fj="X-Amz-Algorithm",mj="X-Amz-Credential",$O="X-Amz-Date",gj="X-Amz-SignedHeaders",hj="X-Amz-Expires",kO="X-Amz-Signature",MO="X-Amz-Security-Token",kTe="X-Amz-Region-Set",LO="authorization",NO=$O.toLowerCase(),Sj="date",yj=[LO,NO,Sj],Ej=kO.toLowerCase(),ey="x-amz-content-sha256",_j=MO.toLowerCase(),MTe="host",Rj={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},Cj=/^proxy-/,bj=/^sec-/,LTe=[/^proxy-/i,/^sec-/i],Y0="AWS4-HMAC-SHA256",NTe="AWS4-ECDSA-P256-SHA256",Aj="AWS4-HMAC-SHA256-PAYLOAD",xj="UNSIGNED-PAYLOAD",Tj=50,FO="aws4_request",vj=3600*24*7,Dj=({query:t={}})=>{let e=[],r={};for(let n in t){if(!Dl(t,n)||n.toLowerCase()===Ej)continue;let o=Q0(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${Q0(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${Q0(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},FTe=t=>BTe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),BTe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ty=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=cj(n),this.credentialProvider=cj(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
|
|
25
25
|
${this.getCanonicalPath(e)}
|
|
26
|
-
${
|
|
26
|
+
${Dj(e)}
|
|
27
27
|
${o.map(s=>`${s}:${r[s]}`).join(`
|
|
28
28
|
`)}
|
|
29
29
|
|
|
30
30
|
${o.join(";")}
|
|
31
|
-
${n}`}async createStringToSign(e,r,n,o){let s=new this.sha256;s.update(
|
|
31
|
+
${n}`}async createStringToSign(e,r,n,o){let s=new this.sha256;s.update(Sf(n));let i=await s.digest();return`${o}
|
|
32
32
|
${e}
|
|
33
33
|
${r}
|
|
34
|
-
${
|
|
35
|
-
`);return this.signString(A,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(hf(e)),Oc(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=vO(e),{longDate:f,shortDate:m}=this.formatDate(r),y=J0(m,c,i??this.service);u.headers[$O]=f,a.sessionToken&&(u.headers[hj]=a.sessionToken);let _=await X0(u,this.sha256);!Tj(Z0,u.headers)&&this.applyChecksum&&(u.headers[Z0]=_);let C=TO(u,o,n),A=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,C,_));return u.headers[OO]=`${Q0} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(C)}, Signature=${A}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,Q0),i=new this.sha256(await n);return i.update(hf(s)),Oc(await i.digest())}getSigningKey(e,r,n,o){return xj(this.sha256,e,n,r,o||this.service)}},ITe={SignatureV4a:null};fe.ALGORITHM_IDENTIFIER=Q0;fe.ALGORITHM_IDENTIFIER_V4A=xTe;fe.ALGORITHM_QUERY_PARAM=uj;fe.ALWAYS_UNSIGNABLE_HEADERS=Sj;fe.AMZ_DATE_HEADER=$O;fe.AMZ_DATE_QUERY_PARAM=IO;fe.AUTH_HEADER=OO;fe.CREDENTIAL_QUERY_PARAM=lj;fe.DATE_HEADER=fj;fe.EVENT_ALGORITHM_IDENTIFIER=_j;fe.EXPIRES_QUERY_PARAM=pj;fe.GENERATED_HEADERS=mj;fe.HOST_HEADER=bTe;fe.KEY_TYPE_IDENTIFIER=kO;fe.MAX_CACHE_SIZE=Cj;fe.MAX_PRESIGNED_TTL=bj;fe.PROXY_HEADER_PATTERN=yj;fe.REGION_SET_PARAM=CTe;fe.SEC_HEADER_PATTERN=Ej;fe.SHA256_HEADER=Z0;fe.SIGNATURE_HEADER=gj;fe.SIGNATURE_QUERY_PARAM=wO;fe.SIGNED_HEADERS_QUERY_PARAM=dj;fe.SignatureV4=DO;fe.SignatureV4Base=ey;fe.TOKEN_HEADER=hj;fe.TOKEN_QUERY_PARAM=PO;fe.UNSIGNABLE_PATTERNS=ATe;fe.UNSIGNED_PAYLOAD=Rj;fe.clearCredentialCache=DTe;fe.createScope=J0;fe.getCanonicalHeaders=TO;fe.getCanonicalQuery=Aj;fe.getPayloadHash=X0;fe.getSigningKey=xj;fe.hasHeader=Tj;fe.moveHeadersToQuery=vj;fe.prepareRequest=vO;fe.signatureV4aContainer=ITe});function wTe(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=af(e,sf,bl):r?n=Jn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function PTe(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var LO,NO,Dj=g(()=>{Ee();jt();LO=Ie(MO()),NO=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=wTe(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=PTe(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async C=>{let x=await y(C);return _&&(!x.$source||Object.keys(x.$source).length===0)?Yi(x,"CREDENTIALS_CODE","e"):x},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Jn(e.signer):e.regionInfoProvider?c=()=>Jn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let C={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},A=e.signerConstructor||LO.SignatureV4;return new A(C)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Jn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},C=e.signerConstructor||LO.SignatureV4;return new C(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:Jn(e.disableClockSkewCorrection??t)})}});var FO=g(()=>{RO();JH();tj();rj();Dj()});var OTe,$Te,Ij,wj=g(()=>{ye();OTe="AWS_DISABLE_CLOCK_SKEW_CORRECTION",$Te="disable_clock_skew_correction",Ij={environmentVariableSelector:t=>Ve(t,OTe,Be.ENV),configFileSelector:t=>Ve(t,$Te,Be.CONFIG),default:!1}});var Pj,Oj=g(()=>{ye();wj();Pj=ue(Ij)});var Dl={};Ct(Dl,{AWSSDKSigV4Signer:()=>_O,AwsSdkSigV4ASigner:()=>Ti,AwsSdkSigV4Signer:()=>tr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>No,NODE_SIGV4A_CONFIG_OPTIONS:()=>gf,getBearerTokenEnvKey:()=>W0,resolveAWSSDKSigV4Config:()=>kTe,resolveAwsSdkSigV4AConfig:()=>mf,resolveAwsSdkSigV4Config:()=>js,validateSigningProperties:()=>xl});var js,kTe,rr=g(()=>{FO();bO();FO();Oj();js=NO(Pj),kTe=js});var BO=st(Ra=>{var{setCredentialFeature:MTe}=(Ee(),F(kn)),{CredentialsProviderError:LTe}=(ye(),F(Br)),$j="AWS_ACCESS_KEY_ID",kj="AWS_SECRET_ACCESS_KEY",Mj="AWS_SESSION_TOKEN",Lj="AWS_CREDENTIAL_EXPIRATION",Nj="AWS_CREDENTIAL_SCOPE",Fj="AWS_ACCOUNT_ID",NTe=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[$j],r=process.env[kj],n=process.env[Mj],o=process.env[Lj],s=process.env[Nj],i=process.env[Fj];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return MTe(a,"CREDENTIALS_ENV_VARS","g"),a}throw new LTe("Unable to find environment variable credentials.",{logger:t?.logger})};Ra.ENV_ACCOUNT_ID=Fj;Ra.ENV_CREDENTIAL_SCOPE=Nj;Ra.ENV_EXPIRATION=Lj;Ra.ENV_KEY=$j;Ra.ENV_SECRET=kj;Ra.ENV_SESSION=Mj;Ra.fromEnv=NTe});var ry=st(Xn=>{var{ProviderError:UO,CredentialsProviderError:Ca,loadConfig:zO}=(ye(),F(Br)),FTe=require("node:http"),{parseUrl:BTe}=(V(),F(wo)),qj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Hj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),jj=1e3,zj=0,VO=({maxRetries:t=zj,timeout:e=jj})=>({maxRetries:t,timeout:e});function Ef(t){return new Promise((e,r)=>{let n=FTe.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new UO("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new UO("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new UO("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var qO=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},Sf="AWS_CONTAINER_CREDENTIALS_FULL_URI",ty="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",HO="AWS_CONTAINER_AUTHORIZATION_TOKEN",UTe=(t={})=>{let{timeout:e,maxRetries:r}=VO(t);return()=>qO(async()=>{let n=await zTe({logger:t.logger}),o=JSON.parse(await GTe(e,n));if(!qj(o))throw new Ca("Invalid response received from instance metadata service.",{logger:t.logger});return Hj(o)},r)},GTe=async(t,e)=>(process.env[HO]&&(e.headers={...e.headers,Authorization:process.env[HO]}),(await Ef({...e,timeout:t})).toString()),qTe="169.254.170.2",HTe=new Set(["localhost","127.0.0.1"]),jTe=new Set(["http:","https:"]),zTe=async({logger:t})=>{if(process.env[ty])return{hostname:qTe,path:process.env[ty]};if(process.env[Sf]){let e;try{e=new URL(process.env[Sf])}catch{throw new Ca(`${process.env[Sf]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!HTe.has(e.hostname))throw new Ca(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!jTe.has(e.protocol))throw new Ca(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Ca(`The container metadata credential provider cannot be used unless the ${ty} or ${Sf} environment variable is set`,{tryNextLink:!1,logger:t})},jO=class t extends Ca{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},yf;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(yf||(yf={}));var VTe="AWS_EC2_METADATA_SERVICE_ENDPOINT",WTe="ec2_metadata_service_endpoint",KTe={environmentVariableSelector:t=>t[VTe],configFileSelector:t=>t[WTe],default:void 0},Il;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(Il||(Il={}));var QTe="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",YTe="ec2_metadata_service_endpoint_mode",JTe={environmentVariableSelector:t=>t[QTe],configFileSelector:t=>t[YTe],default:Il.IPv4},Vj=async()=>BTe(await XTe()||await ZTe()),XTe=async()=>zO(KTe)(),ZTe=async()=>{let t=await zO(JTe)();switch(t){case Il.IPv4:return yf.IPv4;case Il.IPv6:return yf.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(Il)}`)}},eve=300,tve=300,rve="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Bj=(t,e)=>{let r=eve+Math.floor(Math.random()*tve),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
|
|
36
|
-
For more information, please visit: `+
|
|
34
|
+
${$c(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return Q0(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=FTe(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},vl={},J0=[],X0=(t,e,r)=>`${t}/${e}/${r}/${FO}`,Ij=async(t,e,r,n,o)=>{let s=await dj(t,e.secretAccessKey,e.accessKeyId),i=`${r}:${n}:${o}:${$c(s)}:${e.sessionToken}`;if(i in vl)return vl[i];for(J0.push(i);J0.length>Tj;)delete vl[J0.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[r,n,o,FO])a=await dj(t,a,c);return vl[i]=a},UTe=()=>{J0.length=0,Object.keys(vl).forEach(t=>{delete vl[t]})},dj=(t,e,r)=>{let n=new t(e);return n.update(Sf(r)),n.digest()},wO=({headers:t},e,r)=>{let n={};for(let o of Object.keys(t).sort()){if(t[o]==null)continue;let s=o.toLowerCase();(s in Rj||e?.has(s)||Cj.test(s)||bj.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[o].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},Z0=async({headers:t,body:e},r)=>{for(let n in t)if(Dl(t,n)&&n.toLowerCase()===ey)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||OTe(e)){let n=new r;return n.update(Sf(e)),$c(await n.digest())}return xj},wj=(t,e)=>{t=t.toLowerCase();for(let r in e)if(Dl(e,r)&&t===r.toLowerCase())return!0;return!1},Pj=(t,e={})=>{let{headers:r,query:n={}}=pj.clone(t);for(let o in r){if(!Dl(r,o))continue;let s=o.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(n[o]=r[o],delete r[o])}return{...t,headers:r,query:n}},PO=t=>{t=pj.clone(t);for(let e in t.headers)Dl(t.headers,e)&&yj.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},OO=class extends ty{headerFormatter=new DO;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:u,signingService:f}=r,m=await this.credentialProvider();this.validateResolvedCredentials(m);let y=u??await this.regionProvider(),{longDate:_,shortDate:C}=this.formatDate(n);if(o>vj)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=X0(C,y,f??this.service),x=Pj(PO(e),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(x.query[MO]=m.sessionToken),x.query[fj]=Y0,x.query[mj]=`${m.accessKeyId}/${A}`,x.query[$O]=_,x.query[hj]=o.toString(10);let T=wO(x,s,a);return x.query[gj]=this.getCanonicalHeaderList(T),x.query[kO]=await this.getSignature(_,A,this.getSigningKey(m,y,C,f),this.createCanonicalRequest(x,T,await Z0(e,this.sha256))),x}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:o,signingRegion:s,signingService:i,eventStreamCredentials:a}){let c=s??await this.regionProvider(),{shortDate:u,longDate:f}=this.formatDate(n),m=X0(u,c,i??this.service),y=await Z0({headers:{},body:r},this.sha256),_=new this.sha256;_.update(e);let C=$c(await _.digest()),A=[Aj,f,m,o,C,y].join(`
|
|
35
|
+
`);return this.signString(A,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(Sf(e)),$c(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=PO(e),{longDate:f,shortDate:m}=this.formatDate(r),y=X0(m,c,i??this.service);u.headers[NO]=f,a.sessionToken&&(u.headers[_j]=a.sessionToken);let _=await Z0(u,this.sha256);!wj(ey,u.headers)&&this.applyChecksum&&(u.headers[ey]=_);let C=wO(u,o,n),A=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,C,_));return u.headers[LO]=`${Y0} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(C)}, Signature=${A}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,Y0),i=new this.sha256(await n);return i.update(Sf(s)),$c(await i.digest())}getSigningKey(e,r,n,o){return Ij(this.sha256,e,n,r,o||this.service)}},GTe={SignatureV4a:null};fe.ALGORITHM_IDENTIFIER=Y0;fe.ALGORITHM_IDENTIFIER_V4A=NTe;fe.ALGORITHM_QUERY_PARAM=fj;fe.ALWAYS_UNSIGNABLE_HEADERS=Rj;fe.AMZ_DATE_HEADER=NO;fe.AMZ_DATE_QUERY_PARAM=$O;fe.AUTH_HEADER=LO;fe.CREDENTIAL_QUERY_PARAM=mj;fe.DATE_HEADER=Sj;fe.EVENT_ALGORITHM_IDENTIFIER=Aj;fe.EXPIRES_QUERY_PARAM=hj;fe.GENERATED_HEADERS=yj;fe.HOST_HEADER=MTe;fe.KEY_TYPE_IDENTIFIER=FO;fe.MAX_CACHE_SIZE=Tj;fe.MAX_PRESIGNED_TTL=vj;fe.PROXY_HEADER_PATTERN=Cj;fe.REGION_SET_PARAM=kTe;fe.SEC_HEADER_PATTERN=bj;fe.SHA256_HEADER=ey;fe.SIGNATURE_HEADER=Ej;fe.SIGNATURE_QUERY_PARAM=kO;fe.SIGNED_HEADERS_QUERY_PARAM=gj;fe.SignatureV4=OO;fe.SignatureV4Base=ty;fe.TOKEN_HEADER=_j;fe.TOKEN_QUERY_PARAM=MO;fe.UNSIGNABLE_PATTERNS=LTe;fe.UNSIGNED_PAYLOAD=xj;fe.clearCredentialCache=UTe;fe.createScope=X0;fe.getCanonicalHeaders=wO;fe.getCanonicalQuery=Dj;fe.getPayloadHash=Z0;fe.getSigningKey=Ij;fe.hasHeader=wj;fe.moveHeadersToQuery=Pj;fe.prepareRequest=PO;fe.signatureV4aContainer=GTe});function qTe(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=cf(e,af,Al):r?n=Jn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function HTe(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var UO,GO,Oj=g(()=>{Ee();jt();UO=De(BO()),GO=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=qTe(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=HTe(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async C=>{let x=await y(C);return _&&(!x.$source||Object.keys(x.$source).length===0)?Yi(x,"CREDENTIALS_CODE","e"):x},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Jn(e.signer):e.regionInfoProvider?c=()=>Jn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let C={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},A=e.signerConstructor||UO.SignatureV4;return new A(C)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Jn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},C=e.signerConstructor||UO.SignatureV4;return new C(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:Jn(e.disableClockSkewCorrection??t)})}});var qO=g(()=>{xO();tj();sj();ij();Oj()});var jTe,zTe,$j,kj=g(()=>{ye();jTe="AWS_DISABLE_CLOCK_SKEW_CORRECTION",zTe="disable_clock_skew_correction",$j={environmentVariableSelector:t=>Ve(t,jTe,Be.ENV),configFileSelector:t=>Ve(t,zTe,Be.CONFIG),default:!1}});var Mj,Lj=g(()=>{ye();kj();Mj=ue($j)});var Il={};Ct(Il,{AWSSDKSigV4Signer:()=>AO,AwsSdkSigV4ASigner:()=>Ti,AwsSdkSigV4Signer:()=>tr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>No,NODE_SIGV4A_CONFIG_OPTIONS:()=>hf,getBearerTokenEnvKey:()=>K0,resolveAWSSDKSigV4Config:()=>VTe,resolveAwsSdkSigV4AConfig:()=>gf,resolveAwsSdkSigV4Config:()=>js,validateSigningProperties:()=>Tl});var js,VTe,rr=g(()=>{qO();vO();qO();Lj();js=GO(Mj),VTe=js});var HO=st(Ra=>{var{setCredentialFeature:WTe}=(Ee(),F(kn)),{CredentialsProviderError:KTe}=(ye(),F(Br)),Nj="AWS_ACCESS_KEY_ID",Fj="AWS_SECRET_ACCESS_KEY",Bj="AWS_SESSION_TOKEN",Uj="AWS_CREDENTIAL_EXPIRATION",Gj="AWS_CREDENTIAL_SCOPE",qj="AWS_ACCOUNT_ID",QTe=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[Nj],r=process.env[Fj],n=process.env[Bj],o=process.env[Uj],s=process.env[Gj],i=process.env[qj];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return WTe(a,"CREDENTIALS_ENV_VARS","g"),a}throw new KTe("Unable to find environment variable credentials.",{logger:t?.logger})};Ra.ENV_ACCOUNT_ID=qj;Ra.ENV_CREDENTIAL_SCOPE=Gj;Ra.ENV_EXPIRATION=Uj;Ra.ENV_KEY=Nj;Ra.ENV_SECRET=Fj;Ra.ENV_SESSION=Bj;Ra.fromEnv=QTe});var ny=st(Xn=>{var{ProviderError:jO,CredentialsProviderError:Ca,loadConfig:QO}=(ye(),F(Br)),YTe=require("node:http"),{parseUrl:JTe}=(V(),F(wo)),Vj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Wj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),Kj=1e3,Qj=0,YO=({maxRetries:t=Qj,timeout:e=Kj})=>({maxRetries:t,timeout:e});function _f(t){return new Promise((e,r)=>{let n=YTe.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new jO("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new jO("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new jO("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var VO=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},yf="AWS_CONTAINER_CREDENTIALS_FULL_URI",ry="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",WO="AWS_CONTAINER_AUTHORIZATION_TOKEN",XTe=(t={})=>{let{timeout:e,maxRetries:r}=YO(t);return()=>VO(async()=>{let n=await nve({logger:t.logger}),o=JSON.parse(await ZTe(e,n));if(!Vj(o))throw new Ca("Invalid response received from instance metadata service.",{logger:t.logger});return Wj(o)},r)},ZTe=async(t,e)=>(process.env[WO]&&(e.headers={...e.headers,Authorization:process.env[WO]}),(await _f({...e,timeout:t})).toString()),eve="169.254.170.2",tve=new Set(["localhost","127.0.0.1"]),rve=new Set(["http:","https:"]),nve=async({logger:t})=>{if(process.env[ry])return{hostname:eve,path:process.env[ry]};if(process.env[yf]){let e;try{e=new URL(process.env[yf])}catch{throw new Ca(`${process.env[yf]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!tve.has(e.hostname))throw new Ca(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!rve.has(e.protocol))throw new Ca(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Ca(`The container metadata credential provider cannot be used unless the ${ry} or ${yf} environment variable is set`,{tryNextLink:!1,logger:t})},KO=class t extends Ca{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},Ef;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(Ef||(Ef={}));var ove="AWS_EC2_METADATA_SERVICE_ENDPOINT",sve="ec2_metadata_service_endpoint",ive={environmentVariableSelector:t=>t[ove],configFileSelector:t=>t[sve],default:void 0},wl;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(wl||(wl={}));var ave="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",cve="ec2_metadata_service_endpoint_mode",uve={environmentVariableSelector:t=>t[ave],configFileSelector:t=>t[cve],default:wl.IPv4},Yj=async()=>JTe(await lve()||await dve()),lve=async()=>QO(ive)(),dve=async()=>{let t=await QO(uve)();switch(t){case wl.IPv4:return Ef.IPv4;case wl.IPv6:return Ef.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(wl)}`)}},pve=300,fve=300,mve="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Hj=(t,e)=>{let r=pve+Math.floor(Math.random()*fve),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
|
|
36
|
+
For more information, please visit: `+mve);let o=t.originalExpiration??t.expiration;return{...t,...o?{originalExpiration:o}:{},expiration:n}},gve=(t,e={})=>{let r=e?.logger||console,n;return async()=>{let o;try{o=await t(),o.expiration&&o.expiration.getTime()<Date.now()&&(o=Hj(o,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),o=Hj(n,r);else throw s}return n=o,o}},Jj="/latest/meta-data/iam/security-credentials/",hve="/latest/api/token",zO="AWS_EC2_METADATA_V1_DISABLED",jj="ec2_metadata_v1_disabled",zj="x-aws-ec2-metadata-token",Sve=(t={})=>gve(yve(t),{logger:t.logger}),yve=(t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:o,maxRetries:s}=YO(t),i=async(a,c)=>{if(e||c.headers?.[zj]==null){let m=!1,y=!1,_=await QO({environmentVariableSelector:C=>{let A=C[zO];if(y=!!A&&A!=="false",A===void 0)throw new Ca(`${zO} not set in env, checking config file next.`,{logger:t.logger});return y},configFileSelector:C=>{let A=C[jj];return m=!!A&&A!=="false",m},default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||_){let C=[];throw t.ec2MetadataV1Disabled&&C.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),m&&C.push(`config file profile (${jj})`),y&&C.push(`process environment variable (${zO})`),new KO(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${C.join(", ")}].`)}}let f=(await VO(async()=>{let m;try{m=await _ve(c)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)).trim();return VO(async()=>{let m;try{m=await Rve(f,c,t)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)};return async()=>{let a=await Yj();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(s,{...a,timeout:o});{let c;try{c=(await Eve({...a,timeout:o})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(s,{...a,timeout:o})}return i(s,{...a,headers:{[zj]:c},timeout:o})}}},Eve=async t=>_f({...t,path:hve,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),_ve=async t=>(await _f({...t,path:Jj})).toString(),Rve=async(t,e,r)=>{let n=JSON.parse((await _f({...e,path:Jj+t})).toString());if(!Vj(n))throw new Ca("Invalid response received from instance metadata service.",{logger:r.logger});return Wj(n)};Xn.DEFAULT_MAX_RETRIES=Qj;Xn.DEFAULT_TIMEOUT=Kj;Xn.ENV_CMDS_AUTH_TOKEN=WO;Xn.ENV_CMDS_FULL_URI=yf;Xn.ENV_CMDS_RELATIVE_URI=ry;Xn.Endpoint=Ef;Xn.fromContainerMetadata=XTe;Xn.fromInstanceMetadata=Sve;Xn.getInstanceMetadataEndpoint=Yj;Xn.httpRequest=_f;Xn.providerConfigFromInit=YO});var zs=st(Cf=>{var{hasOwn:n6}=(j(),F(To)),{streamCollector:Cve}=(j(),F(To));Cf.streamCollector=Cve;var{buildQueryString:o6,HttpResponse:s6}=(V(),F(wo)),oy=require("node:https"),{Readable:bve}=require("node:stream"),JO=require("node:http2");function iy(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let o=new Error("Request aborted");return o.name="AbortError",o.cause=e,o}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var Ave=["ECONNRESET","EPIPE","ETIMEDOUT"],i6=t=>{let e={};for(let r in t){if(!n6(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},vr={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},Xj=1e3,xve=(t,e,r=0)=>{if(!r)return-1;let n=o=>{let s=vr.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-o),i=a=>{a?.connecting?a.on("connect",()=>{vr.clearTimeout(s)}):vr.clearTimeout(s)};t.socket?i(t.socket):t.on("socket",i)};return r<2e3?(n(0),0):vr.setTimeout(n.bind(null,Xj),Xj)},Tve=(t,e,r=0,n,o)=>r?vr.setTimeout(()=>{let s=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let i=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i),e(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",o?.warn?.(s)},r):-1,vve=3e3,Dve=(t,{keepAlive:e,keepAliveMsecs:r},n=vve)=>{if(e!==!0)return-1;let o=()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",s=>{s.setKeepAlive(e,r||0)})};return n===0?(o(),0):vr.setTimeout(o,n)},Zj=3e3,Ive=(t,e,r=0)=>{let n=o=>{let s=r-o,i=()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};t.socket?(t.socket.setTimeout(s,i),t.on("close",()=>t.socket?.removeListener("timeout",i))):t.setTimeout(s,i)};return 0<r&&r<6e3?(n(0),0):vr.setTimeout(n.bind(null,r===0?0:Zj),Zj)},e6=6e3;async function a6(t,e,r=e6,n=!1){let o=e.headers,s=o?o.Expect||o.expect:void 0,i=-1,a=!0;!n&&s==="100-continue"&&(a=await Promise.race([new Promise(c=>{i=Number(vr.setTimeout(()=>c(!0),Math.max(e6,r)))}),new Promise(c=>{t.on("continue",()=>{vr.clearTimeout(i),c(!0)}),t.on("response",()=>{vr.clearTimeout(i),c(!1)}),t.on("error",()=>{vr.clearTimeout(i),c(!1)})})])),a&&wve(t,e.body)}function wve(t,e){if(e instanceof bve){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let o=e;if(typeof o=="object"&&o.buffer&&typeof o.byteOffset=="number"&&typeof o.byteLength=="number"){t.end(Buffer.from(o.buffer,o.byteOffset,o.byteLength));return}t.end(Buffer.from(e));return}t.end()}var Pve=0,sy,t6,XO=class t{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:o,requests:s,maxSockets:i}=e;if(typeof i!="number"||i===1/0||Date.now()-15e3<r)return r;if(o&&s)for(let c in o){if(!n6(o,c))continue;let u=o[c]?.length??0,f=s[c]?.length??0;if(u>=i&&f>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${f} additional requests are enqueued.
|
|
37
37
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
38
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,C=-1,A=()=>{vr.clearTimeout(f),vr.clearTimeout(m),vr.clearTimeout(y),vr.clearTimeout(_),vr.clearTimeout(C)},x=async ie=>{await u,A(),a(ie)},T=async ie=>{await u,A(),c(ie)};if(r?.aborted){let ie=sy(r);T(ie);return}let I=e.headers,q=I?(I.Expect??I.expect)==="100-continue":!1,H=i?o.httpsAgent:o.httpAgent;q&&!this.externalAgent&&(H=new(i?ny.Agent:oy)({keepAlive:!1,maxSockets:1/0})),f=vr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(H,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let me=e.query?e6(e.query):"",et;if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";et=`${ie}:${Gt}`}let ot=e.path;me&&(ot+=`?${me}`),e.fragment&&(ot+=`#${e.fragment}`);let tt=e.hostname??"";tt[0]==="["&&tt.endsWith("]")?tt=e.hostname.slice(1,-1):tt=e.hostname;let pt={headers:e.headers,host:tt,method:e.method,path:ot,port:e.port,agent:H,auth:et},Jr=(i?ny.request:Jj)(pt,ie=>{let Gt=new t6({statusCode:ie.statusCode||-1,reason:ie.statusMessage,headers:r6(ie.headers),body:ie});x({response:Gt})});if(Jr.on("error",ie=>{pve.includes(ie.code)?T(Object.assign(ie,{name:"TimeoutError"})):T(ie)}),r){let ie=()=>{Jr.destroy();let Gt=sy(r);T(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Jr.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}let fn=n??o.requestTimeout;m=fve(Jr,T,o.connectionTimeout),y=mve(Jr,T,fn,o.throwOnRequestTimeout,s??console),_=Sve(Jr,T,o.socketTimeout);let Xt=pt.agent;typeof Xt=="object"&&"keepAlive"in Xt&&(C=hve(Jr,{keepAlive:Xt.keepAlive,keepAliveMsecs:Xt.keepAliveMsecs})),u=n6(Jr,e,fn,this.externalAgent).catch(ie=>(A(),c(ie)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:C}=y.default??y;return Jj=C,oy=_,i instanceof oy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new oy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof ny.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new ny.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},_ve=new Uint16Array(1),_f=class{id=_ve[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},QO=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new _f(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},YO=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new _f(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new _f(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new QO;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?WO.connect(e):WO.connect(e,this.connectOptions)}},{constants:Xj}=WO,JO=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new YO({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async ie=>{await y,u(ie)},C=async ie=>{await y,f(ie)};if(r?.aborted){m=!0;let ie=sy(r);C(ie);return}let{hostname:A,method:x,port:T,protocol:I,query:q}=e,H="";if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";H=`${ie}:${Gt}@`}let me=`${I}//${H}${A}${T?`:${T}`:""}`,et={destination:new URL(me)},ot={requestTimeout:this.config?.sessionTimeout,isEventStream:o},tt=a?this.connectionManager.createIsolatedSession(et,ot):this.connectionManager.lease(et,ot),pt=tt.deref(),Yr=ie=>{a&&tt.destroy(),m=!0,C(ie)},Jr=q?e6(q):"",fn=e.path;Jr&&(fn+=`?${Jr}`),e.fragment&&(fn+=`#${e.fragment}`);let Xt=pt.request({...e.headers,[Xj.HTTP2_HEADER_PATH]:fn,[Xj.HTTP2_HEADER_METHOD]:x});if(c&&Xt.setTimeout(c,()=>{Xt.close();let ie=new Error(`Stream timed out because of no activity for ${c} ms`);ie.name="TimeoutError",Yr(ie)}),r){let ie=()=>{Xt.close();let Gt=sy(r);Yr(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xt.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}Xt.on("frameError",(ie,Gt,qbe)=>{Yr(new Error(`Frame type id ${ie} in stream id ${qbe} has failed with code ${Gt}.`))}),Xt.on("error",Yr),Xt.on("aborted",()=>{Yr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Xt.rstCode}.`))}),Xt.on("response",ie=>{let Gt=new t6({statusCode:ie[":status"]??-1,headers:r6(ie),body:Xt});m=!0,_({response:Gt}),a&&(pt.close(),Xt.on("end",()=>{tt.destroy()}))}),Xt.on("close",()=>{if(a?tt.destroy():this.connectionManager.release(et,tt),!m){let ie=new Error("Unexpected error: http2 request did not get a response");pt.destroyed&&(ie.name="TimeoutError"),Yr(ie)}}),y=n6(Xt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Rf.DEFAULT_REQUEST_TIMEOUT=Eve;Rf.NodeHttp2Handler=JO;Rf.NodeHttpHandler=KO});var XO=st(s6=>{var{setCredentialFeature:Rve}=(Ee(),F(kn)),{CredentialsProviderError:$c}=(ye(),F(Br)),{NodeHttpHandler:Cve}=zs(),bve=require("node:fs/promises"),{HttpRequest:Ave}=(V(),F(wo)),{sdkStreamMixin:xve,parseRfc3339DateTime:Tve}=(j(),F(To)),vve="169.254.170.2",Dve="169.254.170.23",Ive="[fd00:ec2::23]",wve=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===vve||t.hostname===Dve||t.hostname===Ive)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new $c(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
38
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,C=-1,A=()=>{vr.clearTimeout(f),vr.clearTimeout(m),vr.clearTimeout(y),vr.clearTimeout(_),vr.clearTimeout(C)},x=async ie=>{await u,A(),a(ie)},T=async ie=>{await u,A(),c(ie)};if(r?.aborted){let ie=iy(r);T(ie);return}let I=e.headers,q=I?(I.Expect??I.expect)==="100-continue":!1,H=i?o.httpsAgent:o.httpAgent;q&&!this.externalAgent&&(H=new(i?oy.Agent:sy)({keepAlive:!1,maxSockets:1/0})),f=vr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(H,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let me=e.query?o6(e.query):"",et;if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";et=`${ie}:${Gt}`}let ot=e.path;me&&(ot+=`?${me}`),e.fragment&&(ot+=`#${e.fragment}`);let tt=e.hostname??"";tt[0]==="["&&tt.endsWith("]")?tt=e.hostname.slice(1,-1):tt=e.hostname;let pt={headers:e.headers,host:tt,method:e.method,path:ot,port:e.port,agent:H,auth:et},Jr=(i?oy.request:t6)(pt,ie=>{let Gt=new s6({statusCode:ie.statusCode||-1,reason:ie.statusMessage,headers:i6(ie.headers),body:ie});x({response:Gt})});if(Jr.on("error",ie=>{Ave.includes(ie.code)?T(Object.assign(ie,{name:"TimeoutError"})):T(ie)}),r){let ie=()=>{Jr.destroy();let Gt=iy(r);T(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Jr.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}let fn=n??o.requestTimeout;m=xve(Jr,T,o.connectionTimeout),y=Tve(Jr,T,fn,o.throwOnRequestTimeout,s??console),_=Ive(Jr,T,o.socketTimeout);let Xt=pt.agent;typeof Xt=="object"&&"keepAlive"in Xt&&(C=Dve(Jr,{keepAlive:Xt.keepAlive,keepAliveMsecs:Xt.keepAliveMsecs})),u=a6(Jr,e,fn,this.externalAgent).catch(ie=>(A(),c(ie)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:C}=y.default??y;return t6=C,sy=_,i instanceof sy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new sy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof oy.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new oy.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},Ove=new Uint16Array(1),Rf=class{id=Ove[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},ZO=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Rf(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},e$=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new Rf(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new Rf(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new ZO;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?JO.connect(e):JO.connect(e,this.connectOptions)}},{constants:r6}=JO,t$=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new e$({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async ie=>{await y,u(ie)},C=async ie=>{await y,f(ie)};if(r?.aborted){m=!0;let ie=iy(r);C(ie);return}let{hostname:A,method:x,port:T,protocol:I,query:q}=e,H="";if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";H=`${ie}:${Gt}@`}let me=`${I}//${H}${A}${T?`:${T}`:""}`,et={destination:new URL(me)},ot={requestTimeout:this.config?.sessionTimeout,isEventStream:o},tt=a?this.connectionManager.createIsolatedSession(et,ot):this.connectionManager.lease(et,ot),pt=tt.deref(),Yr=ie=>{a&&tt.destroy(),m=!0,C(ie)},Jr=q?o6(q):"",fn=e.path;Jr&&(fn+=`?${Jr}`),e.fragment&&(fn+=`#${e.fragment}`);let Xt=pt.request({...e.headers,[r6.HTTP2_HEADER_PATH]:fn,[r6.HTTP2_HEADER_METHOD]:x});if(c&&Xt.setTimeout(c,()=>{Xt.close();let ie=new Error(`Stream timed out because of no activity for ${c} ms`);ie.name="TimeoutError",Yr(ie)}),r){let ie=()=>{Xt.close();let Gt=iy(r);Yr(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xt.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}Xt.on("frameError",(ie,Gt,eAe)=>{Yr(new Error(`Frame type id ${ie} in stream id ${eAe} has failed with code ${Gt}.`))}),Xt.on("error",Yr),Xt.on("aborted",()=>{Yr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Xt.rstCode}.`))}),Xt.on("response",ie=>{let Gt=new s6({statusCode:ie[":status"]??-1,headers:i6(ie),body:Xt});m=!0,_({response:Gt}),a&&(pt.close(),Xt.on("end",()=>{tt.destroy()}))}),Xt.on("close",()=>{if(a?tt.destroy():this.connectionManager.release(et,tt),!m){let ie=new Error("Unexpected error: http2 request did not get a response");pt.destroyed&&(ie.name="TimeoutError"),Yr(ie)}}),y=a6(Xt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Cf.DEFAULT_REQUEST_TIMEOUT=Pve;Cf.NodeHttp2Handler=t$;Cf.NodeHttpHandler=XO});var r$=st(u6=>{var{setCredentialFeature:$ve}=(Ee(),F(kn)),{CredentialsProviderError:kc}=(ye(),F(Br)),{NodeHttpHandler:kve}=zs(),Mve=require("node:fs/promises"),{HttpRequest:Lve}=(V(),F(wo)),{sdkStreamMixin:Nve,parseRfc3339DateTime:Fve}=(j(),F(To)),Bve="169.254.170.2",Uve="169.254.170.23",Gve="[fd00:ec2::23]",qve=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===Bve||t.hostname===Uve||t.hostname===Gve)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new kc(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
39
39
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
40
40
|
- ECS container host 169.254.170.2
|
|
41
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function
|
|
42
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);
|
|
43
|
-
`))throw new $c("Authorization token contains invalid \\r\\n sequence.");return t};s6.fromHttp=Bve});function Uve(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Gve(t){return{schemeId:"smithy.api#noAuth"}}var i6,a6,c6,ZO=g(()=>{rr();J();i6=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});a6=t=>{let e=[];return t.operation==="CreateToken"?e.push(Gve(t)):e.push(Uve(t)),e},c6=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var u6,l6,e$=g(()=>{u6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),l6={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ba,Cf=g(()=>{ba={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var t$,d6=g(()=>{t$=Symbol("@smithy/core/cbor::tagSymbol")});var bf,r$=g(()=>{bf=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function dy(t){let e=t.getSchema(),r=e[p6];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=Hve(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[p6]=i,i}function Hve(t){let e;py?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function S6(t){return py?Buffer.allocUnsafe(t):new Uint8Array(t)}function $l(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Vs(xr());return}Ue(1),de[se++]=246;return}if(t.isUnitSchema()){Ue(1),nr(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){iy(e);return}if(t.isTimestampSchema()&&e instanceof Date){i$(e);return}if(t.isStructSchema()){zve(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){g6(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){o$(t,e,!1,n);return}if(e instanceof Date){i$(e);return}if(e instanceof Uint8Array){iy(e);return}if(e instanceof Y){_6(e);return}if(e[t$]){let s=e;E6(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?g6(t,e,!0,n):o$(t,e,!0,n);return}if(t.isBigDecimalSchema()){kl(e);return}o$(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??Xe)(e);iy(s);return}Vs(e);return}if(typeof e=="number"){Ue(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?fy(e):f$(e);return}if(typeof e=="boolean"){Ue(1),de[se++]=224|(e?21:20);return}if(typeof e=="bigint"){uy(e);return}Vs(String(e))}function zve(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let C=e[y];if(C!=null){Ue(9),nr(5,1),Vs(y),$l(_,C,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Ue(9),nr(5,1),Vs(y[0]),kl(y[1])):(Ue(9),nr(5,0))}return}let n=dy(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Ue(c);let u=se;se+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Ue(_.length),de.set(_,se),se+=_.length,$l(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)W(e,m)&&(o.includes(m)||(Vs(m),kl(e[m]),++f));c===1?de[u]=160|f:c===2?(de[u]=184,de[u+1]=f):(de[u]=185,de[u+1]=f>>8,de[u+2]=f&255)}function g6(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Ue(9),nr(4,i.length);for(let a=0;a<i.length;++a)$l(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Ue(9),nr(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&$l(s,e[a],void 0,n)}}function o$(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!W(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Ue(9),nr(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];Vs(c),$l(s,e[c],void 0,n)}}function kl(t){if(t==null){Ue(1),de[se++]=246;return}if(typeof t=="string"){Vs(t);return}if(typeof t=="number"){Ue(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?fy(t):f$(t);return}if(typeof t=="boolean"){Ue(1),de[se++]=224|(t?21:20);return}if(typeof t=="bigint"){uy(t);return}if(t instanceof Uint8Array){iy(t);return}if(t instanceof Date){i$(t);return}if(t instanceof Y){_6(t);return}if(t[t$]){let e=t;E6(e.tag,e.value);return}if(Array.isArray(t)){Ue(9),nr(4,t.length);for(let e=0;e<t.length;++e)kl(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ue(9),nr(5,e.length);for(let r=0;r<e.length;++r)Vs(e[r]),kl(t[e[r]]);return}Vs(String(t))}function Ue(t){if(se+t>de.length){let e=de.length*2;for(;e<se+t;)e*=2;let r=S6(e);r.set(de.subarray(0,se)),de=r,Mc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function nr(t,e){if(e<24)de[se++]=t<<5|e;else if(e<256)de[se++]=t<<5|24,de[se++]=e;else if(e<65536)de[se++]=t<<5|25,de[se++]=e>>8,de[se++]=e&255;else if(e<4294967296)de[se++]=t<<5|26,Mc.setUint32(se,e),se+=4;else{de[se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Mc.setUint32(se,r),Mc.setUint32(se+4,n),se+=8}}function y6(t,e){let r=Number(e);if(r<4294967296){nr(t,r);return}de[se++]=t<<5|27,Mc.setBigUint64(se,e),se+=8}function Vs(t){let e=t.length;if(e<=23){let r=wl.get(t);if(r){Ue(r.bytes.length),de.set(r.bytes,se),se+=r.bytes.length,r.epoch=n$;return}let n=se;h6(t,e);let o=se,s=Uint8Array.prototype.slice.call(de,n,o);if(wl.size>=f6){if(m6)return;let i=0;for(let[a,c]of wl){if(i>=1024)break;c.epoch!==n$&&(wl.delete(a),++i)}if(i===0){m6=!0;return}}wl.size<f6&&wl.set(t,{epoch:n$,bytes:s});return}h6(t,e)}function h6(t,e){if(py){let r=e*3;Ue(r+9);let n=Buffer.byteLength(t);nr(3,n),se+=de.write(t,se)}else{let r=e*3;Ue(r+9);let n=se,s=jve.encodeInto(t,de.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&de.copyWithin(n+i,n+9,n+9+s),se=n,nr(3,s),se+=s}}function f$(t){Ue(9),de[se++]=251,Mc.setFloat64(se,t),se+=8}function fy(t){Ue(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;nr(r,n)}function uy(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ue(9),y6(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Ue(s+16),de[se++]=e?194:195,nr(2,s),de.set(i,se),se+=s}}function iy(t){Ue(t.length+9),nr(2,t.length),de.set(t,se),se+=t.length}function E6(t,e){Ue(9),typeof t=="bigint"?y6(6,t):nr(6,t),kl(e)}function _6(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Ue(9),de[se++]=196,nr(4,2),Ue(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?fy(Number(i)):uy(i),uy(a)}function i$(t){Ue(18),nr(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?fy(e):f$(e)}var cy,p6,py,jve,s$,de,Mc,se,f6,wl,n$,m6,m$=g(()=>{oe();V();ae();j();d6();cy=class extends Zt{write(e,r){se=0;let n=B.of(e);$l(n,r,void 0,this.serdeContext)}flush(){let e=de.subarray(0,se);return se=0,de=S6(s$),Mc=new DataView(de.buffer,de.byteOffset,de.byteLength),e}},p6=Symbol.for("@smithy/cbor-struct-cache");py=typeof Buffer<"u",jve=new TextEncoder,s$=2048,de=py?Buffer.allocUnsafe(s$):new Uint8Array(s$),Mc=new DataView(de.buffer,de.byteOffset,de.byteLength),se=0,f6=2048,wl=new Map,n$=0,m6=!1});function Ln(t){if(K>=or)throw new Error("unexpected end of CBOR payload.");let e=(gt[K]&224)>>5;if((gt[K]&31)===31&&e>=2&&e<=5)return Yve(t,e);switch(e){case 0:return tDe();case 1:return rDe();case 2:return yy();case 3:return Ml();case 4:return Vve(t);case 5:return Wve(t);case 6:return Qve(t);case 7:return oDe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function Vve(t){let e=Sy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=Ln(r);return n}function Wve(t){let e=Sy();if(t.isStructSchema())return Kve(t,e,K);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Ml();n[s]=Ln(r)}return n}function Kve(t,e,r){let n=t.isUnionSchema(),o=dy(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,C=0;for(let A=0;A<e;++A){let x=A6(i,c,C);if(x>=0){C=x+1,C>=c&&(C=0);let T=Ln(s[x]);T!=null&&(u[a[x]]=T)}else{let T=Ml(),I=Ln(B.of(15));T==="__type"&&typeof I=="string"?_=!0:(f=T,m=I,++y)}}if(n){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}else if(_){K=r;let A=B.of(15);for(let x=0;x<e;++x){let T=Ml(),I=Ln(A);T in u||(u[T]=I)}}return u}function Qve(t){let e=hy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=B.of(15),i=Ln(s);return na(i)}if(r===2||r===3){let s=yy(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=B.of(15),i=Ln(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let A=a,x="0".repeat(Math.abs(A)+1)+m;_=A===0?x:x.slice(0,x.length+A)+"."+x.slice(A),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let A=BigInt(a);if(m.length===1)_=y+m+"e"+String(A);else{let x=A+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(x)}}return Vh(_)}let n=B.of(15),o=Ln(n);return{tag:x6(e),value:o}}function Yve(t,e){switch(e){case 3:return Jve();case 2:return Xve();case 4:return Zve(t);case 5:return eDe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function Jve(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return b6?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):h$.decode(n)}let r=yy();t.push(r),e+=r.length}throw new Error("expected break marker.")}function Xve(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=yy();t.push(r),e+=r.length}throw new Error("expected break marker.")}function Zve(t){K+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;K<or;){if(gt[K]===255)return K+=1,r;r.push(Ln(e))}throw new Error("expected break marker.")}function eDe(t){if(K+=1,t.isStructSchema()){let n=dy(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;K<or;){if(gt[K]===255){if(K+=1,c){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}return u}let C=A6(s,a,_);if(C>=0){_=C+1,_>=a&&(_=0);let A=Ln(o[C]);A!=null&&(u[i[C]]=A)}else{let A=Ml(),x=Ln(B.of(15));A!=="__type"&&(f=A,m=x,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;K<or;){if(gt[K]===255)return K+=1,r;let n=Ml();r[n]=Ln(e)}throw new Error("expected break marker.")}function A6(t,e,r){let n=t[r];if(K+n.length<=or&&C6(K,n))return K+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(K+s.length<=or&&C6(K,s))return K+=s.length,o}return-1}function C6(t,e){let r=e.length;if(gt[t]!==e[0])return!1;for(let n=1;n<r;++n)if(gt[t+n]!==e[n])return!1;return!0}function hy(){let t=gt[K]&31;if(t<24)return K+=1,t;switch(t){case 24:return or-K<2&&vi(1),K+=2,gt[K-1];case 25:return or-K<3&&vi(2),K+=3,Aa.getUint16(K-2);case 26:return or-K<5&&vi(4),K+=5,Aa.getUint32(K-4);case 27:{or-K<9&&vi(8),K+=9;let e=Aa.getUint32(K-8);return e<2097152?e*4294967296+Aa.getUint32(K-4):Aa.getBigUint64(K-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function Sy(){let t=hy();return typeof t=="bigint"?Number(t):t}function tDe(){let t=hy();return x6(t)}function rDe(){let t=hy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function yy(){let t=Sy();or-K<t&&vi(t);let e=K;return K+=t,gt.subarray(e,e+t)}function Ml(){let t=Sy();or-K<t&&vi(t);let e=K;return K+=t,t<24?nDe(e,t):S$?gt.toString("utf-8",e,e+t):h$.decode(gt.subarray(e,e+t))}function nDe(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+gt[t+i]|0;let n=r>>>0&y$-1,o=R6[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==gt[t+a]){i=!1;break}if(i)return g$[n]=Tf,o}let s=S$?gt.toString("utf-8",t,t+e):h$.decode(gt.subarray(t,t+e));return g$[n]!==Tf&&(R6[n]=s,g$[n]=Tf),s}function oDe(){let t=K,e=gt[t]&31;switch(e){case 21:return K=t+1,!0;case 20:return K=t+1,!1;case 22:return K=t+1,null;case 23:return K=t+1,null;case 25:return or-t<3&&vi(2),K=t+3,sDe(gt[t+1],gt[t+2]);case 26:return or-t<5&&vi(4),K=t+5,Aa.getFloat32(t+1);case 27:return or-t<9&&vi(8),K=t+9,Aa.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function sDe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function x6(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function vi(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function my(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return na(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return na(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Y||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(my(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)W(e,o)&&(r[o]=my(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)W(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=my(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(W(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)W(e,s)&&(s in r||(r[s]=e[s]))}return r}var gy,b6,h$,gt,S$,Aa,K,or,y$,R6,g$,Tf,T6=g(()=>{oe();V();ae();j();m$();gy=class extends Zt{read(e,r){return gt=r,S$=b6&&r instanceof Buffer,Aa=new DataView(r.buffer,r.byteOffset,r.byteLength),K=0,or=r.length,Tf=Tf+1&65535,Ln(B.of(e))}readValue(e,r){return my(B.of(e),r)}},b6=typeof Buffer<"u",h$=new TextDecoder,gt=new Uint8Array(0),S$=!1,Aa=new DataView(new ArrayBuffer(0)),K=0,or=0,y$=2048,R6=new Array(y$),g$=new Uint16Array(y$),Tf=0});var Ey,v6=g(()=>{V();m$();T6();Ey=class extends Zt{createSerializer(){let e=new cy;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new gy;return e.setSerdeContext(this.serdeContext),e}}});var vf,D6=g(()=>{V();ae();oe();v6();r$();vf=class extends Qn{codec=new Ey;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=bf(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(Fe.for(u)),y.push(Fe.for(c));let[_,C,A]=this.resolveError(f,a,y);if(A==="native"||A==="synthetic"){o.Message&&(o.message=o.Message);let H=A==="synthetic"?new C({name:f}):new Error(f);throw Object.assign(H,m,o)}let x=B.of(_),T=o.message??o.Message??"Unknown",I=new C({}),q={};for(let[H,me]of x.structIterator())q[H]=this.deserializer.readValue(me,o[H]);throw Object.assign(I,m,{$fault:x.getMergedTraits().error,message:T},q)}getDefaultContentType(){return"application/cbor"}}});var I6=g(()=>{r$();D6()});var Zn,Ll=g(()=>{J();ae();Zn=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let C=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new C({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=Fe.for(o),i=Fe.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=Sc(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return Sc(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>B.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var _y,w6=g(()=>{I6();ae();Ll();_y=class extends vf{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let C=n.headers["x-amzn-query-error"];return C&&this.awsQueryCompatible?C.split(";")[0]:bf(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[C,A]of u.structIterator())o[C]!=null&&(_[C]=this.deserializer.readValue(A,o[C]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ht,Bo=g(()=>{ht=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xa,Ry=g(()=>{xa=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function Cy(){if(Df===void 0)try{if(typeof Buffer!="function")Df=!1;else{let t=JSON.parse(Buffer.from([123,125]));Df=t!==null&&typeof t=="object"}}catch{Df=!1}return Df}var Df,E$=g(()=>{});function Nl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?aDe(n,e)?e:new Y(n,"bigDecimal"):iDe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?cDe(n):BigInt(n)}return e}function iDe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function aDe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return _$(t)===_$(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===_$(n):!1}function _$(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function cDe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var by=g(()=>{j()});function Fl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(R$ in r)return r[R$];let n=Ay(e,new Set);return r[R$]=n,n}return Ay(e,new Set)}function Ay(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(Ay(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Ay(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var R$,xy=g(()=>{ae();R$=Symbol.for("@aws-sdk/reviver")});var Ty,C$=g(()=>{V();j();Ty=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Lc(t,e,r){let n;if(Cy()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await Ty(t,e)),n.length===0)return{};let o=r&&Fl(r)?Nl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var O6,P6,b$,vy,Dy,$6,Bl=g(()=>{V();C$();E$();by();xy();O6=async(t,e)=>{let r=await Lc(t,e);return r.message=r.message??r.Message,r},P6=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),b$=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},vy=(t,e)=>$6(t,e,["header","code","type"]),Dy=(t,e,r=!1)=>$6(t,e,r?["code","header","type"]:["type","code","header"]),$6=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=P6(t??{},"x-amzn-errortype");if(o!==void 0)return b$(t[o]);break;case"code":let s=P6(e??{},"code");if(s&&e[s]!==void 0)return b$(e[s]);break;case"type":if(e?.__type!==void 0)return b$(e.__type);break}}});function eo(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var If=g(()=>{});var Ul,A$=g(()=>{V();ae();j();Bo();Ry();E$();by();xy();Bl();If();Ul=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Fl(e)?Nl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&Cy()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Lc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&eo(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&eo(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new xa(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var Iy,k6,M6=g(()=>{j();Iy=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>k6+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),k6=e),this.string=ze(this)}return this.string}},k6=0});function x$(t){return Iy.allocUnsafe(t)}var wy,L6,N6,uDe,lDe,Gl,Py,Oy,F6,dDe,pDe,fDe,Ws,B6,ql,T$=g(()=>{V();ae();j();Bo();M6();wy=new TextEncoder,L6=123,N6=125,uDe=91,lDe=93,Gl=34,Py=58,Oy=44,F6=92,dDe=new Uint8Array([116,114,117,101]),pDe=new Uint8Array([102,97,108,115,101]),fDe=new Uint8Array([110,117,108,108]),Ws=new Array(128).fill(null);Ws[8]="b";Ws[9]="t";Ws[10]="n";Ws[12]="f";Ws[13]="r";Ws[34]='"';Ws[92]="\\";for(let t=0;t<32;t++)Ws[t]===null&&(Ws[t]="u00"+t.toString(16).padStart(2,"0"));B6=2048;ql=class t extends ht{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=x$(B6)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),wy.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=x$(B6),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=x$(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=Gl;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=Gl,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=Gl;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ws[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=F6;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=wy.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=Gl}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=F6,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=Gl;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=Gl,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(fDe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??De)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(dDe,i),i+=4):(a.set(pDe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=L6;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=Oy),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Py,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Py,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=Oy),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Py,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=N6}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=wy.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=uDe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=Oy),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=lDe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=wy.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=L6;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=Oy),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Py,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=N6}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ta,$y=g(()=>{Bo();A$();T$();Ta=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ql(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Ul(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var va,ky=g(()=>{V();ae();Ll();$y();Bl();va=class extends Qn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ta({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(mn(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=Dy(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=B.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),C={},A=this.codec.createDeserializer();for(let[x,T]of f.structIterator())o[x]!=null&&(C[x]=A.readObject(T,o[x]));throw i&&this.mixin.queryCompatOutput(o,C),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},C),o)}}});var My,U6=g(()=>{ky();My=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var Ly,G6=g(()=>{ky();Ly=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ks,q6=g(()=>{V();ae();Ll();$y();Bl();Ks=class extends la{serializer;deserializer;codec;mixin=new Zn;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ta(o),this.serializer=new ma(this.codec.createSerializer(),o),this.deserializer=new fa(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=B.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=vy(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().jsonName??A;_[A]=C.readObject(x,o[T])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var Hl,v$=g(()=>{V();ae();j();j();Bo();Ry();by();xy();Bl();If();Hl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Fl(e)?Nl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Lc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new xa(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&eo(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&eo(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var H6,Ny,j6=g(()=>{j();H6="\u039D",Ny=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${H6+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${H6+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var jl,D$=g(()=>{V();ae();j();Bo();j6();If();jl=class extends ht{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Ny;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&eo(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&eo(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??De)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&eo(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var Fy,z6=g(()=>{Bo();v$();D$();Fy=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new jl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Hl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Gy=st(Uy=>{var mDe=/[&<>"]/g,gDe={"&":"&","<":"<",">":">",'"':"""};function hDe(t){return t.replace(mDe,e=>gDe[e])}var SDe=/[&"'<>\r\n\u0085\u2028]/g,yDe={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function EDe(t){return t.replace(SDe,e=>yDe[e])}var By=class{value;constructor(e){this.value=e}toString(){return EDe(""+this.value)}},w$=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new By(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${hDe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function I$(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function _De(t){return new P$(t).parse()}var P$=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
|
|
41
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function Hve(t){return new Lve({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}async function jve(t,e){let n=await Nve(t.body).transformToString();if(t.statusCode===200){let o=JSON.parse(n);if(typeof o.AccessKeyId!="string"||typeof o.SecretAccessKey!="string"||typeof o.Token!="string"||typeof o.Expiration!="string")throw new kc("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.Token,expiration:Fve(o.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let o={};try{o=JSON.parse(n)}catch{}throw Object.assign(new kc(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:o.Code,Message:o.Message})}throw new kc(`Server responded with status: ${t.statusCode}`,{logger:e})}var zve=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(s=>setTimeout(s,r))}return await t()},Vve="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Wve="http://169.254.170.2",Kve="AWS_CONTAINER_CREDENTIALS_FULL_URI",Qve="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Yve="AWS_CONTAINER_AUTHORIZATION_TOKEN",Jve=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[Vve],n=t.awsContainerCredentialsFullUri??process.env[Kve],o=t.awsContainerAuthorizationToken??process.env[Yve],s=t.awsContainerAuthorizationTokenFile??process.env[Qve],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsRelativeUri will take precedence.")),o&&s&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${Wve}${r}`;else if(n)e=n;else throw new kc(`No HTTP credential provider host provided.
|
|
42
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);qve(a,t.logger);let c=kve.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,f=zve(async()=>{let m=Hve(a);s?m.headers.Authorization=c6((await Mve.readFile(s)).toString()):o&&(m.headers.Authorization=c6(o));try{let y=await c.handle(m,{requestTimeout:u});return jve(y.response).then(_=>$ve(_,"CREDENTIALS_HTTP","z"))}catch(y){throw new kc(String(y),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await f()}finally{c.destroy?.()}}},c6=t=>{if(t.includes(`\r
|
|
43
|
+
`))throw new kc("Authorization token contains invalid \\r\\n sequence.");return t};u6.fromHttp=Jve});function Xve(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Zve(t){return{schemeId:"smithy.api#noAuth"}}var l6,d6,p6,n$=g(()=>{rr();J();l6=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});d6=t=>{let e=[];return t.operation==="CreateToken"?e.push(Zve(t)):e.push(Xve(t)),e},p6=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var f6,m6,o$=g(()=>{f6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),m6={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ba,bf=g(()=>{ba={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var s$,g6=g(()=>{s$=Symbol("@smithy/core/cbor::tagSymbol")});var Af,i$=g(()=>{Af=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function py(t){let e=t.getSchema(),r=e[h6];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=tDe(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[h6]=i,i}function tDe(t){let e;fy?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function R6(t){return fy?Buffer.allocUnsafe(t):new Uint8Array(t)}function kl(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Vs(xr());return}Ue(1),de[se++]=246;return}if(t.isUnitSchema()){Ue(1),nr(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){ay(e);return}if(t.isTimestampSchema()&&e instanceof Date){l$(e);return}if(t.isStructSchema()){nDe(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){E6(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){c$(t,e,!1,n);return}if(e instanceof Date){l$(e);return}if(e instanceof Uint8Array){ay(e);return}if(e instanceof Y){A6(e);return}if(e[s$]){let s=e;b6(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?E6(t,e,!0,n):c$(t,e,!0,n);return}if(t.isBigDecimalSchema()){Ml(e);return}c$(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??Xe)(e);ay(s);return}Vs(e);return}if(typeof e=="number"){Ue(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?my(e):S$(e);return}if(typeof e=="boolean"){Ue(1),de[se++]=224|(e?21:20);return}if(typeof e=="bigint"){ly(e);return}Vs(String(e))}function nDe(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let C=e[y];if(C!=null){Ue(9),nr(5,1),Vs(y),kl(_,C,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Ue(9),nr(5,1),Vs(y[0]),Ml(y[1])):(Ue(9),nr(5,0))}return}let n=py(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Ue(c);let u=se;se+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Ue(_.length),de.set(_,se),se+=_.length,kl(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)W(e,m)&&(o.includes(m)||(Vs(m),Ml(e[m]),++f));c===1?de[u]=160|f:c===2?(de[u]=184,de[u+1]=f):(de[u]=185,de[u+1]=f>>8,de[u+2]=f&255)}function E6(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Ue(9),nr(4,i.length);for(let a=0;a<i.length;++a)kl(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Ue(9),nr(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&kl(s,e[a],void 0,n)}}function c$(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!W(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Ue(9),nr(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];Vs(c),kl(s,e[c],void 0,n)}}function Ml(t){if(t==null){Ue(1),de[se++]=246;return}if(typeof t=="string"){Vs(t);return}if(typeof t=="number"){Ue(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?my(t):S$(t);return}if(typeof t=="boolean"){Ue(1),de[se++]=224|(t?21:20);return}if(typeof t=="bigint"){ly(t);return}if(t instanceof Uint8Array){ay(t);return}if(t instanceof Date){l$(t);return}if(t instanceof Y){A6(t);return}if(t[s$]){let e=t;b6(e.tag,e.value);return}if(Array.isArray(t)){Ue(9),nr(4,t.length);for(let e=0;e<t.length;++e)Ml(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ue(9),nr(5,e.length);for(let r=0;r<e.length;++r)Vs(e[r]),Ml(t[e[r]]);return}Vs(String(t))}function Ue(t){if(se+t>de.length){let e=de.length*2;for(;e<se+t;)e*=2;let r=R6(e);r.set(de.subarray(0,se)),de=r,Lc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function nr(t,e){if(e<24)de[se++]=t<<5|e;else if(e<256)de[se++]=t<<5|24,de[se++]=e;else if(e<65536)de[se++]=t<<5|25,de[se++]=e>>8,de[se++]=e&255;else if(e<4294967296)de[se++]=t<<5|26,Lc.setUint32(se,e),se+=4;else{de[se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Lc.setUint32(se,r),Lc.setUint32(se+4,n),se+=8}}function C6(t,e){let r=Number(e);if(r<4294967296){nr(t,r);return}de[se++]=t<<5|27,Lc.setBigUint64(se,e),se+=8}function Vs(t){let e=t.length;if(e<=23){let r=Pl.get(t);if(r){Ue(r.bytes.length),de.set(r.bytes,se),se+=r.bytes.length,r.epoch=a$;return}let n=se;_6(t,e);let o=se,s=Uint8Array.prototype.slice.call(de,n,o);if(Pl.size>=S6){if(y6)return;let i=0;for(let[a,c]of Pl){if(i>=1024)break;c.epoch!==a$&&(Pl.delete(a),++i)}if(i===0){y6=!0;return}}Pl.size<S6&&Pl.set(t,{epoch:a$,bytes:s});return}_6(t,e)}function _6(t,e){if(fy){let r=e*3;Ue(r+9);let n=Buffer.byteLength(t);nr(3,n),se+=de.write(t,se)}else{let r=e*3;Ue(r+9);let n=se,s=rDe.encodeInto(t,de.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&de.copyWithin(n+i,n+9,n+9+s),se=n,nr(3,s),se+=s}}function S$(t){Ue(9),de[se++]=251,Lc.setFloat64(se,t),se+=8}function my(t){Ue(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;nr(r,n)}function ly(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ue(9),C6(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Ue(s+16),de[se++]=e?194:195,nr(2,s),de.set(i,se),se+=s}}function ay(t){Ue(t.length+9),nr(2,t.length),de.set(t,se),se+=t.length}function b6(t,e){Ue(9),typeof t=="bigint"?C6(6,t):nr(6,t),Ml(e)}function A6(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Ue(9),de[se++]=196,nr(4,2),Ue(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?my(Number(i)):ly(i),ly(a)}function l$(t){Ue(18),nr(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?my(e):S$(e)}var uy,h6,fy,rDe,u$,de,Lc,se,S6,Pl,a$,y6,y$=g(()=>{oe();V();ae();j();g6();uy=class extends Zt{write(e,r){se=0;let n=B.of(e);kl(n,r,void 0,this.serdeContext)}flush(){let e=de.subarray(0,se);return se=0,de=R6(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),e}},h6=Symbol.for("@smithy/cbor-struct-cache");fy=typeof Buffer<"u",rDe=new TextEncoder,u$=2048,de=fy?Buffer.allocUnsafe(u$):new Uint8Array(u$),Lc=new DataView(de.buffer,de.byteOffset,de.byteLength),se=0,S6=2048,Pl=new Map,a$=0,y6=!1});function Ln(t){if(K>=or)throw new Error("unexpected end of CBOR payload.");let e=(gt[K]&224)>>5;if((gt[K]&31)===31&&e>=2&&e<=5)return cDe(t,e);switch(e){case 0:return fDe();case 1:return mDe();case 2:return Ey();case 3:return Ll();case 4:return oDe(t);case 5:return sDe(t);case 6:return aDe(t);case 7:return hDe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function oDe(t){let e=yy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=Ln(r);return n}function sDe(t){let e=yy();if(t.isStructSchema())return iDe(t,e,K);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Ll();n[s]=Ln(r)}return n}function iDe(t,e,r){let n=t.isUnionSchema(),o=py(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,C=0;for(let A=0;A<e;++A){let x=D6(i,c,C);if(x>=0){C=x+1,C>=c&&(C=0);let T=Ln(s[x]);T!=null&&(u[a[x]]=T)}else{let T=Ll(),I=Ln(B.of(15));T==="__type"&&typeof I=="string"?_=!0:(f=T,m=I,++y)}}if(n){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}else if(_){K=r;let A=B.of(15);for(let x=0;x<e;++x){let T=Ll(),I=Ln(A);T in u||(u[T]=I)}}return u}function aDe(t){let e=Sy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=B.of(15),i=Ln(s);return na(i)}if(r===2||r===3){let s=Ey(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=B.of(15),i=Ln(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let A=a,x="0".repeat(Math.abs(A)+1)+m;_=A===0?x:x.slice(0,x.length+A)+"."+x.slice(A),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let A=BigInt(a);if(m.length===1)_=y+m+"e"+String(A);else{let x=A+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(x)}}return Wh(_)}let n=B.of(15),o=Ln(n);return{tag:I6(e),value:o}}function cDe(t,e){switch(e){case 3:return uDe();case 2:return lDe();case 4:return dDe(t);case 5:return pDe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function uDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return v6?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):_$.decode(n)}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function lDe(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=Ey();t.push(r),e+=r.length}throw new Error("expected break marker.")}function dDe(t){K+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;K<or;){if(gt[K]===255)return K+=1,r;r.push(Ln(e))}throw new Error("expected break marker.")}function pDe(t){if(K+=1,t.isStructSchema()){let n=py(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;K<or;){if(gt[K]===255){if(K+=1,c){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}return u}let C=D6(s,a,_);if(C>=0){_=C+1,_>=a&&(_=0);let A=Ln(o[C]);A!=null&&(u[i[C]]=A)}else{let A=Ll(),x=Ln(B.of(15));A!=="__type"&&(f=A,m=x,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;K<or;){if(gt[K]===255)return K+=1,r;let n=Ll();r[n]=Ln(e)}throw new Error("expected break marker.")}function D6(t,e,r){let n=t[r];if(K+n.length<=or&&T6(K,n))return K+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(K+s.length<=or&&T6(K,s))return K+=s.length,o}return-1}function T6(t,e){let r=e.length;if(gt[t]!==e[0])return!1;for(let n=1;n<r;++n)if(gt[t+n]!==e[n])return!1;return!0}function Sy(){let t=gt[K]&31;if(t<24)return K+=1,t;switch(t){case 24:return or-K<2&&vi(1),K+=2,gt[K-1];case 25:return or-K<3&&vi(2),K+=3,Aa.getUint16(K-2);case 26:return or-K<5&&vi(4),K+=5,Aa.getUint32(K-4);case 27:{or-K<9&&vi(8),K+=9;let e=Aa.getUint32(K-8);return e<2097152?e*4294967296+Aa.getUint32(K-4):Aa.getBigUint64(K-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function yy(){let t=Sy();return typeof t=="bigint"?Number(t):t}function fDe(){let t=Sy();return I6(t)}function mDe(){let t=Sy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function Ey(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,gt.subarray(e,e+t)}function Ll(){let t=yy();or-K<t&&vi(t);let e=K;return K+=t,t<24?gDe(e,t):R$?gt.toString("utf-8",e,e+t):_$.decode(gt.subarray(e,e+t))}function gDe(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+gt[t+i]|0;let n=r>>>0&C$-1,o=x6[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==gt[t+a]){i=!1;break}if(i)return E$[n]=vf,o}let s=R$?gt.toString("utf-8",t,t+e):_$.decode(gt.subarray(t,t+e));return E$[n]!==vf&&(x6[n]=s,E$[n]=vf),s}function hDe(){let t=K,e=gt[t]&31;switch(e){case 21:return K=t+1,!0;case 20:return K=t+1,!1;case 22:return K=t+1,null;case 23:return K=t+1,null;case 25:return or-t<3&&vi(2),K=t+3,SDe(gt[t+1],gt[t+2]);case 26:return or-t<5&&vi(4),K=t+5,Aa.getFloat32(t+1);case 27:return or-t<9&&vi(8),K=t+9,Aa.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function SDe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function I6(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function vi(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function gy(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return na(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return na(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Y||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(gy(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)W(e,o)&&(r[o]=gy(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)W(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=gy(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(W(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)W(e,s)&&(s in r||(r[s]=e[s]))}return r}var hy,v6,_$,gt,R$,Aa,K,or,C$,x6,E$,vf,w6=g(()=>{oe();V();ae();j();y$();hy=class extends Zt{read(e,r){return gt=r,R$=v6&&r instanceof Buffer,Aa=new DataView(r.buffer,r.byteOffset,r.byteLength),K=0,or=r.length,vf=vf+1&65535,Ln(B.of(e))}readValue(e,r){return gy(B.of(e),r)}},v6=typeof Buffer<"u",_$=new TextDecoder,gt=new Uint8Array(0),R$=!1,Aa=new DataView(new ArrayBuffer(0)),K=0,or=0,C$=2048,x6=new Array(C$),E$=new Uint16Array(C$),vf=0});var _y,P6=g(()=>{V();y$();w6();_y=class extends Zt{createSerializer(){let e=new uy;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new hy;return e.setSerdeContext(this.serdeContext),e}}});var Df,O6=g(()=>{V();ae();oe();P6();i$();Df=class extends Qn{codec=new _y;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=Af(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(Fe.for(u)),y.push(Fe.for(c));let[_,C,A]=this.resolveError(f,a,y);if(A==="native"||A==="synthetic"){o.Message&&(o.message=o.Message);let H=A==="synthetic"?new C({name:f}):new Error(f);throw Object.assign(H,m,o)}let x=B.of(_),T=o.message??o.Message??"Unknown",I=new C({}),q={};for(let[H,me]of x.structIterator())q[H]=this.deserializer.readValue(me,o[H]);throw Object.assign(I,m,{$fault:x.getMergedTraits().error,message:T},q)}getDefaultContentType(){return"application/cbor"}}});var $6=g(()=>{i$();O6()});var Zn,Nl=g(()=>{J();ae();Zn=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let C=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new C({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=Fe.for(o),i=Fe.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=yc(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return yc(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>B.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var Ry,k6=g(()=>{$6();ae();Nl();Ry=class extends Df{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let C=n.headers["x-amzn-query-error"];return C&&this.awsQueryCompatible?C.split(";")[0]:Af(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[C,A]of u.structIterator())o[C]!=null&&(_[C]=this.deserializer.readValue(A,o[C]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ht,Bo=g(()=>{ht=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xa,Cy=g(()=>{xa=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function by(){if(If===void 0)try{if(typeof Buffer!="function")If=!1;else{let t=JSON.parse(Buffer.from([123,125]));If=t!==null&&typeof t=="object"}}catch{If=!1}return If}var If,b$=g(()=>{});function Fl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?EDe(n,e)?e:new Y(n,"bigDecimal"):yDe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?_De(n):BigInt(n)}return e}function yDe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function EDe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return A$(t)===A$(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===A$(n):!1}function A$(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function _De(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var Ay=g(()=>{j()});function Bl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(x$ in r)return r[x$];let n=xy(e,new Set);return r[x$]=n,n}return xy(e,new Set)}function xy(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(xy(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(xy(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var x$,Ty=g(()=>{ae();x$=Symbol.for("@aws-sdk/reviver")});var vy,T$=g(()=>{V();j();vy=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Nc(t,e,r){let n;if(by()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await vy(t,e)),n.length===0)return{};let o=r&&Bl(r)?Fl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var L6,M6,v$,Dy,Iy,N6,Ul=g(()=>{V();T$();b$();Ay();Ty();L6=async(t,e)=>{let r=await Nc(t,e);return r.message=r.message??r.Message,r},M6=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),v$=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Dy=(t,e)=>N6(t,e,["header","code","type"]),Iy=(t,e,r=!1)=>N6(t,e,r?["code","header","type"]:["type","code","header"]),N6=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=M6(t??{},"x-amzn-errortype");if(o!==void 0)return v$(t[o]);break;case"code":let s=M6(e??{},"code");if(s&&e[s]!==void 0)return v$(e[s]);break;case"type":if(e?.__type!==void 0)return v$(e.__type);break}}});function eo(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var wf=g(()=>{});var Gl,D$=g(()=>{V();ae();j();Bo();Cy();b$();Ay();Ty();Ul();wf();Gl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&by()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Nc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&eo(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&eo(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new xa(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var wy,F6,B6=g(()=>{j();wy=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>F6+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),F6=e),this.string=ze(this)}return this.string}},F6=0});function I$(t){return wy.allocUnsafe(t)}var Py,U6,G6,RDe,CDe,ql,Oy,$y,q6,bDe,ADe,xDe,Ws,H6,Hl,w$=g(()=>{V();ae();j();Bo();B6();Py=new TextEncoder,U6=123,G6=125,RDe=91,CDe=93,ql=34,Oy=58,$y=44,q6=92,bDe=new Uint8Array([116,114,117,101]),ADe=new Uint8Array([102,97,108,115,101]),xDe=new Uint8Array([110,117,108,108]),Ws=new Array(128).fill(null);Ws[8]="b";Ws[9]="t";Ws[10]="n";Ws[12]="f";Ws[13]="r";Ws[34]='"';Ws[92]="\\";for(let t=0;t<32;t++)Ws[t]===null&&(Ws[t]="u00"+t.toString(16).padStart(2,"0"));H6=2048;Hl=class t extends ht{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=I$(H6)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),Py.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=I$(H6),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=I$(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ql;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ql,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ql;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ws[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=q6;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=Py.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ql}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=q6,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ql;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ql,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(xDe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ie)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(bDe,i),i+=4):(a.set(ADe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=U6;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=$y),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Oy,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=$y),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=G6}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=RDe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=$y),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=CDe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=Py.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=U6;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=$y),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Oy,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=G6}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ta,ky=g(()=>{Bo();D$();w$();Ta=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Gl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var va,My=g(()=>{V();ae();Nl();ky();Ul();va=class extends Qn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ta({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(mn(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=Iy(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=B.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),C={},A=this.codec.createDeserializer();for(let[x,T]of f.structIterator())o[x]!=null&&(C[x]=A.readObject(T,o[x]));throw i&&this.mixin.queryCompatOutput(o,C),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},C),o)}}});var Ly,j6=g(()=>{My();Ly=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var Ny,z6=g(()=>{My();Ny=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ks,V6=g(()=>{V();ae();Nl();ky();Ul();Ks=class extends la{serializer;deserializer;codec;mixin=new Zn;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ta(o),this.serializer=new ma(this.codec.createSerializer(),o),this.deserializer=new fa(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=B.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=Dy(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().jsonName??A;_[A]=C.readObject(x,o[T])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var jl,P$=g(()=>{V();ae();j();j();Bo();Cy();Ay();Ty();Ul();wf();jl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Bl(e)?Fl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Nc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new xa(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&eo(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&eo(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var W6,Fy,K6=g(()=>{j();W6="\u039D",Fy=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${W6+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${W6+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var zl,O$=g(()=>{V();ae();j();Bo();K6();wf();zl=class extends ht{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Fy;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&eo(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&eo(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ie)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ie)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&eo(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var By,Q6=g(()=>{Bo();P$();O$();By=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new zl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new jl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var qy=st(Gy=>{var TDe=/[&<>"]/g,vDe={"&":"&","<":"<",">":">",'"':"""};function DDe(t){return t.replace(TDe,e=>vDe[e])}var IDe=/[&"'<>\r\n\u0085\u2028]/g,wDe={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function PDe(t){return t.replace(IDe,e=>wDe[e])}var Uy=class{value;constructor(e){this.value=e}toString(){return PDe(""+this.value)}},k$=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new Uy(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${DDe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function $$(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function ODe(t){return new M$(t).parse()}var M$=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
|
|
44
44
|
`),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdk XML parse error: expected "${e}" not found.`);let o=r.x.slice(r.i,n);return r.i=n+e.length,o}trim(){let e=this;for(;e.i<e.z&&` \r
|
|
45
45
|
`.includes(e.x[e.i]);)++e.i}readAttrValue(){let e=this,r=e.x[e.i];++e.i;let n="";for(;e.i<e.z&&e.x[e.i]!==r;)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let r="";for(;e.i<e.z&&!` \r
|
|
46
46
|
>/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,o={};for(;e.i<e.z&&(e.trim(),!">/".includes(e.x[e.i]));){let f="";for(;e.i<e.z&&!`= \r
|
|
47
|
-
>/?`.includes(e.x[e.i]);)f+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),f==="__proto__"
|
|
47
|
+
>/?`.includes(e.x[e.i]);)f+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),f==="__proto__"&&$$(o),o[f]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?o:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let s=[],i=[],a=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,s.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(a=!0,i.push(e.parseTag()));else{let f="";for(;e.i<e.z&&e.x[e.i]!=="<";)f+=e.x[e.i++];s.push(e.decodeEntities(f))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let c=e.readTo(">").trim();if(c!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${c}>.`);if(!n&&s.length===0&&!a)return{tag:r,value:""};if(!n&&!a){let f=s.length===1?s[0]:s.join("");return f.trim()===""&&f.includes(`
|
|
48
48
|
`)?{tag:r,value:""}:{tag:r,value:f}}let u={};for(let f of s)f.trim()===""&&f.includes(`
|
|
49
|
-
`)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&I$(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&I$(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Uy.XmlNode=w$;Uy.XmlText=By;Uy.parseXML=_De});var V6,Da,qy=g(()=>{V6=Ie(Gy());J();V();ae();j();Bo();Ry();If();Da=class extends ht{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new pa(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=B.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??ze)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=B.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],C=y[m];_==="__proto__"&&eo(i),i[_]=this.readSchema(c,C)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new xa(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,V6.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),Ec(s)}return{}}}});var zl,O$=g(()=>{V();ae();j();j();Bo();zl=class extends ht{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=B.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??De)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(xr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Y?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ze(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(br(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,C=i.getMergedTraits(),A=this.getKey("value",C.xmlName,C.ec2QueryName),x=a?`${n}${c}.${A}`:`${n}entry.${c}.${A}`;this.write(s,u,_),this.write(i,f,x),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${vo(e)}=`}writeValue(e){this.buffer+=vo(e)}}});var Ia,$$=g(()=>{V();ae();Ll();qy();O$();Ia=class extends Qn{options;serializer;deserializer;mixin=new Zn;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new zl(r),this.deserializer=new Da(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(mn(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let f=await At(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await At(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=B.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[A,x]of m.structIterator()){let T=x.getMergedTraits().xmlName??A,I=a[T]??o[T];C[A]=this.deserializer.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},C),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var Hy,W6=g(()=>{$$();Hy=class extends Ia{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var K6,k$,Q6,jy,M$=g(()=>{K6=Ie(Gy());J();C$();k$=(t,e)=>Ty(t,e).then(r=>{if(r.length){let n;try{n=(0,K6.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),Ec(i)}return{}}),Q6=async(t,e)=>{let r=await k$(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},jy=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var tn,Vl,L$=g(()=>{tn=Ie(Gy());V();ae();j();j();Bo();Vl=class extends ht{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Xe)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=tn.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=tn.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=tn.XmlNode.of(f);if(typeof m!="string")if(r instanceof tn.XmlNode||r instanceof tn.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,C)=>{if(i.isListSchema())this.writeList(i,Array.isArray(C)?C:[C],_,m);else if(i.isMapSchema())this.writeMap(i,C,_,m);else if(i.isStructSchema()){let A=this.writeStruct(i,C,m);_.addChildNode(A.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let A=tn.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,C,A,m),_.addChildNode(A)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=tn.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let C of r)(c||C!=null)&&y(_,C);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,C=!!i.xmlFlattened,[A,x]=this.getXmlnsAttribute(e,o),T=(I,q,H)=>{let me=tn.XmlNode.of(u,q),[et,ot]=this.getXmlnsAttribute(a,x);ot&&me.addAttribute(et,ot),I.addChildNode(me);let tt=tn.XmlNode.of(y);f.isListSchema()?this.writeList(f,H,tt,x):f.isMapSchema()?this.writeMap(f,H,tt,x,!0):f.isStructSchema()?tt=this.writeStruct(f,H,x):this.writeSimpleInto(f,H,tt,x),I.addChildNode(tt)};if(C)for(let I in r){let q=r[I];if(_||q!=null){let H=tn.XmlNode.of(i.xmlName??e.getMemberName());T(H,I,q),n.addChildNode(H)}}else{let I;s||(I=tn.XmlNode.of(i.xmlName??e.getMemberName()),x&&I.addAttribute(A,x),n.addChildNode(I));for(let q in r){let H=r[q];if(_||H!=null){let me=tn.XmlNode.of("entry");T(me,q,H),(s?n:I).addChildNode(me)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=B.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??De)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ze(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=br(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=br(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Y?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=xr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=B.of(e),a=new tn.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var Wl,N$=g(()=>{Bo();qy();L$();Wl=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Vl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Da(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Kl,Y6=g(()=>{V();ae();Ll();M$();N$();Kl=class extends la{codec;serializer;deserializer;mixin=new Zn;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Wl(r),this.serializer=new ma(this.codec.createSerializer(),r),this.deserializer=new fa(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=jy(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let A of Object.keys(o.Error))o[A]=o.Error[A],A.toLowerCase()==="message"&&(o.message=o.Error[A]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().xmlName??A,I=o.Error?.[T]??o[T];_[A]=C.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var J6,X6=g(()=>{j();J6=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Fh(t)}});var Z6,e5,t5,r5=g(()=>{Z6=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},e5=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},t5=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var zy={};Ct(zy,{AwsEc2QueryProtocol:()=>Hy,AwsJson1_0Protocol:()=>My,AwsJson1_1Protocol:()=>Ly,AwsJsonRpcProtocol:()=>va,AwsQueryProtocol:()=>Ia,AwsRestJsonProtocol:()=>Ks,AwsRestXmlProtocol:()=>Kl,AwsSmithyRpcV2CborProtocol:()=>_y,JsonCodec:()=>Fy,JsonCodec2:()=>Ta,JsonShapeDeserializer:()=>Hl,JsonShapeDeserializer2:()=>Ul,JsonShapeSerializer:()=>jl,JsonShapeSerializer2:()=>ql,QueryShapeSerializer:()=>zl,XmlCodec:()=>Wl,XmlShapeDeserializer:()=>Da,XmlShapeSerializer:()=>Vl,_toBool:()=>e5,_toNum:()=>t5,_toStr:()=>Z6,awsExpectUnion:()=>J6,loadJsonRpcErrorCode:()=>Dy,loadRestJsonErrorCode:()=>vy,loadRestXmlErrorCode:()=>jy,parseJsonBody:()=>Lc,parseJsonErrorBody:()=>O6,parseXmlBody:()=>k$,parseXmlErrorBody:()=>Q6});var Di=g(()=>{w6();U6();G6();ky();q6();z6();v$();D$();$y();A$();T$();Bl();W6();$$();O$();Y6();N$();qy();L$();M$();X6();r5()});var wf,Nc,Vy,n5,a5,Wy,F$,o5,B$,Ql,s5,i5,RDe,En,CDe,c5,u5=g(()=>{He();wf="ref",Nc=-1,Vy=!0,n5="isSet",a5="PartitionResult",Wy="booleanEquals",F$="getAttr",o5={[wf]:"Endpoint"},B$={[wf]:a5},Ql={},s5=[{[wf]:"Region"}],i5={conditions:[[n5,[o5]],[n5,s5],["aws.partition",s5,a5],[Wy,[{[wf]:"UseFIPS"},Vy]],[Wy,[{[wf]:"UseDualStack"},Vy]],[Wy,[{fn:F$,argv:[B$,"supportsDualStack"]},Vy]],[Wy,[{fn:F$,argv:[B$,"supportsFIPS"]},Vy]],["stringEquals",[{fn:F$,argv:[B$,"name"]},"aws-us-gov"]]],results:[[Nc],[Nc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Nc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[o5,Ql],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ql],[Nc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Ql],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Ql],[Nc,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Ql],[Nc,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Ql],[Nc,"Invalid Configuration: Missing Region"]]},RDe=2,En=1e8,CDe=new Int32Array([-1,1,-1,0,13,3,1,4,En+12,2,5,En+12,3,8,6,4,7,En+11,5,En+9,En+10,4,11,9,6,10,En+8,7,En+6,En+7,5,12,En+5,6,En+4,En+5,3,En+1,14,4,En+2,En+3]),c5=Wn.from(CDe,RDe,i5.conditions,i5.results)});var bDe,l5,d5=g(()=>{Ee();He();u5();bDe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),l5=(t,e={})=>bDe.get(t,()=>Ts(c5,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var sr,Ky=g(()=>{J();sr=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Pf,Of,$f,kf,Mf,Lf,Nf,Ff,Bf,Uf,Gf,U$=g(()=>{Ky();Pf=class t extends sr{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Of=class t extends sr{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},$f=class t extends sr{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},kf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Mf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Lf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Ff=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Bf=class t extends sr{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Uf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var ADe,xDe,TDe,vDe,DDe,IDe,wDe,PDe,ODe,$De,kDe,MDe,LDe,NDe,FDe,BDe,UDe,GDe,qDe,HDe,Qs,jDe,zDe,VDe,WDe,KDe,St,QDe,Uo,YDe,JDe,Go,XDe,p5,f5,ZDe,m5,eIe,tIe,rIe,Pt,g5,h5,to,S5,y5,E5,_5,R5,C5,b5,A5,x5,T5,v5,G$,nIe,oIe,sIe,iIe,D5,I5,w5,q$,Qy=g(()=>{ae();U$();Ky();ADe="AccessDeniedException",xDe="AuthorizationPendingException",TDe="AccessToken",vDe="ClientSecret",DDe="CreateToken",IDe="CreateTokenRequest",wDe="CreateTokenResponse",PDe="CodeVerifier",ODe="ExpiredTokenException",$De="InvalidClientException",kDe="InvalidGrantException",MDe="InvalidRequestException",LDe="InternalServerException",NDe="InvalidScopeException",FDe="IdToken",BDe="RefreshToken",UDe="SlowDownException",GDe="UnauthorizedClientException",qDe="UnsupportedGrantTypeException",HDe="accessToken",Qs="client",jDe="clientId",zDe="clientSecret",VDe="codeVerifier",WDe="code",KDe="deviceCode",St="error",QDe="expiresIn",Uo="error_description",YDe="grantType",JDe="http",Go="httpError",XDe="idToken",p5="reason",f5="refreshToken",ZDe="redirectUri",m5="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",eIe="scope",tIe="server",rIe="tokenType",Pt="com.amazonaws.ssooidc",g5=new Fe(m5),h5=[-3,m5,"SSOOIDCServiceException",0,[],[]];g5.registerError(h5,sr);to=new Fe(Pt),S5=[-3,Pt,ADe,{[St]:Qs,[Go]:400},[St,p5,Uo],[0,0,0]];to.registerError(S5,Pf);y5=[-3,Pt,xDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(y5,Of);E5=[-3,Pt,ODe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(E5,$f);_5=[-3,Pt,LDe,{[St]:tIe,[Go]:500},[St,Uo],[0,0]];to.registerError(_5,kf);R5=[-3,Pt,$De,{[St]:Qs,[Go]:401},[St,Uo],[0,0]];to.registerError(R5,Mf);C5=[-3,Pt,kDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(C5,Lf);b5=[-3,Pt,MDe,{[St]:Qs,[Go]:400},[St,p5,Uo],[0,0,0]];to.registerError(b5,Nf);A5=[-3,Pt,NDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(A5,Ff);x5=[-3,Pt,UDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(x5,Bf);T5=[-3,Pt,GDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(T5,Uf);v5=[-3,Pt,qDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(v5,Gf);G$=[g5,to],nIe=[0,Pt,TDe,8,0],oIe=[0,Pt,vDe,8,0],sIe=[0,Pt,PDe,8,0],iIe=[0,Pt,FDe,8,0],D5=[0,Pt,BDe,8,0],I5=[3,Pt,IDe,0,[jDe,zDe,YDe,KDe,WDe,f5,eIe,ZDe,VDe],[0,[()=>oIe,0],0,0,0,[()=>D5,0],64,0,[()=>sIe,0]],3],w5=[3,Pt,wDe,0,[HDe,rIe,QDe,f5,XDe],[[()=>nIe,0],0,1,[()=>D5,0],[()=>iIe,0]]],q$=[9,Pt,DDe,{[JDe]:["POST","/token",200]},()=>I5,()=>w5]});var P5,O5=g(()=>{rr();Di();jt();On();J();V();j();ZO();d5();Qy();P5=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??l5,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??a6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:G$,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var Yy,$5,k5=g(()=>{Cf();Ee();rr();J();ye();en();j();Yy=Ie(zs());O5();$5=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=P5(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:Yy.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??Yy.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var M5,L5,N5=g(()=>{M5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},L5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var F5,B5=g(()=>{Ee();J();V();N5();F5=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),M5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),L5(r))}});var qf,H$=g(()=>{Ee();jt();J();ye();He();V();en();ae();ZO();e$();k5();B5();qf=class extends Lr{config;constructor(...[e]){let r=$5(e||{});super(r),this.initConfig=r;let n=u6(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=c6(c),f=F5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:i6,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var U5,G5,q5,H5=g(()=>{J();He();e$();U5=gs(l6,"AWSSSOOIDCService","SSOOIDCClient",bi),G5={},q5=(t,e,r,n)=>[]});var Hf,j$=g(()=>{H5();Qy();Hf=class extends U5(G5,q5,"CreateToken",q$){}});var aIe,Jy,j5=g(()=>{J();j$();H$();aIe={CreateTokenCommand:Hf},Jy=class extends qf{};ds(aIe,Jy)});var z5=g(()=>{j$()});var cIe,uIe,V5=g(()=>{cIe={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},uIe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var W5=g(()=>{});var z$={};Ct(z$,{$Command:()=>Xr,AccessDeniedException:()=>Pf,AccessDeniedException$:()=>S5,AccessDeniedExceptionReason:()=>cIe,AuthorizationPendingException:()=>Of,AuthorizationPendingException$:()=>y5,CreateToken$:()=>q$,CreateTokenCommand:()=>Hf,CreateTokenRequest$:()=>I5,CreateTokenResponse$:()=>w5,ExpiredTokenException:()=>$f,ExpiredTokenException$:()=>E5,InternalServerException:()=>kf,InternalServerException$:()=>_5,InvalidClientException:()=>Mf,InvalidClientException$:()=>R5,InvalidGrantException:()=>Lf,InvalidGrantException$:()=>C5,InvalidRequestException:()=>Nf,InvalidRequestException$:()=>b5,InvalidRequestExceptionReason:()=>uIe,InvalidScopeException:()=>Ff,InvalidScopeException$:()=>A5,SSOOIDC:()=>Jy,SSOOIDCClient:()=>qf,SSOOIDCServiceException:()=>sr,SSOOIDCServiceException$:()=>h5,SlowDownException:()=>Bf,SlowDownException$:()=>x5,UnauthorizedClientException:()=>Uf,UnauthorizedClientException$:()=>T5,UnsupportedGrantTypeException:()=>Gf,UnsupportedGrantTypeException$:()=>v5,__Client:()=>Lr,errorTypeRegistries:()=>G$});var V$=g(()=>{H$();j5();z5();J();Qy();V5();U$();W5();Ky()});var J5=st(jf=>{var{setTokenFeature:lIe}=(Ee(),F(kn)),{getBearerTokenEnvKey:dIe}=(rr(),F(Dl)),{TokenProviderError:qo,getSSOTokenFilepath:pIe,parseKnownFiles:fIe,getProfileName:mIe,loadSsoSessionData:gIe,getSSOTokenFromFile:hIe,memoize:SIe,chain:yIe}=(ye(),F(Br)),{promises:EIe}=require("node:fs"),_Ie=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new qo("Please pass 'signingName' to compute environment variable key",{logger:t});let r=dIe(e);if(!(r in process.env))throw new qo(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return lIe(n,"BEARER_SERVICE_ENV_VARS","3"),n},RIe=300*1e3,W$="To refresh this SSO session run 'aws sso login' with the corresponding profile.",CIe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(V$(),F(z$)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},bIe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(V$(),F(z$));return(await CIe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},K5=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new qo(`Token is expired. ${W$}`,!1)},Fc=(t,e,r=!1)=>{if(typeof e>"u")throw new qo(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${W$}`,!1)},{writeFile:AIe}=EIe,xIe=(t,e)=>{let r=pIe(t),n=JSON.stringify(e,null,2);return AIe(r,n)},Q5=new Map,Y5=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await fIe(t),n=mIe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new qo(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new qo(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await gIe(t))[s];if(!a)throw new qo(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new qo(`Sso session '${s}' is missing required property '${C}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await hIe(s)}catch{throw new qo(`The SSO session token associated with profile=${n} was not found or is invalid. ${W$}`,!1)}Fc("accessToken",u.accessToken),Fc("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>RIe)return y;let _=Q5.get(s)??0;if(Date.now()-_<30*1e3)return K5(y),y;Fc("clientId",u.clientId,!0),Fc("clientSecret",u.clientSecret,!0),Fc("refreshToken",u.refreshToken,!0);try{Q5.set(s,Date.now());let C=await bIe(u,c,t,e);Fc("accessToken",C.accessToken),Fc("expiresIn",C.expiresIn);let A=new Date(Date.now()+C.expiresIn*1e3);try{await xIe(s,{...u,accessToken:C.accessToken,expiresAt:A.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:A}}catch{return K5(y),y}},TIe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new qo("Please pass a valid token to fromStatic",!1);return t},vIe=(t={})=>SIe(yIe(Y5(t),async()=>{throw new qo("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);jf.fromEnvSigningName=_Ie;jf.fromSso=Y5;jf.fromStatic=TIe;jf.nodeProvider=vIe});function DIe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function IIe(t){return{schemeId:"smithy.api#noAuth"}}var X5,Z5,ez,K$=g(()=>{rr();J();X5=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});Z5=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(IIe(t)):e.push(DIe(t)),e},ez=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var tz,rz,Q$=g(()=>{tz=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),rz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var zf,Bc,Xy,nz,az,Zy,Y$,oz,J$,Yl,sz,iz,wIe,_n,PIe,cz,uz=g(()=>{He();zf="ref",Bc=-1,Xy=!0,nz="isSet",az="PartitionResult",Zy="booleanEquals",Y$="getAttr",oz={[zf]:"Endpoint"},J$={[zf]:az},Yl={},sz=[{[zf]:"Region"}],iz={conditions:[[nz,[oz]],[nz,sz],["aws.partition",sz,az],[Zy,[{[zf]:"UseFIPS"},Xy]],[Zy,[{[zf]:"UseDualStack"},Xy]],[Zy,[{fn:Y$,argv:[J$,"supportsDualStack"]},Xy]],[Zy,[{fn:Y$,argv:[J$,"supportsFIPS"]},Xy]],["stringEquals",[{fn:Y$,argv:[J$,"name"]},"aws-us-gov"]]],results:[[Bc],[Bc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Bc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[oz,Yl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Bc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Yl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Yl],[Bc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Bc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Yl],[Bc,"Invalid Configuration: Missing Region"]]},wIe=2,_n=1e8,PIe=new Int32Array([-1,1,-1,0,13,3,1,4,_n+12,2,5,_n+12,3,8,6,4,7,_n+11,5,_n+9,_n+10,4,11,9,6,10,_n+8,7,_n+6,_n+7,5,12,_n+5,6,_n+4,_n+5,3,_n+1,14,4,_n+2,_n+3]),cz=Wn.from(PIe,wIe,iz.conditions,iz.results)});var OIe,lz,dz=g(()=>{Ee();He();uz();OIe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),lz=(t,e={})=>OIe.get(t,()=>Ts(cz,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var Ho,eE=g(()=>{J();Ho=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Vf,Wf,Kf,Qf,X$=g(()=>{eE();Vf=class t extends Ho{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wf=class t extends Ho{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kf=class t extends Ho{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qf=class t extends Ho{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var $Ie,kIe,MIe,LIe,NIe,FIe,BIe,UIe,GIe,qIe,HIe,jIe,zIe,VIe,WIe,tE,rE,KIe,QIe,nE,YIe,pz,oE,JIe,XIe,ZIe,fz,ewe,twe,rwe,ro,mz,gz,Yf,hz,Sz,yz,Ez,Z$,nwe,owe,swe,_z,Rz,Cz,ek,sE=g(()=>{ae();X$();eE();$Ie="AccessTokenType",kIe="GetRoleCredentials",MIe="GetRoleCredentialsRequest",LIe="GetRoleCredentialsResponse",NIe="InvalidRequestException",FIe="RoleCredentials",BIe="ResourceNotFoundException",UIe="SecretAccessKeyType",GIe="SessionTokenType",qIe="TooManyRequestsException",HIe="UnauthorizedException",jIe="accountId",zIe="accessKeyId",VIe="accessToken",WIe="account_id",tE="client",rE="error",KIe="expiration",QIe="http",nE="httpError",YIe="httpHeader",pz="httpQuery",oE="message",JIe="roleCredentials",XIe="roleName",ZIe="role_name",fz="smithy.ts.sdk.synthetic.com.amazonaws.sso",ewe="secretAccessKey",twe="sessionToken",rwe="x-amz-sso_bearer_token",ro="com.amazonaws.sso",mz=new Fe(fz),gz=[-3,fz,"SSOServiceException",0,[],[]];mz.registerError(gz,Ho);Yf=new Fe(ro),hz=[-3,ro,NIe,{[rE]:tE,[nE]:400},[oE],[0]];Yf.registerError(hz,Vf);Sz=[-3,ro,BIe,{[rE]:tE,[nE]:404},[oE],[0]];Yf.registerError(Sz,Wf);yz=[-3,ro,qIe,{[rE]:tE,[nE]:429},[oE],[0]];Yf.registerError(yz,Kf);Ez=[-3,ro,HIe,{[rE]:tE,[nE]:401},[oE],[0]];Yf.registerError(Ez,Qf);Z$=[mz,Yf],nwe=[0,ro,$Ie,8,0],owe=[0,ro,UIe,8,0],swe=[0,ro,GIe,8,0],_z=[3,ro,MIe,0,[XIe,jIe,VIe],[[0,{[pz]:ZIe}],[0,{[pz]:WIe}],[()=>nwe,{[YIe]:rwe}]],3],Rz=[3,ro,LIe,0,[JIe],[[()=>Cz,0]]],Cz=[3,ro,FIe,0,[zIe,ewe,twe,KIe],[0,[()=>owe,0],[()=>swe,0],1]],ek=[9,ro,kIe,{[QIe]:["GET","/federation/credentials",200]},()=>_z,()=>Rz]});var bz,Az=g(()=>{rr();Di();jt();On();J();V();j();K$();dz();sE();bz=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??lz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Z5,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Z$,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var iE,xz,Tz=g(()=>{Cf();Ee();rr();J();ye();en();j();iE=Ie(zs());Az();xz=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=bz(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:iE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??iE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var vz,Dz,Iz=g(()=>{vz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Dz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var wz,Pz=g(()=>{Ee();J();V();Iz();wz=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),vz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),Dz(r))}});var Jf,tk=g(()=>{Ee();jt();J();ye();He();V();en();ae();K$();Q$();Tz();Pz();Jf=class extends Lr{config;constructor(...[e]){let r=xz(e||{});super(r),this.initConfig=r;let n=tz(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=ez(c),f=wz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:X5,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var Oz,$z,kz,Mz=g(()=>{J();He();Q$();Oz=gs(rz,"SWBPortalService","SSOClient",bi),$z={},kz=(t,e,r,n)=>[]});var Xf,rk=g(()=>{Mz();sE();Xf=class extends Oz($z,kz,"GetRoleCredentials",ek){}});var iwe,aE,Lz=g(()=>{J();rk();tk();iwe={GetRoleCredentialsCommand:Xf},aE=class extends Jf{};ds(iwe,aE)});var Nz=g(()=>{rk()});var Fz=g(()=>{});var Bz={};Ct(Bz,{$Command:()=>Xr,GetRoleCredentials$:()=>ek,GetRoleCredentialsCommand:()=>Xf,GetRoleCredentialsRequest$:()=>_z,GetRoleCredentialsResponse$:()=>Rz,InvalidRequestException:()=>Vf,InvalidRequestException$:()=>hz,ResourceNotFoundException:()=>Wf,ResourceNotFoundException$:()=>Sz,RoleCredentials$:()=>Cz,SSO:()=>aE,SSOClient:()=>Jf,SSOServiceException:()=>Ho,SSOServiceException$:()=>gz,TooManyRequestsException:()=>Kf,TooManyRequestsException$:()=>yz,UnauthorizedException:()=>Qf,UnauthorizedException$:()=>Ez,__Client:()=>Lr,errorTypeRegistries:()=>Z$});var Uz=g(()=>{tk();Lz();Nz();J();sE();X$();Fz();eE()});var Gz=st(nk=>{var{GetRoleCredentialsCommand:awe,SSOClient:cwe}=(Uz(),F(Bz));nk.GetRoleCredentialsCommand=awe;nk.SSOClient=cwe});var ok=st(cE=>{var{CredentialsProviderError:jo,getSSOTokenFromFile:uwe,getProfileName:lwe,parseKnownFiles:dwe,loadSsoSessionData:pwe}=(ye(),F(Br)),{setCredentialFeature:qz}=(Ee(),F(kn)),{fromSso:fwe}=J5(),jz=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),Zf=!1,Hz=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let C,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fn=await fwe({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});C={accessToken:fn.token,expiresAt:new Date(fn.expiration).toISOString()}}catch(fn){throw new jo(fn.message,{tryNextLink:Zf,logger:_})}else try{C=await uwe(t)}catch{throw new jo(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:Zf,logger:_})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new jo(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:Zf,logger:_});let{accessToken:x}=C,{SSOClient:T,GetRoleCredentialsCommand:I}=Gz(),q=s||new T(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),H;try{H=await q.send(new I({accountId:r,roleName:o,accessToken:x}))}catch(fn){throw new jo(fn,{tryNextLink:Zf,logger:_})}let{roleCredentials:{accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:tt,credentialScope:pt,accountId:Yr}={}}=H;if(!me||!et||!ot||!tt)throw new jo("SSO returns an invalid temporary credential.",{tryNextLink:Zf,logger:_});let Jr={accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:new Date(tt),...pt&&{credentialScope:pt},...Yr&&{accountId:Yr}};return e?qz(Jr,"CREDENTIALS_SSO","s"):qz(Jr,"CREDENTIALS_SSO_LEGACY","u"),Jr},zz=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new jo(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
|
|
50
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},mwe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=lwe({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await dwe(t))[c];if(!f)throw new jo(`Profile ${c} was not found.`,{logger:t.logger});if(!jz(f))throw new jo(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let T=(await pwe(t))[f.sso_session],I=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==T.sso_region)throw new jo("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==T.sso_start_url)throw new jo("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});f.sso_region=T.sso_region,f.sso_start_url=T.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:C,sso_session:A}=zz(f,t.logger);return Hz({ssoStartUrl:m,ssoSession:A,ssoAccountId:y,ssoRegion:_,ssoRoleName:C,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new jo('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return Hz({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};cE.fromSSO=mwe;cE.isSsoProfile=jz;cE.validateSsoProfile=zz});var tm=st(lE=>{var{SignatureV4:gwe,signatureV4aContainer:Vz}=MO(),em={CrtSignerV4:null},sk="X-Amz-S3session-Token",Wz=sk.toLowerCase(),uE=class extends gwe{async signWithCredentials(e,r,n){let o=Kz(r);e.headers[Wz]=r.sessionToken;let s=this;return Qz(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=Kz(r);return delete e.headers[Wz],e.headers[sk]=r.sessionToken,e.query=e.query??{},e.query[sk]=r.sessionToken,Qz(this,o),this.presign(e,n)}};function Kz(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function Qz(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var ik=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof em.CrtSignerV4=="function"?"crt":typeof Vz.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new uE(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=em.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=em.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=em.CrtSignerV4,r=Vz.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};lE.SignatureV4MultiRegion=ik;lE.SignatureV4SignWithCredentials=uE;lE.signatureV4CrtContainer=em});var Xl,Uc,rm,Yz,oV,nm,Dr,ak,Jz,Xz,Zz,eV,tV,Ir,ck,Jl,rV,nV,hwe,Pe,Swe,sV,iV=g(()=>{He();Xl="ref",Uc=-1,rm=!0,Yz="isSet",oV="PartitionResult",nm="booleanEquals",Dr="stringEquals",ak="getAttr",Jz="us-east-1",Xz="sigv4",Zz="sts",eV="https://sts.{Region}.{PartitionResult#dnsSuffix}",tV={[Xl]:"Endpoint"},Ir={[Xl]:"Region"},ck={[Xl]:oV},Jl={},rV=[Ir],nV={conditions:[[Yz,[tV]],[Yz,rV],["aws.partition",rV,oV],[nm,[{[Xl]:"UseFIPS"},rm]],[nm,[{[Xl]:"UseDualStack"},rm]],[Dr,[Ir,"aws-global"]],[nm,[{[Xl]:"UseGlobalEndpoint"},rm]],[Dr,[Ir,"eu-central-1"]],[nm,[{fn:ak,argv:[ck,"supportsDualStack"]},rm]],[nm,[{fn:ak,argv:[ck,"supportsFIPS"]},rm]],[Dr,[Ir,"ap-south-1"]],[Dr,[Ir,"eu-north-1"]],[Dr,[Ir,"eu-west-1"]],[Dr,[Ir,"eu-west-2"]],[Dr,[Ir,"eu-west-3"]],[Dr,[Ir,"sa-east-1"]],[Dr,[Ir,Jz]],[Dr,[Ir,"us-east-2"]],[Dr,[Ir,"us-west-2"]],[Dr,[Ir,"us-west-1"]],[Dr,[Ir,"ca-central-1"]],[Dr,[Ir,"ap-southeast-1"]],[Dr,[Ir,"ap-northeast-1"]],[Dr,[Ir,"ap-southeast-2"]],[Dr,[{fn:ak,argv:[ck,"name"]},"aws-us-gov"]]],results:[[Uc],["https://sts.amazonaws.com",{authSchemes:[{name:Xz,signingName:Zz,signingRegion:Jz}]}],[eV,{authSchemes:[{name:Xz,signingName:Zz,signingRegion:"{Region}"}]}],[Uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[tV,Jl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Jl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"DualStack is enabled but this partition does not support DualStack"],[eV,Jl],[Uc,"Invalid Configuration: Missing Region"]]},hwe=2,Pe=1e8,Swe=new Int32Array([-1,1,-1,0,30,3,1,4,Pe+14,2,5,Pe+14,3,25,6,4,24,7,5,Pe+1,8,6,9,Pe+13,7,Pe+1,10,10,Pe+1,11,11,Pe+1,12,12,Pe+1,13,13,Pe+1,14,14,Pe+1,15,15,Pe+1,16,16,Pe+1,17,17,Pe+1,18,18,Pe+1,19,19,Pe+1,20,20,Pe+1,21,21,Pe+1,22,22,Pe+1,23,23,Pe+1,Pe+2,8,Pe+11,Pe+12,4,28,26,9,27,Pe+10,24,Pe+8,Pe+9,8,29,Pe+7,9,Pe+6,Pe+7,3,Pe+3,31,4,Pe+4,Pe+5]),sV=Wn.from(Swe,hwe,nV.conditions,nV.results)});var ywe,dE,uk=g(()=>{Ee();He();iV();ywe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),dE=(t,e={})=>ywe.get(t,()=>Ts(sV,{endpointParams:t,logger:e.logger}));hn.aws=Lo});function uV(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function lk(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function lV(t){return{schemeId:"smithy.api#noAuth"}}var aV,Ewe,_we,cV,Rwe,Cwe,dV,pV,dk=g(()=>{rr();aV=Ie(tm());J();He();uk();Ewe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Le(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await Fp(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},_we=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),cV=Ewe(_we);Rwe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(aV.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},Cwe=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(lV(t)),e.push(lk(t))):(e.push(uV(t)),e.push(lk(t))),e},dV=Rwe(dE,Cwe,{"aws.auth#sigv4":uV,"aws.auth#sigv4a":lk,"smithy.api#noAuth":lV}),pV=t=>{let e=js(t),r=mf(e);return Object.assign(r,{authSchemePreference:we(t.authSchemePreference??[])})}});var fV,mV,pk=g(()=>{fV=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),mV={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 Rn,pE=g(()=>{J();Rn=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var om,sm,im,am,cm,um,lm,fk=g(()=>{pE();om=class t extends Rn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sm=class t extends Rn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},im=class t extends Rn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},am=class t extends Rn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},um=class t extends Rn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var bwe,Awe,xwe,Twe,vwe,Dwe,mk,Iwe,wwe,Pwe,Owe,gk,$we,gV,kwe,Mwe,Lwe,Nwe,Fwe,Bwe,Uwe,Gwe,hV,SV,yV,qwe,Hwe,jwe,zwe,Vwe,Wwe,EV,Kwe,Qwe,_V,Ywe,RV,Jwe,Xwe,hk,Zwe,ePe,CV,bV,tPe,rPe,nPe,oPe,sPe,iPe,aPe,cPe,Gc,qc,uPe,Hc,jc,zc,lPe,AV,dPe,it,xV,TV,wa,vV,DV,IV,wV,PV,OV,$V,Sk,pPe,fPe,yk,kV,MV,LV,NV,Ek,FV,BV,UV,GV,mPe,gPe,_k,Rk,dm=g(()=>{ae();fk();pE();bwe="Arn",Awe="AccessKeyId",xwe="AssumeRole",Twe="AssumedRoleId",vwe="AssumeRoleRequest",Dwe="AssumeRoleResponse",mk="AssumedRoleUser",Iwe="AssumeRoleWithWebIdentity",wwe="AssumeRoleWithWebIdentityRequest",Pwe="AssumeRoleWithWebIdentityResponse",Owe="Audience",gk="Credentials",$we="ContextAssertion",gV="DurationSeconds",kwe="Expiration",Mwe="ExternalId",Lwe="ExpiredTokenException",Nwe="IDPCommunicationErrorException",Fwe="IDPRejectedClaimException",Bwe="InvalidIdentityTokenException",Uwe="Key",Gwe="MalformedPolicyDocumentException",hV="MinimumSessionTokenSize",SV="Policy",yV="PolicyArns",qwe="ProviderArn",Hwe="ProvidedContexts",jwe="ProvidedContextsListType",zwe="ProvidedContext",Vwe="PolicyDescriptorType",Wwe="ProviderId",EV="PackedPolicySize",Kwe="PackedPolicyTooLargeException",Qwe="Provider",_V="RoleArn",Ywe="RegionDisabledException",RV="RoleSessionName",Jwe="SecretAccessKey",Xwe="SubjectFromWebIdentityToken",hk="SourceIdentity",Zwe="SerialNumber",ePe="SessionToken",CV="SessionTokenSize",bV="SessionTokenUtilization",tPe="Tags",rPe="TokenCode",nPe="TransitiveTagKeys",oPe="Tag",sPe="Value",iPe="WebIdentityToken",aPe="arn",cPe="accessKeySecretType",Gc="awsQueryError",qc="client",uPe="clientTokenType",Hc="error",jc="httpError",zc="message",lPe="policyDescriptorListType",AV="smithy.ts.sdk.synthetic.com.amazonaws.sts",dPe="tagListType",it="com.amazonaws.sts",xV=new Fe(AV),TV=[-3,AV,"STSServiceException",0,[],[]];xV.registerError(TV,Rn);wa=new Fe(it),vV=[-3,it,Lwe,{[Gc]:["ExpiredTokenException",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(vV,om);DV=[-3,it,Nwe,{[Gc]:["IDPCommunicationError",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(DV,lm);IV=[-3,it,Fwe,{[Gc]:["IDPRejectedClaim",403],[Hc]:qc,[jc]:403},[zc],[0]];wa.registerError(IV,cm);wV=[-3,it,Bwe,{[Gc]:["InvalidIdentityToken",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(wV,um);PV=[-3,it,Gwe,{[Gc]:["MalformedPolicyDocument",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(PV,sm);OV=[-3,it,Kwe,{[Gc]:["PackedPolicyTooLarge",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(OV,im);$V=[-3,it,Ywe,{[Gc]:["RegionDisabledException",403],[Hc]:qc,[jc]:403},[zc],[0]];wa.registerError($V,am);Sk=[xV,wa],pPe=[0,it,cPe,8,0],fPe=[0,it,uPe,8,0],yk=[3,it,mk,0,[Twe,bwe],[0,0],2],kV=[3,it,vwe,0,[_V,RV,yV,SV,gV,tPe,nPe,Mwe,Zwe,rPe,hk,Hwe,hV],[0,0,()=>GV,0,1,()=>gPe,64,0,0,0,0,()=>mPe,1],2],MV=[3,it,Dwe,0,[gk,mk,EV,hk,bV,CV],[[()=>Ek,0],()=>yk,1,0,1,1]],LV=[3,it,wwe,0,[_V,RV,iPe,Wwe,yV,SV,gV,hV],[0,0,[()=>fPe,0],0,()=>GV,0,1,1],3],NV=[3,it,Pwe,0,[gk,Xwe,mk,EV,Qwe,Owe,hk,bV,CV],[[()=>Ek,0],0,()=>yk,1,0,0,0,1,1]],Ek=[3,it,gk,0,[Awe,Jwe,ePe,kwe],[0,[()=>pPe,0],0,4],4],FV=[3,it,Vwe,0,[aPe],[0]],BV=[3,it,zwe,0,[qwe,$we],[0,0]],UV=[3,it,oPe,0,[Uwe,sPe],[0,0],2],GV=[1,it,lPe,0,()=>FV],mPe=[1,it,jwe,0,()=>BV],gPe=[1,it,dPe,0,()=>UV],_k=[9,it,xwe,0,()=>kV,()=>MV],Rk=[9,it,Iwe,0,()=>LV,()=>NV]});var qV,HV,jV=g(()=>{rr();Di();qV=Ie(tm());jt();On();J();V();j();dk();uk();dm();HV=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??dE,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dV,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ia,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Sk,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Sn,signerConstructor:t?.signerConstructor??qV.SignatureV4MultiRegion,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var fE,zV,VV=g(()=>{Cf();Ee();rr();jt();J();ye();en();j();fE=Ie(zs());jV();zV=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=HV(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:fE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ue(gf,o),streamCollector:t?.streamCollector??fE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var WV,KV,QV=g(()=>{WV=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},KV=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var YV,JV=g(()=>{Ee();J();V();QV();YV=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),WV(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),KV(r))}});var Pa,mE=g(()=>{Ee();jt();J();ye();He();V();en();ae();dk();pk();VV();JV();Pa=class extends Lr{config;constructor(...[e]){let r=zV(e||{});super(r),this.initConfig=r;let n=fV(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=pV(c),f=YV(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:cV,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var gE,hE,SE,Ck=g(()=>{J();He();pk();gE=gs(mV,"AWSSecurityTokenServiceV20110615","STSClient",bi),hE={},SE=(t,e,r,n)=>[]});var Vc,yE=g(()=>{Ck();dm();Vc=class extends gE(hE,SE,"AssumeRole",_k){}});var Wc,EE=g(()=>{Ck();dm();Wc=class extends gE(hE,SE,"AssumeRoleWithWebIdentity",Rk){}});var hPe,_E,XV=g(()=>{J();yE();EE();mE();hPe={AssumeRoleCommand:Vc,AssumeRoleWithWebIdentityCommand:Wc},_E=class extends Pa{};ds(hPe,_E)});var ZV=g(()=>{yE();EE()});var eW=g(()=>{});var tW,rW,nW,oW,sW,iW=g(()=>{Ee();yE();EE();tW=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},rW=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await q0(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},nW=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:C,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,x=await rW(y,t?.parentClientConfig?.region,C,{logger:f,profile:m}),T=!sW(_);r=new e({...t,userAgentAppId:A,profile:m,credentialDefaultProvider:()=>async()=>n,region:x,requestHandler:T?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new Vc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=tW(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return Yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},oW=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,C=await rW(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),A=!sW(m);r=new e({...t,userAgentAppId:_,profile:u,region:C,requestHandler:A?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new Wc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=tW(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&Yi(a,"RESOLVED_ACCOUNT_ID","T"),Yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},sW=t=>t?.metadata?.handlerProtocol==="h2"});var aW,cW,uW,SPe,lW=g(()=>{iW();mE();aW=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,cW=(t={},e)=>nW(t,aW(Pa,e)),uW=(t={},e)=>oW(t,aW(Pa,e)),SPe=t=>e=>t({roleAssumer:cW(e),roleAssumerWithWebIdentity:uW(e),...e})});var bk={};Ct(bk,{$Command:()=>Xr,AssumeRole$:()=>_k,AssumeRoleCommand:()=>Vc,AssumeRoleRequest$:()=>kV,AssumeRoleResponse$:()=>MV,AssumeRoleWithWebIdentity$:()=>Rk,AssumeRoleWithWebIdentityCommand:()=>Wc,AssumeRoleWithWebIdentityRequest$:()=>LV,AssumeRoleWithWebIdentityResponse$:()=>NV,AssumedRoleUser$:()=>yk,Credentials$:()=>Ek,ExpiredTokenException:()=>om,ExpiredTokenException$:()=>vV,IDPCommunicationErrorException:()=>lm,IDPCommunicationErrorException$:()=>DV,IDPRejectedClaimException:()=>cm,IDPRejectedClaimException$:()=>IV,InvalidIdentityTokenException:()=>um,InvalidIdentityTokenException$:()=>wV,MalformedPolicyDocumentException:()=>sm,MalformedPolicyDocumentException$:()=>PV,PackedPolicyTooLargeException:()=>im,PackedPolicyTooLargeException$:()=>OV,PolicyDescriptorType$:()=>FV,ProvidedContext$:()=>BV,RegionDisabledException:()=>am,RegionDisabledException$:()=>$V,STS:()=>_E,STSClient:()=>Pa,STSServiceException:()=>Rn,STSServiceException$:()=>TV,Tag$:()=>UV,__Client:()=>Lr,decorateDefaultCredentialProvider:()=>SPe,errorTypeRegistries:()=>Sk,getDefaultRoleAssumer:()=>cW,getDefaultRoleAssumerWithWebIdentity:()=>uW});var Ak=g(()=>{mE();XV();ZV();J();dm();fk();eW();lW();pE()});function yPe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function EPe(t){return{schemeId:"smithy.api#noAuth"}}var dW,pW,fW,xk=g(()=>{rr();J();dW=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});pW=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(EPe(t)):e.push(yPe(t)),e},fW=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var mW,gW,Tk=g(()=>{mW=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),gW={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ka,Oa,hW,Zl,SW,ed,yW,Dk,Ii,vk,EW,_W,$a,AW,RW,RE,Gr,CW,bW,_Pe,_e,RPe,xW,TW=g(()=>{He();ka="ref",Oa=-1,hW=!1,Zl=!0,SW="isSet",ed="booleanEquals",yW="coalesce",Dk="PartitionResult",Ii="stringEquals",vk="getAttr",EW="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",_W={[ka]:"Endpoint"},$a={fn:vk,argv:[{[ka]:Dk},"name"]},AW={[ka]:"Region"},RW={[ka]:Dk},RE={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Gr={},CW=[AW],bW={conditions:[[SW,CW],[ed,[{fn:yW,argv:[{[ka]:"IsControlPlane"},hW]},Zl]],[SW,[_W]],["aws.partition",CW,Dk],[ed,[{[ka]:"UseFIPS"},Zl]],[Ii,[$a,"aws"]],[ed,[{fn:yW,argv:[{[ka]:"IsOAuthEndpoint"},hW]},Zl]],[ed,[{[ka]:"UseDualStack"},Zl]],[Ii,[$a,"aws-cn"]],[Ii,[AW,"us-gov-west-1"]],[Ii,[$a,"aws-us-gov"]],[ed,[{fn:vk,argv:[RW,"supportsFIPS"]},Zl]],[Ii,[$a,"aws-iso"]],[Ii,[$a,"aws-iso-b"]],[Ii,[$a,"aws-iso-f"]],[Ii,[$a,"aws-iso-e"]],[Ii,[$a,"aws-eusc"]],[ed,[{fn:vk,argv:[RW,"supportsDualStack"]},Zl]]],results:[[Oa],["https://signin.{Region}.api.aws",RE],["https://signin.{Region}.api.amazonwebservices.com.cn",RE],[EW,RE],[Oa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",RE],["https://{Region}.signin.aws.amazon.com",Gr],["https://{Region}.signin.amazonaws.cn",Gr],["https://{Region}.signin.amazonaws-us-gov.com",Gr],["https://{Region}.signin.c2shome.ic.gov",Gr],["https://{Region}.signin.sc2shome.sgov.gov",Gr],["https://{Region}.signin.csphome.hci.ic.gov",Gr],["https://{Region}.signin.csphome.adc-e.uk",Gr],["https://{Region}.signin.amazonaws-eusc.eu",Gr],["https://signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Oa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[_W,Gr],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gr],[Oa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"FIPS is enabled but this partition does not support FIPS"],[EW,Gr],[Oa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: Missing Region"]]},_Pe=2,_e=1e8,RPe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,_e+27,6,_e+4,_e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,_e+7,13,10,_e+8,14,12,_e+9,15,13,_e+10,16,14,_e+11,17,15,_e+12,18,16,_e+13,_e+16,6,_e+5,20,7,21,_e+6,17,_e+24,_e+25,6,_e+4,23,7,27,24,9,_e+14,25,10,_e+15,26,11,_e+22,_e+23,11,28,_e+21,17,_e+20,_e+21,2,35,30,3,39,31,4,32,_e+27,6,_e+4,33,7,_e+27,34,9,_e+14,_e+27,3,39,36,4,38,37,7,_e+18,_e+19,6,_e+4,_e+17,5,_e+1,40,8,_e+2,_e+3]),xW=Wn.from(RPe,_Pe,bW.conditions,bW.results)});var CPe,vW,DW=g(()=>{Ee();He();TW();CPe=new Kn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),vW=(t,e={})=>CPe.get(t,()=>Ts(xW,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var zo,CE=g(()=>{J();zo=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var pm,fm,mm,gm,Ik=g(()=>{CE();pm=class t extends zo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},fm=class t extends zo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},mm=class t extends zo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},gm=class t extends zo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var bPe,APe,xPe,TPe,vPe,DPe,IPe,wPe,PPe,OPe,$Pe,kPe,MPe,LPe,NPe,IW,wk,FPe,kk,wW,PW,BPe,Ma,Pk,UPe,Ok,GPe,LW,Mk,OW,wr,AE,qPe,bE,$W,NW,kW,MW,HPe,jPe,zPe,$k,VPe,qr,FW,BW,hm,UW,GW,qW,HW,Lk,WPe,jW,zW,VW,WW,KW,QW,YW,JW,Nk,Fk,Sm=g(()=>{ae();Ik();CE();bPe="AccessDeniedException",APe="AccessToken",xPe="CreateOAuth2Token",TPe="CreateOAuth2TokenRequest",vPe="CreateOAuth2TokenRequestBody",DPe="CreateOAuth2TokenResponseBody",IPe="CreateOAuth2TokenResponse",wPe="CreateOAuth2TokenWithIAM",PPe="CreateOAuth2TokenWithIAMRequest",OPe="CreateOAuth2TokenWithIAMResponse",$Pe="InternalServerException",kPe="OAuthAccessToken",MPe="RefreshToken",LPe="TooManyRequestsError",NPe="ValidationException",IW="accessKeyId",wk="accessToken",FPe="access_token",kk="client",wW="clientId",PW="codeVerifier",BPe="code",Ma="error",Pk="expiresIn",UPe="expires_in",Ok="grantType",GPe="grant_type",LW="http",Mk="httpError",OW="idToken",wr="jsonName",AE="message",qPe="resource",bE="refreshToken",$W="redirectUri",NW="smithy.ts.sdk.synthetic.com.amazonaws.signin",kW="secretAccessKey",MW="sessionToken",HPe="server",jPe="tokenInput",zPe="tokenOutput",$k="tokenType",VPe="token_type",qr="com.amazonaws.signin",FW=new Fe(NW),BW=[-3,NW,"SigninServiceException",0,[],[]];FW.registerError(BW,zo);hm=new Fe(qr),UW=[-3,qr,bPe,{[Ma]:kk},[Ma,AE],[0,0],2];hm.registerError(UW,pm);GW=[-3,qr,$Pe,{[Ma]:HPe,[Mk]:500},[Ma,AE],[0,0],2];hm.registerError(GW,fm);qW=[-3,qr,LPe,{[Ma]:kk,[Mk]:429},[Ma,AE],[0,0],2];hm.registerError(qW,mm);HW=[-3,qr,NPe,{[Ma]:kk,[Mk]:400},[Ma,AE],[0,0],2];hm.registerError(HW,gm);Lk=[FW,hm],WPe=[0,qr,kPe,8,0],jW=[0,qr,MPe,8,0],zW=[3,qr,APe,8,[IW,kW,MW],[[0,{[wr]:IW}],[0,{[wr]:kW}],[0,{[wr]:MW}]],3],VW=[3,qr,TPe,0,[jPe],[[()=>WW,16]],1],WW=[3,qr,vPe,0,[wW,Ok,BPe,$W,PW,bE],[[0,{[wr]:wW}],[0,{[wr]:Ok}],0,[0,{[wr]:$W}],[0,{[wr]:PW}],[()=>jW,{[wr]:bE}]],2],KW=[3,qr,IPe,0,[zPe],[[()=>QW,16]],1],QW=[3,qr,DPe,0,[wk,$k,Pk,bE,OW],[[()=>zW,{[wr]:wk}],[0,{[wr]:$k}],[1,{[wr]:Pk}],[()=>jW,{[wr]:bE}],[0,{[wr]:OW}]],4],YW=[3,qr,PPe,0,[Ok,qPe],[[0,{[wr]:GPe}],0],2],JW=[3,qr,OPe,0,[wk,$k,Pk],[[()=>WPe,{[wr]:FPe}],[0,{[wr]:VPe}],[1,{[wr]:UPe}]],3],Nk=[9,qr,xPe,{[LW]:["POST","/v1/token",200]},()=>VW,()=>KW],Fk=[9,qr,wPe,{[LW]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>YW,()=>JW]});var XW,ZW=g(()=>{rr();Di();jt();On();J();V();j();xk();DW();Sm();XW=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??vW,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pW,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Lk,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var xE,e8,t8=g(()=>{Cf();Ee();rr();J();ye();en();j();xE=Ie(zs());ZW();e8=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=XW(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:xE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??xE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var r8,n8,o8=g(()=>{r8=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},n8=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var s8,i8=g(()=>{Ee();J();V();o8();s8=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),r8(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),n8(r))}});var ym,Bk=g(()=>{Ee();jt();J();ye();He();V();en();ae();xk();Tk();t8();i8();ym=class extends Lr{config;constructor(...[e]){let r=e8(e||{});super(r),this.initConfig=r;let n=mW(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=fW(c),f=s8(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:dW,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var TE,a8,c8,vE,Uk=g(()=>{J();He();Tk();TE=gs(gW,"Signin","SigninClient",bi),a8={IsControlPlane:{type:"staticContextParams",value:!1}},c8={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},vE=(t,e,r,n)=>[]});var Em,Gk=g(()=>{Uk();Sm();Em=class extends TE(a8,vE,"CreateOAuth2Token",Nk){}});var _m,qk=g(()=>{Uk();Sm();_m=class extends TE(c8,vE,"CreateOAuth2TokenWithIAM",Fk){}});var KPe,DE,u8=g(()=>{J();Gk();qk();Bk();KPe={CreateOAuth2TokenCommand:Em,CreateOAuth2TokenWithIAMCommand:_m},DE=class extends ym{};ds(KPe,DE)});var l8=g(()=>{Gk();qk()});var QPe,d8=g(()=>{QPe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var p8=g(()=>{});var f8={};Ct(f8,{$Command:()=>Xr,AccessDeniedException:()=>pm,AccessDeniedException$:()=>UW,AccessToken$:()=>zW,CreateOAuth2Token$:()=>Nk,CreateOAuth2TokenCommand:()=>Em,CreateOAuth2TokenRequest$:()=>VW,CreateOAuth2TokenRequestBody$:()=>WW,CreateOAuth2TokenResponse$:()=>KW,CreateOAuth2TokenResponseBody$:()=>QW,CreateOAuth2TokenWithIAM$:()=>Fk,CreateOAuth2TokenWithIAMCommand:()=>_m,CreateOAuth2TokenWithIAMRequest$:()=>YW,CreateOAuth2TokenWithIAMResponse$:()=>JW,InternalServerException:()=>fm,InternalServerException$:()=>GW,OAuth2ErrorCode:()=>QPe,Signin:()=>DE,SigninClient:()=>ym,SigninServiceException:()=>zo,SigninServiceException$:()=>BW,TooManyRequestsError:()=>mm,TooManyRequestsError$:()=>qW,ValidationException:()=>gm,ValidationException$:()=>HW,__Client:()=>Lr,errorTypeRegistries:()=>Lk});var m8=g(()=>{Bk();u8();l8();J();Sm();d8();Ik();p8();CE()});var S8=st(h8=>{var{setCredentialFeature:YPe}=(Ee(),F(kn)),{CredentialsProviderError:La,parseKnownFiles:JPe,getProfileName:XPe}=(ye(),F(Br)),{HttpRequest:ZPe}=(V(),F(wo)),{createHash:eOe,createPrivateKey:tOe,createPublicKey:rOe,sign:nOe}=require("node:crypto"),{promises:Hk}=require("node:fs"),{homedir:oOe}=require("node:os"),{dirname:sOe,join:g8}=require("node:path"),jk=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new La(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(m8(),F(f8)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(T=>T?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,C=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:C,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let x={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let T=await A.send(new u(x)),{accessKeyId:I,secretAccessKey:q,sessionToken:H}=T.tokenOutput?.accessToken??{},{refreshToken:me,expiresIn:et}=T.tokenOutput??{};if(!I||!q||!H||!me)throw new La("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let ot=(et??900)*1e3,tt=new Date(Date.now()+ot),pt={...i,accessToken:{...i.accessToken,accessKeyId:I,secretAccessKey:q,sessionToken:H,expiresAt:tt.toISOString()},refreshToken:me};return await this.saveToken(pt),this.toCredentials(pt.accessToken)}catch(T){if(T.name==="AccessDeniedException"){let q=T.error,H;switch(q){case"TOKEN_EXPIRED":H="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":H="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":H="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:H=`Failed to refresh token: ${String(T)}. Please re-authenticate using \`aws login\``}throw new La(H,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(T)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new La(`Failed to refresh token: ${String(T)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Hk.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new La(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new La(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=sOe(r);try{await Hk.mkdir(n,{recursive:!0})}catch{}await Hk.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??g8(oOe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=eOe("sha256").update(r).digest("hex");return g8(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(ZPe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=tOe({key:n.dpopKey,format:"pem",type:"sec1"}),i=rOe(o).export({format:"der",type:"spki"}),a=-1;for(let I=0;I<i.length;I++)if(i[I]===4){a=I;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),C=`${y}.${_}`,A=nOe("sha256",Buffer.from(C),o),T=this.derToRawSignature(A).toString("base64url");return`${C}.${T}`}catch(o){throw new La(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},iOe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await JPe(t||{}),n=XPe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new La(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new jk(o,t,e).loadCredentials();return YPe(i,"CREDENTIALS_LOGIN","AD")};h8.fromLoginCredentials=iOe});var Vk=st(y8=>{var{externalDataInterceptor:aOe,CredentialsProviderError:zk,parseKnownFiles:cOe,getProfileName:uOe}=(ye(),F(Br)),{exec:lOe}=require("node:child_process"),{promisify:dOe}=require("node:util"),{setCredentialFeature:pOe}=(Ee(),F(kn)),fOe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return pOe(o,"CREDENTIALS_PROCESS","w"),o},mOe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=dOe(aOe?.getTokenRecord?.().exec??lOe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return fOe(t,a,e)}catch(i){throw new zk(i.message,{logger:r})}}else throw new zk(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new zk(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},gOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await cOe(t);return mOe(uOe({profile:t.profile??e?.profile}),r,t.logger)};y8.fromProcess=gOe});var Kk=st(Wk=>{var{setCredentialFeature:hOe}=(Ee(),F(kn)),{CredentialsProviderError:SOe,externalDataInterceptor:yOe}=(ye(),F(Br)),{readFileSync:EOe}=require("node:fs"),_8=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(Ak(),F(bk));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},E8="AWS_WEB_IDENTITY_TOKEN_FILE",_Oe="AWS_ROLE_ARN",ROe="AWS_ROLE_SESSION_NAME",COe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[E8],n=t?.roleArn??process.env[_Oe],o=t?.roleSessionName??process.env[ROe];if(!r||!n)throw new SOe("Web identity configuration not specified",{logger:t.logger});let s=await _8({...t,webIdentityToken:yOe?.getTokenRecord?.()[r]??EOe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[E8]&&hOe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};Wk.fromTokenFile=COe;Wk.fromWebToken=_8});var v8=st(T8=>{var{CredentialsProviderError:IE,chain:bOe,getProfileName:A8,parseKnownFiles:AOe}=(ye(),F(Br)),{setCredentialFeature:wi}=(Ee(),F(kn)),xOe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=XO(),{fromContainerMetadata:i}=ry();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>bOe(s(o??{}),i(o))().then(Qk)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=ry();return async()=>s(o)().then(Qk)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=BO();return async()=>s(o)().then(Qk)}};if(t in n)return n[t];throw new IE(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},Qk=t=>wi(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),TOe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(vOe(t,{profile:e,logger:r})||DOe(t,{profile:e,logger:r})),vOe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},DOe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},IOe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(Ak(),F(bk));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new IE(`Detected a cycle attempting to resolve credentials for profile ${A8(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},R8(e[a]??{})):(await xOe(i.credential_source,t,r.logger)(r))();if(R8(i))return u.then(f=>wi(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new IE(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>wi(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},R8=t=>!t.role_arn&&!!t.credential_source,wOe=t=>!!(t&&t.login_session),POe=async(t,e,r)=>{let{fromLoginCredentials:n}=S8(),o=await n({...e,profile:t})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_LOGIN","AC")},OOe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",$Oe=async(t,e)=>{let{fromProcess:r}=Vk(),n=await r({...t,profile:e})();return wi(n,"CREDENTIALS_PROFILE_PROCESS","v")},kOe=async(t,e,r={},n)=>{let{fromSSO:o}=ok();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?wi(s,"CREDENTIALS_PROFILE_SSO","r"):wi(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},MOe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),C8=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,b8=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return wi(r,"CREDENTIALS_PROFILE","n")},LOe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,NOe=async(t,e,r)=>{let{fromTokenFile:n}=Kk(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},x8=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&C8(i))return b8(i,r);if(s||TOe(i,{profile:t,logger:r.logger}))return IOe(t,e,r,n,o,x8);if(C8(i))return b8(i,r);if(LOe(i))return NOe(i,r,n);if(OOe(i))return $Oe(r,t);if(MOe(i))return await kOe(t,i,r,n);if(wOe(i))return POe(t,r,n);throw new IE(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},FOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await AOe(t);return x8(A8({profile:t.profile??e?.profile}),r,t,e)};T8.fromIni=FOe});var Rm=st(PE=>{var{ENV_KEY:BOe,ENV_SECRET:UOe,fromEnv:GOe}=BO(),{chain:qOe,CredentialsProviderError:wE,ENV_PROFILE:HOe}=(ye(),F(Br)),D8="AWS_EC2_METADATA_DISABLED",jOe=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=ry();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=XO();return qOe(s(t),n(t))}return process.env[D8]&&process.env[D8]!=="false"?async()=>{throw new wE("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function zOe(t,e){let r=VOe(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var VOe=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},I8=!1,WOe=(t={})=>zOe([async()=>{if(t.profile??process.env[HOe])throw process.env[BOe]&&process.env[UOe]&&(I8||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
49
|
+
`)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&$$(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&$$(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Gy.XmlNode=k$;Gy.XmlText=Uy;Gy.parseXML=ODe});var Y6,Da,Hy=g(()=>{Y6=De(qy());J();V();ae();j();Bo();Cy();wf();Da=class extends ht{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new pa(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=B.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??ze)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=B.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],C=y[m];_==="__proto__"&&eo(i),i[_]=this.readSchema(c,C)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new xa(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,Y6.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),_c(s)}return{}}}});var Vl,L$=g(()=>{V();ae();j();j();Bo();Vl=class extends ht{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=B.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ie)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(xr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Y?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ze(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(br(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,C=i.getMergedTraits(),A=this.getKey("value",C.xmlName,C.ec2QueryName),x=a?`${n}${c}.${A}`:`${n}entry.${c}.${A}`;this.write(s,u,_),this.write(i,f,x),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${vo(e)}=`}writeValue(e){this.buffer+=vo(e)}}});var Ia,N$=g(()=>{V();ae();Nl();Hy();L$();Ia=class extends Qn{options;serializer;deserializer;mixin=new Zn;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Vl(r),this.deserializer=new Da(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(mn(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let f=await At(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await At(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=B.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[A,x]of m.structIterator()){let T=x.getMergedTraits().xmlName??A,I=a[T]??o[T];C[A]=this.deserializer.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},C),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var jy,J6=g(()=>{N$();jy=class extends Ia{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var X6,F$,Z6,zy,B$=g(()=>{X6=De(qy());J();T$();F$=(t,e)=>vy(t,e).then(r=>{if(r.length){let n;try{n=(0,X6.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),_c(i)}return{}}),Z6=async(t,e)=>{let r=await F$(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},zy=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var tn,Wl,U$=g(()=>{tn=De(qy());V();ae();j();j();Bo();Wl=class extends ht{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Xe)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=tn.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=tn.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=tn.XmlNode.of(f);if(typeof m!="string")if(r instanceof tn.XmlNode||r instanceof tn.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,C)=>{if(i.isListSchema())this.writeList(i,Array.isArray(C)?C:[C],_,m);else if(i.isMapSchema())this.writeMap(i,C,_,m);else if(i.isStructSchema()){let A=this.writeStruct(i,C,m);_.addChildNode(A.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let A=tn.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,C,A,m),_.addChildNode(A)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=tn.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let C of r)(c||C!=null)&&y(_,C);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,C=!!i.xmlFlattened,[A,x]=this.getXmlnsAttribute(e,o),T=(I,q,H)=>{let me=tn.XmlNode.of(u,q),[et,ot]=this.getXmlnsAttribute(a,x);ot&&me.addAttribute(et,ot),I.addChildNode(me);let tt=tn.XmlNode.of(y);f.isListSchema()?this.writeList(f,H,tt,x):f.isMapSchema()?this.writeMap(f,H,tt,x,!0):f.isStructSchema()?tt=this.writeStruct(f,H,x):this.writeSimpleInto(f,H,tt,x),I.addChildNode(tt)};if(C)for(let I in r){let q=r[I];if(_||q!=null){let H=tn.XmlNode.of(i.xmlName??e.getMemberName());T(H,I,q),n.addChildNode(H)}}else{let I;s||(I=tn.XmlNode.of(i.xmlName??e.getMemberName()),x&&I.addAttribute(A,x),n.addChildNode(I));for(let q in r){let H=r[q];if(_||H!=null){let me=tn.XmlNode.of("entry");T(me,q,H),(s?n:I).addChildNode(me)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=B.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??Ie)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ze(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=br(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=br(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Y?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=xr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=B.of(e),a=new tn.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var Kl,G$=g(()=>{Bo();Hy();U$();Kl=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Wl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Da(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Ql,e5=g(()=>{V();ae();Nl();B$();G$();Ql=class extends la{codec;serializer;deserializer;mixin=new Zn;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Kl(r),this.serializer=new ma(this.codec.createSerializer(),r),this.deserializer=new fa(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=zy(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let A of Object.keys(o.Error))o[A]=o.Error[A],A.toLowerCase()==="message"&&(o.message=o.Error[A]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().xmlName??A,I=o.Error?.[T]??o[T];_[A]=C.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var t5,r5=g(()=>{j();t5=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Bh(t)}});var n5,o5,s5,i5=g(()=>{n5=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},o5=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},s5=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var Vy={};Ct(Vy,{AwsEc2QueryProtocol:()=>jy,AwsJson1_0Protocol:()=>Ly,AwsJson1_1Protocol:()=>Ny,AwsJsonRpcProtocol:()=>va,AwsQueryProtocol:()=>Ia,AwsRestJsonProtocol:()=>Ks,AwsRestXmlProtocol:()=>Ql,AwsSmithyRpcV2CborProtocol:()=>Ry,JsonCodec:()=>By,JsonCodec2:()=>Ta,JsonShapeDeserializer:()=>jl,JsonShapeDeserializer2:()=>Gl,JsonShapeSerializer:()=>zl,JsonShapeSerializer2:()=>Hl,QueryShapeSerializer:()=>Vl,XmlCodec:()=>Kl,XmlShapeDeserializer:()=>Da,XmlShapeSerializer:()=>Wl,_toBool:()=>o5,_toNum:()=>s5,_toStr:()=>n5,awsExpectUnion:()=>t5,loadJsonRpcErrorCode:()=>Iy,loadRestJsonErrorCode:()=>Dy,loadRestXmlErrorCode:()=>zy,parseJsonBody:()=>Nc,parseJsonErrorBody:()=>L6,parseXmlBody:()=>F$,parseXmlErrorBody:()=>Z6});var Di=g(()=>{k6();j6();z6();My();V6();Q6();P$();O$();ky();D$();w$();Ul();J6();N$();L$();e5();G$();Hy();U$();B$();r5();i5()});var Pf,Fc,Wy,a5,d5,Ky,q$,c5,H$,Yl,u5,l5,$De,En,kDe,p5,f5=g(()=>{He();Pf="ref",Fc=-1,Wy=!0,a5="isSet",d5="PartitionResult",Ky="booleanEquals",q$="getAttr",c5={[Pf]:"Endpoint"},H$={[Pf]:d5},Yl={},u5=[{[Pf]:"Region"}],l5={conditions:[[a5,[c5]],[a5,u5],["aws.partition",u5,d5],[Ky,[{[Pf]:"UseFIPS"},Wy]],[Ky,[{[Pf]:"UseDualStack"},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsDualStack"]},Wy]],[Ky,[{fn:q$,argv:[H$,"supportsFIPS"]},Wy]],["stringEquals",[{fn:q$,argv:[H$,"name"]},"aws-us-gov"]]],results:[[Fc],[Fc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Fc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c5,Yl],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Yl],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Fc,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Yl],[Fc,"Invalid Configuration: Missing Region"]]},$De=2,En=1e8,kDe=new Int32Array([-1,1,-1,0,13,3,1,4,En+12,2,5,En+12,3,8,6,4,7,En+11,5,En+9,En+10,4,11,9,6,10,En+8,7,En+6,En+7,5,12,En+5,6,En+4,En+5,3,En+1,14,4,En+2,En+3]),p5=Wn.from(kDe,$De,l5.conditions,l5.results)});var MDe,m5,g5=g(()=>{Ee();He();f5();MDe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),m5=(t,e={})=>MDe.get(t,()=>Ts(p5,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var sr,Qy=g(()=>{J();sr=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Of,$f,kf,Mf,Lf,Nf,Ff,Bf,Uf,Gf,qf,j$=g(()=>{Qy();Of=class t extends sr{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},$f=class t extends sr{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},kf=class t extends sr{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Mf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Lf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Ff=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Bf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Uf=class t extends sr{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},qf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var LDe,NDe,FDe,BDe,UDe,GDe,qDe,HDe,jDe,zDe,VDe,WDe,KDe,QDe,YDe,JDe,XDe,ZDe,eIe,tIe,Qs,rIe,nIe,oIe,sIe,iIe,St,aIe,Uo,cIe,uIe,Go,lIe,h5,S5,dIe,y5,pIe,fIe,mIe,Pt,E5,_5,to,R5,C5,b5,A5,x5,T5,v5,D5,I5,w5,P5,z$,gIe,hIe,SIe,yIe,O5,$5,k5,V$,Yy=g(()=>{ae();j$();Qy();LDe="AccessDeniedException",NDe="AuthorizationPendingException",FDe="AccessToken",BDe="ClientSecret",UDe="CreateToken",GDe="CreateTokenRequest",qDe="CreateTokenResponse",HDe="CodeVerifier",jDe="ExpiredTokenException",zDe="InvalidClientException",VDe="InvalidGrantException",WDe="InvalidRequestException",KDe="InternalServerException",QDe="InvalidScopeException",YDe="IdToken",JDe="RefreshToken",XDe="SlowDownException",ZDe="UnauthorizedClientException",eIe="UnsupportedGrantTypeException",tIe="accessToken",Qs="client",rIe="clientId",nIe="clientSecret",oIe="codeVerifier",sIe="code",iIe="deviceCode",St="error",aIe="expiresIn",Uo="error_description",cIe="grantType",uIe="http",Go="httpError",lIe="idToken",h5="reason",S5="refreshToken",dIe="redirectUri",y5="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",pIe="scope",fIe="server",mIe="tokenType",Pt="com.amazonaws.ssooidc",E5=new Fe(y5),_5=[-3,y5,"SSOOIDCServiceException",0,[],[]];E5.registerError(_5,sr);to=new Fe(Pt),R5=[-3,Pt,LDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];to.registerError(R5,Of);C5=[-3,Pt,NDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(C5,$f);b5=[-3,Pt,jDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(b5,kf);A5=[-3,Pt,KDe,{[St]:fIe,[Go]:500},[St,Uo],[0,0]];to.registerError(A5,Mf);x5=[-3,Pt,zDe,{[St]:Qs,[Go]:401},[St,Uo],[0,0]];to.registerError(x5,Lf);T5=[-3,Pt,VDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(T5,Nf);v5=[-3,Pt,WDe,{[St]:Qs,[Go]:400},[St,h5,Uo],[0,0,0]];to.registerError(v5,Ff);D5=[-3,Pt,QDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(D5,Bf);I5=[-3,Pt,XDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(I5,Uf);w5=[-3,Pt,ZDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(w5,Gf);P5=[-3,Pt,eIe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(P5,qf);z$=[E5,to],gIe=[0,Pt,FDe,8,0],hIe=[0,Pt,BDe,8,0],SIe=[0,Pt,HDe,8,0],yIe=[0,Pt,YDe,8,0],O5=[0,Pt,JDe,8,0],$5=[3,Pt,GDe,0,[rIe,nIe,cIe,iIe,sIe,S5,pIe,dIe,oIe],[0,[()=>hIe,0],0,0,0,[()=>O5,0],64,0,[()=>SIe,0]],3],k5=[3,Pt,qDe,0,[tIe,mIe,aIe,S5,lIe],[[()=>gIe,0],0,1,[()=>O5,0],[()=>yIe,0]]],V$=[9,Pt,UDe,{[uIe]:["POST","/token",200]},()=>$5,()=>k5]});var M5,L5=g(()=>{rr();Di();jt();On();J();V();j();n$();g5();Yy();M5=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??m5,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??d6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:z$,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var Jy,N5,F5=g(()=>{bf();Ee();rr();J();ye();en();j();Jy=De(zs());L5();N5=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=M5(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:Jy.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??Jy.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var B5,U5,G5=g(()=>{B5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},U5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var q5,H5=g(()=>{Ee();J();V();G5();q5=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),B5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),U5(r))}});var Hf,W$=g(()=>{Ee();jt();J();ye();He();V();en();ae();n$();o$();F5();H5();Hf=class extends Lr{config;constructor(...[e]){let r=N5(e||{});super(r),this.initConfig=r;let n=f6(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=p6(c),f=q5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:l6,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var j5,z5,V5,W5=g(()=>{J();He();o$();j5=gs(m6,"AWSSSOOIDCService","SSOOIDCClient",bi),z5={},V5=(t,e,r,n)=>[]});var jf,K$=g(()=>{W5();Yy();jf=class extends j5(z5,V5,"CreateToken",V$){}});var EIe,Xy,K5=g(()=>{J();K$();W$();EIe={CreateTokenCommand:jf},Xy=class extends Hf{};ds(EIe,Xy)});var Q5=g(()=>{K$()});var _Ie,RIe,Y5=g(()=>{_Ie={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},RIe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var J5=g(()=>{});var Q$={};Ct(Q$,{$Command:()=>Xr,AccessDeniedException:()=>Of,AccessDeniedException$:()=>R5,AccessDeniedExceptionReason:()=>_Ie,AuthorizationPendingException:()=>$f,AuthorizationPendingException$:()=>C5,CreateToken$:()=>V$,CreateTokenCommand:()=>jf,CreateTokenRequest$:()=>$5,CreateTokenResponse$:()=>k5,ExpiredTokenException:()=>kf,ExpiredTokenException$:()=>b5,InternalServerException:()=>Mf,InternalServerException$:()=>A5,InvalidClientException:()=>Lf,InvalidClientException$:()=>x5,InvalidGrantException:()=>Nf,InvalidGrantException$:()=>T5,InvalidRequestException:()=>Ff,InvalidRequestException$:()=>v5,InvalidRequestExceptionReason:()=>RIe,InvalidScopeException:()=>Bf,InvalidScopeException$:()=>D5,SSOOIDC:()=>Xy,SSOOIDCClient:()=>Hf,SSOOIDCServiceException:()=>sr,SSOOIDCServiceException$:()=>_5,SlowDownException:()=>Uf,SlowDownException$:()=>I5,UnauthorizedClientException:()=>Gf,UnauthorizedClientException$:()=>w5,UnsupportedGrantTypeException:()=>qf,UnsupportedGrantTypeException$:()=>P5,__Client:()=>Lr,errorTypeRegistries:()=>z$});var Y$=g(()=>{W$();K5();Q5();J();Yy();Y5();j$();J5();Qy()});var tz=st(zf=>{var{setTokenFeature:CIe}=(Ee(),F(kn)),{getBearerTokenEnvKey:bIe}=(rr(),F(Il)),{TokenProviderError:qo,getSSOTokenFilepath:AIe,parseKnownFiles:xIe,getProfileName:TIe,loadSsoSessionData:vIe,getSSOTokenFromFile:DIe,memoize:IIe,chain:wIe}=(ye(),F(Br)),{promises:PIe}=require("node:fs"),OIe=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new qo("Please pass 'signingName' to compute environment variable key",{logger:t});let r=bIe(e);if(!(r in process.env))throw new qo(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return CIe(n,"BEARER_SERVICE_ENV_VARS","3"),n},$Ie=300*1e3,J$="To refresh this SSO session run 'aws sso login' with the corresponding profile.",kIe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(Y$(),F(Q$)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},MIe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(Y$(),F(Q$));return(await kIe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},X5=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new qo(`Token is expired. ${J$}`,!1)},Bc=(t,e,r=!1)=>{if(typeof e>"u")throw new qo(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${J$}`,!1)},{writeFile:LIe}=PIe,NIe=(t,e)=>{let r=AIe(t),n=JSON.stringify(e,null,2);return LIe(r,n)},Z5=new Map,ez=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await xIe(t),n=TIe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new qo(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new qo(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await vIe(t))[s];if(!a)throw new qo(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new qo(`Sso session '${s}' is missing required property '${C}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await DIe(s)}catch{throw new qo(`The SSO session token associated with profile=${n} was not found or is invalid. ${J$}`,!1)}Bc("accessToken",u.accessToken),Bc("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>$Ie)return y;let _=Z5.get(s)??0;if(Date.now()-_<30*1e3)return X5(y),y;Bc("clientId",u.clientId,!0),Bc("clientSecret",u.clientSecret,!0),Bc("refreshToken",u.refreshToken,!0);try{Z5.set(s,Date.now());let C=await MIe(u,c,t,e);Bc("accessToken",C.accessToken),Bc("expiresIn",C.expiresIn);let A=new Date(Date.now()+C.expiresIn*1e3);try{await NIe(s,{...u,accessToken:C.accessToken,expiresAt:A.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:A}}catch{return X5(y),y}},FIe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new qo("Please pass a valid token to fromStatic",!1);return t},BIe=(t={})=>IIe(wIe(ez(t),async()=>{throw new qo("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);zf.fromEnvSigningName=OIe;zf.fromSso=ez;zf.fromStatic=FIe;zf.nodeProvider=BIe});function UIe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function GIe(t){return{schemeId:"smithy.api#noAuth"}}var rz,nz,oz,X$=g(()=>{rr();J();rz=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});nz=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(GIe(t)):e.push(UIe(t)),e},oz=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var sz,iz,Z$=g(()=>{sz=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),iz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Vf,Uc,Zy,az,dz,eE,ek,cz,tk,Jl,uz,lz,qIe,_n,HIe,pz,fz=g(()=>{He();Vf="ref",Uc=-1,Zy=!0,az="isSet",dz="PartitionResult",eE="booleanEquals",ek="getAttr",cz={[Vf]:"Endpoint"},tk={[Vf]:dz},Jl={},uz=[{[Vf]:"Region"}],lz={conditions:[[az,[cz]],[az,uz],["aws.partition",uz,dz],[eE,[{[Vf]:"UseFIPS"},Zy]],[eE,[{[Vf]:"UseDualStack"},Zy]],[eE,[{fn:ek,argv:[tk,"supportsDualStack"]},Zy]],[eE,[{fn:ek,argv:[tk,"supportsFIPS"]},Zy]],["stringEquals",[{fn:ek,argv:[tk,"name"]},"aws-us-gov"]]],results:[[Uc],[Uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[cz,Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Jl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"Invalid Configuration: Missing Region"]]},qIe=2,_n=1e8,HIe=new Int32Array([-1,1,-1,0,13,3,1,4,_n+12,2,5,_n+12,3,8,6,4,7,_n+11,5,_n+9,_n+10,4,11,9,6,10,_n+8,7,_n+6,_n+7,5,12,_n+5,6,_n+4,_n+5,3,_n+1,14,4,_n+2,_n+3]),pz=Wn.from(HIe,qIe,lz.conditions,lz.results)});var jIe,mz,gz=g(()=>{Ee();He();fz();jIe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),mz=(t,e={})=>jIe.get(t,()=>Ts(pz,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var Ho,tE=g(()=>{J();Ho=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Wf,Kf,Qf,Yf,rk=g(()=>{tE();Wf=class t extends Ho{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kf=class t extends Ho{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qf=class t extends Ho{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yf=class t extends Ho{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var zIe,VIe,WIe,KIe,QIe,YIe,JIe,XIe,ZIe,ewe,twe,rwe,nwe,owe,swe,rE,nE,iwe,awe,oE,cwe,hz,sE,uwe,lwe,dwe,Sz,pwe,fwe,mwe,ro,yz,Ez,Jf,_z,Rz,Cz,bz,nk,gwe,hwe,Swe,Az,xz,Tz,ok,iE=g(()=>{ae();rk();tE();zIe="AccessTokenType",VIe="GetRoleCredentials",WIe="GetRoleCredentialsRequest",KIe="GetRoleCredentialsResponse",QIe="InvalidRequestException",YIe="RoleCredentials",JIe="ResourceNotFoundException",XIe="SecretAccessKeyType",ZIe="SessionTokenType",ewe="TooManyRequestsException",twe="UnauthorizedException",rwe="accountId",nwe="accessKeyId",owe="accessToken",swe="account_id",rE="client",nE="error",iwe="expiration",awe="http",oE="httpError",cwe="httpHeader",hz="httpQuery",sE="message",uwe="roleCredentials",lwe="roleName",dwe="role_name",Sz="smithy.ts.sdk.synthetic.com.amazonaws.sso",pwe="secretAccessKey",fwe="sessionToken",mwe="x-amz-sso_bearer_token",ro="com.amazonaws.sso",yz=new Fe(Sz),Ez=[-3,Sz,"SSOServiceException",0,[],[]];yz.registerError(Ez,Ho);Jf=new Fe(ro),_z=[-3,ro,QIe,{[nE]:rE,[oE]:400},[sE],[0]];Jf.registerError(_z,Wf);Rz=[-3,ro,JIe,{[nE]:rE,[oE]:404},[sE],[0]];Jf.registerError(Rz,Kf);Cz=[-3,ro,ewe,{[nE]:rE,[oE]:429},[sE],[0]];Jf.registerError(Cz,Qf);bz=[-3,ro,twe,{[nE]:rE,[oE]:401},[sE],[0]];Jf.registerError(bz,Yf);nk=[yz,Jf],gwe=[0,ro,zIe,8,0],hwe=[0,ro,XIe,8,0],Swe=[0,ro,ZIe,8,0],Az=[3,ro,WIe,0,[lwe,rwe,owe],[[0,{[hz]:dwe}],[0,{[hz]:swe}],[()=>gwe,{[cwe]:mwe}]],3],xz=[3,ro,KIe,0,[uwe],[[()=>Tz,0]]],Tz=[3,ro,YIe,0,[nwe,pwe,fwe,iwe],[0,[()=>hwe,0],[()=>Swe,0],1]],ok=[9,ro,VIe,{[awe]:["GET","/federation/credentials",200]},()=>Az,()=>xz]});var vz,Dz=g(()=>{rr();Di();jt();On();J();V();j();X$();gz();iE();vz=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??nz,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:nk,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var aE,Iz,wz=g(()=>{bf();Ee();rr();J();ye();en();j();aE=De(zs());Dz();Iz=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=vz(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:aE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??aE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var Pz,Oz,$z=g(()=>{Pz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Oz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var kz,Mz=g(()=>{Ee();J();V();$z();kz=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),Pz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),Oz(r))}});var Xf,sk=g(()=>{Ee();jt();J();ye();He();V();en();ae();X$();Z$();wz();Mz();Xf=class extends Lr{config;constructor(...[e]){let r=Iz(e||{});super(r),this.initConfig=r;let n=sz(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=oz(c),f=kz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:rz,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var Lz,Nz,Fz,Bz=g(()=>{J();He();Z$();Lz=gs(iz,"SWBPortalService","SSOClient",bi),Nz={},Fz=(t,e,r,n)=>[]});var Zf,ik=g(()=>{Bz();iE();Zf=class extends Lz(Nz,Fz,"GetRoleCredentials",ok){}});var ywe,cE,Uz=g(()=>{J();ik();sk();ywe={GetRoleCredentialsCommand:Zf},cE=class extends Xf{};ds(ywe,cE)});var Gz=g(()=>{ik()});var qz=g(()=>{});var Hz={};Ct(Hz,{$Command:()=>Xr,GetRoleCredentials$:()=>ok,GetRoleCredentialsCommand:()=>Zf,GetRoleCredentialsRequest$:()=>Az,GetRoleCredentialsResponse$:()=>xz,InvalidRequestException:()=>Wf,InvalidRequestException$:()=>_z,ResourceNotFoundException:()=>Kf,ResourceNotFoundException$:()=>Rz,RoleCredentials$:()=>Tz,SSO:()=>cE,SSOClient:()=>Xf,SSOServiceException:()=>Ho,SSOServiceException$:()=>Ez,TooManyRequestsException:()=>Qf,TooManyRequestsException$:()=>Cz,UnauthorizedException:()=>Yf,UnauthorizedException$:()=>bz,__Client:()=>Lr,errorTypeRegistries:()=>nk});var jz=g(()=>{sk();Uz();Gz();J();iE();rk();qz();tE()});var zz=st(ak=>{var{GetRoleCredentialsCommand:Ewe,SSOClient:_we}=(jz(),F(Hz));ak.GetRoleCredentialsCommand=Ewe;ak.SSOClient=_we});var ck=st(uE=>{var{CredentialsProviderError:jo,getSSOTokenFromFile:Rwe,getProfileName:Cwe,parseKnownFiles:bwe,loadSsoSessionData:Awe}=(ye(),F(Br)),{setCredentialFeature:Vz}=(Ee(),F(kn)),{fromSso:xwe}=tz(),Kz=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),em=!1,Wz=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let C,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fn=await xwe({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});C={accessToken:fn.token,expiresAt:new Date(fn.expiration).toISOString()}}catch(fn){throw new jo(fn.message,{tryNextLink:em,logger:_})}else try{C=await Rwe(t)}catch{throw new jo(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:em,logger:_})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new jo(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:em,logger:_});let{accessToken:x}=C,{SSOClient:T,GetRoleCredentialsCommand:I}=zz(),q=s||new T(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),H;try{H=await q.send(new I({accountId:r,roleName:o,accessToken:x}))}catch(fn){throw new jo(fn,{tryNextLink:em,logger:_})}let{roleCredentials:{accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:tt,credentialScope:pt,accountId:Yr}={}}=H;if(!me||!et||!ot||!tt)throw new jo("SSO returns an invalid temporary credential.",{tryNextLink:em,logger:_});let Jr={accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:new Date(tt),...pt&&{credentialScope:pt},...Yr&&{accountId:Yr}};return e?Vz(Jr,"CREDENTIALS_SSO","s"):Vz(Jr,"CREDENTIALS_SSO_LEGACY","u"),Jr},Qz=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new jo(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
|
|
50
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},Twe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=Cwe({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await bwe(t))[c];if(!f)throw new jo(`Profile ${c} was not found.`,{logger:t.logger});if(!Kz(f))throw new jo(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let T=(await Awe(t))[f.sso_session],I=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==T.sso_region)throw new jo("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==T.sso_start_url)throw new jo("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});f.sso_region=T.sso_region,f.sso_start_url=T.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:C,sso_session:A}=Qz(f,t.logger);return Wz({ssoStartUrl:m,ssoSession:A,ssoAccountId:y,ssoRegion:_,ssoRoleName:C,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new jo('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return Wz({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};uE.fromSSO=Twe;uE.isSsoProfile=Kz;uE.validateSsoProfile=Qz});var rm=st(dE=>{var{SignatureV4:vwe,signatureV4aContainer:Yz}=BO(),tm={CrtSignerV4:null},uk="X-Amz-S3session-Token",Jz=uk.toLowerCase(),lE=class extends vwe{async signWithCredentials(e,r,n){let o=Xz(r);e.headers[Jz]=r.sessionToken;let s=this;return Zz(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=Xz(r);return delete e.headers[Jz],e.headers[uk]=r.sessionToken,e.query=e.query??{},e.query[uk]=r.sessionToken,Zz(this,o),this.presign(e,n)}};function Xz(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function Zz(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var lk=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tm.CrtSignerV4=="function"?"crt":typeof Yz.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new lE(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=tm.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=tm.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=tm.CrtSignerV4,r=Yz.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};dE.SignatureV4MultiRegion=lk;dE.SignatureV4SignWithCredentials=lE;dE.signatureV4CrtContainer=tm});var Zl,Gc,nm,eV,cV,om,Dr,dk,tV,rV,nV,oV,sV,Ir,pk,Xl,iV,aV,Dwe,Pe,Iwe,uV,lV=g(()=>{He();Zl="ref",Gc=-1,nm=!0,eV="isSet",cV="PartitionResult",om="booleanEquals",Dr="stringEquals",dk="getAttr",tV="us-east-1",rV="sigv4",nV="sts",oV="https://sts.{Region}.{PartitionResult#dnsSuffix}",sV={[Zl]:"Endpoint"},Ir={[Zl]:"Region"},pk={[Zl]:cV},Xl={},iV=[Ir],aV={conditions:[[eV,[sV]],[eV,iV],["aws.partition",iV,cV],[om,[{[Zl]:"UseFIPS"},nm]],[om,[{[Zl]:"UseDualStack"},nm]],[Dr,[Ir,"aws-global"]],[om,[{[Zl]:"UseGlobalEndpoint"},nm]],[Dr,[Ir,"eu-central-1"]],[om,[{fn:dk,argv:[pk,"supportsDualStack"]},nm]],[om,[{fn:dk,argv:[pk,"supportsFIPS"]},nm]],[Dr,[Ir,"ap-south-1"]],[Dr,[Ir,"eu-north-1"]],[Dr,[Ir,"eu-west-1"]],[Dr,[Ir,"eu-west-2"]],[Dr,[Ir,"eu-west-3"]],[Dr,[Ir,"sa-east-1"]],[Dr,[Ir,tV]],[Dr,[Ir,"us-east-2"]],[Dr,[Ir,"us-west-2"]],[Dr,[Ir,"us-west-1"]],[Dr,[Ir,"ca-central-1"]],[Dr,[Ir,"ap-southeast-1"]],[Dr,[Ir,"ap-northeast-1"]],[Dr,[Ir,"ap-southeast-2"]],[Dr,[{fn:dk,argv:[pk,"name"]},"aws-us-gov"]]],results:[[Gc],["https://sts.amazonaws.com",{authSchemes:[{name:rV,signingName:nV,signingRegion:tV}]}],[oV,{authSchemes:[{name:rV,signingName:nV,signingRegion:"{Region}"}]}],[Gc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Gc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[sV,Xl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Xl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Xl],[Gc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Xl],[Gc,"DualStack is enabled but this partition does not support DualStack"],[oV,Xl],[Gc,"Invalid Configuration: Missing Region"]]},Dwe=2,Pe=1e8,Iwe=new Int32Array([-1,1,-1,0,30,3,1,4,Pe+14,2,5,Pe+14,3,25,6,4,24,7,5,Pe+1,8,6,9,Pe+13,7,Pe+1,10,10,Pe+1,11,11,Pe+1,12,12,Pe+1,13,13,Pe+1,14,14,Pe+1,15,15,Pe+1,16,16,Pe+1,17,17,Pe+1,18,18,Pe+1,19,19,Pe+1,20,20,Pe+1,21,21,Pe+1,22,22,Pe+1,23,23,Pe+1,Pe+2,8,Pe+11,Pe+12,4,28,26,9,27,Pe+10,24,Pe+8,Pe+9,8,29,Pe+7,9,Pe+6,Pe+7,3,Pe+3,31,4,Pe+4,Pe+5]),uV=Wn.from(Iwe,Dwe,aV.conditions,aV.results)});var wwe,pE,fk=g(()=>{Ee();He();lV();wwe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),pE=(t,e={})=>wwe.get(t,()=>Ts(uV,{endpointParams:t,logger:e.logger}));hn.aws=Lo});function fV(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mk(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function mV(t){return{schemeId:"smithy.api#noAuth"}}var dV,Pwe,Owe,pV,$we,kwe,gV,hV,gk=g(()=>{rr();dV=De(rm());J();He();fk();Pwe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Le(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await Bp(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},Owe=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),pV=Pwe(Owe);$we=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(dV.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},kwe=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(mV(t)),e.push(mk(t))):(e.push(fV(t)),e.push(mk(t))),e},gV=$we(pE,kwe,{"aws.auth#sigv4":fV,"aws.auth#sigv4a":mk,"smithy.api#noAuth":mV}),hV=t=>{let e=js(t),r=gf(e);return Object.assign(r,{authSchemePreference:we(t.authSchemePreference??[])})}});var SV,yV,hk=g(()=>{SV=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),yV={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 Rn,fE=g(()=>{J();Rn=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var sm,im,am,cm,um,lm,dm,Sk=g(()=>{fE();sm=class t extends Rn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},im=class t extends Rn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},am=class t extends Rn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cm=class t extends Rn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},um=class t extends Rn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lm=class t extends Rn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var Mwe,Lwe,Nwe,Fwe,Bwe,Uwe,yk,Gwe,qwe,Hwe,jwe,Ek,zwe,EV,Vwe,Wwe,Kwe,Qwe,Ywe,Jwe,Xwe,Zwe,_V,RV,CV,ePe,tPe,rPe,nPe,oPe,sPe,bV,iPe,aPe,AV,cPe,xV,uPe,lPe,_k,dPe,pPe,TV,vV,fPe,mPe,gPe,hPe,SPe,yPe,EPe,_Pe,qc,Hc,RPe,jc,zc,Vc,CPe,DV,bPe,it,IV,wV,wa,PV,OV,$V,kV,MV,LV,NV,Rk,APe,xPe,Ck,FV,BV,UV,GV,bk,qV,HV,jV,zV,TPe,vPe,Ak,xk,pm=g(()=>{ae();Sk();fE();Mwe="Arn",Lwe="AccessKeyId",Nwe="AssumeRole",Fwe="AssumedRoleId",Bwe="AssumeRoleRequest",Uwe="AssumeRoleResponse",yk="AssumedRoleUser",Gwe="AssumeRoleWithWebIdentity",qwe="AssumeRoleWithWebIdentityRequest",Hwe="AssumeRoleWithWebIdentityResponse",jwe="Audience",Ek="Credentials",zwe="ContextAssertion",EV="DurationSeconds",Vwe="Expiration",Wwe="ExternalId",Kwe="ExpiredTokenException",Qwe="IDPCommunicationErrorException",Ywe="IDPRejectedClaimException",Jwe="InvalidIdentityTokenException",Xwe="Key",Zwe="MalformedPolicyDocumentException",_V="MinimumSessionTokenSize",RV="Policy",CV="PolicyArns",ePe="ProviderArn",tPe="ProvidedContexts",rPe="ProvidedContextsListType",nPe="ProvidedContext",oPe="PolicyDescriptorType",sPe="ProviderId",bV="PackedPolicySize",iPe="PackedPolicyTooLargeException",aPe="Provider",AV="RoleArn",cPe="RegionDisabledException",xV="RoleSessionName",uPe="SecretAccessKey",lPe="SubjectFromWebIdentityToken",_k="SourceIdentity",dPe="SerialNumber",pPe="SessionToken",TV="SessionTokenSize",vV="SessionTokenUtilization",fPe="Tags",mPe="TokenCode",gPe="TransitiveTagKeys",hPe="Tag",SPe="Value",yPe="WebIdentityToken",EPe="arn",_Pe="accessKeySecretType",qc="awsQueryError",Hc="client",RPe="clientTokenType",jc="error",zc="httpError",Vc="message",CPe="policyDescriptorListType",DV="smithy.ts.sdk.synthetic.com.amazonaws.sts",bPe="tagListType",it="com.amazonaws.sts",IV=new Fe(DV),wV=[-3,DV,"STSServiceException",0,[],[]];IV.registerError(wV,Rn);wa=new Fe(it),PV=[-3,it,Kwe,{[qc]:["ExpiredTokenException",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(PV,sm);OV=[-3,it,Qwe,{[qc]:["IDPCommunicationError",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(OV,dm);$V=[-3,it,Ywe,{[qc]:["IDPRejectedClaim",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError($V,um);kV=[-3,it,Jwe,{[qc]:["InvalidIdentityToken",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(kV,lm);MV=[-3,it,Zwe,{[qc]:["MalformedPolicyDocument",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(MV,im);LV=[-3,it,iPe,{[qc]:["PackedPolicyTooLarge",400],[jc]:Hc,[zc]:400},[Vc],[0]];wa.registerError(LV,am);NV=[-3,it,cPe,{[qc]:["RegionDisabledException",403],[jc]:Hc,[zc]:403},[Vc],[0]];wa.registerError(NV,cm);Rk=[IV,wa],APe=[0,it,_Pe,8,0],xPe=[0,it,RPe,8,0],Ck=[3,it,yk,0,[Fwe,Mwe],[0,0],2],FV=[3,it,Bwe,0,[AV,xV,CV,RV,EV,fPe,gPe,Wwe,dPe,mPe,_k,tPe,_V],[0,0,()=>zV,0,1,()=>vPe,64,0,0,0,0,()=>TPe,1],2],BV=[3,it,Uwe,0,[Ek,yk,bV,_k,vV,TV],[[()=>bk,0],()=>Ck,1,0,1,1]],UV=[3,it,qwe,0,[AV,xV,yPe,sPe,CV,RV,EV,_V],[0,0,[()=>xPe,0],0,()=>zV,0,1,1],3],GV=[3,it,Hwe,0,[Ek,lPe,yk,bV,aPe,jwe,_k,vV,TV],[[()=>bk,0],0,()=>Ck,1,0,0,0,1,1]],bk=[3,it,Ek,0,[Lwe,uPe,pPe,Vwe],[0,[()=>APe,0],0,4],4],qV=[3,it,oPe,0,[EPe],[0]],HV=[3,it,nPe,0,[ePe,zwe],[0,0]],jV=[3,it,hPe,0,[Xwe,SPe],[0,0],2],zV=[1,it,CPe,0,()=>qV],TPe=[1,it,rPe,0,()=>HV],vPe=[1,it,bPe,0,()=>jV],Ak=[9,it,Nwe,0,()=>FV,()=>BV],xk=[9,it,Gwe,0,()=>UV,()=>GV]});var VV,WV,KV=g(()=>{rr();Di();VV=De(rm());jt();On();J();V();j();gk();fk();pm();WV=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??pE,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??gV,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ia,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Rk,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Sn,signerConstructor:t?.signerConstructor??VV.SignatureV4MultiRegion,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var mE,QV,YV=g(()=>{bf();Ee();rr();jt();J();ye();en();j();mE=De(zs());KV();QV=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=WV(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:mE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ue(hf,o),streamCollector:t?.streamCollector??mE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var JV,XV,ZV=g(()=>{JV=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},XV=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var eW,tW=g(()=>{Ee();J();V();ZV();eW=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),JV(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),XV(r))}});var Pa,gE=g(()=>{Ee();jt();J();ye();He();V();en();ae();gk();hk();YV();tW();Pa=class extends Lr{config;constructor(...[e]){let r=QV(e||{});super(r),this.initConfig=r;let n=SV(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=hV(c),f=eW(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:pV,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var hE,SE,yE,Tk=g(()=>{J();He();hk();hE=gs(yV,"AWSSecurityTokenServiceV20110615","STSClient",bi),SE={},yE=(t,e,r,n)=>[]});var Wc,EE=g(()=>{Tk();pm();Wc=class extends hE(SE,yE,"AssumeRole",Ak){}});var Kc,_E=g(()=>{Tk();pm();Kc=class extends hE(SE,yE,"AssumeRoleWithWebIdentity",xk){}});var DPe,RE,rW=g(()=>{J();EE();_E();gE();DPe={AssumeRoleCommand:Wc,AssumeRoleWithWebIdentityCommand:Kc},RE=class extends Pa{};ds(DPe,RE)});var nW=g(()=>{EE();_E()});var oW=g(()=>{});var sW,iW,aW,cW,uW,lW=g(()=>{Ee();EE();_E();sW=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},iW=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await H0(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},aW=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:C,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,x=await iW(y,t?.parentClientConfig?.region,C,{logger:f,profile:m}),T=!uW(_);r=new e({...t,userAgentAppId:A,profile:m,credentialDefaultProvider:()=>async()=>n,region:x,requestHandler:T?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new Wc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=sW(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return Yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},cW=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,C=await iW(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),A=!uW(m);r=new e({...t,userAgentAppId:_,profile:u,region:C,requestHandler:A?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new Kc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=sW(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&Yi(a,"RESOLVED_ACCOUNT_ID","T"),Yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},uW=t=>t?.metadata?.handlerProtocol==="h2"});var dW,pW,fW,IPe,mW=g(()=>{lW();gE();dW=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,pW=(t={},e)=>aW(t,dW(Pa,e)),fW=(t={},e)=>cW(t,dW(Pa,e)),IPe=t=>e=>t({roleAssumer:pW(e),roleAssumerWithWebIdentity:fW(e),...e})});var vk={};Ct(vk,{$Command:()=>Xr,AssumeRole$:()=>Ak,AssumeRoleCommand:()=>Wc,AssumeRoleRequest$:()=>FV,AssumeRoleResponse$:()=>BV,AssumeRoleWithWebIdentity$:()=>xk,AssumeRoleWithWebIdentityCommand:()=>Kc,AssumeRoleWithWebIdentityRequest$:()=>UV,AssumeRoleWithWebIdentityResponse$:()=>GV,AssumedRoleUser$:()=>Ck,Credentials$:()=>bk,ExpiredTokenException:()=>sm,ExpiredTokenException$:()=>PV,IDPCommunicationErrorException:()=>dm,IDPCommunicationErrorException$:()=>OV,IDPRejectedClaimException:()=>um,IDPRejectedClaimException$:()=>$V,InvalidIdentityTokenException:()=>lm,InvalidIdentityTokenException$:()=>kV,MalformedPolicyDocumentException:()=>im,MalformedPolicyDocumentException$:()=>MV,PackedPolicyTooLargeException:()=>am,PackedPolicyTooLargeException$:()=>LV,PolicyDescriptorType$:()=>qV,ProvidedContext$:()=>HV,RegionDisabledException:()=>cm,RegionDisabledException$:()=>NV,STS:()=>RE,STSClient:()=>Pa,STSServiceException:()=>Rn,STSServiceException$:()=>wV,Tag$:()=>jV,__Client:()=>Lr,decorateDefaultCredentialProvider:()=>IPe,errorTypeRegistries:()=>Rk,getDefaultRoleAssumer:()=>pW,getDefaultRoleAssumerWithWebIdentity:()=>fW});var Dk=g(()=>{gE();rW();nW();J();pm();Sk();oW();mW();fE()});function wPe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function PPe(t){return{schemeId:"smithy.api#noAuth"}}var gW,hW,SW,Ik=g(()=>{rr();J();gW=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});hW=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(PPe(t)):e.push(wPe(t)),e},SW=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var yW,EW,wk=g(()=>{yW=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),EW={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ka,Oa,_W,ed,RW,td,CW,Ok,Ii,Pk,bW,AW,$a,DW,xW,CE,Gr,TW,vW,OPe,_e,$Pe,IW,wW=g(()=>{He();ka="ref",Oa=-1,_W=!1,ed=!0,RW="isSet",td="booleanEquals",CW="coalesce",Ok="PartitionResult",Ii="stringEquals",Pk="getAttr",bW="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",AW={[ka]:"Endpoint"},$a={fn:Pk,argv:[{[ka]:Ok},"name"]},DW={[ka]:"Region"},xW={[ka]:Ok},CE={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Gr={},TW=[DW],vW={conditions:[[RW,TW],[td,[{fn:CW,argv:[{[ka]:"IsControlPlane"},_W]},ed]],[RW,[AW]],["aws.partition",TW,Ok],[td,[{[ka]:"UseFIPS"},ed]],[Ii,[$a,"aws"]],[td,[{fn:CW,argv:[{[ka]:"IsOAuthEndpoint"},_W]},ed]],[td,[{[ka]:"UseDualStack"},ed]],[Ii,[$a,"aws-cn"]],[Ii,[DW,"us-gov-west-1"]],[Ii,[$a,"aws-us-gov"]],[td,[{fn:Pk,argv:[xW,"supportsFIPS"]},ed]],[Ii,[$a,"aws-iso"]],[Ii,[$a,"aws-iso-b"]],[Ii,[$a,"aws-iso-f"]],[Ii,[$a,"aws-iso-e"]],[Ii,[$a,"aws-eusc"]],[td,[{fn:Pk,argv:[xW,"supportsDualStack"]},ed]]],results:[[Oa],["https://signin.{Region}.api.aws",CE],["https://signin.{Region}.api.amazonwebservices.com.cn",CE],[bW,CE],[Oa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",CE],["https://{Region}.signin.aws.amazon.com",Gr],["https://{Region}.signin.amazonaws.cn",Gr],["https://{Region}.signin.amazonaws-us-gov.com",Gr],["https://{Region}.signin.c2shome.ic.gov",Gr],["https://{Region}.signin.sc2shome.sgov.gov",Gr],["https://{Region}.signin.csphome.hci.ic.gov",Gr],["https://{Region}.signin.csphome.adc-e.uk",Gr],["https://{Region}.signin.amazonaws-eusc.eu",Gr],["https://signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Oa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[AW,Gr],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gr],[Oa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"FIPS is enabled but this partition does not support FIPS"],[bW,Gr],[Oa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: Missing Region"]]},OPe=2,_e=1e8,$Pe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,_e+27,6,_e+4,_e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,_e+7,13,10,_e+8,14,12,_e+9,15,13,_e+10,16,14,_e+11,17,15,_e+12,18,16,_e+13,_e+16,6,_e+5,20,7,21,_e+6,17,_e+24,_e+25,6,_e+4,23,7,27,24,9,_e+14,25,10,_e+15,26,11,_e+22,_e+23,11,28,_e+21,17,_e+20,_e+21,2,35,30,3,39,31,4,32,_e+27,6,_e+4,33,7,_e+27,34,9,_e+14,_e+27,3,39,36,4,38,37,7,_e+18,_e+19,6,_e+4,_e+17,5,_e+1,40,8,_e+2,_e+3]),IW=Wn.from($Pe,OPe,vW.conditions,vW.results)});var kPe,PW,OW=g(()=>{Ee();He();wW();kPe=new Kn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),PW=(t,e={})=>kPe.get(t,()=>Ts(IW,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var zo,bE=g(()=>{J();zo=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var fm,mm,gm,hm,$k=g(()=>{bE();fm=class t extends zo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},mm=class t extends zo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},gm=class t extends zo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},hm=class t extends zo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var MPe,LPe,NPe,FPe,BPe,UPe,GPe,qPe,HPe,jPe,zPe,VPe,WPe,KPe,QPe,$W,kk,YPe,Fk,kW,MW,JPe,Ma,Mk,XPe,Lk,ZPe,UW,Bk,LW,wr,xE,eOe,AE,NW,GW,FW,BW,tOe,rOe,nOe,Nk,oOe,qr,qW,HW,Sm,jW,zW,VW,WW,Uk,sOe,KW,QW,YW,JW,XW,ZW,e8,t8,Gk,qk,ym=g(()=>{ae();$k();bE();MPe="AccessDeniedException",LPe="AccessToken",NPe="CreateOAuth2Token",FPe="CreateOAuth2TokenRequest",BPe="CreateOAuth2TokenRequestBody",UPe="CreateOAuth2TokenResponseBody",GPe="CreateOAuth2TokenResponse",qPe="CreateOAuth2TokenWithIAM",HPe="CreateOAuth2TokenWithIAMRequest",jPe="CreateOAuth2TokenWithIAMResponse",zPe="InternalServerException",VPe="OAuthAccessToken",WPe="RefreshToken",KPe="TooManyRequestsError",QPe="ValidationException",$W="accessKeyId",kk="accessToken",YPe="access_token",Fk="client",kW="clientId",MW="codeVerifier",JPe="code",Ma="error",Mk="expiresIn",XPe="expires_in",Lk="grantType",ZPe="grant_type",UW="http",Bk="httpError",LW="idToken",wr="jsonName",xE="message",eOe="resource",AE="refreshToken",NW="redirectUri",GW="smithy.ts.sdk.synthetic.com.amazonaws.signin",FW="secretAccessKey",BW="sessionToken",tOe="server",rOe="tokenInput",nOe="tokenOutput",Nk="tokenType",oOe="token_type",qr="com.amazonaws.signin",qW=new Fe(GW),HW=[-3,GW,"SigninServiceException",0,[],[]];qW.registerError(HW,zo);Sm=new Fe(qr),jW=[-3,qr,MPe,{[Ma]:Fk},[Ma,xE],[0,0],2];Sm.registerError(jW,fm);zW=[-3,qr,zPe,{[Ma]:tOe,[Bk]:500},[Ma,xE],[0,0],2];Sm.registerError(zW,mm);VW=[-3,qr,KPe,{[Ma]:Fk,[Bk]:429},[Ma,xE],[0,0],2];Sm.registerError(VW,gm);WW=[-3,qr,QPe,{[Ma]:Fk,[Bk]:400},[Ma,xE],[0,0],2];Sm.registerError(WW,hm);Uk=[qW,Sm],sOe=[0,qr,VPe,8,0],KW=[0,qr,WPe,8,0],QW=[3,qr,LPe,8,[$W,FW,BW],[[0,{[wr]:$W}],[0,{[wr]:FW}],[0,{[wr]:BW}]],3],YW=[3,qr,FPe,0,[rOe],[[()=>JW,16]],1],JW=[3,qr,BPe,0,[kW,Lk,JPe,NW,MW,AE],[[0,{[wr]:kW}],[0,{[wr]:Lk}],0,[0,{[wr]:NW}],[0,{[wr]:MW}],[()=>KW,{[wr]:AE}]],2],XW=[3,qr,GPe,0,[nOe],[[()=>ZW,16]],1],ZW=[3,qr,UPe,0,[kk,Nk,Mk,AE,LW],[[()=>QW,{[wr]:kk}],[0,{[wr]:Nk}],[1,{[wr]:Mk}],[()=>KW,{[wr]:AE}],[0,{[wr]:LW}]],4],e8=[3,qr,HPe,0,[Lk,eOe],[[0,{[wr]:ZPe}],0],2],t8=[3,qr,jPe,0,[kk,Nk,Mk],[[()=>sOe,{[wr]:YPe}],[0,{[wr]:oOe}],[1,{[wr]:XPe}]],3],Gk=[9,qr,NPe,{[UW]:["POST","/v1/token",200]},()=>YW,()=>XW],qk=[9,qr,qPe,{[UW]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>e8,()=>t8]});var r8,n8=g(()=>{rr();Di();jt();On();J();V();j();Ik();OW();ym();r8=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??Ie,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??PW,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??hW,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Uk,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var TE,o8,s8=g(()=>{bf();Ee();rr();J();ye();en();j();TE=De(zs());n8();o8=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=r8(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:TE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??TE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var i8,a8,c8=g(()=>{i8=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},a8=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var u8,l8=g(()=>{Ee();J();V();c8();u8=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),i8(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),a8(r))}});var Em,Hk=g(()=>{Ee();jt();J();ye();He();V();en();ae();Ik();wk();s8();l8();Em=class extends Lr{config;constructor(...[e]){let r=o8(e||{});super(r),this.initConfig=r;let n=yW(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=SW(c),f=u8(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:gW,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var vE,d8,p8,DE,jk=g(()=>{J();He();wk();vE=gs(EW,"Signin","SigninClient",bi),d8={IsControlPlane:{type:"staticContextParams",value:!1}},p8={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},DE=(t,e,r,n)=>[]});var _m,zk=g(()=>{jk();ym();_m=class extends vE(d8,DE,"CreateOAuth2Token",Gk){}});var Rm,Vk=g(()=>{jk();ym();Rm=class extends vE(p8,DE,"CreateOAuth2TokenWithIAM",qk){}});var iOe,IE,f8=g(()=>{J();zk();Vk();Hk();iOe={CreateOAuth2TokenCommand:_m,CreateOAuth2TokenWithIAMCommand:Rm},IE=class extends Em{};ds(iOe,IE)});var m8=g(()=>{zk();Vk()});var aOe,g8=g(()=>{aOe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var h8=g(()=>{});var S8={};Ct(S8,{$Command:()=>Xr,AccessDeniedException:()=>fm,AccessDeniedException$:()=>jW,AccessToken$:()=>QW,CreateOAuth2Token$:()=>Gk,CreateOAuth2TokenCommand:()=>_m,CreateOAuth2TokenRequest$:()=>YW,CreateOAuth2TokenRequestBody$:()=>JW,CreateOAuth2TokenResponse$:()=>XW,CreateOAuth2TokenResponseBody$:()=>ZW,CreateOAuth2TokenWithIAM$:()=>qk,CreateOAuth2TokenWithIAMCommand:()=>Rm,CreateOAuth2TokenWithIAMRequest$:()=>e8,CreateOAuth2TokenWithIAMResponse$:()=>t8,InternalServerException:()=>mm,InternalServerException$:()=>zW,OAuth2ErrorCode:()=>aOe,Signin:()=>IE,SigninClient:()=>Em,SigninServiceException:()=>zo,SigninServiceException$:()=>HW,TooManyRequestsError:()=>gm,TooManyRequestsError$:()=>VW,ValidationException:()=>hm,ValidationException$:()=>WW,__Client:()=>Lr,errorTypeRegistries:()=>Uk});var y8=g(()=>{Hk();f8();m8();J();ym();g8();$k();h8();bE()});var R8=st(_8=>{var{setCredentialFeature:cOe}=(Ee(),F(kn)),{CredentialsProviderError:La,parseKnownFiles:uOe,getProfileName:lOe}=(ye(),F(Br)),{HttpRequest:dOe}=(V(),F(wo)),{createHash:pOe,createPrivateKey:fOe,createPublicKey:mOe,sign:gOe}=require("node:crypto"),{promises:Wk}=require("node:fs"),{homedir:hOe}=require("node:os"),{dirname:SOe,join:E8}=require("node:path"),Kk=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new La(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(y8(),F(S8)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(T=>T?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,C=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:C,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let x={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let T=await A.send(new u(x)),{accessKeyId:I,secretAccessKey:q,sessionToken:H}=T.tokenOutput?.accessToken??{},{refreshToken:me,expiresIn:et}=T.tokenOutput??{};if(!I||!q||!H||!me)throw new La("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let ot=(et??900)*1e3,tt=new Date(Date.now()+ot),pt={...i,accessToken:{...i.accessToken,accessKeyId:I,secretAccessKey:q,sessionToken:H,expiresAt:tt.toISOString()},refreshToken:me};return await this.saveToken(pt),this.toCredentials(pt.accessToken)}catch(T){if(T.name==="AccessDeniedException"){let q=T.error,H;switch(q){case"TOKEN_EXPIRED":H="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":H="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":H="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:H=`Failed to refresh token: ${String(T)}. Please re-authenticate using \`aws login\``}throw new La(H,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(T)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new La(`Failed to refresh token: ${String(T)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Wk.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new La(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new La(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=SOe(r);try{await Wk.mkdir(n,{recursive:!0})}catch{}await Wk.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??E8(hOe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=pOe("sha256").update(r).digest("hex");return E8(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(dOe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=fOe({key:n.dpopKey,format:"pem",type:"sec1"}),i=mOe(o).export({format:"der",type:"spki"}),a=-1;for(let I=0;I<i.length;I++)if(i[I]===4){a=I;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),C=`${y}.${_}`,A=gOe("sha256",Buffer.from(C),o),T=this.derToRawSignature(A).toString("base64url");return`${C}.${T}`}catch(o){throw new La(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},yOe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await uOe(t||{}),n=lOe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new La(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new Kk(o,t,e).loadCredentials();return cOe(i,"CREDENTIALS_LOGIN","AD")};_8.fromLoginCredentials=yOe});var Yk=st(C8=>{var{externalDataInterceptor:EOe,CredentialsProviderError:Qk,parseKnownFiles:_Oe,getProfileName:ROe}=(ye(),F(Br)),{exec:COe}=require("node:child_process"),{promisify:bOe}=require("node:util"),{setCredentialFeature:AOe}=(Ee(),F(kn)),xOe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return AOe(o,"CREDENTIALS_PROCESS","w"),o},TOe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=bOe(EOe?.getTokenRecord?.().exec??COe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return xOe(t,a,e)}catch(i){throw new Qk(i.message,{logger:r})}}else throw new Qk(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Qk(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},vOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await _Oe(t);return TOe(ROe({profile:t.profile??e?.profile}),r,t.logger)};C8.fromProcess=vOe});var Xk=st(Jk=>{var{setCredentialFeature:DOe}=(Ee(),F(kn)),{CredentialsProviderError:IOe,externalDataInterceptor:wOe}=(ye(),F(Br)),{readFileSync:POe}=require("node:fs"),A8=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(Dk(),F(vk));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},b8="AWS_WEB_IDENTITY_TOKEN_FILE",OOe="AWS_ROLE_ARN",$Oe="AWS_ROLE_SESSION_NAME",kOe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[b8],n=t?.roleArn??process.env[OOe],o=t?.roleSessionName??process.env[$Oe];if(!r||!n)throw new IOe("Web identity configuration not specified",{logger:t.logger});let s=await A8({...t,webIdentityToken:wOe?.getTokenRecord?.()[r]??POe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[b8]&&DOe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};Jk.fromTokenFile=kOe;Jk.fromWebToken=A8});var P8=st(w8=>{var{CredentialsProviderError:wE,chain:MOe,getProfileName:D8,parseKnownFiles:LOe}=(ye(),F(Br)),{setCredentialFeature:wi}=(Ee(),F(kn)),NOe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=r$(),{fromContainerMetadata:i}=ny();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>MOe(s(o??{}),i(o))().then(Zk)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=ny();return async()=>s(o)().then(Zk)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=HO();return async()=>s(o)().then(Zk)}};if(t in n)return n[t];throw new wE(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},Zk=t=>wi(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),FOe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(BOe(t,{profile:e,logger:r})||UOe(t,{profile:e,logger:r})),BOe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},UOe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},GOe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(Dk(),F(vk));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new wE(`Detected a cycle attempting to resolve credentials for profile ${D8(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},x8(e[a]??{})):(await NOe(i.credential_source,t,r.logger)(r))();if(x8(i))return u.then(f=>wi(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new wE(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>wi(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},x8=t=>!t.role_arn&&!!t.credential_source,qOe=t=>!!(t&&t.login_session),HOe=async(t,e,r)=>{let{fromLoginCredentials:n}=R8(),o=await n({...e,profile:t})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_LOGIN","AC")},jOe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",zOe=async(t,e)=>{let{fromProcess:r}=Yk(),n=await r({...t,profile:e})();return wi(n,"CREDENTIALS_PROFILE_PROCESS","v")},VOe=async(t,e,r={},n)=>{let{fromSSO:o}=ck();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?wi(s,"CREDENTIALS_PROFILE_SSO","r"):wi(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},WOe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),T8=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,v8=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return wi(r,"CREDENTIALS_PROFILE","n")},KOe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,QOe=async(t,e,r)=>{let{fromTokenFile:n}=Xk(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},I8=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&T8(i))return v8(i,r);if(s||FOe(i,{profile:t,logger:r.logger}))return GOe(t,e,r,n,o,I8);if(T8(i))return v8(i,r);if(KOe(i))return QOe(i,r,n);if(jOe(i))return zOe(r,t);if(WOe(i))return await VOe(t,i,r,n);if(qOe(i))return HOe(t,r,n);throw new wE(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},YOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await LOe(t);return I8(D8({profile:t.profile??e?.profile}),r,t,e)};w8.fromIni=YOe});var Cm=st(OE=>{var{ENV_KEY:JOe,ENV_SECRET:XOe,fromEnv:ZOe}=HO(),{chain:e$e,CredentialsProviderError:PE,ENV_PROFILE:t$e}=(ye(),F(Br)),O8="AWS_EC2_METADATA_DISABLED",r$e=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=ny();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=r$();return e$e(s(t),n(t))}return process.env[O8]&&process.env[O8]!=="false"?async()=>{throw new PE("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function n$e(t,e){let r=o$e(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var o$e=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},$8=!1,s$e=(t={})=>n$e([async()=>{if(t.profile??process.env[t$e])throw process.env[JOe]&&process.env[XOe]&&($8||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
51
51
|
Multiple credential sources detected:
|
|
52
52
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
53
53
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -55,5 +55,5 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
55
55
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
56
56
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
57
57
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
58
|
-
`),I8=!0)),new wE("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),GOe(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new wE("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=ok();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=v8();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Vk();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Kk();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await jOe(t))()),async()=>{throw new wE("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],w8),KOe=t=>t?.expiration!==void 0,w8=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;PE.credentialsTreatedAsExpired=w8;PE.credentialsWillNeedRefresh=KOe;PE.defaultProvider=WOe});var bJ=st(R=>{var{awsEndpointFunctions:QOe,emitWarningIfUnsupportedVersion:YOe,createDefaultUserAgentProvider:JOe,NODE_APP_ID_CONFIG_OPTIONS:XOe,getAwsRegionExtensionConfiguration:ZOe,resolveAwsRegionExtensionConfiguration:e$e,resolveUserAgentConfig:t$e,resolveHostHeaderConfig:r$e,getUserAgentPlugin:n$e,getHostHeaderPlugin:o$e,getLoggerPlugin:s$e,getRecursionDetectionPlugin:i$e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:a$e,DefaultIdentityProviderConfig:c$e,getHttpSigningPlugin:u$e,createPaginator:Js}=(jt(),F(Al)),{normalizeProvider:M8,getSmithyContext:l$e,ServiceException:d$e,NoOpLogger:p$e,emitWarningIfUnsupportedVersion:f$e,loadConfigsForDefaultMode:m$e,getDefaultExtensionConfiguration:g$e,resolveDefaultRuntimeConfig:h$e,Client:L8,makeBuilder:S$e,createWaiter:Fa,checkExceptions:z_,WaiterState:Oi,createAggregatedClient:y$e}=(J(),F(bo)),{Command:E$e}=(J(),F(bo));R.$Command=E$e;R.__Client=L8;var{resolveDefaultsModeConfig:_$e,loadConfig:Pi,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:R$e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:C$e,NODE_REGION_CONFIG_OPTIONS:b$e,NODE_REGION_CONFIG_FILE_OPTIONS:A$e,resolveRegionConfig:x$e}=(ye(),F(Br)),{BinaryDecisionDiagram:T$e,EndpointCache:v$e,decideEndpoint:D$e,customEndpointFunctions:I$e,resolveEndpointConfig:w$e,getEndpointPlugin:P$e}=(He(),F(Hp)),{parseUrl:O$e,getHttpHandlerExtensionConfiguration:$$e,resolveHttpHandlerRuntimeConfig:k$e,getContentLengthPlugin:M$e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:L$e,NODE_RETRY_MODE_CONFIG_OPTIONS:N$e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:F$e,resolveRetryConfig:B$e,getRetryPlugin:U$e}=(en(),F(rf)),{TypeRegistry:N8,getSchemaSerdePlugin:G$e}=(ae(),F(vp)),{NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS:q$e,NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS:H$e,resolveCompressionConfig:j$e,getCompressionPlugin:z$e}=VH(),{resolveAwsSdkSigV4Config:V$e,AwsSdkSigV4Signer:W$e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:K$e}=(rr(),F(Dl)),{defaultProvider:Q$e}=Rm(),{toUtf8:Y$e,fromUtf8:J$e,toBase64:X$e,fromBase64:Z$e,calculateBodyLength:eke}=(j(),F(To)),{streamCollector:tke,NodeHttpHandler:rke}=zs(),{AwsJson1_0Protocol:nke}=(Di(),F(zy)),{Sha256:oke}=(On(),F(zp)),ske=async(t,e,r)=>({operation:l$e(e).operation,region:await M8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ike(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var ake=t=>{let e=[];switch(t.operation){default:e.push(ike(t))}return e},cke=t=>{let e=V$e(t);return Object.assign(e,{authSchemePreference:M8(t.authSchemePreference??[])})},uke=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),lke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},dke="3.1151.0",pke={version:dke},bm="ref",Kc=-1,OE=!0,P8="isSet",F8="PartitionResult",$E="booleanEquals",Yk="getAttr",O8={[bm]:"Endpoint"},Jk={[bm]:F8},Cm={},$8=[{[bm]:"Region"}],k8={conditions:[[P8,[O8]],[P8,$8],["aws.partition",$8,F8],[$E,[{[bm]:"UseFIPS"},OE]],[$E,[{[bm]:"UseDualStack"},OE]],["stringEquals",[{fn:Yk,argv:[Jk,"name"]},"aws-us-gov"]],[$E,[{fn:Yk,argv:[Jk,"supportsFIPS"]},OE]],[$E,[{fn:Yk,argv:[Jk,"supportsDualStack"]},OE]]],results:[[Kc],[Kc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Kc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[O8,Cm],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",Cm],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",Cm],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Cm],[Kc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",Cm],[Kc,"FIPS is enabled but this partition does not support FIPS"],[Kc,"DualStack is enabled but this partition does not support DualStack"],[Kc,"Invalid Configuration: Missing Region"]]},fke=2,rn=1e8,mke=new Int32Array([-1,1,-1,0,14,3,1,4,rn+11,2,5,rn+11,3,8,6,4,7,rn+4,7,rn+5,rn+10,4,11,9,5,rn+4,10,6,rn+8,rn+9,5,rn+5,12,6,13,rn+7,7,rn+6,rn+7,3,rn+1,15,4,rn+2,rn+3]),gke=T$e.from(mke,fke,k8.conditions,k8.results),hke=new v$e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ske=(t,e={})=>hke.get(t,()=>D$e(gke,{endpointParams:t,logger:e.logger}));I$e.aws=QOe;var ut=class t extends d$e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch#CloudWatchServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},kE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConflictException";name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},ME=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsAccessDeniedException";name="KmsAccessDeniedException";$fault="client";Message;constructor(e){super({name:"KmsAccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},LE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyDisabledException";name="KmsKeyDisabledException";$fault="client";Message;constructor(e){super({name:"KmsKeyDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},NE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyNotFoundException";name="KmsKeyNotFoundException";$fault="client";Message;constructor(e){super({name:"KmsKeyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},FE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}},BE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConcurrentModificationException";name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},UE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardInvalidInputError";name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}},GE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardNotFoundError";name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceConflict";name="ResourceConflict";$fault="client";constructor(e){super({name:"ResourceConflict",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFound";name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InternalServiceFault";name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},zE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterCombinationException";name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},VE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#MissingRequiredParameterException";name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidNextToken";name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededException";name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},YE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededFault";name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidFormatFault";name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},B8="Average",td="AlarmActions",yke="ApproximateAggregateValue",Xk="AlarmArn",Eke="AlarmContributor",_ke="AlarmContributorAttributes",U8="AlarmContributorId",Zk="AlarmConfigurationUpdatedTimestamp",G8="AlarmContributors",Rke="AnomalyDetector",Cke="AnomalyDetectorConfiguration",bke="AnomalyDetectorExcludedTimeRanges",e1="AnomalyDetectorId",Ake="AnomalyDetectorIds",xke="AssociateDatasetKmsKey",Tke="AssociateDatasetKmsKeyInput",vke="AssociateDatasetKmsKeyOutput",Dke="AnomalyDetectorTypes",rd="AlarmDescription",q8="AnomalyDetectors",nd="ActionsEnabled",Ike="AggregationExpression",wke="AlarmHistoryItem",H8="AlarmHistoryItems",j8="AccountId",z8="ActionLogLineCount",V8="ActionLogLineRoleArn",W8="AlarmMuteRuleArn",K8="AlarmMuteRuleName",Pke="AlarmMuteRuleSummary",Q8="AlarmMuteRuleSummaries",Vo="AlarmName",Oke="AlarmNamePrefix",km="AlarmNames",Y8="ApplyOnTransformedLogs",$ke="ActionPrefix",kke="AlarmPromQLCriteria",J8="AlarmRule",X8="ActionsSuppressor",Mke="ActionsSuppressedBy",Z8="ActionsSuppressorExtensionPeriod",Lke="ActionsSuppressedReason",e9="ActionsSuppressorWaitPeriod",Nke="AdditionalStatistics",Fke="AggregationStatistic",Bke="AlarmType",t9="AlarmTypes",Uke="ApproximateUniqueCount",Gke="AggregateValue",qke="ApproximateValue",V_="Arn",Hke="Attributes",jke="BatchFailures",r9="Configuration",zke="ContributorAttributes",Vke="CompositeAlarm",n9="CompositeAlarms",W_="CreatedAt",o9="CreationDate",Wke="ConflictException",Kke="ContributorId",Qke="ConcurrentModificationException",K_="ComparisonOperator",Yke="ChildrenOfAlarmName",Jke="CreateResourceMetricsConfiguration",Xke="CreateResourceMetricsConfigurationInput",Zke="CreateResourceMetricsConfigurationOutput",e1e="Contributors",t1e="Code",r1e="Counts",Nn="Dimensions",s9="DashboardArn",n1e="DisableAlarmActions",o1e="DisableAlarmActionsInput",s1e="DescribeAlarmContributors",i1e="DescribeAlarmContributorsInput",a1e="DescribeAlarmContributorsOutput",c1e="DeleteAnomalyDetector",u1e="DeleteAnomalyDetectorInput",l1e="DescribeAnomalyDetectorsInput",d1e="DeleteAnomalyDetectorOutput",p1e="DescribeAnomalyDetectorsOutput",f1e="DescribeAnomalyDetectors",m1e="DescribeAlarmsForMetric",g1e="DescribeAlarmsForMetricInput",h1e="DescribeAlarmsForMetricOutput",S1e="DescribeAlarmHistory",y1e="DescribeAlarmHistoryInput",E1e="DescribeAlarmHistoryOutput",_1e="DeleteAlarmsInput",R1e="DescribeAlarmsInput",C1e="DeleteAlarmMuteRule",b1e="DeleteAlarmMuteRuleInput",A1e="DescribeAlarmsOutput",x1e="DeleteAlarms",T1e="DescribeAlarms",i9="DashboardBody",v1e="DeleteDashboards",D1e="DeleteDashboardsInput",I1e="DisassociateDatasetKmsKey",w1e="DisassociateDatasetKmsKeyInput",P1e="DisassociateDatasetKmsKeyOutput",O1e="DeleteDashboardsOutput",$1e="DashboardEntry",a9="DashboardEntries",k1e="DimensionFilter",M1e="DimensionFilters",t1="DatasetIdentifier",L1e="DashboardInvalidInputError",N1e="DeleteInsightRules",F1e="DeleteInsightRulesInput",B1e="DescribeInsightRulesInput",U1e="DisableInsightRulesInput",G1e="DeleteInsightRulesOutput",q1e="DescribeInsightRulesOutput",H1e="DisableInsightRulesOutput",j1e="DescribeInsightRules",z1e="DisableInsightRules",V1e="DatasetId",W1e="DeleteMetricStream",K1e="DeleteMetricStreamInput",Q1e="DeleteMetricStreamOutput",Q_="DashboardName",Y1e="DashboardNotFoundError",J1e="DashboardNamePrefix",X1e="DashboardNames",Z1e="DataPath",eMe="DeleteResourceMetricsConfiguration",tMe="DeleteResourceMetricsConfigurationInput",rMe="DeleteResourceMetricsConfigurationOutput",c9="DatapointsToAlarm",nMe="DashboardValidationMessage",u9="DashboardValidationMessages",oMe="Datapoint",r1="Datapoints",l9="Description",sMe="Definition",iMe="Dimension",aMe="Duration",d9="Entity",cMe="EnableAlarmActions",uMe="EnableAlarmActionsInput",n1="EvaluationCriteria",o1="ExpireDate",lMe="EndDate",Qc="ExcludeFilters",p9="EvaluationInterval",dMe="EnableInsightRules",pMe="EnableInsightRulesInput",fMe="EnableInsightRulesOutput",f9="EvaluateLowSampleCountPercentile",m9="EntityMetricData",mMe="EntityMetricDataList",g9="EvaluationPeriods",h9="ExtendedStatistics",S9="EvaluationState",s1="ExtendedStatistic",Y_="EndTime",gMe="EndTimeOffset",hMe="ExcludedTimeRanges",SMe="ExceptionType",i1="EvaluationWindow",yMe="Entries",y9="Expression",J_="Failures",a1="FirehoseArn",EMe="FailureCode",_Me="FailureDescription",RMe="FailureResource",CMe="GetAlarmMuteRule",bMe="GetAlarmMuteRuleInput",AMe="GetAlarmMuteRuleOutput",xMe="GetDashboard",TMe="GetDashboardInput",vMe="GetDatasetInput",DMe="GetDashboardOutput",IMe="GetDatasetOutput",wMe="GetDataset",PMe="GetInsightRuleReport",OMe="GetInsightRuleReportInput",$Me="GetInsightRuleReportOutput",kMe="GetMetricData",MMe="GetMetricDataInput",LMe="GetMetricDataOutput",NMe="GetMetricStatistics",FMe="GetMetricStatisticsInput",BMe="GetMetricStreamInput",UMe="GetMetricStatisticsOutput",GMe="GetMetricStreamOutput",qMe="GetMetricStream",HMe="GetMetricWidgetImage",jMe="GetMetricWidgetImageInput",zMe="GetMetricWidgetImageOutput",VMe="GetOTelEnrichment",WMe="GetOTelEnrichmentInput",KMe="GetOTelEnrichmentOutput",QMe="GetResourceMetricsConfiguration",YMe="GetResourceMetricsConfigurationInput",JMe="GetResourceMetricsConfigurationOutput",XMe="HistoryData",E9="HistoryItemType",ZMe="HistorySummary",_9="Id",od="InsufficientDataActions",Yc="IncludeFilters",eLe="InvalidFormatFault",tLe="IncludeLinkedAccounts",R9="IncludeLinkedAccountsMetrics",C9="IncludeMetrics",rLe="InvalidNextToken",nLe="InvalidParameterCombinationException",oLe="InvalidParameterValueException",b9="InsightRules",sLe="InsightRuleContributor",iLe="InsightRuleContributorDatapoint",aLe="InsightRuleContributorDatapoints",cLe="InsightRuleContributors",uLe="InsightRuleMetricDatapoint",lLe="InsightRuleMetricDatapoints",dLe="InsightRule",pLe="InternalServiceFault",fLe="Keys",mLe="KeyAttributes",gLe="KmsAccessDeniedException",A9="KmsKeyArn",hLe="KmsKeyDisabledException",SLe="KmsKeyNotFoundException",yLe="KeyLabels",ELe="Key",c1="Label",x9="LogAlarms",_Le="ListAlarmMuteRules",RLe="ListAlarmMuteRulesInput",CLe="ListAlarmMuteRulesOutput",bLe="LogAlarm",ALe="ListDashboards",xLe="ListDashboardsInput",TLe="ListDashboardsOutput",vLe="LimitExceededException",DLe="LimitExceededFault",ILe="LogGroupIdentifiers",wLe="LastModified",PLe="ListMetricsInput",OLe="ListManagedInsightRules",$Le="ListManagedInsightRulesInput",kLe="ListManagedInsightRulesOutput",MLe="ListMetricsOutput",LLe="ListMetricStreams",NLe="ListMetricStreamsInput",FLe="ListMetricStreamsOutput",BLe="ListMetrics",T9="LabelOptions",ULe="ListTagsForResource",GLe="ListTagsForResourceInput",qLe="ListTagsForResourceOutput",v9="LastUpdateDate",D9="LastUpdatedTimestamp",$i="Message",u1="MetricAlarms",HLe="MetricAlarm",l1="MetricCharacteristics",jLe="MaxContributorCount",zLe="MaxContributorValue",d1="MetricData",p1="MetricDataQueries",VLe="MetricDataQuery",I9="MetricDataResults",WLe="MetricDataResultMessages",KLe="MetricDataResult",QLe="MaxDatapoints",YLe="MetricDatapoints",JLe="MessageData",XLe="MetricDatum",X_="MetricMathAnomalyDetector",Fn="MetricName",w9="MetricNames",f1="MaxRecords",ZLe="ManagedRuleDescription",eNe="ManagedRuleDescriptions",tNe="MissingRequiredParameterException",rNe="ManagedRuleState",Z_="MaxResults",P9="ManagedRule",m1="ManagedRules",g1="MetricSelections",nNe="MetricStreamEntry",oNe="MetricStreamEntries",sNe="MetricStreamFilter",iNe="MetricStreamFilters",aNe="MetricStreamStatisticsConfiguration",cNe="MetricStreamStatisticsConfigurations",uNe="MetricStreamStatisticsIncludeMetrics",lNe="MetricStreamStatisticsMetric",O9="MetricStat",$9="MuteType",dNe="MetricTimezone",h1="MuteTargets",pNe="MetricWidget",fNe="MetricWidgetImage",S1="Maximum",Mm="Metrics",k9="Messages",M9="Metric",y1="Minimum",nn="Namespace",yt="NextToken",Xs="Name",L9="Names",mNe="OwningAccount",gNe="OwningAccounts",hNe="OrderBy",eR="OutputFormat",sd="OKActions",SNe="OnlyStartEvaluatingAfterWarmUpPeriodEnds",yNe="OTelEnrichmentMetricSelector",ENe="OTelEnrichmentMetricSelectorList",Jc="Period",_Ne="PutAnomalyDetector",RNe="PutAnomalyDetectorInput",CNe="PutAnomalyDetectorOutput",bNe="PutAlarmMuteRule",ANe="PutAlarmMuteRuleInput",xNe="PutCompositeAlarm",TNe="PutCompositeAlarmInput",vNe="PutDashboard",DNe="PutDashboardInput",INe="PutDashboardOutput",wNe="PartialFailure",PNe="PutInsightRule",ONe="PutInsightRuleInput",$Ne="PutInsightRuleOutput",kNe="PutLogAlarm",MNe="PutLogAlarmInput",LNe="PutMetricAlarm",NNe="PutMetricAlarmInput",FNe="PutMetricData",BNe="PutMetricDataInput",UNe="PutManagedInsightRules",GNe="PutManagedInsightRulesInput",qNe="PutManagedInsightRulesOutput",HNe="PutMetricStream",jNe="PutMetricStreamInput",zNe="PutMetricStreamOutput",VNe="ParentsOfAlarmName",WNe="PendingPeriod",KNe="PromQLCriteria",QNe="PeriodicSpikes",YNe="Query",JNe="QueryARN",N9="QueryResultsToAlarm",F9="QueryResultsToEvaluate",XNe="QueryString",E1="Rule",Lm="ResourceArn",id="ResourceARN",ZNe="RecentlyActive",B9="RoleArn",e3e="ResourceConflict",t3e="ReturnData",r3e="RuleDefinition",n3e="ResourceId",tR="ResourceMetricsConfiguration",o3e="ResourceMetricSelection",s3e="ResourceMetricSelectionList",_1="RuleNames",i3e="ResourceNotFound",a3e="ResourceNotFoundException",R1="RuleName",c3e="RecoveryPeriod",U9="RuleState",u3e="ResourceType",l3e="Range",C1="Status",d3e="SetAlarmState",p3e="SetAlarmStateInput",G9="ScanBy",b1="SampleCount",q9="ScheduleConfiguration",H9="StatisticsConfigurations",f3e="StatusCode",A1="StartDate",m3e="ScheduleExpression",g3e="StrictEntityValidation",rR="SingleMetricAnomalyDetector",h3e="StartMetricStreams",S3e="StartMetricStreamsInput",y3e="StopMetricStreamsInput",E3e="StartMetricStreamsOutput",_3e="StopMetricStreamsOutput",R3e="StopMetricStreams",C3e="StartOTelEnrichment",b3e="StartOTelEnrichmentInput",A3e="StopOTelEnrichmentInput",x3e="StartOTelEnrichmentOutput",T3e="StopOTelEnrichmentOutput",v3e="StopOTelEnrichment",x1="ScheduledQueryConfiguration",D3e="ScheduledQueryRoleARN",Nm="StateReason",nR="StateReasonData",I3e="StorageResolution",w3e="StatisticSet",oR="StartTime",P3e="StartTimeOffset",sR="StateTransitionedTimestamp",T1="StateUpdatedTimestamp",ad="StateValue",O3e="StatisticValues",j9="SlidingWindow",$3e="Schema",z9="Schedule",k3e="Size",Fm="Stat",v1="Statistic",M3e="Statistics",iR="State",L3e="Statuses",D1="Sum",Bm="Timestamp",N3e="TagKeys",F3e="TagList",aR="TreatMissingData",V9="ThresholdMetricId",W9="TemplateName",B3e="TagResource",U3e="TagResourceInput",G3e="TagResourceOutput",Wo="Tags",q3e="Tag",cR="Threshold",I1="Timezone",H3e="Timestamps",Xc="Unit",uR="UpdatedAt",j3e="UniqueContributors",z3e="UpdateOTelEnrichment",V3e="UpdateOTelEnrichmentInput",W3e="UpdateOTelEnrichmentOutput",K3e="UntagResource",Q3e="UntagResourceInput",Y3e="UpdateResourceMetricsConfiguration",J3e="UpdateResourceMetricsConfigurationInput",X3e="UpdateResourceMetricsConfigurationOutput",Z3e="UntagResourceOutput",Um="Value",eFe="ValidationException",K9="Values",Q9="WallClockWindow",Gm="WarmUpConfiguration",tFe="WarmUpPeriodDurationInMinutes",on="awsQueryError",ir="client",rFe="dashboardValidationMessages",zt="error",Hr="httpError",Ko="message",Y9="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",nFe="server",b="com.amazonaws.cloudwatch",J9=new N8(Y9),X9=[-3,Y9,"CloudWatchServiceException",0,[],[]];J9.registerError(X9,ut);var Ot=new N8(b),Z9=[-3,b,Qke,{[on]:["ConcurrentModificationException",429],[zt]:ir,[Hr]:429},[$i],[0]];Ot.registerError(Z9,BE);var eK=[-3,b,Wke,{[zt]:ir,[Hr]:409},[$i],[0]];Ot.registerError(eK,kE);var tK=[-3,b,L1e,{[on]:["InvalidParameterInput",400],[zt]:ir,[Hr]:400},[Ko,rFe],[0,()=>Z7]];Ot.registerError(tK,UE);var rK=[-3,b,Y1e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(rK,GE);var nK=[-3,b,pLe,{[on]:["InternalServiceError",500],[zt]:nFe,[Hr]:500},[$i],[0]];Ot.registerError(nK,jE);var oK=[-3,b,eLe,{[on]:["InvalidFormat",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(oK,JE);var sK=[-3,b,rLe,{[on]:["InvalidNextToken",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(sK,KE);var iK=[-3,b,nLe,{[on]:["InvalidParameterCombination",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(iK,zE);var aK=[-3,b,oLe,{[on]:["InvalidParameterValue",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(aK,VE);var cK=[-3,b,gLe,{[zt]:ir},[$i],[0],1];Ot.registerError(cK,ME);var uK=[-3,b,hLe,{[zt]:ir},[$i],[0],1];Ot.registerError(uK,LE);var lK=[-3,b,SLe,{[zt]:ir},[$i],[0],1];Ot.registerError(lK,NE);var dK=[-3,b,vLe,{[on]:["LimitExceededException",400],[zt]:ir,[Hr]:400},[$i],[0]];Ot.registerError(dK,QE);var pK=[-3,b,DLe,{[on]:["LimitExceeded",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(pK,YE);var fK=[-3,b,tNe,{[on]:["MissingParameter",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(fK,WE);var mK=[-3,b,e3e,{[on]:["ResourceConflict",409],[zt]:ir,[Hr]:409},[Ko],[0]];Ot.registerError(mK,qE);var gK=[-3,b,i3e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(gK,HE);var hK=[-3,b,a3e,{[on]:["ResourceNotFoundException",404],[zt]:ir,[Hr]:404},[u3e,n3e,$i],[0,0,0]];Ot.registerError(hK,FE);var SK=[-3,b,eFe,{[on]:["ValidationError",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(SK,XE);var yK=[J9,Ot],EK=[3,b,Eke,0,[Kke,zke,Nm,sR],[0,128,0,4],3],_K=[3,b,wke,0,[Vo,U8,Bke,Bm,E9,ZMe,XMe,_ke],[0,0,0,4,0,0,0,128]],RK=[3,b,Pke,0,[W8,o1,C1,$9,D9],[0,4,0,0,4]],CK=[3,b,kke,0,[YNe,WNe,c3e],[0,1,1],1],bK=[3,b,Rke,0,[e1,nn,Fn,Nn,Fm,r9,ad,l1,rR,X_],[0,0,0,()=>Qo,0,()=>w1,0,()=>O1,()=>pR,()=>lR]],w1=[3,b,Cke,0,[hMe,dNe],[()=>aFe,0]],AK=[3,b,Tke,0,[t1,A9],[0,0],2],xK=[3,b,vke,0,[],[]],TK=[3,b,Vke,0,[nd,td,Xk,Zk,rd,Vo,J8,od,sd,Nm,nR,T1,ad,sR,Mke,Lke,X8,e9,Z8],[2,64,0,4,0,0,0,64,64,0,0,4,0,4,0,0,0,1,1]],vK=[3,b,Xke,0,[Lm,g1],[0,()=>L1],1],DK=[3,b,Zke,0,[tR],[()=>dR],1],IK=[3,b,$1e,0,[Q_,s9,wLe,k3e],[0,0,4,1]],wK=[3,b,nMe,0,[Z1e,$i],[0,0]],PK=[3,b,oMe,0,[Bm,b1,B8,D1,y1,S1,Xc,h9],[4,1,1,1,1,1,0,129]],OK=[3,b,b1e,0,[K8],[0],1],$K=[3,b,_1e,0,[km],[64],1],kK=[3,b,u1e,0,[e1,nn,Fn,Nn,Fm,rR,X_],[0,0,0,()=>Qo,0,()=>pR,()=>lR]],MK=[3,b,d1e,0,[],[]],LK=[3,b,D1e,0,[X1e],[64],1],NK=[3,b,O1e,0,[],[]],FK=[3,b,F1e,0,[_1],[64],1],BK=[3,b,G1e,0,[J_],[()=>fR]],UK=[3,b,K1e,0,[Xs],[0],1],GK=[3,b,Q1e,0,[],[]],qK=[3,b,tMe,0,[Lm],[0],1],HK=[3,b,rMe,0,[],[]],jK=[3,b,i1e,0,[Vo,yt],[0,0],1],zK=[3,b,a1e,0,[G8,yt],[()=>oFe,0],1],VK=[3,b,y1e,0,[Vo,U8,t9,E9,A1,lMe,f1,yt,G9],[0,0,64,0,4,4,1,0,0]],WK=[3,b,E1e,0,[H8,yt],[()=>sFe,0]],KK=[3,b,g1e,0,[Fn,nn,v1,s1,Nn,Jc,Xc],[0,0,0,0,()=>Qo,1,0],2],QK=[3,b,h1e,0,[u1],[()=>eY]],YK=[3,b,R1e,0,[km,Oke,t9,Yke,VNe,ad,$ke,f1,yt],[64,0,64,0,0,0,0,1,0]],JK=[3,b,A1e,0,[n9,u1,x9,yt],[()=>uFe,()=>eY,()=>yFe,0]],XK=[3,b,l1e,0,[Ake,yt,Z_,nn,Fn,Nn,Dke],[64,0,1,0,0,()=>Qo,64]],ZK=[3,b,p1e,0,[q8,yt],[()=>cFe,0]],eQ=[3,b,B1e,0,[yt,Z_],[0,1]],tQ=[3,b,q1e,0,[yt,b9],[0,()=>SFe]],rQ=[3,b,iMe,0,[Xs,Um],[0,0],2],nQ=[3,b,k1e,0,[Xs,Um],[0,0],1],oQ=[3,b,o1e,0,[km],[64],1],sQ=[3,b,U1e,0,[_1],[64],1],iQ=[3,b,H1e,0,[J_],[()=>fR]],aQ=[3,b,w1e,0,[t1],[0],1],cQ=[3,b,P1e,0,[],[]],uQ=[3,b,uMe,0,[km],[64],1],lQ=[3,b,pMe,0,[_1],[64],1],dQ=[3,b,fMe,0,[J_],[()=>fR]],pQ=[3,b,d9,0,[mLe,Hke],[128,128]],fQ=[3,b,m9,0,[d9,d1],[()=>pQ,()=>tY]],mQ=[3,b,bMe,0,[K8],[0],1],gQ=[3,b,AMe,0,[Xs,W8,l9,E1,h1,A1,o1,C1,D9,$9],[0,0,0,()=>k1,()=>$1,4,4,0,4,0]],hQ=[3,b,TMe,0,[Q_],[0],1],SQ=[3,b,DMe,0,[s9,i9,Q_],[0,0,0]],yQ=[3,b,vMe,0,[t1],[0],1],EQ=[3,b,IMe,0,[V1e,V_,A9],[0,0,0],2],_Q=[3,b,OMe,0,[R1,oR,Y_,Jc,jLe,Mm,hNe],[0,4,4,1,1,64,0],4],RQ=[3,b,$Me,0,[yLe,Fke,Gke,Uke,e1e,YLe],[64,0,1,1,()=>gFe,()=>hFe]],CQ=[3,b,MMe,0,[p1,oR,Y_,yt,G9,QLe,T9],[()=>mR,4,4,0,0,1,()=>FQ],3],bQ=[3,b,LMe,0,[I9,yt,k9],[()=>RFe,0,()=>rY]],AQ=[3,b,FMe,0,[nn,Fn,oR,Y_,Jc,Nn,M3e,h9,Xc],[0,0,4,4,1,()=>Qo,64,64,0],5],xQ=[3,b,UMe,0,[c1,r1],[0,()=>dFe]],TQ=[3,b,BMe,0,[Xs],[0],1],vQ=[3,b,GMe,0,[V_,Xs,Yc,Qc,a1,B9,iR,o9,v9,eR,H9,R9],[0,0,()=>ZE,()=>ZE,0,0,0,4,4,0,()=>nY,2]],DQ=[3,b,jMe,0,[pNe,eR],[0,0],1],IQ=[3,b,zMe,0,[fNe],[21]],wQ=[3,b,WMe,0,[],[]],PQ=[3,b,KMe,0,[C1,Yc,Qc,W_,uR],[0,()=>Ys,()=>Ys,4,4],1],OQ=[3,b,YMe,0,[Lm],[0],1],$Q=[3,b,JMe,0,[tR],[()=>dR],1],kQ=[3,b,dLe,0,[Xs,iR,$3e,sMe,P9,Y8],[0,0,0,0,2,2],4],MQ=[3,b,sLe,0,[fLe,yke,r1],[64,1,()=>mFe],3],LQ=[3,b,iLe,0,[Bm,qke],[4,1],2],NQ=[3,b,uLe,0,[Bm,j3e,zLe,b1,B8,D1,y1,S1],[4,1,1,1,1,1,1,1],1],FQ=[3,b,T9,0,[I1],[0]],BQ=[3,b,RLe,0,[Vo,L3e,f1,yt],[0,64,1,0]],UQ=[3,b,CLe,0,[Q8,yt],[()=>iFe,0]],GQ=[3,b,xLe,0,[J1e,yt],[0,0]],qQ=[3,b,TLe,0,[a9,yt],[()=>lFe,0]],HQ=[3,b,$Le,0,[id,yt,Z_],[0,0,1],1],jQ=[3,b,kLe,0,[m1,yt],[()=>EFe,0]],zQ=[3,b,PLe,0,[nn,Fn,Nn,yt,ZNe,tLe,mNe],[0,0,()=>pFe,0,0,2,0]],VQ=[3,b,MLe,0,[Mm,yt,gNe],[()=>CFe,0,64]],WQ=[3,b,NLe,0,[yt,Z_],[0,1]],KQ=[3,b,FLe,0,[yt,yMe],[0,()=>bFe]],QQ=[3,b,GLe,0,[id],[0],1],YQ=[3,b,qLe,0,[Wo],[()=>Yo]],JQ=[3,b,bLe,0,[Vo,Xk,rd,Zk,nd,sd,td,od,ad,Nm,nR,T1,x1,F9,N9,cR,K_,aR,sR,S9,z8,V8,Gm],[0,0,0,4,2,64,64,64,0,0,0,4,()=>M1,1,1,1,0,0,4,0,1,0,()=>qm]],XQ=[3,b,P9,0,[W9,id,Wo],[0,0,()=>Yo],2],ZQ=[3,b,ZLe,0,[W9,id,U9],[0,0,()=>e7]],e7=[3,b,rNe,0,[R1,iR],[0,0],2],t7=[3,b,JLe,0,[t1e,Um],[0,0]],P1=[3,b,M9,0,[nn,Fn,Nn],[0,0,()=>Qo]],r7=[3,b,HLe,0,[Vo,Xk,rd,Zk,nd,sd,td,od,ad,Nm,nR,T1,Fn,nn,v1,s1,Nn,Jc,Xc,g9,c9,cR,K_,aR,f9,Mm,V9,S9,sR,i1,Gm,n1,p9],[0,0,0,4,2,64,64,64,0,0,0,4,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>mR,0,0,4,()=>F1,()=>qm,()=>N1,1]],O1=[3,b,l1,0,[QNe],[2]],n7=[3,b,VLe,0,[_9,O9,y9,c1,t3e,Jc,j8],[0,()=>i7,0,0,2,1,0],1],o7=[3,b,KLe,0,[_9,c1,H3e,K9,f3e,k9],[0,0,68,65,0,()=>rY]],s7=[3,b,XLe,0,[Fn,Nn,Bm,Um,O3e,K9,r1e,Xc,I3e],[0,()=>Qo,4,1,()=>F7,65,65,0,1],1],lR=[3,b,X_,0,[p1],[()=>mR]],i7=[3,b,O9,0,[M9,Jc,Fm,Xc],[()=>P1,1,0,0],3],a7=[3,b,nNe,0,[V_,o9,v9,Xs,a1,iR,eR],[0,4,4,0,0,0,0]],c7=[3,b,sNe,0,[nn,w9],[0,64]],u7=[3,b,aNe,0,[C9,Nke],[()=>AFe,64],2],l7=[3,b,lNe,0,[nn,Fn],[0,0],2],$1=[3,b,h1,0,[km],[64],1],d7=[3,b,yNe,0,[nn,w9],[0,64],1],p7=[3,b,wNe,0,[RMe,SMe,EMe,_Me],[0,0,0,0]],f7=[3,b,ANe,0,[Xs,E1,l9,h1,Wo,A1,o1],[0,()=>k1,0,()=>$1,()=>Yo,4,4],2],m7=[3,b,RNe,0,[nn,Fn,Nn,Fm,r9,l1,rR,X_],[0,0,()=>Qo,0,()=>w1,()=>O1,()=>pR,()=>lR]],g7=[3,b,CNe,0,[e1],[0]],h7=[3,b,TNe,0,[Vo,J8,nd,td,rd,od,sd,Wo,X8,e9,Z8],[0,0,2,64,0,64,64,()=>Yo,0,1,1],2],S7=[3,b,DNe,0,[Q_,i9,Wo],[0,0,()=>Yo],2],y7=[3,b,INe,0,[u9],[()=>Z7]],E7=[3,b,ONe,0,[R1,r3e,U9,Wo,Y8],[0,0,0,()=>Yo,2],2],_7=[3,b,$Ne,0,[],[]],R7=[3,b,MNe,0,[Vo,x1,F9,N9,cR,K_,rd,z8,V8,nd,sd,td,od,aR,Wo,Gm],[0,()=>M1,1,1,1,0,0,1,0,2,64,64,64,0,()=>Yo,()=>qm],6],C7=[3,b,GNe,0,[m1],[()=>_Fe],1],b7=[3,b,qNe,0,[J_],[()=>fR]],A7=[3,b,NNe,0,[Vo,rd,nd,sd,td,od,Fn,nn,v1,s1,Nn,Jc,Xc,g9,c9,cR,K_,aR,f9,Mm,Wo,V9,i1,Gm,n1,p9],[0,0,2,64,64,64,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>mR,()=>Yo,0,()=>F1,()=>qm,()=>N1,1],1],x7=[3,b,BNe,0,[nn,d1,m9,g3e],[0,()=>tY,()=>fFe,2],1],T7=[3,b,jNe,0,[Xs,a1,B9,eR,Yc,Qc,Wo,H9,R9],[0,0,0,0,()=>ZE,()=>ZE,()=>Yo,()=>nY,2],4],v7=[3,b,zNe,0,[V_],[0]],D7=[3,b,l3e,0,[oR,Y_],[4,4],2],dR=[3,b,tR,0,[Lm,W_,uR,g1],[0,4,4,()=>L1],3],I7=[3,b,o3e,0,[C9],[64],1],k1=[3,b,E1,0,[z9],[()=>w7],1],w7=[3,b,z9,0,[y9,aMe,I1],[0,0,0],2],P7=[3,b,q9,0,[m3e,P3e,gMe],[0,1,1],2],M1=[3,b,x1,0,[XNe,D3e,q9,Ike,ILe,JNe,Wo],[0,0,()=>P7,0,64,0,()=>Yo],4],O7=[3,b,p3e,0,[Vo,ad,Nm,nR],[0,0,0,0],3],pR=[3,b,rR,0,[j8,nn,Fn,Nn,Fm],[0,0,0,()=>Qo,0]],$7=[3,b,j9,0,[],[]],k7=[3,b,S3e,0,[L9],[64],1],M7=[3,b,E3e,0,[],[]],L7=[3,b,b3e,0,[Yc,Qc],[()=>Ys,()=>Ys]],N7=[3,b,x3e,0,[Yc,Qc,W_,uR],[()=>Ys,()=>Ys,4,4]],F7=[3,b,w3e,0,[b1,D1,y1,S1],[1,1,1,1],4],B7=[3,b,y3e,0,[L9],[64],1],U7=[3,b,_3e,0,[],[]],G7=[3,b,A3e,0,[],[]],q7=[3,b,T3e,0,[],[]],H7=[3,b,q3e,0,[ELe,Um],[0,0],2],j7=[3,b,U3e,0,[id,Wo],[0,()=>Yo],2],z7=[3,b,G3e,0,[],[]],V7=[3,b,Q3e,0,[id,N3e],[0,64],2],W7=[3,b,Z3e,0,[],[]],K7=[3,b,V3e,0,[Yc,Qc],[()=>Ys,()=>Ys]],Q7=[3,b,W3e,0,[Yc,Qc,W_,uR],[()=>Ys,()=>Ys,4,4]],Y7=[3,b,J3e,0,[Lm,g1],[0,()=>L1],1],J7=[3,b,X3e,0,[tR],[()=>dR],1],X7=[3,b,Q9,0,[I1],[0]],qm=[3,b,Gm,0,[tFe,SNe],[1,2],1],Zs="unit",oFe=[1,b,G8,0,()=>EK],sFe=[1,b,H8,0,()=>_K],iFe=[1,b,Q8,0,()=>RK],aFe=[1,b,bke,0,()=>D7],cFe=[1,b,q8,0,()=>bK],fR=[1,b,jke,0,()=>p7],uFe=[1,b,n9,0,()=>TK],lFe=[1,b,a9,0,()=>IK],Z7=[1,b,u9,0,()=>wK],dFe=[1,b,r1,0,()=>PK],pFe=[1,b,M1e,0,()=>nQ],Qo=[1,b,Nn,0,()=>rQ],fFe=[1,b,mMe,0,()=>fQ],mFe=[1,b,aLe,0,()=>LQ],gFe=[1,b,cLe,0,()=>MQ],hFe=[1,b,lLe,0,()=>NQ],SFe=[1,b,b9,0,()=>kQ],yFe=[1,b,x9,0,()=>JQ],EFe=[1,b,eNe,0,()=>ZQ],_Fe=[1,b,m1,0,()=>XQ],eY=[1,b,u1,0,()=>r7],tY=[1,b,d1,0,()=>s7],mR=[1,b,p1,0,()=>n7],rY=[1,b,WLe,0,()=>t7],RFe=[1,b,I9,0,()=>o7],CFe=[1,b,Mm,0,()=>P1],bFe=[1,b,oNe,0,()=>a7],ZE=[1,b,iNe,0,()=>c7],nY=[1,b,cNe,0,()=>u7],AFe=[1,b,uNe,0,()=>l7],Ys=[1,b,ENe,0,()=>d7],L1=[1,b,s3e,0,()=>I7],Yo=[1,b,F3e,0,()=>H7],N1=[4,b,n1,0,[KNe],[()=>CK]],F1=[4,b,i1,0,[Q9,j9],[()=>X7,()=>$7]],oY=[9,b,xke,0,()=>AK,()=>xK],sY=[9,b,Jke,0,()=>vK,()=>DK],iY=[9,b,C1e,0,()=>OK,()=>Zs],aY=[9,b,x1e,0,()=>$K,()=>Zs],cY=[9,b,c1e,0,()=>kK,()=>MK],uY=[9,b,v1e,0,()=>LK,()=>NK],lY=[9,b,N1e,0,()=>FK,()=>BK],dY=[9,b,W1e,0,()=>UK,()=>GK],pY=[9,b,eMe,0,()=>qK,()=>HK],fY=[9,b,s1e,0,()=>jK,()=>zK],mY=[9,b,S1e,0,()=>VK,()=>WK],gY=[9,b,T1e,0,()=>YK,()=>JK],hY=[9,b,m1e,0,()=>KK,()=>QK],SY=[9,b,f1e,0,()=>XK,()=>ZK],yY=[9,b,j1e,0,()=>eQ,()=>tQ],EY=[9,b,n1e,0,()=>oQ,()=>Zs],_Y=[9,b,z1e,0,()=>sQ,()=>iQ],RY=[9,b,I1e,2,()=>aQ,()=>cQ],CY=[9,b,cMe,0,()=>uQ,()=>Zs],bY=[9,b,dMe,0,()=>lQ,()=>dQ],AY=[9,b,CMe,0,()=>mQ,()=>gQ],xY=[9,b,xMe,0,()=>hQ,()=>SQ],TY=[9,b,wMe,0,()=>yQ,()=>EQ],vY=[9,b,PMe,0,()=>_Q,()=>RQ],DY=[9,b,kMe,0,()=>CQ,()=>bQ],IY=[9,b,NMe,0,()=>AQ,()=>xQ],wY=[9,b,qMe,0,()=>TQ,()=>vQ],PY=[9,b,HMe,0,()=>DQ,()=>IQ],OY=[9,b,VMe,0,()=>wQ,()=>PQ],$Y=[9,b,QMe,0,()=>OQ,()=>$Q],kY=[9,b,_Le,0,()=>BQ,()=>UQ],MY=[9,b,ALe,0,()=>GQ,()=>qQ],LY=[9,b,OLe,0,()=>HQ,()=>jQ],NY=[9,b,BLe,0,()=>zQ,()=>VQ],FY=[9,b,LLe,0,()=>WQ,()=>KQ],BY=[9,b,ULe,0,()=>QQ,()=>YQ],UY=[9,b,bNe,0,()=>f7,()=>Zs],GY=[9,b,_Ne,0,()=>m7,()=>g7],qY=[9,b,xNe,0,()=>h7,()=>Zs],HY=[9,b,vNe,0,()=>S7,()=>y7],jY=[9,b,PNe,0,()=>E7,()=>_7],zY=[9,b,kNe,0,()=>R7,()=>Zs],VY=[9,b,UNe,0,()=>C7,()=>b7],WY=[9,b,LNe,0,()=>A7,()=>Zs],KY=[9,b,FNe,0,()=>x7,()=>Zs],QY=[9,b,HNe,0,()=>T7,()=>v7],YY=[9,b,d3e,0,()=>O7,()=>Zs],JY=[9,b,h3e,0,()=>k7,()=>M7],XY=[9,b,C3e,0,()=>L7,()=>N7],ZY=[9,b,R3e,0,()=>B7,()=>U7],eJ=[9,b,v3e,0,()=>G7,()=>q7],tJ=[9,b,B3e,0,()=>j7,()=>z7],rJ=[9,b,K3e,0,()=>V7,()=>W7],nJ=[9,b,z3e,0,()=>K7,()=>Q7],oJ=[9,b,Y3e,0,()=>Y7,()=>J7],xFe=t=>({apiVersion:"2010-08-01",base64Decoder:t?.base64Decoder??Z$e,base64Encoder:t?.base64Encoder??X$e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ske,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ake,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new W$e}],logger:t?.logger??new p$e,protocol:t?.protocol??nke,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:yK,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:t?.serviceId??"CloudWatch",sha256:t?.sha256??oke,urlParser:t?.urlParser??O$e,utf8Decoder:t?.utf8Decoder??J$e,utf8Encoder:t?.utf8Encoder??Y$e}),TFe=t=>{f$e(process.version);let e=_$e(t),r=()=>e().then(m$e),n=xFe(t);YOe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Pi(K$e,o),bodyLengthChecker:t?.bodyLengthChecker??eke,credentialDefaultProvider:t?.credentialDefaultProvider??Q$e,defaultUserAgentProvider:t?.defaultUserAgentProvider??JOe({serviceId:n.serviceId,clientVersion:pke.version}),disableRequestCompression:t?.disableRequestCompression??Pi(H$e,t),maxAttempts:t?.maxAttempts??Pi(F$e,t),region:t?.region??Pi(b$e,{...A$e,...o}),requestHandler:rke.create(t?.requestHandler??r),requestMinCompressionSizeBytes:t?.requestMinCompressionSizeBytes??Pi(q$e,t),retryMode:t?.retryMode??Pi({...N$e,default:async()=>(await r()).retryMode||L$e},t),streamCollector:t?.streamCollector??tke,useDualstackEndpoint:t?.useDualstackEndpoint??Pi(C$e,o),useFipsEndpoint:t?.useFipsEndpoint??Pi(R$e,o),userAgentAppId:t?.userAgentAppId??Pi(XOe,o)}},vFe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},DFe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),IFe=(t,e)=>{let r=Object.assign(ZOe(t),g$e(t),$$e(t),vFe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,e$e(r),h$e(r),k$e(r),DFe(r))},Cn=class extends L8{config;constructor(...[e]){let r=TFe(e||{});super(r),this.initConfig=r;let n=uke(r),o=t$e(n),s=B$e(o),i=x$e(s),a=r$e(i),c=w$e(a),u=cke(c),f=j$e(u),m=IFe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(G$e(this.config)),this.middlewareStack.use(n$e(this.config)),this.middlewareStack.use(U$e(this.config)),this.middlewareStack.use(M$e(this.config)),this.middlewareStack.use(o$e(this.config)),this.middlewareStack.use(s$e(this.config)),this.middlewareStack.use(i$e(this.config)),this.middlewareStack.use(a$e(this.config,{httpAuthSchemeParametersProvider:ske,identityProviderConfigProvider:async y=>new c$e({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(u$e(this.config))}destroy(){super.destroy()}},X=S$e(lke,"GraniteServiceVersion20100801","CloudWatchClient",P$e),Z={},ee=(t,e,r,n)=>[],wFe=(t,e,r,n)=>[z$e(r,{encodings:["gzip"]})],e_=class extends X(Z,ee,"AssociateDatasetKmsKey",oY){},t_=class extends X(Z,ee,"CreateResourceMetricsConfiguration",sY){},r_=class extends X(Z,ee,"DeleteAlarmMuteRule",iY){},n_=class extends X(Z,ee,"DeleteAlarms",aY){},o_=class extends X(Z,ee,"DeleteAnomalyDetector",cY){},s_=class extends X(Z,ee,"DeleteDashboards",uY){},i_=class extends X(Z,ee,"DeleteInsightRules",lY){},a_=class extends X(Z,ee,"DeleteMetricStream",dY){},c_=class extends X(Z,ee,"DeleteResourceMetricsConfiguration",pY){},u_=class extends X(Z,ee,"DescribeAlarmContributors",fY){},Am=class extends X(Z,ee,"DescribeAlarmHistory",mY){},Na=class extends X(Z,ee,"DescribeAlarms",gY){},l_=class extends X(Z,ee,"DescribeAlarmsForMetric",hY){},xm=class extends X(Z,ee,"DescribeAnomalyDetectors",SY){},Tm=class extends X(Z,ee,"DescribeInsightRules",yY){},d_=class extends X(Z,ee,"DisableAlarmActions",EY){},p_=class extends X(Z,ee,"DisableInsightRules",_Y){},f_=class extends X(Z,ee,"DisassociateDatasetKmsKey",RY){},m_=class extends X(Z,ee,"EnableAlarmActions",CY){},g_=class extends X(Z,ee,"EnableInsightRules",bY){},vm=class extends X(Z,ee,"GetAlarmMuteRule",AY){},h_=class extends X(Z,ee,"GetDashboard",xY){},S_=class extends X(Z,ee,"GetDataset",TY){},y_=class extends X(Z,ee,"GetInsightRuleReport",vY){},Dm=class extends X(Z,ee,"GetMetricData",DY){},E_=class extends X(Z,ee,"GetMetricStatistics",IY){},__=class extends X(Z,ee,"GetMetricStream",wY){},R_=class extends X(Z,ee,"GetMetricWidgetImage",PY){},C_=class extends X(Z,ee,"GetOTelEnrichment",OY){},b_=class extends X(Z,ee,"GetResourceMetricsConfiguration",$Y){},Im=class extends X(Z,ee,"ListAlarmMuteRules",kY){},wm=class extends X(Z,ee,"ListDashboards",MY){},Pm=class extends X(Z,ee,"ListManagedInsightRules",LY){},Om=class extends X(Z,ee,"ListMetrics",NY){},$m=class extends X(Z,ee,"ListMetricStreams",FY){},A_=class extends X(Z,ee,"ListTagsForResource",BY){},x_=class extends X(Z,ee,"PutAlarmMuteRule",UY){},T_=class extends X(Z,ee,"PutAnomalyDetector",GY){},v_=class extends X(Z,ee,"PutCompositeAlarm",qY){},D_=class extends X(Z,ee,"PutDashboard",HY){},I_=class extends X(Z,ee,"PutInsightRule",jY){},w_=class extends X(Z,ee,"PutLogAlarm",zY){},P_=class extends X(Z,ee,"PutManagedInsightRules",VY){},O_=class extends X(Z,ee,"PutMetricAlarm",WY){},$_=class extends X(Z,wFe,"PutMetricData",KY){},k_=class extends X(Z,ee,"PutMetricStream",QY){},M_=class extends X(Z,ee,"SetAlarmState",YY){},L_=class extends X(Z,ee,"StartMetricStreams",JY){},N_=class extends X(Z,ee,"StartOTelEnrichment",XY){},F_=class extends X(Z,ee,"StopMetricStreams",ZY){},B_=class extends X(Z,ee,"StopOTelEnrichment",eJ){},U_=class extends X(Z,ee,"TagResource",tJ){},G_=class extends X(Z,ee,"UntagResource",rJ){},q_=class extends X(Z,ee,"UpdateOTelEnrichment",nJ){},H_=class extends X(Z,ee,"UpdateResourceMetricsConfiguration",oJ){},sJ=Js(Cn,Am,"NextToken","NextToken","MaxRecords"),iJ=Js(Cn,Na,"NextToken","NextToken","MaxRecords"),aJ=Js(Cn,xm,"NextToken","NextToken","MaxResults"),cJ=Js(Cn,Tm,"NextToken","NextToken","MaxResults"),uJ=Js(Cn,Dm,"NextToken","NextToken","MaxDatapoints"),lJ=Js(Cn,Im,"NextToken","NextToken","MaxRecords"),dJ=Js(Cn,wm,"NextToken","NextToken",""),pJ=Js(Cn,Pm,"NextToken","NextToken","MaxResults"),fJ=Js(Cn,Om,"NextToken","NextToken",""),mJ=Js(Cn,$m,"NextToken","NextToken","MaxResults"),gJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.MetricAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},PFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,gJ),hJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,gJ);return z_(n)},SJ=async(t,e)=>{let r;try{return r=await t.send(new vm(e)),{state:Oi.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:Oi.RETRY,reason:r}}return{state:Oi.RETRY,reason:r}},OFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,SJ),yJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,SJ);return z_(n)},EJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.CompositeAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},$Fe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,EJ),_J=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,EJ);return z_(n)},RJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.LogAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},kFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,RJ),CJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,RJ);return z_(n)},MFe={AssociateDatasetKmsKeyCommand:e_,CreateResourceMetricsConfigurationCommand:t_,DeleteAlarmMuteRuleCommand:r_,DeleteAlarmsCommand:n_,DeleteAnomalyDetectorCommand:o_,DeleteDashboardsCommand:s_,DeleteInsightRulesCommand:i_,DeleteMetricStreamCommand:a_,DeleteResourceMetricsConfigurationCommand:c_,DescribeAlarmContributorsCommand:u_,DescribeAlarmHistoryCommand:Am,DescribeAlarmsCommand:Na,DescribeAlarmsForMetricCommand:l_,DescribeAnomalyDetectorsCommand:xm,DescribeInsightRulesCommand:Tm,DisableAlarmActionsCommand:d_,DisableInsightRulesCommand:p_,DisassociateDatasetKmsKeyCommand:f_,EnableAlarmActionsCommand:m_,EnableInsightRulesCommand:g_,GetAlarmMuteRuleCommand:vm,GetDashboardCommand:h_,GetDatasetCommand:S_,GetInsightRuleReportCommand:y_,GetMetricDataCommand:Dm,GetMetricStatisticsCommand:E_,GetMetricStreamCommand:__,GetMetricWidgetImageCommand:R_,GetOTelEnrichmentCommand:C_,GetResourceMetricsConfigurationCommand:b_,ListAlarmMuteRulesCommand:Im,ListDashboardsCommand:wm,ListManagedInsightRulesCommand:Pm,ListMetricsCommand:Om,ListMetricStreamsCommand:$m,ListTagsForResourceCommand:A_,PutAlarmMuteRuleCommand:x_,PutAnomalyDetectorCommand:T_,PutCompositeAlarmCommand:v_,PutDashboardCommand:D_,PutInsightRuleCommand:I_,PutLogAlarmCommand:w_,PutManagedInsightRulesCommand:P_,PutMetricAlarmCommand:O_,PutMetricDataCommand:$_,PutMetricStreamCommand:k_,SetAlarmStateCommand:M_,StartMetricStreamsCommand:L_,StartOTelEnrichmentCommand:N_,StopMetricStreamsCommand:F_,StopOTelEnrichmentCommand:B_,TagResourceCommand:U_,UntagResourceCommand:G_,UpdateOTelEnrichmentCommand:q_,UpdateResourceMetricsConfigurationCommand:H_},LFe={paginateDescribeAlarmHistory:sJ,paginateDescribeAlarms:iJ,paginateDescribeAnomalyDetectors:aJ,paginateDescribeInsightRules:cJ,paginateGetMetricData:uJ,paginateListAlarmMuteRules:lJ,paginateListDashboards:dJ,paginateListManagedInsightRules:pJ,paginateListMetrics:fJ,paginateListMetricStreams:mJ},NFe={waitUntilAlarmExists:hJ,waitUntilCompositeAlarmExists:_J,waitUntilLogAlarmExists:CJ,waitUntilAlarmMuteRuleExists:yJ},j_=class extends Cn{};y$e(MFe,j_,{paginators:LFe,waiters:NFe});var FFe={Alarm:"Alarm",ExtensionPeriod:"ExtensionPeriod",WaitPeriod:"WaitPeriod"},BFe={CompositeAlarm:"CompositeAlarm",LogAlarm:"LogAlarm",MetricAlarm:"MetricAlarm"},UFe={Action:"Action",AlarmContributorAction:"AlarmContributorAction",AlarmContributorStateUpdate:"AlarmContributorStateUpdate",ConfigurationUpdate:"ConfigurationUpdate",StateUpdate:"StateUpdate"},GFe={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",SCHEDULED:"SCHEDULED"},qFe={Bits:"Bits",Bits_Second:"Bits/Second",Bytes:"Bytes",Bytes_Second:"Bytes/Second",Count:"Count",Count_Second:"Count/Second",Gigabits:"Gigabits",Gigabits_Second:"Gigabits/Second",Gigabytes:"Gigabytes",Gigabytes_Second:"Gigabytes/Second",Kilobits:"Kilobits",Kilobits_Second:"Kilobits/Second",Kilobytes:"Kilobytes",Kilobytes_Second:"Kilobytes/Second",Megabits:"Megabits",Megabits_Second:"Megabits/Second",Megabytes:"Megabytes",Megabytes_Second:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",Terabits_Second:"Terabits/Second",Terabytes:"Terabytes",Terabytes_Second:"Terabytes/Second"},HFe={PENDING_TRAINING:"PENDING_TRAINING",TRAINED:"TRAINED",TRAINED_INSUFFICIENT_DATA:"TRAINED_INSUFFICIENT_DATA"},jFe={METRIC_MATH:"METRIC_MATH",SINGLE_METRIC:"SINGLE_METRIC"},zFe={GreaterThanOrEqualToThreshold:"GreaterThanOrEqualToThreshold",GreaterThanThreshold:"GreaterThanThreshold",GreaterThanUpperThreshold:"GreaterThanUpperThreshold",LessThanLowerOrGreaterThanUpperThreshold:"LessThanLowerOrGreaterThanUpperThreshold",LessThanLowerThreshold:"LessThanLowerThreshold",LessThanOrEqualToThreshold:"LessThanOrEqualToThreshold",LessThanThreshold:"LessThanThreshold"},VFe={ALARM:"ALARM",INSUFFICIENT_DATA:"INSUFFICIENT_DATA",OK:"OK"},WFe={TIMESTAMP_ASCENDING:"TimestampAscending",TIMESTAMP_DESCENDING:"TimestampDescending"},KFe={EVALUATION_ERROR:"EVALUATION_ERROR",EVALUATION_FAILURE:"EVALUATION_FAILURE",PARTIAL_DATA:"PARTIAL_DATA"},QFe={Average:"Average",Maximum:"Maximum",Minimum:"Minimum",SampleCount:"SampleCount",Sum:"Sum"},YFe={COMPLETE:"Complete",FORBIDDEN:"Forbidden",INTERNAL_ERROR:"InternalError",PARTIAL_DATA:"PartialData"},JFe={JSON:"json",OPEN_TELEMETRY_0_7:"opentelemetry0.7",OPEN_TELEMETRY_1_0:"opentelemetry1.0"},XFe={RUNNING:"Running",STOPPED:"Stopped"},ZFe={PT3H:"PT3H"};R.ActionsSuppressedBy=FFe;R.AlarmContributor$=EK;R.AlarmHistoryItem$=_K;R.AlarmMuteRuleStatus=GFe;R.AlarmMuteRuleSummary$=RK;R.AlarmPromQLCriteria$=CK;R.AlarmType=BFe;R.AnomalyDetector$=bK;R.AnomalyDetectorConfiguration$=w1;R.AnomalyDetectorStateValue=HFe;R.AnomalyDetectorType=jFe;R.AssociateDatasetKmsKey$=oY;R.AssociateDatasetKmsKeyCommand=e_;R.AssociateDatasetKmsKeyInput$=AK;R.AssociateDatasetKmsKeyOutput$=xK;R.CloudWatch=j_;R.CloudWatchClient=Cn;R.CloudWatchServiceException=ut;R.CloudWatchServiceException$=X9;R.ComparisonOperator=zFe;R.CompositeAlarm$=TK;R.ConcurrentModificationException=BE;R.ConcurrentModificationException$=Z9;R.ConflictException=kE;R.ConflictException$=eK;R.CreateResourceMetricsConfiguration$=sY;R.CreateResourceMetricsConfigurationCommand=t_;R.CreateResourceMetricsConfigurationInput$=vK;R.CreateResourceMetricsConfigurationOutput$=DK;R.DashboardEntry$=IK;R.DashboardInvalidInputError=UE;R.DashboardInvalidInputError$=tK;R.DashboardNotFoundError=GE;R.DashboardNotFoundError$=rK;R.DashboardValidationMessage$=wK;R.Datapoint$=PK;R.DeleteAlarmMuteRule$=iY;R.DeleteAlarmMuteRuleCommand=r_;R.DeleteAlarmMuteRuleInput$=OK;R.DeleteAlarms$=aY;R.DeleteAlarmsCommand=n_;R.DeleteAlarmsInput$=$K;R.DeleteAnomalyDetector$=cY;R.DeleteAnomalyDetectorCommand=o_;R.DeleteAnomalyDetectorInput$=kK;R.DeleteAnomalyDetectorOutput$=MK;R.DeleteDashboards$=uY;R.DeleteDashboardsCommand=s_;R.DeleteDashboardsInput$=LK;R.DeleteDashboardsOutput$=NK;R.DeleteInsightRules$=lY;R.DeleteInsightRulesCommand=i_;R.DeleteInsightRulesInput$=FK;R.DeleteInsightRulesOutput$=BK;R.DeleteMetricStream$=dY;R.DeleteMetricStreamCommand=a_;R.DeleteMetricStreamInput$=UK;R.DeleteMetricStreamOutput$=GK;R.DeleteResourceMetricsConfiguration$=pY;R.DeleteResourceMetricsConfigurationCommand=c_;R.DeleteResourceMetricsConfigurationInput$=qK;R.DeleteResourceMetricsConfigurationOutput$=HK;R.DescribeAlarmContributors$=fY;R.DescribeAlarmContributorsCommand=u_;R.DescribeAlarmContributorsInput$=jK;R.DescribeAlarmContributorsOutput$=zK;R.DescribeAlarmHistory$=mY;R.DescribeAlarmHistoryCommand=Am;R.DescribeAlarmHistoryInput$=VK;R.DescribeAlarmHistoryOutput$=WK;R.DescribeAlarms$=gY;R.DescribeAlarmsCommand=Na;R.DescribeAlarmsForMetric$=hY;R.DescribeAlarmsForMetricCommand=l_;R.DescribeAlarmsForMetricInput$=KK;R.DescribeAlarmsForMetricOutput$=QK;R.DescribeAlarmsInput$=YK;R.DescribeAlarmsOutput$=JK;R.DescribeAnomalyDetectors$=SY;R.DescribeAnomalyDetectorsCommand=xm;R.DescribeAnomalyDetectorsInput$=XK;R.DescribeAnomalyDetectorsOutput$=ZK;R.DescribeInsightRules$=yY;R.DescribeInsightRulesCommand=Tm;R.DescribeInsightRulesInput$=eQ;R.DescribeInsightRulesOutput$=tQ;R.Dimension$=rQ;R.DimensionFilter$=nQ;R.DisableAlarmActions$=EY;R.DisableAlarmActionsCommand=d_;R.DisableAlarmActionsInput$=oQ;R.DisableInsightRules$=_Y;R.DisableInsightRulesCommand=p_;R.DisableInsightRulesInput$=sQ;R.DisableInsightRulesOutput$=iQ;R.DisassociateDatasetKmsKey$=RY;R.DisassociateDatasetKmsKeyCommand=f_;R.DisassociateDatasetKmsKeyInput$=aQ;R.DisassociateDatasetKmsKeyOutput$=cQ;R.EnableAlarmActions$=CY;R.EnableAlarmActionsCommand=m_;R.EnableAlarmActionsInput$=uQ;R.EnableInsightRules$=bY;R.EnableInsightRulesCommand=g_;R.EnableInsightRulesInput$=lQ;R.EnableInsightRulesOutput$=dQ;R.Entity$=pQ;R.EntityMetricData$=fQ;R.EvaluationCriteria$=N1;R.EvaluationState=KFe;R.EvaluationWindow$=F1;R.GetAlarmMuteRule$=AY;R.GetAlarmMuteRuleCommand=vm;R.GetAlarmMuteRuleInput$=mQ;R.GetAlarmMuteRuleOutput$=gQ;R.GetDashboard$=xY;R.GetDashboardCommand=h_;R.GetDashboardInput$=hQ;R.GetDashboardOutput$=SQ;R.GetDataset$=TY;R.GetDatasetCommand=S_;R.GetDatasetInput$=yQ;R.GetDatasetOutput$=EQ;R.GetInsightRuleReport$=vY;R.GetInsightRuleReportCommand=y_;R.GetInsightRuleReportInput$=_Q;R.GetInsightRuleReportOutput$=RQ;R.GetMetricData$=DY;R.GetMetricDataCommand=Dm;R.GetMetricDataInput$=CQ;R.GetMetricDataOutput$=bQ;R.GetMetricStatistics$=IY;R.GetMetricStatisticsCommand=E_;R.GetMetricStatisticsInput$=AQ;R.GetMetricStatisticsOutput$=xQ;R.GetMetricStream$=wY;R.GetMetricStreamCommand=__;R.GetMetricStreamInput$=TQ;R.GetMetricStreamOutput$=vQ;R.GetMetricWidgetImage$=PY;R.GetMetricWidgetImageCommand=R_;R.GetMetricWidgetImageInput$=DQ;R.GetMetricWidgetImageOutput$=IQ;R.GetOTelEnrichment$=OY;R.GetOTelEnrichmentCommand=C_;R.GetOTelEnrichmentInput$=wQ;R.GetOTelEnrichmentOutput$=PQ;R.GetResourceMetricsConfiguration$=$Y;R.GetResourceMetricsConfigurationCommand=b_;R.GetResourceMetricsConfigurationInput$=OQ;R.GetResourceMetricsConfigurationOutput$=$Q;R.HistoryItemType=UFe;R.InsightRule$=kQ;R.InsightRuleContributor$=MQ;R.InsightRuleContributorDatapoint$=LQ;R.InsightRuleMetricDatapoint$=NQ;R.InternalServiceFault=jE;R.InternalServiceFault$=nK;R.InvalidFormatFault=JE;R.InvalidFormatFault$=oK;R.InvalidNextToken=KE;R.InvalidNextToken$=sK;R.InvalidParameterCombinationException=zE;R.InvalidParameterCombinationException$=iK;R.InvalidParameterValueException=VE;R.InvalidParameterValueException$=aK;R.KmsAccessDeniedException=ME;R.KmsAccessDeniedException$=cK;R.KmsKeyDisabledException=LE;R.KmsKeyDisabledException$=uK;R.KmsKeyNotFoundException=NE;R.KmsKeyNotFoundException$=lK;R.LabelOptions$=FQ;R.LimitExceededException=QE;R.LimitExceededException$=dK;R.LimitExceededFault=YE;R.LimitExceededFault$=pK;R.ListAlarmMuteRules$=kY;R.ListAlarmMuteRulesCommand=Im;R.ListAlarmMuteRulesInput$=BQ;R.ListAlarmMuteRulesOutput$=UQ;R.ListDashboards$=MY;R.ListDashboardsCommand=wm;R.ListDashboardsInput$=GQ;R.ListDashboardsOutput$=qQ;R.ListManagedInsightRules$=LY;R.ListManagedInsightRulesCommand=Pm;R.ListManagedInsightRulesInput$=HQ;R.ListManagedInsightRulesOutput$=jQ;R.ListMetricStreams$=FY;R.ListMetricStreamsCommand=$m;R.ListMetricStreamsInput$=WQ;R.ListMetricStreamsOutput$=KQ;R.ListMetrics$=NY;R.ListMetricsCommand=Om;R.ListMetricsInput$=zQ;R.ListMetricsOutput$=VQ;R.ListTagsForResource$=BY;R.ListTagsForResourceCommand=A_;R.ListTagsForResourceInput$=QQ;R.ListTagsForResourceOutput$=YQ;R.LogAlarm$=JQ;R.ManagedRule$=XQ;R.ManagedRuleDescription$=ZQ;R.ManagedRuleState$=e7;R.MessageData$=t7;R.Metric$=P1;R.MetricAlarm$=r7;R.MetricCharacteristics$=O1;R.MetricDataQuery$=n7;R.MetricDataResult$=o7;R.MetricDatum$=s7;R.MetricMathAnomalyDetector$=lR;R.MetricStat$=i7;R.MetricStreamEntry$=a7;R.MetricStreamFilter$=c7;R.MetricStreamOutputFormat=JFe;R.MetricStreamStatisticsConfiguration$=u7;R.MetricStreamStatisticsMetric$=l7;R.MissingRequiredParameterException=WE;R.MissingRequiredParameterException$=fK;R.MuteTargets$=$1;R.OTelEnrichmentMetricSelector$=d7;R.OTelEnrichmentStatus=XFe;R.PartialFailure$=p7;R.PutAlarmMuteRule$=UY;R.PutAlarmMuteRuleCommand=x_;R.PutAlarmMuteRuleInput$=f7;R.PutAnomalyDetector$=GY;R.PutAnomalyDetectorCommand=T_;R.PutAnomalyDetectorInput$=m7;R.PutAnomalyDetectorOutput$=g7;R.PutCompositeAlarm$=qY;R.PutCompositeAlarmCommand=v_;R.PutCompositeAlarmInput$=h7;R.PutDashboard$=HY;R.PutDashboardCommand=D_;R.PutDashboardInput$=S7;R.PutDashboardOutput$=y7;R.PutInsightRule$=jY;R.PutInsightRuleCommand=I_;R.PutInsightRuleInput$=E7;R.PutInsightRuleOutput$=_7;R.PutLogAlarm$=zY;R.PutLogAlarmCommand=w_;R.PutLogAlarmInput$=R7;R.PutManagedInsightRules$=VY;R.PutManagedInsightRulesCommand=P_;R.PutManagedInsightRulesInput$=C7;R.PutManagedInsightRulesOutput$=b7;R.PutMetricAlarm$=WY;R.PutMetricAlarmCommand=O_;R.PutMetricAlarmInput$=A7;R.PutMetricData$=KY;R.PutMetricDataCommand=$_;R.PutMetricDataInput$=x7;R.PutMetricStream$=QY;R.PutMetricStreamCommand=k_;R.PutMetricStreamInput$=T7;R.PutMetricStreamOutput$=v7;R.Range$=D7;R.RecentlyActive=ZFe;R.ResourceConflict=qE;R.ResourceConflict$=mK;R.ResourceMetricSelection$=I7;R.ResourceMetricsConfiguration$=dR;R.ResourceNotFound=HE;R.ResourceNotFound$=gK;R.ResourceNotFoundException=FE;R.ResourceNotFoundException$=hK;R.Rule$=k1;R.ScanBy=WFe;R.Schedule$=w7;R.ScheduleConfiguration$=P7;R.ScheduledQueryConfiguration$=M1;R.SetAlarmState$=YY;R.SetAlarmStateCommand=M_;R.SetAlarmStateInput$=O7;R.SingleMetricAnomalyDetector$=pR;R.SlidingWindow$=$7;R.StandardUnit=qFe;R.StartMetricStreams$=JY;R.StartMetricStreamsCommand=L_;R.StartMetricStreamsInput$=k7;R.StartMetricStreamsOutput$=M7;R.StartOTelEnrichment$=XY;R.StartOTelEnrichmentCommand=N_;R.StartOTelEnrichmentInput$=L7;R.StartOTelEnrichmentOutput$=N7;R.StateValue=VFe;R.Statistic=QFe;R.StatisticSet$=F7;R.StatusCode=YFe;R.StopMetricStreams$=ZY;R.StopMetricStreamsCommand=F_;R.StopMetricStreamsInput$=B7;R.StopMetricStreamsOutput$=U7;R.StopOTelEnrichment$=eJ;R.StopOTelEnrichmentCommand=B_;R.StopOTelEnrichmentInput$=G7;R.StopOTelEnrichmentOutput$=q7;R.Tag$=H7;R.TagResource$=tJ;R.TagResourceCommand=U_;R.TagResourceInput$=j7;R.TagResourceOutput$=z7;R.UntagResource$=rJ;R.UntagResourceCommand=G_;R.UntagResourceInput$=V7;R.UntagResourceOutput$=W7;R.UpdateOTelEnrichment$=nJ;R.UpdateOTelEnrichmentCommand=q_;R.UpdateOTelEnrichmentInput$=K7;R.UpdateOTelEnrichmentOutput$=Q7;R.UpdateResourceMetricsConfiguration$=oJ;R.UpdateResourceMetricsConfigurationCommand=H_;R.UpdateResourceMetricsConfigurationInput$=Y7;R.UpdateResourceMetricsConfigurationOutput$=J7;R.ValidationException=XE;R.ValidationException$=SK;R.WallClockWindow$=X7;R.WarmUpConfiguration$=qm;R.errorTypeRegistries=yK;R.paginateDescribeAlarmHistory=sJ;R.paginateDescribeAlarms=iJ;R.paginateDescribeAnomalyDetectors=aJ;R.paginateDescribeInsightRules=cJ;R.paginateGetMetricData=uJ;R.paginateListAlarmMuteRules=lJ;R.paginateListDashboards=dJ;R.paginateListManagedInsightRules=pJ;R.paginateListMetricStreams=mJ;R.paginateListMetrics=fJ;R.waitForAlarmExists=PFe;R.waitForAlarmMuteRuleExists=OFe;R.waitForCompositeAlarmExists=$Fe;R.waitForLogAlarmExists=kFe;R.waitUntilAlarmExists=hJ;R.waitUntilAlarmMuteRuleExists=yJ;R.waitUntilCompositeAlarmExists=_J;R.waitUntilLogAlarmExists=CJ});var bn,ud,ki,ld,Ae,gR,Zc,no=g(()=>{bn={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ud=bn.WHEN_SUPPORTED,ki={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ld=bn.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(Ae||(Ae={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(gR||(gR={}));Zc=Ae.CRC32});var Ba,dd,B1=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Ba||(Ba={}));dd=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var U1,G1,DJ,IJ=g(()=>{no();B1();U1="AWS_REQUEST_CHECKSUM_CALCULATION",G1="request_checksum_calculation",DJ={environmentVariableSelector:t=>dd(t,U1,bn,Ba.ENV),configFileSelector:t=>dd(t,G1,bn,Ba.CONFIG),default:ud}});var q1,H1,wJ,PJ=g(()=>{no();B1();q1="AWS_RESPONSE_CHECKSUM_VALIDATION",H1="response_checksum_validation",wJ={environmentVariableSelector:t=>dd(t,q1,ki,Ba.ENV),configFileSelector:t=>dd(t,H1,ki,Ba.CONFIG),default:ld}});var OJ,$J=g(()=>{no();OJ=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===bn.WHEN_SUPPORTED||e?Zc:void 0});var eu,hR=g(()=>{no();eu=t=>t===Ae.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var kJ,MJ=g(()=>{kJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var LJ,NJ=g(()=>{LJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var SR,j1=g(()=>{j();SR=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Ou(t)});var FJ,yR,BJ=g(()=>{FJ=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;FJ[t]=e>>>0}yR=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^FJ[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var ER,UJ=g(()=>{BJ();ER=yR});var GJ,qJ=g(()=>{GJ={CrtCrc64Nvme:null}});var eBe,z1,Hm,V1,W1,K1,Q1,Y1,J1,X1,tBe,_R,HJ=g(()=>{eBe=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},tBe=()=>{z1||(z1=eBe(),[Hm,V1,W1,K1,Q1,Y1,J1,X1]=z1)},_R=class{c1=0;c2=0;constructor(){tBe(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=X1[i]^J1[a]^Y1[c]^Q1[u]^K1[f]^W1[m]^V1[y]^Hm[_],s=X1[i+1]^J1[a+1]^Y1[c+1]^Q1[u+1]^K1[f+1]^W1[m+1]^V1[y+1]^Hm[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^Hm[i],s^=Hm[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var jm,jJ=g(()=>{qJ();HJ();jm=class{impl;constructor(){let e=GJ.CrtCrc64Nvme;this.impl=e?new e:new _R}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var zJ=g(()=>{UJ();jJ();On()});var VJ,Z1,eM=g(()=>{no();VJ=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],Z1=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME]});var RR,tM=g(()=>{zJ();no();eM();RR=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case Ae.MD5:return r?.MD5??e.md5;case Ae.CRC32:return r?.CRC32??Do;case Ae.CRC32C:return r?.CRC32C??ER;case Ae.CRC64NVME:return r?.CRC64NVME??jm;case Ae.SHA1:return r?.SHA1??e.sha1;case Ae.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${VJ}, or provide an implementation to the client constructor checksums field.`)}}});var CR,rM=g(()=>{j();CR=(t,e)=>{let r=new t;return r.update(bt(e||"")),r.digest()}});var bR,AR,nM=g(()=>{Ee();V();j();no();$J();hR();MJ();NJ();j1();tM();rM();bR={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},AR=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request)||LJ("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),C=y?.name,A=y?.httpHeader;C&&!i[C]&&(_===bn.WHEN_SUPPORTED||m)&&(i[C]=Zc,A&&(c[A]=Zc));let x=OJ(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),T=a,I=c;if(x){switch(x){case Ae.CRC32:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let q=eu(x),H=RR(x,t);if(SR(a)){let{getAwsChunkedEncodingStream:me,bodyLengthChecker:et}=t;T=me(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?$S(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:et,checksumLocationName:q,checksumAlgorithmFn:H,streamHasher:f}),I={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":q},delete I["content-length"]}else if(!kJ(q,c)){let me=await CR(H,a);I={...c,[q]:u(me)}}}try{return await r({...o,request:{...s,headers:I,body:T}})}catch(q){if(q instanceof Error&&q.name==="InvalidChunkSizeError")try{q.message.endsWith(".")||(q.message+="."),q.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw q}}});var WJ,KJ,QJ=g(()=>{Ee();no();WJ={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},KJ=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case bn.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case bn.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case ki.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case ki.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===ki.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var xR,oM=g(()=>{eM();xR=(t=[])=>{let e=[],r=Z1.length;for(let n of t){let o=Z1.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var YJ,JJ=g(()=>{YJ=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var XJ,ZJ=g(()=>{rM();XJ=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await CR(e,t))});var eX,tX=g(()=>{j();no();ZJ();oM();hR();j1();tM();eX=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=xR(r),{body:s,headers:i}=t;for(let a of o){let c=eu(a),u=i[c];if(u){let f;try{f=RR(a,e)}catch(_){if(a===Ae.CRC64NVME){n?.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(SR(s)){t.body=OS({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await XJ(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var rX,nX,oX=g(()=>{V();oM();hR();JJ();tX();rX={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},nX=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(A=>{let x=eu(A);return a.headers[x]!==void 0}),_=xR([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(A=>{let x=eu(A),T=a.headers[x];return!T||YJ(T)}))return i;await eX(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var sX,iX=g(()=>{QJ();nM();oX();sX=(t,e)=>({applyToStack:r=>{r.add(AR(t,e),bR),r.addRelativeTo(KJ(t,e),WJ),r.addRelativeTo(nX(t,e),rX)}})});var aX,cX=g(()=>{J();no();aX=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:we(e??ud),responseChecksumValidation:we(r??ld),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var uX={};Ct(uX,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>G1,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>H1,ChecksumAlgorithm:()=>Ae,ChecksumLocation:()=>gR,DEFAULT_CHECKSUM_ALGORITHM:()=>Zc,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>ud,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>ld,ENV_REQUEST_CHECKSUM_CALCULATION:()=>U1,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>q1,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>DJ,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>wJ,RequestChecksumCalculation:()=>bn,ResponseChecksumValidation:()=>ki,flexibleChecksumsMiddleware:()=>AR,flexibleChecksumsMiddlewareOptions:()=>bR,getFlexibleChecksumsPlugin:()=>sX,resolveFlexibleChecksumsConfig:()=>aX});var lX=g(()=>{IJ();PJ();no();nM();iX();cX()});function sM(){return(t,e)=>async r=>{let{request:n}=r;if(re.isInstance(n)&&!(rBe in n.headers)&&!(nBe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Nr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var rBe,nBe,iM,dX,pX=g(()=>{J();V();rBe="content-length",nBe="x-amz-decoded-content-length";iM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},dX=t=>({applyToStack:e=>{e.add(sM(),iM)}})});var TR,vR,aM=g(()=>{TR=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},vR={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function cM(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,We(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var uM,fX,mX=g(()=>{Ee();aM();uM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fX=t=>({applyToStack:e=>{e.add(cM(t),uM),e.addRelativeTo(TR(t),vR)}})});var pd,lM=g(()=>{pd=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var Ua,dM=g(()=>{Ua=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var fd,pM=g(()=>{lM();dM();fd=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new pd){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new Ua(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new Ua(Promise.resolve(u)))})),i)):o.set(n,new Ua(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
59
|
-
`+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var gX,hX=g(()=>{pM();gX=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new fd(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var fM,mM,SX,yX=g(()=>{V();j();fM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(ft.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{gn(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},mM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},SX=t=>({applyToStack:e=>{e.addRelativeTo(fM(t),mM)}})});var EX,DR,_X=g(()=>{EX=Ie(tm()),DR=class extends EX.SignatureV4SignWithCredentials{}});var RX,CX,bX,oBe,AX,sBe,iBe,xX,gM=g(()=>{ye();RX="Directory",CX="S3Express",bX="sigv4-s3express",oBe="X-Amz-S3session-Token",AX=oBe.toLowerCase(),sBe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",iBe="s3_disable_express_session_auth",xX={environmentVariableSelector:t=>Ve(t,sBe,Be.ENV),configFileSelector:t=>Ve(t,iBe,Be.CONFIG),default:!1}});var hM,SM,TX,vX=g(()=>{Ee();V();gM();hM=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===bX;if((o.properties?.backend===CX||o.properties?.bucketType===RX)&&(We(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,re.isInstance(n.request)&&c.sessionToken&&(n.request.headers[AX]=c.sessionToken)}}}return e(n)},SM={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},TX=t=>({applyToStack:e=>{e.add(hM(t),SM)}})});var DX,IX=g(()=>{DX=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var aBe,cBe,wX,yM,PX,OX=g(()=>{jt();J();V();IX();aBe=t=>e=>{throw e},cBe=(t,e)=>{},wX=Pc,yM=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await DX(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||aBe)(i));return(c.successHandler||cBe)(f.response,i),f},PX=t=>({applyToStack:e=>{e.addRelativeTo(yM(t),Pc)}})});function kX(t){return $X.Readable.from(Buffer.from(t))}var $X,MX=g(()=>{$X=require("node:stream")});var uBe,EM,lBe,_M,LX,NX=g(()=>{V();MX();uBe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},EM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!ft.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await lBe(a,t);if(s.body=kX(c),c.length===0&&uBe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},lBe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),_M={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},LX=t=>({applyToStack:e=>{e.addRelativeTo(EM(t),_M)}})});var zm,RM,FX=g(()=>{zm=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,RM=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var CM=g(()=>{FX()});function BX(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var UX,GX=g(()=>{UX={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function bM({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!zm(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var AM,qX,HX=g(()=>{CM();GX();AM={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},qX=t=>({applyToStack:e=>{e.add(bM(t),AM),e.addRelativeTo(BX(t),UX)}})});var IR,jX=g(()=>{Di();ae();IR=class extends Kl{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var xM,TM,zX,VX=g(()=>{ye();xM="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",TM="s3_disable_multiregion_access_points",zX={environmentVariableSelector:t=>Ve(t,xM,Be.ENV),configFileSelector:t=>Ve(t,TM,Be.CONFIG),default:!1}});var vM,DM,WX,KX=g(()=>{ye();vM="AWS_S3_USE_ARN_REGION",DM="s3_use_arn_region",WX={environmentVariableSelector:t=>Ve(t,vM,Be.ENV),configFileSelector:t=>Ve(t,DM,Be.CONFIG),default:void 0}});var dBe,pBe,fBe,wM,mBe,QX,IM,YX,JX,XX,ZX,wR,eZ,tZ,rZ,PR,OR,nZ,$R,kR,Ga,oZ,MR,sZ,LR,iZ,PM=g(()=>{dBe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,pBe=/(\d+\.){3}\d+/,fBe=/\.\./,wM=/\./,mBe=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,QX=/^s3(-external-1)?\.amazonaws\.com$/,IM="amazonaws.com",YX=t=>typeof t.bucketName=="string",JX=t=>dBe.test(t)&&!pBe.test(t)&&!fBe.test(t),XX=t=>{let e=t.match(mBe);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},ZX=t=>QX.test(t)?["us-east-1",IM]:XX(t),wR=t=>QX.test(t)?[t.replace(`.${IM}`,""),IM]:XX(t),eZ=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},tZ=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},rZ=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},PR=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},OR=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},nZ=(t,e)=>{},$R=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},kR=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ga=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&wM.test(t))throw new Error(`Invalid DNS label ${t}`)},oZ=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},MR=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},sZ=t=>{},LR=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},iZ=t=>{try{t.split(".").forEach(e=>{Ga(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Vm,gBe,hBe,SBe,yBe,EBe,_Be,OM=g(()=>{PM();Vm=t=>(oZ(t),YX(t)?gBe(t):hBe(t)),gBe=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:ZX(r);return i||!JX(n)||a&&wM.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},hBe=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:wR(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;eZ({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:C,resource:A}=u;tZ(m),OR(y,{clientPartition:f}),kR(_);let{accesspointName:x,outpostId:T}=MR(A);return m==="s3-object-lambda"?SBe({...t,tlsCompatible:c,bucketName:u,accesspointName:x,hostnameSuffix:o}):C===""?yBe({...t,clientRegion:n,mrapAlias:x,hostnameSuffix:o}):T?EBe({...t,clientRegion:n,outpostId:T,accesspointName:x,hostnameSuffix:o}):_Be({...t,clientRegion:n,accesspointName:x,hostnameSuffix:o})},SBe=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;$R(o);let y=`${i}-${u}`;Ga(y,{tlsCompatible:r});let _=n?f:o,C=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:C,signingService:m}},yBe=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return iZ(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},EBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{$R(e);let m=`${c}-${n.accountId}`;Ga(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return PR(n.service),Ga(o,{tlsCompatible:a}),LR(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},_Be=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{$R(e);let f=`${a}-${n.accountId}`;Ga(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return rZ(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var $M,kM,aZ,cZ=g(()=>{CM();V();OM();$M=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(re.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(zm(o)){let a=RM(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:C,bucketEndpoint:A,signingRegion:x,signingService:T}=Vm({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});x&&x!==y&&(r.signing_region=x),T&&T!=="s3"&&(r.signing_service=T),i.hostname=C,s=A}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Vm({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},kM={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},aZ=t=>({applyToStack:e=>{e.addRelativeTo($M(t),kM)}})});function uZ(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var lZ=g(()=>{});function MM(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&re.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var LM,dZ,pZ=g(()=>{V();LM={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},dZ=t=>({applyToStack:e=>{e.add(MM(t),LM)}})});function NM(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var FM,fZ,mZ=g(()=>{FM={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},fZ=t=>({applyToStack:e=>{e.add(NM(t),FM)}})});function gZ(t){return t}var hZ=g(()=>{});function BM(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?GM(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function GM(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var UM,SZ,yZ=g(()=>{UM={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},SZ=t=>({applyToStack:e=>{e.add(BM(t),UM)}})});var EZ={};Ct(EZ,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>zX,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>xM,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>TM,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>xX,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>WX,NODE_USE_ARN_REGION_ENV_NAME:()=>vM,NODE_USE_ARN_REGION_INI_NAME:()=>DM,S3ExpressIdentityCache:()=>pd,S3ExpressIdentityCacheEntry:()=>Ua,S3ExpressIdentityProviderImpl:()=>fd,S3RestXmlProtocol:()=>IR,SignatureV4S3Express:()=>DR,addExpectContinueMiddleware:()=>MM,addExpectContinueMiddlewareOptions:()=>LM,bucketEndpointMiddleware:()=>$M,bucketEndpointMiddlewareOptions:()=>kM,bucketHostname:()=>Vm,checkContentLengthHeader:()=>sM,checkContentLengthHeaderMiddlewareOptions:()=>iM,getAddExpectContinuePlugin:()=>dZ,getArnResources:()=>MR,getBucketEndpointPlugin:()=>aZ,getCheckContentLengthHeaderPlugin:()=>dX,getLocationConstraintPlugin:()=>fZ,getRegionRedirectMiddlewarePlugin:()=>fX,getS3ExpiresMiddlewarePlugin:()=>SX,getS3ExpressHttpSigningPlugin:()=>PX,getS3ExpressPlugin:()=>TX,getSsecPlugin:()=>SZ,getSuffixForArnEndpoint:()=>wR,getThrow200ExceptionsPlugin:()=>LX,getValidateBucketNamePlugin:()=>qX,isValidBase64EncodedSSECustomerKey:()=>GM,locationConstraintMiddleware:()=>NM,locationConstraintMiddlewareOptions:()=>FM,regionRedirectEndpointMiddleware:()=>TR,regionRedirectEndpointMiddlewareOptions:()=>vR,regionRedirectMiddleware:()=>cM,regionRedirectMiddlewareOptions:()=>uM,resolveBucketEndpointConfig:()=>uZ,resolveLocationConstraintConfig:()=>gZ,resolveS3Config:()=>gX,s3ExpiresMiddleware:()=>fM,s3ExpiresMiddlewareOptions:()=>mM,s3ExpressHttpSigningMiddleware:()=>yM,s3ExpressHttpSigningMiddlewareOptions:()=>wX,s3ExpressMiddleware:()=>hM,s3ExpressMiddlewareOptions:()=>SM,ssecMiddleware:()=>BM,ssecMiddlewareOptions:()=>UM,throw200ExceptionsMiddleware:()=>EM,throw200ExceptionsMiddlewareOptions:()=>_M,validateAccountId:()=>kR,validateBucketNameMiddleware:()=>bM,validateBucketNameMiddlewareOptions:()=>AM,validateDNSHostLabel:()=>Ga,validateNoDualstack:()=>sZ,validateNoFIPS:()=>LR,validateOutpostService:()=>PR,validatePartition:()=>OR,validateRegion:()=>nZ});var _Z=g(()=>{pX();aM();mX();hX();yX();lM();dM();pM();_X();gM();vX();OX();NX();HX();jX();VX();KX();cZ();OM();lZ();PM();pZ();mZ();hZ();yZ()});var Tt,RZ,CZ,RBe,Mi,NR=g(()=>{j();Tt=64,RZ=20,CZ=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),RBe=new Int32Array([1518500249,1859775393,2400959708,3395469782]),Mi=class t{digestLength=RZ;state=Int32Array.from(CZ);w;buffer=new Uint8Array(Tt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(Tt*2);for(let o=0;o<Tt;++o)n[o]=54^r[o],n[o+Tt]=92^r[o];this.inner.update(n.subarray(0,Tt)),this.outer.update(n.subarray(Tt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<Tt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===Tt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=Tt;)this.hashBuffer(e,r),r+=Tt,n-=Tt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(CZ),this.buffer=new Uint8Array(Tt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>Tt-8){for(let c=n;c<Tt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<Tt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,Tt);i.setUint32(Tt-8,o,!1),i.setUint32(Tt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(RZ);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(Tt);return i.set(s),i}let n=new Uint8Array(Tt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+(RBe[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function bBe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Wm.createHmac)("sha1",ABe(this.secret)):(0,Wm.createHash)("sha1")}}}function ABe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Wm,CBe,qM,bZ=g(()=>{Wm=require("node:crypto");NR();CBe=(()=>{try{return(0,Wm.createHash)("sha1"),!0}catch{return!1}})(),qM=CBe?bBe():Mi});var xBe,TBe,vBe,FR,DBe,BR,AZ=g(()=>{j();NR();({digest:xBe,sign:TBe,importKey:vBe}=globalThis?.crypto?.subtle??{}),FR=typeof xBe=="function"&&typeof TBe=="function"&&typeof vBe=="function"?globalThis.crypto.subtle:void 0,DBe=8*1024*1024,BR=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=DBe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(FR){if(this.secret){this.finished=!0;let o=await FR.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await FR.sign("HMAC",o,e);return new Uint8Array(s)}let n=await FR.digest("SHA-1",e);return new Uint8Array(n)}let r=new Mi(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Mi(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var xZ={};Ct(xZ,{Sha1:()=>qM,Sha1Js:()=>Mi,Sha1Node:()=>qM,Sha1WebCrypto:()=>BR,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn});var TZ=g(()=>{NR();bZ();AZ();On()});var IN=st(d=>{var{getFlexibleChecksumsPlugin:qa,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:IBe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:wBe,resolveFlexibleChecksumsConfig:PBe}=(lX(),F(uX)),{awsEndpointFunctions:OBe,emitWarningIfUnsupportedVersion:$Be,createDefaultUserAgentProvider:kBe,NODE_APP_ID_CONFIG_OPTIONS:MBe,getAwsRegionExtensionConfiguration:LBe,resolveAwsRegionExtensionConfiguration:NBe,resolveUserAgentConfig:FBe,resolveHostHeaderConfig:BBe,getUserAgentPlugin:UBe,getHostHeaderPlugin:GBe,getLoggerPlugin:qBe,getRecursionDetectionPlugin:HBe}=(Ee(),F(kn)),{getThrow200ExceptionsPlugin:Ha,getSsecPlugin:Sd,getLocationConstraintPlugin:jBe,getS3ExpiresMiddlewarePlugin:dee,getCheckContentLengthHeaderPlugin:zBe,S3RestXmlProtocol:VBe,NODE_USE_ARN_REGION_CONFIG_OPTIONS:WBe,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:KBe,resolveS3Config:QBe,getValidateBucketNamePlugin:YBe,getAddExpectContinuePlugin:JBe,getRegionRedirectMiddlewarePlugin:XBe,getS3ExpressPlugin:ZBe,getS3ExpressHttpSigningPlugin:e2e}=(_Z(),F(EZ)),{getHttpAuthSchemeEndpointRuleSetPlugin:t2e,DefaultIdentityProviderConfig:r2e,getHttpSigningPlugin:n2e,createPaginator:ag}=(jt(),F(Al)),{normalizeProvider:pee,getSmithyContext:fee,makeBuilder:o2e,ServiceException:s2e,NoOpLogger:i2e,emitWarningIfUnsupportedVersion:a2e,loadConfigsForDefaultMode:c2e,getDefaultExtensionConfiguration:u2e,resolveDefaultRuntimeConfig:l2e,Client:mee,createWaiter:ja,checkExceptions:PA,WaiterState:ei,createAggregatedClient:d2e}=(J(),F(bo)),{Command:p2e}=(J(),F(bo));d.$Command=p2e;d.__Client=mee;var{resolveDefaultsModeConfig:f2e,loadConfig:oo,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:m2e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:g2e,NODE_REGION_CONFIG_OPTIONS:h2e,NODE_REGION_CONFIG_FILE_OPTIONS:S2e,resolveRegionConfig:y2e}=(ye(),F(Br)),{BinaryDecisionDiagram:E2e,EndpointCache:_2e,decideEndpoint:R2e,customEndpointFunctions:C2e,resolveParams:b2e,getEndpointPlugin:A2e,resolveEndpointConfig:x2e}=(He(),F(Hp)),{eventStreamSerdeProvider:T2e,resolveEventStreamSerdeConfig:v2e}=(VS(),F(zS)),{parseUrl:D2e,getHttpHandlerExtensionConfiguration:I2e,resolveHttpHandlerRuntimeConfig:w2e,getContentLengthPlugin:P2e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:O2e,NODE_RETRY_MODE_CONFIG_OPTIONS:$2e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:k2e,resolveRetryConfig:M2e,getRetryPlugin:L2e}=(en(),F(rf)),{TypeRegistry:gee,getSchemaSerdePlugin:N2e}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:F2e,resolveAwsSdkSigV4AConfig:B2e,AwsSdkSigV4Signer:U2e,AwsSdkSigV4ASigner:G2e,NODE_SIGV4A_CONFIG_OPTIONS:q2e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:H2e}=(rr(),F(Dl)),{SignatureV4MultiRegion:hee}=tm(),{defaultProvider:j2e}=Rm(),{Sha256:z2e,Md5:V2e,readableStreamHasher:W2e}=(On(),F(zp)),{toUtf8:K2e,fromUtf8:Q2e,sdkStreamMixin:Y2e,getAwsChunkedEncodingStream:J2e,toBase64:X2e,fromBase64:Z2e,calculateBodyLength:eUe}=(j(),F(To)),{streamCollector:tUe,NodeHttpHandler:rUe}=zs(),{Sha1:nUe}=(TZ(),F(xZ)),Ke="ref",he="argv",See="backend",ri="authSchemes",io="disableDoubleEncoding",ao="signingName",Ui="signingRegion",aL="signingRegionSet",te=-1,Ge=!0,so=!1,HM="isSet",Jo="booleanEquals",Oe="stringEquals",jr="coalesce",sn="substring",Vt="",vZ="aws.partition",yee="partitionResult",DZ="accessPointSuffix",IZ="regionPrefix",UR=t=>"outpostId_ssa_"+t+Vt,Eee="hardwareType",jM="ite",Li="isValidHostLabel",Gi="sigv4",wZ="aws.isVirtualHostableS3Bucket",_ee="url",an="getAttr",Ree="bucketArn",Ni="--",Cee="arnType",PZ="accesspoint",zM=t=>"accessPointName_ssa_"+t+Vt,cL="s3-object-lambda",Qm="s3-outposts",OZ="bucketPartition",bee="us-east-1",$Z="outpostType",Bn="name",Ym="s3",VM="{url#scheme}://{Bucket}.{url#authority}{url#path}",GR="{url#scheme}://{url#authority}{url#path}",kZ="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",MZ="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",LZ="https://{Bucket}.s3.{partitionResult#dnsSuffix}",NZ=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",FZ=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",uL="sigv4a",BZ="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",UZ="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",GZ="https://s3.{partitionResult#dnsSuffix}",qZ={[Ke]:"UseFIPS"},HZ={[Ke]:"UseDualStack"},cr={[Ke]:"Bucket"},WM={fn:an,[he]:[{[Ke]:yee},Bn]},jZ={[Ke]:_ee},md={[Ke]:"Region"},Fi={[Ke]:Ree},zZ={[Ke]:Cee},KM={[Ke]:"accessPointName_ssa_1"},qR={fn:an,[he]:[Fi,"region"]},VZ={[Ke]:Eee},QM={fn:an,[he]:[Fi,"service"]},WZ={fn:an,[he]:[Fi,"accountId"]},HR={[See]:"S3Express",[ri]:[{[io]:!0,[Bn]:"{_s3e_auth}",[ao]:"s3express",[Ui]:"{Region}"}]},KZ={[See]:"S3Express",[ri]:[{[io]:!0,[Bn]:Gi,[ao]:"s3express",[Ui]:"{Region}"}]},jR={[ri]:[{[io]:!0,[Bn]:uL,[ao]:Qm,[aL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Qm,[Ui]:"{Region}"}]},ar={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:bee}]},vt={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{Region}"}]},YM={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:cL,[Ui]:"{bucketArn#region}"}]},Km={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{bucketArn#region}"}]},QZ={[ri]:[{[io]:!0,[Bn]:uL,[ao]:Qm,[aL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Qm,[Ui]:"{bucketArn#region}"}]},JM={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:cL,[Ui]:"{Region}"}]},YZ=[md],JZ=[{[Ke]:"Endpoint"}],XM=[cr],XZ=[cr,0,7,!0],ZZ=[Fi,"resourceId[1]"],oUe=["*"],eee={conditions:[[HM,YZ],[Jo,[{[Ke]:"Accelerate"},Ge]],[Jo,[qZ,Ge]],[Jo,[HZ,Ge]],[HM,JZ],[HM,XM],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,6,Ge]},Vt]},"--x-s3"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:XZ},Vt]},"--xa-s3"]],[vZ,YZ,yee],[sn,XZ,DZ],[Oe,[{[Ke]:DZ},"--op-s3"]],[sn,[cr,8,12,Ge],IZ],[sn,[cr,32,49,Ge],UR(2)],[sn,[cr,49,50,Ge],Eee],[Jo,[{[Ke]:"ForcePathStyle"},Ge]],[Oe,[WM,"aws-cn"]],[jM,[HZ,".dualstack",Vt],"_s3e_ds"],[Li,[{[Ke]:UR(2)},so]],[jM,[qZ,"-fips",Vt],"_s3e_fips"],[jM,[{fn:jr,[he]:[{[Ke]:"DisableS3ExpressSessionAuth"},so]},Gi,"sigv4-s3express"],"_s3e_auth"],[wZ,[cr,so]],["parseURL",JZ,_ee],[Jo,[{fn:jr,[he]:[{[Ke]:"UseS3ExpressControlEndpoint"},so]},Ge]],[wZ,[cr,Ge]],[Oe,[{fn:an,[he]:[jZ,"scheme"]},"http"]],[Li,[md,so]],["aws.parseArn",XM,Ree],[an,[{fn:"split",[he]:[cr,Ni,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,4,so]},Vt]},"arn:"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,16,18,Ge]},Vt]},Ni]],[Jo,[{fn:an,[he]:[jZ,"isIp"]},Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,21,23,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,27,29,Ge]},Vt]},Ni]],[Oe,[{[Ke]:IZ},"beta"]],["uriEncode",XM,"uri_encoded_bucket"],[Li,[md,Ge]],[Jo,[{fn:jr,[he]:[{[Ke]:"UseObjectLambdaEndpoint"},so]},Ge]],[an,[Fi,"resourceId[0]"],Cee],[Oe,[zZ,Vt]],[Oe,[zZ,PZ]],[an,ZZ,zM(1)],[Oe,[KM,Vt]],[Oe,[qR,Vt]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,14,16,Ge]},Vt]},Ni]],[Oe,[VZ,"e"]],[Oe,[VZ,"o"]],[Oe,[md,"aws-global"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,19,21,Ge]},Vt]},Ni]],[Oe,[QM,cL]],[Jo,[{fn:jr,[he]:[{[Ke]:"DisableAccessPoints"},so]},Ge]],[Oe,[QM,Qm]],[vZ,[qR],OZ],[Li,[KM,Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,26,28,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,15,17,Ge]},Vt]},Ni]],[an,[Fi,"resourceId[4]"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,20,22,Ge]},Vt]},Ni]],[Jo,[{[Ke]:"UseGlobalEndpoint"},Ge]],[Oe,[md,bee]],[an,ZZ,UR(1)],[Jo,[{fn:jr,[he]:[{[Ke]:"UseArnRegion"},Ge]},Ge]],[Li,[{[Ke]:UR(1)},so]],[an,[Fi,"resourceId[2]"],$Z],[Oe,[md,qR]],[Oe,[{fn:an,[he]:[{[Ke]:OZ},Bn]},WM]],[Jo,[{[Ke]:"DisableMultiRegionAccessPoints"},Ge]],[Li,[qR,Ge]],[Oe,[{fn:an,[he]:[Fi,"partition"]},WM]],[Oe,[WZ,Vt]],[Oe,[QM,Ym]],[Li,[WZ,so]],[an,[Fi,"resourceId[3]"],zM(2)],[Li,[KM,so]],[Oe,[{[Ke]:$Z},PZ]],[Li,[{[Ke]:zM(2)},so]]],results:[[te],[te,"Accelerate cannot be used with FIPS"],[te,"Cannot set dual-stack in combination with a custom endpoint."],[te,"A custom endpoint cannot be combined with FIPS"],[te,"A custom endpoint cannot be combined with S3 Accelerate"],[te,"Partition does not support FIPS"],[te,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",HR],[VM,HR],[te,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",KZ],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",HR],[te,"Unrecognized S3Express bucket name format."],[GR,HR],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",KZ],[te,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",jR],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",jR],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",jR],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",jR],[te,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[te,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[te,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[te,"Custom endpoint `{Endpoint}` was not a valid URI"],[te,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[kZ,ar],[VM,ar],[kZ,vt],[VM,vt],[MZ,ar],[MZ,vt],[LZ,ar],[LZ,vt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"Invalid region: region was not a valid DNS name."],[te,"S3 Object Lambda does not support Dual-stack"],[te,"S3 Object Lambda does not support S3 Accelerate"],[te,"Access points are not supported for this operation"],[te,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[te,"Invalid ARN: Missing account id"],[NZ(1),YM],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",YM],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",YM],[te,FZ(1)],[te,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[te,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[te,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[te,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[te,"Invalid ARN: bucket ARN is missing a region"],[te,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[te,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[te,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],[NZ(1),Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],[te,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[te,"S3 MRAP does not support dual-stack"],[te,"S3 MRAP does not support FIPS"],[te,"S3 MRAP does not support S3 Accelerate"],[te,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ri]:[{[io]:Ge,name:uL,[ao]:Ym,[aL]:oUe}]}],[te,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[te,"Invalid Access Point Name"],[te,"S3 Outposts does not support Dual-stack"],[te,"S3 Outposts does not support FIPS"],[te,"S3 Outposts does not support S3 Accelerate"],[te,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",QZ],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",QZ],[te,FZ(2)],[te,"Expected an outpost type `accesspoint`, found {outpostType}"],[te,"Invalid ARN: expected an access point name"],[te,"Invalid ARN: Expected a 4-component resource"],[te,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[te,"Invalid ARN: The Outpost Id was not set"],[te,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[te,"Invalid ARN: No ARN type specified"],[te,"Invalid ARN: `{Bucket}` was not a valid ARN"],[te,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[BZ,ar],[BZ,vt],[UZ,ar],[UZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[te,"Path-style addressing cannot be used with S3 Accelerate"],[GR,JM],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",JM],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",JM],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[GR,ar],[GR,vt],[GZ,ar],[GZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"A region must be set when sending requests to S3."]]},sUe=2,E=1e8,iUe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),aUe=E2e.from(iUe,sUe,eee.conditions,eee.results),cUe=new _2e({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Aee=(t,e={})=>cUe.get(t,()=>R2e(aUe,{endpointParams:t,logger:e.logger}));C2e.aws=OBe;var uUe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=fee(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await b2e(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},lUe=async(t,e,r)=>({operation:fee(e).operation,region:await pee(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),dUe=uUe(lUe);function xee(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Tee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var pUe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(hee.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},fUe=t=>{let e=[];switch(t.operation){default:e.push(xee(t)),e.push(Tee(t))}return e},mUe=pUe(Aee,fUe,{"aws.auth#sigv4":xee,"aws.auth#sigv4a":Tee}),gUe=t=>{let e=F2e(t),r=B2e(e);return Object.assign(r,{authSchemePreference:pee(t.authSchemePreference??[])})},hUe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),SUe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},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"}},k=o2e(SUe,"AmazonS3","S3Client",A2e),An={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},yUe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},EUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},z={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},vee={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},$t={Bucket:{type:"contextParams",name:"Bucket"}},_Ue={},RUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},OA={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},CUe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},ce=(t,e,r,n)=>[Ha(r)],yd=(t,e,r,n)=>[Ha(r),Sd(r)],bUe=(t,e,r,n)=>[Ha(r),jBe(r)],Pr=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],at=(t,e,r,n)=>[],za=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Ha(r)],AUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],xUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),Sd(r),dee(r)],TUe=(t,e,r,n)=>[Ha(r),Sd(r),dee(r)],Dee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],Iee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r)],vUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),zBe(r),Ha(r),Sd(r)],DUe=(t,e,r,n)=>[Sd(r)],IUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r),Sd(r)],rt=class t extends s2e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},VR=class t extends rt{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WR=class t extends rt{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XR=class t extends rt{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},ZR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eC=class t extends rt{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends rt{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sC=class t extends rt{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends rt{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends rt{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dC=class t extends rt{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wUe="Account",PUe="AnalyticsAndOperator",pC="AccelerateConfiguration",$A="AccessControlList",Ed="ACL",wee="AnalyticsConfigurationList",tu="AccessControlPolicy",Pee="AccessControlTranslation",Jm="AnalyticsConfiguration",OUe="AnnotationCount",$Ue="AccessDenied",Oee="AbortDate",kUe="AnnotationDirective",$ee="AnnotationEntry",MUe="AnalyticsExportDestination",LUe="AnalyticsFilter",NUe="AllowedHeaders",FUe="AllowedHeader",BUe="AccountId",kee="AbortIncompleteMultipartUpload",tee="AccessKeyId",UUe="AnnotationList",GUe="AnnotationLimitExceeded",qUe="AllowedMethods",HUe="AbortMultipartUpload",jUe="AbortMultipartUploadOutput",zUe="AbortMultipartUploadRequest",VUe="AllowedMethod",cg="AnnotationName",WUe="AnnotationNameTooLong",KUe="AllowedOrigins",QUe="AllowedOrigin",Mee="AnnotationPayload",YUe="AccessPointAlias",Lee="AccessPointArn",Nee="AnnotationPrefix",JUe="AllowQuotedRecordDelimiter",lL="AcceptRanges",Fee="AbortRuleId",fC="AbacStatus",XUe="AnalyticsS3BucketDestination",ZUe="ApplyServerSideEncryptionByDefault",eGe="ArchiveStatus",Bee="AccessTier",mC="AnnotationTableConfiguration",Uee="AnnotationTableConfigurationResult",tGe="AnnotationTableConfigurationUpdates",ug="And",rGe="Annotations",w="Bucket",dL="BucketArn",nGe="BucketAlreadyExists",oGe="BucketAccountId",sGe="BucketAlreadyOwnedByYou",Gee="BlockedEncryptionTypes",pL="BypassGovernanceRetention",iGe="BucketInfo",zr="BucketKeyEnabled",aGe="BucketLifecycleConfiguration",cGe="BucketLocationName",gC="BucketLoggingStatus",uGe="BucketLocationType",lGe="BucketNamespace",dGe="BucketName",qee="BytesProcessed",ree="BlockPublicAcls",nee="BlockPublicPolicy",fL="BucketRegion",Hee="BytesReturned",jee="BytesScanned",lg="Body",mL="Buckets",zee="Checksum",ge="ChecksumAlgorithm",pGe="CannedACL",fGe="CreateBucket",ZM="CreateBucketConfiguration",mGe="CreateBucketMetadataConfiguration",gGe="CreateBucketMetadataConfigurationRequest",hGe="CreateBucketMetadataTableConfiguration",SGe="CreateBucketMetadataTableConfigurationRequest",yGe="CreateBucketOutput",EGe="CreateBucketRequest",_d="CacheControl",ur="ChecksumCRC32",lr="ChecksumCRC32C",dr="ChecksumCRC64NVME",dg="Cache-Control",_Ge="CreationDate",pg="Content-Disposition",Rd="ContentDisposition",RGe="ContinuationEvent",fg="Content-Encoding",Cd="ContentEncoding",CGe="CloudFunction",bGe="CloudFunctionConfiguration",bd="ContentLanguage",mg="Content-Language",Ad="Content-Length",xd="ContentLength",Qe="Content-MD5",pr="ChecksumMD5",Ye="ContentMD5",AGe="CompletedMultipartUpload",xGe="CompleteMultipartUploadOutput",TGe="CreateMultipartUploadOutput",vGe="CompleteMultipartUploadResult",DGe="CompleteMultipartUploadRequest",IGe="CreateMultipartUploadRequest",Vee="CompleteMultipartUpload",wGe="CreateMultipartUpload",gL="ChecksumMode",PGe="CopyObject",OGe="CopyObjectOutput",Wee="CopyObjectResult",hC="CORSConfiguration",hL="CORSRules",SL="CORSRule",$Ge="CopyObjectRequest",kGe="CommonPrefix",MGe="CommonPrefixList",LGe="CompletedPartList",Kee="CopyPartResult",NGe="CompletedPart",kA="CommonPrefixes",yL="ContentRange",FGe="ConfirmRemoveSelfBucketAccess",Qee="Content-Range",Td="ConfigurationState",fr="ChecksumSHA1",mr="ChecksumSHA256",gr="ChecksumSHA512",Yee="CopySourceIfMatch",Jee="CopySourceIfModifiedSince",Xee="CopySourceIfNoneMatch",Zee="CopySourceIfUnmodifiedSince",BGe="CreateSessionOutput",UGe="CreateSessionResult",GGe="CopySourceRange",qGe="CreateSessionRequest",ete="CopySourceSSECustomerAlgorithm",EL="CopySourceSSECustomerKey",tte="CopySourceSSECustomerKeyMD5",rte="CSV",nte="CopySourceVersionId",HGe="CSVInput",jGe="CSVOutput",ote="CopySource",zGe="CreateSession",cn="ChecksumType",gg="Content-Type",VGe="ClientToken",vd="ContentType",WGe="CompressionType",Vr="ContinuationToken",hr="ChecksumXXHASH64",Sr="ChecksumXXHASH3",yr="ChecksumXXHASH128",ste="Condition",KGe="Code",QGe="Comments",ite="Contents",YGe="Cont",oee="Credentials",ru="Days",JGe="DaysAfterInitiation",XGe="DeleteBucket",ZGe="DeleteBucketAnalyticsConfiguration",e4e="DeleteBucketAnalyticsConfigurationRequest",t4e="DeleteBucketCors",r4e="DeleteBucketCorsRequest",n4e="DeleteBucketEncryption",o4e="DeleteBucketEncryptionRequest",s4e="DeleteBucketInventoryConfiguration",i4e="DeleteBucketInventoryConfigurationRequest",a4e="DeleteBucketIntelligentTieringConfiguration",c4e="DeleteBucketIntelligentTieringConfigurationRequest",u4e="DeleteBucketLifecycle",l4e="DeleteBucketLifecycleRequest",d4e="DeleteBucketMetadataConfiguration",p4e="DeleteBucketMetadataConfigurationRequest",f4e="DeleteBucketMetricsConfigurationRequest",m4e="DeleteBucketMetricsConfiguration",g4e="DeleteBucketMetadataTableConfiguration",h4e="DeleteBucketMetadataTableConfigurationRequest",S4e="DeleteBucketOwnershipControls",y4e="DeleteBucketOwnershipControlsRequest",E4e="DeleteBucketPolicy",_4e="DeleteBucketPolicyRequest",R4e="DeleteBucketRequest",C4e="DeleteBucketReplicationRequest",b4e="DeleteBucketReplication",A4e="DeleteBucketTagging",x4e="DeleteBucketTaggingRequest",T4e="DeleteBucketWebsite",v4e="DeleteBucketWebsiteRequest",D4e="DataExport",I4e="DefaultEventHold",w4e="DestinationIfMatch",P4e="DestinationIfModifiedSince",O4e="DestinationIfNoneMatch",$4e="DestinationIfUnmodifiedSince",nu="DeleteMarker",k4e="DeleteMarkerEntry",ate="DeleteMarkerReplication",M4e="DeleteMarkerVersionId",cte="DeleteMarkers",_L="DisplayName",L4e="DeletedObject",N4e="DeleteObjectAnnotation",F4e="DeleteObjectAnnotationOutput",B4e="DeleteObjectAnnotationRequest",U4e="DeleteObjectOutput",G4e="DeleteObjectsOutput",q4e="DeleteObjectRequest",H4e="DeleteObjectsRequest",j4e="DeleteObjectTagging",z4e="DeleteObjectTaggingOutput",V4e="DeleteObjectTaggingRequest",W4e="DeletedObjects",K4e="DeleteObject",Q4e="DeleteObjects",Y4e="DeletePublicAccessBlock",J4e="DeletePublicAccessBlockRequest",X4e="DataRedundancy",ute="DefaultRetention",Z4e="DeleteResult",lte="DestinationResult",dte="Date",eL="Delete",eqe="Deleted",Va="Delimiter",MA="Destination",tqe="Description",pte="Details",Dd="Error",rqe="EmailAddress",fte="EventBridgeConfiguration",L="ExpectedBucketOwner",ou="EncryptionConfiguration",mte="ErrorCode",nqe="ErrorDetails",RL="ErrorDocument",oqe="EndEvent",sqe="ExposeHeaders",gte="EventHoldDuration",iqe="EventHold",aqe="ExposeHeader",hte="ErrorMessage",cqe="ExpiredObjectDeleteMarker",Ste="ExistingObjectReplication",SC="ExpiresString",yte="ExpectedSourceBucketOwner",lt="ETag",uqe="EncryptionTypeList",lqe="EncryptionTypeMismatch",CL="EncryptionType",Wa="EncodingType",dqe="EventThreshold",Ete="ExpressionType",bL="Encryption",pqe="Enabled",_te="End",Rte="Errors",AL="Events",xL="Event",ti="Expiration",Xo="Expires",Cte="Expression",qi="Filter",bte="FieldDelimiter",fqe="FileHeaderInfo",mqe="FetchOwner",Ate="FilterRule",gqe="FilterRuleList",hqe="FilterRules",Sqe="Field",xte="Format",yqe="Frequency",LA="Grants",Eqe="GetBucketAbac",_qe="GetBucketAccelerateConfiguration",Rqe="GetBucketAccelerateConfigurationOutput",Cqe="GetBucketAnalyticsConfigurationOutput",bqe="GetBucketAccelerateConfigurationRequest",Aqe="GetBucketAnalyticsConfigurationRequest",xqe="GetBucketAnalyticsConfiguration",Tqe="GetBucketAbacOutput",vqe="GetBucketAclOutput",Dqe="GetBucketAbacRequest",Iqe="GetBucketAclRequest",wqe="GetBucketAcl",Pqe="GetBucketCors",Oqe="GetBucketCorsOutput",$qe="GetBucketCorsRequest",kqe="GetBucketEncryption",Mqe="GetBucketEncryptionOutput",Lqe="GetBucketEncryptionRequest",Nqe="GetBucketInventoryConfiguration",Fqe="GetBucketInventoryConfigurationOutput",Bqe="GetBucketInventoryConfigurationRequest",Uqe="GetBucketIntelligentTieringConfiguration",Gqe="GetBucketIntelligentTieringConfigurationOutput",qqe="GetBucketIntelligentTieringConfigurationRequest",Hqe="GetBucketLocation",jqe="GetBucketLifecycleConfiguration",zqe="GetBucketLifecycleConfigurationOutput",Vqe="GetBucketLifecycleConfigurationRequest",Wqe="GetBucketLocationOutput",Kqe="GetBucketLoggingOutput",Qqe="GetBucketLocationRequest",Yqe="GetBucketLoggingRequest",Jqe="GetBucketLogging",Xqe="GetBucketMetadataConfiguration",Zqe="GetBucketMetadataConfigurationOutput",eHe="GetBucketMetricsConfigurationOutput",Tte="GetBucketMetadataConfigurationResult",tHe="GetBucketMetadataConfigurationRequest",rHe="GetBucketMetricsConfigurationRequest",nHe="GetBucketMetricsConfiguration",oHe="GetBucketMetadataTableConfiguration",sHe="GetBucketMetadataTableConfigurationOutput",vte="GetBucketMetadataTableConfigurationResult",iHe="GetBucketMetadataTableConfigurationRequest",aHe="GetBucketNotificationConfiguration",cHe="GetBucketNotificationConfigurationRequest",uHe="GetBucketOwnershipControls",lHe="GetBucketOwnershipControlsOutput",dHe="GetBucketOwnershipControlsRequest",pHe="GetBucketPolicy",fHe="GetBucketPolicyOutput",mHe="GetBucketPolicyRequest",gHe="GetBucketPolicyStatus",hHe="GetBucketPolicyStatusOutput",SHe="GetBucketPolicyStatusRequest",yHe="GetBucketReplication",EHe="GetBucketReplicationOutput",_He="GetBucketRequestPayment",RHe="GetBucketRequestPaymentOutput",CHe="GetBucketRequestPaymentRequest",bHe="GetBucketReplicationRequest",AHe="GetBucketTagging",xHe="GetBucketTaggingOutput",THe="GetBucketTaggingRequest",vHe="GetBucketVersioning",DHe="GetBucketVersioningOutput",IHe="GetBucketVersioningRequest",wHe="GetBucketWebsite",PHe="GetBucketWebsiteOutput",OHe="GetBucketWebsiteRequest",Id="GrantFullControl",Dte="GlacierJobParameters",$He="GetObject",kHe="GetObjectAcl",MHe="GetObjectAclOutput",LHe="GetObjectAnnotationOutput",NHe="GetObjectAttributesOutput",FHe="GetObjectAttributesParts",BHe="GetObjectAclRequest",UHe="GetObjectAnnotationRequest",GHe="GetObjectAttributesResponse",qHe="GetObjectAttributesRequest",HHe="GetObjectAnnotation",jHe="GetObjectAttributes",zHe="GetObjectLockConfiguration",VHe="GetObjectLockConfigurationOutput",WHe="GetObjectLockConfigurationRequest",KHe="GetObjectLegalHold",QHe="GetObjectLegalHoldOutput",YHe="GetObjectLegalHoldRequest",JHe="GetObjectOutput",XHe="GetObjectRequest",ZHe="GetObjectRetentionOutput",eje="GetObjectRetentionRequest",tje="GetObjectRetention",rje="GetObjectTagging",nje="GetObjectTaggingOutput",oje="GetObjectTorrentOutput",sje="GetObjectTaggingRequest",ije="GetObjectTorrentRequest",aje="GetObjectTorrent",cje="GetPublicAccessBlock",uje="GetPublicAccessBlockOutput",lje="GetPublicAccessBlockRequest",wd="GrantRead",Pd="GrantReadACP",TL="GrantWrite",Od="GrantWriteACP",vL="Grant",DL="Grantee",dje="HeadBucket",pje="HeadBucketOutput",fje="HeadBucketRequest",mje="HttpErrorCodeReturnedEquals",Ite="HostName",gje="HeadObject",hje="HeadObjectOutput",Sje="HeadObjectRequest",yje="HttpRedirectCode",Wt="Id",Eje="InvalidAnnotationName",Xm="InventoryConfiguration",wte="InventoryConfigurationList",$d="ID",IL="IndexDocument",_je="InventoryDestination",Rje="IsEnabled",Cje="InventoryEncryption",bje="InventoryFilter",Pte="IsLatest",kd="IfMatch",Aje="IfMatchInitiatedTime",xje="IfMatchLastModifiedTime",Tje="IfMatchSize",wL="If-Modified-Since",Ote="IfModifiedSince",vje="InitiateMultipartUploadResult",su="If-Match",hg="IfNoneMatch",Md="If-None-Match",Dje="InventoryOptionalFields",Ije="InvalidObjectState",wje="IncludedObjectVersions",Pje="InvalidPrefix",see="IgnorePublicAcls",Oje="IdempotencyParameterMismatch",iee="IsPublic",$je="InvalidRequest",kje="IsRestoreInProgress",PL="InputSerialization",Mje="InventoryS3BucketDestination",Lje="InventorySchedule",ni="IsTruncated",Nje="IntelligentTieringAndOperator",Zm="IntelligentTieringConfiguration",$te="IntelligentTieringConfigurationList",kte="InventoryTableConfigurationResult",Fje="InventoryTableConfigurationUpdates",yC="InventoryTableConfiguration",Bje="IntelligentTieringFilter",Mte="IfUnmodifiedSince",OL="If-Unmodified-Since",Uje="InvalidWriteOffset",$L="Initiator",Gje="Initiated",Lte="JSON",qje="JSONInput",Hje="JSONOutput",EC="JournalTableConfiguration",Nte="JournalTableConfigurationResult",jje="JournalTableConfigurationUpdates",le="Key",zje="KeyCount",Vje="KeyId",Wje="KmsKeyArn",NA="KeyMarker",Kje="KMSContext",Qje="KMSKeyArn",Yje="KMSKeyId",Jje="KMSMasterKeyID",Xje="KeyPrefixEquals",_C="Location",Zje="ListAllMyBucketsResult",e6e="ListAllMyDirectoryBucketsResult",t6e="ListBuckets",r6e="ListBucketAnalyticsConfigurations",n6e="ListBucketAnalyticsConfigurationsOutput",o6e="ListBucketAnalyticsConfigurationResult",s6e="ListBucketAnalyticsConfigurationsRequest",i6e="ListBucketInventoryConfigurations",a6e="ListBucketInventoryConfigurationsOutput",c6e="ListBucketInventoryConfigurationsRequest",u6e="ListBucketIntelligentTieringConfigurations",l6e="ListBucketIntelligentTieringConfigurationsOutput",d6e="ListBucketIntelligentTieringConfigurationsRequest",p6e="ListBucketMetricsConfigurations",f6e="ListBucketMetricsConfigurationsOutput",m6e="ListBucketMetricsConfigurationsRequest",g6e="ListBucketsOutput",h6e="ListBucketsRequest",Fte="ListBucketResult",tL="LocationConstraint",rL="LifecycleConfiguration",S6e="ListDirectoryBuckets",y6e="ListDirectoryBucketsOutput",E6e="ListDirectoryBucketsRequest",kL="LoggingEnabled",_6e="LifecycleExpiration",R6e="LambdaFunctionArn",C6e="LambdaFunctionConfiguration",b6e="LambdaFunctionConfigurationList",A6e="LambdaFunctionConfigurations",RC="LegalHold",x6e="LocationInfo",T6e="ListInventoryConfigurationsResult",co="LastModified",v6e="ListMetricsConfigurationsResult",D6e="LastModifiedTime",I6e="ListMultipartUploads",w6e="ListMultipartUploadsOutput",P6e="ListMultipartUploadsResult",O6e="ListMultipartUploadsRequest",FA="Last-Modified",$6e="ListObjects",k6e="ListObjectAnnotations",M6e="ListObjectAnnotationsOutput",L6e="ListObjectAnnotationsRequest",N6e="ListObjectsOutput",F6e="ListObjectsRequest",B6e="ListObjectsV2",U6e="ListObjectsV2Output",G6e="ListObjectVersionsOutput",q6e="ListObjectsV2Request",H6e="ListObjectVersionsRequest",j6e="ListObjectVersions",z6e="ListParts",V6e="ListPartsOutput",W6e="ListPartsResult",K6e="ListPartsRequest",Q6e="LifecycleRule",Y6e="LifecycleRuleAndOperator",J6e="LifecycleRuleFilter",X6e="LifecycleRules",Z6e="ListVersionsResult",Ld="Metadata",e5e="MetricsAndOperator",Bte="MaxAnnotationResults",t5e="MaxAgeSeconds",r5e="MaxBuckets",nL="MetadataConfiguration",Ute="MetricsConfigurationList",Gte="MetadataConfigurationResult",eg="MetricsConfiguration",n5e="MetadataDirective",o5e="MaxDirectoryBuckets",qte="MfaDelete",Hte="MetadataEntry",s5e="MetricsFilter",ML="MFA",jte="MFADelete",Nd="MaxKeys",LL="MissingMeta",i5e="MpuObjectSize",BA="MaxParts",oL="MetadataTableConfiguration",zte="MetadataTableConfigurationResult",a5e="MetadataTableEncryptionConfiguration",Vte="MultipartUpload",c5e="MultipartUploadList",Wte="MaxUploads",Kte="Marker",Qte="Metrics",u5e="Message",l5e="Minutes",Yte="Mode",iu="Name",sL="NotificationConfiguration",d5e="NotificationConfigurationFilter",Fd="NextContinuationToken",Jte="NoncurrentDays",p5e="NonEmptyKmsKeyArnString",f5e="NotFound",Xte="NextKeyMarker",m5e="NextMarker",Zte="NewerNoncurrentVersions",ere="NextPartNumberMarker",g5e="NoSuchAnnotation",h5e="NoSuchBucket",S5e="NoSuchKey",y5e="NoSuchUpload",E5e="NextUploadIdMarker",tre="NoncurrentVersionExpiration",_5e="NextVersionIdMarker",R5e="NoncurrentVersionTransitions",C5e="NoncurrentVersionTransitionList",rre="NoncurrentVersionTransition",es="Owner",b5e="ObjectAttributes",A5e="ObjectAlreadyInActiveTierError",CC="OwnershipControls",x5e="OwnershipControlsRule",T5e="OwnershipControlsRules",nre="ObjectEncryption",v5e="OptionalFields",D5e="ObjectIdentifier",I5e="ObjectIdentifierList",ore="ObjectIfMatch",sre="OutputLocation",bC="ObjectLockConfiguration",w5e="ObjectLockEnabled",P5e="ObjectLockEnabledForBucket",Sg="ObjectLockEventHold",yg="ObjectLockEventHoldDurationDays",Eg="ObjectLockEventHoldDurationYears",O5e="ObjectLockLegalHold",Bd="ObjectLockLegalHoldStatus",Ud="ObjectLockMode",$5e="ObjectLockRetention",Gd="ObjectLockRetainUntilDate",k5e="ObjectLockRule",M5e="ObjectList",L5e="ObjectNotInActiveTierError",ire="ObjectOwnership",NL="OptionalObjectAttributes",N5e="ObjectParts",F5e="ObjectPart",B5e="ObjectSize",are="ObjectSizeGreaterThan",cre="ObjectSizeLessThan",U5e="OutputSchemaVersion",FL="OutputSerialization",G5e="ObjectVersion",UA="ObjectVersionId",q5e="ObjectVersionList",H5e="Objects",ure="Object",Je="Prefix",AC="PublicAccessBlockConfiguration",j5e="PutBucketAbac",z5e="PutBucketAccelerateConfiguration",V5e="PutBucketAccelerateConfigurationRequest",W5e="PutBucketAnalyticsConfigurationRequest",K5e="PutBucketAnalyticsConfiguration",Q5e="PutBucketAbacRequest",Y5e="PutBucketAclRequest",J5e="PutBucketAcl",X5e="PutBucketCors",Z5e="PutBucketCorsRequest",eze="PutBucketEncryption",tze="PutBucketEncryptionRequest",rze="PutBucketInventoryConfiguration",nze="PutBucketInventoryConfigurationRequest",oze="PutBucketIntelligentTieringConfiguration",sze="PutBucketIntelligentTieringConfigurationRequest",ize="PutBucketLogging",aze="PutBucketLifecycleConfiguration",cze="PutBucketLifecycleConfigurationOutput",uze="PutBucketLifecycleConfigurationRequest",lze="PutBucketLoggingRequest",dze="PutBucketMetricsConfiguration",pze="PutBucketMetricsConfigurationRequest",fze="PutBucketNotificationConfiguration",mze="PutBucketNotificationConfigurationRequest",gze="PutBucketOwnershipControls",hze="PutBucketOwnershipControlsRequest",Sze="PutBucketPolicy",yze="PutBucketPolicyRequest",Eze="PutBucketReplication",_ze="PutBucketRequestPayment",Rze="PutBucketRequestPaymentRequest",Cze="PutBucketReplicationRequest",bze="PutBucketTagging",Aze="PutBucketTaggingRequest",xze="PutBucketVersioning",Tze="PutBucketVersioningRequest",vze="PutBucketWebsite",Dze="PutBucketWebsiteRequest",GA="PartsCount",Ize="PartitionDateSource",wze="ProgressEvent",Pze="ParquetInput",Oze="PartsList",au="PartNumber",qA="PartNumberMarker",$ze="PutObject",kze="PutObjectAcl",Mze="PutObjectAclOutput",Lze="PutObjectAnnotationOutput",Nze="PutObjectAclRequest",Fze="PutObjectAnnotationRequest",Bze="PutObjectAnnotation",Uze="PutObjectLockConfiguration",Gze="PutObjectLockConfigurationOutput",qze="PutObjectLockConfigurationRequest",Hze="PutObjectLegalHold",jze="PutObjectLegalHoldOutput",zze="PutObjectLegalHoldRequest",Vze="PutObjectOutput",Wze="PutObjectRequest",Kze="PutObjectRetentionOutput",Qze="PutObjectRetentionRequest",Yze="PutObjectRetention",Jze="PutObjectTagging",Xze="PutObjectTaggingOutput",Zze="PutObjectTaggingRequest",xC="PartitionedPrefix",eVe="PutPublicAccessBlock",tVe="PutPublicAccessBlockRequest",lre="PolicyStatus",HA="Parts",jA="Part",rVe="Parquet",dre="Payer",pre="Payload",fre="Permission",mre="Policy",gre="Progress",nVe="Priority",hre="Protocol",oVe="Quiet",sVe="QueueArn",Sre="QuoteCharacter",iVe="QueueConfigurationList",aVe="QueueConfigurations",yre="QueueConfiguration",Ere="QuoteEscapeCharacter",cVe="QuoteFields",uVe="Queue",zA="Role",BL="RedirectAllRequestsTo",$e="RequestCharged",_re="ResponseCacheControl",Rre="ResponseContentDisposition",Cre="ResponseContentEncoding",bre="ResponseContentLanguage",Are="ResponseContentType",TC="ReplicationConfiguration",UL="RecordDelimiter",xre="ResponseExpires",lVe="RestoreExpiryDate",VA="RecordExpiration",dVe="RecordsEvent",pVe="ReplicaKmsKeyID",fVe="ReplaceKeyPrefixWith",mVe="ReplaceKeyWith",Tre="ReplicaModifications",gVe="RenameObject",hVe="RenameObjectOutput",SVe="RestoreObjectOutput",yVe="RestoreOutputPath",EVe="RenameObjectRequest",_Ve="RestoreObjectRequest",RVe="RestoreObject",xe="RequestPayer",aee="RestrictPublicBuckets",vC="RequestPaymentConfiguration",vre="RequestProgress",GL="RoutingRules",CVe="ReplicationRuleAndOperator",bVe="ReplicationRuleFilter",AVe="ReplicationRule",xVe="ReplicationRules",TVe="RequestRoute",iL="RestoreRequest",Dre="RoutingRule",_g="ReplicationStatus",qL="RestoreStatus",vVe="RenameSource",Ire="ReplicationTime",DVe="ReplicationTimeValue",IVe="RequestToken",wVe="RetainUntilDate",DC="Range",HL="Restore",PVe="Records",wre="Redirect",IC="Retention",Rg="Rules",qd="Rule",Wr="Status",Pre="StartAfter",cee="SecretAccessKey",OVe="SseAlgorithm",$Ve="StreamingBlob",Ore="S3BucketDestination",Kr="StorageClass",$re="StorageClassAnalysis",kVe="StorageClassAnalysisDataExport",MVe="SessionCredentialValue",LVe="SessionCredentials",NVe="StatusCode",FVe="SkipDestinationValidation",BVe="StatsEvent",UVe="SourceIfMatch",GVe="SourceIfModifiedSince",qVe="SourceIfNoneMatch",HVe="SourceIfUnmodifiedSince",WA="SSE-KMS",kre="SseKmsEncryptedObjects",jVe="S3KeyFilter",zVe="S3Key",VVe="S3Location",WVe="SessionMode",KVe="SelectObjectContent",QVe="SelectObjectContentEventStream",YVe="SelectObjectContentOutput",JVe="SelectObjectContentRequest",Mre="SelectParameters",wC="SimplePrefix",Lre="ScanRange",Nre="SSE-S3",Fre="SourceSelectionCriteria",Qr="ServerSideEncryption",XVe="SSEAlgorithm",ZVe="ServerSideEncryptionByDefault",PC="ServerSideEncryptionConfiguration",Kt="SSECustomerAlgorithm",uo="SSECustomerKey",Qt="SSECustomerKeyMD5",jL="SSEKMS",eWe="SSEKMSEncryption",Hi="SSEKMSEncryptionContext",un="SSEKMSKeyId",tWe="ServerSideEncryptionRule",rWe="ServerSideEncryptionRules",Bre="SSES3",uee="SessionToken",Ure="S3TablesDestination",Gre="S3TablesDestinationResult",nWe="S3",oWe="Schedule",cu="Size",sWe="Start",qre="Stats",iWe="Suffix",Hd="Tags",KA="TableArn",aWe="TopicArn",cWe="TargetBucket",zL="TableBucketArn",uWe="TableBucketType",VL="TagCount",lWe="TopicConfigurationList",dWe="TopicConfigurations",Hre="TopicConfiguration",pWe="TaggingDirective",WL="TransitionDefaultMinimumObjectSize",jre="TargetGrants",fWe="TargetGrant",mWe="TieringList",gWe="TransitionList",hWe="TooManyParts",Cg="TableName",zre="TableNamespace",Vre="TargetObjectKeyFormat",SWe="TargetPrefix",yWe="TotalPartsCount",KL="TableStatus",QA="TagSet",lo="Tag",Zo="Tagging",Wre="Tier",EWe="Tierings",Kre="Tiering",_We="Time",Qre="Token",RWe="Topic",CWe="Transitions",Yre="Transition",bg="Type",bWe="Uploads",AWe="UpdateBucketMetadataAnnotationTableConfiguration",xWe="UpdateBucketMetadataAnnotationTableConfigurationRequest",TWe="UpdateBucketMetadataInventoryTableConfiguration",vWe="UpdateBucketMetadataInventoryTableConfigurationRequest",DWe="UpdateBucketMetadataJournalTableConfiguration",IWe="UpdateBucketMetadataJournalTableConfigurationRequest",Ka="UploadId",Jre="UploadIdMarker",Xre="UserMetadata",wWe="UnsupportedMediaType",PWe="UpdateObjectEncryption",OWe="UpdateObjectEncryptionRequest",$We="UpdateObjectEncryptionResponse",kWe="UploadPart",MWe="UploadPartCopy",LWe="UploadPartCopyOutput",NWe="UploadPartCopyRequest",FWe="UploadPartOutput",BWe="UploadPartRequest",UWe="URI",GWe="Upload",QL="Value",OC="VersioningConfiguration",Re="VersionId",Zre="VersionIdMarker",qWe="Versions",HWe="Version",$C="WebsiteConfiguration",jWe="WriteGetObjectResponse",zWe="WriteGetObjectResponseRequest",VWe="WriteOffsetBytes",Ag="WebsiteRedirectLocation",ene="Years",YL="annotationName",WWe="annotation-prefix",tne="accept-ranges",KWe="bucket-region",Dt="client",Qa="continuation-token",YA="delimiter",It="error",JL="eventPayload",QWe="endpoint",JA="encoding-type",YWe="fetch-owner",M="http",ve="httpChecksum",kt="httpError",l="httpHeader",JWe="hostLabel",Ce="httpPayload",jd="httpPrefixHeaders",U="httpQuery",rne="http://www.w3.org/2001/XMLSchema-instance",po="id",XWe="idempotencyToken",nne="key-marker",ZWe="marker",e8e="max-annotation-results",t8e="max-buckets",r8e="max-directory-buckets",XL="max-keys",n8e="max-parts",o8e="max-uploads",xg="prefix",XA="partNumber",s8e="part-number-marker",one="response-cache-control",sne="response-content-disposition",ine="response-content-encoding",ane="response-content-language",cne="response-content-type",une="response-expires",lne="smithy.ts.sdk.synthetic.com.amazonaws.s3",i8e="start-after",dne="streaming",Tg="uploadId",a8e="upload-id-marker",Yt="versionId",c8e="version-id-marker",pne="xsi",u8e="xmlAttribute",ne="xmlFlattened",v="xmlName",fne="xmlNamespace",zd="x-amz-acl",mne="x-amz-abort-date",l8e="x-amz-access-point-alias",gne="x-amz-abort-rule-id",d8e="x-amz-archive-status",hne="x-amz-bucket-arn",ZL="x-amz-bypass-governance-retention",p8e="x-amz-bucket-location-name",f8e="x-amz-bucket-location-type",m8e="x-amz-bucket-namespace",g8e="x-amz-bucket-object-lock-enabled",Sne="x-amz-bucket-object-lock-token",h8e="x-amz-bucket-region",eN="x-amz-checksum-algorithm",oi="x-amz-checksum-crc32",si="x-amz-checksum-crc32c",ii="x-amz-checksum-crc64nvme",ai="x-amz-checksum-md5",tN="x-amz-checksum-mode",S8e="x-amz-confirm-remove-self-bucket-access",ci="x-amz-checksum-sha1",ui="x-amz-checksum-sha256",li="x-amz-checksum-sha512",yne="x-amz-copy-source",Ene="x-amz-copy-source-if-match",_ne="x-amz-copy-source-if-modified-since",Rne="x-amz-copy-source-if-none-match",Cne="x-amz-copy-source-if-unmodified-since",y8e="x-amz-create-session-mode",E8e="x-amz-copy-source-range",bne="x-amz-copy-source-server-side-encryption-customer-algorithm",Ane="x-amz-copy-source-server-side-encryption-customer-key",xne="x-amz-copy-source-server-side-encryption-customer-key-MD5",Tne="x-amz-copy-source-version-id",Ya="x-amz-checksum-type",_8e="x-amz-client-token",di="x-amz-checksum-xxhash64",pi="x-amz-checksum-xxhash3",fi="x-amz-checksum-xxhash128",ZA="x-amz-delete-marker",vg="x-amz-expiration",N="x-amz-expected-bucket-owner",R8e="x-amz-fwd-error-code",C8e="x-amz-fwd-error-message",b8e="x-amz-fwd-header-Cache-Control",A8e="x-amz-fwd-header-Content-Disposition",x8e="x-amz-fwd-header-Content-Encoding",T8e="x-amz-fwd-header-Content-Language",v8e="x-amz-fwd-header-Content-Range",D8e="x-amz-fwd-header-Content-Type",I8e="x-amz-fwd-header-ETag",w8e="x-amz-fwd-header-Expires",P8e="x-amz-fwd-header-Last-Modified",O8e="x-amz-fwd-header-accept-ranges",$8e="x-amz-fwd-header-x-amz-checksum-crc32",k8e="x-amz-fwd-header-x-amz-checksum-crc32c",M8e="x-amz-fwd-header-x-amz-checksum-crc64nvme",L8e="x-amz-fwd-header-x-amz-checksum-md5",N8e="x-amz-fwd-header-x-amz-checksum-sha1",F8e="x-amz-fwd-header-x-amz-checksum-sha256",B8e="x-amz-fwd-header-x-amz-checksum-sha512",U8e="x-amz-fwd-header-x-amz-checksum-xxhash64",G8e="x-amz-fwd-header-x-amz-checksum-xxhash3",q8e="x-amz-fwd-header-x-amz-checksum-xxhash128",H8e="x-amz-fwd-header-x-amz-delete-marker",j8e="x-amz-fwd-header-x-amz-expiration",z8e="x-amz-fwd-header-x-amz-missing-meta",V8e="x-amz-fwd-header-x-amz-mp-parts-count",W8e="x-amz-fwd-header-x-amz-object-lock-legal-hold",K8e="x-amz-fwd-header-x-amz-object-lock-mode",Q8e="x-amz-fwd-header-x-amz-object-lock-retain-until-date",Y8e="x-amz-fwd-header-x-amz-restore",J8e="x-amz-fwd-header-x-amz-request-charged",X8e="x-amz-fwd-header-x-amz-replication-status",Z8e="x-amz-fwd-header-x-amz-storage-class",e9e="x-amz-fwd-header-x-amz-server-side-encryption",t9e="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",r9e="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",n9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",o9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",s9e="x-amz-fwd-header-x-amz-tagging-count",i9e="x-amz-fwd-header-x-amz-version-id",a9e="x-amz-fwd-status",Vd="x-amz-grant-full-control",Wd="x-amz-grant-read",Kd="x-amz-grant-read-acp",rN="x-amz-grant-write",Qd="x-amz-grant-write-acp",c9e="x-amz-if-match-initiated-time",u9e="x-amz-if-match-last-modified-time",l9e="x-amz-if-match-size",Yd="x-amz-meta-",nN="x-amz-mfa",d9e="x-amz-metadata-directive",vne="x-amz-missing-meta",p9e="x-amz-mp-object-size",f9e="x-amz-max-parts",Dne="x-amz-mp-parts-count",m9e="x-amz-object-attributes",g9e="x-amz-object-annotation-directive",Ine="x-amz-object-if-match",Dg="x-amz-object-lock-event-hold",Ig="x-amz-object-lock-event-hold-duration-days",wg="x-amz-object-lock-event-hold-duration-years",Pg="x-amz-object-lock-legal-hold",Og="x-amz-object-lock-mode",$g="x-amz-object-lock-retain-until-date",h9e="x-amz-object-ownership",oN="x-amz-optional-object-attributes",S9e="x-amz-object-size",ex="x-amz-object-version-id",y9e="x-amz-part-number-marker",wne="x-amz-restore",Ne="x-amz-request-charged",E9e="x-amz-restore-output-path",Te="x-amz-request-payer",_9e="x-amz-request-route",sN="x-amz-replication-status",R9e="x-amz-rename-source",C9e="x-amz-rename-source-if-match",b9e="x-amz-rename-source-if-modified-since",A9e="x-amz-rename-source-if-none-match",x9e="x-amz-rename-source-if-unmodified-since",T9e="x-amz-request-token",kg="x-amz-storage-class",ke="x-amz-sdk-checksum-algorithm",v9e="x-amz-skip-destination-validation",Pne="x-amz-source-expected-bucket-owner",ln="x-amz-server-side-encryption",Un="x-amz-server-side-encryption-aws-kms-key-id",Gn="x-amz-server-side-encryption-bucket-key-enabled",Ja="x-amz-server-side-encryption-context",Er="x-amz-server-side-encryption-customer-algorithm",ts="x-amz-server-side-encryption-customer-key",_r="x-amz-server-side-encryption-customer-key-MD5",iN="x-amz-tagging",One="x-amz-tagging-count",D9e="x-amz-tagging-directive",aN="x-amz-transition-default-minimum-object-size",mi="x-amz-version-id",I9e="x-amz-write-offset-bytes",Mg="x-amz-website-redirect-location",w9e="xsi:type",h="com.amazonaws.s3",$ne=new gee(lne),kne=[-3,lne,"S3ServiceException",0,[],[]];$ne.registerError(kne,rt);var Et=new gee(h),Mne=[-3,h,$Ue,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Mne,VR);var Lne=[-3,h,GUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Lne,iC);var Nne=[-3,h,WUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Nne,aC);var Fne=[-3,h,nGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Fne,KR);var Bne=[-3,h,sGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Bne,QR);var Une=[-3,h,lqe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Une,rC);var Gne=[-3,h,Oje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Gne,lC);var qne=[-3,h,Eje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(qne,cC);var Hne=[-3,h,Ije,{[It]:Dt,[kt]:403},[Kr,Bee],[0,0]];Et.registerError(Hne,XR);var jne=[-3,h,Pje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(jne,tC);var zne=[-3,h,$je,{[It]:Dt,[kt]:400},[],[]];Et.registerError(zne,nC);var Vne=[-3,h,Uje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Vne,oC);var Wne=[-3,h,g5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Wne,ZR);var Kne=[-3,h,h5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Kne,YR);var Qne=[-3,h,S5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Qne,JR);var Yne=[-3,h,y5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Yne,zR);var Jne=[-3,h,f5e,{[It]:Dt},[],[]];Et.registerError(Jne,eC);var Xne=[-3,h,A5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Xne,dC);var Zne=[-3,h,L5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Zne,WR);var eoe=[-3,h,hWe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(eoe,sC);var toe=[-3,h,wWe,{[It]:Dt,[kt]:415},[],[]];Et.registerError(toe,uC);var roe=[$ne,Et],noe=[0,h,EL,8,0],P9e=[0,h,p5e,8,0],lee=[0,h,MVe,8,0],rs=[0,h,uo,8,0],Xa=[0,h,Hi,8,0],Or=[0,h,un,8,0],uu=[0,h,$Ve,{[dne]:1},42],cN=[3,h,fC,0,[Wr],[0]],ooe=[3,h,kee,0,[JGe],[1]],soe=[3,h,jUe,0,[$e],[[0,{[l]:Ne}]]],ioe=[3,h,zUe,0,[w,le,Ka,xe,L,Aje],[[0,1],[0,1],[0,{[U]:Tg}],[0,{[l]:Te}],[0,{[l]:N}],[6,{[l]:c9e}]],3],aoe=[3,h,pC,0,[Wr],[0]],uN=[3,h,tu,0,[LA,es],[[()=>ux,{[v]:$A}],()=>gi]],coe=[3,h,Pee,0,[es],[0],1],uoe=[3,h,PUe,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],tx=[3,h,Jm,0,[Wt,$re,qi],[0,()=>Tue,[()=>Yue,0]],2],loe=[3,h,MUe,0,[Ore],[()=>doe],1],doe=[3,h,XUe,0,[xte,w,oGe,Je],[0,0,0,0],2],poe=[3,h,$ee,0,[cg,co,cu,lt,ge,_g],[0,4,1,0,[64,{[ne]:1}],0],3],foe=[3,h,mC,0,[Td,ou,zA],[0,()=>Jd,0],1],moe=[3,h,Uee,0,[Td,KL,Dd,Cg,KA,zA],[0,0,()=>Lg,0,0,0],1],goe=[3,h,tGe,0,[Td,ou,zA],[0,()=>Jd,0],1],hoe=[3,h,Gee,0,[CL],[[()=>N9e,{[ne]:1}]]],Soe=[3,h,w,0,[iu,_Ge,fL,dL],[0,4,0,0]],yoe=[3,h,iGe,0,[X4e,bg],[0,0]],Eoe=[3,h,aGe,0,[Rg],[[()=>Wue,{[ne]:1,[v]:qd}]],1],_oe=[3,h,gC,0,[kL],[[()=>hN,0]]],Roe=[3,h,zee,0,[ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn],[0,0,0,0,0,0,0,0,0,0,0]],Coe=[3,h,kGe,0,[Je],[0]],boe=[3,h,AGe,0,[HA],[[()=>k9e,{[ne]:1,[v]:jA}]]],Aoe=[3,h,NGe,0,[lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,au],[0,0,0,0,0,0,0,0,0,0,0,1]],xoe=[3,h,xGe,{[v]:vGe},[_C,w,le,ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,un,zr,$e],[0,0,0,[0,{[l]:vg}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:ln}],[0,{[l]:mi}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Toe=[3,h,DGe,0,[w,le,Ka,Vte,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,i5e,xe,L,kd,hg,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:Tg}],[()=>boe,{[Ce]:1,[v]:Vee}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:p9e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:su}],[0,{[l]:Md}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],voe=[3,h,ste,0,[mje,Xje],[0,0]],Doe=[3,h,RGe,0,[],[]],Ioe=[3,h,OGe,0,[Wee,ti,nte,Re,Qr,Kt,Qt,un,Hi,zr,$e],[[()=>Poe,16],[0,{[l]:vg}],[0,{[l]:Tne}],[0,{[l]:mi}],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],woe=[3,h,$Ge,0,[w,ote,le,Ed,_d,ge,Rd,Cd,bd,vd,Yee,Jee,Xee,Zee,Xo,Id,wd,Pd,Od,kd,hg,Ld,n5e,pWe,kUe,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,ete,EL,tte,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L,yte],[[0,1],[0,{[l]:yne}],[0,1],[0,{[l]:zd}],[0,{[l]:dg}],[0,{[l]:eN}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Ene}],[4,{[l]:_ne}],[0,{[l]:Rne}],[4,{[l]:Cne}],[4,{[l]:Xo}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:su}],[0,{[l]:Md}],[128,{[jd]:Yd}],[0,{[l]:d9e}],[0,{[l]:D9e}],[0,{[l]:g9e}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:bne}],[()=>noe,{[l]:Ane}],[0,{[l]:xne}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}],[0,{[l]:Pne}]],3],Poe=[3,h,Wee,0,[lt,co,cn,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0,0]],Ooe=[3,h,Kee,0,[lt,co,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0]],$oe=[3,h,hC,0,[hL],[[()=>Vue,{[ne]:1,[v]:SL}]],1],koe=[3,h,SL,0,[qUe,KUe,$d,NUe,sqe,t5e],[[64,{[ne]:1,[v]:VUe}],[64,{[ne]:1,[v]:QUe}],0,[64,{[ne]:1,[v]:FUe}],[64,{[ne]:1,[v]:aqe}],1],2],Moe=[3,h,ZM,0,[tL,_C,w,Hd],[0,()=>Uae,()=>yoe,[()=>ji,0]]],Loe=[3,h,gGe,0,[w,nL,Ye,ge,L],[[0,1],[()=>Gae,{[Ce]:1,[v]:nL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Noe=[3,h,SGe,0,[w,oL,Ye,ge,L],[[0,1],[()=>jae,{[Ce]:1,[v]:oL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Foe=[3,h,yGe,0,[_C,dL],[[0,{[l]:_C}],[0,{[l]:hne}]]],Boe=[3,h,EGe,0,[w,Ed,ZM,Id,wd,Pd,TL,Od,P5e,ire,lGe],[[0,1],[0,{[l]:zd}],[()=>Moe,{[Ce]:1,[v]:ZM}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[2,{[l]:g8e}],[0,{[l]:h9e}],[0,{[l]:m8e}]],1],Uoe=[3,h,TGe,{[v]:vje},[Oee,Fee,w,le,Ka,Qr,Kt,Qt,un,Hi,zr,$e,ge,cn],[[4,{[l]:mne}],[0,{[l]:gne}],[0,{[v]:w}],0,0,[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}],[0,{[l]:eN}],[0,{[l]:Ya}]]],Goe=[3,h,IGe,0,[w,le,Ed,_d,Rd,Cd,bd,vd,Xo,Id,wd,Pd,Od,Ld,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L,ge,cn],[[0,1],[0,1],[0,{[l]:zd}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[4,{[l]:Xo}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[128,{[jd]:Yd}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}],[0,{[l]:eN}],[0,{[l]:Ya}]],2],qoe=[3,h,BGe,{[v]:UGe},[oee,Qr,un,Hi,zr],[[()=>Sue,{[v]:oee}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Hoe=[3,h,qGe,0,[w,WVe,Qr,un,Hi,zr],[[0,1],[0,{[l]:y8e}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],joe=[3,h,HGe,0,[fqe,QGe,Ere,UL,bte,Sre,JUe],[0,0,0,0,0,0,2]],zoe=[3,h,jGe,0,[cVe,Ere,UL,bte,Sre],[0,0,0,0,0]],Voe=[3,h,ute,0,[Yte,ru,ene,I4e],[0,1,1,()=>dN]],Woe=[3,h,eL,0,[H5e,oVe],[[()=>W9e,{[ne]:1,[v]:ure}],2],1],Koe=[3,h,e4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Qoe=[3,h,r4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Yoe=[3,h,o4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Joe=[3,h,c4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Xoe=[3,h,i4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Zoe=[3,h,l4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ese=[3,h,p4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],tse=[3,h,h4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],rse=[3,h,f4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],nse=[3,h,y4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ose=[3,h,_4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],sse=[3,h,C4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ise=[3,h,R4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ase=[3,h,x4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],cse=[3,h,v4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],use=[3,h,L4e,0,[le,Re,nu,M4e],[0,0,2,0]],lse=[3,h,k4e,0,[es,le,Re,Pte,co],[()=>gi,0,0,2,4]],dse=[3,h,ate,0,[Wr],[0]],pse=[3,h,F4e,0,[UA,$e],[[0,{[l]:ex}],[0,{[l]:Ne}]]],fse=[3,h,B4e,0,[w,le,cg,Re,xe,L,ore],[[0,1],[0,1],[0,{[U]:YL}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Ine}]],3],mse=[3,h,U4e,0,[nu,Re,$e],[[2,{[l]:ZA}],[0,{[l]:mi}],[0,{[l]:Ne}]]],gse=[3,h,q4e,0,[w,le,ML,Re,xe,pL,L,kd,xje,Tje],[[0,1],[0,1],[0,{[l]:nN}],[0,{[U]:Yt}],[0,{[l]:Te}],[2,{[l]:ZL}],[0,{[l]:N}],[0,{[l]:su}],[6,{[l]:u9e}],[1,{[l]:l9e}]],2],hse=[3,h,G4e,{[v]:Z4e},[eqe,$e,Rte],[[()=>M9e,{[ne]:1}],[0,{[l]:Ne}],[()=>F9e,{[ne]:1,[v]:Dd}]]],Sse=[3,h,H4e,0,[w,eL,ML,xe,pL,L,ge],[[0,1],[()=>Woe,{[Ce]:1,[v]:eL}],[0,{[l]:nN}],[0,{[l]:Te}],[2,{[l]:ZL}],[0,{[l]:N}],[0,{[l]:ke}]],2],yse=[3,h,z4e,0,[Re],[[0,{[l]:mi}]]],Ese=[3,h,V4e,0,[w,le,Re,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}]],2],_se=[3,h,J4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rse=[3,h,MA,0,[w,wUe,Kr,Pee,ou,Ire,Qte],[0,0,0,()=>coe,()=>Ase,()=>eue,()=>Vae],1],Cse=[3,h,lte,0,[uWe,zL,zre],[0,0,0]],bse=[3,h,bL,0,[CL,Yje,Kje],[0,[()=>Or,0],0],1],Ase=[3,h,ou,0,[pVe],[0]],xse=[3,h,oqe,0,[],[]],Tse=[3,h,Dd,0,[le,Re,KGe,u5e],[0,0,0,0]],Lg=[3,h,nqe,0,[mte,hte],[0,0]],lN=[3,h,RL,0,[le],[0],1],vse=[3,h,fte,0,[],[]],dN=[3,h,gte,0,[ru,ene],[1,1]],Dse=[3,h,Ste,0,[Wr],[0],1],Ise=[3,h,Ate,0,[iu,QL],[0,0]],wse=[3,h,Tqe,0,[fC],[[()=>cN,16]]],Pse=[3,h,Dqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Ose=[3,h,Rqe,{[v]:pC},[Wr,$e],[0,[0,{[l]:Ne}]]],$se=[3,h,bqe,0,[w,L,xe],[[0,1],[0,{[l]:N}],[0,{[l]:Te}]],1],kse=[3,h,vqe,{[v]:tu},[es,LA],[()=>gi,[()=>ux,{[v]:$A}]]],Mse=[3,h,Iqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Lse=[3,h,Cqe,0,[Jm],[[()=>tx,16]]],Nse=[3,h,Aqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Fse=[3,h,Oqe,{[v]:hC},[hL],[[()=>Vue,{[ne]:1,[v]:SL}]]],Bse=[3,h,$qe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Use=[3,h,Mqe,0,[PC],[[()=>DN,16]]],Gse=[3,h,Lqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],qse=[3,h,Gqe,0,[Zm],[[()=>rx,16]]],Hse=[3,h,qqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],jse=[3,h,Fqe,0,[Xm],[[()=>nx,16]]],zse=[3,h,Bqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Vse=[3,h,zqe,{[v]:rL},[Rg,WL],[[()=>Wue,{[ne]:1,[v]:qd}],[0,{[l]:aN}]]],Wse=[3,h,Vqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kse=[3,h,Wqe,{[v]:tL},[tL],[0]],Qse=[3,h,Qqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Yse=[3,h,Kqe,{[v]:gC},[kL],[[()=>hN,0]]],Jse=[3,h,Yqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xse=[3,h,Zqe,0,[Tte],[[()=>eie,16]]],Zse=[3,h,tHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],eie=[3,h,Tte,0,[Gte],[()=>qae],1],tie=[3,h,sHe,0,[vte],[[()=>nie,16]]],rie=[3,h,iHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],nie=[3,h,vte,0,[zte,Wr,Dd],[()=>zae,0,()=>Lg],2],oie=[3,h,eHe,0,[eg],[[()=>ox,16]]],sie=[3,h,rHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],iie=[3,h,cHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],aie=[3,h,lHe,0,[CC],[[()=>CN,16]]],cie=[3,h,dHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],uie=[3,h,fHe,0,[mre],[[0,16]]],lie=[3,h,mHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],die=[3,h,hHe,0,[lre],[[()=>ace,16]]],pie=[3,h,SHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],fie=[3,h,EHe,0,[TC],[[()=>xN,16]]],mie=[3,h,bHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],gie=[3,h,RHe,{[v]:vC},[dre],[0]],hie=[3,h,CHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Sie=[3,h,xHe,{[v]:Zo},[QA],[[()=>ji,0]],1],yie=[3,h,THe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Eie=[3,h,DHe,{[v]:OC},[Wr,jte],[0,[0,{[v]:qte}]]],_ie=[3,h,IHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rie=[3,h,PHe,{[v]:$C},[BL,IL,RL,GL],[()=>AN,()=>fN,()=>lN,[()=>Que,0]]],Cie=[3,h,OHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],bie=[3,h,MHe,{[v]:tu},[es,LA,$e],[()=>gi,[()=>ux,{[v]:$A}],[0,{[l]:Ne}]]],Aie=[3,h,BHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],xie=[3,h,LHe,0,[Mee,UA,co,xd,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e,_g],[[()=>uu,16],[0,{[l]:ex}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}],[0,{[l]:sN}]]],Tie=[3,h,UHe,0,[w,le,cg,Re,xe,L,gL],[[0,1],[0,1],[0,{[U]:YL}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:tN}]],3],vie=[3,h,NHe,{[v]:GHe},[nu,co,Re,$e,lt,zee,N5e,Kr,B5e],[[2,{[l]:ZA}],[4,{[l]:FA}],[0,{[l]:mi}],[0,{[l]:Ne}],0,()=>Roe,[()=>Die,0],0,1]],Die=[3,h,FHe,0,[yWe,qA,ere,BA,ni,HA],[[1,{[v]:GA}],0,0,1,2,[()=>J9e,{[ne]:1,[v]:jA}]]],Iie=[3,h,qHe,0,[w,le,b5e,Re,BA,qA,Kt,uo,Qt,xe,L],[[0,1],[0,1],[64,{[l]:m9e}],[0,{[U]:Yt}],[1,{[l]:f9e}],[0,{[l]:y9e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],3],wie=[3,h,QHe,0,[RC],[[()=>EN,{[Ce]:1,[v]:RC}]]],Pie=[3,h,YHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Oie=[3,h,VHe,0,[bC],[[()=>yN,16]]],$ie=[3,h,WHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],kie=[3,h,JHe,0,[lg,nu,lL,ti,HL,co,xd,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,LL,Re,_d,Rd,Cd,bd,yL,vd,Xo,SC,Ag,Qr,Ld,Kt,Qt,un,zr,Kr,$e,_g,GA,VL,Ud,Gd,Bd,Sg,yg,Eg],[[()=>uu,16],[2,{[l]:ZA}],[0,{[l]:tne}],[0,{[l]:vg}],[0,{[l]:wne}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:vne}],[0,{[l]:mi}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:Qee}],[0,{[l]:gg}],[4,{[l]:Xo}],[0,{[l]:SC}],[0,{[l]:Mg}],[0,{[l]:ln}],[128,{[jd]:Yd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:kg}],[0,{[l]:Ne}],[0,{[l]:sN}],[1,{[l]:Dne}],[1,{[l]:One}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}]]],Mie=[3,h,XHe,0,[w,le,kd,Ote,hg,Mte,DC,_re,Rre,Cre,bre,Are,xre,Re,Kt,uo,Qt,xe,au,L,gL],[[0,1],[0,1],[0,{[l]:su}],[4,{[l]:wL}],[0,{[l]:Md}],[4,{[l]:OL}],[0,{[l]:DC}],[0,{[U]:one}],[0,{[U]:sne}],[0,{[U]:ine}],[0,{[U]:ane}],[0,{[U]:cne}],[6,{[U]:une}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:XA}],[0,{[l]:N}],[0,{[l]:tN}]],2],Lie=[3,h,ZHe,0,[IC],[[()=>_N,{[Ce]:1,[v]:IC}]]],Nie=[3,h,eje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Fie=[3,h,nje,{[v]:Zo},[QA,Re],[[()=>ji,0],[0,{[l]:mi}]],1],Bie=[3,h,sje,0,[w,le,Re,L,xe],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}],[0,{[l]:Te}]],2],Uie=[3,h,oje,0,[lg,$e],[[()=>uu,16],[0,{[l]:Ne}]]],Gie=[3,h,ije,0,[w,le,xe,L],[[0,1],[0,1],[0,{[l]:Te}],[0,{[l]:N}]],2],qie=[3,h,uje,0,[AC],[[()=>bN,16]]],Hie=[3,h,lje,0,[w,L],[[0,1],[0,{[l]:N}]],1],jie=[3,h,Dte,0,[Wre],[0],1],zie=[3,h,vL,0,[DL,fre],[[()=>pN,{[fne]:[pne,rne]}],0]],pN=[3,h,DL,0,[bg,_L,rqe,$d,UWe],[[0,{[u8e]:1,[v]:w9e}],0,0,0,0],1],Vie=[3,h,pje,0,[dL,uGe,cGe,fL,YUe],[[0,{[l]:hne}],[0,{[l]:f8e}],[0,{[l]:p8e}],[0,{[l]:h8e}],[2,{[l]:l8e}]]],Wie=[3,h,fje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kie=[3,h,hje,0,[nu,lL,ti,HL,eGe,co,xd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,lt,LL,Re,_d,Rd,Cd,bd,vd,yL,Xo,SC,Ag,Qr,Ld,Kt,Qt,un,zr,Kr,$e,_g,GA,VL,Ud,Gd,Bd,Sg,yg,Eg],[[2,{[l]:ZA}],[0,{[l]:tne}],[0,{[l]:vg}],[0,{[l]:wne}],[0,{[l]:d8e}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:lt}],[1,{[l]:vne}],[0,{[l]:mi}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Qee}],[4,{[l]:Xo}],[0,{[l]:SC}],[0,{[l]:Mg}],[0,{[l]:ln}],[128,{[jd]:Yd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:kg}],[0,{[l]:Ne}],[0,{[l]:sN}],[1,{[l]:Dne}],[1,{[l]:One}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}]]],Qie=[3,h,Sje,0,[w,le,kd,Ote,hg,Mte,DC,_re,Rre,Cre,bre,Are,xre,Re,Kt,uo,Qt,xe,au,L,gL],[[0,1],[0,1],[0,{[l]:su}],[4,{[l]:wL}],[0,{[l]:Md}],[4,{[l]:OL}],[0,{[l]:DC}],[0,{[U]:one}],[0,{[U]:sne}],[0,{[U]:ine}],[0,{[U]:ane}],[0,{[U]:cne}],[6,{[U]:une}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:XA}],[0,{[l]:N}],[0,{[l]:tN}]],2],fN=[3,h,IL,0,[iWe],[0],1],mN=[3,h,$L,0,[$d,_L],[0,0]],gN=[3,h,PL,0,[rte,WGe,Lte,rVe],[()=>joe,0,()=>uae,()=>oce]],Yie=[3,h,Nje,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],rx=[3,h,Zm,0,[Wt,Wr,EWe,qi],[0,0,[()=>rKe,{[ne]:1,[v]:Kre}],[()=>Jie,0]],3],Jie=[3,h,Bje,0,[Je,lo,ug],[0,()=>lu,[()=>Yie,0]]],nx=[3,h,Xm,0,[MA,Rje,Wt,wje,oWe,qi,v5e],[[()=>Xie,0],2,0,0,()=>rae,()=>eae,[()=>q9e,0]],5],Xie=[3,h,_je,0,[Ore],[[()=>tae,0]],1],Zie=[3,h,Cje,0,[Bre,jL],[[()=>bue,{[v]:Nre}],[()=>_ue,{[v]:WA}]]],eae=[3,h,bje,0,[Je],[0],1],tae=[3,h,Mje,0,[w,xte,BUe,Je,bL],[0,0,0,0,[()=>Zie,0]],2],rae=[3,h,Lje,0,[yqe],[0],1],nae=[3,h,yC,0,[Td,ou],[0,()=>Jd],1],oae=[3,h,kte,0,[Td,KL,Dd,Cg,KA],[0,0,()=>Lg,0,0],1],sae=[3,h,Fje,0,[Td,ou],[0,()=>Jd],1],iae=[3,h,EC,0,[VA,ou],[()=>ix,()=>Jd],1],aae=[3,h,Nte,0,[KL,Cg,VA,Dd,KA],[0,0,()=>ix,()=>Lg,0],3],cae=[3,h,jje,0,[VA],[()=>ix],1],uae=[3,h,qje,0,[bg],[0]],lae=[3,h,Hje,0,[UL],[0]],dae=[3,h,C6e,0,[R6e,AL,Wt,qi],[[0,{[v]:CGe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],pae=[3,h,_6e,0,[dte,ru,cqe],[5,1,2]],fae=[3,h,Q6e,0,[Wr,ti,$d,Je,qi,CWe,R5e,tre,kee],[0,()=>pae,0,0,[()=>gae,0],[()=>oKe,{[ne]:1,[v]:Yre}],[()=>V9e,{[ne]:1,[v]:rre}],()=>Qae,()=>ooe],1],mae=[3,h,Y6e,0,[Je,Hd,are,cre],[0,[()=>ji,{[ne]:1,[v]:lo}],1,1]],gae=[3,h,J6e,0,[Je,lo,are,cre,ug],[0,()=>lu,1,1,[()=>mae,0]]],hae=[3,h,n6e,{[v]:o6e},[ni,Vr,Fd,wee],[2,0,0,[()=>O9e,{[ne]:1,[v]:Jm}]]],Sae=[3,h,s6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],yae=[3,h,l6e,0,[ni,Vr,Fd,$te],[2,0,0,[()=>U9e,{[ne]:1,[v]:Zm}]]],Eae=[3,h,d6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],_ae=[3,h,a6e,{[v]:T6e},[Vr,wte,ni,Fd],[0,[()=>G9e,{[ne]:1,[v]:Xm}],2,0]],Rae=[3,h,c6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Cae=[3,h,f6e,{[v]:v6e},[ni,Vr,Fd,Ute],[2,0,0,[()=>j9e,{[ne]:1,[v]:eg}]]],bae=[3,h,m6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Aae=[3,h,g6e,{[v]:Zje},[mL,es,Vr,Je],[[()=>zue,0],()=>gi,0,0]],xae=[3,h,h6e,0,[r5e,Vr,Je,fL],[[1,{[U]:t8e}],[0,{[U]:Qa}],[0,{[U]:xg}],[0,{[U]:KWe}]]],Tae=[3,h,y6e,{[v]:e6e},[mL,Vr],[[()=>zue,0],0]],vae=[3,h,E6e,0,[Vr,o5e],[[0,{[U]:Qa}],[1,{[U]:r8e}]]],Dae=[3,h,w6e,{[v]:P6e},[w,NA,Jre,Xte,Je,Va,E5e,Wte,ni,bWe,kA,Wa,$e],[0,0,0,0,0,0,0,1,2,[()=>z9e,{[ne]:1,[v]:GWe}],[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],Iae=[3,h,O6e,0,[w,Va,Wa,NA,Wte,Je,Jre,L,xe],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:nne}],[1,{[U]:o8e}],[0,{[U]:xg}],[0,{[U]:a8e}],[0,{[l]:N}],[0,{[l]:Te}]],1],wae=[3,h,M6e,0,[rGe,w,le,UA,Nee,Bte,OUe,Vr,Fd,$e],[[()=>$9e,0],0,0,[0,{[l]:ex}],0,1,1,0,0,[0,{[l]:Ne}]]],Pae=[3,h,L6e,0,[w,le,Re,Bte,Nee,Vr,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[1,{[U]:e8e}],[0,{[U]:WWe}],[0,{[U]:Qa}],[0,{[l]:Te}],[0,{[l]:N}]],2],Oae=[3,h,N6e,{[v]:Fte},[ni,Kte,m5e,ite,iu,Je,Va,Nd,kA,Wa,$e],[2,0,0,[()=>Kue,{[ne]:1}],0,0,0,1,[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],$ae=[3,h,F6e,0,[w,Va,Wa,Kte,Nd,Je,xe,L,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:ZWe}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:oN}]],1],kae=[3,h,U6e,{[v]:Fte},[ni,ite,iu,Je,Va,Nd,kA,Wa,zje,Vr,Fd,Pre,$e],[2,[()=>Kue,{[ne]:1}],0,0,0,1,[()=>cx,{[ne]:1}],0,1,0,0,0,[0,{[l]:Ne}]]],Mae=[3,h,q6e,0,[w,Va,Wa,Nd,Je,Vr,mqe,Pre,xe,L,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[U]:Qa}],[2,{[U]:YWe}],[0,{[U]:i8e}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:oN}]],1],Lae=[3,h,G6e,{[v]:Z6e},[ni,NA,Zre,Xte,_5e,qWe,cte,iu,Je,Va,Nd,kA,Wa,$e],[2,0,0,0,0,[()=>K9e,{[ne]:1,[v]:HWe}],[()=>L9e,{[ne]:1,[v]:nu}],0,0,0,1,[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],Nae=[3,h,H6e,0,[w,Va,Wa,NA,Nd,Je,Zre,L,xe,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:nne}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[U]:c8e}],[0,{[l]:N}],[0,{[l]:Te}],[64,{[l]:oN}]],1],Fae=[3,h,V6e,{[v]:W6e},[Oee,Fee,w,le,Ka,qA,ere,BA,ni,HA,$L,es,Kr,$e,ge,cn],[[4,{[l]:mne}],[0,{[l]:gne}],0,0,0,0,0,1,2,[()=>Y9e,{[ne]:1,[v]:jA}],()=>mN,()=>gi,0,[0,{[l]:Ne}],0,0]],Bae=[3,h,K6e,0,[w,le,Ka,BA,qA,xe,L,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:Tg}],[1,{[U]:n8e}],[0,{[U]:s8e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],Uae=[3,h,x6e,0,[bg,iu],[0,0]],hN=[3,h,kL,0,[cWe,SWe,jre,Vre],[0,0,[()=>tKe,0],[()=>Iue,0]],2],Gae=[3,h,nL,0,[EC,yC,mC],[()=>iae,()=>nae,()=>foe],1],qae=[3,h,Gte,0,[lte,Nte,kte,Uee],[()=>Cse,()=>aae,()=>oae,()=>moe],1],Hae=[3,h,Hte,0,[iu,QL],[0,0]],jae=[3,h,oL,0,[Ure],[()=>uue],1],zae=[3,h,zte,0,[Gre],[()=>lue],1],Jd=[3,h,a5e,0,[OVe,Wje],[0,0],1],Vae=[3,h,Qte,0,[Wr,dqe],[0,()=>TN],1],Wae=[3,h,e5e,0,[Je,Hd,Lee],[0,[()=>ji,{[ne]:1,[v]:lo}],0]],ox=[3,h,eg,0,[Wt,qi],[0,[()=>Jue,0]],1],Kae=[3,h,Vte,0,[Ka,le,Gje,Kr,es,$L,ge,cn],[0,0,4,0,()=>gi,()=>mN,0,0]],Qae=[3,h,tre,0,[Jte,Zte],[1,1]],Yae=[3,h,rre,0,[Jte,Kr,Zte],[1,0,1]],SN=[3,h,sL,0,[dWe,aVe,A6e,fte],[[()=>nKe,{[ne]:1,[v]:Hre}],[()=>X9e,{[ne]:1,[v]:yre}],[()=>H9e,{[ne]:1,[v]:bGe}],()=>vse]],sx=[3,h,d5e,0,[le],[[()=>aue,{[v]:zVe}]]],Jae=[3,h,ure,0,[le,co,lt,ge,cn,cu,Kr,es,qL],[0,4,0,[64,{[ne]:1}],0,1,0,()=>gi,()=>vN]],Xae=[3,h,D5e,0,[le,Re,lt,D6e,cu],[0,0,0,6,1],1],yN=[3,h,bC,0,[w5e,qd],[0,()=>Zae]],EN=[3,h,O5e,0,[Wr],[0]],_N=[3,h,$5e,0,[Yte,wVe,iqe,gte],[0,5,0,()=>dN]],Zae=[3,h,k5e,0,[ute],[()=>Voe]],ece=[3,h,F5e,0,[au,cu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,1,0,0,0,0,0,0,0,0,0,0]],tce=[3,h,G5e,0,[lt,ge,cn,cu,Kr,le,Re,Pte,co,es,qL],[0,[64,{[ne]:1}],0,1,0,0,0,2,4,()=>gi,()=>vN]],rce=[3,h,sre,0,[nWe],[[()=>cue,0]]],RN=[3,h,FL,0,[rte,Lte],[()=>zoe,()=>lae]],gi=[3,h,es,0,[_L,$d],[0,0]],CN=[3,h,CC,0,[Rg],[[()=>Q9e,{[ne]:1,[v]:qd}]],1],nce=[3,h,x5e,0,[ire],[0],1],oce=[3,h,Pze,0,[],[]],sce=[3,h,jA,0,[au,co,lt,cu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],ice=[3,h,xC,{[v]:xC},[Ize],[0]],ace=[3,h,lre,0,[iee],[[2,{[v]:iee}]]],cce=[3,h,gre,0,[jee,qee,Hee],[1,1,1]],uce=[3,h,wze,0,[pte],[[()=>cce,{[JL]:1}]]],bN=[3,h,AC,0,[ree,see,nee,aee],[[2,{[v]:ree}],[2,{[v]:see}],[2,{[v]:nee}],[2,{[v]:aee}]]],lce=[3,h,Q5e,0,[w,fC,Ye,ge,L],[[0,1],[()=>cN,{[Ce]:1,[v]:fC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],dce=[3,h,V5e,0,[w,pC,L,ge],[[0,1],[()=>aoe,{[Ce]:1,[v]:pC}],[0,{[l]:N}],[0,{[l]:ke}]],2],pce=[3,h,Y5e,0,[w,Ed,tu,Ye,ge,Id,wd,Pd,TL,Od,L],[[0,1],[0,{[l]:zd}],[()=>uN,{[Ce]:1,[v]:tu}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[0,{[l]:N}]],1],fce=[3,h,W5e,0,[w,Wt,Jm,L],[[0,1],[0,{[U]:po}],[()=>tx,{[Ce]:1,[v]:Jm}],[0,{[l]:N}]],3],mce=[3,h,Z5e,0,[w,hC,Ye,ge,L],[[0,1],[()=>$oe,{[Ce]:1,[v]:hC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],gce=[3,h,tze,0,[w,PC,Ye,ge,L],[[0,1],[()=>DN,{[Ce]:1,[v]:PC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],hce=[3,h,sze,0,[w,Wt,Zm,L],[[0,1],[0,{[U]:po}],[()=>rx,{[Ce]:1,[v]:Zm}],[0,{[l]:N}]],3],Sce=[3,h,nze,0,[w,Wt,Xm,L],[[0,1],[0,{[U]:po}],[()=>nx,{[Ce]:1,[v]:Xm}],[0,{[l]:N}]],3],yce=[3,h,cze,0,[WL],[[0,{[l]:aN}]]],Ece=[3,h,uze,0,[w,ge,rL,L,WL],[[0,1],[0,{[l]:ke}],[()=>Eoe,{[Ce]:1,[v]:rL}],[0,{[l]:N}],[0,{[l]:aN}]],1],_ce=[3,h,lze,0,[w,gC,Ye,ge,L],[[0,1],[()=>_oe,{[Ce]:1,[v]:gC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Rce=[3,h,pze,0,[w,Wt,eg,L],[[0,1],[0,{[U]:po}],[()=>ox,{[Ce]:1,[v]:eg}],[0,{[l]:N}]],3],Cce=[3,h,mze,0,[w,sL,L,FVe],[[0,1],[()=>SN,{[Ce]:1,[v]:sL}],[0,{[l]:N}],[2,{[l]:v9e}]],2],bce=[3,h,hze,0,[w,CC,Ye,L,ge],[[0,1],[()=>CN,{[Ce]:1,[v]:CC}],[0,{[l]:Qe}],[0,{[l]:N}],[0,{[l]:ke}]],2],Ace=[3,h,yze,0,[w,mre,Ye,ge,FGe,L],[[0,1],[0,16],[0,{[l]:Qe}],[0,{[l]:ke}],[2,{[l]:S8e}],[0,{[l]:N}]],2],xce=[3,h,Cze,0,[w,TC,Ye,ge,Qre,L],[[0,1],[()=>xN,{[Ce]:1,[v]:TC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Sne}],[0,{[l]:N}]],2],Tce=[3,h,Rze,0,[w,vC,Ye,ge,L],[[0,1],[()=>tue,{[Ce]:1,[v]:vC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],vce=[3,h,Aze,0,[w,Zo,Ye,ge,L],[[0,1],[()=>ax,{[Ce]:1,[v]:Zo}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Dce=[3,h,Tze,0,[w,OC,Ye,ge,ML,L],[[0,1],[()=>que,{[Ce]:1,[v]:OC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:nN}],[0,{[l]:N}]],2],Ice=[3,h,Dze,0,[w,$C,Ye,ge,L],[[0,1],[()=>Hue,{[Ce]:1,[v]:$C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],wce=[3,h,Mze,0,[$e],[[0,{[l]:Ne}]]],Pce=[3,h,Nze,0,[w,le,Ed,tu,Ye,ge,Id,wd,Pd,TL,Od,xe,Re,L],[[0,1],[0,1],[0,{[l]:zd}],[()=>uN,{[Ce]:1,[v]:tu}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:N}]],2],Oce=[3,h,Lze,0,[le,cg,UA,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e],[0,0,[0,{[l]:ex}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}]]],$ce=[3,h,Fze,0,[w,le,cg,Mee,Re,ore,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Ye,xe,L],[[0,1],[0,1],[0,{[U]:YL}],[()=>uu,16],[0,{[U]:Yt}],[0,{[l]:Ine}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Qe}],[0,{[l]:Te}],[0,{[l]:N}]],4],kce=[3,h,jze,0,[$e],[[0,{[l]:Ne}]]],Mce=[3,h,zze,0,[w,le,RC,xe,Re,Ye,ge,L],[[0,1],[0,1],[()=>EN,{[Ce]:1,[v]:RC}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Lce=[3,h,Gze,0,[$e],[[0,{[l]:Ne}]]],Nce=[3,h,qze,0,[w,bC,xe,Qre,Ye,ge,L],[[0,1],[()=>yN,{[Ce]:1,[v]:bC}],[0,{[l]:Te}],[0,{[l]:Sne}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],1],Fce=[3,h,Vze,0,[ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,Kt,Qt,un,Hi,zr,cu,$e],[[0,{[l]:vg}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:mi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[1,{[l]:S9e}],[0,{[l]:Ne}]]],Bce=[3,h,Wze,0,[w,le,Ed,lg,_d,Rd,Cd,bd,xd,Ye,vd,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Xo,kd,hg,Id,wd,Pd,Od,VWe,Ld,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L],[[0,1],[0,1],[0,{[l]:zd}],[()=>uu,16],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[1,{[l]:Ad}],[0,{[l]:Qe}],[0,{[l]:gg}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[4,{[l]:Xo}],[0,{[l]:su}],[0,{[l]:Md}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[1,{[l]:I9e}],[128,{[jd]:Yd}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}]],2],Uce=[3,h,Kze,0,[$e],[[0,{[l]:Ne}]]],Gce=[3,h,Qze,0,[w,le,IC,xe,Re,pL,Ye,ge,L],[[0,1],[0,1],[()=>_N,{[Ce]:1,[v]:IC}],[0,{[l]:Te}],[0,{[U]:Yt}],[2,{[l]:ZL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],qce=[3,h,Xze,0,[Re],[[0,{[l]:mi}]]],Hce=[3,h,Zze,0,[w,le,Zo,Re,Ye,ge,L,xe],[[0,1],[0,1],[()=>ax,{[Ce]:1,[v]:Zo}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}],[0,{[l]:Te}]],3],jce=[3,h,tVe,0,[w,AC,Ye,ge,L],[[0,1],[()=>bN,{[Ce]:1,[v]:AC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],zce=[3,h,yre,0,[sVe,AL,Wt,qi],[[0,{[v]:uVe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],ix=[3,h,VA,0,[ti,ru],[0,1],1],Vce=[3,h,dVe,0,[pre],[[21,{[JL]:1}]]],Wce=[3,h,wre,0,[Ite,yje,hre,fVe,mVe],[0,0,0,0,0]],AN=[3,h,BL,0,[Ite,hre],[0,0],1],Kce=[3,h,hVe,0,[],[]],Qce=[3,h,EVe,0,[w,le,vVe,w4e,O4e,P4e,$4e,UVe,qVe,GVe,HVe,VGe],[[0,1],[0,1],[0,{[l]:R9e}],[0,{[l]:su}],[0,{[l]:Md}],[4,{[l]:wL}],[4,{[l]:OL}],[0,{[l]:C9e}],[0,{[l]:A9e}],[6,{[l]:b9e}],[6,{[l]:x9e}],[0,{[l]:_8e,[XWe]:1}]],3],Yce=[3,h,Tre,0,[Wr],[0],1],xN=[3,h,TC,0,[zA,Rg],[0,[()=>Z9e,{[ne]:1,[v]:qd}]],2],Jce=[3,h,AVe,0,[Wr,MA,$d,nVe,Je,qi,Fre,Ste,ate],[0,()=>Rse,0,1,0,[()=>Zce,0],()=>Eue,()=>Dse,()=>dse],2],Xce=[3,h,CVe,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],Zce=[3,h,bVe,0,[Je,lo,ug],[0,()=>lu,[()=>Xce,0]]],eue=[3,h,Ire,0,[Wr,_We],[0,()=>TN],2],TN=[3,h,DVe,0,[l5e],[1]],tue=[3,h,vC,0,[dre],[0],1],rue=[3,h,vre,0,[pqe],[2]],nue=[3,h,SVe,0,[$e,yVe],[[0,{[l]:Ne}],[0,{[l]:E9e}]]],oue=[3,h,_Ve,0,[w,le,Re,iL,xe,ge,L],[[0,1],[0,1],[0,{[U]:Yt}],[()=>sue,{[Ce]:1,[v]:iL}],[0,{[l]:Te}],[0,{[l]:ke}],[0,{[l]:N}]],2],sue=[3,h,iL,0,[ru,Dte,bg,Wre,tqe,Mre,sre],[1,()=>jie,0,0,0,()=>mue,[()=>rce,0]]],vN=[3,h,qL,0,[kje,lVe],[2,4]],iue=[3,h,Dre,0,[wre,ste],[()=>Wce,()=>voe],1],aue=[3,h,jVe,0,[hqe],[[()=>B9e,{[ne]:1,[v]:Ate}]]],cue=[3,h,VVe,0,[dGe,Je,bL,pGe,$A,Zo,Xre,Kr],[0,0,[()=>bse,0],0,[()=>ux,0],[()=>ax,0],[()=>sKe,0],0],2],uue=[3,h,Ure,0,[zL,Cg],[0,0],2],lue=[3,h,Gre,0,[zL,Cg,KA,zre],[0,0,0,0],4],due=[3,h,Lre,0,[sWe,_te],[1,1]],pue=[3,h,YVe,0,[pre],[[()=>Zue,16]]],fue=[3,h,JVe,0,[w,le,Cte,Ete,PL,FL,Kt,uo,Qt,vre,Lre,L],[[0,1],[0,1],0,0,()=>gN,()=>RN,[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],()=>rue,()=>due,[0,{[l]:N}]],6],mue=[3,h,Mre,0,[PL,Ete,Cte,FL],[()=>gN,0,0,()=>RN],4],gue=[3,h,ZVe,0,[XVe,Jje],[0,[()=>Or,0]],1],DN=[3,h,PC,0,[Rg],[[()=>eKe,{[ne]:1,[v]:qd}]],1],hue=[3,h,tWe,0,[ZUe,zr,Gee],[[()=>gue,0],2,[()=>hoe,0]]],Sue=[3,h,LVe,0,[tee,cee,uee,ti],[[0,{[v]:tee}],[()=>lee,{[v]:cee}],[()=>lee,{[v]:uee}],[4,{[v]:ti}]],4],yue=[3,h,wC,{[v]:wC},[],[]],Eue=[3,h,Fre,0,[kre,Tre],[()=>Rue,()=>Yce]],_ue=[3,h,jL,{[v]:WA},[Vje],[[()=>Or,0]],1],Rue=[3,h,kre,0,[Wr],[0],1],Cue=[3,h,eWe,{[v]:WA},[Qje,zr],[[()=>P9e,0],2],1],bue=[3,h,Bre,{[v]:Nre},[],[]],Aue=[3,h,qre,0,[jee,qee,Hee],[1,1,1]],xue=[3,h,BVe,0,[pte],[[()=>Aue,{[JL]:1}]]],Tue=[3,h,$re,0,[D4e],[()=>vue]],vue=[3,h,kVe,0,[U5e,MA],[0,()=>loe],2],lu=[3,h,lo,0,[le,QL],[0,0],2],ax=[3,h,Zo,0,[QA],[[()=>ji,0]],1],Due=[3,h,fWe,0,[DL,fre],[[()=>pN,{[fne]:[pne,rne]}],0]],Iue=[3,h,Vre,0,[wC,xC],[[()=>yue,{[v]:wC}],[()=>ice,{[v]:xC}]]],wue=[3,h,Kre,0,[ru,Bee],[1,0],2],Pue=[3,h,Hre,0,[aWe,AL,Wt,qi],[[0,{[v]:RWe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],Oue=[3,h,Yre,0,[dte,ru,Kr],[5,1,0]],$ue=[3,h,xWe,0,[w,mC,Ye,ge,L],[[0,1],[()=>goe,{[Ce]:1,[v]:mC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],kue=[3,h,vWe,0,[w,yC,Ye,ge,L],[[0,1],[()=>sae,{[Ce]:1,[v]:yC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Mue=[3,h,IWe,0,[w,EC,Ye,ge,L],[[0,1],[()=>cae,{[Ce]:1,[v]:EC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Lue=[3,h,OWe,0,[w,le,nre,Re,xe,L,Ye,ge],[[0,1],[0,1],[()=>Xue,16],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Qe}],[0,{[l]:ke}]],3],Nue=[3,h,$We,0,[$e],[[0,{[l]:Ne}]]],Fue=[3,h,LWe,0,[nte,Kee,Qr,Kt,Qt,un,zr,$e],[[0,{[l]:Tne}],[()=>Ooe,16],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Bue=[3,h,NWe,0,[w,ote,le,au,Ka,Yee,Jee,Xee,Zee,GGe,Kt,uo,Qt,ete,EL,tte,xe,L,yte],[[0,1],[0,{[l]:yne}],[0,1],[1,{[U]:XA}],[0,{[U]:Tg}],[0,{[l]:Ene}],[4,{[l]:_ne}],[0,{[l]:Rne}],[4,{[l]:Cne}],[0,{[l]:E8e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:bne}],[()=>noe,{[l]:Ane}],[0,{[l]:xne}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Pne}]],5],Uue=[3,h,FWe,0,[Qr,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,Qt,un,zr,$e],[[0,{[l]:ln}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Gue=[3,h,BWe,0,[w,le,au,Ka,lg,xd,Ye,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,uo,Qt,xe,L],[[0,1],[0,1],[1,{[U]:XA}],[0,{[U]:Tg}],[()=>uu,16],[1,{[l]:Ad}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],4],que=[3,h,OC,0,[jte,Wr],[[0,{[v]:qte}],0]],Hue=[3,h,$C,0,[RL,IL,BL,GL],[()=>lN,()=>fN,()=>AN,[()=>Que,0]]],jue=[3,h,zWe,0,[TVe,IVe,lg,NVe,mte,hte,lL,_d,Rd,Cd,bd,xd,yL,vd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,nu,lt,Xo,ti,co,LL,Ld,Ud,Bd,Gd,GA,_g,$e,HL,Qr,Kt,un,Qt,Kr,VL,Re,zr],[[0,{[JWe]:1,[l]:_9e}],[0,{[l]:T9e}],[()=>uu,16],[1,{[l]:a9e}],[0,{[l]:R8e}],[0,{[l]:C8e}],[0,{[l]:O8e}],[0,{[l]:b8e}],[0,{[l]:A8e}],[0,{[l]:x8e}],[0,{[l]:T8e}],[1,{[l]:Ad}],[0,{[l]:v8e}],[0,{[l]:D8e}],[0,{[l]:$8e}],[0,{[l]:k8e}],[0,{[l]:M8e}],[0,{[l]:N8e}],[0,{[l]:F8e}],[0,{[l]:B8e}],[0,{[l]:L8e}],[0,{[l]:U8e}],[0,{[l]:G8e}],[0,{[l]:q8e}],[2,{[l]:H8e}],[0,{[l]:I8e}],[4,{[l]:w8e}],[0,{[l]:j8e}],[4,{[l]:P8e}],[1,{[l]:z8e}],[128,{[jd]:Yd}],[0,{[l]:K8e}],[0,{[l]:W8e}],[5,{[l]:Q8e}],[1,{[l]:V8e}],[0,{[l]:X8e}],[0,{[l]:J8e}],[0,{[l]:Y8e}],[0,{[l]:e9e}],[0,{[l]:n9e}],[()=>Or,{[l]:t9e}],[0,{[l]:o9e}],[0,{[l]:Z8e}],[1,{[l]:s9e}],[0,{[l]:i9e}],[2,{[l]:r9e}]],2],pe="unit",O9e=[1,h,wee,0,[()=>tx,0]],$9e=[1,h,UUe,0,[()=>poe,{[v]:$ee}]],zue=[1,h,mL,0,[()=>Soe,{[v]:w}]],cx=[1,h,MGe,0,()=>Coe],k9e=[1,h,LGe,0,()=>Aoe],Vue=[1,h,hL,0,[()=>koe,0]],M9e=[1,h,W4e,0,()=>use],L9e=[1,h,cte,0,()=>lse],N9e=[1,h,uqe,0,[0,{[v]:CL}]],F9e=[1,h,Rte,0,()=>Tse],B9e=[1,h,gqe,0,()=>Ise],ux=[1,h,LA,0,[()=>zie,{[v]:vL}]],U9e=[1,h,$te,0,[()=>rx,0]],G9e=[1,h,wte,0,[()=>nx,0]],q9e=[1,h,Dje,0,[0,{[v]:Sqe}]],H9e=[1,h,b6e,0,[()=>dae,0]],Wue=[1,h,X6e,0,[()=>fae,0]],j9e=[1,h,Ute,0,[()=>ox,0]],z9e=[1,h,c5e,0,()=>Kae],V9e=[1,h,C5e,0,()=>Yae],W9e=[1,h,I5e,0,()=>Xae],Kue=[1,h,M5e,0,[()=>Jae,0]],K9e=[1,h,q5e,0,[()=>tce,0]],Q9e=[1,h,T5e,0,()=>nce],Y9e=[1,h,HA,0,()=>sce],J9e=[1,h,Oze,0,()=>ece],X9e=[1,h,iVe,0,[()=>zce,0]],Z9e=[1,h,xVe,0,[()=>Jce,0]],Que=[1,h,GL,0,[()=>iue,{[v]:Dre}]],eKe=[1,h,rWe,0,[()=>hue,0]],ji=[1,h,QA,0,[()=>lu,{[v]:lo}]],tKe=[1,h,jre,0,[()=>Due,{[v]:vL}]],rKe=[1,h,mWe,0,()=>wue],nKe=[1,h,lWe,0,[()=>Pue,0]],oKe=[1,h,gWe,0,()=>Oue],sKe=[1,h,Xre,0,[()=>Hae,{[v]:Hte}]],Yue=[4,h,LUe,0,[Je,lo,ug],[0,()=>lu,[()=>uoe,0]]],Jue=[4,h,s5e,0,[Je,lo,Lee,ug],[0,()=>lu,0,[()=>Wae,0]]],Xue=[4,h,nre,0,[jL],[[()=>Cue,{[v]:WA}]]],Zue=[4,h,QVe,{[dne]:1},[PVe,qre,gre,YGe,_te],[[()=>Vce,0],[()=>xue,0],[()=>uce,0],()=>Doe,()=>xse]],ele=[9,h,HUe,{[M]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>ioe,()=>soe],tle=[9,h,Vee,{[M]:["POST","/{Key+}",200]},()=>Toe,()=>xoe],rle=[9,h,PGe,{[M]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>woe,()=>Ioe],nle=[9,h,fGe,{[M]:["PUT","/",200]},()=>Boe,()=>Foe],ole=[9,h,mGe,{[ve]:"-",[M]:["POST","/?metadataConfiguration",200]},()=>Loe,()=>pe],sle=[9,h,hGe,{[ve]:"-",[M]:["POST","/?metadataTable",200]},()=>Noe,()=>pe],ile=[9,h,wGe,{[M]:["POST","/{Key+}?uploads",200]},()=>Goe,()=>Uoe],ale=[9,h,zGe,{[M]:["GET","/?session",200]},()=>Hoe,()=>qoe],cle=[9,h,XGe,{[M]:["DELETE","/",204]},()=>ise,()=>pe],ule=[9,h,ZGe,{[M]:["DELETE","/?analytics",204]},()=>Koe,()=>pe],lle=[9,h,t4e,{[M]:["DELETE","/?cors",204]},()=>Qoe,()=>pe],dle=[9,h,n4e,{[M]:["DELETE","/?encryption",204]},()=>Yoe,()=>pe],ple=[9,h,a4e,{[M]:["DELETE","/?intelligent-tiering",204]},()=>Joe,()=>pe],fle=[9,h,s4e,{[M]:["DELETE","/?inventory",204]},()=>Xoe,()=>pe],mle=[9,h,u4e,{[M]:["DELETE","/?lifecycle",204]},()=>Zoe,()=>pe],gle=[9,h,d4e,{[M]:["DELETE","/?metadataConfiguration",204]},()=>ese,()=>pe],hle=[9,h,g4e,{[M]:["DELETE","/?metadataTable",204]},()=>tse,()=>pe],Sle=[9,h,m4e,{[M]:["DELETE","/?metrics",204]},()=>rse,()=>pe],yle=[9,h,S4e,{[M]:["DELETE","/?ownershipControls",204]},()=>nse,()=>pe],Ele=[9,h,E4e,{[M]:["DELETE","/?policy",204]},()=>ose,()=>pe],_le=[9,h,b4e,{[M]:["DELETE","/?replication",204]},()=>sse,()=>pe],Rle=[9,h,A4e,{[M]:["DELETE","/?tagging",204]},()=>ase,()=>pe],Cle=[9,h,T4e,{[M]:["DELETE","/?website",204]},()=>cse,()=>pe],ble=[9,h,K4e,{[M]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>gse,()=>mse],Ale=[9,h,N4e,{[M]:["DELETE","/{Key+}?annotation",204]},()=>fse,()=>pse],xle=[9,h,Q4e,{[ve]:"-",[M]:["POST","/?delete",200]},()=>Sse,()=>hse],Tle=[9,h,j4e,{[M]:["DELETE","/{Key+}?tagging",204]},()=>Ese,()=>yse],vle=[9,h,Y4e,{[M]:["DELETE","/?publicAccessBlock",204]},()=>_se,()=>pe],Dle=[9,h,Eqe,{[M]:["GET","/?abac",200]},()=>Pse,()=>wse],Ile=[9,h,_qe,{[M]:["GET","/?accelerate",200]},()=>$se,()=>Ose],wle=[9,h,wqe,{[M]:["GET","/?acl",200]},()=>Mse,()=>kse],Ple=[9,h,xqe,{[M]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Nse,()=>Lse],Ole=[9,h,Pqe,{[M]:["GET","/?cors",200]},()=>Bse,()=>Fse],$le=[9,h,kqe,{[M]:["GET","/?encryption",200]},()=>Gse,()=>Use],kle=[9,h,Uqe,{[M]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>Hse,()=>qse],Mle=[9,h,Nqe,{[M]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>zse,()=>jse],Lle=[9,h,jqe,{[M]:["GET","/?lifecycle",200]},()=>Wse,()=>Vse],Nle=[9,h,Hqe,{[M]:["GET","/?location",200]},()=>Qse,()=>Kse],Fle=[9,h,Jqe,{[M]:["GET","/?logging",200]},()=>Jse,()=>Yse],Ble=[9,h,Xqe,{[M]:["GET","/?metadataConfiguration",200]},()=>Zse,()=>Xse],Ule=[9,h,oHe,{[M]:["GET","/?metadataTable",200]},()=>rie,()=>tie],Gle=[9,h,nHe,{[M]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>sie,()=>oie],qle=[9,h,aHe,{[M]:["GET","/?notification",200]},()=>iie,()=>SN],Hle=[9,h,uHe,{[M]:["GET","/?ownershipControls",200]},()=>cie,()=>aie],jle=[9,h,pHe,{[M]:["GET","/?policy",200]},()=>lie,()=>uie],zle=[9,h,gHe,{[M]:["GET","/?policyStatus",200]},()=>pie,()=>die],Vle=[9,h,yHe,{[M]:["GET","/?replication",200]},()=>mie,()=>fie],Wle=[9,h,_He,{[M]:["GET","/?requestPayment",200]},()=>hie,()=>gie],Kle=[9,h,AHe,{[M]:["GET","/?tagging",200]},()=>yie,()=>Sie],Qle=[9,h,vHe,{[M]:["GET","/?versioning",200]},()=>_ie,()=>Eie],Yle=[9,h,wHe,{[M]:["GET","/?website",200]},()=>Cie,()=>Rie],Jle=[9,h,$He,{[ve]:"-",[M]:["GET","/{Key+}?x-id=GetObject",200]},()=>Mie,()=>kie],Xle=[9,h,kHe,{[M]:["GET","/{Key+}?acl",200]},()=>Aie,()=>bie],Zle=[9,h,HHe,{[ve]:"-",[M]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>Tie,()=>xie],ede=[9,h,jHe,{[M]:["GET","/{Key+}?attributes",200]},()=>Iie,()=>vie],tde=[9,h,KHe,{[M]:["GET","/{Key+}?legal-hold",200]},()=>Pie,()=>wie],rde=[9,h,zHe,{[M]:["GET","/?object-lock",200]},()=>$ie,()=>Oie],nde=[9,h,tje,{[M]:["GET","/{Key+}?retention",200]},()=>Nie,()=>Lie],ode=[9,h,rje,{[M]:["GET","/{Key+}?tagging",200]},()=>Bie,()=>Fie],sde=[9,h,aje,{[M]:["GET","/{Key+}?torrent",200]},()=>Gie,()=>Uie],ide=[9,h,cje,{[M]:["GET","/?publicAccessBlock",200]},()=>Hie,()=>qie],ade=[9,h,dje,{[M]:["HEAD","/",200]},()=>Wie,()=>Vie],cde=[9,h,gje,{[M]:["HEAD","/{Key+}",200]},()=>Qie,()=>Kie],ude=[9,h,r6e,{[M]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Sae,()=>hae],lde=[9,h,u6e,{[M]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>Eae,()=>yae],dde=[9,h,i6e,{[M]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>Rae,()=>_ae],pde=[9,h,p6e,{[M]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>bae,()=>Cae],fde=[9,h,t6e,{[M]:["GET","/?x-id=ListBuckets",200]},()=>xae,()=>Aae],mde=[9,h,S6e,{[M]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>vae,()=>Tae],gde=[9,h,I6e,{[M]:["GET","/?uploads",200]},()=>Iae,()=>Dae],hde=[9,h,k6e,{[M]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>Pae,()=>wae],Sde=[9,h,$6e,{[M]:["GET","/",200]},()=>$ae,()=>Oae],yde=[9,h,B6e,{[M]:["GET","/?list-type=2",200]},()=>Mae,()=>kae],Ede=[9,h,j6e,{[M]:["GET","/?versions",200]},()=>Nae,()=>Lae],_de=[9,h,z6e,{[M]:["GET","/{Key+}?x-id=ListParts",200]},()=>Bae,()=>Fae],Rde=[9,h,j5e,{[ve]:"-",[M]:["PUT","/?abac",200]},()=>lce,()=>pe],Cde=[9,h,z5e,{[ve]:"-",[M]:["PUT","/?accelerate",200]},()=>dce,()=>pe],bde=[9,h,J5e,{[ve]:"-",[M]:["PUT","/?acl",200]},()=>pce,()=>pe],Ade=[9,h,K5e,{[M]:["PUT","/?analytics",200]},()=>fce,()=>pe],xde=[9,h,X5e,{[ve]:"-",[M]:["PUT","/?cors",200]},()=>mce,()=>pe],Tde=[9,h,eze,{[ve]:"-",[M]:["PUT","/?encryption",200]},()=>gce,()=>pe],vde=[9,h,oze,{[M]:["PUT","/?intelligent-tiering",200]},()=>hce,()=>pe],Dde=[9,h,rze,{[M]:["PUT","/?inventory",200]},()=>Sce,()=>pe],Ide=[9,h,aze,{[ve]:"-",[M]:["PUT","/?lifecycle",200]},()=>Ece,()=>yce],wde=[9,h,ize,{[ve]:"-",[M]:["PUT","/?logging",200]},()=>_ce,()=>pe],Pde=[9,h,dze,{[M]:["PUT","/?metrics",200]},()=>Rce,()=>pe],Ode=[9,h,fze,{[M]:["PUT","/?notification",200]},()=>Cce,()=>pe],$de=[9,h,gze,{[ve]:"-",[M]:["PUT","/?ownershipControls",200]},()=>bce,()=>pe],kde=[9,h,Sze,{[ve]:"-",[M]:["PUT","/?policy",200]},()=>Ace,()=>pe],Mde=[9,h,Eze,{[ve]:"-",[M]:["PUT","/?replication",200]},()=>xce,()=>pe],Lde=[9,h,_ze,{[ve]:"-",[M]:["PUT","/?requestPayment",200]},()=>Tce,()=>pe],Nde=[9,h,bze,{[ve]:"-",[M]:["PUT","/?tagging",200]},()=>vce,()=>pe],Fde=[9,h,xze,{[ve]:"-",[M]:["PUT","/?versioning",200]},()=>Dce,()=>pe],Bde=[9,h,vze,{[ve]:"-",[M]:["PUT","/?website",200]},()=>Ice,()=>pe],Ude=[9,h,$ze,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Bce,()=>Fce],Gde=[9,h,kze,{[ve]:"-",[M]:["PUT","/{Key+}?acl",200]},()=>Pce,()=>wce],qde=[9,h,Bze,{[ve]:"-",[M]:["PUT","/{Key+}?annotation",200]},()=>$ce,()=>Oce],Hde=[9,h,Hze,{[ve]:"-",[M]:["PUT","/{Key+}?legal-hold",200]},()=>Mce,()=>kce],jde=[9,h,Uze,{[ve]:"-",[M]:["PUT","/?object-lock",200]},()=>Nce,()=>Lce],zde=[9,h,Yze,{[ve]:"-",[M]:["PUT","/{Key+}?retention",200]},()=>Gce,()=>Uce],Vde=[9,h,Jze,{[ve]:"-",[M]:["PUT","/{Key+}?tagging",200]},()=>Hce,()=>qce],Wde=[9,h,eVe,{[ve]:"-",[M]:["PUT","/?publicAccessBlock",200]},()=>jce,()=>pe],Kde=[9,h,gVe,{[M]:["PUT","/{Key+}?renameObject",200]},()=>Qce,()=>Kce],Qde=[9,h,RVe,{[ve]:"-",[M]:["POST","/{Key+}?restore",200]},()=>oue,()=>nue],Yde=[9,h,KVe,{[M]:["POST","/{Key+}?select&select-type=2",200]},()=>fue,()=>pue],Jde=[9,h,AWe,{[ve]:"-",[M]:["PUT","/?metadataAnnotationTable",200]},()=>$ue,()=>pe],Xde=[9,h,TWe,{[ve]:"-",[M]:["PUT","/?metadataInventoryTable",200]},()=>kue,()=>pe],Zde=[9,h,DWe,{[ve]:"-",[M]:["PUT","/?metadataJournalTable",200]},()=>Mue,()=>pe],epe=[9,h,PWe,{[ve]:"-",[M]:["PUT","/{Key+}?encryption",200]},()=>Lue,()=>Nue],tpe=[9,h,kWe,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>Gue,()=>Uue],rpe=[9,h,MWe,{[M]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Bue,()=>Fue],npe=[9,h,jWe,{[QWe]:["{RequestRoute}."],[M]:["POST","/WriteGetObjectResponse",200]},()=>jue,()=>pe],tg=class extends k(vee,ce,"CreateSession",ale){},iKe="3.1151.0",aKe={version:iKe},cKe=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??Z2e,base64Encoder:t?.base64Encoder??X2e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Aee,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??J2e,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??mUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new U2e},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new G2e}],logger:t?.logger??new i2e,md5:t?.md5??V2e,protocol:t?.protocol??VBe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:roe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??Y2e,serviceId:t?.serviceId??"S3",sha1:t?.sha1??nUe,sha256:t?.sha256??z2e,signerConstructor:t?.signerConstructor??hee,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??D2e,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??Q2e,utf8Encoder:t?.utf8Encoder??K2e}),uKe=t=>{a2e(process.version);let e=f2e(t),r=()=>e().then(c2e),n=cKe(t);$Be(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oo(H2e,o),bodyLengthChecker:t?.bodyLengthChecker??eUe,credentialDefaultProvider:t?.credentialDefaultProvider??j2e,defaultUserAgentProvider:t?.defaultUserAgentProvider??kBe({serviceId:n.serviceId,clientVersion:aKe.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??oo(KBe,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??T2e,maxAttempts:t?.maxAttempts??oo(k2e,t),region:t?.region??oo(h2e,{...S2e,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??oo(wBe,o),requestHandler:rUe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??oo(IBe,o),retryMode:t?.retryMode??oo({...$2e,default:async()=>(await r()).retryMode||O2e},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??oo(q2e,o),streamCollector:t?.streamCollector??tUe,streamHasher:t?.streamHasher??W2e,useArnRegion:t?.useArnRegion??oo(WBe,o),useDualstackEndpoint:t?.useDualstackEndpoint??oo(g2e,o),useFipsEndpoint:t?.useFipsEndpoint??oo(m2e,o),userAgentAppId:t?.userAgentAppId??oo(MBe,o)}},lKe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},dKe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),pKe=(t,e)=>{let r=Object.assign(LBe(t),u2e(t),I2e(t),lKe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,NBe(r),l2e(r),w2e(r),dKe(r))},Bi=class extends mee{config;constructor(...[e]){let r=uKe(e||{});super(r),this.initConfig=r;let n=hUe(r),o=FBe(n),s=PBe(o),i=M2e(s),a=y2e(i),c=BBe(a),u=x2e(c),f=v2e(u),m=gUe(f),y=QBe(m,{session:[()=>this,tg]}),_=pKe(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(N2e(this.config)),this.middlewareStack.use(UBe(this.config)),this.middlewareStack.use(L2e(this.config)),this.middlewareStack.use(P2e(this.config)),this.middlewareStack.use(GBe(this.config)),this.middlewareStack.use(qBe(this.config)),this.middlewareStack.use(HBe(this.config)),this.middlewareStack.use(t2e(this.config,{httpAuthSchemeParametersProvider:dUe,identityProviderConfigProvider:async C=>new r2e({"aws.auth#sigv4":C.credentials,"aws.auth#sigv4a":C.credentials})})),this.middlewareStack.use(n2e(this.config)),this.middlewareStack.use(YBe(this.config)),this.middlewareStack.use(JBe(this.config)),this.middlewareStack.use(XBe(this.config)),this.middlewareStack.use(ZBe(this.config)),this.middlewareStack.use(e2e(this.config))}destroy(){super.destroy()}},kC=class extends k(An,ce,"AbortMultipartUpload",ele){},MC=class extends k(An,yd,"CompleteMultipartUpload",tle){},LC=class extends k(yUe,yd,"CopyObject",rle){},NC=class extends k(EUe,bUe,"CreateBucket",nle){},FC=class extends k(z,Pr,"CreateBucketMetadataConfiguration",ole){},BC=class extends k(z,Pr,"CreateBucketMetadataTableConfiguration",sle){},UC=class extends k(An,yd,"CreateMultipartUpload",ile){},GC=class extends k(z,at,"DeleteBucketAnalyticsConfiguration",ule){},qC=class extends k(z,at,"DeleteBucket",cle){},HC=class extends k(z,at,"DeleteBucketCors",lle){},jC=class extends k(z,at,"DeleteBucketEncryption",dle){},zC=class extends k(z,at,"DeleteBucketIntelligentTieringConfiguration",ple){},VC=class extends k(z,at,"DeleteBucketInventoryConfiguration",fle){},WC=class extends k(z,at,"DeleteBucketLifecycle",mle){},KC=class extends k(z,at,"DeleteBucketMetadataConfiguration",gle){},QC=class extends k(z,at,"DeleteBucketMetadataTableConfiguration",hle){},YC=class extends k(z,at,"DeleteBucketMetricsConfiguration",Sle){},JC=class extends k(z,at,"DeleteBucketOwnershipControls",yle){},XC=class extends k(z,at,"DeleteBucketPolicy",Ele){},ZC=class extends k(z,at,"DeleteBucketReplication",_le){},eb=class extends k(z,at,"DeleteBucketTagging",Rle){},tb=class extends k(z,at,"DeleteBucketWebsite",Cle){},rb=class extends k($t,ce,"DeleteObjectAnnotation",Ale){},nb=class extends k(An,ce,"DeleteObject",ble){},ob=class extends k($t,za,"DeleteObjects",xle){},sb=class extends k($t,ce,"DeleteObjectTagging",Tle){},ib=class extends k(z,at,"DeletePublicAccessBlock",vle){},ab=class extends k($t,ce,"GetBucketAbac",Dle){},cb=class extends k(z,ce,"GetBucketAccelerateConfiguration",Ile){},ub=class extends k(z,ce,"GetBucketAcl",wle){},lb=class extends k(z,ce,"GetBucketAnalyticsConfiguration",Ple){},db=class extends k(z,ce,"GetBucketCors",Ole){},pb=class extends k(z,ce,"GetBucketEncryption",$le){},fb=class extends k(z,ce,"GetBucketIntelligentTieringConfiguration",kle){},mb=class extends k(z,ce,"GetBucketInventoryConfiguration",Mle){},gb=class extends k(z,ce,"GetBucketLifecycleConfiguration",Lle){},hb=class extends k(z,ce,"GetBucketLocation",Nle){},Sb=class extends k(z,ce,"GetBucketLogging",Fle){},yb=class extends k(z,ce,"GetBucketMetadataConfiguration",Ble){},Eb=class extends k(z,ce,"GetBucketMetadataTableConfiguration",Ule){},_b=class extends k(z,ce,"GetBucketMetricsConfiguration",Gle){},Rb=class extends k(z,ce,"GetBucketNotificationConfiguration",qle){},Cb=class extends k(z,ce,"GetBucketOwnershipControls",Hle){},bb=class extends k(z,at,"GetBucketPolicy",jle){},Ab=class extends k(z,ce,"GetBucketPolicyStatus",zle){},xb=class extends k(z,ce,"GetBucketReplication",Vle){},Tb=class extends k(z,ce,"GetBucketRequestPayment",Wle){},vb=class extends k(z,ce,"GetBucketTagging",Kle){},Db=class extends k(z,ce,"GetBucketVersioning",Qle){},Ib=class extends k(z,ce,"GetBucketWebsite",Yle){},wb=class extends k(An,ce,"GetObjectAcl",Xle){},Pb=class extends k(An,AUe,"GetObjectAnnotation",Zle){},Ob=class extends k($t,yd,"GetObjectAttributes",ede){},$b=class extends k(An,xUe,"GetObject",Jle){},kb=class extends k($t,ce,"GetObjectLegalHold",tde){},Mb=class extends k($t,ce,"GetObjectLockConfiguration",rde){},Lb=class extends k($t,ce,"GetObjectRetention",nde){},Nb=class extends k($t,ce,"GetObjectTagging",ode){},Fb=class extends k($t,at,"GetObjectTorrent",sde){},Bb=class extends k(z,ce,"GetPublicAccessBlock",ide){},gd=class extends k($t,ce,"HeadBucket",ade){},hd=class extends k(An,TUe,"HeadObject",cde){},Ub=class extends k(z,ce,"ListBucketAnalyticsConfigurations",ude){},Gb=class extends k(z,ce,"ListBucketIntelligentTieringConfigurations",lde){},qb=class extends k(z,ce,"ListBucketInventoryConfigurations",dde){},Hb=class extends k(z,ce,"ListBucketMetricsConfigurations",pde){},rg=class extends k(_Ue,ce,"ListBuckets",fde){},ng=class extends k(RUe,ce,"ListDirectoryBuckets",mde){},jb=class extends k(OA,ce,"ListMultipartUploads",gde){},og=class extends k($t,ce,"ListObjectAnnotations",hde){},zb=class extends k(OA,ce,"ListObjects",Sde){},sg=class extends k(OA,ce,"ListObjectsV2",yde){},Vb=class extends k(OA,ce,"ListObjectVersions",Ede){},ig=class extends k(An,yd,"ListParts",_de){},Wb=class extends k($t,Dee,"PutBucketAbac",Rde){},Kb=class extends k(z,Dee,"PutBucketAccelerateConfiguration",Cde){},Qb=class extends k(z,Pr,"PutBucketAcl",bde){},Yb=class extends k(z,at,"PutBucketAnalyticsConfiguration",Ade){},Jb=class extends k(z,Pr,"PutBucketCors",xde){},Xb=class extends k(z,Pr,"PutBucketEncryption",Tde){},Zb=class extends k(z,at,"PutBucketIntelligentTieringConfiguration",vde){},eA=class extends k(z,at,"PutBucketInventoryConfiguration",Dde){},tA=class extends k(z,za,"PutBucketLifecycleConfiguration",Ide){},rA=class extends k(z,Pr,"PutBucketLogging",wde){},nA=class extends k(z,at,"PutBucketMetricsConfiguration",Pde){},oA=class extends k(z,at,"PutBucketNotificationConfiguration",Ode){},sA=class extends k(z,Pr,"PutBucketOwnershipControls",$de){},iA=class extends k(z,Pr,"PutBucketPolicy",kde){},aA=class extends k(z,Pr,"PutBucketReplication",Mde){},cA=class extends k(z,Pr,"PutBucketRequestPayment",Lde){},uA=class extends k(z,Pr,"PutBucketTagging",Nde){},lA=class extends k(z,Pr,"PutBucketVersioning",Fde){},dA=class extends k(z,Pr,"PutBucketWebsite",Bde){},pA=class extends k(An,za,"PutObjectAcl",Gde){},fA=class extends k(An,Iee,"PutObjectAnnotation",qde){},mA=class extends k(An,vUe,"PutObject",Ude){},gA=class extends k($t,za,"PutObjectLegalHold",Hde){},hA=class extends k($t,za,"PutObjectLockConfiguration",jde){},SA=class extends k($t,za,"PutObjectRetention",zde){},yA=class extends k($t,za,"PutObjectTagging",Vde){},EA=class extends k(z,Pr,"PutPublicAccessBlock",Wde){},_A=class extends k(An,ce,"RenameObject",Kde){},RA=class extends k($t,Iee,"RestoreObject",Qde){},CA=class extends k($t,DUe,"SelectObjectContent",Yde){},bA=class extends k(z,Pr,"UpdateBucketMetadataAnnotationTableConfiguration",Jde){},AA=class extends k(z,Pr,"UpdateBucketMetadataInventoryTableConfiguration",Xde){},xA=class extends k(z,Pr,"UpdateBucketMetadataJournalTableConfiguration",Zde){},TA=class extends k($t,za,"UpdateObjectEncryption",epe){},vA=class extends k(An,IUe,"UploadPart",tpe){},DA=class extends k(vee,yd,"UploadPartCopy",rpe){},IA=class extends k(CUe,at,"WriteGetObjectResponse",npe){},ope=ag(Bi,rg,"ContinuationToken","ContinuationToken","MaxBuckets"),spe=ag(Bi,ng,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),ipe=ag(Bi,og,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),ape=ag(Bi,sg,"ContinuationToken","NextContinuationToken","MaxKeys"),cpe=ag(Bi,ig,"PartNumberMarker","NextPartNumberMarker","MaxParts"),upe=async(t,e)=>{let r;try{return r=await t.send(new gd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},fKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,upe),lpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,upe);return PA(n)},dpe=async(t,e)=>{let r;try{r=await t.send(new gd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},mKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,dpe),ppe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,dpe);return PA(n)},fpe=async(t,e)=>{let r;try{return r=await t.send(new hd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},gKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,fpe),mpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,fpe);return PA(n)},gpe=async(t,e)=>{let r;try{r=await t.send(new hd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},hKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,gpe),hpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,gpe);return PA(n)},SKe={AbortMultipartUploadCommand:kC,CompleteMultipartUploadCommand:MC,CopyObjectCommand:LC,CreateBucketCommand:NC,CreateBucketMetadataConfigurationCommand:FC,CreateBucketMetadataTableConfigurationCommand:BC,CreateMultipartUploadCommand:UC,CreateSessionCommand:tg,DeleteBucketCommand:qC,DeleteBucketAnalyticsConfigurationCommand:GC,DeleteBucketCorsCommand:HC,DeleteBucketEncryptionCommand:jC,DeleteBucketIntelligentTieringConfigurationCommand:zC,DeleteBucketInventoryConfigurationCommand:VC,DeleteBucketLifecycleCommand:WC,DeleteBucketMetadataConfigurationCommand:KC,DeleteBucketMetadataTableConfigurationCommand:QC,DeleteBucketMetricsConfigurationCommand:YC,DeleteBucketOwnershipControlsCommand:JC,DeleteBucketPolicyCommand:XC,DeleteBucketReplicationCommand:ZC,DeleteBucketTaggingCommand:eb,DeleteBucketWebsiteCommand:tb,DeleteObjectCommand:nb,DeleteObjectAnnotationCommand:rb,DeleteObjectsCommand:ob,DeleteObjectTaggingCommand:sb,DeletePublicAccessBlockCommand:ib,GetBucketAbacCommand:ab,GetBucketAccelerateConfigurationCommand:cb,GetBucketAclCommand:ub,GetBucketAnalyticsConfigurationCommand:lb,GetBucketCorsCommand:db,GetBucketEncryptionCommand:pb,GetBucketIntelligentTieringConfigurationCommand:fb,GetBucketInventoryConfigurationCommand:mb,GetBucketLifecycleConfigurationCommand:gb,GetBucketLocationCommand:hb,GetBucketLoggingCommand:Sb,GetBucketMetadataConfigurationCommand:yb,GetBucketMetadataTableConfigurationCommand:Eb,GetBucketMetricsConfigurationCommand:_b,GetBucketNotificationConfigurationCommand:Rb,GetBucketOwnershipControlsCommand:Cb,GetBucketPolicyCommand:bb,GetBucketPolicyStatusCommand:Ab,GetBucketReplicationCommand:xb,GetBucketRequestPaymentCommand:Tb,GetBucketTaggingCommand:vb,GetBucketVersioningCommand:Db,GetBucketWebsiteCommand:Ib,GetObjectCommand:$b,GetObjectAclCommand:wb,GetObjectAnnotationCommand:Pb,GetObjectAttributesCommand:Ob,GetObjectLegalHoldCommand:kb,GetObjectLockConfigurationCommand:Mb,GetObjectRetentionCommand:Lb,GetObjectTaggingCommand:Nb,GetObjectTorrentCommand:Fb,GetPublicAccessBlockCommand:Bb,HeadBucketCommand:gd,HeadObjectCommand:hd,ListBucketAnalyticsConfigurationsCommand:Ub,ListBucketIntelligentTieringConfigurationsCommand:Gb,ListBucketInventoryConfigurationsCommand:qb,ListBucketMetricsConfigurationsCommand:Hb,ListBucketsCommand:rg,ListDirectoryBucketsCommand:ng,ListMultipartUploadsCommand:jb,ListObjectAnnotationsCommand:og,ListObjectsCommand:zb,ListObjectsV2Command:sg,ListObjectVersionsCommand:Vb,ListPartsCommand:ig,PutBucketAbacCommand:Wb,PutBucketAccelerateConfigurationCommand:Kb,PutBucketAclCommand:Qb,PutBucketAnalyticsConfigurationCommand:Yb,PutBucketCorsCommand:Jb,PutBucketEncryptionCommand:Xb,PutBucketIntelligentTieringConfigurationCommand:Zb,PutBucketInventoryConfigurationCommand:eA,PutBucketLifecycleConfigurationCommand:tA,PutBucketLoggingCommand:rA,PutBucketMetricsConfigurationCommand:nA,PutBucketNotificationConfigurationCommand:oA,PutBucketOwnershipControlsCommand:sA,PutBucketPolicyCommand:iA,PutBucketReplicationCommand:aA,PutBucketRequestPaymentCommand:cA,PutBucketTaggingCommand:uA,PutBucketVersioningCommand:lA,PutBucketWebsiteCommand:dA,PutObjectCommand:mA,PutObjectAclCommand:pA,PutObjectAnnotationCommand:fA,PutObjectLegalHoldCommand:gA,PutObjectLockConfigurationCommand:hA,PutObjectRetentionCommand:SA,PutObjectTaggingCommand:yA,PutPublicAccessBlockCommand:EA,RenameObjectCommand:_A,RestoreObjectCommand:RA,SelectObjectContentCommand:CA,UpdateBucketMetadataAnnotationTableConfigurationCommand:bA,UpdateBucketMetadataInventoryTableConfigurationCommand:AA,UpdateBucketMetadataJournalTableConfigurationCommand:xA,UpdateObjectEncryptionCommand:TA,UploadPartCommand:vA,UploadPartCopyCommand:DA,WriteGetObjectResponseCommand:IA},yKe={paginateListBuckets:ope,paginateListDirectoryBuckets:spe,paginateListObjectAnnotations:ipe,paginateListObjectsV2:ape,paginateListParts:cpe},EKe={waitUntilBucketExists:lpe,waitUntilBucketNotExists:ppe,waitUntilObjectExists:mpe,waitUntilObjectNotExists:hpe},wA=class extends Bi{};d2e(SKe,wA,{paginators:yKe,waiters:EKe});var _Ke={Disabled:"Disabled",Enabled:"Enabled"},RKe={requester:"requester"},CKe={requester:"requester"},bKe={Enabled:"Enabled",Suspended:"Suspended"},AKe={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},xKe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},TKe={Destination:"Destination"},vKe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},DKe={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},IKe={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},wKe={COPY:"COPY",EXCLUDE:"EXCLUDE"},PKe={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},OKe={COPY:"COPY",REPLACE:"REPLACE"},$Ke={OFF:"OFF",ON:"ON"},kKe={OFF:"OFF",ON:"ON"},MKe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},LKe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},NKe={COPY:"COPY",REPLACE:"REPLACE"},FKe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},BKe={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},UKe={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},GKe={Directory:"Directory"},qKe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},HKe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},jKe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},zKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},VKe={AES256:"AES256",aws_kms:"aws:kms"},WKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},KKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},QKe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},YKe={CSV:"CSV"},JKe={V_1:"V_1"},XKe={NONE:"NONE",SSE_C:"SSE-C"},ZKe={Disabled:"Disabled",Enabled:"Enabled"},eQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},tQe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},rQe={All:"All",Current:"Current"},nQe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},oQe={Daily:"Daily",Weekly:"Weekly"},sQe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},iQe={Disabled:"Disabled",Enabled:"Enabled"},aQe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},cQe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},uQe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},lQe={aws:"aws",customer:"customer"},dQe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},pQe={prefix:"prefix",suffix:"suffix"},fQe={Disabled:"Disabled",Enabled:"Enabled"},mQe={Disabled:"Disabled",Enabled:"Enabled"},gQe={Disabled:"Disabled",Enabled:"Enabled"},hQe={Disabled:"Disabled",Enabled:"Enabled"},SQe={Disabled:"Disabled",Enabled:"Enabled"},yQe={Disabled:"Disabled",Enabled:"Enabled"},EQe={Disabled:"Disabled",Enabled:"Enabled"},_Qe={BucketOwner:"BucketOwner",Requester:"Requester"},RQe={Disabled:"Disabled",Enabled:"Enabled"},CQe={Enabled:"Enabled",Suspended:"Suspended"},bQe={http:"http",https:"https"},AQe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},xQe={ENABLED:"ENABLED"},TQe={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},vQe={Enabled:"Enabled"},DQe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},IQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},wQe={url:"url"},PQe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},OQe={RESTORE_STATUS:"RestoreStatus"},$Qe={STANDARD:"STANDARD"},kQe={Disabled:"Disabled",Enabled:"Enabled"},MQe={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},LQe={SQL:"SQL"},NQe={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},FQe={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},BQe={DOCUMENT:"DOCUMENT",LINES:"LINES"},UQe={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},GQe={SELECT:"SELECT"};d.AbacStatus$=cN;d.AbortIncompleteMultipartUpload$=ooe;d.AbortMultipartUpload$=ele;d.AbortMultipartUploadCommand=kC;d.AbortMultipartUploadOutput$=soe;d.AbortMultipartUploadRequest$=ioe;d.AccelerateConfiguration$=aoe;d.AccessControlPolicy$=uN;d.AccessControlTranslation$=coe;d.AccessDenied=VR;d.AccessDenied$=Mne;d.AnalyticsAndOperator$=uoe;d.AnalyticsConfiguration$=tx;d.AnalyticsExportDestination$=loe;d.AnalyticsFilter$=Yue;d.AnalyticsS3BucketDestination$=doe;d.AnalyticsS3ExportFileFormat=YKe;d.AnnotationConfigurationState=zKe;d.AnnotationDirective=wKe;d.AnnotationEntry$=poe;d.AnnotationLimitExceeded=iC;d.AnnotationLimitExceeded$=Lne;d.AnnotationNameTooLong=aC;d.AnnotationNameTooLong$=Nne;d.AnnotationTableConfiguration$=foe;d.AnnotationTableConfigurationResult$=moe;d.AnnotationTableConfigurationUpdates$=goe;d.ArchiveStatus=IQe;d.BlockedEncryptionTypes$=hoe;d.Bucket$=Soe;d.BucketAbacStatus=_Ke;d.BucketAccelerateStatus=bKe;d.BucketAlreadyExists=KR;d.BucketAlreadyExists$=Fne;d.BucketAlreadyOwnedByYou=QR;d.BucketAlreadyOwnedByYou$=Bne;d.BucketCannedACL=FKe;d.BucketInfo$=yoe;d.BucketLifecycleConfiguration$=Eoe;d.BucketLocationConstraint=HKe;d.BucketLoggingStatus$=_oe;d.BucketLogsPermission=cQe;d.BucketNamespace=BKe;d.BucketType=GKe;d.BucketVersioningStatus=CQe;d.CORSConfiguration$=$oe;d.CORSRule$=koe;d.CSVInput$=joe;d.CSVOutput$=zoe;d.Checksum$=Roe;d.ChecksumAlgorithm=PKe;d.ChecksumMode=xQe;d.ChecksumType=vKe;d.CommonPrefix$=Coe;d.CompleteMultipartUpload$=tle;d.CompleteMultipartUploadCommand=MC;d.CompleteMultipartUploadOutput$=xoe;d.CompleteMultipartUploadRequest$=Toe;d.CompletedMultipartUpload$=boe;d.CompletedPart$=Aoe;d.CompressionType=NQe;d.Condition$=voe;d.ContinuationEvent$=Doe;d.CopyObject$=rle;d.CopyObjectCommand=LC;d.CopyObjectOutput$=Ioe;d.CopyObjectRequest$=woe;d.CopyObjectResult$=Poe;d.CopyPartResult$=Ooe;d.CreateBucket$=nle;d.CreateBucketCommand=NC;d.CreateBucketConfiguration$=Moe;d.CreateBucketMetadataConfiguration$=ole;d.CreateBucketMetadataConfigurationCommand=FC;d.CreateBucketMetadataConfigurationRequest$=Loe;d.CreateBucketMetadataTableConfiguration$=sle;d.CreateBucketMetadataTableConfigurationCommand=BC;d.CreateBucketMetadataTableConfigurationRequest$=Noe;d.CreateBucketOutput$=Foe;d.CreateBucketRequest$=Boe;d.CreateMultipartUpload$=ile;d.CreateMultipartUploadCommand=UC;d.CreateMultipartUploadOutput$=Uoe;d.CreateMultipartUploadRequest$=Goe;d.CreateSession$=ale;d.CreateSessionCommand=tg;d.CreateSessionOutput$=qoe;d.CreateSessionRequest$=Hoe;d.DataRedundancy=UKe;d.DefaultRetention$=Voe;d.Delete$=Woe;d.DeleteBucket$=cle;d.DeleteBucketAnalyticsConfiguration$=ule;d.DeleteBucketAnalyticsConfigurationCommand=GC;d.DeleteBucketAnalyticsConfigurationRequest$=Koe;d.DeleteBucketCommand=qC;d.DeleteBucketCors$=lle;d.DeleteBucketCorsCommand=HC;d.DeleteBucketCorsRequest$=Qoe;d.DeleteBucketEncryption$=dle;d.DeleteBucketEncryptionCommand=jC;d.DeleteBucketEncryptionRequest$=Yoe;d.DeleteBucketIntelligentTieringConfiguration$=ple;d.DeleteBucketIntelligentTieringConfigurationCommand=zC;d.DeleteBucketIntelligentTieringConfigurationRequest$=Joe;d.DeleteBucketInventoryConfiguration$=fle;d.DeleteBucketInventoryConfigurationCommand=VC;d.DeleteBucketInventoryConfigurationRequest$=Xoe;d.DeleteBucketLifecycle$=mle;d.DeleteBucketLifecycleCommand=WC;d.DeleteBucketLifecycleRequest$=Zoe;d.DeleteBucketMetadataConfiguration$=gle;d.DeleteBucketMetadataConfigurationCommand=KC;d.DeleteBucketMetadataConfigurationRequest$=ese;d.DeleteBucketMetadataTableConfiguration$=hle;d.DeleteBucketMetadataTableConfigurationCommand=QC;d.DeleteBucketMetadataTableConfigurationRequest$=tse;d.DeleteBucketMetricsConfiguration$=Sle;d.DeleteBucketMetricsConfigurationCommand=YC;d.DeleteBucketMetricsConfigurationRequest$=rse;d.DeleteBucketOwnershipControls$=yle;d.DeleteBucketOwnershipControlsCommand=JC;d.DeleteBucketOwnershipControlsRequest$=nse;d.DeleteBucketPolicy$=Ele;d.DeleteBucketPolicyCommand=XC;d.DeleteBucketPolicyRequest$=ose;d.DeleteBucketReplication$=_le;d.DeleteBucketReplicationCommand=ZC;d.DeleteBucketReplicationRequest$=sse;d.DeleteBucketRequest$=ise;d.DeleteBucketTagging$=Rle;d.DeleteBucketTaggingCommand=eb;d.DeleteBucketTaggingRequest$=ase;d.DeleteBucketWebsite$=Cle;d.DeleteBucketWebsiteCommand=tb;d.DeleteBucketWebsiteRequest$=cse;d.DeleteMarkerEntry$=lse;d.DeleteMarkerReplication$=dse;d.DeleteMarkerReplicationStatus=fQe;d.DeleteObject$=ble;d.DeleteObjectAnnotation$=Ale;d.DeleteObjectAnnotationCommand=rb;d.DeleteObjectAnnotationOutput$=pse;d.DeleteObjectAnnotationRequest$=fse;d.DeleteObjectCommand=nb;d.DeleteObjectOutput$=mse;d.DeleteObjectRequest$=gse;d.DeleteObjectTagging$=Tle;d.DeleteObjectTaggingCommand=sb;d.DeleteObjectTaggingOutput$=yse;d.DeleteObjectTaggingRequest$=Ese;d.DeleteObjects$=xle;d.DeleteObjectsCommand=ob;d.DeleteObjectsOutput$=hse;d.DeleteObjectsRequest$=Sse;d.DeletePublicAccessBlock$=vle;d.DeletePublicAccessBlockCommand=ib;d.DeletePublicAccessBlockRequest$=_se;d.DeletedObject$=use;d.Destination$=Rse;d.DestinationResult$=Cse;d.EncodingType=wQe;d.Encryption$=bse;d.EncryptionConfiguration$=Ase;d.EncryptionType=XKe;d.EncryptionTypeMismatch=rC;d.EncryptionTypeMismatch$=Une;d.EndEvent$=xse;d.ErrorDetails$=Lg;d.ErrorDocument$=lN;d.Event=dQe;d.EventBridgeConfiguration$=vse;d.EventHoldDuration$=dN;d.ExistingObjectReplication$=Dse;d.ExistingObjectReplicationStatus=hQe;d.ExpirationState=KKe;d.ExpirationStatus=iQe;d.ExpressionType=LQe;d.FileHeaderInfo=FQe;d.FilterRule$=Ise;d.FilterRuleName=pQe;d.GetBucketAbac$=Dle;d.GetBucketAbacCommand=ab;d.GetBucketAbacOutput$=wse;d.GetBucketAbacRequest$=Pse;d.GetBucketAccelerateConfiguration$=Ile;d.GetBucketAccelerateConfigurationCommand=cb;d.GetBucketAccelerateConfigurationOutput$=Ose;d.GetBucketAccelerateConfigurationRequest$=$se;d.GetBucketAcl$=wle;d.GetBucketAclCommand=ub;d.GetBucketAclOutput$=kse;d.GetBucketAclRequest$=Mse;d.GetBucketAnalyticsConfiguration$=Ple;d.GetBucketAnalyticsConfigurationCommand=lb;d.GetBucketAnalyticsConfigurationOutput$=Lse;d.GetBucketAnalyticsConfigurationRequest$=Nse;d.GetBucketCors$=Ole;d.GetBucketCorsCommand=db;d.GetBucketCorsOutput$=Fse;d.GetBucketCorsRequest$=Bse;d.GetBucketEncryption$=$le;d.GetBucketEncryptionCommand=pb;d.GetBucketEncryptionOutput$=Use;d.GetBucketEncryptionRequest$=Gse;d.GetBucketIntelligentTieringConfiguration$=kle;d.GetBucketIntelligentTieringConfigurationCommand=fb;d.GetBucketIntelligentTieringConfigurationOutput$=qse;d.GetBucketIntelligentTieringConfigurationRequest$=Hse;d.GetBucketInventoryConfiguration$=Mle;d.GetBucketInventoryConfigurationCommand=mb;d.GetBucketInventoryConfigurationOutput$=jse;d.GetBucketInventoryConfigurationRequest$=zse;d.GetBucketLifecycleConfiguration$=Lle;d.GetBucketLifecycleConfigurationCommand=gb;d.GetBucketLifecycleConfigurationOutput$=Vse;d.GetBucketLifecycleConfigurationRequest$=Wse;d.GetBucketLocation$=Nle;d.GetBucketLocationCommand=hb;d.GetBucketLocationOutput$=Kse;d.GetBucketLocationRequest$=Qse;d.GetBucketLogging$=Fle;d.GetBucketLoggingCommand=Sb;d.GetBucketLoggingOutput$=Yse;d.GetBucketLoggingRequest$=Jse;d.GetBucketMetadataConfiguration$=Ble;d.GetBucketMetadataConfigurationCommand=yb;d.GetBucketMetadataConfigurationOutput$=Xse;d.GetBucketMetadataConfigurationRequest$=Zse;d.GetBucketMetadataConfigurationResult$=eie;d.GetBucketMetadataTableConfiguration$=Ule;d.GetBucketMetadataTableConfigurationCommand=Eb;d.GetBucketMetadataTableConfigurationOutput$=tie;d.GetBucketMetadataTableConfigurationRequest$=rie;d.GetBucketMetadataTableConfigurationResult$=nie;d.GetBucketMetricsConfiguration$=Gle;d.GetBucketMetricsConfigurationCommand=_b;d.GetBucketMetricsConfigurationOutput$=oie;d.GetBucketMetricsConfigurationRequest$=sie;d.GetBucketNotificationConfiguration$=qle;d.GetBucketNotificationConfigurationCommand=Rb;d.GetBucketNotificationConfigurationRequest$=iie;d.GetBucketOwnershipControls$=Hle;d.GetBucketOwnershipControlsCommand=Cb;d.GetBucketOwnershipControlsOutput$=aie;d.GetBucketOwnershipControlsRequest$=cie;d.GetBucketPolicy$=jle;d.GetBucketPolicyCommand=bb;d.GetBucketPolicyOutput$=uie;d.GetBucketPolicyRequest$=lie;d.GetBucketPolicyStatus$=zle;d.GetBucketPolicyStatusCommand=Ab;d.GetBucketPolicyStatusOutput$=die;d.GetBucketPolicyStatusRequest$=pie;d.GetBucketReplication$=Vle;d.GetBucketReplicationCommand=xb;d.GetBucketReplicationOutput$=fie;d.GetBucketReplicationRequest$=mie;d.GetBucketRequestPayment$=Wle;d.GetBucketRequestPaymentCommand=Tb;d.GetBucketRequestPaymentOutput$=gie;d.GetBucketRequestPaymentRequest$=hie;d.GetBucketTagging$=Kle;d.GetBucketTaggingCommand=vb;d.GetBucketTaggingOutput$=Sie;d.GetBucketTaggingRequest$=yie;d.GetBucketVersioning$=Qle;d.GetBucketVersioningCommand=Db;d.GetBucketVersioningOutput$=Eie;d.GetBucketVersioningRequest$=_ie;d.GetBucketWebsite$=Yle;d.GetBucketWebsiteCommand=Ib;d.GetBucketWebsiteOutput$=Rie;d.GetBucketWebsiteRequest$=Cie;d.GetObject$=Jle;d.GetObjectAcl$=Xle;d.GetObjectAclCommand=wb;d.GetObjectAclOutput$=bie;d.GetObjectAclRequest$=Aie;d.GetObjectAnnotation$=Zle;d.GetObjectAnnotationCommand=Pb;d.GetObjectAnnotationOutput$=xie;d.GetObjectAnnotationRequest$=Tie;d.GetObjectAttributes$=ede;d.GetObjectAttributesCommand=Ob;d.GetObjectAttributesOutput$=vie;d.GetObjectAttributesParts$=Die;d.GetObjectAttributesRequest$=Iie;d.GetObjectCommand=$b;d.GetObjectLegalHold$=tde;d.GetObjectLegalHoldCommand=kb;d.GetObjectLegalHoldOutput$=wie;d.GetObjectLegalHoldRequest$=Pie;d.GetObjectLockConfiguration$=rde;d.GetObjectLockConfigurationCommand=Mb;d.GetObjectLockConfigurationOutput$=Oie;d.GetObjectLockConfigurationRequest$=$ie;d.GetObjectOutput$=kie;d.GetObjectRequest$=Mie;d.GetObjectRetention$=nde;d.GetObjectRetentionCommand=Lb;d.GetObjectRetentionOutput$=Lie;d.GetObjectRetentionRequest$=Nie;d.GetObjectTagging$=ode;d.GetObjectTaggingCommand=Nb;d.GetObjectTaggingOutput$=Fie;d.GetObjectTaggingRequest$=Bie;d.GetObjectTorrent$=sde;d.GetObjectTorrentCommand=Fb;d.GetObjectTorrentOutput$=Uie;d.GetObjectTorrentRequest$=Gie;d.GetPublicAccessBlock$=ide;d.GetPublicAccessBlockCommand=Bb;d.GetPublicAccessBlockOutput$=qie;d.GetPublicAccessBlockRequest$=Hie;d.GlacierJobParameters$=jie;d.Grant$=zie;d.Grantee$=pN;d.HeadBucket$=ade;d.HeadBucketCommand=gd;d.HeadBucketOutput$=Vie;d.HeadBucketRequest$=Wie;d.HeadObject$=cde;d.HeadObjectCommand=hd;d.HeadObjectOutput$=Kie;d.HeadObjectRequest$=Qie;d.IdempotencyParameterMismatch=lC;d.IdempotencyParameterMismatch$=Gne;d.IndexDocument$=fN;d.Initiator$=mN;d.InputSerialization$=gN;d.IntelligentTieringAccessTier=eQe;d.IntelligentTieringAndOperator$=Yie;d.IntelligentTieringConfiguration$=rx;d.IntelligentTieringFilter$=Jie;d.IntelligentTieringStatus=ZKe;d.InvalidAnnotationName=cC;d.InvalidAnnotationName$=qne;d.InvalidObjectState=XR;d.InvalidObjectState$=Hne;d.InvalidPrefix=tC;d.InvalidPrefix$=jne;d.InvalidRequest=nC;d.InvalidRequest$=zne;d.InvalidWriteOffset=oC;d.InvalidWriteOffset$=Vne;d.InventoryConfiguration$=nx;d.InventoryConfigurationState=WKe;d.InventoryDestination$=Xie;d.InventoryEncryption$=Zie;d.InventoryFilter$=eae;d.InventoryFormat=tQe;d.InventoryFrequency=oQe;d.InventoryIncludedObjectVersions=rQe;d.InventoryOptionalField=nQe;d.InventoryS3BucketDestination$=tae;d.InventorySchedule$=rae;d.InventoryTableConfiguration$=nae;d.InventoryTableConfigurationResult$=oae;d.InventoryTableConfigurationUpdates$=sae;d.JSONInput$=uae;d.JSONOutput$=lae;d.JSONType=BQe;d.JournalTableConfiguration$=iae;d.JournalTableConfigurationResult$=aae;d.JournalTableConfigurationUpdates$=cae;d.LambdaFunctionConfiguration$=dae;d.LifecycleExpiration$=pae;d.LifecycleRule$=fae;d.LifecycleRuleAndOperator$=mae;d.LifecycleRuleFilter$=gae;d.ListBucketAnalyticsConfigurations$=ude;d.ListBucketAnalyticsConfigurationsCommand=Ub;d.ListBucketAnalyticsConfigurationsOutput$=hae;d.ListBucketAnalyticsConfigurationsRequest$=Sae;d.ListBucketIntelligentTieringConfigurations$=lde;d.ListBucketIntelligentTieringConfigurationsCommand=Gb;d.ListBucketIntelligentTieringConfigurationsOutput$=yae;d.ListBucketIntelligentTieringConfigurationsRequest$=Eae;d.ListBucketInventoryConfigurations$=dde;d.ListBucketInventoryConfigurationsCommand=qb;d.ListBucketInventoryConfigurationsOutput$=_ae;d.ListBucketInventoryConfigurationsRequest$=Rae;d.ListBucketMetricsConfigurations$=pde;d.ListBucketMetricsConfigurationsCommand=Hb;d.ListBucketMetricsConfigurationsOutput$=Cae;d.ListBucketMetricsConfigurationsRequest$=bae;d.ListBuckets$=fde;d.ListBucketsCommand=rg;d.ListBucketsOutput$=Aae;d.ListBucketsRequest$=xae;d.ListDirectoryBuckets$=mde;d.ListDirectoryBucketsCommand=ng;d.ListDirectoryBucketsOutput$=Tae;d.ListDirectoryBucketsRequest$=vae;d.ListMultipartUploads$=gde;d.ListMultipartUploadsCommand=jb;d.ListMultipartUploadsOutput$=Dae;d.ListMultipartUploadsRequest$=Iae;d.ListObjectAnnotations$=hde;d.ListObjectAnnotationsCommand=og;d.ListObjectAnnotationsOutput$=wae;d.ListObjectAnnotationsRequest$=Pae;d.ListObjectVersions$=Ede;d.ListObjectVersionsCommand=Vb;d.ListObjectVersionsOutput$=Lae;d.ListObjectVersionsRequest$=Nae;d.ListObjects$=Sde;d.ListObjectsCommand=zb;d.ListObjectsOutput$=Oae;d.ListObjectsRequest$=$ae;d.ListObjectsV2$=yde;d.ListObjectsV2Command=sg;d.ListObjectsV2Output$=kae;d.ListObjectsV2Request$=Mae;d.ListParts$=_de;d.ListPartsCommand=ig;d.ListPartsOutput$=Fae;d.ListPartsRequest$=Bae;d.LocationInfo$=Uae;d.LocationType=qKe;d.LoggingEnabled$=hN;d.MFADelete=kQe;d.MFADeleteStatus=RQe;d.MetadataConfiguration$=Gae;d.MetadataConfigurationResult$=qae;d.MetadataDirective=OKe;d.MetadataEntry$=Hae;d.MetadataTableConfiguration$=jae;d.MetadataTableConfigurationResult$=zae;d.MetadataTableEncryptionConfiguration$=Jd;d.Metrics$=Vae;d.MetricsAndOperator$=Wae;d.MetricsConfiguration$=ox;d.MetricsFilter$=Jue;d.MetricsStatus=mQe;d.MultipartUpload$=Kae;d.NoSuchAnnotation=ZR;d.NoSuchAnnotation$=Wne;d.NoSuchBucket=YR;d.NoSuchBucket$=Kne;d.NoSuchKey=JR;d.NoSuchKey$=Qne;d.NoSuchUpload=zR;d.NoSuchUpload$=Yne;d.NoncurrentVersionExpiration$=Qae;d.NoncurrentVersionTransition$=Yae;d.NotFound=eC;d.NotFound$=Jne;d.NotificationConfiguration$=SN;d.NotificationConfigurationFilter$=sx;d.ObjectAlreadyInActiveTierError=dC;d.ObjectAlreadyInActiveTierError$=Xne;d.ObjectAttributes=TQe;d.ObjectCannedACL=IKe;d.ObjectEncryption$=Xue;d.ObjectIdentifier$=Xae;d.ObjectLockConfiguration$=yN;d.ObjectLockEnabled=vQe;d.ObjectLockEventHold=$Ke;d.ObjectLockLegalHold$=EN;d.ObjectLockLegalHoldStatus=kKe;d.ObjectLockMode=MKe;d.ObjectLockRetention$=_N;d.ObjectLockRetentionMode=DQe;d.ObjectLockRule$=Zae;d.ObjectNotInActiveTierError=WR;d.ObjectNotInActiveTierError$=Zne;d.ObjectOwnership=jKe;d.ObjectPart$=ece;d.ObjectStorageClass=PQe;d.ObjectVersion$=tce;d.ObjectVersionStorageClass=$Qe;d.OptionalObjectAttributes=OQe;d.OutputLocation$=rce;d.OutputSerialization$=RN;d.Owner$=gi;d.OwnerOverride=TKe;d.OwnershipControls$=CN;d.OwnershipControlsRule$=nce;d.ParquetInput$=oce;d.Part$=sce;d.PartitionDateSource=uQe;d.PartitionedPrefix$=ice;d.Payer=_Qe;d.Permission=xKe;d.PolicyStatus$=ace;d.Progress$=cce;d.ProgressEvent$=uce;d.Protocol=bQe;d.PublicAccessBlockConfiguration$=bN;d.PutBucketAbac$=Rde;d.PutBucketAbacCommand=Wb;d.PutBucketAbacRequest$=lce;d.PutBucketAccelerateConfiguration$=Cde;d.PutBucketAccelerateConfigurationCommand=Kb;d.PutBucketAccelerateConfigurationRequest$=dce;d.PutBucketAcl$=bde;d.PutBucketAclCommand=Qb;d.PutBucketAclRequest$=pce;d.PutBucketAnalyticsConfiguration$=Ade;d.PutBucketAnalyticsConfigurationCommand=Yb;d.PutBucketAnalyticsConfigurationRequest$=fce;d.PutBucketCors$=xde;d.PutBucketCorsCommand=Jb;d.PutBucketCorsRequest$=mce;d.PutBucketEncryption$=Tde;d.PutBucketEncryptionCommand=Xb;d.PutBucketEncryptionRequest$=gce;d.PutBucketIntelligentTieringConfiguration$=vde;d.PutBucketIntelligentTieringConfigurationCommand=Zb;d.PutBucketIntelligentTieringConfigurationRequest$=hce;d.PutBucketInventoryConfiguration$=Dde;d.PutBucketInventoryConfigurationCommand=eA;d.PutBucketInventoryConfigurationRequest$=Sce;d.PutBucketLifecycleConfiguration$=Ide;d.PutBucketLifecycleConfigurationCommand=tA;d.PutBucketLifecycleConfigurationOutput$=yce;d.PutBucketLifecycleConfigurationRequest$=Ece;d.PutBucketLogging$=wde;d.PutBucketLoggingCommand=rA;d.PutBucketLoggingRequest$=_ce;d.PutBucketMetricsConfiguration$=Pde;d.PutBucketMetricsConfigurationCommand=nA;d.PutBucketMetricsConfigurationRequest$=Rce;d.PutBucketNotificationConfiguration$=Ode;d.PutBucketNotificationConfigurationCommand=oA;d.PutBucketNotificationConfigurationRequest$=Cce;d.PutBucketOwnershipControls$=$de;d.PutBucketOwnershipControlsCommand=sA;d.PutBucketOwnershipControlsRequest$=bce;d.PutBucketPolicy$=kde;d.PutBucketPolicyCommand=iA;d.PutBucketPolicyRequest$=Ace;d.PutBucketReplication$=Mde;d.PutBucketReplicationCommand=aA;d.PutBucketReplicationRequest$=xce;d.PutBucketRequestPayment$=Lde;d.PutBucketRequestPaymentCommand=cA;d.PutBucketRequestPaymentRequest$=Tce;d.PutBucketTagging$=Nde;d.PutBucketTaggingCommand=uA;d.PutBucketTaggingRequest$=vce;d.PutBucketVersioning$=Fde;d.PutBucketVersioningCommand=lA;d.PutBucketVersioningRequest$=Dce;d.PutBucketWebsite$=Bde;d.PutBucketWebsiteCommand=dA;d.PutBucketWebsiteRequest$=Ice;d.PutObject$=Ude;d.PutObjectAcl$=Gde;d.PutObjectAclCommand=pA;d.PutObjectAclOutput$=wce;d.PutObjectAclRequest$=Pce;d.PutObjectAnnotation$=qde;d.PutObjectAnnotationCommand=fA;d.PutObjectAnnotationOutput$=Oce;d.PutObjectAnnotationRequest$=$ce;d.PutObjectCommand=mA;d.PutObjectLegalHold$=Hde;d.PutObjectLegalHoldCommand=gA;d.PutObjectLegalHoldOutput$=kce;d.PutObjectLegalHoldRequest$=Mce;d.PutObjectLockConfiguration$=jde;d.PutObjectLockConfigurationCommand=hA;d.PutObjectLockConfigurationOutput$=Lce;d.PutObjectLockConfigurationRequest$=Nce;d.PutObjectOutput$=Fce;d.PutObjectRequest$=Bce;d.PutObjectRetention$=zde;d.PutObjectRetentionCommand=SA;d.PutObjectRetentionOutput$=Uce;d.PutObjectRetentionRequest$=Gce;d.PutObjectTagging$=Vde;d.PutObjectTaggingCommand=yA;d.PutObjectTaggingOutput$=qce;d.PutObjectTaggingRequest$=Hce;d.PutPublicAccessBlock$=Wde;d.PutPublicAccessBlockCommand=EA;d.PutPublicAccessBlockRequest$=jce;d.QueueConfiguration$=zce;d.QuoteFields=UQe;d.RecordExpiration$=ix;d.RecordsEvent$=Vce;d.Redirect$=Wce;d.RedirectAllRequestsTo$=AN;d.RenameObject$=Kde;d.RenameObjectCommand=_A;d.RenameObjectOutput$=Kce;d.RenameObjectRequest$=Qce;d.ReplicaModifications$=Yce;d.ReplicaModificationsStatus=SQe;d.ReplicationConfiguration$=xN;d.ReplicationRule$=Jce;d.ReplicationRuleAndOperator$=Xce;d.ReplicationRuleFilter$=Zce;d.ReplicationRuleStatus=EQe;d.ReplicationStatus=AQe;d.ReplicationTime$=eue;d.ReplicationTimeStatus=gQe;d.ReplicationTimeValue$=TN;d.RequestCharged=RKe;d.RequestPayer=CKe;d.RequestPaymentConfiguration$=tue;d.RequestProgress$=rue;d.RestoreObject$=Qde;d.RestoreObjectCommand=RA;d.RestoreObjectOutput$=nue;d.RestoreObjectRequest$=oue;d.RestoreRequest$=sue;d.RestoreRequestType=GQe;d.RestoreStatus$=vN;d.RoutingRule$=iue;d.S3=wA;d.S3Client=Bi;d.S3KeyFilter$=aue;d.S3Location$=cue;d.S3ServiceException=rt;d.S3ServiceException$=kne;d.S3TablesBucketType=lQe;d.S3TablesDestination$=uue;d.S3TablesDestinationResult$=lue;d.SSEKMS$=_ue;d.SSEKMSEncryption$=Cue;d.SSES3$=bue;d.ScanRange$=due;d.SelectObjectContent$=Yde;d.SelectObjectContentCommand=CA;d.SelectObjectContentEventStream$=Zue;d.SelectObjectContentOutput$=pue;d.SelectObjectContentRequest$=fue;d.SelectParameters$=mue;d.ServerSideEncryption=DKe;d.ServerSideEncryptionByDefault$=gue;d.ServerSideEncryptionConfiguration$=DN;d.ServerSideEncryptionRule$=hue;d.SessionCredentials$=Sue;d.SessionMode=QKe;d.SimplePrefix$=yue;d.SourceSelectionCriteria$=Eue;d.SseKmsEncryptedObjects$=Rue;d.SseKmsEncryptedObjectsStatus=yQe;d.Stats$=Aue;d.StatsEvent$=xue;d.StorageClass=LKe;d.StorageClassAnalysis$=Tue;d.StorageClassAnalysisDataExport$=vue;d.StorageClassAnalysisSchemaVersion=JKe;d.TableSseAlgorithm=VKe;d.Tag$=lu;d.Tagging$=ax;d.TaggingDirective=NKe;d.TargetGrant$=Due;d.TargetObjectKeyFormat$=Iue;d.Tier=MQe;d.Tiering$=wue;d.TooManyParts=sC;d.TooManyParts$=eoe;d.TopicConfiguration$=Pue;d.Transition$=Oue;d.TransitionDefaultMinimumObjectSize=aQe;d.TransitionStorageClass=sQe;d.Type=AKe;d.UnsupportedMediaType=uC;d.UnsupportedMediaType$=toe;d.UpdateBucketMetadataAnnotationTableConfiguration$=Jde;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=bA;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=$ue;d.UpdateBucketMetadataInventoryTableConfiguration$=Xde;d.UpdateBucketMetadataInventoryTableConfigurationCommand=AA;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=kue;d.UpdateBucketMetadataJournalTableConfiguration$=Zde;d.UpdateBucketMetadataJournalTableConfigurationCommand=xA;d.UpdateBucketMetadataJournalTableConfigurationRequest$=Mue;d.UpdateObjectEncryption$=epe;d.UpdateObjectEncryptionCommand=TA;d.UpdateObjectEncryptionRequest$=Lue;d.UpdateObjectEncryptionResponse$=Nue;d.UploadPart$=tpe;d.UploadPartCommand=vA;d.UploadPartCopy$=rpe;d.UploadPartCopyCommand=DA;d.UploadPartCopyOutput$=Fue;d.UploadPartCopyRequest$=Bue;d.UploadPartOutput$=Uue;d.UploadPartRequest$=Gue;d.VersioningConfiguration$=que;d.WebsiteConfiguration$=Hue;d.WriteGetObjectResponse$=npe;d.WriteGetObjectResponseCommand=IA;d.WriteGetObjectResponseRequest$=jue;d._Error$=Tse;d._Object$=Jae;d.errorTypeRegistries=roe;d.paginateListBuckets=ope;d.paginateListDirectoryBuckets=spe;d.paginateListObjectAnnotations=ipe;d.paginateListObjectsV2=ape;d.paginateListParts=cpe;d.waitForBucketExists=fKe;d.waitForBucketNotExists=mKe;d.waitForObjectExists=gKe;d.waitForObjectNotExists=hKe;d.waitUntilBucketExists=lpe;d.waitUntilBucketNotExists=ppe;d.waitUntilObjectExists=mpe;d.waitUntilObjectNotExists=hpe});var WN=st(D=>{var{awsEndpointFunctions:zQe,emitWarningIfUnsupportedVersion:VQe,createDefaultUserAgentProvider:WQe,NODE_APP_ID_CONFIG_OPTIONS:KQe,getAwsRegionExtensionConfiguration:QQe,resolveAwsRegionExtensionConfiguration:YQe,resolveUserAgentConfig:JQe,resolveHostHeaderConfig:XQe,getUserAgentPlugin:ZQe,getHostHeaderPlugin:e7e,getLoggerPlugin:t7e,getRecursionDetectionPlugin:r7e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:n7e,DefaultIdentityProviderConfig:o7e,getHttpSigningPlugin:s7e,createPaginator:ON}=(jt(),F(Al)),{normalizeProvider:Lpe,getSmithyContext:i7e,ServiceException:a7e,NoOpLogger:c7e,emitWarningIfUnsupportedVersion:u7e,loadConfigsForDefaultMode:l7e,getDefaultExtensionConfiguration:d7e,resolveDefaultRuntimeConfig:p7e,Client:Npe,makeBuilder:f7e,createWaiter:fo,checkExceptions:ep,WaiterState:ct,createAggregatedClient:m7e}=(J(),F(bo)),{Command:g7e}=(J(),F(bo));D.$Command=g7e;D.__Client=Npe;var{resolveDefaultsModeConfig:h7e,loadConfig:du,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:S7e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:y7e,NODE_REGION_CONFIG_OPTIONS:E7e,NODE_REGION_CONFIG_FILE_OPTIONS:_7e,resolveRegionConfig:R7e}=(ye(),F(Br)),{BinaryDecisionDiagram:C7e,EndpointCache:b7e,decideEndpoint:A7e,customEndpointFunctions:x7e,resolveEndpointConfig:T7e,getEndpointPlugin:v7e}=(He(),F(Hp)),{parseUrl:D7e,getHttpHandlerExtensionConfiguration:I7e,resolveHttpHandlerRuntimeConfig:w7e,getContentLengthPlugin:P7e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:O7e,NODE_RETRY_MODE_CONFIG_OPTIONS:$7e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:k7e,resolveRetryConfig:M7e,getRetryPlugin:L7e}=(en(),F(rf)),{TypeRegistry:Fpe,getSchemaSerdePlugin:N7e}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:F7e,AwsSdkSigV4Signer:B7e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:U7e}=(rr(),F(Dl)),{defaultProvider:G7e}=Rm(),{toUtf8:q7e,fromUtf8:H7e,toBase64:j7e,fromBase64:z7e,calculateBodyLength:V7e}=(j(),F(To)),{streamCollector:W7e,NodeHttpHandler:K7e}=zs(),{AwsRestJsonProtocol:Q7e}=(Di(),F(zy)),{Sha256:Y7e}=(On(),F(zp)),J7e=async(t,e,r)=>({operation:i7e(e).operation,region:await Lpe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function X7e(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Z7e=t=>{let e=[];switch(t.operation){default:e.push(X7e(t))}return e},eYe=t=>{let e=F7e(t);return Object.assign(e,{authSchemePreference:Lpe(t.authSchemePreference??[])})},tYe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),rYe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},nYe="3.1151.0",oYe={version:nYe},Fg="ref",pu=-1,lx=!0,Ipe="isSet",Bpe="PartitionResult",dx="booleanEquals",wpe="getAttr",Ppe={[Fg]:"Endpoint"},Ope={[Fg]:Bpe},Ng={},$pe=[{[Fg]:"Region"}],kpe={conditions:[[Ipe,[Ppe]],[Ipe,$pe],["aws.partition",$pe,Bpe],[dx,[{[Fg]:"UseFIPS"},lx]],[dx,[{[Fg]:"UseDualStack"},lx]],[dx,[{fn:wpe,argv:[Ope,"supportsDualStack"]},lx]],[dx,[{fn:wpe,argv:[Ope,"supportsFIPS"]},lx]]],results:[[pu],[pu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[pu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ppe,Ng],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ng],[pu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",Ng],[pu,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",Ng],[pu,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",Ng],[pu,"Invalid Configuration: Missing Region"]]},sYe=2,qn=1e8,iYe=new Int32Array([-1,1,-1,0,12,3,1,4,qn+11,2,5,qn+11,3,8,6,4,7,qn+10,5,qn+8,qn+9,4,10,9,6,qn+6,qn+7,5,11,qn+5,6,qn+4,qn+5,3,qn+1,13,4,qn+2,qn+3]),aYe=C7e.from(iYe,sYe,kpe.conditions,kpe.results),cYe=new b7e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),uYe=(t,e={})=>cYe.get(t,()=>A7e(aYe,{endpointParams:t,logger:e.logger}));x7e.aws=zQe;var ns=class t extends a7e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},px=class t extends ns{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},mx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},gx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},hx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Sx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},yx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lYe="AccessDeniedException",dYe="AccountQuotas",pYe="AccountUsage",fYe="BuildConfig",mYe="CodeConfig",gYe="ConflictException",hYe="CreateWebFunction",SYe="CreateWebFunctionEndpoint",yYe="CreateWebFunctionEndpointRequest",EYe="CreateWebFunctionEndpointResponse",_Ye="CreateWebFunctionRequest",RYe="CreateWebFunctionRevisionRequest",CYe="CreateWebFunctionRevisionResponse",bYe="CreateWebFunctionResponse",AYe="CreateWebFunctionRevision",xYe="DeleteResourcePolicy",TYe="DeleteResourcePolicyRequest",vYe="DeleteWebFunction",DYe="DeleteWebFunctionEndpoint",IYe="DeleteWebFunctionEndpointRequest",wYe="DeleteWebFunctionRequest",PYe="DeleteWebFunctionRevisionRequest",OYe="DeleteWebFunctionRevision",$Ye="EndpointConfig",kYe="EnvironmentVariables",MYe="Filter",LYe="FunctionEndpointSummary",NYe="FunctionEndpointSummaryList",FYe="FilterList",BYe="FunctionRevisionSummary",UYe="FunctionRevisionSummaryList",GYe="FunctionSummary",qYe="FunctionSummaryList",HYe="GetResourcePolicy",jYe="GetResourcePolicyRequest",zYe="GetResourcePolicyResponse",VYe="GetWebAccountSettings",WYe="GetWebAccountSettingsRequest",KYe="GetWebAccountSettingsResponse",QYe="GetWebFunction",YYe="GetWebFunctionEndpoint",JYe="GetWebFunctionEndpointRequest",XYe="GetWebFunctionEndpointResponse",ZYe="GetWebFunctionRequest",eJe="GetWebFunctionRevisionRequest",tJe="GetWebFunctionRevisionResponse",rJe="GetWebFunctionResponse",nJe="GetWebFunctionRevision",oJe="InternalServerException",sJe="LoggingConfig",iJe="ListTags",aJe="ListTagsRequest",cJe="ListTagsResponse",uJe="ListWebFunctions",lJe="ListWebFunctionEndpoints",dJe="ListWebFunctionEndpointsRequest",pJe="ListWebFunctionEndpointsResponse",fJe="ListWebFunctionsRequest",mJe="ListWebFunctionRevisionsRequest",gJe="ListWebFunctionRevisionsResponse",hJe="ListWebFunctionsResponse",SJe="ListWebFunctionRevisions",$N="Policy",yJe="PutResourcePolicy",EJe="PutResourcePolicyRequest",_Je="PutResourcePolicyResponse",RJe="Retry-After",CJe="RevisionConfig",bJe="RuntimeConfig",AJe="RegionalEndpoint",xJe="RevisionError",TJe="RegionalEndpoints",vJe="RevisionErrors",kx="RevisionId",DJe="ResourceNotFoundException",IJe="RevisionWeight",wJe="RevisionWeightList",PJe="ScalingConfig",OJe="ServiceConfig",$Je="S3Object",kJe="ServiceQuotaExceededException",Upe="Tags",MJe="TelemetryConfig",LJe="ThrottleConfig",NJe="ThrottlingException",FJe="TagResource",BJe="TagResourceRequest",UJe="UntagResource",GJe="UntagResourceRequest",qJe="UpdateWebFunctionEndpoint",HJe="UpdateWebFunctionEndpointRequest",jJe="UpdateWebFunctionEndpointResponse",zJe="ValidationException",VJe="attribute",gu="autoDeploymentMode",WJe="applicationLogLevel",KJe="accountQuotas",tc="authType",QJe="accountUsage",YJe="bucket",Mx="buildConfig",tp="client",hi="createdAt",JJe="codeConfig",mo="description",Hg="domainName",hu="error",Lx="endpointArn",XJe="endpointConfig",ZJe="errorCode",eXe="errorMessage",zi="endpointName",tXe="egressNetworkConnectorArn",rXe="executionRoleArn",rp="endpointType",nXe="environmentVariables",oXe="endpoint",sXe="endpoints",Gpe="errors",kN="filters",rc="functionArn",iXe="functionCount",dn="functionName",aXe="functions",Mt="http",Su="httpError",cXe="httpHeader",qpe="httpQuery",ec="jsonName",uXe="key",Nx="kmsKeyArn",lXe="loggingConfig",dXe="logGroup",yu="message",pXe="maxConcurrencyPerEnvironment",fXe="maxEnvironments",mXe="maxEndpointsPerFunction",MN="maxResults",gXe="maxRevisionsPerFunction",hXe="maxTotalArmVCpus",SXe="maxTotalRateLimit",yXe="name",np="nextToken",LN="policy",Hpe="quotaCode",op="regions",NN="revisionArn",EXe="retryAfterSeconds",FN="resourceArn",_Xe="runtimeConfig",RXe="revisionConfig",BN="regionalEndpoints",UN="resourceId",Si="revisionId",CXe="rateLimit",GN="resourceType",Eu="revisionWeights",bXe="revision",qN="resource",AXe="revisions",xXe="runtime",jpe="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",zpe="serviceCode",nc="scalingConfig",Fx="serviceConfig",TXe="systemLogLevel",vXe="s3Object",os="stateReason",DXe="server",ss="state",Bx="tags",oc="throttleConfig",IXe="telemetryConfig",Mpe="tagKeys",wXe="timeoutSeconds",_u="updatedAt",jg="updateStatus",zg="updateStatusReason",PXe="values",OXe="versionId",$Xe="weight",G="com.amazonaws.lambdaweb",Vpe=new Fpe(jpe),Wpe=[-3,jpe,"LambdaWebServiceException",0,[],[]];Vpe.registerError(Wpe,ns);var sc=new Fpe(G),Kpe=[-3,G,lYe,{[hu]:tp,[Su]:403},[yu],[0],1];sc.registerError(Kpe,px);var Qpe=[-3,G,gYe,{[hu]:tp,[Su]:409},[yu,UN,GN],[0,0,0],1];sc.registerError(Qpe,fx);var Ype=[-3,G,oJe,{[hu]:DXe,[Su]:500},[yu],[0]];sc.registerError(Ype,mx);var Jpe=[-3,G,DJe,{[hu]:tp,[Su]:404},[yu,UN,GN],[0,0,0],1];sc.registerError(Jpe,gx);var Xpe=[-3,G,kJe,{[hu]:tp,[Su]:402},[yu,UN,GN,zpe,Hpe],[0,0,0,0,0],1];sc.registerError(Xpe,hx);var Zpe=[-3,G,NJe,{[hu]:tp,[Su]:429},[yu,EXe,zpe,Hpe],[0,[1,{[cXe]:RJe}],0,0],1];sc.registerError(Zpe,Sx);var efe=[-3,G,zJe,{[hu]:tp,[Su]:400},[yu],[0],1];sc.registerError(efe,yx);var tfe=[Vpe,sc],rfe=[3,G,dYe,0,[hXe,SXe,gXe,mXe],[1,1,1,1],4],nfe=[3,G,pYe,0,[iXe],[1],1],Vg=[3,G,fYe,0,[JJe,_Xe],[()=>ofe,()=>Hfe],2],ofe=[3,G,mYe,0,[vXe],[()=>jfe],1],sfe=[3,G,yYe,0,[dn,zi,rp,tc,mo,gu,Eu,op,nc,oc],[[0,1],0,0,0,0,0,()=>Ru,64,()=>Vi,()=>Wi],4],ife=[3,G,EYe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],afe=[3,G,_Ye,0,[dn,RXe,XJe,Bx],[0,[()=>Ufe,0],()=>gfe,128],1],cfe=[3,G,bYe,0,[dn,rc,ss,os,hi,_u,bXe,oXe,Bx],[0,0,0,0,5,5,()=>jN,()=>HN,128],6],ufe=[3,G,RYe,0,[dn,Mx,Fx,mo,Nx],[[0,1],()=>Vg,[()=>Wg,0],0,0],3],lfe=[3,G,CYe,0,[rc,NN,Si,Mx,Fx,ss,os,hi,mo,Nx,Gpe],[0,0,0,()=>Vg,[()=>Wg,0],0,0,5,0,0,()=>Yfe],8],dfe=[3,G,TYe,0,[FN,Si],[[0,1],[0,{[qpe]:kx}]],1],pfe=[3,G,IYe,0,[dn,zi],[[0,1],[0,1]],2],ffe=[3,G,wYe,0,[dn],[[0,1]],1],mfe=[3,G,PYe,0,[dn,Si],[[0,1],[0,1]],2],gfe=[3,G,$Ye,0,[zi,rp,tc,mo,gu,op,nc,oc],[0,0,0,0,0,64,()=>Vi,()=>Wi],3],hfe=[3,G,MYe,0,[yXe,PXe],[0,64],2],HN=[3,G,LYe,0,[Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,()=>Ru,64,0,0,5,5,0,()=>Vi,()=>Wi,0,0],12],jN=[3,G,BYe,0,[NN,Si,ss,os,hi,mo],[0,0,0,0,5,0],5],Sfe=[3,G,GYe,0,[dn,rc,ss,os,hi,_u],[0,0,0,0,5,5],6],yfe=[3,G,jYe,0,[FN],[[0,1]],1],Efe=[3,G,zYe,0,[LN,Si],[[0,{[ec]:$N}],[0,{[ec]:kx}]],2],_fe=[3,G,WYe,0,[],[]],Rfe=[3,G,KYe,0,[KJe,QJe],[()=>rfe,()=>nfe],2],Cfe=[3,G,JYe,0,[dn,zi],[[0,1],[0,1]],2],bfe=[3,G,XYe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],Afe=[3,G,ZYe,0,[dn],[[0,1]],1],xfe=[3,G,rJe,0,[dn,rc,ss,os,hi,_u],[0,0,0,0,5,5],6],Tfe=[3,G,eJe,0,[dn,Si],[[0,1],[0,1]],2],vfe=[3,G,tJe,0,[rc,NN,Si,Mx,Fx,ss,os,hi,mo,Nx,Gpe],[0,0,0,()=>Vg,[()=>Wg,0],0,0,5,0,0,()=>Yfe],8],Dfe=[3,G,aJe,0,[qN],[[0,1]],1],Ife=[3,G,cJe,0,[Bx],[[128,{[ec]:Upe}]]],wfe=[3,G,dJe,0,[dn,kN,MN,np],[[0,1],()=>zN,1,0],1],Pfe=[3,G,pJe,0,[sXe,np],[()=>kXe,0],1],Ofe=[3,G,mJe,0,[dn,kN,MN,np],[[0,1],()=>zN,1,0],1],$fe=[3,G,gJe,0,[AXe,np],[()=>MXe,0],1],kfe=[3,G,fJe,0,[kN,MN,np],[()=>zN,1,0]],Mfe=[3,G,hJe,0,[aXe,np],[()=>LXe,0],1],Lfe=[3,G,sJe,0,[dXe,WJe,TXe],[0,0,0]],Nfe=[3,G,EJe,0,[FN,LN,Si],[[0,1],[0,{[ec]:$N}],[0,{[ec]:kx}]],2],Ffe=[3,G,_Je,0,[LN,Si],[[0,{[ec]:$N}],[0,{[ec]:kx}]],2],Bfe=[3,G,AJe,0,[tc,Eu,ss,os,Hg,nc,oc,jg,zg],[0,()=>Ru,0,0,0,()=>Vi,()=>Wi,0,0],4],Ufe=[3,G,CJe,0,[Mx,Fx,mo,Nx],[()=>Vg,[()=>Wg,0],0,0],2],Gfe=[3,G,xJe,0,[VJe,ZJe,eXe],[0,0,0],3],qfe=[3,G,IJe,0,[Si,$Xe],[0,1],2],Hfe=[3,G,bJe,0,[xXe],[0],1],jfe=[3,G,$Je,0,[YJe,uXe,OXe],[0,0,0],2],Vi=[3,G,PJe,0,[fXe],[1]],Wg=[3,G,OJe,0,[rXe,wXe,tXe,pXe,nXe,IXe],[0,1,0,1,[()=>NXe,0],()=>Vfe],1],zfe=[3,G,BJe,0,[qN,Bx],[[0,1],[128,{[ec]:Upe}]],2],Vfe=[3,G,MJe,0,[lXe],[()=>Lfe]],Wi=[3,G,LJe,0,[CXe],[1]],Wfe=[3,G,GJe,0,[qN,Mpe],[[0,1],[64,{[qpe]:Mpe}]],2],Kfe=[3,G,HJe,0,[dn,zi,mo,tc,gu,Eu,nc,oc],[[0,1],[0,1],0,0,0,()=>Ru,()=>Vi,()=>Wi],2],Qfe=[3,G,jJe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],sp="unit",zN=[1,G,FYe,0,()=>hfe],kXe=[1,G,NYe,0,()=>HN],MXe=[1,G,UYe,0,()=>jN],LXe=[1,G,qYe,0,()=>Sfe],Yfe=[1,G,vJe,0,()=>Gfe],Ru=[1,G,wJe,0,()=>qfe],NXe=[2,G,kYe,8,0,0],VN=[2,G,TJe,0,0,()=>Bfe],Jfe=[9,G,hYe,{[Mt]:["PUT","/2025-03-07/web-functions",202]},()=>afe,()=>cfe],Xfe=[9,G,SYe,{[Mt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>sfe,()=>ife],Zfe=[9,G,AYe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>ufe,()=>lfe],eme=[9,G,xYe,{[Mt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>dfe,()=>sp],tme=[9,G,vYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>ffe,()=>sp],rme=[9,G,DYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>pfe,()=>sp],nme=[9,G,OYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>mfe,()=>sp],ome=[9,G,HYe,{[Mt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>yfe,()=>Efe],sme=[9,G,VYe,{[Mt]:["GET","/2025-03-07/web-account-settings",200]},()=>_fe,()=>Rfe],ime=[9,G,QYe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>Afe,()=>xfe],ame=[9,G,YYe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>Cfe,()=>bfe],cme=[9,G,nJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>Tfe,()=>vfe],ume=[9,G,iJe,{[Mt]:["GET","/2025-03-07/tags/{resource}",200]},()=>Dfe,()=>Ife],lme=[9,G,lJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>wfe,()=>Pfe],dme=[9,G,SJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Ofe,()=>$fe],pme=[9,G,uJe,{[Mt]:["POST","/2025-03-07/web-functions",200]},()=>kfe,()=>Mfe],fme=[9,G,yJe,{[Mt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>Nfe,()=>Ffe],mme=[9,G,FJe,{[Mt]:["POST","/2025-03-07/tags/{resource}",204]},()=>zfe,()=>sp],gme=[9,G,UJe,{[Mt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Wfe,()=>sp],hme=[9,G,qJe,{[Mt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Kfe,()=>Qfe],FXe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??z7e,base64Encoder:t?.base64Encoder??j7e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??uYe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Z7e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new B7e}],logger:t?.logger??new c7e,protocol:t?.protocol??Q7e,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:tfe,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??Y7e,urlParser:t?.urlParser??D7e,utf8Decoder:t?.utf8Decoder??H7e,utf8Encoder:t?.utf8Encoder??q7e}),BXe=t=>{u7e(process.version);let e=h7e(t),r=()=>e().then(l7e),n=FXe(t);VQe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??du(U7e,o),bodyLengthChecker:t?.bodyLengthChecker??V7e,credentialDefaultProvider:t?.credentialDefaultProvider??G7e,defaultUserAgentProvider:t?.defaultUserAgentProvider??WQe({serviceId:n.serviceId,clientVersion:oYe.version}),maxAttempts:t?.maxAttempts??du(k7e,t),region:t?.region??du(E7e,{..._7e,...o}),requestHandler:K7e.create(t?.requestHandler??r),retryMode:t?.retryMode??du({...$7e,default:async()=>(await r()).retryMode||O7e},t),streamCollector:t?.streamCollector??W7e,useDualstackEndpoint:t?.useDualstackEndpoint??du(y7e,o),useFipsEndpoint:t?.useFipsEndpoint??du(S7e,o),userAgentAppId:t?.userAgentAppId??du(KQe,o)}},UXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},GXe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),qXe=(t,e)=>{let r=Object.assign(QQe(t),d7e(t),I7e(t),UXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,YQe(r),p7e(r),w7e(r),GXe(r))},fu=class extends Npe{config;constructor(...[e]){let r=BXe(e||{});super(r),this.initConfig=r;let n=tYe(r),o=JQe(n),s=M7e(o),i=R7e(s),a=XQe(i),c=T7e(a),u=eYe(c),f=qXe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(N7e(this.config)),this.middlewareStack.use(ZQe(this.config)),this.middlewareStack.use(L7e(this.config)),this.middlewareStack.use(P7e(this.config)),this.middlewareStack.use(e7e(this.config)),this.middlewareStack.use(t7e(this.config)),this.middlewareStack.use(r7e(this.config)),this.middlewareStack.use(n7e(this.config,{httpAuthSchemeParametersProvider:J7e,identityProviderConfigProvider:async m=>new o7e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(s7e(this.config))}destroy(){super.destroy()}},Lt=f7e(rYe,"LambdaWeb","LambdaWebClient",v7e),Nt={},Ft=(t,e,r,n)=>[],Ex=class extends Lt(Nt,Ft,"CreateWebFunction",Jfe){},_x=class extends Lt(Nt,Ft,"CreateWebFunctionEndpoint",Xfe){},Rx=class extends Lt(Nt,Ft,"CreateWebFunctionRevision",Zfe){},Cx=class extends Lt(Nt,Ft,"DeleteResourcePolicy",eme){},bx=class extends Lt(Nt,Ft,"DeleteWebFunction",tme){},Ax=class extends Lt(Nt,Ft,"DeleteWebFunctionEndpoint",rme){},xx=class extends Lt(Nt,Ft,"DeleteWebFunctionRevision",nme){},Tx=class extends Lt(Nt,Ft,"GetResourcePolicy",ome){},vx=class extends Lt(Nt,Ft,"GetWebAccountSettings",sme){},Zd=class extends Lt(Nt,Ft,"GetWebFunction",ime){},mu=class extends Lt(Nt,Ft,"GetWebFunctionEndpoint",ame){},Bg=class extends Lt(Nt,Ft,"GetWebFunctionRevision",cme){},Dx=class extends Lt(Nt,Ft,"ListTags",ume){},Ug=class extends Lt(Nt,Ft,"ListWebFunctionEndpoints",lme){},Gg=class extends Lt(Nt,Ft,"ListWebFunctionRevisions",dme){},qg=class extends Lt(Nt,Ft,"ListWebFunctions",pme){},Ix=class extends Lt(Nt,Ft,"PutResourcePolicy",fme){},wx=class extends Lt(Nt,Ft,"TagResource",mme){},Px=class extends Lt(Nt,Ft,"UntagResource",gme){},Ox=class extends Lt(Nt,Ft,"UpdateWebFunctionEndpoint",hme){},Sme=ON(fu,Ug,"nextToken","nextToken","maxResults"),yme=ON(fu,Gg,"nextToken","nextToken","maxResults"),Eme=ON(fu,qg,"nextToken","nextToken","maxResults"),_me=async(t,e)=>{let r;try{let n=await t.send(new Zd(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},HXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,_me),Rme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,_me);return ep(n)},Cme=async(t,e)=>{let r;try{let n=await t.send(new Zd(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},jXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Cme),bme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Cme);return ep(n)},Ame=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},zXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Ame),xme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Ame);return ep(n)},Tme=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},VXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Tme),vme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Tme);return ep(n)},Dme=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.updateStatus==="Successful")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},WXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Dme),Ime=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Dme);return ep(n)},wme=async(t,e)=>{let r;try{let n=await t.send(new Bg(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},KXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,wme),Pme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,wme);return ep(n)},QXe={CreateWebFunctionCommand:Ex,CreateWebFunctionEndpointCommand:_x,CreateWebFunctionRevisionCommand:Rx,DeleteResourcePolicyCommand:Cx,DeleteWebFunctionCommand:bx,DeleteWebFunctionEndpointCommand:Ax,DeleteWebFunctionRevisionCommand:xx,GetResourcePolicyCommand:Tx,GetWebAccountSettingsCommand:vx,GetWebFunctionCommand:Zd,GetWebFunctionEndpointCommand:mu,GetWebFunctionRevisionCommand:Bg,ListTagsCommand:Dx,ListWebFunctionEndpointsCommand:Ug,ListWebFunctionRevisionsCommand:Gg,ListWebFunctionsCommand:qg,PutResourcePolicyCommand:Ix,TagResourceCommand:wx,UntagResourceCommand:Px,UpdateWebFunctionEndpointCommand:Ox},YXe={paginateListWebFunctionEndpoints:Sme,paginateListWebFunctionRevisions:yme,paginateListWebFunctions:Eme},JXe={waitUntilWebFunctionActive:Rme,waitUntilWebFunctionDeleted:bme,waitUntilWebFunctionEndpointActive:xme,waitUntilWebFunctionEndpointDeleted:vme,waitUntilWebFunctionEndpointUpdated:Ime,waitUntilWebFunctionRevisionActive:Pme},$x=class extends fu{};m7e(QXe,$x,{paginators:YXe,waiters:JXe});var XXe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},ZXe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},eZe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},tZe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},rZe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},nZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},oZe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},sZe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},iZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};D.AccessDeniedException=px;D.AccessDeniedException$=Kpe;D.AccountQuotas$=rfe;D.AccountUsage$=nfe;D.ApplicationLogLevel=XXe;D.AuthType=ZXe;D.AutoDeploymentMode=eZe;D.BuildConfig$=Vg;D.CodeConfig$=ofe;D.ConflictException=fx;D.ConflictException$=Qpe;D.CreateWebFunction$=Jfe;D.CreateWebFunctionCommand=Ex;D.CreateWebFunctionEndpoint$=Xfe;D.CreateWebFunctionEndpointCommand=_x;D.CreateWebFunctionEndpointRequest$=sfe;D.CreateWebFunctionEndpointResponse$=ife;D.CreateWebFunctionRequest$=afe;D.CreateWebFunctionResponse$=cfe;D.CreateWebFunctionRevision$=Zfe;D.CreateWebFunctionRevisionCommand=Rx;D.CreateWebFunctionRevisionRequest$=ufe;D.CreateWebFunctionRevisionResponse$=lfe;D.DeleteResourcePolicy$=eme;D.DeleteResourcePolicyCommand=Cx;D.DeleteResourcePolicyRequest$=dfe;D.DeleteWebFunction$=tme;D.DeleteWebFunctionCommand=bx;D.DeleteWebFunctionEndpoint$=rme;D.DeleteWebFunctionEndpointCommand=Ax;D.DeleteWebFunctionEndpointRequest$=pfe;D.DeleteWebFunctionRequest$=ffe;D.DeleteWebFunctionRevision$=nme;D.DeleteWebFunctionRevisionCommand=xx;D.DeleteWebFunctionRevisionRequest$=mfe;D.EndpointConfig$=gfe;D.EndpointState=nZe;D.EndpointType=tZe;D.EndpointUpdateStatus=oZe;D.Filter$=hfe;D.FunctionEndpointSummary$=HN;D.FunctionRevisionSummary$=jN;D.FunctionState=iZe;D.FunctionSummary$=Sfe;D.GetResourcePolicy$=ome;D.GetResourcePolicyCommand=Tx;D.GetResourcePolicyRequest$=yfe;D.GetResourcePolicyResponse$=Efe;D.GetWebAccountSettings$=sme;D.GetWebAccountSettingsCommand=vx;D.GetWebAccountSettingsRequest$=_fe;D.GetWebAccountSettingsResponse$=Rfe;D.GetWebFunction$=ime;D.GetWebFunctionCommand=Zd;D.GetWebFunctionEndpoint$=ame;D.GetWebFunctionEndpointCommand=mu;D.GetWebFunctionEndpointRequest$=Cfe;D.GetWebFunctionEndpointResponse$=bfe;D.GetWebFunctionRequest$=Afe;D.GetWebFunctionResponse$=xfe;D.GetWebFunctionRevision$=cme;D.GetWebFunctionRevisionCommand=Bg;D.GetWebFunctionRevisionRequest$=Tfe;D.GetWebFunctionRevisionResponse$=vfe;D.InternalServerException=mx;D.InternalServerException$=Ype;D.LambdaWeb=$x;D.LambdaWebClient=fu;D.LambdaWebServiceException=ns;D.LambdaWebServiceException$=Wpe;D.ListTags$=ume;D.ListTagsCommand=Dx;D.ListTagsRequest$=Dfe;D.ListTagsResponse$=Ife;D.ListWebFunctionEndpoints$=lme;D.ListWebFunctionEndpointsCommand=Ug;D.ListWebFunctionEndpointsRequest$=wfe;D.ListWebFunctionEndpointsResponse$=Pfe;D.ListWebFunctionRevisions$=dme;D.ListWebFunctionRevisionsCommand=Gg;D.ListWebFunctionRevisionsRequest$=Ofe;D.ListWebFunctionRevisionsResponse$=$fe;D.ListWebFunctions$=pme;D.ListWebFunctionsCommand=qg;D.ListWebFunctionsRequest$=kfe;D.ListWebFunctionsResponse$=Mfe;D.LoggingConfig$=Lfe;D.PutResourcePolicy$=fme;D.PutResourcePolicyCommand=Ix;D.PutResourcePolicyRequest$=Nfe;D.PutResourcePolicyResponse$=Ffe;D.RegionalEndpoint$=Bfe;D.ResourceNotFoundException=gx;D.ResourceNotFoundException$=Jpe;D.RevisionConfig$=Ufe;D.RevisionError$=Gfe;D.RevisionState=sZe;D.RevisionWeight$=qfe;D.RuntimeConfig$=Hfe;D.S3Object$=jfe;D.ScalingConfig$=Vi;D.ServiceConfig$=Wg;D.ServiceQuotaExceededException=hx;D.ServiceQuotaExceededException$=Xpe;D.SystemLogLevel=rZe;D.TagResource$=mme;D.TagResourceCommand=wx;D.TagResourceRequest$=zfe;D.TelemetryConfig$=Vfe;D.ThrottleConfig$=Wi;D.ThrottlingException=Sx;D.ThrottlingException$=Zpe;D.UntagResource$=gme;D.UntagResourceCommand=Px;D.UntagResourceRequest$=Wfe;D.UpdateWebFunctionEndpoint$=hme;D.UpdateWebFunctionEndpointCommand=Ox;D.UpdateWebFunctionEndpointRequest$=Kfe;D.UpdateWebFunctionEndpointResponse$=Qfe;D.ValidationException=yx;D.ValidationException$=efe;D.errorTypeRegistries=tfe;D.paginateListWebFunctionEndpoints=Sme;D.paginateListWebFunctionRevisions=yme;D.paginateListWebFunctions=Eme;D.waitForWebFunctionActive=HXe;D.waitForWebFunctionDeleted=jXe;D.waitForWebFunctionEndpointActive=zXe;D.waitForWebFunctionEndpointDeleted=VXe;D.waitForWebFunctionEndpointUpdated=WXe;D.waitForWebFunctionRevisionActive=KXe;D.waitUntilWebFunctionActive=Rme;D.waitUntilWebFunctionDeleted=bme;D.waitUntilWebFunctionEndpointActive=xme;D.waitUntilWebFunctionEndpointDeleted=vme;D.waitUntilWebFunctionEndpointUpdated=Ime;D.waitUntilWebFunctionRevisionActive=Pme});var Lbe=st(p=>{var{awsEndpointFunctions:aZe,emitWarningIfUnsupportedVersion:cZe,createDefaultUserAgentProvider:uZe,NODE_APP_ID_CONFIG_OPTIONS:lZe,getAwsRegionExtensionConfiguration:dZe,resolveAwsRegionExtensionConfiguration:pZe,resolveUserAgentConfig:fZe,resolveHostHeaderConfig:mZe,getUserAgentPlugin:gZe,getHostHeaderPlugin:hZe,getLoggerPlugin:SZe,getRecursionDetectionPlugin:yZe}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:EZe,DefaultIdentityProviderConfig:_Ze,getHttpSigningPlugin:RZe,createPaginator:Rr}=(jt(),F(Al)),{normalizeProvider:Ume,getSmithyContext:CZe,ServiceException:bZe,NoOpLogger:AZe,emitWarningIfUnsupportedVersion:xZe,loadConfigsForDefaultMode:TZe,getDefaultExtensionConfiguration:vZe,resolveDefaultRuntimeConfig:DZe,Client:Gme,makeBuilder:IZe,createAggregatedClient:wZe}=(J(),F(bo)),{Command:PZe}=(J(),F(bo));p.$Command=PZe;p.__Client=Gme;var{resolveDefaultsModeConfig:OZe,loadConfig:Cu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$Ze,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:kZe,NODE_REGION_CONFIG_OPTIONS:MZe,NODE_REGION_CONFIG_FILE_OPTIONS:LZe,resolveRegionConfig:NZe}=(ye(),F(Br)),{BinaryDecisionDiagram:FZe,EndpointCache:BZe,decideEndpoint:UZe,customEndpointFunctions:GZe,resolveEndpointConfig:qZe,getEndpointPlugin:HZe}=(He(),F(Hp)),{eventStreamSerdeProvider:jZe,resolveEventStreamSerdeConfig:zZe}=(VS(),F(zS)),{parseUrl:VZe,getHttpHandlerExtensionConfiguration:WZe,resolveHttpHandlerRuntimeConfig:KZe,getContentLengthPlugin:QZe}=(V(),F(wo)),{DEFAULT_RETRY_MODE:YZe,NODE_RETRY_MODE_CONFIG_OPTIONS:JZe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:XZe,resolveRetryConfig:ZZe,getRetryPlugin:eet}=(en(),F(rf)),{TypeRegistry:qme,getSchemaSerdePlugin:tet}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:ret,AwsSdkSigV4Signer:net,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:oet}=(rr(),F(Dl)),{defaultProvider:set}=Rm(),{toUtf8:iet,fromUtf8:aet,toBase64:cet,fromBase64:uet,calculateBodyLength:det}=(j(),F(To)),{streamCollector:pet,NodeHttpHandler:fet}=zs(),{AwsJson1_1Protocol:met}=(Di(),F(zy)),{Sha256:get}=(On(),F(zp)),het=async(t,e,r)=>({operation:CZe(e).operation,region:await Ume(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function yet(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Eet=t=>{let e=[];switch(t.operation){default:e.push(yet(t))}return e},_et=t=>{let e=ret(t);return Object.assign(e,{authSchemePreference:Ume(t.authSchemePreference??[])})},Ret=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),Cet={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},bet="3.1151.0",Aet={version:bet},Kg="ref",bu=-1,Gx=!0,$me="isSet",Hme="PartitionResult",qx="booleanEquals",kme="getAttr",Mme="stringEquals",Lme={[Kg]:"Endpoint"},Nme={[Kg]:Hme},KN={[Kg]:"Region"},Au={},Fme=[KN],Bme={conditions:[[$me,[Lme]],[$me,Fme],["aws.partition",Fme,Hme],[qx,[{[Kg]:"UseFIPS"},Gx]],[qx,[{[Kg]:"UseDualStack"},Gx]],[qx,[{fn:kme,argv:[Nme,"supportsDualStack"]},Gx]],[qx,[{fn:kme,argv:[Nme,"supportsFIPS"]},Gx]],[Mme,[KN,"us-gov-east-1"]],[Mme,[KN,"us-gov-west-1"]]],results:[[bu],[bu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[bu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lme,Au],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Au],[bu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",Au],["https://logs.us-gov-west-1.amazonaws.com",Au],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",Au],[bu,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",Au],[bu,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",Au],[bu,"Invalid Configuration: Missing Region"]]},xet=2,pn=1e8,Tet=new Int32Array([-1,1,-1,0,14,3,1,4,pn+13,2,5,pn+13,3,8,6,4,7,pn+12,5,pn+10,pn+11,4,12,9,6,10,pn+9,7,pn+6,11,8,pn+7,pn+8,5,13,pn+5,6,pn+4,pn+5,3,pn+1,15,4,pn+2,pn+3]),vet=FZe.from(Tet,xet,Bme.conditions,Bme.results),Det=new BZe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Iet=(t,e={})=>Det.get(t,()=>UZe(vet,{endpointParams:t,logger:e.logger}));GZe.aws=aZe;var nt=class t extends bZe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},Hx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Kx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Qx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},nT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},uT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},wet="Anomaly",Pet="AnomalyDetector",Oet="AccessDeniedException",$et="AnomalyDetectors",ket="AllowedFields",Met="AddKeys",Let="AddKeyEntry",Net="AddKeyEntries",Fet="AssociateKmsKey",Bet="AssociateKmsKeyRequest",Uet="AggregateLogGroupSummary",Get="AggregateLogGroupSummaries",qet="AccountPolicy",Het="AccountPolicies",jet="AssociateSourceToS3TableIntegration",zet="AssociateSourceToS3TableIntegrationRequest",Vet="AssociateSourceToS3TableIntegrationResponse",Wet="Anomalies",Ket="CreateDelivery",Qet="CreateDeliveryRequest",Yet="CreateDeliveryResponse",Jet="ConflictException",Xet="CancelExportTask",Zet="CancelExportTaskRequest",ett="CreateExportTaskRequest",ttt="CreateExportTaskResponse",rtt="CreateExportTask",ntt="CancelImportTask",ott="CancelImportTaskRequest",stt="CancelImportTaskResponse",itt="CreateImportTaskRequest",att="CreateImportTaskResponse",ctt="CreateImportTask",utt="CreateLogAnomalyDetector",ltt="CreateLogAnomalyDetectorRequest",dtt="CreateLogAnomalyDetectorResponse",ptt="CreateLogGroup",ftt="CreateLogGroupRequest",mtt="CreateLogStream",gtt="CreateLogStreamRequest",htt="CreateLookupTable",Stt="CreateLookupTableRequest",ytt="CreateLookupTableResponse",Ett="CreateScheduledQuery",_tt="CreateScheduledQueryRequest",Rtt="CreateScheduledQueryResponse",Ctt="CSV",btt="ConfigurationTemplate",Att="ConfigurationTemplateDeliveryConfigValues",xtt="ConfigurationTemplates",Ttt="CopyValue",vtt="CopyValueEntry",Dtt="CopyValueEntries",Itt="Delivery",wtt="DataAlreadyAcceptedException",Ptt="DeleteAccountPolicy",Ott="DeleteAccountPolicyRequest",$tt="DescribeAccountPoliciesRequest",ktt="DescribeAccountPoliciesResponse",Mtt="DescribeAccountPolicies",Ltt="DestinationConfiguration",Ntt="DescribeConfigurationTemplates",Ftt="DescribeConfigurationTemplatesRequest",Btt="DescribeConfigurationTemplatesResponse",Utt="DeliveryDestination",Gtt="DeliveryDestinationConfiguration",qtt="DeleteDeliveryDestination",Htt="DeleteDeliveryDestinationPolicy",jtt="DeleteDeliveryDestinationPolicyRequest",ztt="DeleteDeliveryDestinationRequest",Vtt="DescribeDeliveryDestinationsRequest",Wtt="DescribeDeliveryDestinationsResponse",Ktt="DescribeDeliveryDestinations",Qtt="DeleteDataProtectionPolicy",Ytt="DeleteDataProtectionPolicyRequest",Jtt="DeleteDeliveryRequest",Xtt="DeleteDestinationRequest",Ztt="DescribeDeliveriesRequest",ert="DescribeDeliveriesResponse",trt="DescribeDestinationsRequest",rrt="DescribeDestinationsResponse",nrt="DeleteDeliverySource",ort="DeleteDeliverySourceRequest",srt="DescribeDeliverySourcesRequest",irt="DescribeDeliverySourcesResponse",art="DescribeDeliverySources",crt="DeliveryDestinations",urt="DeleteDelivery",lrt="DeleteDestination",drt="DescribeDeliveries",prt="DescribeDestinations",frt="DescribeExportTasks",mrt="DescribeExportTasksRequest",grt="DescribeExportTasksResponse",hrt="DescribeFieldIndexes",Srt="DescribeFieldIndexesRequest",yrt="DescribeFieldIndexesResponse",Ert="DeleteIntegration",_rt="DeleteIndexPolicy",Rrt="DeleteIndexPolicyRequest",Crt="DeleteIndexPolicyResponse",brt="DescribeIndexPoliciesRequest",Art="DescribeIndexPoliciesResponse",xrt="DescribeIndexPolicies",Trt="DeleteIntegrationRequest",vrt="DeleteIntegrationResponse",Drt="DescribeImportTasks",Irt="DescribeImportTaskBatches",wrt="DescribeImportTaskBatchesRequest",Prt="DescribeImportTaskBatchesResponse",Ort="DescribeImportTasksRequest",$rt="DescribeImportTasksResponse",krt="DeleteKeys",Mrt="DisassociateKmsKey",Lrt="DisassociateKmsKeyRequest",Nrt="DeleteLogAnomalyDetector",Frt="DeleteLogAnomalyDetectorRequest",Brt="DeleteLogGroup",Urt="DeleteLogGroupRequest",Grt="DescribeLogGroupsRequest",qrt="DescribeLogGroupsResponse",Hrt="DescribeLogGroups",jrt="DeleteLogStream",zrt="DeleteLogStreamRequest",Vrt="DescribeLogStreamsRequest",Wrt="DescribeLogStreamsResponse",Krt="DescribeLogStreams",Qrt="DeleteLookupTable",Yrt="DeleteLookupTableRequest",Jrt="DescribeLookupTablesRequest",Xrt="DescribeLookupTablesResponse",Zrt="DescribeLookupTables",ent="DeleteMetricFilter",tnt="DeleteMetricFilterRequest",rnt="DescribeMetricFiltersRequest",nnt="DescribeMetricFiltersResponse",ont="DescribeMetricFilters",snt="DestinationNamePrefix",int="DescribeQueries",ant="DeleteQueryDefinition",cnt="DeleteQueryDefinitionRequest",unt="DeleteQueryDefinitionResponse",lnt="DescribeQueryDefinitionsRequest",dnt="DescribeQueryDefinitionsResponse",pnt="DescribeQueryDefinitions",fnt="DescribeQueriesRequest",mnt="DescribeQueriesResponse",gnt="DeleteResourcePolicy",hnt="DeleteResourcePolicyRequest",Snt="DeleteRetentionPolicyRequest",ynt="DescribeResourcePoliciesRequest",Ent="DescribeResourcePoliciesResponse",_nt="DeleteRetentionPolicy",Rnt="DescribeResourcePolicies",Cnt="DataSource",bnt="DeleteSyslogConfiguration",Ant="DeleteSyslogConfigurationRequest",xnt="DeliverySourceConfigurationSchema",Tnt="DeliverySourceConfigurationSchemas",vnt="DataSourceFilter",Dnt="DeleteSubscriptionFilterRequest",Int="DescribeSubscriptionFiltersRequest",wnt="DescribeSubscriptionFiltersResponse",Pnt="DisassociateSourceFromS3TableIntegration",Ont="DisassociateSourceFromS3TableIntegrationRequest",$nt="DisassociateSourceFromS3TableIntegrationResponse",knt="DataSourceFilters",Mnt="DeleteSubscriptionFilter",Lnt="DescribeSubscriptionFilters",Nnt="DeleteScheduledQuery",Fnt="DeleteScheduledQueryRequest",Bnt="DeleteScheduledQueryResponse",Unt="DeliverySource",Gnt="DeliverySources",qnt="DeleteTransformer",Hnt="DateTimeConverter",jnt="DeleteTransformerRequest",znt="Destination",Vnt="Deliveries",Wnt="Destinations",Knt="Entity",Qnt="ExportTask",Ynt="ExportTaskExecutionInfo",Jnt="ExportTaskStatus",Xnt="ExportTasks",Znt="FieldsData",eot="FieldIndex",tot="FieldIndexes",rot="FilteredLogEvent",not="FilterLogEventsRequest",oot="FilterLogEventsResponse",sot="FilteredLogEvents",iot="FilterLogEvents",aot="Grok",cot="GetDelivery",uot="GetDeliveryDestination",lot="GetDeliveryDestinationPolicy",dot="GetDeliveryDestinationPolicyRequest",pot="GetDeliveryDestinationPolicyResponse",fot="GetDeliveryDestinationRequest",mot="GetDeliveryDestinationResponse",got="GetDataProtectionPolicy",hot="GetDataProtectionPolicyRequest",Sot="GetDataProtectionPolicyResponse",yot="GetDeliveryRequest",Eot="GetDeliveryResponse",_ot="GetDeliverySource",Rot="GetDeliverySourceRequest",Cot="GetDeliverySourceResponse",bot="GroupingIdentifier",Aot="GetIntegrationRequest",xot="GetIntegrationResponse",Tot="GetIntegration",vot="GroupingIdentifiers",Dot="GetLogAnomalyDetector",Iot="GetLogAnomalyDetectorRequest",wot="GetLogAnomalyDetectorResponse",Pot="GetLogEvents",Oot="GetLogEventsRequest",$ot="GetLogEventsResponse",kot="GetLogFields",Mot="GetLogFieldsRequest",Lot="GetLogFieldsResponse",Not="GetLogGroupFields",Fot="GetLogGroupFieldsRequest",Bot="GetLogGroupFieldsResponse",Uot="GetLogObject",Got="GetLogObjectRequest",qot="GetLogObjectResponseStream",Hot="GetLogObjectResponse",jot="GetLogRecord",zot="GetLogRecordRequest",Vot="GetLogRecordResponse",Wot="GetLookupTable",Kot="GetLookupTableRequest",Qot="GetLookupTableResponse",Yot="GetQueryResults",Jot="GetQueryResultsRequest",Xot="GetQueryResultsResponse",Zot="GetScheduledQuery",est="GetScheduledQueryHistory",tst="GetScheduledQueryHistoryRequest",rst="GetScheduledQueryHistoryResponse",nst="GetScheduledQueryRequest",ost="GetScheduledQueryResponse",sst="GetStorageTierPolicy",ist="GetStorageTierPolicyRequest",ast="GetStorageTierPolicyResponse",cst="GetTransformer",ust="GetTransformerRequest",lst="GetTransformerResponse",dst="Import",pst="ImportBatch",fst="ImportBatchList",mst="IntegrationDetails",gst="ImportFilter",hst="ImportList",Sst="InputLogEvent",yst="InputLogEvents",Est="InvalidOperationException",_st="IndexPolicy",Rst="InvalidParameterException",Cst="IndexPolicies",bst="ImportStatistics",Ast="InternalServerException",jme="InternalStreamingException",xst="InvalidSequenceTokenException",Tst="IntegrationSummary",vst="IntegrationSummaries",Dst="ListAnomalies",Ist="ListAggregateLogGroupSummaries",wst="ListAggregateLogGroupSummariesRequest",Pst="ListAggregateLogGroupSummariesResponse",Ost="ListAnomaliesRequest",$st="ListAnomaliesResponse",kst="LowerCaseString",Mst="LogEvent",Lst="LimitExceededException",Nst="LogFieldsList",Fst="LogFieldsListItem",Bst="LogFieldType",Ust="LogGroup",Gst="LogGroupField",qst="LogGroupFieldList",Hst="LogGroupSummary",jst="LogGroupSummaries",zst="LogGroups",Vst="ListIntegrations",Wst="ListIntegrationsRequest",Kst="ListIntegrationsResponse",Qst="ListLogAnomalyDetectors",Yst="ListLogAnomalyDetectorsRequest",Jst="ListLogAnomalyDetectorsResponse",Xst="ListLogGroups",Zst="ListLogGroupsForQuery",eit="ListLogGroupsForQueryRequest",tit="ListLogGroupsForQueryResponse",rit="ListLogGroupsRequest",nit="ListLogGroupsResponse",oit="LogStream",sit="ListSyslogConfigurations",iit="ListSyslogConfigurationsRequest",ait="ListSyslogConfigurationsResponse",cit="ListSourcesForS3TableIntegration",uit="ListSourcesForS3TableIntegrationRequest",lit="ListSourcesForS3TableIntegrationResponse",dit="ListScheduledQueries",pit="ListScheduledQueriesRequest",fit="ListScheduledQueriesResponse",mit="LogSamples",git="LogStreams",hit="LookupTable",Sit="LookupTableConfiguration",yit="ListTagsForResource",Eit="ListTagsForResourceRequest",_it="ListTagsForResourceResponse",Rit="ListTagsLogGroup",Cit="ListTagsLogGroupRequest",bit="ListTagsLogGroupResponse",Ait="ListToMap",xit="LiveTailSessionLogEvent",Tit="LiveTailSessionMetadata",vit="LiveTailSessionResults",Dit="LiveTailSessionStart",Iit="LiveTailSessionUpdate",wit="LookupTables",Pit="MetricFilter",Oit="MetricFilterMatches",$it="MetricFilterMatchRecord",kit="MetricFilters",Mit="MoveKeys",Lit="MoveKeyEntry",Nit="MoveKeyEntries",Fit="MalformedQueryException",Bit="MetricTransformation",Uit="MetricTransformations",Git="OperationAbortedException",qit="OutputLogEvent",Hit="OutputLogEvents",jit="OpenSearchApplication",zit="OpenSearchCollection",Vit="OpenSearchDataAccessPolicy",Wit="OpenSearchDataSource",Kit="OpenSearchEncryptionPolicy",Qit="OpenSearchIntegrationDetails",Yit="OpenSearchLifecyclePolicy",Jit="OpenSearchNetworkPolicy",Xit="OpenSearchResourceConfig",Zit="OpenSearchResourceStatus",eat="OpenSearchWorkspace",tat="Policy",rat="PutAccountPolicy",nat="PutAccountPolicyRequest",oat="PutAccountPolicyResponse",sat="PutBearerTokenAuthentication",iat="PutBearerTokenAuthenticationRequest",aat="ParseCloudfront",cat="PutDestination",uat="PutDeliveryDestination",lat="PutDeliveryDestinationPolicy",dat="PutDeliveryDestinationPolicyRequest",pat="PutDeliveryDestinationPolicyResponse",fat="PutDeliveryDestinationRequest",mat="PutDeliveryDestinationResponse",gat="PutDestinationPolicy",hat="PutDataProtectionPolicy",Sat="PutDataProtectionPolicyRequest",yat="PutDataProtectionPolicyResponse",Eat="PutDestinationPolicyRequest",_at="PutDestinationRequest",Rat="PutDestinationResponse",Cat="PutDeliverySource",bat="PutDeliverySourceRequest",Aat="PutDeliverySourceResponse",xat="PutIntegration",Tat="PutIndexPolicy",vat="PutIndexPolicyRequest",Dat="PutIndexPolicyResponse",Iat="PutIntegrationRequest",wat="PutIntegrationResponse",Pat="ParseJSON",Oat="ParseKeyValue",$at="PutLogEvents",kat="PutLogEventsRequest",Mat="PutLogEventsResponse",Lat="PutLogGroupDeletionProtection",Nat="PutLogGroupDeletionProtectionRequest",Fat="PutMetricFilter",Bat="PutMetricFilterRequest",Uat="ParsePostgres",Gat="PutQueryDefinition",qat="PutQueryDefinitionRequest",Hat="PutQueryDefinitionResponse",jat="ParseRoute53",zat="PutResourcePolicy",Vat="PutResourcePolicyRequest",Wat="PutResourcePolicyResponse",Kat="PutRetentionPolicyRequest",Qat="PutRetentionPolicy",Yat="PutSyslogConfiguration",Jat="PutSyslogConfigurationRequest",Xat="PutSubscriptionFilter",Zat="PutSubscriptionFilterRequest",ect="PutStorageTierPolicy",tct="PutStorageTierPolicyRequest",rct="PutStorageTierPolicyResponse",nct="PatternToken",oct="ParseToOCSF",sct="PutTransformerRequest",ict="PatternTokens",act="PutTransformer",cct="ParseVPC",uct="ParseWAF",lct="Processor",dct="Processors",pct="QueryCompileError",fct="QueryCompileErrorLocation",mct="QueryDefinition",gct="QueryDefinitionList",hct="QueryInfo",Sct="QueryInfoList",yct="QueryParameter",Ect="QueryParameterList",_ct="QueryResults",Rct="QueryStatistics",Cct="ResourceAlreadyExistsException",bct="ResourceConfig",Act="RejectedEntityInfo",xct="RecordField",Tct="ResultField",vct="RenameKeys",Dct="RenameKeyEntry",Ict="RenameKeyEntries",wct="RejectedLogEventsInfo",Pct="ResourceNotFoundException",Oct="ResourcePolicy",$ct="ResourcePolicies",kct="ResultRows",Mct="S3Configuration",Lct="SyslogConfiguration",Nct="SyslogConfigurations",Fct="S3DeliveryConfiguration",Bct="SubscriptionFilter",Uct="SubscriptionFilters",Gct="SearchedLogStream",qct="SearchedLogStreams",Hct="StartLiveTail",jct="StartLiveTailRequest",zct="StartLiveTailResponseStream",Vct="StartLiveTailResponse",Wct="SuppressionPeriod",Kct="StartQuery",Qct="ScheduledQueryDestination",Yct="ScheduledQueryDestinationList",Jct="ServiceQuotaExceededException",Xct="StartQueryRequest",Zct="StartQueryResponse",eut="StopQueryRequest",tut="StopQueryResponse",rut="ScheduledQuerySummary",nut="ScheduledQuerySummaryList",out="StopQuery",sut="SplitString",zme="SessionStreamingException",iut="SplitStringEntry",aut="SplitStringEntries",cut="SubstituteStringEntry",uut="SubstituteStringEntries",lut="SubstituteString",Vme="SessionTimeoutException",dut="S3TablesIntegration",put="S3TableIntegrationSource",fut="S3TableIntegrationSources",mut="ServiceUnavailableException",gut="TypeConverter",hut="TypeConverterEntry",Sut="TypeConverterEntries",yut="ThrottlingException",Eut="TagFilter",_ut="TagFilters",Rut="TriggerHistoryRecord",Cut="TriggerHistoryRecordList",but="TransformedLogs",Aut="TagLogGroup",xut="TagLogGroupRequest",Tut="TransformedLogRecord",vut="TestMetricFilter",Dut="TestMetricFilterRequest",Iut="TestMetricFilterResponse",wut="TooManyTagsException",Put="TagResource",Out="TagResourceRequest",$ut="TrimString",kut="TestTransformer",Mut="TestTransformerRequest",Lut="TestTransformerResponse",Nut="UpdateAnomaly",Fut="UpdateAnomalyRequest",But="UnrecognizedClientException",Uut="UpperCaseString",Gut="UpdateDeliveryConfiguration",qut="UpdateDeliveryConfigurationRequest",Hut="UpdateDeliveryConfigurationResponse",jut="UpdateLogAnomalyDetector",zut="UpdateLogAnomalyDetectorRequest",Vut="UntagLogGroup",Wut="UntagLogGroupRequest",Kut="UpdateLookupTable",Qut="UpdateLookupTableRequest",Yut="UpdateLookupTableResponse",Jut="UntagResource",Xut="UntagResourceRequest",Zut="UpdateScheduledQuery",elt="UpdateScheduledQueryRequest",tlt="UpdateScheduledQueryResponse",rlt="ValidationException",nlt="active",Wme="applicationArn",olt="allowedActionForAllowVendedLogsDeliveryForResource",slt="anomalyDetectors",ic="anomalyDetectorArn",Kme="anomalyDetectorStatus",ilt="applicationEndpoint",alt="allowedFields",clt="allowedFieldDelimiters",ult="accountId",nD="accountIdentifiers",Qme="anomalyId",llt="applicationId",dlt="addKeys",plt="aggregateLogGroupSummaries",flt="allowedOutputFormats",oD="applyOnTransformedLogs",mlt="accountPolicies",QN="accessPolicy",glt="accountPolicy",hlt="allowedSuffixPathFields",sD="anomalyVisibilityTime",Slt="anomalies",ylt="application",ip="arn",Elt="attributes",_lt="baseline",Rlt="batchId",Clt="batchImportStatus",blt="bytesImported",Yme="bytesScanned",Jme="bearerTokenAuthenticationEnabled",Jt="client",Xme="createdAt",Alt="collectionArn",xlt="collectionEndpoint",Hn="creationTime",Zme="creationTimeStamp",Tlt="createdTimeStamp",vlt="clientToken",Dlt="configurationTemplates",Ilt="completionTime",wlt="createTime",Plt="copyValue",Olt="columns",$lt="code",klt="collection",Mlt="csv",is="description",ege="destinationArn",fh="destinationConfiguration",Llt="deliveryDestinations",tge="deliveryDestinationArn",rge="deliveryDestinationConfiguration",Nlt="defaultDeliveryConfigValues",YN="deliveryDestinationName",nge="deliveryDestinationPolicy",iD="deliveryDestinationType",Flt="deliveryDestinationTypes",oge="deliveryDestination",sge="destinationIdentifier",Blt="deleteKeys",JN="detectorName",Ult="datasourceName",aD="destinationName",ige="destinationPrefix",XN="deletionProtectionEnabled",Glt="dataProtectionStatus",qlt="destinationResourceArn",ZN="dataSource",e3="deliverySourceConfiguration",age="deliverySourceName",cge="dataSourceName",Hlt="dataSourceRoleArn",jlt="dataSourceType",uge="dataSources",zlt="deliverySources",lge="deliverySource",Vlt="datasourceType",Wlt="dateTimeConverter",Klt="dynamicTokenPosition",Qlt="destinationType",t3="defaultValue",Ylt="dashboardViewerPrincipals",Jlt="data",dge="delivery",pge="delimiter",Xlt="deliveries",ap="destination",Zlt="descending",fge="destinations",edt="dimensions",mge="distribution",wt="error",tdt="estimatedBytesSkipped",rdt="endCharOffset",ndt="endEventTime",cD="evaluationFrequency",odt="enableHiveCompatiblePath",sdt="executionInfo",idt="eventId",adt="encryptionKey",cdt="expiredLogEventEndIndex",uD="errorMessage",gge="eventMessage",hge="eventNumber",udt="encryptionPolicy",lD="executionRoleArn",Sge="expectedRevisionId",ldt="estimatedRecordsSkipped",ddt="executionStatuses",yge="emitSystemFields",Ege="emitSystemFieldDimensions",_ge="expectedSequenceToken",pdt="eventSource",fdt="executionStatus",mdt="exportTasks",dD="endTimeOffset",pD="endTime",gdt="errorType",hdt="extractedValues",Sdt="element",xu="entries",ydt="enabled",Rge="endpoint",Edt="entity",_dt="enumerations",Cge="events",r3="from",mh="fieldDelimiter",Rdt="flattenedElement",Cdt="firstEventTime",bdt="firstEventTimestamp",Adt="fieldIndexes",xdt="fieldIndexName",Tdt="fieldIndexNames",vdt="filterLogGroupArn",cp="filterName",bge="filterNamePrefix",yi="filterPattern",Ddt="firstSeen",fD="fieldSelectionCriteria",Idt="fieldStream",wdt="forceUpdate",Age="fields",Pdt="field",Odt="flatten",$dt="force",kdt="grok",Mdt="groupBy",Ldt="groupingIdentifiers",Ndt="histogram",xge="httpError",ac="identifier",Tge="integrationArn",Fdt="importBatches",Bdt="indexCategories",Udt="indexCategory",Gdt="integrationDetails",vge="importDestinationArn",qdt="isDynamic",Dge="importFilter",Tu="importId",n3="includeLinkedAccounts",up="integrationName",Hdt="integrationNamePrefix",jdt="indexPolicies",zdt="isPatternLevelSuppression",Vdt="inheritedProperties",Wdt="indexPolicy",Kdt="importRoleArn",Ige="importStatistics",mD="importSourceArn",o3="importStatus",gD="integrationStatus",Qdt="integrationSummaries",s3="ingestionTime",Ydt="inferredTokenName",hD="integrationType",SD="id",Jdt="imports",Xdt="interleaved",lp="key",Zdt="keyAttributes",ept="kmsKeyArn",go="kmsKeyId",tpt="keyName",rpt="keyPrefix",npt="keyValueDelimiter",opt="locale",spt="lowerCaseString",ipt="logEvents",wge="logEventFilterPattern",Pge="logEventMessages",i3="lastExecutionStatus",apt="lastEventTime",cpt="lastEventTimestamp",upt="logFields",lpt="logFieldName",dpt="logFieldType",Oge="logGroups",a3="logGroupArn",yD="logGroupArnList",ppt="logGroupCount",dp="logGroupClass",fpt="logGroupFields",as="logGroupIdentifiers",dt="logGroupIdentifier",Me="logGroupName",mpt="logGroupNamePrefix",c3="logGroupNamePattern",u3="logGroupNames",gpt="logGroupsScanned",hpt="logGroupTags",Spt="lastIngestionTime",ypt="lastModified",Ept="lastModifiedTime",$ge="lastModifiedTimeStamp",_pt="logObjectPointer",Rpt="lifecyclePolicy",Cpt="logRecord",bpt="logRecordPointer",Apt="lastSeen",cc="logStreamName",l3="logStreamNamePrefix",kge="logStreamNamePrefixes",d3="logStreamNames",xpt="lastScanTime",Tpt="logSamples",vpt="logStreams",p3="logType",vu="lookupTableArn",Dpt="lookupTableConfiguration",Ipt="listToMap",f3="lookupTableName",wpt="lookupTableNamePrefix",m3="lastTriggeredTime",Ppt="logTypes",Opt="lookupTables",xn="lastUpdatedTime",$pt="lastUpdateTime",Bt="limit",kpt="location",je="message",Mpt="metricFilters",Lpt="metricFilterCount",Npt="maxItems",Fpt="moveKeys",Mge="metricName",Lge="metricNamespace",Bpt="matchPatterns",uc="maxResults",Nge="metricTransformations",Upt="minValue",Gpt="maxValue",qpt="mappingVersion",Hpt="metricValue",jpt="match",zpt="mandatory",Vpt="matches",Ut="name",Wpt="nextBackwardToken",Kpt="nextForwardToken",Qpt="nonMatchValue",Ypt="networkPolicy",Jpt="nextSequenceToken",Q="nextToken",Xpt="ownerAccountId",Zpt="orderBy",Fge="outputFormat",gh="overwriteIfExists",eft="openSearchIntegrationDetails",tft="openSearchResourceConfig",rft="ocsfVersion",nft="priority",oft="parseCloudfront",Ki="policyDocument",Bge="patternId",sft="processedIdentifier",ift="parseJSON",aft="parseKeyValue",ho="policyName",cft="parsePostgres",uft="patternRegex",lft="parseRoute53",dft="patternString",pft="parentSourceIdentifier",Uge="policyScope",ED="policyType",fft="parseToOCSF",mft="patternTokens",gft="parseVPC",hft="parseWAF",Gge="parameters",Sft="percent",qge="policy",yft="queries",Eft="quoteCharacter",_ft="queryCompileError",Rft="queryDefinitions",_D="queryDefinitionId",Cft="queryDefinitionNamePrefix",bft="queryDuration",lc="queryId",cs="queryLanguage",dc="queryString",Aft="results",pc="resourceArn",xft="resourceArns",fc="roleArn",Tft="recordsCount",vft="resourceConfig",Dft="resultCount",Ift="retentionDays",wft="rejectedEntityInfo",RD="recordFields",Hge="resourceIdentifier",jge="retentionInDays",Pft="requestId",zge="revisionId",Oft="renameKeys",$ft="rejectedLogEventsInfo",kft="recordsMatched",Mft="resourceName",Lft="resourcePolicies",Nft="resourcePolicy",Fft="recordsScanned",Bft="responseStream",Uft="resourceType",Gft="resourceTypes",qft="renameTo",Vge="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Wge="sizeBytes",Kge="storedBytes",Qge="selectionCriteria",Hft="startCharOffset",jft="searchedCompletely",zft="s3Configuration",Vft="statusCode",Wft="syslogConfigurations",Kft="suppressedDate",CD="s3DeliveryConfiguration",hh="scheduleExpression",bD="scheduleEndTime",Qft="startEventTime",Yft="subscriptionFilters",Yge="startFromHead",Jft="sessionId",Xft="searchedLogStreams",Zft="sessionMetadata",emt="statusMessage",tmt="suffixPath",rmt="suppressionPeriod",nmt="scheduledQueries",Sh="scheduledQueryArn",Jge="statusReason",omt="sessionResults",smt="suppressionState",AD="scheduleStartTime",imt="sessionStart",amt="splitString",cmt="substituteString",umt="sourceTimezone",lmt="s3TablesIntegration",xD="startTimeOffset",TD="scheduleType",dmt="sequenceToken",pmt="sourceType",vD="startTime",g3="storageTier",fmt="suppressionType",mmt="suppressedUntil",gmt="sessionUpdate",hmt="suppressionUnit",Smt="supportedValues",ymt="sampled",Xge="scope",Zge="server",h3="service",$r="source",Emt="sources",mc="state",kr="status",_mt="statistics",ehe="streaming",Rmt="suppressed",the="success",DD="target",rhe="targetArn",S3="tableBody",y3="transformerConfig",Cmt="typeConverter",bmt="transformedEventMessage",Amt="targetFormat",xmt="tableFields",Tmt="triggerHistory",ID="taskId",vmt="tagKeys",Dmt="transformedLogs",nhe="taskName",Imt="tooNewLogEventStartIndex",wmt="tableName",Pmt="tooOldLogEventEndIndex",Omt="tokenString",$mt="trimString",kmt="targetTimezone",Mmt="triggeredTimestamp",Mr="tags",yh="timezone",Eh="timestamp",Lmt="time",E3="to",_h="type",wD="unmask",Nmt="upperCaseString",Fmt="userIdentity",Bmt="uploadSequenceToken",Umt="unit",PD="value",OD="vpcEndpointId",Gmt="valueKey",qmt="valueType",Hmt="values",jmt="workspace",zmt="workspaceId",$D="withKeys",S="com.amazonaws.cloudwatchlogs",ohe=new qme(Vge),she=[-3,Vge,"CloudWatchLogsServiceException",0,[],[]];ohe.registerError(she,nt);var Rt=new qme(S),ihe=[-3,S,Oet,{[wt]:Jt},[je],[0]];Rt.registerError(ihe,Hx);var ahe=[-3,S,Jet,{[wt]:Jt},[je],[0]];Rt.registerError(ahe,Xx);var che=[-3,S,wtt,{[wt]:Jt},[_ge,je],[0,0]];Rt.registerError(che,rT);var uhe=[-3,S,Ast,{[wt]:Zge,[xge]:500},[je],[0]];Rt.registerError(uhe,Kx);var _3=[-3,S,jme,{[wt]:Jt},[je],[0]];Rt.registerError(_3,nT);var lhe=[-3,S,Est,{[wt]:Jt},[je],[0]];Rt.registerError(lhe,Jx);var dhe=[-3,S,Rst,{[wt]:Jt},[je],[0]];Rt.registerError(dhe,jx);var phe=[-3,S,xst,{[wt]:Jt},[_ge,je],[0,0]];Rt.registerError(phe,oT);var fhe=[-3,S,Lst,{[wt]:Jt},[je],[0]];Rt.registerError(fhe,eT);var mhe=[-3,S,Fit,{[wt]:Jt},[_ft,je],[()=>e_e,0]];Rt.registerError(mhe,cT);var ghe=[-3,S,Git,{[wt]:Jt},[je],[0]];Rt.registerError(ghe,zx);var hhe=[-3,S,Cct,{[wt]:Jt},[je],[0]];Rt.registerError(hhe,tT);var She=[-3,S,Pct,{[wt]:Jt},[je],[0]];Rt.registerError(She,Vx);var yhe=[-3,S,Jct,{[wt]:Jt},[je],[0]];Rt.registerError(yhe,Zx);var Ehe=[-3,S,mut,{[wt]:Zge},[je],[0]];Rt.registerError(Ehe,Wx);var R3=[-3,S,zme,{[wt]:Jt},[je],[0]];Rt.registerError(R3,iT);var C3=[-3,S,Vme,{[wt]:Jt},[je],[0]];Rt.registerError(C3,aT);var _he=[-3,S,yut,{[wt]:Jt},[je],[0]];Rt.registerError(_he,Qx);var Rhe=[-3,S,wut,{[wt]:Jt,[xge]:400},[je,Mft],[0,0]];Rt.registerError(Rhe,uT);var Che=[-3,S,But,{[wt]:Jt},[je],[0]];Rt.registerError(Che,sT);var bhe=[-3,S,rlt,{[wt]:Jt},[je],[0]];Rt.registerError(bhe,Yx);var Ahe=[ohe,Rt],b3=[3,S,qet,0,[ho,Ki,xn,ED,Xge,Qge,ult],[0,0,1,0,0,0,0]],xhe=[3,S,Let,0,[lp,PD,gh],[0,0,2],2],The=[3,S,Met,0,[xu],[()=>Wmt],1],vhe=[3,S,Uet,0,[ppt,Ldt],[1,()=>cgt]],Dhe=[3,S,wet,0,[Qme,Bge,ic,dft,Ddt,Apt,is,nlt,mc,Ndt,Tpt,mft,yD,uft,nft,Rmt,Kft,mmt,zdt],[0,0,0,0,1,1,0,2,0,129,()=>ygt,()=>xgt,64,0,0,2,1,1,2],13],Ihe=[3,S,Pet,0,[ic,JN,yD,cD,yi,Kme,go,Zme,$ge,sD],[0,0,64,0,0,0,0,1,1,1]],whe=[3,S,Bet,0,[go,Me,Hge],[0,0,0],1],Phe=[3,S,zet,0,[Tge,ZN],[0,()=>A3],2],Ohe=[3,S,Vet,0,[ac],[0]],$he=[3,S,Zet,0,[ID],[0],1],khe=[3,S,ott,0,[Tu],[0],1],Mhe=[3,S,stt,0,[Tu,Ige,o3,Hn,xn],[0,()=>D3,0,1,1]],Lhe=[3,S,btt,0,[h3,p3,Uft,iD,Nlt,alt,flt,olt,clt,hlt,e3,lmt],[0,0,0,0,()=>Nhe,()=>Qmt,64,0,64,64,()=>rgt,()=>m_e]],Nhe=[3,S,Att,0,[RD,mh,CD],[64,0,()=>Rh]],Fhe=[3,S,Ttt,0,[xu],[()=>Zmt],1],Bhe=[3,S,vtt,0,[$r,DD,gh],[0,0,2],2],Uhe=[3,S,Qet,0,[age,tge,RD,mh,CD,Mr],[0,0,64,0,()=>Rh,128],2],Ghe=[3,S,Yet,0,[dge],[()=>kD]],qhe=[3,S,ett,0,[Me,r3,E3,ap,nhe,l3,ige],[0,1,1,0,0,0,0],4],Hhe=[3,S,ttt,0,[ID],[0]],jhe=[3,S,itt,0,[mD,Kdt,Dge],[0,0,()=>v3],2],zhe=[3,S,att,0,[Tu,vge,Hn],[0,0,1]],Vhe=[3,S,ltt,0,[yD,JN,cD,yi,go,sD,Mr],[64,0,0,0,0,1,128],1],Whe=[3,S,dtt,0,[ic],[0]],Khe=[3,S,ftt,0,[Me,go,Mr,dp,XN],[0,0,128,0,2],1],Qhe=[3,S,gtt,0,[Me,cc],[0,0],2],Yhe=[3,S,Stt,0,[f3,is,S3,lc,go,Mr],[0,0,0,0,0,128],1],Jhe=[3,S,ytt,0,[vu,Xme],[0,1]],Xhe=[3,S,_tt,0,[Ut,cs,dc,hh,lD,is,as,yh,xD,dD,fh,AD,bD,mc,Mr],[0,0,0,0,0,0,64,0,1,1,()=>pp,1,1,0,128],5],Zhe=[3,S,Rtt,0,[Sh,mc],[0,0]],eSe=[3,S,Ctt,0,[Eft,pge,Olt,$r,ap],[0,0,64,0,0]],A3=[3,S,Cnt,0,[Ut,_h],[0,0],1],tSe=[3,S,vnt,0,[Ut,_h],[0,0],1],rSe=[3,S,Hnt,0,[$r,DD,Bpt,Amt,umt,kmt,opt],[0,0,64,0,0,0,0],3],nSe=[3,S,Ott,0,[ho,ED],[0,0],2],oSe=[3,S,Ytt,0,[dt],[0],1],sSe=[3,S,jtt,0,[YN],[0],1],iSe=[3,S,ztt,0,[Ut],[0],1],aSe=[3,S,Jtt,0,[SD],[0],1],cSe=[3,S,ort,0,[Ut],[0],1],uSe=[3,S,Xtt,0,[aD],[0],1],lSe=[3,S,Rrt,0,[dt],[0],1],dSe=[3,S,Crt,0,[],[]],pSe=[3,S,Trt,0,[up,$dt],[0,2],1],fSe=[3,S,vrt,0,[],[]],mSe=[3,S,krt,0,[$D],[64],1],gSe=[3,S,Frt,0,[ic],[0],1],hSe=[3,S,Urt,0,[Me],[0],1],SSe=[3,S,zrt,0,[Me,cc],[0,0],2],ySe=[3,S,Yrt,0,[vu],[0],1],ESe=[3,S,tnt,0,[Me,cp],[0,0],2],_Se=[3,S,cnt,0,[_D],[0],1],RSe=[3,S,unt,0,[the],[2]],CSe=[3,S,hnt,0,[ho,pc,Sge],[0,0,0]],bSe=[3,S,Snt,0,[Me],[0],1],ASe=[3,S,Fnt,0,[ac],[0],1],xSe=[3,S,Bnt,0,[],[]],TSe=[3,S,Dnt,0,[Me,cp],[0,0],2],vSe=[3,S,Ant,0,[dt,OD],[0,0],1],DSe=[3,S,jnt,0,[dt],[0],1],kD=[3,S,Itt,0,[SD,ip,age,tge,iD,RD,mh,CD,Mr],[0,0,0,0,0,64,0,()=>Rh,128]],MD=[3,S,Utt,0,[Ut,ip,iD,Fge,rge,fc,Mr],[0,0,0,0,()=>x3,0,128]],x3=[3,S,Gtt,0,[qlt],[0],1],LD=[3,S,Unt,0,[Ut,ip,xft,h3,p3,Mr,e3,kr,Jge],[0,0,64,0,0,128,128,0,0]],ISe=[3,S,xnt,0,[tpt,qmt,t3,Smt,Upt,Gpt],[0,0,0,64,1,1],3],wSe=[3,S,$tt,0,[ED,ho,nD,Q],[0,0,64,0],1],PSe=[3,S,ktt,0,[mlt,Q],[()=>Vmt,0]],OSe=[3,S,Ftt,0,[h3,Ppt,Gft,Flt,Q,Bt],[0,64,64,64,0,1]],$Se=[3,S,Btt,0,[Dlt,Q],[()=>Xmt,0]],kSe=[3,S,Ztt,0,[Q,Bt],[0,1]],MSe=[3,S,ert,0,[Xlt,Q],[()=>egt,0]],LSe=[3,S,Vtt,0,[Q,Bt],[0,1]],NSe=[3,S,Wtt,0,[Llt,Q],[()=>tgt,0]],FSe=[3,S,srt,0,[Q,Bt],[0,1]],BSe=[3,S,irt,0,[zlt,Q],[()=>ngt,0]],USe=[3,S,trt,0,[snt,Q,Bt],[0,0,1]],GSe=[3,S,rrt,0,[fge,Q],[()=>ogt,0]],qSe=[3,S,mrt,0,[ID,Vft,Q,Bt],[0,0,0,1]],HSe=[3,S,grt,0,[mdt,Q],[()=>sgt,0]],jSe=[3,S,Srt,0,[as,Bdt,Q],[64,64,0],1],zSe=[3,S,yrt,0,[Adt,Q],[()=>igt,0]],VSe=[3,S,wrt,0,[Tu,Clt,Bt,Q],[0,64,1,0],1],WSe=[3,S,Prt,0,[mD,Tu,Fdt,Q],[0,0,()=>ugt,0]],KSe=[3,S,Ort,0,[Tu,o3,mD,Bt,Q],[0,0,0,1,0]],QSe=[3,S,$rt,0,[Jdt,Q],[()=>lgt,0]],YSe=[3,S,brt,0,[as,Q],[64,0],1],JSe=[3,S,Art,0,[jdt,Q],[()=>dgt,0]],XSe=[3,S,Grt,0,[nD,mpt,c3,Q,Bt,n3,dp,as],[64,0,0,0,1,2,0,64]],ZSe=[3,S,qrt,0,[Oge,Q],[()=>hgt,0]],e0e=[3,S,Vrt,0,[Me,dt,l3,Zpt,Zlt,Q,Bt],[0,0,0,0,2,0,1]],t0e=[3,S,Wrt,0,[vpt,Q],[()=>Egt,0]],r0e=[3,S,Jrt,0,[wpt,uc,Q],[0,1,0]],n0e=[3,S,Xrt,0,[Opt,Q],[()=>_gt,0]],o0e=[3,S,rnt,0,[Me,bge,Q,Bt,Mge,Lge],[0,0,0,1,0,0]],s0e=[3,S,nnt,0,[Mpt,Q],[()=>Cgt,0]],i0e=[3,S,fnt,0,[Me,kr,uc,Q,cs],[0,0,1,0,0]],a0e=[3,S,mnt,0,[yft,Q],[()=>vgt,0]],c0e=[3,S,lnt,0,[cs,Cft,uc,Q],[0,0,1,0]],u0e=[3,S,dnt,0,[Rft,Q],[()=>Tgt,0]],l0e=[3,S,ynt,0,[Q,Bt,pc,Uge],[0,1,0,0]],d0e=[3,S,Ent,0,[Lft,Q],[()=>wgt,0]],p0e=[3,S,Int,0,[Me,bge,Q,Bt],[0,0,0,1],1],f0e=[3,S,wnt,0,[Yft,Q],[()=>Ngt,0]],T3=[3,S,znt,0,[aD,rhe,fc,QN,ip,Hn],[0,0,0,0,0,1]],pp=[3,S,Ltt,0,[zft,Dpt],[()=>p_e,()=>Kye]],m0e=[3,S,Lrt,0,[Me,Hge],[0,0]],g0e=[3,S,Ont,0,[ac],[0],1],h0e=[3,S,$nt,0,[ac],[0]],S0e=[3,S,Knt,0,[Zdt,Elt],[128,128]],y0e=[3,S,Qnt,0,[ID,nhe,Me,r3,E3,ap,ige,kr,sdt],[0,0,0,1,1,0,0,()=>_0e,()=>E0e]],E0e=[3,S,Ynt,0,[Hn,Ilt],[1,1]],_0e=[3,S,Jnt,0,[$lt,je],[0,0]],R0e=[3,S,eot,0,[dt,xdt,xpt,Cdt,apt,_h,Udt],[0,0,1,1,1,0,0]],C0e=[3,S,Znt,0,[Jlt],[21]],b0e=[3,S,rot,0,[cc,Eh,je,s3,idt],[0,1,0,1,0]],A0e=[3,S,not,0,[Me,dt,d3,l3,vD,pD,yi,Q,Bt,Yge,Xdt,wD],[0,0,64,0,1,1,0,0,1,2,2,2]],x0e=[3,S,oot,0,[Cge,Xft,Q],[()=>agt,()=>Mgt,0]],T0e=[3,S,hot,0,[dt],[0],1],v0e=[3,S,Sot,0,[dt,Ki,xn],[0,0,1]],D0e=[3,S,dot,0,[YN],[0],1],I0e=[3,S,pot,0,[qge],[()=>P3]],w0e=[3,S,fot,0,[Ut],[0],1],P0e=[3,S,mot,0,[oge],[()=>MD]],O0e=[3,S,yot,0,[SD],[0],1],$0e=[3,S,Eot,0,[dge],[()=>kD]],k0e=[3,S,Rot,0,[Ut],[0],1],M0e=[3,S,Cot,0,[lge],[()=>LD]],L0e=[3,S,Aot,0,[up],[0],1],N0e=[3,S,xot,0,[up,hD,gD,Gdt],[0,0,0,()=>sRe]],F0e=[3,S,Iot,0,[ic],[0],1],B0e=[3,S,wot,0,[JN,yD,cD,yi,Kme,go,Zme,$ge,sD],[0,64,0,0,0,0,1,1,1]],U0e=[3,S,Oot,0,[cc,Me,dt,vD,pD,Q,Bt,Yge,wD],[0,0,0,1,1,0,1,2,2],1],G0e=[3,S,$ot,0,[Cge,Kpt,Wpt],[()=>Agt,0,0]],q0e=[3,S,Mot,0,[cge,jlt],[0,0],2],H0e=[3,S,Lot,0,[upt],[()=>tRe]],j0e=[3,S,Fot,0,[Me,Lmt,dt],[0,1,0]],z0e=[3,S,Bot,0,[fpt],[()=>ggt]],V0e=[3,S,Got,0,[_pt,wD],[0,2],1],W0e=[3,S,Hot,0,[Idt],[[()=>oRe,0]]],K0e=[3,S,zot,0,[bpt,wD],[0,2],1],Q0e=[3,S,Vot,0,[Cpt],[128]],Y0e=[3,S,Kot,0,[vu],[0],1],J0e=[3,S,Qot,0,[vu,f3,is,S3,Wge,xn,go],[0,0,0,0,1,1,0]],X0e=[3,S,Jot,0,[lc,Q,Npt],[0,0,1],1],Z0e=[3,S,Xot,0,[cs,Aft,_mt,kr,adt,Q],[0,()=>Dgt,()=>s_e,0,0,0]],eye=[3,S,tst,0,[ac,vD,pD,ddt,uc,Q],[0,1,1,64,1,0],3],tye=[3,S,rst,0,[Ut,Sh,Tmt,Q],[0,0,()=>qgt,0]],rye=[3,S,nst,0,[ac],[0],1],nye=[3,S,ost,0,[Sh,Ut,is,cs,dc,as,hh,yh,xD,dD,fh,mc,TD,m3,i3,AD,bD,lD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>pp,0,0,1,0,1,1,0,1,1]],oye=[3,S,ist,0,[],[]],sye=[3,S,ast,0,[g3,xn],[0,1]],iye=[3,S,ust,0,[dt],[0],1],aye=[3,S,lst,0,[dt,Hn,Ept,y3],[0,1,1,()=>$3]],cye=[3,S,aot,0,[jpt,$r],[0,0],1],uye=[3,S,bot,0,[lp,PD],[0,0]],lye=[3,S,dst,0,[Tu,mD,o3,vge,Ige,Dge,Hn,xn,uD],[0,0,0,0,()=>D3,()=>v3,1,1,0]],dye=[3,S,pst,0,[Rlt,kr,uD],[0,0,0],2],v3=[3,S,gst,0,[Qft,ndt],[1,1]],D3=[3,S,bst,0,[blt],[1]],I3=[3,S,_st,0,[dt,$pt,Ki,ho,$r],[0,1,0,0,0]],pye=[3,S,Sst,0,[Eh,je],[1,0],2],fye=[3,S,Tst,0,[up,hD,gD],[0,0,0]],mye=[3,S,wst,0,[Mdt,nD,n3,dp,c3,uge,Q,Bt],[0,64,2,0,0,()=>eRe,0,1],1],gye=[3,S,Pst,0,[plt,Q],[()=>Kmt,0]],hye=[3,S,Ost,0,[ic,smt,Bt,Q],[0,0,1,0]],Sye=[3,S,$st,0,[Slt,Q],[()=>Ymt,0]],yye=[3,S,Wst,0,[Hdt,hD,gD],[0,0,0]],Eye=[3,S,Kst,0,[Qdt],[()=>fgt]],_ye=[3,S,Yst,0,[vdt,Bt,Q],[0,1,0]],Rye=[3,S,Jst,0,[slt,Q],[()=>Jmt,0]],Cye=[3,S,eit,0,[lc,Q,uc],[0,0,1],1],bye=[3,S,tit,0,[as,Q],[64,0]],Aye=[3,S,rit,0,[c3,dp,n3,nD,Q,Bt,uge,Tdt,hpt],[0,0,2,64,0,1,()=>eRe,64,()=>Ugt]],xye=[3,S,nit,0,[Oge,Q],[()=>Sgt,0]],Tye=[3,S,pit,0,[uc,Q,mc,TD],[1,0,0,0]],vye=[3,S,fit,0,[Q,nmt],[0,()=>kgt]],Dye=[3,S,uit,0,[Tge,uc,Q],[0,1,0],1],Iye=[3,S,lit,0,[Emt,Q],[()=>Ogt,0]],wye=[3,S,iit,0,[dt,OD,Q,uc],[0,0,0,1]],Pye=[3,S,ait,0,[Wft,Q],[()=>Bgt,0]],Oye=[3,S,Eit,0,[pc],[0],1],$ye=[3,S,_it,0,[Mr],[128]],kye=[3,S,Cit,0,[Me],[0],1],Mye=[3,S,bit,0,[Mr],[128]],Lye=[3,S,Ait,0,[$r,lp,Gmt,DD,Odt,Rdt],[0,0,0,0,2,0],2],Nye=[3,S,xit,0,[cc,dt,je,Eh,s3],[0,0,0,1,1]],Fye=[3,S,Tit,0,[ymt],[2]],Bye=[3,S,Dit,0,[Pft,Jft,as,d3,kge,wge],[0,0,64,64,64,0]],Uye=[3,S,Iit,0,[Zft,omt],[()=>Fye,()=>mgt]],Gye=[3,S,Mst,0,[Eh,je],[1,0]],qye=[3,S,Fst,0,[lpt,dpt],[0,()=>w3]],w3=[3,S,Bst,0,[_h,Sdt,Age],[0,()=>w3,()=>tRe]],Hye=[3,S,Ust,0,[Me,Hn,jge,Lpt,ip,Kge,go,Glt,Vdt,dp,a3,XN,Jme],[0,1,1,1,0,1,0,0,64,0,0,2,2]],jye=[3,S,Gst,0,[Ut,Sft],[0,1]],zye=[3,S,Hst,0,[Me,a3,dp],[0,0,0]],Vye=[3,S,oit,0,[cc,Hn,bdt,cpt,Spt,Bmt,ip,Kge],[0,1,1,1,1,0,0,1]],Wye=[3,S,hit,0,[vu,f3,is,xmt,Tft,Wge,xn,go],[0,0,0,64,1,1,1,0]],Kye=[3,S,Sit,0,[wmt,fc,is,go,Mr],[0,0,0,0,128],2],Qye=[3,S,kst,0,[$D],[64],1],Yye=[3,S,Pit,0,[cp,yi,Nge,Hn,Me,oD,fD,Ege],[0,0,()=>rRe,1,0,2,0,64]],Jye=[3,S,$it,0,[hge,gge,hdt],[1,0,128]],Xye=[3,S,Bit,0,[Mge,Lge,Hpt,t3,edt,Umt],[0,0,0,1,128,0],3],Zye=[3,S,Lit,0,[$r,DD,gh],[0,0,2],2],eEe=[3,S,Mit,0,[xu],[()=>bgt],1],tEe=[3,S,jit,0,[ilt,Wme,llt,kr],[0,0,0,()=>Qi]],rEe=[3,S,zit,0,[xlt,Alt,kr],[0,0,()=>Qi]],nEe=[3,S,Vit,0,[ho,kr],[0,()=>Qi]],oEe=[3,S,Wit,0,[cge,kr],[0,()=>Qi]],sEe=[3,S,Kit,0,[ho,kr],[0,()=>Qi]],iEe=[3,S,Qit,0,[ZN,ylt,klt,jmt,udt,Ypt,QN,Rpt],[()=>oEe,()=>tEe,()=>rEe,()=>lEe,()=>sEe,()=>cEe,()=>nEe,()=>aEe]],aEe=[3,S,Yit,0,[ho,kr],[0,()=>Qi]],cEe=[3,S,Jit,0,[ho,kr],[0,()=>Qi]],uEe=[3,S,Xit,0,[Hlt,Ylt,Ift,ept,Wme],[0,64,1,0,0],3],Qi=[3,S,Zit,0,[kr,emt],[0,0]],lEe=[3,S,eat,0,[zmt,kr],[0,()=>Qi]],dEe=[3,S,qit,0,[Eh,je,s3],[1,0,1]],pEe=[3,S,aat,0,[$r],[0]],fEe=[3,S,Pat,0,[$r,ap],[0,0]],mEe=[3,S,Oat,0,[$r,ap,mh,npt,rpt,Qpt,gh],[0,0,0,0,0,0,2]],gEe=[3,S,Uat,0,[$r],[0]],hEe=[3,S,jat,0,[$r],[0]],SEe=[3,S,oct,0,[pdt,rft,$r,qpt],[0,0,0,0],2],yEe=[3,S,cct,0,[$r],[0]],EEe=[3,S,uct,0,[$r],[0]],_Ee=[3,S,nct,0,[Klt,qdt,Omt,_dt,Ydt],[1,2,0,129,0]],P3=[3,S,tat,0,[nge],[0]],REe=[3,S,lct,0,[dlt,Plt,Mlt,Wlt,Blt,kdt,Ipt,spt,Fpt,oft,ift,aft,lft,fft,cft,gft,hft,Oft,amt,cmt,$mt,Cmt,Nmt],[()=>The,()=>Fhe,()=>eSe,()=>rSe,()=>mSe,()=>cye,()=>Lye,()=>Qye,()=>eEe,()=>pEe,()=>fEe,()=>mEe,()=>hEe,()=>SEe,()=>gEe,()=>yEe,()=>EEe,()=>l_e,()=>y_e,()=>v_e,()=>U_e,()=>G_e,()=>Z_e]],CEe=[3,S,nat,0,[ho,Ki,ED,Xge,Qge],[0,0,0,0,0],3],bEe=[3,S,oat,0,[glt],[()=>b3]],AEe=[3,S,iat,0,[dt,Jme],[0,2],2],xEe=[3,S,Sat,0,[dt,Ki],[0,0],2],TEe=[3,S,yat,0,[dt,Ki,xn],[0,0,1]],vEe=[3,S,dat,0,[YN,nge],[0,0],2],DEe=[3,S,pat,0,[qge],[()=>P3]],IEe=[3,S,fat,0,[Ut,Fge,rge,iD,fc,Mr],[0,0,()=>x3,0,0,128],1],wEe=[3,S,mat,0,[oge],[()=>MD]],PEe=[3,S,bat,0,[Ut,pc,p3,Mr,e3],[0,0,0,128,128],3],OEe=[3,S,Aat,0,[lge],[()=>LD]],$Ee=[3,S,Eat,0,[aD,QN,wdt],[0,0,2],2],kEe=[3,S,_at,0,[aD,rhe,fc,Mr],[0,0,0,128],3],MEe=[3,S,Rat,0,[ap],[()=>T3]],LEe=[3,S,vat,0,[dt,Ki],[0,0],2],NEe=[3,S,Dat,0,[Wdt],[()=>I3]],FEe=[3,S,Iat,0,[up,vft,hD],[0,()=>iRe,0],3],BEe=[3,S,wat,0,[up,gD],[0,0]],UEe=[3,S,kat,0,[Me,cc,ipt,dmt,Edt],[0,0,()=>pgt,0,()=>S0e],3],GEe=[3,S,Mat,0,[Jpt,$ft,wft],[0,()=>c_e,()=>a_e]],qEe=[3,S,Nat,0,[dt,XN],[0,2],2],HEe=[3,S,Bat,0,[Me,cp,yi,Nge,oD,fD,Ege],[0,0,0,()=>rRe,2,0,64],4],jEe=[3,S,qat,0,[Ut,dc,cs,_D,u3,vlt,Gge],[0,0,0,0,64,[0,4],()=>nRe],2],zEe=[3,S,Hat,0,[_D],[0]],VEe=[3,S,Vat,0,[ho,Ki,pc,Sge],[0,0,0,0]],WEe=[3,S,Wat,0,[Nft,zge],[()=>O3,0]],KEe=[3,S,Kat,0,[Me,jge],[0,1],2],QEe=[3,S,tct,0,[g3],[0],1],YEe=[3,S,rct,0,[g3,xn],[0,1]],JEe=[3,S,Zat,0,[Me,cp,yi,ege,fc,mge,oD,fD,yge],[0,0,0,0,0,0,2,0,64],4],XEe=[3,S,Jat,0,[dt,OD],[0,0],1],ZEe=[3,S,sct,0,[dt,y3],[0,()=>$3],2],e_e=[3,S,pct,0,[kpt,je],[()=>t_e,0]],t_e=[3,S,fct,0,[Hft,rdt],[1,1]],r_e=[3,S,mct,0,[cs,_D,Ut,dc,ypt,u3,Gge],[0,0,0,0,1,64,()=>nRe]],n_e=[3,S,hct,0,[cs,lc,dc,kr,wlt,Me,bft,Yme,Fmt],[0,0,0,0,1,0,1,1,0]],o_e=[3,S,yct,0,[Ut,t3,is],[0,0,0],1],s_e=[3,S,Rct,0,[kft,Fft,ldt,Yme,tdt,gpt,Dft],[1,1,1,1,1,1,1]],i_e=[3,S,xct,0,[Ut,zpt],[0,2]],a_e=[3,S,Act,0,[gdt],[0],1],c_e=[3,S,wct,0,[Imt,Pmt,cdt],[1,1,1]],u_e=[3,S,Dct,0,[lp,qft,gh],[0,0,2],2],l_e=[3,S,vct,0,[xu],[()=>Igt],1],O3=[3,S,Oct,0,[ho,Ki,xn,Uge,pc,zge],[0,0,1,0,0,0]],d_e=[3,S,Tct,0,[Pdt,PD],[0,0]],p_e=[3,S,Mct,0,[sge,fc,Xpt,go],[0,0,0,0],2],Rh=[3,S,Fct,0,[tmt,odt],[0,2]],f_e=[3,S,put,0,[ac,ZN,kr,Jge,Tlt,pft],[0,()=>A3,0,0,1,0]],m_e=[3,S,dut,0,[Ult,Vlt],[0,0]],g_e=[3,S,Qct,0,[Qlt,sge,kr,sft,uD],[0,0,0,0,0]],h_e=[3,S,rut,0,[Sh,Ut,mc,TD,m3,i3,hh,yh,fh,Hn,xn],[0,0,0,0,1,0,0,0,()=>pp,1,1]],S_e=[3,S,Gct,0,[cc,jft],[0,2]],y_e=[3,S,sut,0,[xu],[()=>Lgt],1],E_e=[3,S,iut,0,[$r,pge],[0,0],2],__e=[3,S,jct,0,[as,d3,kge,wge],[64,64,64,0],1],R_e=[3,S,Vct,0,[Bft],[[()=>aRe,0]]],C_e=[3,S,Xct,0,[vD,pD,dc,cs,Me,u3,as,Bt],[1,1,0,0,0,64,64,1],3],b_e=[3,S,Zct,0,[lc],[0]],A_e=[3,S,eut,0,[lc],[0],1],x_e=[3,S,tut,0,[the],[2]],T_e=[3,S,Bct,0,[cp,Me,yi,ege,fc,mge,oD,Hn,fD,yge],[0,0,0,0,0,0,2,1,0,64]],v_e=[3,S,lut,0,[xu],[()=>Fgt],1],D_e=[3,S,cut,0,[$r,r3,E3],[0,0,0],3],I_e=[3,S,Wct,0,[PD,hmt],[1,0]],w_e=[3,S,Lct,0,[a3,pmt,OD,Xme],[0,0,0,1]],P_e=[3,S,Eut,0,[lp,Hmt],[0,64],1],O_e=[3,S,xut,0,[Me,Mr],[0,128],2],$_e=[3,S,Out,0,[pc,Mr],[0,128],2],k_e=[3,S,Dut,0,[yi,Pge],[0,64],2],M_e=[3,S,Iut,0,[Vpt],[()=>Rgt]],L_e=[3,S,Mut,0,[y3,Pge],[()=>$3,64],2],N_e=[3,S,Lut,0,[Dmt],[()=>Ggt]],F_e=[3,S,Tut,0,[hge,gge,bmt],[1,0,0]],B_e=[3,S,Rut,0,[lc,fdt,Mmt,uD,fge],[0,0,1,0,()=>$gt]],U_e=[3,S,$ut,0,[$D],[64],1],G_e=[3,S,gut,0,[xu],[()=>Hgt],1],q_e=[3,S,hut,0,[lp,_h],[0,0],2],H_e=[3,S,Wut,0,[Me,Mr],[0,64],2],j_e=[3,S,Xut,0,[pc,vmt],[0,64],2],z_e=[3,S,Fut,0,[ic,Qme,Bge,fmt,rmt,_lt],[0,0,0,0,()=>I_e,2],1],V_e=[3,S,qut,0,[SD,RD,mh,CD],[0,64,0,()=>Rh],1],W_e=[3,S,Hut,0,[],[]],K_e=[3,S,zut,0,[ic,ydt,cD,yi,sD],[0,2,0,0,1],2],Q_e=[3,S,Qut,0,[vu,is,S3,lc,go],[0,0,0,0,0],1],Y_e=[3,S,Yut,0,[vu,xn],[0,1]],J_e=[3,S,elt,0,[ac,cs,dc,hh,lD,is,as,yh,xD,dD,fh,AD,bD,mc],[0,0,0,0,0,0,64,0,1,1,()=>pp,1,1,0],5],X_e=[3,S,tlt,0,[Sh,Ut,is,cs,dc,as,hh,yh,xD,dD,fh,mc,TD,m3,i3,AD,bD,lD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>pp,0,0,1,0,1,1,0,1,1]],Z_e=[3,S,Uut,0,[$D],[64],1],Se="unit",Vmt=[1,S,Het,0,()=>b3],Wmt=[1,S,Net,0,()=>xhe],Kmt=[1,S,Get,0,()=>vhe],Qmt=[1,S,ket,0,()=>i_e],Ymt=[1,S,Wet,0,()=>Dhe],Jmt=[1,S,$et,0,()=>Ihe],Xmt=[1,S,xtt,0,()=>Lhe],Zmt=[1,S,Dtt,0,()=>Bhe],eRe=[1,S,knt,0,()=>tSe],egt=[1,S,Vnt,0,()=>kD],tgt=[1,S,crt,0,()=>MD],rgt=[1,S,Tnt,0,()=>ISe],ngt=[1,S,Gnt,0,()=>LD],ogt=[1,S,Wnt,0,()=>T3],sgt=[1,S,Xnt,0,()=>y0e],igt=[1,S,tot,0,()=>R0e],agt=[1,S,sot,0,()=>b0e],cgt=[1,S,vot,0,()=>uye],ugt=[1,S,fst,0,()=>dye],lgt=[1,S,hst,0,()=>lye],dgt=[1,S,Cst,0,()=>I3],pgt=[1,S,yst,0,()=>pye],fgt=[1,S,vst,0,()=>fye],mgt=[1,S,vit,0,()=>Nye],tRe=[1,S,Nst,0,()=>qye],ggt=[1,S,qst,0,()=>jye],hgt=[1,S,zst,0,()=>Hye],Sgt=[1,S,jst,0,()=>zye],ygt=[1,S,mit,0,()=>Gye],Egt=[1,S,git,0,()=>Vye],_gt=[1,S,wit,0,()=>Wye],Rgt=[1,S,Oit,0,()=>Jye],Cgt=[1,S,kit,0,()=>Yye],rRe=[1,S,Uit,0,()=>Xye],bgt=[1,S,Nit,0,()=>Zye],Agt=[1,S,Hit,0,()=>dEe],xgt=[1,S,ict,0,()=>_Ee],$3=[1,S,dct,0,()=>REe],Tgt=[1,S,gct,0,()=>r_e],vgt=[1,S,Sct,0,()=>n_e],nRe=[1,S,Ect,0,()=>o_e],Dgt=[1,S,_ct,0,()=>Pgt],Igt=[1,S,Ict,0,()=>u_e],wgt=[1,S,$ct,0,()=>O3],Pgt=[1,S,kct,0,()=>d_e],Ogt=[1,S,fut,0,()=>f_e],$gt=[1,S,Yct,0,()=>g_e],kgt=[1,S,nut,0,()=>h_e],Mgt=[1,S,qct,0,()=>S_e],Lgt=[1,S,aut,0,()=>E_e],Ngt=[1,S,Uct,0,()=>T_e],Fgt=[1,S,uut,0,()=>D_e],Bgt=[1,S,Nct,0,()=>w_e],Ugt=[1,S,_ut,0,()=>P_e],Ggt=[1,S,but,0,()=>F_e],qgt=[1,S,Cut,0,()=>B_e],Hgt=[1,S,Sut,0,()=>q_e],oRe=[4,S,qot,{[ehe]:1},[Age,jme],[()=>C0e,[()=>_3,0]]],sRe=[4,S,mst,0,[eft],[()=>iEe]],iRe=[4,S,bct,0,[tft],[()=>uEe]],aRe=[4,S,zct,{[ehe]:1},[imt,gmt,Vme,zme],[()=>Bye,()=>Uye,[()=>C3,0],[()=>R3,0]]],cRe=[9,S,Fet,0,()=>whe,()=>Se],uRe=[9,S,jet,0,()=>Phe,()=>Ohe],lRe=[9,S,Xet,0,()=>$he,()=>Se],dRe=[9,S,ntt,0,()=>khe,()=>Mhe],pRe=[9,S,Ket,0,()=>Uhe,()=>Ghe],fRe=[9,S,rtt,0,()=>qhe,()=>Hhe],mRe=[9,S,ctt,0,()=>jhe,()=>zhe],gRe=[9,S,utt,0,()=>Vhe,()=>Whe],hRe=[9,S,ptt,0,()=>Khe,()=>Se],SRe=[9,S,mtt,0,()=>Qhe,()=>Se],yRe=[9,S,htt,0,()=>Yhe,()=>Jhe],ERe=[9,S,Ett,0,()=>Xhe,()=>Zhe],_Re=[9,S,Ptt,0,()=>nSe,()=>Se],RRe=[9,S,Qtt,0,()=>oSe,()=>Se],CRe=[9,S,urt,0,()=>aSe,()=>Se],bRe=[9,S,qtt,0,()=>iSe,()=>Se],ARe=[9,S,Htt,0,()=>sSe,()=>Se],xRe=[9,S,nrt,0,()=>cSe,()=>Se],TRe=[9,S,lrt,0,()=>uSe,()=>Se],vRe=[9,S,_rt,0,()=>lSe,()=>dSe],DRe=[9,S,Ert,0,()=>pSe,()=>fSe],IRe=[9,S,Nrt,0,()=>gSe,()=>Se],wRe=[9,S,Brt,0,()=>hSe,()=>Se],PRe=[9,S,jrt,0,()=>SSe,()=>Se],ORe=[9,S,Qrt,0,()=>ySe,()=>Se],$Re=[9,S,ent,0,()=>ESe,()=>Se],kRe=[9,S,ant,0,()=>_Se,()=>RSe],MRe=[9,S,gnt,0,()=>CSe,()=>Se],LRe=[9,S,_nt,0,()=>bSe,()=>Se],NRe=[9,S,Nnt,0,()=>ASe,()=>xSe],FRe=[9,S,Mnt,0,()=>TSe,()=>Se],BRe=[9,S,bnt,0,()=>vSe,()=>Se],URe=[9,S,qnt,0,()=>DSe,()=>Se],GRe=[9,S,Mtt,0,()=>wSe,()=>PSe],qRe=[9,S,Ntt,0,()=>OSe,()=>$Se],HRe=[9,S,drt,0,()=>kSe,()=>MSe],jRe=[9,S,Ktt,0,()=>LSe,()=>NSe],zRe=[9,S,art,0,()=>FSe,()=>BSe],VRe=[9,S,prt,0,()=>USe,()=>GSe],WRe=[9,S,frt,0,()=>qSe,()=>HSe],KRe=[9,S,hrt,0,()=>jSe,()=>zSe],QRe=[9,S,Irt,0,()=>VSe,()=>WSe],YRe=[9,S,Drt,0,()=>KSe,()=>QSe],JRe=[9,S,xrt,0,()=>YSe,()=>JSe],XRe=[9,S,Hrt,0,()=>XSe,()=>ZSe],ZRe=[9,S,Krt,0,()=>e0e,()=>t0e],eCe=[9,S,Zrt,0,()=>r0e,()=>n0e],tCe=[9,S,ont,0,()=>o0e,()=>s0e],rCe=[9,S,int,0,()=>i0e,()=>a0e],nCe=[9,S,pnt,0,()=>c0e,()=>u0e],oCe=[9,S,Rnt,0,()=>l0e,()=>d0e],sCe=[9,S,Lnt,0,()=>p0e,()=>f0e],iCe=[9,S,Mrt,0,()=>m0e,()=>Se],aCe=[9,S,Pnt,0,()=>g0e,()=>h0e],cCe=[9,S,iot,0,()=>A0e,()=>x0e],uCe=[9,S,got,0,()=>T0e,()=>v0e],lCe=[9,S,cot,0,()=>O0e,()=>$0e],dCe=[9,S,uot,0,()=>w0e,()=>P0e],pCe=[9,S,lot,0,()=>D0e,()=>I0e],fCe=[9,S,_ot,0,()=>k0e,()=>M0e],mCe=[9,S,Tot,0,()=>L0e,()=>N0e],gCe=[9,S,Dot,0,()=>F0e,()=>B0e],hCe=[9,S,Pot,0,()=>U0e,()=>G0e],SCe=[9,S,kot,0,()=>q0e,()=>H0e],yCe=[9,S,Not,0,()=>j0e,()=>z0e],ECe=[9,S,Uot,{[Rge]:["stream-"]},()=>V0e,()=>W0e],_Ce=[9,S,jot,0,()=>K0e,()=>Q0e],RCe=[9,S,Wot,0,()=>Y0e,()=>J0e],CCe=[9,S,Yot,0,()=>X0e,()=>Z0e],bCe=[9,S,Zot,0,()=>rye,()=>nye],ACe=[9,S,est,0,()=>eye,()=>tye],xCe=[9,S,sst,0,()=>oye,()=>sye],TCe=[9,S,cst,0,()=>iye,()=>aye],vCe=[9,S,Ist,0,()=>mye,()=>gye],DCe=[9,S,Dst,0,()=>hye,()=>Sye],ICe=[9,S,Vst,0,()=>yye,()=>Eye],wCe=[9,S,Qst,0,()=>_ye,()=>Rye],PCe=[9,S,Xst,0,()=>Aye,()=>xye],OCe=[9,S,Zst,0,()=>Cye,()=>bye],$Ce=[9,S,dit,0,()=>Tye,()=>vye],kCe=[9,S,cit,0,()=>Dye,()=>Iye],MCe=[9,S,sit,0,()=>wye,()=>Pye],LCe=[9,S,yit,0,()=>Oye,()=>$ye],NCe=[9,S,Rit,0,()=>kye,()=>Mye],FCe=[9,S,rat,0,()=>CEe,()=>bEe],BCe=[9,S,sat,0,()=>AEe,()=>Se],UCe=[9,S,hat,0,()=>xEe,()=>TEe],GCe=[9,S,uat,0,()=>IEe,()=>wEe],qCe=[9,S,lat,0,()=>vEe,()=>DEe],HCe=[9,S,Cat,0,()=>PEe,()=>OEe],jCe=[9,S,cat,0,()=>kEe,()=>MEe],zCe=[9,S,gat,0,()=>$Ee,()=>Se],VCe=[9,S,Tat,0,()=>LEe,()=>NEe],WCe=[9,S,xat,0,()=>FEe,()=>BEe],KCe=[9,S,$at,0,()=>UEe,()=>GEe],QCe=[9,S,Lat,0,()=>qEe,()=>Se],YCe=[9,S,Fat,0,()=>HEe,()=>Se],JCe=[9,S,Gat,0,()=>jEe,()=>zEe],XCe=[9,S,zat,0,()=>VEe,()=>WEe],ZCe=[9,S,Qat,0,()=>KEe,()=>Se],ebe=[9,S,ect,0,()=>QEe,()=>YEe],tbe=[9,S,Xat,0,()=>JEe,()=>Se],rbe=[9,S,Yat,0,()=>XEe,()=>Se],nbe=[9,S,act,0,()=>ZEe,()=>Se],obe=[9,S,Hct,{[Rge]:["stream-"]},()=>__e,()=>R_e],sbe=[9,S,Kct,0,()=>C_e,()=>b_e],ibe=[9,S,out,0,()=>A_e,()=>x_e],abe=[9,S,Aut,0,()=>O_e,()=>Se],cbe=[9,S,Put,0,()=>$_e,()=>Se],ube=[9,S,vut,0,()=>k_e,()=>M_e],lbe=[9,S,kut,0,()=>L_e,()=>N_e],dbe=[9,S,Vut,0,()=>H_e,()=>Se],pbe=[9,S,Jut,0,()=>j_e,()=>Se],fbe=[9,S,Nut,0,()=>z_e,()=>Se],mbe=[9,S,Gut,0,()=>V_e,()=>W_e],gbe=[9,S,jut,0,()=>K_e,()=>Se],hbe=[9,S,Kut,0,()=>Q_e,()=>Y_e],Sbe=[9,S,Zut,0,()=>J_e,()=>X_e],jgt=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??uet,base64Encoder:t?.base64Encoder??cet,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Iet,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Eet,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new net}],logger:t?.logger??new AZe,protocol:t?.protocol??met,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:Ahe,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??get,urlParser:t?.urlParser??VZe,utf8Decoder:t?.utf8Decoder??aet,utf8Encoder:t?.utf8Encoder??iet}),zgt=t=>{xZe(process.version);let e=OZe(t),r=()=>e().then(TZe),n=jgt(t);cZe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Cu(oet,o),bodyLengthChecker:t?.bodyLengthChecker??det,credentialDefaultProvider:t?.credentialDefaultProvider??set,defaultUserAgentProvider:t?.defaultUserAgentProvider??uZe({serviceId:n.serviceId,clientVersion:Aet.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??jZe,maxAttempts:t?.maxAttempts??Cu(XZe,t),region:t?.region??Cu(MZe,{...LZe,...o}),requestHandler:fet.create(t?.requestHandler??r),retryMode:t?.retryMode??Cu({...JZe,default:async()=>(await r()).retryMode||YZe},t),streamCollector:t?.streamCollector??pet,useDualstackEndpoint:t?.useDualstackEndpoint??Cu(kZe,o),useFipsEndpoint:t?.useFipsEndpoint??Cu($Ze,o),userAgentAppId:t?.userAgentAppId??Cu(lZe,o)}},Vgt=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Wgt=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Kgt=(t,e)=>{let r=Object.assign(dZe(t),vZe(t),WZe(t),Vgt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,pZe(r),DZe(r),KZe(r),Wgt(r))},_t=class extends Gme{config;constructor(...[e]){let r=zgt(e||{});super(r),this.initConfig=r;let n=Ret(r),o=fZe(n),s=ZZe(o),i=NZe(s),a=mZe(i),c=qZe(a),u=zZe(c),f=_et(u),m=Kgt(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(tet(this.config)),this.middlewareStack.use(gZe(this.config)),this.middlewareStack.use(eet(this.config)),this.middlewareStack.use(QZe(this.config)),this.middlewareStack.use(hZe(this.config)),this.middlewareStack.use(SZe(this.config)),this.middlewareStack.use(yZe(this.config)),this.middlewareStack.use(EZe(this.config,{httpAuthSchemeParametersProvider:het,identityProviderConfigProvider:async y=>new _Ze({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(RZe(this.config))}destroy(){super.destroy()}},P=IZe(Cet,"Logs_20140328","CloudWatchLogsClient",HZe),O={},$=(t,e,r,n)=>[],lT=class extends P(O,$,"AssociateKmsKey",cRe){},dT=class extends P(O,$,"AssociateSourceToS3TableIntegration",uRe){},pT=class extends P(O,$,"CancelExportTask",lRe){},fT=class extends P(O,$,"CancelImportTask",dRe){},mT=class extends P(O,$,"CreateDelivery",pRe){},gT=class extends P(O,$,"CreateExportTask",fRe){},hT=class extends P(O,$,"CreateImportTask",mRe){},ST=class extends P(O,$,"CreateLogAnomalyDetector",gRe){},yT=class extends P(O,$,"CreateLogGroup",hRe){},ET=class extends P(O,$,"CreateLogStream",SRe){},_T=class extends P(O,$,"CreateLookupTable",yRe){},RT=class extends P(O,$,"CreateScheduledQuery",ERe){},CT=class extends P(O,$,"DeleteAccountPolicy",_Re){},bT=class extends P(O,$,"DeleteDataProtectionPolicy",RRe){},AT=class extends P(O,$,"DeleteDelivery",CRe){},xT=class extends P(O,$,"DeleteDeliveryDestination",bRe){},TT=class extends P(O,$,"DeleteDeliveryDestinationPolicy",ARe){},vT=class extends P(O,$,"DeleteDeliverySource",xRe){},DT=class extends P(O,$,"DeleteDestination",TRe){},IT=class extends P(O,$,"DeleteIndexPolicy",vRe){},wT=class extends P(O,$,"DeleteIntegration",DRe){},PT=class extends P(O,$,"DeleteLogAnomalyDetector",IRe){},OT=class extends P(O,$,"DeleteLogGroup",wRe){},$T=class extends P(O,$,"DeleteLogStream",PRe){},kT=class extends P(O,$,"DeleteLookupTable",ORe){},MT=class extends P(O,$,"DeleteMetricFilter",$Re){},LT=class extends P(O,$,"DeleteQueryDefinition",kRe){},NT=class extends P(O,$,"DeleteResourcePolicy",MRe){},FT=class extends P(O,$,"DeleteRetentionPolicy",LRe){},BT=class extends P(O,$,"DeleteScheduledQuery",NRe){},UT=class extends P(O,$,"DeleteSubscriptionFilter",FRe){},GT=class extends P(O,$,"DeleteSyslogConfiguration",BRe){},qT=class extends P(O,$,"DeleteTransformer",URe){},HT=class extends P(O,$,"DescribeAccountPolicies",GRe){},Qg=class extends P(O,$,"DescribeConfigurationTemplates",qRe){},Yg=class extends P(O,$,"DescribeDeliveries",HRe){},Jg=class extends P(O,$,"DescribeDeliveryDestinations",jRe){},Xg=class extends P(O,$,"DescribeDeliverySources",zRe){},Zg=class extends P(O,$,"DescribeDestinations",VRe){},jT=class extends P(O,$,"DescribeExportTasks",WRe){},zT=class extends P(O,$,"DescribeFieldIndexes",KRe){},VT=class extends P(O,$,"DescribeImportTaskBatches",QRe){},WT=class extends P(O,$,"DescribeImportTasks",YRe){},KT=class extends P(O,$,"DescribeIndexPolicies",JRe){},eh=class extends P(O,$,"DescribeLogGroups",XRe){},th=class extends P(O,$,"DescribeLogStreams",ZRe){},QT=class extends P(O,$,"DescribeLookupTables",eCe){},rh=class extends P(O,$,"DescribeMetricFilters",tCe){},YT=class extends P(O,$,"DescribeQueries",rCe){},JT=class extends P(O,$,"DescribeQueryDefinitions",nCe){},XT=class extends P(O,$,"DescribeResourcePolicies",oCe){},nh=class extends P(O,$,"DescribeSubscriptionFilters",sCe){},ZT=class extends P(O,$,"DisassociateKmsKey",iCe){},ev=class extends P(O,$,"DisassociateSourceFromS3TableIntegration",aCe){},oh=class extends P(O,$,"FilterLogEvents",cCe){},tv=class extends P(O,$,"GetDataProtectionPolicy",uCe){},rv=class extends P(O,$,"GetDelivery",lCe){},nv=class extends P(O,$,"GetDeliveryDestination",dCe){},ov=class extends P(O,$,"GetDeliveryDestinationPolicy",pCe){},sv=class extends P(O,$,"GetDeliverySource",fCe){},iv=class extends P(O,$,"GetIntegration",mCe){},av=class extends P(O,$,"GetLogAnomalyDetector",gCe){},sh=class extends P(O,$,"GetLogEvents",hCe){},cv=class extends P(O,$,"GetLogFields",SCe){},uv=class extends P(O,$,"GetLogGroupFields",yCe){},lv=class extends P(O,$,"GetLogObject",ECe){},dv=class extends P(O,$,"GetLogRecord",_Ce){},pv=class extends P(O,$,"GetLookupTable",RCe){},fv=class extends P(O,$,"GetQueryResults",CCe){},mv=class extends P(O,$,"GetScheduledQuery",bCe){},ih=class extends P(O,$,"GetScheduledQueryHistory",ACe){},gv=class extends P(O,$,"GetStorageTierPolicy",xCe){},hv=class extends P(O,$,"GetTransformer",TCe){},ah=class extends P(O,$,"ListAggregateLogGroupSummaries",vCe){},ch=class extends P(O,$,"ListAnomalies",DCe){},Sv=class extends P(O,$,"ListIntegrations",ICe){},uh=class extends P(O,$,"ListLogAnomalyDetectors",wCe){},yv=class extends P(O,$,"ListLogGroups",PCe){},lh=class extends P(O,$,"ListLogGroupsForQuery",OCe){},dh=class extends P(O,$,"ListScheduledQueries",$Ce){},ph=class extends P(O,$,"ListSourcesForS3TableIntegration",kCe){},Ev=class extends P(O,$,"ListSyslogConfigurations",MCe){},_v=class extends P(O,$,"ListTagsForResource",LCe){},Rv=class extends P(O,$,"ListTagsLogGroup",NCe){},Cv=class extends P(O,$,"PutAccountPolicy",FCe){},bv=class extends P(O,$,"PutBearerTokenAuthentication",BCe){},Av=class extends P(O,$,"PutDataProtectionPolicy",UCe){},xv=class extends P(O,$,"PutDeliveryDestination",GCe){},Tv=class extends P(O,$,"PutDeliveryDestinationPolicy",qCe){},vv=class extends P(O,$,"PutDeliverySource",HCe){},Dv=class extends P(O,$,"PutDestination",jCe){},Iv=class extends P(O,$,"PutDestinationPolicy",zCe){},wv=class extends P(O,$,"PutIndexPolicy",VCe){},Pv=class extends P(O,$,"PutIntegration",WCe){},Ov=class extends P(O,$,"PutLogEvents",KCe){},$v=class extends P(O,$,"PutLogGroupDeletionProtection",QCe){},kv=class extends P(O,$,"PutMetricFilter",YCe){},Mv=class extends P(O,$,"PutQueryDefinition",JCe){},Lv=class extends P(O,$,"PutResourcePolicy",XCe){},Nv=class extends P(O,$,"PutRetentionPolicy",ZCe){},Fv=class extends P(O,$,"PutStorageTierPolicy",ebe){},Bv=class extends P(O,$,"PutSubscriptionFilter",tbe){},Uv=class extends P(O,$,"PutSyslogConfiguration",rbe){},Gv=class extends P(O,$,"PutTransformer",nbe){},qv=class extends P(O,$,"StartLiveTail",obe){},Hv=class extends P(O,$,"StartQuery",sbe){},jv=class extends P(O,$,"StopQuery",ibe){},zv=class extends P(O,$,"TagLogGroup",abe){},Vv=class extends P(O,$,"TagResource",cbe){},Wv=class extends P(O,$,"TestMetricFilter",ube){},Kv=class extends P(O,$,"TestTransformer",lbe){},Qv=class extends P(O,$,"UntagLogGroup",dbe){},Yv=class extends P(O,$,"UntagResource",pbe){},Jv=class extends P(O,$,"UpdateAnomaly",fbe){},Xv=class extends P(O,$,"UpdateDeliveryConfiguration",mbe){},Zv=class extends P(O,$,"UpdateLogAnomalyDetector",gbe){},eD=class extends P(O,$,"UpdateLookupTable",hbe){},tD=class extends P(O,$,"UpdateScheduledQuery",Sbe){},ybe=Rr(_t,Qg,"nextToken","nextToken","limit"),Ebe=Rr(_t,Yg,"nextToken","nextToken","limit"),_be=Rr(_t,Jg,"nextToken","nextToken","limit"),Rbe=Rr(_t,Xg,"nextToken","nextToken","limit"),Cbe=Rr(_t,Zg,"nextToken","nextToken","limit"),bbe=Rr(_t,eh,"nextToken","nextToken","limit"),Abe=Rr(_t,th,"nextToken","nextToken","limit"),xbe=Rr(_t,rh,"nextToken","nextToken","limit"),Tbe=Rr(_t,nh,"nextToken","nextToken","limit"),vbe=Rr(_t,oh,"nextToken","nextToken","limit"),Dbe=Rr(_t,sh,"nextToken","nextForwardToken","limit"),Ibe=Rr(_t,ih,"nextToken","nextToken","maxResults"),wbe=Rr(_t,ah,"nextToken","nextToken","limit"),Pbe=Rr(_t,ch,"nextToken","nextToken","limit"),Obe=Rr(_t,uh,"nextToken","nextToken","limit"),$be=Rr(_t,lh,"nextToken","nextToken","maxResults"),kbe=Rr(_t,dh,"nextToken","nextToken","maxResults"),Mbe=Rr(_t,ph,"nextToken","nextToken","maxResults"),Qgt={AssociateKmsKeyCommand:lT,AssociateSourceToS3TableIntegrationCommand:dT,CancelExportTaskCommand:pT,CancelImportTaskCommand:fT,CreateDeliveryCommand:mT,CreateExportTaskCommand:gT,CreateImportTaskCommand:hT,CreateLogAnomalyDetectorCommand:ST,CreateLogGroupCommand:yT,CreateLogStreamCommand:ET,CreateLookupTableCommand:_T,CreateScheduledQueryCommand:RT,DeleteAccountPolicyCommand:CT,DeleteDataProtectionPolicyCommand:bT,DeleteDeliveryCommand:AT,DeleteDeliveryDestinationCommand:xT,DeleteDeliveryDestinationPolicyCommand:TT,DeleteDeliverySourceCommand:vT,DeleteDestinationCommand:DT,DeleteIndexPolicyCommand:IT,DeleteIntegrationCommand:wT,DeleteLogAnomalyDetectorCommand:PT,DeleteLogGroupCommand:OT,DeleteLogStreamCommand:$T,DeleteLookupTableCommand:kT,DeleteMetricFilterCommand:MT,DeleteQueryDefinitionCommand:LT,DeleteResourcePolicyCommand:NT,DeleteRetentionPolicyCommand:FT,DeleteScheduledQueryCommand:BT,DeleteSubscriptionFilterCommand:UT,DeleteSyslogConfigurationCommand:GT,DeleteTransformerCommand:qT,DescribeAccountPoliciesCommand:HT,DescribeConfigurationTemplatesCommand:Qg,DescribeDeliveriesCommand:Yg,DescribeDeliveryDestinationsCommand:Jg,DescribeDeliverySourcesCommand:Xg,DescribeDestinationsCommand:Zg,DescribeExportTasksCommand:jT,DescribeFieldIndexesCommand:zT,DescribeImportTaskBatchesCommand:VT,DescribeImportTasksCommand:WT,DescribeIndexPoliciesCommand:KT,DescribeLogGroupsCommand:eh,DescribeLogStreamsCommand:th,DescribeLookupTablesCommand:QT,DescribeMetricFiltersCommand:rh,DescribeQueriesCommand:YT,DescribeQueryDefinitionsCommand:JT,DescribeResourcePoliciesCommand:XT,DescribeSubscriptionFiltersCommand:nh,DisassociateKmsKeyCommand:ZT,DisassociateSourceFromS3TableIntegrationCommand:ev,FilterLogEventsCommand:oh,GetDataProtectionPolicyCommand:tv,GetDeliveryCommand:rv,GetDeliveryDestinationCommand:nv,GetDeliveryDestinationPolicyCommand:ov,GetDeliverySourceCommand:sv,GetIntegrationCommand:iv,GetLogAnomalyDetectorCommand:av,GetLogEventsCommand:sh,GetLogFieldsCommand:cv,GetLogGroupFieldsCommand:uv,GetLogObjectCommand:lv,GetLogRecordCommand:dv,GetLookupTableCommand:pv,GetQueryResultsCommand:fv,GetScheduledQueryCommand:mv,GetScheduledQueryHistoryCommand:ih,GetStorageTierPolicyCommand:gv,GetTransformerCommand:hv,ListAggregateLogGroupSummariesCommand:ah,ListAnomaliesCommand:ch,ListIntegrationsCommand:Sv,ListLogAnomalyDetectorsCommand:uh,ListLogGroupsCommand:yv,ListLogGroupsForQueryCommand:lh,ListScheduledQueriesCommand:dh,ListSourcesForS3TableIntegrationCommand:ph,ListSyslogConfigurationsCommand:Ev,ListTagsForResourceCommand:_v,ListTagsLogGroupCommand:Rv,PutAccountPolicyCommand:Cv,PutBearerTokenAuthenticationCommand:bv,PutDataProtectionPolicyCommand:Av,PutDeliveryDestinationCommand:xv,PutDeliveryDestinationPolicyCommand:Tv,PutDeliverySourceCommand:vv,PutDestinationCommand:Dv,PutDestinationPolicyCommand:Iv,PutIndexPolicyCommand:wv,PutIntegrationCommand:Pv,PutLogEventsCommand:Ov,PutLogGroupDeletionProtectionCommand:$v,PutMetricFilterCommand:kv,PutQueryDefinitionCommand:Mv,PutResourcePolicyCommand:Lv,PutRetentionPolicyCommand:Nv,PutStorageTierPolicyCommand:Fv,PutSubscriptionFilterCommand:Bv,PutSyslogConfigurationCommand:Uv,PutTransformerCommand:Gv,StartLiveTailCommand:qv,StartQueryCommand:Hv,StopQueryCommand:jv,TagLogGroupCommand:zv,TagResourceCommand:Vv,TestMetricFilterCommand:Wv,TestTransformerCommand:Kv,UntagLogGroupCommand:Qv,UntagResourceCommand:Yv,UpdateAnomalyCommand:Jv,UpdateDeliveryConfigurationCommand:Xv,UpdateLogAnomalyDetectorCommand:Zv,UpdateLookupTableCommand:eD,UpdateScheduledQueryCommand:tD},Ygt={paginateDescribeConfigurationTemplates:ybe,paginateDescribeDeliveries:Ebe,paginateDescribeDeliveryDestinations:_be,paginateDescribeDeliverySources:Rbe,paginateDescribeDestinations:Cbe,paginateDescribeLogGroups:bbe,paginateDescribeLogStreams:Abe,paginateDescribeMetricFilters:xbe,paginateDescribeSubscriptionFilters:Tbe,paginateFilterLogEvents:vbe,paginateGetLogEvents:Dbe,paginateGetScheduledQueryHistory:Ibe,paginateListAggregateLogGroupSummaries:wbe,paginateListAnomalies:Pbe,paginateListLogAnomalyDetectors:Obe,paginateListLogGroupsForQuery:$be,paginateListScheduledQueries:kbe,paginateListSourcesForS3TableIntegration:Mbe},rD=class extends _t{};wZe(Qgt,rD,{paginators:Ygt});var Jgt={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},Xgt={ALL:"ALL"},Zgt={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},eht={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},tht={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},rht={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},nht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},oht={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},sht={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},iht={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},aht={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},cht={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},uht={DISABLED:"DISABLED",ENABLED:"ENABLED"},lht={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},dht={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},pht={RESOURCE_DELETED:"RESOURCE_DELETED"},fht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},mht={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},ght={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},hht={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},Sht={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},yht={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},Eht={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},_ht={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},Rht={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},Cht={ByLogStream:"ByLogStream",Random:"Random"},bht={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},Aht={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},xht={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},Tht={FIRST:"first",LAST:"last"},vht={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},Dht={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},Iht={OPENSEARCH:"OPENSEARCH"},wht={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},Pht={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},Oht={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},$ht={V1_1:"V1.1",V1_5:"V1.5"},kht={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},Mht={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},Lht={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},Nht={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},Fht={VPCE:"VPCE"},Bht={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},Uht={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=Hx;p.AccessDeniedException$=ihe;p.AccountPolicy$=b3;p.ActionStatus=Zgt;p.AddKeyEntry$=xhe;p.AddKeys$=The;p.AggregateLogGroupSummary$=vhe;p.Anomaly$=Dhe;p.AnomalyDetector$=Ihe;p.AnomalyDetectorStatus=tht;p.AssociateKmsKey$=cRe;p.AssociateKmsKeyCommand=lT;p.AssociateKmsKeyRequest$=whe;p.AssociateSourceToS3TableIntegration$=uRe;p.AssociateSourceToS3TableIntegrationCommand=dT;p.AssociateSourceToS3TableIntegrationRequest$=Phe;p.AssociateSourceToS3TableIntegrationResponse$=Ohe;p.CSV$=eSe;p.CancelExportTask$=lRe;p.CancelExportTaskCommand=pT;p.CancelExportTaskRequest$=$he;p.CancelImportTask$=dRe;p.CancelImportTaskCommand=fT;p.CancelImportTaskRequest$=khe;p.CancelImportTaskResponse$=Mhe;p.CloudWatchLogs=rD;p.CloudWatchLogsClient=_t;p.CloudWatchLogsServiceException=nt;p.CloudWatchLogsServiceException$=she;p.ConfigurationTemplate$=Lhe;p.ConfigurationTemplateDeliveryConfigValues$=Nhe;p.ConflictException=Xx;p.ConflictException$=ahe;p.CopyValue$=Fhe;p.CopyValueEntry$=Bhe;p.CreateDelivery$=pRe;p.CreateDeliveryCommand=mT;p.CreateDeliveryRequest$=Uhe;p.CreateDeliveryResponse$=Ghe;p.CreateExportTask$=fRe;p.CreateExportTaskCommand=gT;p.CreateExportTaskRequest$=qhe;p.CreateExportTaskResponse$=Hhe;p.CreateImportTask$=mRe;p.CreateImportTaskCommand=hT;p.CreateImportTaskRequest$=jhe;p.CreateImportTaskResponse$=zhe;p.CreateLogAnomalyDetector$=gRe;p.CreateLogAnomalyDetectorCommand=ST;p.CreateLogAnomalyDetectorRequest$=Vhe;p.CreateLogAnomalyDetectorResponse$=Whe;p.CreateLogGroup$=hRe;p.CreateLogGroupCommand=yT;p.CreateLogGroupRequest$=Khe;p.CreateLogStream$=SRe;p.CreateLogStreamCommand=ET;p.CreateLogStreamRequest$=Qhe;p.CreateLookupTable$=yRe;p.CreateLookupTableCommand=_T;p.CreateLookupTableRequest$=Yhe;p.CreateLookupTableResponse$=Jhe;p.CreateScheduledQuery$=ERe;p.CreateScheduledQueryCommand=RT;p.CreateScheduledQueryRequest$=Xhe;p.CreateScheduledQueryResponse$=Zhe;p.DataAlreadyAcceptedException=rT;p.DataAlreadyAcceptedException$=che;p.DataProtectionStatus=lht;p.DataSource$=A3;p.DataSourceFilter$=tSe;p.DateTimeConverter$=rSe;p.DeleteAccountPolicy$=_Re;p.DeleteAccountPolicyCommand=CT;p.DeleteAccountPolicyRequest$=nSe;p.DeleteDataProtectionPolicy$=RRe;p.DeleteDataProtectionPolicyCommand=bT;p.DeleteDataProtectionPolicyRequest$=oSe;p.DeleteDelivery$=CRe;p.DeleteDeliveryCommand=AT;p.DeleteDeliveryDestination$=bRe;p.DeleteDeliveryDestinationCommand=xT;p.DeleteDeliveryDestinationPolicy$=ARe;p.DeleteDeliveryDestinationPolicyCommand=TT;p.DeleteDeliveryDestinationPolicyRequest$=sSe;p.DeleteDeliveryDestinationRequest$=iSe;p.DeleteDeliveryRequest$=aSe;p.DeleteDeliverySource$=xRe;p.DeleteDeliverySourceCommand=vT;p.DeleteDeliverySourceRequest$=cSe;p.DeleteDestination$=TRe;p.DeleteDestinationCommand=DT;p.DeleteDestinationRequest$=uSe;p.DeleteIndexPolicy$=vRe;p.DeleteIndexPolicyCommand=IT;p.DeleteIndexPolicyRequest$=lSe;p.DeleteIndexPolicyResponse$=dSe;p.DeleteIntegration$=DRe;p.DeleteIntegrationCommand=wT;p.DeleteIntegrationRequest$=pSe;p.DeleteIntegrationResponse$=fSe;p.DeleteKeys$=mSe;p.DeleteLogAnomalyDetector$=IRe;p.DeleteLogAnomalyDetectorCommand=PT;p.DeleteLogAnomalyDetectorRequest$=gSe;p.DeleteLogGroup$=wRe;p.DeleteLogGroupCommand=OT;p.DeleteLogGroupRequest$=hSe;p.DeleteLogStream$=PRe;p.DeleteLogStreamCommand=$T;p.DeleteLogStreamRequest$=SSe;p.DeleteLookupTable$=ORe;p.DeleteLookupTableCommand=kT;p.DeleteLookupTableRequest$=ySe;p.DeleteMetricFilter$=$Re;p.DeleteMetricFilterCommand=MT;p.DeleteMetricFilterRequest$=ESe;p.DeleteQueryDefinition$=kRe;p.DeleteQueryDefinitionCommand=LT;p.DeleteQueryDefinitionRequest$=_Se;p.DeleteQueryDefinitionResponse$=RSe;p.DeleteResourcePolicy$=MRe;p.DeleteResourcePolicyCommand=NT;p.DeleteResourcePolicyRequest$=CSe;p.DeleteRetentionPolicy$=LRe;p.DeleteRetentionPolicyCommand=FT;p.DeleteRetentionPolicyRequest$=bSe;p.DeleteScheduledQuery$=NRe;p.DeleteScheduledQueryCommand=BT;p.DeleteScheduledQueryRequest$=ASe;p.DeleteScheduledQueryResponse$=xSe;p.DeleteSubscriptionFilter$=FRe;p.DeleteSubscriptionFilterCommand=UT;p.DeleteSubscriptionFilterRequest$=TSe;p.DeleteSyslogConfiguration$=BRe;p.DeleteSyslogConfigurationCommand=GT;p.DeleteSyslogConfigurationRequest$=vSe;p.DeleteTransformer$=URe;p.DeleteTransformerCommand=qT;p.DeleteTransformerRequest$=DSe;p.Delivery$=kD;p.DeliveryDestination$=MD;p.DeliveryDestinationConfiguration$=x3;p.DeliveryDestinationType=sht;p.DeliverySource$=LD;p.DeliverySourceConfigurationSchema$=ISe;p.DeliverySourceConfigurationSchemaValueType=iht;p.DeliverySourceStatus=dht;p.DeliverySourceStatusReason=pht;p.DescribeAccountPolicies$=GRe;p.DescribeAccountPoliciesCommand=HT;p.DescribeAccountPoliciesRequest$=wSe;p.DescribeAccountPoliciesResponse$=PSe;p.DescribeConfigurationTemplates$=qRe;p.DescribeConfigurationTemplatesCommand=Qg;p.DescribeConfigurationTemplatesRequest$=OSe;p.DescribeConfigurationTemplatesResponse$=$Se;p.DescribeDeliveries$=HRe;p.DescribeDeliveriesCommand=Yg;p.DescribeDeliveriesRequest$=kSe;p.DescribeDeliveriesResponse$=MSe;p.DescribeDeliveryDestinations$=jRe;p.DescribeDeliveryDestinationsCommand=Jg;p.DescribeDeliveryDestinationsRequest$=LSe;p.DescribeDeliveryDestinationsResponse$=NSe;p.DescribeDeliverySources$=zRe;p.DescribeDeliverySourcesCommand=Xg;p.DescribeDeliverySourcesRequest$=FSe;p.DescribeDeliverySourcesResponse$=BSe;p.DescribeDestinations$=VRe;p.DescribeDestinationsCommand=Zg;p.DescribeDestinationsRequest$=USe;p.DescribeDestinationsResponse$=GSe;p.DescribeExportTasks$=WRe;p.DescribeExportTasksCommand=jT;p.DescribeExportTasksRequest$=qSe;p.DescribeExportTasksResponse$=HSe;p.DescribeFieldIndexes$=KRe;p.DescribeFieldIndexesCommand=zT;p.DescribeFieldIndexesRequest$=jSe;p.DescribeFieldIndexesResponse$=zSe;p.DescribeImportTaskBatches$=QRe;p.DescribeImportTaskBatchesCommand=VT;p.DescribeImportTaskBatchesRequest$=VSe;p.DescribeImportTaskBatchesResponse$=WSe;p.DescribeImportTasks$=YRe;p.DescribeImportTasksCommand=WT;p.DescribeImportTasksRequest$=KSe;p.DescribeImportTasksResponse$=QSe;p.DescribeIndexPolicies$=JRe;p.DescribeIndexPoliciesCommand=KT;p.DescribeIndexPoliciesRequest$=YSe;p.DescribeIndexPoliciesResponse$=JSe;p.DescribeLogGroups$=XRe;p.DescribeLogGroupsCommand=eh;p.DescribeLogGroupsRequest$=XSe;p.DescribeLogGroupsResponse$=ZSe;p.DescribeLogStreams$=ZRe;p.DescribeLogStreamsCommand=th;p.DescribeLogStreamsRequest$=e0e;p.DescribeLogStreamsResponse$=t0e;p.DescribeLookupTables$=eCe;p.DescribeLookupTablesCommand=QT;p.DescribeLookupTablesRequest$=r0e;p.DescribeLookupTablesResponse$=n0e;p.DescribeMetricFilters$=tCe;p.DescribeMetricFiltersCommand=rh;p.DescribeMetricFiltersRequest$=o0e;p.DescribeMetricFiltersResponse$=s0e;p.DescribeQueries$=rCe;p.DescribeQueriesCommand=YT;p.DescribeQueriesRequest$=i0e;p.DescribeQueriesResponse$=a0e;p.DescribeQueryDefinitions$=nCe;p.DescribeQueryDefinitionsCommand=JT;p.DescribeQueryDefinitionsRequest$=c0e;p.DescribeQueryDefinitionsResponse$=u0e;p.DescribeResourcePolicies$=oCe;p.DescribeResourcePoliciesCommand=XT;p.DescribeResourcePoliciesRequest$=l0e;p.DescribeResourcePoliciesResponse$=d0e;p.DescribeSubscriptionFilters$=sCe;p.DescribeSubscriptionFiltersCommand=nh;p.DescribeSubscriptionFiltersRequest$=p0e;p.DescribeSubscriptionFiltersResponse$=f0e;p.Destination$=T3;p.DestinationConfiguration$=pp;p.DisassociateKmsKey$=iCe;p.DisassociateKmsKeyCommand=ZT;p.DisassociateKmsKeyRequest$=m0e;p.DisassociateSourceFromS3TableIntegration$=aCe;p.DisassociateSourceFromS3TableIntegrationCommand=ev;p.DisassociateSourceFromS3TableIntegrationRequest$=g0e;p.DisassociateSourceFromS3TableIntegrationResponse$=h0e;p.Distribution=Cht;p.Entity$=S0e;p.EntityRejectionErrorType=bht;p.EvaluationFrequency=rht;p.EventSource=Aht;p.ExecutionStatus=xht;p.ExportTask$=y0e;p.ExportTaskExecutionInfo$=E0e;p.ExportTaskStatus$=_0e;p.ExportTaskStatusCode=fht;p.FieldIndex$=R0e;p.FieldsData$=C0e;p.FilterLogEvents$=cCe;p.FilterLogEventsCommand=oh;p.FilterLogEventsRequest$=A0e;p.FilterLogEventsResponse$=x0e;p.FilteredLogEvent$=b0e;p.FlattenedElement=Tht;p.GetDataProtectionPolicy$=uCe;p.GetDataProtectionPolicyCommand=tv;p.GetDataProtectionPolicyRequest$=T0e;p.GetDataProtectionPolicyResponse$=v0e;p.GetDelivery$=lCe;p.GetDeliveryCommand=rv;p.GetDeliveryDestination$=dCe;p.GetDeliveryDestinationCommand=nv;p.GetDeliveryDestinationPolicy$=pCe;p.GetDeliveryDestinationPolicyCommand=ov;p.GetDeliveryDestinationPolicyRequest$=D0e;p.GetDeliveryDestinationPolicyResponse$=I0e;p.GetDeliveryDestinationRequest$=w0e;p.GetDeliveryDestinationResponse$=P0e;p.GetDeliveryRequest$=O0e;p.GetDeliveryResponse$=$0e;p.GetDeliverySource$=fCe;p.GetDeliverySourceCommand=sv;p.GetDeliverySourceRequest$=k0e;p.GetDeliverySourceResponse$=M0e;p.GetIntegration$=mCe;p.GetIntegrationCommand=iv;p.GetIntegrationRequest$=L0e;p.GetIntegrationResponse$=N0e;p.GetLogAnomalyDetector$=gCe;p.GetLogAnomalyDetectorCommand=av;p.GetLogAnomalyDetectorRequest$=F0e;p.GetLogAnomalyDetectorResponse$=B0e;p.GetLogEvents$=hCe;p.GetLogEventsCommand=sh;p.GetLogEventsRequest$=U0e;p.GetLogEventsResponse$=G0e;p.GetLogFields$=SCe;p.GetLogFieldsCommand=cv;p.GetLogFieldsRequest$=q0e;p.GetLogFieldsResponse$=H0e;p.GetLogGroupFields$=yCe;p.GetLogGroupFieldsCommand=uv;p.GetLogGroupFieldsRequest$=j0e;p.GetLogGroupFieldsResponse$=z0e;p.GetLogObject$=ECe;p.GetLogObjectCommand=lv;p.GetLogObjectRequest$=V0e;p.GetLogObjectResponse$=W0e;p.GetLogObjectResponseStream$=oRe;p.GetLogRecord$=_Ce;p.GetLogRecordCommand=dv;p.GetLogRecordRequest$=K0e;p.GetLogRecordResponse$=Q0e;p.GetLookupTable$=RCe;p.GetLookupTableCommand=pv;p.GetLookupTableRequest$=Y0e;p.GetLookupTableResponse$=J0e;p.GetQueryResults$=CCe;p.GetQueryResultsCommand=fv;p.GetQueryResultsRequest$=X0e;p.GetQueryResultsResponse$=Z0e;p.GetScheduledQuery$=bCe;p.GetScheduledQueryCommand=mv;p.GetScheduledQueryHistory$=ACe;p.GetScheduledQueryHistoryCommand=ih;p.GetScheduledQueryHistoryRequest$=eye;p.GetScheduledQueryHistoryResponse$=tye;p.GetScheduledQueryRequest$=rye;p.GetScheduledQueryResponse$=nye;p.GetStorageTierPolicy$=xCe;p.GetStorageTierPolicyCommand=gv;p.GetStorageTierPolicyRequest$=oye;p.GetStorageTierPolicyResponse$=sye;p.GetTransformer$=TCe;p.GetTransformerCommand=hv;p.GetTransformerRequest$=iye;p.GetTransformerResponse$=aye;p.Grok$=cye;p.GroupingIdentifier$=uye;p.Import$=lye;p.ImportBatch$=dye;p.ImportFilter$=v3;p.ImportStatistics$=D3;p.ImportStatus=nht;p.IndexCategory=mht;p.IndexPolicy$=I3;p.IndexSource=hht;p.IndexType=ght;p.InheritedProperty=Sht;p.InputLogEvent$=pye;p.IntegrationDetails$=sRe;p.IntegrationStatus=Dht;p.IntegrationSummary$=fye;p.IntegrationType=Iht;p.InternalServerException=Kx;p.InternalServerException$=uhe;p.InternalStreamingException=nT;p.InternalStreamingException$=_3;p.InvalidOperationException=Jx;p.InvalidOperationException$=lhe;p.InvalidParameterException=jx;p.InvalidParameterException$=dhe;p.InvalidSequenceTokenException=oT;p.InvalidSequenceTokenException$=phe;p.LimitExceededException=eT;p.LimitExceededException$=fhe;p.ListAggregateLogGroupSummaries$=vCe;p.ListAggregateLogGroupSummariesCommand=ah;p.ListAggregateLogGroupSummariesGroupBy=Mht;p.ListAggregateLogGroupSummariesRequest$=mye;p.ListAggregateLogGroupSummariesResponse$=gye;p.ListAnomalies$=DCe;p.ListAnomaliesCommand=ch;p.ListAnomaliesRequest$=hye;p.ListAnomaliesResponse$=Sye;p.ListIntegrations$=ICe;p.ListIntegrationsCommand=Sv;p.ListIntegrationsRequest$=yye;p.ListIntegrationsResponse$=Eye;p.ListLogAnomalyDetectors$=wCe;p.ListLogAnomalyDetectorsCommand=uh;p.ListLogAnomalyDetectorsRequest$=_ye;p.ListLogAnomalyDetectorsResponse$=Rye;p.ListLogGroups$=PCe;p.ListLogGroupsCommand=yv;p.ListLogGroupsForQuery$=OCe;p.ListLogGroupsForQueryCommand=lh;p.ListLogGroupsForQueryRequest$=Cye;p.ListLogGroupsForQueryResponse$=bye;p.ListLogGroupsRequest$=Aye;p.ListLogGroupsResponse$=xye;p.ListScheduledQueries$=$Ce;p.ListScheduledQueriesCommand=dh;p.ListScheduledQueriesRequest$=Tye;p.ListScheduledQueriesResponse$=vye;p.ListSourcesForS3TableIntegration$=kCe;p.ListSourcesForS3TableIntegrationCommand=ph;p.ListSourcesForS3TableIntegrationRequest$=Dye;p.ListSourcesForS3TableIntegrationResponse$=Iye;p.ListSyslogConfigurations$=MCe;p.ListSyslogConfigurationsCommand=Ev;p.ListSyslogConfigurationsRequest$=wye;p.ListSyslogConfigurationsResponse$=Pye;p.ListTagsForResource$=LCe;p.ListTagsForResourceCommand=_v;p.ListTagsForResourceRequest$=Oye;p.ListTagsForResourceResponse$=$ye;p.ListTagsLogGroup$=NCe;p.ListTagsLogGroupCommand=Rv;p.ListTagsLogGroupRequest$=kye;p.ListTagsLogGroupResponse$=Mye;p.ListToMap$=Lye;p.LiveTailSessionLogEvent$=Nye;p.LiveTailSessionMetadata$=Fye;p.LiveTailSessionStart$=Bye;p.LiveTailSessionUpdate$=Uye;p.LogEvent$=Gye;p.LogFieldType$=w3;p.LogFieldsListItem$=qye;p.LogGroup$=Hye;p.LogGroupClass=aht;p.LogGroupField$=jye;p.LogGroupSummary$=zye;p.LogStream$=Vye;p.LookupTable$=Wye;p.LookupTableConfiguration$=Kye;p.LowerCaseString$=Qye;p.MalformedQueryException=cT;p.MalformedQueryException$=mhe;p.MetricFilter$=Yye;p.MetricFilterMatchRecord$=Jye;p.MetricTransformation$=Xye;p.MoveKeyEntry$=Zye;p.MoveKeys$=eEe;p.OCSFVersion=$ht;p.OpenSearchApplication$=tEe;p.OpenSearchCollection$=rEe;p.OpenSearchDataAccessPolicy$=nEe;p.OpenSearchDataSource$=oEe;p.OpenSearchEncryptionPolicy$=sEe;p.OpenSearchIntegrationDetails$=iEe;p.OpenSearchLifecyclePolicy$=aEe;p.OpenSearchNetworkPolicy$=cEe;p.OpenSearchResourceConfig$=uEe;p.OpenSearchResourceStatus$=Qi;p.OpenSearchResourceStatusType=vht;p.OpenSearchWorkspace$=lEe;p.OperationAbortedException=zx;p.OperationAbortedException$=ghe;p.OrderBy=yht;p.OutputFormat=oht;p.OutputLogEvent$=dEe;p.ParseCloudfront$=pEe;p.ParseJSON$=fEe;p.ParseKeyValue$=mEe;p.ParsePostgres$=gEe;p.ParseRoute53$=hEe;p.ParseToOCSF$=SEe;p.ParseVPC$=yEe;p.ParseWAF$=EEe;p.PatternToken$=_Ee;p.Policy$=P3;p.PolicyScope=Rht;p.PolicyType=Jgt;p.Processor$=REe;p.PutAccountPolicy$=FCe;p.PutAccountPolicyCommand=Cv;p.PutAccountPolicyRequest$=CEe;p.PutAccountPolicyResponse$=bEe;p.PutBearerTokenAuthentication$=BCe;p.PutBearerTokenAuthenticationCommand=bv;p.PutBearerTokenAuthenticationRequest$=AEe;p.PutDataProtectionPolicy$=UCe;p.PutDataProtectionPolicyCommand=Av;p.PutDataProtectionPolicyRequest$=xEe;p.PutDataProtectionPolicyResponse$=TEe;p.PutDeliveryDestination$=GCe;p.PutDeliveryDestinationCommand=xv;p.PutDeliveryDestinationPolicy$=qCe;p.PutDeliveryDestinationPolicyCommand=Tv;p.PutDeliveryDestinationPolicyRequest$=vEe;p.PutDeliveryDestinationPolicyResponse$=DEe;p.PutDeliveryDestinationRequest$=IEe;p.PutDeliveryDestinationResponse$=wEe;p.PutDeliverySource$=HCe;p.PutDeliverySourceCommand=vv;p.PutDeliverySourceRequest$=PEe;p.PutDeliverySourceResponse$=OEe;p.PutDestination$=jCe;p.PutDestinationCommand=Dv;p.PutDestinationPolicy$=zCe;p.PutDestinationPolicyCommand=Iv;p.PutDestinationPolicyRequest$=$Ee;p.PutDestinationRequest$=kEe;p.PutDestinationResponse$=MEe;p.PutIndexPolicy$=VCe;p.PutIndexPolicyCommand=wv;p.PutIndexPolicyRequest$=LEe;p.PutIndexPolicyResponse$=NEe;p.PutIntegration$=WCe;p.PutIntegrationCommand=Pv;p.PutIntegrationRequest$=FEe;p.PutIntegrationResponse$=BEe;p.PutLogEvents$=KCe;p.PutLogEventsCommand=Ov;p.PutLogEventsRequest$=UEe;p.PutLogEventsResponse$=GEe;p.PutLogGroupDeletionProtection$=QCe;p.PutLogGroupDeletionProtectionCommand=$v;p.PutLogGroupDeletionProtectionRequest$=qEe;p.PutMetricFilter$=YCe;p.PutMetricFilterCommand=kv;p.PutMetricFilterRequest$=HEe;p.PutQueryDefinition$=JCe;p.PutQueryDefinitionCommand=Mv;p.PutQueryDefinitionRequest$=jEe;p.PutQueryDefinitionResponse$=zEe;p.PutResourcePolicy$=XCe;p.PutResourcePolicyCommand=Lv;p.PutResourcePolicyRequest$=VEe;p.PutResourcePolicyResponse$=WEe;p.PutRetentionPolicy$=ZCe;p.PutRetentionPolicyCommand=Nv;p.PutRetentionPolicyRequest$=KEe;p.PutStorageTierPolicy$=ebe;p.PutStorageTierPolicyCommand=Fv;p.PutStorageTierPolicyRequest$=QEe;p.PutStorageTierPolicyResponse$=YEe;p.PutSubscriptionFilter$=tbe;p.PutSubscriptionFilterCommand=Bv;p.PutSubscriptionFilterRequest$=JEe;p.PutSyslogConfiguration$=rbe;p.PutSyslogConfigurationCommand=Uv;p.PutSyslogConfigurationRequest$=XEe;p.PutTransformer$=nbe;p.PutTransformerCommand=Gv;p.PutTransformerRequest$=ZEe;p.QueryCompileError$=e_e;p.QueryCompileErrorLocation$=t_e;p.QueryDefinition$=r_e;p.QueryInfo$=n_e;p.QueryLanguage=cht;p.QueryParameter$=o_e;p.QueryStatistics$=s_e;p.QueryStatus=_ht;p.RecordField$=i_e;p.RejectedEntityInfo$=a_e;p.RejectedLogEventsInfo$=c_e;p.RenameKeyEntry$=u_e;p.RenameKeys$=l_e;p.ResourceAlreadyExistsException=tT;p.ResourceAlreadyExistsException$=hhe;p.ResourceConfig$=iRe;p.ResourceNotFoundException=Vx;p.ResourceNotFoundException$=She;p.ResourcePolicy$=O3;p.ResultField$=d_e;p.S3Configuration$=p_e;p.S3DeliveryConfiguration$=Rh;p.S3TableIntegrationSource$=f_e;p.S3TableIntegrationSourceStatus=Nht;p.S3TablesIntegration$=m_e;p.ScheduleType=wht;p.ScheduledQueryDestination$=g_e;p.ScheduledQueryDestinationType=Pht;p.ScheduledQueryState=uht;p.ScheduledQuerySummary$=h_e;p.Scope=Xgt;p.SearchedLogStream$=S_e;p.ServiceQuotaExceededException=Zx;p.ServiceQuotaExceededException$=yhe;p.ServiceUnavailableException=Wx;p.ServiceUnavailableException$=Ehe;p.SessionStreamingException=iT;p.SessionStreamingException$=R3;p.SessionTimeoutException=aT;p.SessionTimeoutException$=C3;p.SplitString$=y_e;p.SplitStringEntry$=E_e;p.StandardUnit=Eht;p.StartLiveTail$=obe;p.StartLiveTailCommand=qv;p.StartLiveTailRequest$=__e;p.StartLiveTailResponse$=R_e;p.StartLiveTailResponseStream$=aRe;p.StartQuery$=sbe;p.StartQueryCommand=Hv;p.StartQueryRequest$=C_e;p.StartQueryResponse$=b_e;p.State=eht;p.StopQuery$=ibe;p.StopQueryCommand=jv;p.StopQueryRequest$=A_e;p.StopQueryResponse$=x_e;p.StorageTier=Oht;p.SubscriptionFilter$=T_e;p.SubstituteString$=v_e;p.SubstituteStringEntry$=D_e;p.SuppressionPeriod$=I_e;p.SuppressionState=Lht;p.SuppressionType=Uht;p.SuppressionUnit=Bht;p.SyslogConfiguration$=w_e;p.SyslogSourceType=Fht;p.TagFilter$=P_e;p.TagLogGroup$=abe;p.TagLogGroupCommand=zv;p.TagLogGroupRequest$=O_e;p.TagResource$=cbe;p.TagResourceCommand=Vv;p.TagResourceRequest$=$_e;p.TestMetricFilter$=ube;p.TestMetricFilterCommand=Wv;p.TestMetricFilterRequest$=k_e;p.TestMetricFilterResponse$=M_e;p.TestTransformer$=lbe;p.TestTransformerCommand=Kv;p.TestTransformerRequest$=L_e;p.TestTransformerResponse$=N_e;p.ThrottlingException=Qx;p.ThrottlingException$=_he;p.TooManyTagsException=uT;p.TooManyTagsException$=Rhe;p.TransformedLogRecord$=F_e;p.TriggerHistoryRecord$=B_e;p.TrimString$=U_e;p.Type=kht;p.TypeConverter$=G_e;p.TypeConverterEntry$=q_e;p.UnrecognizedClientException=sT;p.UnrecognizedClientException$=Che;p.UntagLogGroup$=dbe;p.UntagLogGroupCommand=Qv;p.UntagLogGroupRequest$=H_e;p.UntagResource$=pbe;p.UntagResourceCommand=Yv;p.UntagResourceRequest$=j_e;p.UpdateAnomaly$=fbe;p.UpdateAnomalyCommand=Jv;p.UpdateAnomalyRequest$=z_e;p.UpdateDeliveryConfiguration$=mbe;p.UpdateDeliveryConfigurationCommand=Xv;p.UpdateDeliveryConfigurationRequest$=V_e;p.UpdateDeliveryConfigurationResponse$=W_e;p.UpdateLogAnomalyDetector$=gbe;p.UpdateLogAnomalyDetectorCommand=Zv;p.UpdateLogAnomalyDetectorRequest$=K_e;p.UpdateLookupTable$=hbe;p.UpdateLookupTableCommand=eD;p.UpdateLookupTableRequest$=Q_e;p.UpdateLookupTableResponse$=Y_e;p.UpdateScheduledQuery$=Sbe;p.UpdateScheduledQueryCommand=tD;p.UpdateScheduledQueryRequest$=J_e;p.UpdateScheduledQueryResponse$=X_e;p.UpperCaseString$=Z_e;p.ValidationException=Yx;p.ValidationException$=bhe;p.errorTypeRegistries=Ahe;p.paginateDescribeConfigurationTemplates=ybe;p.paginateDescribeDeliveries=Ebe;p.paginateDescribeDeliveryDestinations=_be;p.paginateDescribeDeliverySources=Rbe;p.paginateDescribeDestinations=Cbe;p.paginateDescribeLogGroups=bbe;p.paginateDescribeLogStreams=Abe;p.paginateDescribeMetricFilters=xbe;p.paginateDescribeSubscriptionFilters=Tbe;p.paginateFilterLogEvents=vbe;p.paginateGetLogEvents=Dbe;p.paginateGetScheduledQueryHistory=Ibe;p.paginateListAggregateLogGroupSummaries=wbe;p.paginateListAnomalies=Pbe;p.paginateListLogAnomalyDetectors=Obe;p.paginateListLogGroupsForQuery=$be;p.paginateListScheduledQueries=kbe;p.paginateListSourcesForS3TableIntegration=Mbe});var zht={};Ct(zht,{handler:()=>jht});module.exports=F(zht);var cd=Ie(bJ()),AJ={delaySeconds:15,attempts:8},xJ=new Map;function TJ(t){let e=xJ.get(t);return e||(e=new cd.CloudWatchClient({region:t}),xJ.set(t,e)),e}async function vJ(t){let e=t.ResourceProperties;if(t.RequestType==="Delete"){let[n,...o]=t.PhysicalResourceId.split(":");return o.length>0&&await TJ(n).send(new cd.DeleteAlarmsCommand({AlarmNames:[o.join(":")]})),{PhysicalResourceId:t.PhysicalResourceId}}let r=new cd.PutMetricAlarmCommand({AlarmName:e.AlarmName,AlarmDescription:e.AlarmDescription,Metrics:JSON.parse(e.Metrics),Threshold:Number(e.Threshold),EvaluationPeriods:Number(e.EvaluationPeriods),ComparisonOperator:e.ComparisonOperator,TreatMissingData:e.TreatMissingData,ActionsEnabled:!1});for(let n=1;;n++)try{await TJ(e.Region).send(r);break}catch(o){if(!/AccessDenied/.test(o.name)||n>=AJ.attempts)throw o;await new Promise(s=>setTimeout(s,AJ.delaySeconds*1e3))}return{PhysicalResourceId:`${e.Region}:${e.AlarmName}`}}var Xd=Ie(IN()),ype=new Xd.S3Client({}),Epe="lambda-web-source";async function _pe(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await Spe("HeadObject on the code bucket",()=>qQe(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await Spe(`CopyObject from ${n}`,()=>ype.send(new Xd.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[Epe]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function qQe(t,e){try{let r=await ype.send(new Xd.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[Epe]}}catch(r){if(HQe(r))return;throw r}}async function Spe(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function HQe(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var Za=Ie(IN());var Rpe="Custom::LambdaWebCode",Cpe="Custom::LambdaWebLogGroup",bpe="Custom::LambdaWebEndpointLookup";function Ape(t){return`Domain.${t}`}var xpe="Custom::LambdaWebRevisionCleanup";var Tpe="Custom::LambdaWebAlarm",vpe="Custom::LambdaWebCodeBucketCleanup",wN={key:"cdk-lambda-web:empty-on-delete",value:"true"};var PN=new Za.S3Client({});async function Dpe(t){let e=t.ResourceProperties;if(t.RequestType!=="Delete")return{PhysicalResourceId:e.BucketName};let r=t.PhysicalResourceId;try{if(!await jQe(r))return console.log(JSON.stringify({msg:"code bucket kept: not tagged for emptying (rollback of an update that added this resource)",bucket:r})),{PhysicalResourceId:t.PhysicalResourceId};let n={};for(;;){let o=await PN.send(new Za.ListObjectVersionsCommand({Bucket:r,...n})),s=[...o.Versions??[],...o.DeleteMarkers??[]].map(i=>({Key:i.Key,VersionId:i.VersionId}));if(s.length>0){let i=await PN.send(new Za.DeleteObjectsCommand({Bucket:r,Delete:{Objects:s,Quiet:!0}}));if(i.Errors?.length)throw new Error(`could not delete ${i.Errors.length} object version(s) from ${r}: ${i.Errors[0].Code} ${i.Errors[0].Message}`)}if(!o.IsTruncated)break;n={KeyMarker:o.NextKeyMarker,VersionIdMarker:o.NextVersionIdMarker}}}catch(n){if(n.name!=="NoSuchBucket")throw n}return{PhysicalResourceId:t.PhysicalResourceId}}async function jQe(t){try{let{TagSet:e}=await PN.send(new Za.GetBucketTaggingCommand({Bucket:t}));return(e??[]).some(r=>r.Key===wN.key&&r.Value===wN.value)}catch(e){if(e.name==="NoSuchTagSet")return!1;throw e}}var Ux=Ie(WN());async function Ome(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new Ux.LambdaWebClient({region:r}).send(new Ux.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[Ape(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var So=Ie(Lbe()),Nbe=new Map;function k3(t){let e=Nbe.get(t);return e||(e=new So.CloudWatchLogsClient({region:t}),Nbe.set(t,e)),e}var Fbe={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function Ube(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await qht(e),{PhysicalResourceId:t.PhysicalResourceId}):(await Ght(e),{PhysicalResourceId:r})}async function Ght(t){let e=k3(t.Region);try{await e.send(new So.CreateLogGroupCommand({logGroupName:t.LogGroupName}))}catch(r){if(r.name!=="ResourceAlreadyExistsException")throw r}t.RetentionInDays==="Infinite"?await e.send(new So.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new So.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function qht(t){await Fbe.seconds(Number(t.FlushWaitSeconds)),await Bbe(t),await Fbe.seconds(Number(t.RecheckWaitSeconds)),await Hht(t)&&await Bbe(t)}async function Bbe(t){try{await k3(t.Region).send(new So.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function Hht(t){return((await k3(t.Region).send(new So.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).some(r=>r.logGroupName===t.LogGroupName)}var fp=Ie(WN());async function Gbe(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new fp.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,fp.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new fp.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function jht(t){switch(t.ResourceType){case Rpe:return _pe(t);case Cpe:return Ube(t);case bpe:return Ome(t);case xpe:return Gbe(t);case Tpe:return vJ(t);case vpe:return Dpe(t);default:if(t.RequestType==="Delete")return console.log(JSON.stringify({msg:"delete of an unknown resource type ignored",resourceType:t.ResourceType})),{PhysicalResourceId:t.PhysicalResourceId};throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});
|
|
58
|
+
`),$8=!0)),new PE("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),ZOe(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new PE("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=ck();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=P8();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Yk();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Xk();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await r$e(t))()),async()=>{throw new PE("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],k8),i$e=t=>t?.expiration!==void 0,k8=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;OE.credentialsTreatedAsExpired=k8;OE.credentialsWillNeedRefresh=i$e;OE.defaultProvider=s$e});var vJ=st(R=>{var{awsEndpointFunctions:a$e,emitWarningIfUnsupportedVersion:c$e,createDefaultUserAgentProvider:u$e,NODE_APP_ID_CONFIG_OPTIONS:l$e,getAwsRegionExtensionConfiguration:d$e,resolveAwsRegionExtensionConfiguration:p$e,resolveUserAgentConfig:f$e,resolveHostHeaderConfig:m$e,getUserAgentPlugin:g$e,getHostHeaderPlugin:h$e,getLoggerPlugin:S$e,getRecursionDetectionPlugin:y$e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:E$e,DefaultIdentityProviderConfig:_$e,getHttpSigningPlugin:R$e,createPaginator:Js}=(jt(),F(xl)),{normalizeProvider:B8,getSmithyContext:C$e,ServiceException:b$e,NoOpLogger:A$e,emitWarningIfUnsupportedVersion:x$e,loadConfigsForDefaultMode:T$e,getDefaultExtensionConfiguration:v$e,resolveDefaultRuntimeConfig:D$e,Client:U8,makeBuilder:I$e,createWaiter:Fa,checkExceptions:V_,WaiterState:Oi,createAggregatedClient:w$e}=(J(),F(bo)),{Command:P$e}=(J(),F(bo));R.$Command=P$e;R.__Client=U8;var{resolveDefaultsModeConfig:O$e,loadConfig:Pi,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$$e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:k$e,NODE_REGION_CONFIG_OPTIONS:M$e,NODE_REGION_CONFIG_FILE_OPTIONS:L$e,resolveRegionConfig:N$e}=(ye(),F(Br)),{BinaryDecisionDiagram:F$e,EndpointCache:B$e,decideEndpoint:U$e,customEndpointFunctions:G$e,resolveEndpointConfig:q$e,getEndpointPlugin:H$e}=(He(),F(jp)),{parseUrl:j$e,getHttpHandlerExtensionConfiguration:z$e,resolveHttpHandlerRuntimeConfig:V$e,getContentLengthPlugin:W$e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:K$e,NODE_RETRY_MODE_CONFIG_OPTIONS:Q$e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Y$e,resolveRetryConfig:J$e,getRetryPlugin:X$e}=(en(),F(nf)),{TypeRegistry:G8,getSchemaSerdePlugin:Z$e}=(ae(),F(Dp)),{NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS:eke,NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS:tke,resolveCompressionConfig:rke,getCompressionPlugin:nke}=YH(),{resolveAwsSdkSigV4Config:oke,AwsSdkSigV4Signer:ske,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:ike}=(rr(),F(Il)),{defaultProvider:ake}=Cm(),{toUtf8:cke,fromUtf8:uke,toBase64:lke,fromBase64:dke,calculateBodyLength:pke}=(j(),F(To)),{streamCollector:fke,NodeHttpHandler:mke}=zs(),{AwsJson1_0Protocol:gke}=(Di(),F(Vy)),{Sha256:hke}=(On(),F(Vp)),Ske=async(t,e,r)=>({operation:C$e(e).operation,region:await B8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function yke(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Eke=t=>{let e=[];switch(t.operation){default:e.push(yke(t))}return e},_ke=t=>{let e=oke(t);return Object.assign(e,{authSchemePreference:B8(t.authSchemePreference??[])})},Rke=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),Cke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},bke="3.1151.0",Ake={version:bke},Am="ref",Qc=-1,$E=!0,M8="isSet",q8="PartitionResult",kE="booleanEquals",e1="getAttr",L8={[Am]:"Endpoint"},t1={[Am]:q8},bm={},N8=[{[Am]:"Region"}],F8={conditions:[[M8,[L8]],[M8,N8],["aws.partition",N8,q8],[kE,[{[Am]:"UseFIPS"},$E]],[kE,[{[Am]:"UseDualStack"},$E]],["stringEquals",[{fn:e1,argv:[t1,"name"]},"aws-us-gov"]],[kE,[{fn:e1,argv:[t1,"supportsFIPS"]},$E]],[kE,[{fn:e1,argv:[t1,"supportsDualStack"]},$E]]],results:[[Qc],[Qc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[L8,bm],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",bm],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",bm],[Qc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",bm],[Qc,"FIPS is enabled but this partition does not support FIPS"],[Qc,"DualStack is enabled but this partition does not support DualStack"],[Qc,"Invalid Configuration: Missing Region"]]},xke=2,rn=1e8,Tke=new Int32Array([-1,1,-1,0,14,3,1,4,rn+11,2,5,rn+11,3,8,6,4,7,rn+4,7,rn+5,rn+10,4,11,9,5,rn+4,10,6,rn+8,rn+9,5,rn+5,12,6,13,rn+7,7,rn+6,rn+7,3,rn+1,15,4,rn+2,rn+3]),vke=F$e.from(Tke,xke,F8.conditions,F8.results),Dke=new B$e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ike=(t,e={})=>Dke.get(t,()=>U$e(vke,{endpointParams:t,logger:e.logger}));G$e.aws=a$e;var ut=class t extends b$e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch#CloudWatchServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},ME=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConflictException";name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},LE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsAccessDeniedException";name="KmsAccessDeniedException";$fault="client";Message;constructor(e){super({name:"KmsAccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},NE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyDisabledException";name="KmsKeyDisabledException";$fault="client";Message;constructor(e){super({name:"KmsKeyDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},FE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyNotFoundException";name="KmsKeyNotFoundException";$fault="client";Message;constructor(e){super({name:"KmsKeyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},BE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}},UE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConcurrentModificationException";name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},GE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardInvalidInputError";name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}},qE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardNotFoundError";name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceConflict";name="ResourceConflict";$fault="client";constructor(e){super({name:"ResourceConflict",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFound";name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InternalServiceFault";name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},VE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterCombinationException";name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#MissingRequiredParameterException";name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidNextToken";name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededException";name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},JE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededFault";name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidFormatFault";name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},H8="Average",rd="AlarmActions",wke="ApproximateAggregateValue",r1="AlarmArn",Pke="AlarmContributor",Oke="AlarmContributorAttributes",j8="AlarmContributorId",n1="AlarmConfigurationUpdatedTimestamp",z8="AlarmContributors",$ke="AnomalyDetector",kke="AnomalyDetectorConfiguration",Mke="AnomalyDetectorExcludedTimeRanges",o1="AnomalyDetectorId",Lke="AnomalyDetectorIds",Nke="AssociateDatasetKmsKey",Fke="AssociateDatasetKmsKeyInput",Bke="AssociateDatasetKmsKeyOutput",Uke="AnomalyDetectorTypes",nd="AlarmDescription",V8="AnomalyDetectors",od="ActionsEnabled",Gke="AggregationExpression",qke="AlarmHistoryItem",W8="AlarmHistoryItems",K8="AccountId",Q8="ActionLogLineCount",Y8="ActionLogLineRoleArn",J8="AlarmMuteRuleArn",X8="AlarmMuteRuleName",Hke="AlarmMuteRuleSummary",Z8="AlarmMuteRuleSummaries",Vo="AlarmName",jke="AlarmNamePrefix",Mm="AlarmNames",e9="ApplyOnTransformedLogs",zke="ActionPrefix",Vke="AlarmPromQLCriteria",t9="AlarmRule",r9="ActionsSuppressor",Wke="ActionsSuppressedBy",n9="ActionsSuppressorExtensionPeriod",Kke="ActionsSuppressedReason",o9="ActionsSuppressorWaitPeriod",Qke="AdditionalStatistics",Yke="AggregationStatistic",Jke="AlarmType",s9="AlarmTypes",Xke="ApproximateUniqueCount",Zke="AggregateValue",e1e="ApproximateValue",W_="Arn",t1e="Attributes",r1e="BatchFailures",i9="Configuration",n1e="ContributorAttributes",o1e="CompositeAlarm",a9="CompositeAlarms",K_="CreatedAt",c9="CreationDate",s1e="ConflictException",i1e="ContributorId",a1e="ConcurrentModificationException",Q_="ComparisonOperator",c1e="ChildrenOfAlarmName",u1e="CreateResourceMetricsConfiguration",l1e="CreateResourceMetricsConfigurationInput",d1e="CreateResourceMetricsConfigurationOutput",p1e="Contributors",f1e="Code",m1e="Counts",Nn="Dimensions",u9="DashboardArn",g1e="DisableAlarmActions",h1e="DisableAlarmActionsInput",S1e="DescribeAlarmContributors",y1e="DescribeAlarmContributorsInput",E1e="DescribeAlarmContributorsOutput",_1e="DeleteAnomalyDetector",R1e="DeleteAnomalyDetectorInput",C1e="DescribeAnomalyDetectorsInput",b1e="DeleteAnomalyDetectorOutput",A1e="DescribeAnomalyDetectorsOutput",x1e="DescribeAnomalyDetectors",T1e="DescribeAlarmsForMetric",v1e="DescribeAlarmsForMetricInput",D1e="DescribeAlarmsForMetricOutput",I1e="DescribeAlarmHistory",w1e="DescribeAlarmHistoryInput",P1e="DescribeAlarmHistoryOutput",O1e="DeleteAlarmsInput",$1e="DescribeAlarmsInput",k1e="DeleteAlarmMuteRule",M1e="DeleteAlarmMuteRuleInput",L1e="DescribeAlarmsOutput",N1e="DeleteAlarms",F1e="DescribeAlarms",l9="DashboardBody",B1e="DeleteDashboards",U1e="DeleteDashboardsInput",G1e="DisassociateDatasetKmsKey",q1e="DisassociateDatasetKmsKeyInput",H1e="DisassociateDatasetKmsKeyOutput",j1e="DeleteDashboardsOutput",z1e="DashboardEntry",d9="DashboardEntries",V1e="DimensionFilter",W1e="DimensionFilters",s1="DatasetIdentifier",K1e="DashboardInvalidInputError",Q1e="DeleteInsightRules",Y1e="DeleteInsightRulesInput",J1e="DescribeInsightRulesInput",X1e="DisableInsightRulesInput",Z1e="DeleteInsightRulesOutput",eMe="DescribeInsightRulesOutput",tMe="DisableInsightRulesOutput",rMe="DescribeInsightRules",nMe="DisableInsightRules",oMe="DatasetId",sMe="DeleteMetricStream",iMe="DeleteMetricStreamInput",aMe="DeleteMetricStreamOutput",Y_="DashboardName",cMe="DashboardNotFoundError",uMe="DashboardNamePrefix",lMe="DashboardNames",dMe="DataPath",pMe="DeleteResourceMetricsConfiguration",fMe="DeleteResourceMetricsConfigurationInput",mMe="DeleteResourceMetricsConfigurationOutput",p9="DatapointsToAlarm",gMe="DashboardValidationMessage",f9="DashboardValidationMessages",hMe="Datapoint",i1="Datapoints",m9="Description",SMe="Definition",yMe="Dimension",EMe="Duration",g9="Entity",_Me="EnableAlarmActions",RMe="EnableAlarmActionsInput",a1="EvaluationCriteria",c1="ExpireDate",CMe="EndDate",Yc="ExcludeFilters",h9="EvaluationInterval",bMe="EnableInsightRules",AMe="EnableInsightRulesInput",xMe="EnableInsightRulesOutput",S9="EvaluateLowSampleCountPercentile",y9="EntityMetricData",TMe="EntityMetricDataList",E9="EvaluationPeriods",_9="ExtendedStatistics",R9="EvaluationState",u1="ExtendedStatistic",J_="EndTime",vMe="EndTimeOffset",DMe="ExcludedTimeRanges",IMe="ExceptionType",l1="EvaluationWindow",wMe="Entries",C9="Expression",X_="Failures",d1="FirehoseArn",PMe="FailureCode",OMe="FailureDescription",$Me="FailureResource",kMe="GetAlarmMuteRule",MMe="GetAlarmMuteRuleInput",LMe="GetAlarmMuteRuleOutput",NMe="GetDashboard",FMe="GetDashboardInput",BMe="GetDatasetInput",UMe="GetDashboardOutput",GMe="GetDatasetOutput",qMe="GetDataset",HMe="GetInsightRuleReport",jMe="GetInsightRuleReportInput",zMe="GetInsightRuleReportOutput",VMe="GetMetricData",WMe="GetMetricDataInput",KMe="GetMetricDataOutput",QMe="GetMetricStatistics",YMe="GetMetricStatisticsInput",JMe="GetMetricStreamInput",XMe="GetMetricStatisticsOutput",ZMe="GetMetricStreamOutput",eLe="GetMetricStream",tLe="GetMetricWidgetImage",rLe="GetMetricWidgetImageInput",nLe="GetMetricWidgetImageOutput",oLe="GetOTelEnrichment",sLe="GetOTelEnrichmentInput",iLe="GetOTelEnrichmentOutput",aLe="GetResourceMetricsConfiguration",cLe="GetResourceMetricsConfigurationInput",uLe="GetResourceMetricsConfigurationOutput",lLe="HistoryData",b9="HistoryItemType",dLe="HistorySummary",A9="Id",sd="InsufficientDataActions",Jc="IncludeFilters",pLe="InvalidFormatFault",fLe="IncludeLinkedAccounts",x9="IncludeLinkedAccountsMetrics",T9="IncludeMetrics",mLe="InvalidNextToken",gLe="InvalidParameterCombinationException",hLe="InvalidParameterValueException",v9="InsightRules",SLe="InsightRuleContributor",yLe="InsightRuleContributorDatapoint",ELe="InsightRuleContributorDatapoints",_Le="InsightRuleContributors",RLe="InsightRuleMetricDatapoint",CLe="InsightRuleMetricDatapoints",bLe="InsightRule",ALe="InternalServiceFault",xLe="Keys",TLe="KeyAttributes",vLe="KmsAccessDeniedException",D9="KmsKeyArn",DLe="KmsKeyDisabledException",ILe="KmsKeyNotFoundException",wLe="KeyLabels",PLe="Key",p1="Label",I9="LogAlarms",OLe="ListAlarmMuteRules",$Le="ListAlarmMuteRulesInput",kLe="ListAlarmMuteRulesOutput",MLe="LogAlarm",LLe="ListDashboards",NLe="ListDashboardsInput",FLe="ListDashboardsOutput",BLe="LimitExceededException",ULe="LimitExceededFault",GLe="LogGroupIdentifiers",qLe="LastModified",HLe="ListMetricsInput",jLe="ListManagedInsightRules",zLe="ListManagedInsightRulesInput",VLe="ListManagedInsightRulesOutput",WLe="ListMetricsOutput",KLe="ListMetricStreams",QLe="ListMetricStreamsInput",YLe="ListMetricStreamsOutput",JLe="ListMetrics",w9="LabelOptions",XLe="ListTagsForResource",ZLe="ListTagsForResourceInput",eNe="ListTagsForResourceOutput",P9="LastUpdateDate",O9="LastUpdatedTimestamp",$i="Message",f1="MetricAlarms",tNe="MetricAlarm",m1="MetricCharacteristics",rNe="MaxContributorCount",nNe="MaxContributorValue",g1="MetricData",h1="MetricDataQueries",oNe="MetricDataQuery",$9="MetricDataResults",sNe="MetricDataResultMessages",iNe="MetricDataResult",aNe="MaxDatapoints",cNe="MetricDatapoints",uNe="MessageData",lNe="MetricDatum",Z_="MetricMathAnomalyDetector",Fn="MetricName",k9="MetricNames",S1="MaxRecords",dNe="ManagedRuleDescription",pNe="ManagedRuleDescriptions",fNe="MissingRequiredParameterException",mNe="ManagedRuleState",eR="MaxResults",M9="ManagedRule",y1="ManagedRules",E1="MetricSelections",gNe="MetricStreamEntry",hNe="MetricStreamEntries",SNe="MetricStreamFilter",yNe="MetricStreamFilters",ENe="MetricStreamStatisticsConfiguration",_Ne="MetricStreamStatisticsConfigurations",RNe="MetricStreamStatisticsIncludeMetrics",CNe="MetricStreamStatisticsMetric",L9="MetricStat",N9="MuteType",bNe="MetricTimezone",_1="MuteTargets",ANe="MetricWidget",xNe="MetricWidgetImage",R1="Maximum",Lm="Metrics",F9="Messages",B9="Metric",C1="Minimum",nn="Namespace",yt="NextToken",Xs="Name",U9="Names",TNe="OwningAccount",vNe="OwningAccounts",DNe="OrderBy",tR="OutputFormat",id="OKActions",INe="OnlyStartEvaluatingAfterWarmUpPeriodEnds",wNe="OTelEnrichmentMetricSelector",PNe="OTelEnrichmentMetricSelectorList",Xc="Period",ONe="PutAnomalyDetector",$Ne="PutAnomalyDetectorInput",kNe="PutAnomalyDetectorOutput",MNe="PutAlarmMuteRule",LNe="PutAlarmMuteRuleInput",NNe="PutCompositeAlarm",FNe="PutCompositeAlarmInput",BNe="PutDashboard",UNe="PutDashboardInput",GNe="PutDashboardOutput",qNe="PartialFailure",HNe="PutInsightRule",jNe="PutInsightRuleInput",zNe="PutInsightRuleOutput",VNe="PutLogAlarm",WNe="PutLogAlarmInput",KNe="PutMetricAlarm",QNe="PutMetricAlarmInput",YNe="PutMetricData",JNe="PutMetricDataInput",XNe="PutManagedInsightRules",ZNe="PutManagedInsightRulesInput",e3e="PutManagedInsightRulesOutput",t3e="PutMetricStream",r3e="PutMetricStreamInput",n3e="PutMetricStreamOutput",o3e="ParentsOfAlarmName",s3e="PendingPeriod",i3e="PromQLCriteria",a3e="PeriodicSpikes",c3e="Query",u3e="QueryARN",G9="QueryResultsToAlarm",q9="QueryResultsToEvaluate",l3e="QueryString",b1="Rule",Nm="ResourceArn",ad="ResourceARN",d3e="RecentlyActive",H9="RoleArn",p3e="ResourceConflict",f3e="ReturnData",m3e="RuleDefinition",g3e="ResourceId",rR="ResourceMetricsConfiguration",h3e="ResourceMetricSelection",S3e="ResourceMetricSelectionList",A1="RuleNames",y3e="ResourceNotFound",E3e="ResourceNotFoundException",x1="RuleName",_3e="RecoveryPeriod",j9="RuleState",R3e="ResourceType",C3e="Range",T1="Status",b3e="SetAlarmState",A3e="SetAlarmStateInput",z9="ScanBy",v1="SampleCount",V9="ScheduleConfiguration",W9="StatisticsConfigurations",x3e="StatusCode",D1="StartDate",T3e="ScheduleExpression",v3e="StrictEntityValidation",nR="SingleMetricAnomalyDetector",D3e="StartMetricStreams",I3e="StartMetricStreamsInput",w3e="StopMetricStreamsInput",P3e="StartMetricStreamsOutput",O3e="StopMetricStreamsOutput",$3e="StopMetricStreams",k3e="StartOTelEnrichment",M3e="StartOTelEnrichmentInput",L3e="StopOTelEnrichmentInput",N3e="StartOTelEnrichmentOutput",F3e="StopOTelEnrichmentOutput",B3e="StopOTelEnrichment",I1="ScheduledQueryConfiguration",U3e="ScheduledQueryRoleARN",Fm="StateReason",oR="StateReasonData",G3e="StorageResolution",q3e="StatisticSet",sR="StartTime",H3e="StartTimeOffset",iR="StateTransitionedTimestamp",w1="StateUpdatedTimestamp",cd="StateValue",j3e="StatisticValues",K9="SlidingWindow",z3e="Schema",Q9="Schedule",V3e="Size",Bm="Stat",P1="Statistic",W3e="Statistics",aR="State",K3e="Statuses",O1="Sum",Um="Timestamp",Q3e="TagKeys",Y3e="TagList",cR="TreatMissingData",Y9="ThresholdMetricId",J9="TemplateName",J3e="TagResource",X3e="TagResourceInput",Z3e="TagResourceOutput",Wo="Tags",eFe="Tag",uR="Threshold",$1="Timezone",tFe="Timestamps",Zc="Unit",lR="UpdatedAt",rFe="UniqueContributors",nFe="UpdateOTelEnrichment",oFe="UpdateOTelEnrichmentInput",sFe="UpdateOTelEnrichmentOutput",iFe="UntagResource",aFe="UntagResourceInput",cFe="UpdateResourceMetricsConfiguration",uFe="UpdateResourceMetricsConfigurationInput",lFe="UpdateResourceMetricsConfigurationOutput",dFe="UntagResourceOutput",Gm="Value",pFe="ValidationException",X9="Values",Z9="WallClockWindow",qm="WarmUpConfiguration",fFe="WarmUpPeriodDurationInMinutes",on="awsQueryError",ir="client",mFe="dashboardValidationMessages",zt="error",Hr="httpError",Ko="message",eK="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",gFe="server",b="com.amazonaws.cloudwatch",tK=new G8(eK),rK=[-3,eK,"CloudWatchServiceException",0,[],[]];tK.registerError(rK,ut);var Ot=new G8(b),nK=[-3,b,a1e,{[on]:["ConcurrentModificationException",429],[zt]:ir,[Hr]:429},[$i],[0]];Ot.registerError(nK,UE);var oK=[-3,b,s1e,{[zt]:ir,[Hr]:409},[$i],[0]];Ot.registerError(oK,ME);var sK=[-3,b,K1e,{[on]:["InvalidParameterInput",400],[zt]:ir,[Hr]:400},[Ko,mFe],[0,()=>nY]];Ot.registerError(sK,GE);var iK=[-3,b,cMe,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(iK,qE);var aK=[-3,b,ALe,{[on]:["InternalServiceError",500],[zt]:gFe,[Hr]:500},[$i],[0]];Ot.registerError(aK,zE);var cK=[-3,b,pLe,{[on]:["InvalidFormat",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(cK,XE);var uK=[-3,b,mLe,{[on]:["InvalidNextToken",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(uK,QE);var lK=[-3,b,gLe,{[on]:["InvalidParameterCombination",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(lK,VE);var dK=[-3,b,hLe,{[on]:["InvalidParameterValue",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(dK,WE);var pK=[-3,b,vLe,{[zt]:ir},[$i],[0],1];Ot.registerError(pK,LE);var fK=[-3,b,DLe,{[zt]:ir},[$i],[0],1];Ot.registerError(fK,NE);var mK=[-3,b,ILe,{[zt]:ir},[$i],[0],1];Ot.registerError(mK,FE);var gK=[-3,b,BLe,{[on]:["LimitExceededException",400],[zt]:ir,[Hr]:400},[$i],[0]];Ot.registerError(gK,YE);var hK=[-3,b,ULe,{[on]:["LimitExceeded",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(hK,JE);var SK=[-3,b,fNe,{[on]:["MissingParameter",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(SK,KE);var yK=[-3,b,p3e,{[on]:["ResourceConflict",409],[zt]:ir,[Hr]:409},[Ko],[0]];Ot.registerError(yK,HE);var EK=[-3,b,y3e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(EK,jE);var _K=[-3,b,E3e,{[on]:["ResourceNotFoundException",404],[zt]:ir,[Hr]:404},[R3e,g3e,$i],[0,0,0]];Ot.registerError(_K,BE);var RK=[-3,b,pFe,{[on]:["ValidationError",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(RK,ZE);var CK=[tK,Ot],bK=[3,b,Pke,0,[i1e,n1e,Fm,iR],[0,128,0,4],3],AK=[3,b,qke,0,[Vo,j8,Jke,Um,b9,dLe,lLe,Oke],[0,0,0,4,0,0,0,128]],xK=[3,b,Hke,0,[J8,c1,T1,N9,O9],[0,4,0,0,4]],TK=[3,b,Vke,0,[c3e,s3e,_3e],[0,1,1],1],vK=[3,b,$ke,0,[o1,nn,Fn,Nn,Bm,i9,cd,m1,nR,Z_],[0,0,0,()=>Qo,0,()=>k1,0,()=>L1,()=>fR,()=>dR]],k1=[3,b,kke,0,[DMe,bNe],[()=>EFe,0]],DK=[3,b,Fke,0,[s1,D9],[0,0],2],IK=[3,b,Bke,0,[],[]],wK=[3,b,o1e,0,[od,rd,r1,n1,nd,Vo,t9,sd,id,Fm,oR,w1,cd,iR,Wke,Kke,r9,o9,n9],[2,64,0,4,0,0,0,64,64,0,0,4,0,4,0,0,0,1,1]],PK=[3,b,l1e,0,[Nm,E1],[0,()=>U1],1],OK=[3,b,d1e,0,[rR],[()=>pR],1],$K=[3,b,z1e,0,[Y_,u9,qLe,V3e],[0,0,4,1]],kK=[3,b,gMe,0,[dMe,$i],[0,0]],MK=[3,b,hMe,0,[Um,v1,H8,O1,C1,R1,Zc,_9],[4,1,1,1,1,1,0,129]],LK=[3,b,M1e,0,[X8],[0],1],NK=[3,b,O1e,0,[Mm],[64],1],FK=[3,b,R1e,0,[o1,nn,Fn,Nn,Bm,nR,Z_],[0,0,0,()=>Qo,0,()=>fR,()=>dR]],BK=[3,b,b1e,0,[],[]],UK=[3,b,U1e,0,[lMe],[64],1],GK=[3,b,j1e,0,[],[]],qK=[3,b,Y1e,0,[A1],[64],1],HK=[3,b,Z1e,0,[X_],[()=>mR]],jK=[3,b,iMe,0,[Xs],[0],1],zK=[3,b,aMe,0,[],[]],VK=[3,b,fMe,0,[Nm],[0],1],WK=[3,b,mMe,0,[],[]],KK=[3,b,y1e,0,[Vo,yt],[0,0],1],QK=[3,b,E1e,0,[z8,yt],[()=>hFe,0],1],YK=[3,b,w1e,0,[Vo,j8,s9,b9,D1,CMe,S1,yt,z9],[0,0,64,0,4,4,1,0,0]],JK=[3,b,P1e,0,[W8,yt],[()=>SFe,0]],XK=[3,b,v1e,0,[Fn,nn,P1,u1,Nn,Xc,Zc],[0,0,0,0,()=>Qo,1,0],2],ZK=[3,b,D1e,0,[f1],[()=>oY]],eQ=[3,b,$1e,0,[Mm,jke,s9,c1e,o3e,cd,zke,S1,yt],[64,0,64,0,0,0,0,1,0]],tQ=[3,b,L1e,0,[a9,f1,I9,yt],[()=>RFe,()=>oY,()=>wFe,0]],rQ=[3,b,C1e,0,[Lke,yt,eR,nn,Fn,Nn,Uke],[64,0,1,0,0,()=>Qo,64]],nQ=[3,b,A1e,0,[V8,yt],[()=>_Fe,0]],oQ=[3,b,J1e,0,[yt,eR],[0,1]],sQ=[3,b,eMe,0,[yt,v9],[0,()=>IFe]],iQ=[3,b,yMe,0,[Xs,Gm],[0,0],2],aQ=[3,b,V1e,0,[Xs,Gm],[0,0],1],cQ=[3,b,h1e,0,[Mm],[64],1],uQ=[3,b,X1e,0,[A1],[64],1],lQ=[3,b,tMe,0,[X_],[()=>mR]],dQ=[3,b,q1e,0,[s1],[0],1],pQ=[3,b,H1e,0,[],[]],fQ=[3,b,RMe,0,[Mm],[64],1],mQ=[3,b,AMe,0,[A1],[64],1],gQ=[3,b,xMe,0,[X_],[()=>mR]],hQ=[3,b,g9,0,[TLe,t1e],[128,128]],SQ=[3,b,y9,0,[g9,g1],[()=>hQ,()=>sY]],yQ=[3,b,MMe,0,[X8],[0],1],EQ=[3,b,LMe,0,[Xs,J8,m9,b1,_1,D1,c1,T1,O9,N9],[0,0,0,()=>F1,()=>N1,4,4,0,4,0]],_Q=[3,b,FMe,0,[Y_],[0],1],RQ=[3,b,UMe,0,[u9,l9,Y_],[0,0,0]],CQ=[3,b,BMe,0,[s1],[0],1],bQ=[3,b,GMe,0,[oMe,W_,D9],[0,0,0],2],AQ=[3,b,jMe,0,[x1,sR,J_,Xc,rNe,Lm,DNe],[0,4,4,1,1,64,0],4],xQ=[3,b,zMe,0,[wLe,Yke,Zke,Xke,p1e,cNe],[64,0,1,1,()=>vFe,()=>DFe]],TQ=[3,b,WMe,0,[h1,sR,J_,yt,z9,aNe,w9],[()=>gR,4,4,0,0,1,()=>qQ],3],vQ=[3,b,KMe,0,[$9,yt,F9],[()=>$Fe,0,()=>iY]],DQ=[3,b,YMe,0,[nn,Fn,sR,J_,Xc,Nn,W3e,_9,Zc],[0,0,4,4,1,()=>Qo,64,64,0],5],IQ=[3,b,XMe,0,[p1,i1],[0,()=>bFe]],wQ=[3,b,JMe,0,[Xs],[0],1],PQ=[3,b,ZMe,0,[W_,Xs,Jc,Yc,d1,H9,aR,c9,P9,tR,W9,x9],[0,0,()=>e_,()=>e_,0,0,0,4,4,0,()=>aY,2]],OQ=[3,b,rLe,0,[ANe,tR],[0,0],1],$Q=[3,b,nLe,0,[xNe],[21]],kQ=[3,b,sLe,0,[],[]],MQ=[3,b,iLe,0,[T1,Jc,Yc,K_,lR],[0,()=>Ys,()=>Ys,4,4],1],LQ=[3,b,cLe,0,[Nm],[0],1],NQ=[3,b,uLe,0,[rR],[()=>pR],1],FQ=[3,b,bLe,0,[Xs,aR,z3e,SMe,M9,e9],[0,0,0,0,2,2],4],BQ=[3,b,SLe,0,[xLe,wke,i1],[64,1,()=>TFe],3],UQ=[3,b,yLe,0,[Um,e1e],[4,1],2],GQ=[3,b,RLe,0,[Um,rFe,nNe,v1,H8,O1,C1,R1],[4,1,1,1,1,1,1,1],1],qQ=[3,b,w9,0,[$1],[0]],HQ=[3,b,$Le,0,[Vo,K3e,S1,yt],[0,64,1,0]],jQ=[3,b,kLe,0,[Z8,yt],[()=>yFe,0]],zQ=[3,b,NLe,0,[uMe,yt],[0,0]],VQ=[3,b,FLe,0,[d9,yt],[()=>CFe,0]],WQ=[3,b,zLe,0,[ad,yt,eR],[0,0,1],1],KQ=[3,b,VLe,0,[y1,yt],[()=>PFe,0]],QQ=[3,b,HLe,0,[nn,Fn,Nn,yt,d3e,fLe,TNe],[0,0,()=>AFe,0,0,2,0]],YQ=[3,b,WLe,0,[Lm,yt,vNe],[()=>kFe,0,64]],JQ=[3,b,QLe,0,[yt,eR],[0,1]],XQ=[3,b,YLe,0,[yt,wMe],[0,()=>MFe]],ZQ=[3,b,ZLe,0,[ad],[0],1],e7=[3,b,eNe,0,[Wo],[()=>Yo]],t7=[3,b,MLe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,I1,q9,G9,uR,Q_,cR,iR,R9,Q8,Y8,qm],[0,0,0,4,2,64,64,64,0,0,0,4,()=>B1,1,1,1,0,0,4,0,1,0,()=>Hm]],r7=[3,b,M9,0,[J9,ad,Wo],[0,0,()=>Yo],2],n7=[3,b,dNe,0,[J9,ad,j9],[0,0,()=>o7]],o7=[3,b,mNe,0,[x1,aR],[0,0],2],s7=[3,b,uNe,0,[f1e,Gm],[0,0]],M1=[3,b,B9,0,[nn,Fn,Nn],[0,0,()=>Qo]],i7=[3,b,tNe,0,[Vo,r1,nd,n1,od,id,rd,sd,cd,Fm,oR,w1,Fn,nn,P1,u1,Nn,Xc,Zc,E9,p9,uR,Q_,cR,S9,Lm,Y9,R9,iR,l1,qm,a1,h9],[0,0,0,4,2,64,64,64,0,0,0,4,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,0,0,4,()=>q1,()=>Hm,()=>G1,1]],L1=[3,b,m1,0,[a3e],[2]],a7=[3,b,oNe,0,[A9,L9,C9,p1,f3e,Xc,K8],[0,()=>l7,0,0,2,1,0],1],c7=[3,b,iNe,0,[A9,p1,tFe,X9,x3e,F9],[0,0,68,65,0,()=>iY]],u7=[3,b,lNe,0,[Fn,Nn,Um,Gm,j3e,X9,m1e,Zc,G3e],[0,()=>Qo,4,1,()=>q7,65,65,0,1],1],dR=[3,b,Z_,0,[h1],[()=>gR]],l7=[3,b,L9,0,[B9,Xc,Bm,Zc],[()=>M1,1,0,0],3],d7=[3,b,gNe,0,[W_,c9,P9,Xs,d1,aR,tR],[0,4,4,0,0,0,0]],p7=[3,b,SNe,0,[nn,k9],[0,64]],f7=[3,b,ENe,0,[T9,Qke],[()=>LFe,64],2],m7=[3,b,CNe,0,[nn,Fn],[0,0],2],N1=[3,b,_1,0,[Mm],[64],1],g7=[3,b,wNe,0,[nn,k9],[0,64],1],h7=[3,b,qNe,0,[$Me,IMe,PMe,OMe],[0,0,0,0]],S7=[3,b,LNe,0,[Xs,b1,m9,_1,Wo,D1,c1],[0,()=>F1,0,()=>N1,()=>Yo,4,4],2],y7=[3,b,$Ne,0,[nn,Fn,Nn,Bm,i9,m1,nR,Z_],[0,0,()=>Qo,0,()=>k1,()=>L1,()=>fR,()=>dR]],E7=[3,b,kNe,0,[o1],[0]],_7=[3,b,FNe,0,[Vo,t9,od,rd,nd,sd,id,Wo,r9,o9,n9],[0,0,2,64,0,64,64,()=>Yo,0,1,1],2],R7=[3,b,UNe,0,[Y_,l9,Wo],[0,0,()=>Yo],2],C7=[3,b,GNe,0,[f9],[()=>nY]],b7=[3,b,jNe,0,[x1,m3e,j9,Wo,e9],[0,0,0,()=>Yo,2],2],A7=[3,b,zNe,0,[],[]],x7=[3,b,WNe,0,[Vo,I1,q9,G9,uR,Q_,nd,Q8,Y8,od,id,rd,sd,cR,Wo,qm],[0,()=>B1,1,1,1,0,0,1,0,2,64,64,64,0,()=>Yo,()=>Hm],6],T7=[3,b,ZNe,0,[y1],[()=>OFe],1],v7=[3,b,e3e,0,[X_],[()=>mR]],D7=[3,b,QNe,0,[Vo,nd,od,id,rd,sd,Fn,nn,P1,u1,Nn,Xc,Zc,E9,p9,uR,Q_,cR,S9,Lm,Wo,Y9,l1,qm,a1,h9],[0,0,2,64,64,64,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>gR,()=>Yo,0,()=>q1,()=>Hm,()=>G1,1],1],I7=[3,b,JNe,0,[nn,g1,y9,v3e],[0,()=>sY,()=>xFe,2],1],w7=[3,b,r3e,0,[Xs,d1,H9,tR,Jc,Yc,Wo,W9,x9],[0,0,0,0,()=>e_,()=>e_,()=>Yo,()=>aY,2],4],P7=[3,b,n3e,0,[W_],[0]],O7=[3,b,C3e,0,[sR,J_],[4,4],2],pR=[3,b,rR,0,[Nm,K_,lR,E1],[0,4,4,()=>U1],3],$7=[3,b,h3e,0,[T9],[64],1],F1=[3,b,b1,0,[Q9],[()=>k7],1],k7=[3,b,Q9,0,[C9,EMe,$1],[0,0,0],2],M7=[3,b,V9,0,[T3e,H3e,vMe],[0,1,1],2],B1=[3,b,I1,0,[l3e,U3e,V9,Gke,GLe,u3e,Wo],[0,0,()=>M7,0,64,0,()=>Yo],4],L7=[3,b,A3e,0,[Vo,cd,Fm,oR],[0,0,0,0],3],fR=[3,b,nR,0,[K8,nn,Fn,Nn,Bm],[0,0,0,()=>Qo,0]],N7=[3,b,K9,0,[],[]],F7=[3,b,I3e,0,[U9],[64],1],B7=[3,b,P3e,0,[],[]],U7=[3,b,M3e,0,[Jc,Yc],[()=>Ys,()=>Ys]],G7=[3,b,N3e,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],q7=[3,b,q3e,0,[v1,O1,C1,R1],[1,1,1,1],4],H7=[3,b,w3e,0,[U9],[64],1],j7=[3,b,O3e,0,[],[]],z7=[3,b,L3e,0,[],[]],V7=[3,b,F3e,0,[],[]],W7=[3,b,eFe,0,[PLe,Gm],[0,0],2],K7=[3,b,X3e,0,[ad,Wo],[0,()=>Yo],2],Q7=[3,b,Z3e,0,[],[]],Y7=[3,b,aFe,0,[ad,Q3e],[0,64],2],J7=[3,b,dFe,0,[],[]],X7=[3,b,oFe,0,[Jc,Yc],[()=>Ys,()=>Ys]],Z7=[3,b,sFe,0,[Jc,Yc,K_,lR],[()=>Ys,()=>Ys,4,4]],eY=[3,b,uFe,0,[Nm,E1],[0,()=>U1],1],tY=[3,b,lFe,0,[rR],[()=>pR],1],rY=[3,b,Z9,0,[$1],[0]],Hm=[3,b,qm,0,[fFe,INe],[1,2],1],Zs="unit",hFe=[1,b,z8,0,()=>bK],SFe=[1,b,W8,0,()=>AK],yFe=[1,b,Z8,0,()=>xK],EFe=[1,b,Mke,0,()=>O7],_Fe=[1,b,V8,0,()=>vK],mR=[1,b,r1e,0,()=>h7],RFe=[1,b,a9,0,()=>wK],CFe=[1,b,d9,0,()=>$K],nY=[1,b,f9,0,()=>kK],bFe=[1,b,i1,0,()=>MK],AFe=[1,b,W1e,0,()=>aQ],Qo=[1,b,Nn,0,()=>iQ],xFe=[1,b,TMe,0,()=>SQ],TFe=[1,b,ELe,0,()=>UQ],vFe=[1,b,_Le,0,()=>BQ],DFe=[1,b,CLe,0,()=>GQ],IFe=[1,b,v9,0,()=>FQ],wFe=[1,b,I9,0,()=>t7],PFe=[1,b,pNe,0,()=>n7],OFe=[1,b,y1,0,()=>r7],oY=[1,b,f1,0,()=>i7],sY=[1,b,g1,0,()=>u7],gR=[1,b,h1,0,()=>a7],iY=[1,b,sNe,0,()=>s7],$Fe=[1,b,$9,0,()=>c7],kFe=[1,b,Lm,0,()=>M1],MFe=[1,b,hNe,0,()=>d7],e_=[1,b,yNe,0,()=>p7],aY=[1,b,_Ne,0,()=>f7],LFe=[1,b,RNe,0,()=>m7],Ys=[1,b,PNe,0,()=>g7],U1=[1,b,S3e,0,()=>$7],Yo=[1,b,Y3e,0,()=>W7],G1=[4,b,a1,0,[i3e],[()=>TK]],q1=[4,b,l1,0,[Z9,K9],[()=>rY,()=>N7]],cY=[9,b,Nke,0,()=>DK,()=>IK],uY=[9,b,u1e,0,()=>PK,()=>OK],lY=[9,b,k1e,0,()=>LK,()=>Zs],dY=[9,b,N1e,0,()=>NK,()=>Zs],pY=[9,b,_1e,0,()=>FK,()=>BK],fY=[9,b,B1e,0,()=>UK,()=>GK],mY=[9,b,Q1e,0,()=>qK,()=>HK],gY=[9,b,sMe,0,()=>jK,()=>zK],hY=[9,b,pMe,0,()=>VK,()=>WK],SY=[9,b,S1e,0,()=>KK,()=>QK],yY=[9,b,I1e,0,()=>YK,()=>JK],EY=[9,b,F1e,0,()=>eQ,()=>tQ],_Y=[9,b,T1e,0,()=>XK,()=>ZK],RY=[9,b,x1e,0,()=>rQ,()=>nQ],CY=[9,b,rMe,0,()=>oQ,()=>sQ],bY=[9,b,g1e,0,()=>cQ,()=>Zs],AY=[9,b,nMe,0,()=>uQ,()=>lQ],xY=[9,b,G1e,2,()=>dQ,()=>pQ],TY=[9,b,_Me,0,()=>fQ,()=>Zs],vY=[9,b,bMe,0,()=>mQ,()=>gQ],DY=[9,b,kMe,0,()=>yQ,()=>EQ],IY=[9,b,NMe,0,()=>_Q,()=>RQ],wY=[9,b,qMe,0,()=>CQ,()=>bQ],PY=[9,b,HMe,0,()=>AQ,()=>xQ],OY=[9,b,VMe,0,()=>TQ,()=>vQ],$Y=[9,b,QMe,0,()=>DQ,()=>IQ],kY=[9,b,eLe,0,()=>wQ,()=>PQ],MY=[9,b,tLe,0,()=>OQ,()=>$Q],LY=[9,b,oLe,0,()=>kQ,()=>MQ],NY=[9,b,aLe,0,()=>LQ,()=>NQ],FY=[9,b,OLe,0,()=>HQ,()=>jQ],BY=[9,b,LLe,0,()=>zQ,()=>VQ],UY=[9,b,jLe,0,()=>WQ,()=>KQ],GY=[9,b,JLe,0,()=>QQ,()=>YQ],qY=[9,b,KLe,0,()=>JQ,()=>XQ],HY=[9,b,XLe,0,()=>ZQ,()=>e7],jY=[9,b,MNe,0,()=>S7,()=>Zs],zY=[9,b,ONe,0,()=>y7,()=>E7],VY=[9,b,NNe,0,()=>_7,()=>Zs],WY=[9,b,BNe,0,()=>R7,()=>C7],KY=[9,b,HNe,0,()=>b7,()=>A7],QY=[9,b,VNe,0,()=>x7,()=>Zs],YY=[9,b,XNe,0,()=>T7,()=>v7],JY=[9,b,KNe,0,()=>D7,()=>Zs],XY=[9,b,YNe,0,()=>I7,()=>Zs],ZY=[9,b,t3e,0,()=>w7,()=>P7],eJ=[9,b,b3e,0,()=>L7,()=>Zs],tJ=[9,b,D3e,0,()=>F7,()=>B7],rJ=[9,b,k3e,0,()=>U7,()=>G7],nJ=[9,b,$3e,0,()=>H7,()=>j7],oJ=[9,b,B3e,0,()=>z7,()=>V7],sJ=[9,b,J3e,0,()=>K7,()=>Q7],iJ=[9,b,iFe,0,()=>Y7,()=>J7],aJ=[9,b,nFe,0,()=>X7,()=>Z7],cJ=[9,b,cFe,0,()=>eY,()=>tY],NFe=t=>({apiVersion:"2010-08-01",base64Decoder:t?.base64Decoder??dke,base64Encoder:t?.base64Encoder??lke,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ike,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Eke,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new ske}],logger:t?.logger??new A$e,protocol:t?.protocol??gke,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:CK,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:t?.serviceId??"CloudWatch",sha256:t?.sha256??hke,urlParser:t?.urlParser??j$e,utf8Decoder:t?.utf8Decoder??uke,utf8Encoder:t?.utf8Encoder??cke}),FFe=t=>{x$e(process.version);let e=O$e(t),r=()=>e().then(T$e),n=NFe(t);c$e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Pi(ike,o),bodyLengthChecker:t?.bodyLengthChecker??pke,credentialDefaultProvider:t?.credentialDefaultProvider??ake,defaultUserAgentProvider:t?.defaultUserAgentProvider??u$e({serviceId:n.serviceId,clientVersion:Ake.version}),disableRequestCompression:t?.disableRequestCompression??Pi(tke,t),maxAttempts:t?.maxAttempts??Pi(Y$e,t),region:t?.region??Pi(M$e,{...L$e,...o}),requestHandler:mke.create(t?.requestHandler??r),requestMinCompressionSizeBytes:t?.requestMinCompressionSizeBytes??Pi(eke,t),retryMode:t?.retryMode??Pi({...Q$e,default:async()=>(await r()).retryMode||K$e},t),streamCollector:t?.streamCollector??fke,useDualstackEndpoint:t?.useDualstackEndpoint??Pi(k$e,o),useFipsEndpoint:t?.useFipsEndpoint??Pi($$e,o),userAgentAppId:t?.userAgentAppId??Pi(l$e,o)}},BFe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},UFe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),GFe=(t,e)=>{let r=Object.assign(d$e(t),v$e(t),z$e(t),BFe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,p$e(r),D$e(r),V$e(r),UFe(r))},Cn=class extends U8{config;constructor(...[e]){let r=FFe(e||{});super(r),this.initConfig=r;let n=Rke(r),o=f$e(n),s=J$e(o),i=N$e(s),a=m$e(i),c=q$e(a),u=_ke(c),f=rke(u),m=GFe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(Z$e(this.config)),this.middlewareStack.use(g$e(this.config)),this.middlewareStack.use(X$e(this.config)),this.middlewareStack.use(W$e(this.config)),this.middlewareStack.use(h$e(this.config)),this.middlewareStack.use(S$e(this.config)),this.middlewareStack.use(y$e(this.config)),this.middlewareStack.use(E$e(this.config,{httpAuthSchemeParametersProvider:Ske,identityProviderConfigProvider:async y=>new _$e({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(R$e(this.config))}destroy(){super.destroy()}},X=I$e(Cke,"GraniteServiceVersion20100801","CloudWatchClient",H$e),Z={},ee=(t,e,r,n)=>[],qFe=(t,e,r,n)=>[nke(r,{encodings:["gzip"]})],t_=class extends X(Z,ee,"AssociateDatasetKmsKey",cY){},r_=class extends X(Z,ee,"CreateResourceMetricsConfiguration",uY){},n_=class extends X(Z,ee,"DeleteAlarmMuteRule",lY){},o_=class extends X(Z,ee,"DeleteAlarms",dY){},s_=class extends X(Z,ee,"DeleteAnomalyDetector",pY){},i_=class extends X(Z,ee,"DeleteDashboards",fY){},a_=class extends X(Z,ee,"DeleteInsightRules",mY){},c_=class extends X(Z,ee,"DeleteMetricStream",gY){},u_=class extends X(Z,ee,"DeleteResourceMetricsConfiguration",hY){},l_=class extends X(Z,ee,"DescribeAlarmContributors",SY){},xm=class extends X(Z,ee,"DescribeAlarmHistory",yY){},Na=class extends X(Z,ee,"DescribeAlarms",EY){},d_=class extends X(Z,ee,"DescribeAlarmsForMetric",_Y){},Tm=class extends X(Z,ee,"DescribeAnomalyDetectors",RY){},vm=class extends X(Z,ee,"DescribeInsightRules",CY){},p_=class extends X(Z,ee,"DisableAlarmActions",bY){},f_=class extends X(Z,ee,"DisableInsightRules",AY){},m_=class extends X(Z,ee,"DisassociateDatasetKmsKey",xY){},g_=class extends X(Z,ee,"EnableAlarmActions",TY){},h_=class extends X(Z,ee,"EnableInsightRules",vY){},Dm=class extends X(Z,ee,"GetAlarmMuteRule",DY){},S_=class extends X(Z,ee,"GetDashboard",IY){},y_=class extends X(Z,ee,"GetDataset",wY){},E_=class extends X(Z,ee,"GetInsightRuleReport",PY){},Im=class extends X(Z,ee,"GetMetricData",OY){},__=class extends X(Z,ee,"GetMetricStatistics",$Y){},R_=class extends X(Z,ee,"GetMetricStream",kY){},C_=class extends X(Z,ee,"GetMetricWidgetImage",MY){},b_=class extends X(Z,ee,"GetOTelEnrichment",LY){},A_=class extends X(Z,ee,"GetResourceMetricsConfiguration",NY){},wm=class extends X(Z,ee,"ListAlarmMuteRules",FY){},Pm=class extends X(Z,ee,"ListDashboards",BY){},Om=class extends X(Z,ee,"ListManagedInsightRules",UY){},$m=class extends X(Z,ee,"ListMetrics",GY){},km=class extends X(Z,ee,"ListMetricStreams",qY){},x_=class extends X(Z,ee,"ListTagsForResource",HY){},T_=class extends X(Z,ee,"PutAlarmMuteRule",jY){},v_=class extends X(Z,ee,"PutAnomalyDetector",zY){},D_=class extends X(Z,ee,"PutCompositeAlarm",VY){},I_=class extends X(Z,ee,"PutDashboard",WY){},w_=class extends X(Z,ee,"PutInsightRule",KY){},P_=class extends X(Z,ee,"PutLogAlarm",QY){},O_=class extends X(Z,ee,"PutManagedInsightRules",YY){},$_=class extends X(Z,ee,"PutMetricAlarm",JY){},k_=class extends X(Z,qFe,"PutMetricData",XY){},M_=class extends X(Z,ee,"PutMetricStream",ZY){},L_=class extends X(Z,ee,"SetAlarmState",eJ){},N_=class extends X(Z,ee,"StartMetricStreams",tJ){},F_=class extends X(Z,ee,"StartOTelEnrichment",rJ){},B_=class extends X(Z,ee,"StopMetricStreams",nJ){},U_=class extends X(Z,ee,"StopOTelEnrichment",oJ){},G_=class extends X(Z,ee,"TagResource",sJ){},q_=class extends X(Z,ee,"UntagResource",iJ){},H_=class extends X(Z,ee,"UpdateOTelEnrichment",aJ){},j_=class extends X(Z,ee,"UpdateResourceMetricsConfiguration",cJ){},uJ=Js(Cn,xm,"NextToken","NextToken","MaxRecords"),lJ=Js(Cn,Na,"NextToken","NextToken","MaxRecords"),dJ=Js(Cn,Tm,"NextToken","NextToken","MaxResults"),pJ=Js(Cn,vm,"NextToken","NextToken","MaxResults"),fJ=Js(Cn,Im,"NextToken","NextToken","MaxDatapoints"),mJ=Js(Cn,wm,"NextToken","NextToken","MaxRecords"),gJ=Js(Cn,Pm,"NextToken","NextToken",""),hJ=Js(Cn,Om,"NextToken","NextToken","MaxResults"),SJ=Js(Cn,$m,"NextToken","NextToken",""),yJ=Js(Cn,km,"NextToken","NextToken","MaxResults"),EJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.MetricAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},HFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,EJ),_J=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,EJ);return V_(n)},RJ=async(t,e)=>{let r;try{return r=await t.send(new Dm(e)),{state:Oi.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:Oi.RETRY,reason:r}}return{state:Oi.RETRY,reason:r}},jFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,RJ),CJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,RJ);return V_(n)},bJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.CompositeAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},zFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,bJ),AJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,bJ);return V_(n)},xJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.LogAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},VFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,xJ),TJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,xJ);return V_(n)},WFe={AssociateDatasetKmsKeyCommand:t_,CreateResourceMetricsConfigurationCommand:r_,DeleteAlarmMuteRuleCommand:n_,DeleteAlarmsCommand:o_,DeleteAnomalyDetectorCommand:s_,DeleteDashboardsCommand:i_,DeleteInsightRulesCommand:a_,DeleteMetricStreamCommand:c_,DeleteResourceMetricsConfigurationCommand:u_,DescribeAlarmContributorsCommand:l_,DescribeAlarmHistoryCommand:xm,DescribeAlarmsCommand:Na,DescribeAlarmsForMetricCommand:d_,DescribeAnomalyDetectorsCommand:Tm,DescribeInsightRulesCommand:vm,DisableAlarmActionsCommand:p_,DisableInsightRulesCommand:f_,DisassociateDatasetKmsKeyCommand:m_,EnableAlarmActionsCommand:g_,EnableInsightRulesCommand:h_,GetAlarmMuteRuleCommand:Dm,GetDashboardCommand:S_,GetDatasetCommand:y_,GetInsightRuleReportCommand:E_,GetMetricDataCommand:Im,GetMetricStatisticsCommand:__,GetMetricStreamCommand:R_,GetMetricWidgetImageCommand:C_,GetOTelEnrichmentCommand:b_,GetResourceMetricsConfigurationCommand:A_,ListAlarmMuteRulesCommand:wm,ListDashboardsCommand:Pm,ListManagedInsightRulesCommand:Om,ListMetricsCommand:$m,ListMetricStreamsCommand:km,ListTagsForResourceCommand:x_,PutAlarmMuteRuleCommand:T_,PutAnomalyDetectorCommand:v_,PutCompositeAlarmCommand:D_,PutDashboardCommand:I_,PutInsightRuleCommand:w_,PutLogAlarmCommand:P_,PutManagedInsightRulesCommand:O_,PutMetricAlarmCommand:$_,PutMetricDataCommand:k_,PutMetricStreamCommand:M_,SetAlarmStateCommand:L_,StartMetricStreamsCommand:N_,StartOTelEnrichmentCommand:F_,StopMetricStreamsCommand:B_,StopOTelEnrichmentCommand:U_,TagResourceCommand:G_,UntagResourceCommand:q_,UpdateOTelEnrichmentCommand:H_,UpdateResourceMetricsConfigurationCommand:j_},KFe={paginateDescribeAlarmHistory:uJ,paginateDescribeAlarms:lJ,paginateDescribeAnomalyDetectors:dJ,paginateDescribeInsightRules:pJ,paginateGetMetricData:fJ,paginateListAlarmMuteRules:mJ,paginateListDashboards:gJ,paginateListManagedInsightRules:hJ,paginateListMetrics:SJ,paginateListMetricStreams:yJ},QFe={waitUntilAlarmExists:_J,waitUntilCompositeAlarmExists:AJ,waitUntilLogAlarmExists:TJ,waitUntilAlarmMuteRuleExists:CJ},z_=class extends Cn{};w$e(WFe,z_,{paginators:KFe,waiters:QFe});var YFe={Alarm:"Alarm",ExtensionPeriod:"ExtensionPeriod",WaitPeriod:"WaitPeriod"},JFe={CompositeAlarm:"CompositeAlarm",LogAlarm:"LogAlarm",MetricAlarm:"MetricAlarm"},XFe={Action:"Action",AlarmContributorAction:"AlarmContributorAction",AlarmContributorStateUpdate:"AlarmContributorStateUpdate",ConfigurationUpdate:"ConfigurationUpdate",StateUpdate:"StateUpdate"},ZFe={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",SCHEDULED:"SCHEDULED"},eBe={Bits:"Bits",Bits_Second:"Bits/Second",Bytes:"Bytes",Bytes_Second:"Bytes/Second",Count:"Count",Count_Second:"Count/Second",Gigabits:"Gigabits",Gigabits_Second:"Gigabits/Second",Gigabytes:"Gigabytes",Gigabytes_Second:"Gigabytes/Second",Kilobits:"Kilobits",Kilobits_Second:"Kilobits/Second",Kilobytes:"Kilobytes",Kilobytes_Second:"Kilobytes/Second",Megabits:"Megabits",Megabits_Second:"Megabits/Second",Megabytes:"Megabytes",Megabytes_Second:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",Terabits_Second:"Terabits/Second",Terabytes:"Terabytes",Terabytes_Second:"Terabytes/Second"},tBe={PENDING_TRAINING:"PENDING_TRAINING",TRAINED:"TRAINED",TRAINED_INSUFFICIENT_DATA:"TRAINED_INSUFFICIENT_DATA"},rBe={METRIC_MATH:"METRIC_MATH",SINGLE_METRIC:"SINGLE_METRIC"},nBe={GreaterThanOrEqualToThreshold:"GreaterThanOrEqualToThreshold",GreaterThanThreshold:"GreaterThanThreshold",GreaterThanUpperThreshold:"GreaterThanUpperThreshold",LessThanLowerOrGreaterThanUpperThreshold:"LessThanLowerOrGreaterThanUpperThreshold",LessThanLowerThreshold:"LessThanLowerThreshold",LessThanOrEqualToThreshold:"LessThanOrEqualToThreshold",LessThanThreshold:"LessThanThreshold"},oBe={ALARM:"ALARM",INSUFFICIENT_DATA:"INSUFFICIENT_DATA",OK:"OK"},sBe={TIMESTAMP_ASCENDING:"TimestampAscending",TIMESTAMP_DESCENDING:"TimestampDescending"},iBe={EVALUATION_ERROR:"EVALUATION_ERROR",EVALUATION_FAILURE:"EVALUATION_FAILURE",PARTIAL_DATA:"PARTIAL_DATA"},aBe={Average:"Average",Maximum:"Maximum",Minimum:"Minimum",SampleCount:"SampleCount",Sum:"Sum"},cBe={COMPLETE:"Complete",FORBIDDEN:"Forbidden",INTERNAL_ERROR:"InternalError",PARTIAL_DATA:"PartialData"},uBe={JSON:"json",OPEN_TELEMETRY_0_7:"opentelemetry0.7",OPEN_TELEMETRY_1_0:"opentelemetry1.0"},lBe={RUNNING:"Running",STOPPED:"Stopped"},dBe={PT3H:"PT3H"};R.ActionsSuppressedBy=YFe;R.AlarmContributor$=bK;R.AlarmHistoryItem$=AK;R.AlarmMuteRuleStatus=ZFe;R.AlarmMuteRuleSummary$=xK;R.AlarmPromQLCriteria$=TK;R.AlarmType=JFe;R.AnomalyDetector$=vK;R.AnomalyDetectorConfiguration$=k1;R.AnomalyDetectorStateValue=tBe;R.AnomalyDetectorType=rBe;R.AssociateDatasetKmsKey$=cY;R.AssociateDatasetKmsKeyCommand=t_;R.AssociateDatasetKmsKeyInput$=DK;R.AssociateDatasetKmsKeyOutput$=IK;R.CloudWatch=z_;R.CloudWatchClient=Cn;R.CloudWatchServiceException=ut;R.CloudWatchServiceException$=rK;R.ComparisonOperator=nBe;R.CompositeAlarm$=wK;R.ConcurrentModificationException=UE;R.ConcurrentModificationException$=nK;R.ConflictException=ME;R.ConflictException$=oK;R.CreateResourceMetricsConfiguration$=uY;R.CreateResourceMetricsConfigurationCommand=r_;R.CreateResourceMetricsConfigurationInput$=PK;R.CreateResourceMetricsConfigurationOutput$=OK;R.DashboardEntry$=$K;R.DashboardInvalidInputError=GE;R.DashboardInvalidInputError$=sK;R.DashboardNotFoundError=qE;R.DashboardNotFoundError$=iK;R.DashboardValidationMessage$=kK;R.Datapoint$=MK;R.DeleteAlarmMuteRule$=lY;R.DeleteAlarmMuteRuleCommand=n_;R.DeleteAlarmMuteRuleInput$=LK;R.DeleteAlarms$=dY;R.DeleteAlarmsCommand=o_;R.DeleteAlarmsInput$=NK;R.DeleteAnomalyDetector$=pY;R.DeleteAnomalyDetectorCommand=s_;R.DeleteAnomalyDetectorInput$=FK;R.DeleteAnomalyDetectorOutput$=BK;R.DeleteDashboards$=fY;R.DeleteDashboardsCommand=i_;R.DeleteDashboardsInput$=UK;R.DeleteDashboardsOutput$=GK;R.DeleteInsightRules$=mY;R.DeleteInsightRulesCommand=a_;R.DeleteInsightRulesInput$=qK;R.DeleteInsightRulesOutput$=HK;R.DeleteMetricStream$=gY;R.DeleteMetricStreamCommand=c_;R.DeleteMetricStreamInput$=jK;R.DeleteMetricStreamOutput$=zK;R.DeleteResourceMetricsConfiguration$=hY;R.DeleteResourceMetricsConfigurationCommand=u_;R.DeleteResourceMetricsConfigurationInput$=VK;R.DeleteResourceMetricsConfigurationOutput$=WK;R.DescribeAlarmContributors$=SY;R.DescribeAlarmContributorsCommand=l_;R.DescribeAlarmContributorsInput$=KK;R.DescribeAlarmContributorsOutput$=QK;R.DescribeAlarmHistory$=yY;R.DescribeAlarmHistoryCommand=xm;R.DescribeAlarmHistoryInput$=YK;R.DescribeAlarmHistoryOutput$=JK;R.DescribeAlarms$=EY;R.DescribeAlarmsCommand=Na;R.DescribeAlarmsForMetric$=_Y;R.DescribeAlarmsForMetricCommand=d_;R.DescribeAlarmsForMetricInput$=XK;R.DescribeAlarmsForMetricOutput$=ZK;R.DescribeAlarmsInput$=eQ;R.DescribeAlarmsOutput$=tQ;R.DescribeAnomalyDetectors$=RY;R.DescribeAnomalyDetectorsCommand=Tm;R.DescribeAnomalyDetectorsInput$=rQ;R.DescribeAnomalyDetectorsOutput$=nQ;R.DescribeInsightRules$=CY;R.DescribeInsightRulesCommand=vm;R.DescribeInsightRulesInput$=oQ;R.DescribeInsightRulesOutput$=sQ;R.Dimension$=iQ;R.DimensionFilter$=aQ;R.DisableAlarmActions$=bY;R.DisableAlarmActionsCommand=p_;R.DisableAlarmActionsInput$=cQ;R.DisableInsightRules$=AY;R.DisableInsightRulesCommand=f_;R.DisableInsightRulesInput$=uQ;R.DisableInsightRulesOutput$=lQ;R.DisassociateDatasetKmsKey$=xY;R.DisassociateDatasetKmsKeyCommand=m_;R.DisassociateDatasetKmsKeyInput$=dQ;R.DisassociateDatasetKmsKeyOutput$=pQ;R.EnableAlarmActions$=TY;R.EnableAlarmActionsCommand=g_;R.EnableAlarmActionsInput$=fQ;R.EnableInsightRules$=vY;R.EnableInsightRulesCommand=h_;R.EnableInsightRulesInput$=mQ;R.EnableInsightRulesOutput$=gQ;R.Entity$=hQ;R.EntityMetricData$=SQ;R.EvaluationCriteria$=G1;R.EvaluationState=iBe;R.EvaluationWindow$=q1;R.GetAlarmMuteRule$=DY;R.GetAlarmMuteRuleCommand=Dm;R.GetAlarmMuteRuleInput$=yQ;R.GetAlarmMuteRuleOutput$=EQ;R.GetDashboard$=IY;R.GetDashboardCommand=S_;R.GetDashboardInput$=_Q;R.GetDashboardOutput$=RQ;R.GetDataset$=wY;R.GetDatasetCommand=y_;R.GetDatasetInput$=CQ;R.GetDatasetOutput$=bQ;R.GetInsightRuleReport$=PY;R.GetInsightRuleReportCommand=E_;R.GetInsightRuleReportInput$=AQ;R.GetInsightRuleReportOutput$=xQ;R.GetMetricData$=OY;R.GetMetricDataCommand=Im;R.GetMetricDataInput$=TQ;R.GetMetricDataOutput$=vQ;R.GetMetricStatistics$=$Y;R.GetMetricStatisticsCommand=__;R.GetMetricStatisticsInput$=DQ;R.GetMetricStatisticsOutput$=IQ;R.GetMetricStream$=kY;R.GetMetricStreamCommand=R_;R.GetMetricStreamInput$=wQ;R.GetMetricStreamOutput$=PQ;R.GetMetricWidgetImage$=MY;R.GetMetricWidgetImageCommand=C_;R.GetMetricWidgetImageInput$=OQ;R.GetMetricWidgetImageOutput$=$Q;R.GetOTelEnrichment$=LY;R.GetOTelEnrichmentCommand=b_;R.GetOTelEnrichmentInput$=kQ;R.GetOTelEnrichmentOutput$=MQ;R.GetResourceMetricsConfiguration$=NY;R.GetResourceMetricsConfigurationCommand=A_;R.GetResourceMetricsConfigurationInput$=LQ;R.GetResourceMetricsConfigurationOutput$=NQ;R.HistoryItemType=XFe;R.InsightRule$=FQ;R.InsightRuleContributor$=BQ;R.InsightRuleContributorDatapoint$=UQ;R.InsightRuleMetricDatapoint$=GQ;R.InternalServiceFault=zE;R.InternalServiceFault$=aK;R.InvalidFormatFault=XE;R.InvalidFormatFault$=cK;R.InvalidNextToken=QE;R.InvalidNextToken$=uK;R.InvalidParameterCombinationException=VE;R.InvalidParameterCombinationException$=lK;R.InvalidParameterValueException=WE;R.InvalidParameterValueException$=dK;R.KmsAccessDeniedException=LE;R.KmsAccessDeniedException$=pK;R.KmsKeyDisabledException=NE;R.KmsKeyDisabledException$=fK;R.KmsKeyNotFoundException=FE;R.KmsKeyNotFoundException$=mK;R.LabelOptions$=qQ;R.LimitExceededException=YE;R.LimitExceededException$=gK;R.LimitExceededFault=JE;R.LimitExceededFault$=hK;R.ListAlarmMuteRules$=FY;R.ListAlarmMuteRulesCommand=wm;R.ListAlarmMuteRulesInput$=HQ;R.ListAlarmMuteRulesOutput$=jQ;R.ListDashboards$=BY;R.ListDashboardsCommand=Pm;R.ListDashboardsInput$=zQ;R.ListDashboardsOutput$=VQ;R.ListManagedInsightRules$=UY;R.ListManagedInsightRulesCommand=Om;R.ListManagedInsightRulesInput$=WQ;R.ListManagedInsightRulesOutput$=KQ;R.ListMetricStreams$=qY;R.ListMetricStreamsCommand=km;R.ListMetricStreamsInput$=JQ;R.ListMetricStreamsOutput$=XQ;R.ListMetrics$=GY;R.ListMetricsCommand=$m;R.ListMetricsInput$=QQ;R.ListMetricsOutput$=YQ;R.ListTagsForResource$=HY;R.ListTagsForResourceCommand=x_;R.ListTagsForResourceInput$=ZQ;R.ListTagsForResourceOutput$=e7;R.LogAlarm$=t7;R.ManagedRule$=r7;R.ManagedRuleDescription$=n7;R.ManagedRuleState$=o7;R.MessageData$=s7;R.Metric$=M1;R.MetricAlarm$=i7;R.MetricCharacteristics$=L1;R.MetricDataQuery$=a7;R.MetricDataResult$=c7;R.MetricDatum$=u7;R.MetricMathAnomalyDetector$=dR;R.MetricStat$=l7;R.MetricStreamEntry$=d7;R.MetricStreamFilter$=p7;R.MetricStreamOutputFormat=uBe;R.MetricStreamStatisticsConfiguration$=f7;R.MetricStreamStatisticsMetric$=m7;R.MissingRequiredParameterException=KE;R.MissingRequiredParameterException$=SK;R.MuteTargets$=N1;R.OTelEnrichmentMetricSelector$=g7;R.OTelEnrichmentStatus=lBe;R.PartialFailure$=h7;R.PutAlarmMuteRule$=jY;R.PutAlarmMuteRuleCommand=T_;R.PutAlarmMuteRuleInput$=S7;R.PutAnomalyDetector$=zY;R.PutAnomalyDetectorCommand=v_;R.PutAnomalyDetectorInput$=y7;R.PutAnomalyDetectorOutput$=E7;R.PutCompositeAlarm$=VY;R.PutCompositeAlarmCommand=D_;R.PutCompositeAlarmInput$=_7;R.PutDashboard$=WY;R.PutDashboardCommand=I_;R.PutDashboardInput$=R7;R.PutDashboardOutput$=C7;R.PutInsightRule$=KY;R.PutInsightRuleCommand=w_;R.PutInsightRuleInput$=b7;R.PutInsightRuleOutput$=A7;R.PutLogAlarm$=QY;R.PutLogAlarmCommand=P_;R.PutLogAlarmInput$=x7;R.PutManagedInsightRules$=YY;R.PutManagedInsightRulesCommand=O_;R.PutManagedInsightRulesInput$=T7;R.PutManagedInsightRulesOutput$=v7;R.PutMetricAlarm$=JY;R.PutMetricAlarmCommand=$_;R.PutMetricAlarmInput$=D7;R.PutMetricData$=XY;R.PutMetricDataCommand=k_;R.PutMetricDataInput$=I7;R.PutMetricStream$=ZY;R.PutMetricStreamCommand=M_;R.PutMetricStreamInput$=w7;R.PutMetricStreamOutput$=P7;R.Range$=O7;R.RecentlyActive=dBe;R.ResourceConflict=HE;R.ResourceConflict$=yK;R.ResourceMetricSelection$=$7;R.ResourceMetricsConfiguration$=pR;R.ResourceNotFound=jE;R.ResourceNotFound$=EK;R.ResourceNotFoundException=BE;R.ResourceNotFoundException$=_K;R.Rule$=F1;R.ScanBy=sBe;R.Schedule$=k7;R.ScheduleConfiguration$=M7;R.ScheduledQueryConfiguration$=B1;R.SetAlarmState$=eJ;R.SetAlarmStateCommand=L_;R.SetAlarmStateInput$=L7;R.SingleMetricAnomalyDetector$=fR;R.SlidingWindow$=N7;R.StandardUnit=eBe;R.StartMetricStreams$=tJ;R.StartMetricStreamsCommand=N_;R.StartMetricStreamsInput$=F7;R.StartMetricStreamsOutput$=B7;R.StartOTelEnrichment$=rJ;R.StartOTelEnrichmentCommand=F_;R.StartOTelEnrichmentInput$=U7;R.StartOTelEnrichmentOutput$=G7;R.StateValue=oBe;R.Statistic=aBe;R.StatisticSet$=q7;R.StatusCode=cBe;R.StopMetricStreams$=nJ;R.StopMetricStreamsCommand=B_;R.StopMetricStreamsInput$=H7;R.StopMetricStreamsOutput$=j7;R.StopOTelEnrichment$=oJ;R.StopOTelEnrichmentCommand=U_;R.StopOTelEnrichmentInput$=z7;R.StopOTelEnrichmentOutput$=V7;R.Tag$=W7;R.TagResource$=sJ;R.TagResourceCommand=G_;R.TagResourceInput$=K7;R.TagResourceOutput$=Q7;R.UntagResource$=iJ;R.UntagResourceCommand=q_;R.UntagResourceInput$=Y7;R.UntagResourceOutput$=J7;R.UpdateOTelEnrichment$=aJ;R.UpdateOTelEnrichmentCommand=H_;R.UpdateOTelEnrichmentInput$=X7;R.UpdateOTelEnrichmentOutput$=Z7;R.UpdateResourceMetricsConfiguration$=cJ;R.UpdateResourceMetricsConfigurationCommand=j_;R.UpdateResourceMetricsConfigurationInput$=eY;R.UpdateResourceMetricsConfigurationOutput$=tY;R.ValidationException=ZE;R.ValidationException$=RK;R.WallClockWindow$=rY;R.WarmUpConfiguration$=Hm;R.errorTypeRegistries=CK;R.paginateDescribeAlarmHistory=uJ;R.paginateDescribeAlarms=lJ;R.paginateDescribeAnomalyDetectors=dJ;R.paginateDescribeInsightRules=pJ;R.paginateGetMetricData=fJ;R.paginateListAlarmMuteRules=mJ;R.paginateListDashboards=gJ;R.paginateListManagedInsightRules=hJ;R.paginateListMetricStreams=yJ;R.paginateListMetrics=SJ;R.waitForAlarmExists=HFe;R.waitForAlarmMuteRuleExists=jFe;R.waitForCompositeAlarmExists=zFe;R.waitForLogAlarmExists=VFe;R.waitUntilAlarmExists=_J;R.waitUntilAlarmMuteRuleExists=CJ;R.waitUntilCompositeAlarmExists=AJ;R.waitUntilLogAlarmExists=TJ});var bn,ld,ki,dd,Ae,hR,eu,no=g(()=>{bn={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ld=bn.WHEN_SUPPORTED,ki={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},dd=bn.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(Ae||(Ae={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(hR||(hR={}));eu=Ae.CRC32});var Ba,pd,H1=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Ba||(Ba={}));pd=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var j1,z1,OJ,$J=g(()=>{no();H1();j1="AWS_REQUEST_CHECKSUM_CALCULATION",z1="request_checksum_calculation",OJ={environmentVariableSelector:t=>pd(t,j1,bn,Ba.ENV),configFileSelector:t=>pd(t,z1,bn,Ba.CONFIG),default:ld}});var V1,W1,kJ,MJ=g(()=>{no();H1();V1="AWS_RESPONSE_CHECKSUM_VALIDATION",W1="response_checksum_validation",kJ={environmentVariableSelector:t=>pd(t,V1,ki,Ba.ENV),configFileSelector:t=>pd(t,W1,ki,Ba.CONFIG),default:dd}});var LJ,NJ=g(()=>{no();LJ=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===bn.WHEN_SUPPORTED||e?eu:void 0});var tu,SR=g(()=>{no();tu=t=>t===Ae.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var FJ,BJ=g(()=>{FJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var UJ,GJ=g(()=>{UJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var yR,K1=g(()=>{j();yR=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!$u(t)});var qJ,ER,HJ=g(()=>{qJ=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;qJ[t]=e>>>0}ER=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^qJ[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var _R,jJ=g(()=>{HJ();_R=ER});var zJ,VJ=g(()=>{zJ={CrtCrc64Nvme:null}});var pBe,Q1,jm,Y1,J1,X1,Z1,eM,tM,rM,fBe,RR,WJ=g(()=>{pBe=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},fBe=()=>{Q1||(Q1=pBe(),[jm,Y1,J1,X1,Z1,eM,tM,rM]=Q1)},RR=class{c1=0;c2=0;constructor(){fBe(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=rM[i]^tM[a]^eM[c]^Z1[u]^X1[f]^J1[m]^Y1[y]^jm[_],s=rM[i+1]^tM[a+1]^eM[c+1]^Z1[u+1]^X1[f+1]^J1[m+1]^Y1[y+1]^jm[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^jm[i],s^=jm[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var zm,KJ=g(()=>{VJ();WJ();zm=class{impl;constructor(){let e=zJ.CrtCrc64Nvme;this.impl=e?new e:new RR}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var QJ=g(()=>{jJ();KJ();On()});var YJ,nM,oM=g(()=>{no();YJ=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],nM=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME]});var CR,sM=g(()=>{QJ();no();oM();CR=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case Ae.MD5:return r?.MD5??e.md5;case Ae.CRC32:return r?.CRC32??Do;case Ae.CRC32C:return r?.CRC32C??_R;case Ae.CRC64NVME:return r?.CRC64NVME??zm;case Ae.SHA1:return r?.SHA1??e.sha1;case Ae.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${YJ}, or provide an implementation to the client constructor checksums field.`)}}});var bR,iM=g(()=>{j();bR=(t,e)=>{let r=new t;return r.update(bt(e||"")),r.digest()}});var AR,xR,aM=g(()=>{Ee();V();j();no();NJ();SR();BJ();GJ();K1();sM();iM();AR={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xR=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request)||UJ("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),C=y?.name,A=y?.httpHeader;C&&!i[C]&&(_===bn.WHEN_SUPPORTED||m)&&(i[C]=eu,A&&(c[A]=eu));let x=LJ(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),T=a,I=c;if(x){switch(x){case Ae.CRC32:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let q=tu(x),H=CR(x,t);if(yR(a)){let{getAwsChunkedEncodingStream:me,bodyLengthChecker:et}=t;T=me(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?kS(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:et,checksumLocationName:q,checksumAlgorithmFn:H,streamHasher:f}),I={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":q},delete I["content-length"]}else if(!FJ(q,c)){let me=await bR(H,a);I={...c,[q]:u(me)}}}try{return await r({...o,request:{...s,headers:I,body:T}})}catch(q){if(q instanceof Error&&q.name==="InvalidChunkSizeError")try{q.message.endsWith(".")||(q.message+="."),q.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw q}}});var JJ,XJ,ZJ=g(()=>{Ee();no();JJ={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},XJ=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case bn.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case bn.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case ki.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case ki.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===ki.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var TR,cM=g(()=>{oM();TR=(t=[])=>{let e=[],r=nM.length;for(let n of t){let o=nM.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var eX,tX=g(()=>{eX=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var rX,nX=g(()=>{iM();rX=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await bR(e,t))});var oX,sX=g(()=>{j();no();nX();cM();SR();K1();sM();oX=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=TR(r),{body:s,headers:i}=t;for(let a of o){let c=tu(a),u=i[c];if(u){let f;try{f=CR(a,e)}catch(_){if(a===Ae.CRC64NVME){n?.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(yR(s)){t.body=$S({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await rX(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var iX,aX,cX=g(()=>{V();cM();SR();tX();sX();iX={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},aX=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(A=>{let x=tu(A);return a.headers[x]!==void 0}),_=TR([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(A=>{let x=tu(A),T=a.headers[x];return!T||eX(T)}))return i;await oX(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var uX,lX=g(()=>{ZJ();aM();cX();uX=(t,e)=>({applyToStack:r=>{r.add(xR(t,e),AR),r.addRelativeTo(XJ(t,e),JJ),r.addRelativeTo(aX(t,e),iX)}})});var dX,pX=g(()=>{J();no();dX=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:we(e??ld),responseChecksumValidation:we(r??dd),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var fX={};Ct(fX,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>z1,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>W1,ChecksumAlgorithm:()=>Ae,ChecksumLocation:()=>hR,DEFAULT_CHECKSUM_ALGORITHM:()=>eu,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>ld,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>dd,ENV_REQUEST_CHECKSUM_CALCULATION:()=>j1,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>V1,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>OJ,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>kJ,RequestChecksumCalculation:()=>bn,ResponseChecksumValidation:()=>ki,flexibleChecksumsMiddleware:()=>xR,flexibleChecksumsMiddlewareOptions:()=>AR,getFlexibleChecksumsPlugin:()=>uX,resolveFlexibleChecksumsConfig:()=>dX});var mX=g(()=>{$J();MJ();no();aM();lX();pX()});function uM(){return(t,e)=>async r=>{let{request:n}=r;if(re.isInstance(n)&&!(mBe in n.headers)&&!(gBe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Nr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var mBe,gBe,lM,gX,hX=g(()=>{J();V();mBe="content-length",gBe="x-amz-decoded-content-length";lM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},gX=t=>({applyToStack:e=>{e.add(uM(),lM)}})});var vR,DR,dM=g(()=>{vR=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},DR={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function pM(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,We(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var fM,SX,yX=g(()=>{Ee();dM();fM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},SX=t=>({applyToStack:e=>{e.add(pM(t),fM),e.addRelativeTo(vR(t),DR)}})});var fd,mM=g(()=>{fd=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var Ua,gM=g(()=>{Ua=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var md,hM=g(()=>{mM();gM();md=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new fd){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new Ua(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new Ua(Promise.resolve(u)))})),i)):o.set(n,new Ua(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
59
|
+
`+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var EX,_X=g(()=>{hM();EX=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new md(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var SM,yM,RX,CX=g(()=>{V();j();SM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(ft.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{gn(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},yM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},RX=t=>({applyToStack:e=>{e.addRelativeTo(SM(t),yM)}})});var bX,IR,AX=g(()=>{bX=De(rm()),IR=class extends bX.SignatureV4SignWithCredentials{}});var xX,TX,vX,hBe,DX,SBe,yBe,IX,EM=g(()=>{ye();xX="Directory",TX="S3Express",vX="sigv4-s3express",hBe="X-Amz-S3session-Token",DX=hBe.toLowerCase(),SBe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",yBe="s3_disable_express_session_auth",IX={environmentVariableSelector:t=>Ve(t,SBe,Be.ENV),configFileSelector:t=>Ve(t,yBe,Be.CONFIG),default:!1}});var _M,RM,wX,PX=g(()=>{Ee();V();EM();_M=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===vX;if((o.properties?.backend===TX||o.properties?.bucketType===xX)&&(We(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,re.isInstance(n.request)&&c.sessionToken&&(n.request.headers[DX]=c.sessionToken)}}}return e(n)},RM={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},wX=t=>({applyToStack:e=>{e.add(_M(t),RM)}})});var OX,$X=g(()=>{OX=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var EBe,_Be,kX,CM,MX,LX=g(()=>{jt();J();V();$X();EBe=t=>e=>{throw e},_Be=(t,e)=>{},kX=Oc,CM=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await OX(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||EBe)(i));return(c.successHandler||_Be)(f.response,i),f},MX=t=>({applyToStack:e=>{e.addRelativeTo(CM(t),Oc)}})});function FX(t){return NX.Readable.from(Buffer.from(t))}var NX,BX=g(()=>{NX=require("node:stream")});var RBe,bM,CBe,AM,UX,GX=g(()=>{V();BX();RBe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},bM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!ft.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await CBe(a,t);if(s.body=FX(c),c.length===0&&RBe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},CBe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),AM={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},UX=t=>({applyToStack:e=>{e.addRelativeTo(bM(t),AM)}})});var Vm,xM,qX=g(()=>{Vm=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,xM=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var TM=g(()=>{qX()});function HX(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var jX,zX=g(()=>{jX={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function vM({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!Vm(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var DM,VX,WX=g(()=>{TM();zX();DM={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},VX=t=>({applyToStack:e=>{e.add(vM(t),DM),e.addRelativeTo(HX(t),jX)}})});var wR,KX=g(()=>{Di();ae();wR=class extends Ql{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var IM,wM,QX,YX=g(()=>{ye();IM="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",wM="s3_disable_multiregion_access_points",QX={environmentVariableSelector:t=>Ve(t,IM,Be.ENV),configFileSelector:t=>Ve(t,wM,Be.CONFIG),default:!1}});var PM,OM,JX,XX=g(()=>{ye();PM="AWS_S3_USE_ARN_REGION",OM="s3_use_arn_region",JX={environmentVariableSelector:t=>Ve(t,PM,Be.ENV),configFileSelector:t=>Ve(t,OM,Be.CONFIG),default:void 0}});var bBe,ABe,xBe,kM,TBe,ZX,$M,eZ,tZ,rZ,nZ,PR,oZ,sZ,iZ,OR,$R,aZ,kR,MR,Ga,cZ,LR,uZ,NR,lZ,MM=g(()=>{bBe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ABe=/(\d+\.){3}\d+/,xBe=/\.\./,kM=/\./,TBe=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,ZX=/^s3(-external-1)?\.amazonaws\.com$/,$M="amazonaws.com",eZ=t=>typeof t.bucketName=="string",tZ=t=>bBe.test(t)&&!ABe.test(t)&&!xBe.test(t),rZ=t=>{let e=t.match(TBe);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},nZ=t=>ZX.test(t)?["us-east-1",$M]:rZ(t),PR=t=>ZX.test(t)?[t.replace(`.${$M}`,""),$M]:rZ(t),oZ=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},sZ=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},iZ=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},OR=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},$R=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},aZ=(t,e)=>{},kR=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},MR=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ga=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&kM.test(t))throw new Error(`Invalid DNS label ${t}`)},cZ=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},LR=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},uZ=t=>{},NR=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},lZ=t=>{try{t.split(".").forEach(e=>{Ga(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Wm,vBe,DBe,IBe,wBe,PBe,OBe,LM=g(()=>{MM();Wm=t=>(cZ(t),eZ(t)?vBe(t):DBe(t)),vBe=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:nZ(r);return i||!tZ(n)||a&&kM.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},DBe=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:PR(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;oZ({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:C,resource:A}=u;sZ(m),$R(y,{clientPartition:f}),MR(_);let{accesspointName:x,outpostId:T}=LR(A);return m==="s3-object-lambda"?IBe({...t,tlsCompatible:c,bucketName:u,accesspointName:x,hostnameSuffix:o}):C===""?wBe({...t,clientRegion:n,mrapAlias:x,hostnameSuffix:o}):T?PBe({...t,clientRegion:n,outpostId:T,accesspointName:x,hostnameSuffix:o}):OBe({...t,clientRegion:n,accesspointName:x,hostnameSuffix:o})},IBe=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;kR(o);let y=`${i}-${u}`;Ga(y,{tlsCompatible:r});let _=n?f:o,C=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:C,signingService:m}},wBe=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return lZ(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},PBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{kR(e);let m=`${c}-${n.accountId}`;Ga(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return OR(n.service),Ga(o,{tlsCompatible:a}),NR(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},OBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{kR(e);let f=`${a}-${n.accountId}`;Ga(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return iZ(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var NM,FM,dZ,pZ=g(()=>{TM();V();LM();NM=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(re.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(Vm(o)){let a=xM(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:C,bucketEndpoint:A,signingRegion:x,signingService:T}=Wm({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});x&&x!==y&&(r.signing_region=x),T&&T!=="s3"&&(r.signing_service=T),i.hostname=C,s=A}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Wm({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},FM={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},dZ=t=>({applyToStack:e=>{e.addRelativeTo(NM(t),FM)}})});function fZ(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var mZ=g(()=>{});function BM(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&re.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var UM,gZ,hZ=g(()=>{V();UM={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},gZ=t=>({applyToStack:e=>{e.add(BM(t),UM)}})});function GM(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var qM,SZ,yZ=g(()=>{qM={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},SZ=t=>({applyToStack:e=>{e.add(GM(t),qM)}})});function EZ(t){return t}var _Z=g(()=>{});function HM(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?zM(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function zM(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var jM,RZ,CZ=g(()=>{jM={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},RZ=t=>({applyToStack:e=>{e.add(HM(t),jM)}})});var bZ={};Ct(bZ,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>QX,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>IM,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>wM,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>IX,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>JX,NODE_USE_ARN_REGION_ENV_NAME:()=>PM,NODE_USE_ARN_REGION_INI_NAME:()=>OM,S3ExpressIdentityCache:()=>fd,S3ExpressIdentityCacheEntry:()=>Ua,S3ExpressIdentityProviderImpl:()=>md,S3RestXmlProtocol:()=>wR,SignatureV4S3Express:()=>IR,addExpectContinueMiddleware:()=>BM,addExpectContinueMiddlewareOptions:()=>UM,bucketEndpointMiddleware:()=>NM,bucketEndpointMiddlewareOptions:()=>FM,bucketHostname:()=>Wm,checkContentLengthHeader:()=>uM,checkContentLengthHeaderMiddlewareOptions:()=>lM,getAddExpectContinuePlugin:()=>gZ,getArnResources:()=>LR,getBucketEndpointPlugin:()=>dZ,getCheckContentLengthHeaderPlugin:()=>gX,getLocationConstraintPlugin:()=>SZ,getRegionRedirectMiddlewarePlugin:()=>SX,getS3ExpiresMiddlewarePlugin:()=>RX,getS3ExpressHttpSigningPlugin:()=>MX,getS3ExpressPlugin:()=>wX,getSsecPlugin:()=>RZ,getSuffixForArnEndpoint:()=>PR,getThrow200ExceptionsPlugin:()=>UX,getValidateBucketNamePlugin:()=>VX,isValidBase64EncodedSSECustomerKey:()=>zM,locationConstraintMiddleware:()=>GM,locationConstraintMiddlewareOptions:()=>qM,regionRedirectEndpointMiddleware:()=>vR,regionRedirectEndpointMiddlewareOptions:()=>DR,regionRedirectMiddleware:()=>pM,regionRedirectMiddlewareOptions:()=>fM,resolveBucketEndpointConfig:()=>fZ,resolveLocationConstraintConfig:()=>EZ,resolveS3Config:()=>EX,s3ExpiresMiddleware:()=>SM,s3ExpiresMiddlewareOptions:()=>yM,s3ExpressHttpSigningMiddleware:()=>CM,s3ExpressHttpSigningMiddlewareOptions:()=>kX,s3ExpressMiddleware:()=>_M,s3ExpressMiddlewareOptions:()=>RM,ssecMiddleware:()=>HM,ssecMiddlewareOptions:()=>jM,throw200ExceptionsMiddleware:()=>bM,throw200ExceptionsMiddlewareOptions:()=>AM,validateAccountId:()=>MR,validateBucketNameMiddleware:()=>vM,validateBucketNameMiddlewareOptions:()=>DM,validateDNSHostLabel:()=>Ga,validateNoDualstack:()=>uZ,validateNoFIPS:()=>NR,validateOutpostService:()=>OR,validatePartition:()=>$R,validateRegion:()=>aZ});var AZ=g(()=>{hX();dM();yX();_X();CX();mM();gM();hM();AX();EM();PX();LX();GX();WX();KX();YX();XX();pZ();LM();mZ();MM();hZ();yZ();_Z();CZ()});var Tt,xZ,TZ,$Be,Mi,FR=g(()=>{j();Tt=64,xZ=20,TZ=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),$Be=new Int32Array([1518500249,1859775393,2400959708,3395469782]),Mi=class t{digestLength=xZ;state=Int32Array.from(TZ);w;buffer=new Uint8Array(Tt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(Tt*2);for(let o=0;o<Tt;++o)n[o]=54^r[o],n[o+Tt]=92^r[o];this.inner.update(n.subarray(0,Tt)),this.outer.update(n.subarray(Tt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<Tt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===Tt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=Tt;)this.hashBuffer(e,r),r+=Tt,n-=Tt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(TZ),this.buffer=new Uint8Array(Tt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>Tt-8){for(let c=n;c<Tt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<Tt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,Tt);i.setUint32(Tt-8,o,!1),i.setUint32(Tt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(xZ);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(Tt);return i.set(s),i}let n=new Uint8Array(Tt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+($Be[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function MBe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Km.createHmac)("sha1",LBe(this.secret)):(0,Km.createHash)("sha1")}}}function LBe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Km,kBe,VM,vZ=g(()=>{Km=require("node:crypto");FR();kBe=(()=>{try{return(0,Km.createHash)("sha1"),!0}catch{return!1}})(),VM=kBe?MBe():Mi});var NBe,FBe,BBe,BR,UBe,UR,DZ=g(()=>{j();FR();({digest:NBe,sign:FBe,importKey:BBe}=globalThis?.crypto?.subtle??{}),BR=typeof NBe=="function"&&typeof FBe=="function"&&typeof BBe=="function"?globalThis.crypto.subtle:void 0,UBe=8*1024*1024,UR=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=UBe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(BR){if(this.secret){this.finished=!0;let o=await BR.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await BR.sign("HMAC",o,e);return new Uint8Array(s)}let n=await BR.digest("SHA-1",e);return new Uint8Array(n)}let r=new Mi(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Mi(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var IZ={};Ct(IZ,{Sha1:()=>VM,Sha1Js:()=>Mi,Sha1Node:()=>VM,Sha1WebCrypto:()=>UR,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn});var wZ=g(()=>{FR();vZ();DZ();On()});var $N=st(d=>{var{getFlexibleChecksumsPlugin:qa,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:GBe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:qBe,resolveFlexibleChecksumsConfig:HBe}=(mX(),F(fX)),{awsEndpointFunctions:jBe,emitWarningIfUnsupportedVersion:zBe,createDefaultUserAgentProvider:VBe,NODE_APP_ID_CONFIG_OPTIONS:WBe,getAwsRegionExtensionConfiguration:KBe,resolveAwsRegionExtensionConfiguration:QBe,resolveUserAgentConfig:YBe,resolveHostHeaderConfig:JBe,getUserAgentPlugin:XBe,getHostHeaderPlugin:ZBe,getLoggerPlugin:e2e,getRecursionDetectionPlugin:t2e}=(Ee(),F(kn)),{getThrow200ExceptionsPlugin:Ha,getSsecPlugin:yd,getLocationConstraintPlugin:r2e,getS3ExpiresMiddlewarePlugin:gee,getCheckContentLengthHeaderPlugin:n2e,S3RestXmlProtocol:o2e,NODE_USE_ARN_REGION_CONFIG_OPTIONS:s2e,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:i2e,resolveS3Config:a2e,getValidateBucketNamePlugin:c2e,getAddExpectContinuePlugin:u2e,getRegionRedirectMiddlewarePlugin:l2e,getS3ExpressPlugin:d2e,getS3ExpressHttpSigningPlugin:p2e}=(AZ(),F(bZ)),{getHttpAuthSchemeEndpointRuleSetPlugin:f2e,DefaultIdentityProviderConfig:m2e,getHttpSigningPlugin:g2e,createPaginator:cg}=(jt(),F(xl)),{normalizeProvider:hee,getSmithyContext:See,makeBuilder:h2e,ServiceException:S2e,NoOpLogger:y2e,emitWarningIfUnsupportedVersion:E2e,loadConfigsForDefaultMode:_2e,getDefaultExtensionConfiguration:R2e,resolveDefaultRuntimeConfig:C2e,Client:yee,createWaiter:ja,checkExceptions:OA,WaiterState:ei,createAggregatedClient:b2e}=(J(),F(bo)),{Command:A2e}=(J(),F(bo));d.$Command=A2e;d.__Client=yee;var{resolveDefaultsModeConfig:x2e,loadConfig:oo,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:T2e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:v2e,NODE_REGION_CONFIG_OPTIONS:D2e,NODE_REGION_CONFIG_FILE_OPTIONS:I2e,resolveRegionConfig:w2e}=(ye(),F(Br)),{BinaryDecisionDiagram:P2e,EndpointCache:O2e,decideEndpoint:$2e,customEndpointFunctions:k2e,resolveParams:M2e,getEndpointPlugin:L2e,resolveEndpointConfig:N2e}=(He(),F(jp)),{eventStreamSerdeProvider:F2e,resolveEventStreamSerdeConfig:B2e}=(WS(),F(VS)),{parseUrl:U2e,getHttpHandlerExtensionConfiguration:G2e,resolveHttpHandlerRuntimeConfig:q2e,getContentLengthPlugin:H2e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:j2e,NODE_RETRY_MODE_CONFIG_OPTIONS:z2e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:V2e,resolveRetryConfig:W2e,getRetryPlugin:K2e}=(en(),F(nf)),{TypeRegistry:Eee,getSchemaSerdePlugin:Q2e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:Y2e,resolveAwsSdkSigV4AConfig:J2e,AwsSdkSigV4Signer:X2e,AwsSdkSigV4ASigner:Z2e,NODE_SIGV4A_CONFIG_OPTIONS:eUe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:tUe}=(rr(),F(Il)),{SignatureV4MultiRegion:_ee}=rm(),{defaultProvider:rUe}=Cm(),{Sha256:nUe,Md5:oUe,readableStreamHasher:sUe}=(On(),F(Vp)),{toUtf8:iUe,fromUtf8:aUe,sdkStreamMixin:cUe,getAwsChunkedEncodingStream:uUe,toBase64:lUe,fromBase64:dUe,calculateBodyLength:pUe}=(j(),F(To)),{streamCollector:fUe,NodeHttpHandler:mUe}=zs(),{Sha1:gUe}=(wZ(),F(IZ)),Ke="ref",he="argv",Ree="backend",ri="authSchemes",io="disableDoubleEncoding",ao="signingName",Ui="signingRegion",dL="signingRegionSet",te=-1,Ge=!0,so=!1,WM="isSet",Jo="booleanEquals",Oe="stringEquals",jr="coalesce",sn="substring",Vt="",PZ="aws.partition",Cee="partitionResult",OZ="accessPointSuffix",$Z="regionPrefix",GR=t=>"outpostId_ssa_"+t+Vt,bee="hardwareType",KM="ite",Li="isValidHostLabel",Gi="sigv4",kZ="aws.isVirtualHostableS3Bucket",Aee="url",an="getAttr",xee="bucketArn",Ni="--",Tee="arnType",MZ="accesspoint",QM=t=>"accessPointName_ssa_"+t+Vt,pL="s3-object-lambda",Ym="s3-outposts",LZ="bucketPartition",vee="us-east-1",NZ="outpostType",Bn="name",Jm="s3",YM="{url#scheme}://{Bucket}.{url#authority}{url#path}",qR="{url#scheme}://{url#authority}{url#path}",FZ="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",BZ="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",UZ="https://{Bucket}.s3.{partitionResult#dnsSuffix}",GZ=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",qZ=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",fL="sigv4a",HZ="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",jZ="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",zZ="https://s3.{partitionResult#dnsSuffix}",VZ={[Ke]:"UseFIPS"},WZ={[Ke]:"UseDualStack"},cr={[Ke]:"Bucket"},JM={fn:an,[he]:[{[Ke]:Cee},Bn]},KZ={[Ke]:Aee},gd={[Ke]:"Region"},Fi={[Ke]:xee},QZ={[Ke]:Tee},XM={[Ke]:"accessPointName_ssa_1"},HR={fn:an,[he]:[Fi,"region"]},YZ={[Ke]:bee},ZM={fn:an,[he]:[Fi,"service"]},JZ={fn:an,[he]:[Fi,"accountId"]},jR={[Ree]:"S3Express",[ri]:[{[io]:!0,[Bn]:"{_s3e_auth}",[ao]:"s3express",[Ui]:"{Region}"}]},XZ={[Ree]:"S3Express",[ri]:[{[io]:!0,[Bn]:Gi,[ao]:"s3express",[Ui]:"{Region}"}]},zR={[ri]:[{[io]:!0,[Bn]:fL,[ao]:Ym,[dL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{Region}"}]},ar={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:vee}]},vt={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:"{Region}"}]},eL={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:pL,[Ui]:"{bucketArn#region}"}]},Qm={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Jm,[Ui]:"{bucketArn#region}"}]},ZZ={[ri]:[{[io]:!0,[Bn]:fL,[ao]:Ym,[dL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{bucketArn#region}"}]},tL={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:pL,[Ui]:"{Region}"}]},eee=[gd],tee=[{[Ke]:"Endpoint"}],rL=[cr],ree=[cr,0,7,!0],nee=[Fi,"resourceId[1]"],hUe=["*"],oee={conditions:[[WM,eee],[Jo,[{[Ke]:"Accelerate"},Ge]],[Jo,[VZ,Ge]],[Jo,[WZ,Ge]],[WM,tee],[WM,rL],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,6,Ge]},Vt]},"--x-s3"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:ree},Vt]},"--xa-s3"]],[PZ,eee,Cee],[sn,ree,OZ],[Oe,[{[Ke]:OZ},"--op-s3"]],[sn,[cr,8,12,Ge],$Z],[sn,[cr,32,49,Ge],GR(2)],[sn,[cr,49,50,Ge],bee],[Jo,[{[Ke]:"ForcePathStyle"},Ge]],[Oe,[JM,"aws-cn"]],[KM,[WZ,".dualstack",Vt],"_s3e_ds"],[Li,[{[Ke]:GR(2)},so]],[KM,[VZ,"-fips",Vt],"_s3e_fips"],[KM,[{fn:jr,[he]:[{[Ke]:"DisableS3ExpressSessionAuth"},so]},Gi,"sigv4-s3express"],"_s3e_auth"],[kZ,[cr,so]],["parseURL",tee,Aee],[Jo,[{fn:jr,[he]:[{[Ke]:"UseS3ExpressControlEndpoint"},so]},Ge]],[kZ,[cr,Ge]],[Oe,[{fn:an,[he]:[KZ,"scheme"]},"http"]],[Li,[gd,so]],["aws.parseArn",rL,xee],[an,[{fn:"split",[he]:[cr,Ni,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,4,so]},Vt]},"arn:"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,16,18,Ge]},Vt]},Ni]],[Jo,[{fn:an,[he]:[KZ,"isIp"]},Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,21,23,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,27,29,Ge]},Vt]},Ni]],[Oe,[{[Ke]:$Z},"beta"]],["uriEncode",rL,"uri_encoded_bucket"],[Li,[gd,Ge]],[Jo,[{fn:jr,[he]:[{[Ke]:"UseObjectLambdaEndpoint"},so]},Ge]],[an,[Fi,"resourceId[0]"],Tee],[Oe,[QZ,Vt]],[Oe,[QZ,MZ]],[an,nee,QM(1)],[Oe,[XM,Vt]],[Oe,[HR,Vt]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,14,16,Ge]},Vt]},Ni]],[Oe,[YZ,"e"]],[Oe,[YZ,"o"]],[Oe,[gd,"aws-global"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,19,21,Ge]},Vt]},Ni]],[Oe,[ZM,pL]],[Jo,[{fn:jr,[he]:[{[Ke]:"DisableAccessPoints"},so]},Ge]],[Oe,[ZM,Ym]],[PZ,[HR],LZ],[Li,[XM,Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,26,28,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,15,17,Ge]},Vt]},Ni]],[an,[Fi,"resourceId[4]"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,20,22,Ge]},Vt]},Ni]],[Jo,[{[Ke]:"UseGlobalEndpoint"},Ge]],[Oe,[gd,vee]],[an,nee,GR(1)],[Jo,[{fn:jr,[he]:[{[Ke]:"UseArnRegion"},Ge]},Ge]],[Li,[{[Ke]:GR(1)},so]],[an,[Fi,"resourceId[2]"],NZ],[Oe,[gd,HR]],[Oe,[{fn:an,[he]:[{[Ke]:LZ},Bn]},JM]],[Jo,[{[Ke]:"DisableMultiRegionAccessPoints"},Ge]],[Li,[HR,Ge]],[Oe,[{fn:an,[he]:[Fi,"partition"]},JM]],[Oe,[JZ,Vt]],[Oe,[ZM,Jm]],[Li,[JZ,so]],[an,[Fi,"resourceId[3]"],QM(2)],[Li,[XM,so]],[Oe,[{[Ke]:NZ},MZ]],[Li,[{[Ke]:QM(2)},so]]],results:[[te],[te,"Accelerate cannot be used with FIPS"],[te,"Cannot set dual-stack in combination with a custom endpoint."],[te,"A custom endpoint cannot be combined with FIPS"],[te,"A custom endpoint cannot be combined with S3 Accelerate"],[te,"Partition does not support FIPS"],[te,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",jR],[YM,jR],[te,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",XZ],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",jR],[te,"Unrecognized S3Express bucket name format."],[qR,jR],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",XZ],[te,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",zR],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",zR],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",zR],[te,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[te,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[te,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[te,"Custom endpoint `{Endpoint}` was not a valid URI"],[te,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[FZ,ar],[YM,ar],[FZ,vt],[YM,vt],[BZ,ar],[BZ,vt],[UZ,ar],[UZ,vt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"Invalid region: region was not a valid DNS name."],[te,"S3 Object Lambda does not support Dual-stack"],[te,"S3 Object Lambda does not support S3 Accelerate"],[te,"Access points are not supported for this operation"],[te,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[te,"Invalid ARN: Missing account id"],[GZ(1),eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",eL],[te,qZ(1)],[te,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[te,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[te,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[te,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[te,"Invalid ARN: bucket ARN is missing a region"],[te,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[te,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[te,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[GZ(1),Qm],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Qm],[te,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[te,"S3 MRAP does not support dual-stack"],[te,"S3 MRAP does not support FIPS"],[te,"S3 MRAP does not support S3 Accelerate"],[te,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ri]:[{[io]:Ge,name:fL,[ao]:Jm,[dL]:hUe}]}],[te,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[te,"Invalid Access Point Name"],[te,"S3 Outposts does not support Dual-stack"],[te,"S3 Outposts does not support FIPS"],[te,"S3 Outposts does not support S3 Accelerate"],[te,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",ZZ],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",ZZ],[te,qZ(2)],[te,"Expected an outpost type `accesspoint`, found {outpostType}"],[te,"Invalid ARN: expected an access point name"],[te,"Invalid ARN: Expected a 4-component resource"],[te,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[te,"Invalid ARN: The Outpost Id was not set"],[te,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[te,"Invalid ARN: No ARN type specified"],[te,"Invalid ARN: `{Bucket}` was not a valid ARN"],[te,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[HZ,ar],[HZ,vt],[jZ,ar],[jZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[te,"Path-style addressing cannot be used with S3 Accelerate"],[qR,tL],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",tL],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[qR,ar],[qR,vt],[zZ,ar],[zZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"A region must be set when sending requests to S3."]]},SUe=2,E=1e8,yUe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),EUe=P2e.from(yUe,SUe,oee.conditions,oee.results),_Ue=new O2e({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Dee=(t,e={})=>_Ue.get(t,()=>$2e(EUe,{endpointParams:t,logger:e.logger}));k2e.aws=jBe;var RUe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=See(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await M2e(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},CUe=async(t,e,r)=>({operation:See(e).operation,region:await hee(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),bUe=RUe(CUe);function Iee(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function wee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var AUe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(_ee.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},xUe=t=>{let e=[];switch(t.operation){default:e.push(Iee(t)),e.push(wee(t))}return e},TUe=AUe(Dee,xUe,{"aws.auth#sigv4":Iee,"aws.auth#sigv4a":wee}),vUe=t=>{let e=Y2e(t),r=J2e(e);return Object.assign(r,{authSchemePreference:hee(t.authSchemePreference??[])})},DUe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),IUe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},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"}},k=h2e(IUe,"AmazonS3","S3Client",L2e),An={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},wUe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},PUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},z={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},Pee={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},$t={Bucket:{type:"contextParams",name:"Bucket"}},OUe={},$Ue={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},$A={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},kUe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},ce=(t,e,r,n)=>[Ha(r)],Ed=(t,e,r,n)=>[Ha(r),yd(r)],MUe=(t,e,r,n)=>[Ha(r),r2e(r)],Pr=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],at=(t,e,r,n)=>[],za=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Ha(r)],LUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],NUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),yd(r),gee(r)],FUe=(t,e,r,n)=>[Ha(r),yd(r),gee(r)],Oee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],$ee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r)],BUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),n2e(r),Ha(r),yd(r)],UUe=(t,e,r,n)=>[yd(r)],GUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r),yd(r)],rt=class t extends S2e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},VR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WR=class t extends rt{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KR=class t extends rt{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZR=class t extends rt{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},eC=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends rt{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends rt{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends rt{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends rt{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dC=class t extends rt{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pC=class t extends rt{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qUe="Account",HUe="AnalyticsAndOperator",fC="AccelerateConfiguration",kA="AccessControlList",_d="ACL",kee="AnalyticsConfigurationList",ru="AccessControlPolicy",Mee="AccessControlTranslation",Xm="AnalyticsConfiguration",jUe="AnnotationCount",zUe="AccessDenied",Lee="AbortDate",VUe="AnnotationDirective",Nee="AnnotationEntry",WUe="AnalyticsExportDestination",KUe="AnalyticsFilter",QUe="AllowedHeaders",YUe="AllowedHeader",JUe="AccountId",Fee="AbortIncompleteMultipartUpload",see="AccessKeyId",XUe="AnnotationList",ZUe="AnnotationLimitExceeded",eGe="AllowedMethods",tGe="AbortMultipartUpload",rGe="AbortMultipartUploadOutput",nGe="AbortMultipartUploadRequest",oGe="AllowedMethod",ug="AnnotationName",sGe="AnnotationNameTooLong",iGe="AllowedOrigins",aGe="AllowedOrigin",Bee="AnnotationPayload",cGe="AccessPointAlias",Uee="AccessPointArn",Gee="AnnotationPrefix",uGe="AllowQuotedRecordDelimiter",mL="AcceptRanges",qee="AbortRuleId",mC="AbacStatus",lGe="AnalyticsS3BucketDestination",dGe="ApplyServerSideEncryptionByDefault",pGe="ArchiveStatus",Hee="AccessTier",gC="AnnotationTableConfiguration",jee="AnnotationTableConfigurationResult",fGe="AnnotationTableConfigurationUpdates",lg="And",mGe="Annotations",w="Bucket",gL="BucketArn",gGe="BucketAlreadyExists",hGe="BucketAccountId",SGe="BucketAlreadyOwnedByYou",zee="BlockedEncryptionTypes",hL="BypassGovernanceRetention",yGe="BucketInfo",zr="BucketKeyEnabled",EGe="BucketLifecycleConfiguration",_Ge="BucketLocationName",hC="BucketLoggingStatus",RGe="BucketLocationType",CGe="BucketNamespace",bGe="BucketName",Vee="BytesProcessed",iee="BlockPublicAcls",aee="BlockPublicPolicy",SL="BucketRegion",Wee="BytesReturned",Kee="BytesScanned",dg="Body",yL="Buckets",Qee="Checksum",ge="ChecksumAlgorithm",AGe="CannedACL",xGe="CreateBucket",nL="CreateBucketConfiguration",TGe="CreateBucketMetadataConfiguration",vGe="CreateBucketMetadataConfigurationRequest",DGe="CreateBucketMetadataTableConfiguration",IGe="CreateBucketMetadataTableConfigurationRequest",wGe="CreateBucketOutput",PGe="CreateBucketRequest",Rd="CacheControl",ur="ChecksumCRC32",lr="ChecksumCRC32C",dr="ChecksumCRC64NVME",pg="Cache-Control",OGe="CreationDate",fg="Content-Disposition",Cd="ContentDisposition",$Ge="ContinuationEvent",mg="Content-Encoding",bd="ContentEncoding",kGe="CloudFunction",MGe="CloudFunctionConfiguration",Ad="ContentLanguage",gg="Content-Language",xd="Content-Length",Td="ContentLength",Qe="Content-MD5",pr="ChecksumMD5",Ye="ContentMD5",LGe="CompletedMultipartUpload",NGe="CompleteMultipartUploadOutput",FGe="CreateMultipartUploadOutput",BGe="CompleteMultipartUploadResult",UGe="CompleteMultipartUploadRequest",GGe="CreateMultipartUploadRequest",Yee="CompleteMultipartUpload",qGe="CreateMultipartUpload",EL="ChecksumMode",HGe="CopyObject",jGe="CopyObjectOutput",Jee="CopyObjectResult",SC="CORSConfiguration",_L="CORSRules",RL="CORSRule",zGe="CopyObjectRequest",VGe="CommonPrefix",WGe="CommonPrefixList",KGe="CompletedPartList",Xee="CopyPartResult",QGe="CompletedPart",MA="CommonPrefixes",CL="ContentRange",YGe="ConfirmRemoveSelfBucketAccess",Zee="Content-Range",vd="ConfigurationState",fr="ChecksumSHA1",mr="ChecksumSHA256",gr="ChecksumSHA512",ete="CopySourceIfMatch",tte="CopySourceIfModifiedSince",rte="CopySourceIfNoneMatch",nte="CopySourceIfUnmodifiedSince",JGe="CreateSessionOutput",XGe="CreateSessionResult",ZGe="CopySourceRange",e4e="CreateSessionRequest",ote="CopySourceSSECustomerAlgorithm",bL="CopySourceSSECustomerKey",ste="CopySourceSSECustomerKeyMD5",ite="CSV",ate="CopySourceVersionId",t4e="CSVInput",r4e="CSVOutput",cte="CopySource",n4e="CreateSession",cn="ChecksumType",hg="Content-Type",o4e="ClientToken",Dd="ContentType",s4e="CompressionType",Vr="ContinuationToken",hr="ChecksumXXHASH64",Sr="ChecksumXXHASH3",yr="ChecksumXXHASH128",ute="Condition",i4e="Code",a4e="Comments",lte="Contents",c4e="Cont",cee="Credentials",nu="Days",u4e="DaysAfterInitiation",l4e="DeleteBucket",d4e="DeleteBucketAnalyticsConfiguration",p4e="DeleteBucketAnalyticsConfigurationRequest",f4e="DeleteBucketCors",m4e="DeleteBucketCorsRequest",g4e="DeleteBucketEncryption",h4e="DeleteBucketEncryptionRequest",S4e="DeleteBucketInventoryConfiguration",y4e="DeleteBucketInventoryConfigurationRequest",E4e="DeleteBucketIntelligentTieringConfiguration",_4e="DeleteBucketIntelligentTieringConfigurationRequest",R4e="DeleteBucketLifecycle",C4e="DeleteBucketLifecycleRequest",b4e="DeleteBucketMetadataConfiguration",A4e="DeleteBucketMetadataConfigurationRequest",x4e="DeleteBucketMetricsConfigurationRequest",T4e="DeleteBucketMetricsConfiguration",v4e="DeleteBucketMetadataTableConfiguration",D4e="DeleteBucketMetadataTableConfigurationRequest",I4e="DeleteBucketOwnershipControls",w4e="DeleteBucketOwnershipControlsRequest",P4e="DeleteBucketPolicy",O4e="DeleteBucketPolicyRequest",$4e="DeleteBucketRequest",k4e="DeleteBucketReplicationRequest",M4e="DeleteBucketReplication",L4e="DeleteBucketTagging",N4e="DeleteBucketTaggingRequest",F4e="DeleteBucketWebsite",B4e="DeleteBucketWebsiteRequest",U4e="DataExport",G4e="DefaultEventHold",q4e="DestinationIfMatch",H4e="DestinationIfModifiedSince",j4e="DestinationIfNoneMatch",z4e="DestinationIfUnmodifiedSince",ou="DeleteMarker",V4e="DeleteMarkerEntry",dte="DeleteMarkerReplication",W4e="DeleteMarkerVersionId",pte="DeleteMarkers",AL="DisplayName",K4e="DeletedObject",Q4e="DeleteObjectAnnotation",Y4e="DeleteObjectAnnotationOutput",J4e="DeleteObjectAnnotationRequest",X4e="DeleteObjectOutput",Z4e="DeleteObjectsOutput",eqe="DeleteObjectRequest",tqe="DeleteObjectsRequest",rqe="DeleteObjectTagging",nqe="DeleteObjectTaggingOutput",oqe="DeleteObjectTaggingRequest",sqe="DeletedObjects",iqe="DeleteObject",aqe="DeleteObjects",cqe="DeletePublicAccessBlock",uqe="DeletePublicAccessBlockRequest",lqe="DataRedundancy",fte="DefaultRetention",dqe="DeleteResult",mte="DestinationResult",gte="Date",oL="Delete",pqe="Deleted",Va="Delimiter",LA="Destination",fqe="Description",hte="Details",Id="Error",mqe="EmailAddress",Ste="EventBridgeConfiguration",L="ExpectedBucketOwner",su="EncryptionConfiguration",yte="ErrorCode",gqe="ErrorDetails",xL="ErrorDocument",hqe="EndEvent",Sqe="ExposeHeaders",Ete="EventHoldDuration",yqe="EventHold",Eqe="ExposeHeader",_te="ErrorMessage",_qe="ExpiredObjectDeleteMarker",Rte="ExistingObjectReplication",yC="ExpiresString",Cte="ExpectedSourceBucketOwner",lt="ETag",Rqe="EncryptionTypeList",Cqe="EncryptionTypeMismatch",TL="EncryptionType",Wa="EncodingType",bqe="EventThreshold",bte="ExpressionType",vL="Encryption",Aqe="Enabled",Ate="End",xte="Errors",DL="Events",IL="Event",ti="Expiration",Xo="Expires",Tte="Expression",qi="Filter",vte="FieldDelimiter",xqe="FileHeaderInfo",Tqe="FetchOwner",Dte="FilterRule",vqe="FilterRuleList",Dqe="FilterRules",Iqe="Field",Ite="Format",wqe="Frequency",NA="Grants",Pqe="GetBucketAbac",Oqe="GetBucketAccelerateConfiguration",$qe="GetBucketAccelerateConfigurationOutput",kqe="GetBucketAnalyticsConfigurationOutput",Mqe="GetBucketAccelerateConfigurationRequest",Lqe="GetBucketAnalyticsConfigurationRequest",Nqe="GetBucketAnalyticsConfiguration",Fqe="GetBucketAbacOutput",Bqe="GetBucketAclOutput",Uqe="GetBucketAbacRequest",Gqe="GetBucketAclRequest",qqe="GetBucketAcl",Hqe="GetBucketCors",jqe="GetBucketCorsOutput",zqe="GetBucketCorsRequest",Vqe="GetBucketEncryption",Wqe="GetBucketEncryptionOutput",Kqe="GetBucketEncryptionRequest",Qqe="GetBucketInventoryConfiguration",Yqe="GetBucketInventoryConfigurationOutput",Jqe="GetBucketInventoryConfigurationRequest",Xqe="GetBucketIntelligentTieringConfiguration",Zqe="GetBucketIntelligentTieringConfigurationOutput",eHe="GetBucketIntelligentTieringConfigurationRequest",tHe="GetBucketLocation",rHe="GetBucketLifecycleConfiguration",nHe="GetBucketLifecycleConfigurationOutput",oHe="GetBucketLifecycleConfigurationRequest",sHe="GetBucketLocationOutput",iHe="GetBucketLoggingOutput",aHe="GetBucketLocationRequest",cHe="GetBucketLoggingRequest",uHe="GetBucketLogging",lHe="GetBucketMetadataConfiguration",dHe="GetBucketMetadataConfigurationOutput",pHe="GetBucketMetricsConfigurationOutput",wte="GetBucketMetadataConfigurationResult",fHe="GetBucketMetadataConfigurationRequest",mHe="GetBucketMetricsConfigurationRequest",gHe="GetBucketMetricsConfiguration",hHe="GetBucketMetadataTableConfiguration",SHe="GetBucketMetadataTableConfigurationOutput",Pte="GetBucketMetadataTableConfigurationResult",yHe="GetBucketMetadataTableConfigurationRequest",EHe="GetBucketNotificationConfiguration",_He="GetBucketNotificationConfigurationRequest",RHe="GetBucketOwnershipControls",CHe="GetBucketOwnershipControlsOutput",bHe="GetBucketOwnershipControlsRequest",AHe="GetBucketPolicy",xHe="GetBucketPolicyOutput",THe="GetBucketPolicyRequest",vHe="GetBucketPolicyStatus",DHe="GetBucketPolicyStatusOutput",IHe="GetBucketPolicyStatusRequest",wHe="GetBucketReplication",PHe="GetBucketReplicationOutput",OHe="GetBucketRequestPayment",$He="GetBucketRequestPaymentOutput",kHe="GetBucketRequestPaymentRequest",MHe="GetBucketReplicationRequest",LHe="GetBucketTagging",NHe="GetBucketTaggingOutput",FHe="GetBucketTaggingRequest",BHe="GetBucketVersioning",UHe="GetBucketVersioningOutput",GHe="GetBucketVersioningRequest",qHe="GetBucketWebsite",HHe="GetBucketWebsiteOutput",jHe="GetBucketWebsiteRequest",wd="GrantFullControl",Ote="GlacierJobParameters",zHe="GetObject",VHe="GetObjectAcl",WHe="GetObjectAclOutput",KHe="GetObjectAnnotationOutput",QHe="GetObjectAttributesOutput",YHe="GetObjectAttributesParts",JHe="GetObjectAclRequest",XHe="GetObjectAnnotationRequest",ZHe="GetObjectAttributesResponse",eje="GetObjectAttributesRequest",tje="GetObjectAnnotation",rje="GetObjectAttributes",nje="GetObjectLockConfiguration",oje="GetObjectLockConfigurationOutput",sje="GetObjectLockConfigurationRequest",ije="GetObjectLegalHold",aje="GetObjectLegalHoldOutput",cje="GetObjectLegalHoldRequest",uje="GetObjectOutput",lje="GetObjectRequest",dje="GetObjectRetentionOutput",pje="GetObjectRetentionRequest",fje="GetObjectRetention",mje="GetObjectTagging",gje="GetObjectTaggingOutput",hje="GetObjectTorrentOutput",Sje="GetObjectTaggingRequest",yje="GetObjectTorrentRequest",Eje="GetObjectTorrent",_je="GetPublicAccessBlock",Rje="GetPublicAccessBlockOutput",Cje="GetPublicAccessBlockRequest",Pd="GrantRead",Od="GrantReadACP",wL="GrantWrite",$d="GrantWriteACP",PL="Grant",OL="Grantee",bje="HeadBucket",Aje="HeadBucketOutput",xje="HeadBucketRequest",Tje="HttpErrorCodeReturnedEquals",$te="HostName",vje="HeadObject",Dje="HeadObjectOutput",Ije="HeadObjectRequest",wje="HttpRedirectCode",Wt="Id",Pje="InvalidAnnotationName",Zm="InventoryConfiguration",kte="InventoryConfigurationList",kd="ID",$L="IndexDocument",Oje="InventoryDestination",$je="IsEnabled",kje="InventoryEncryption",Mje="InventoryFilter",Mte="IsLatest",Md="IfMatch",Lje="IfMatchInitiatedTime",Nje="IfMatchLastModifiedTime",Fje="IfMatchSize",kL="If-Modified-Since",Lte="IfModifiedSince",Bje="InitiateMultipartUploadResult",iu="If-Match",Sg="IfNoneMatch",Ld="If-None-Match",Uje="InventoryOptionalFields",Gje="InvalidObjectState",qje="IncludedObjectVersions",Hje="InvalidPrefix",uee="IgnorePublicAcls",jje="IdempotencyParameterMismatch",lee="IsPublic",zje="InvalidRequest",Vje="IsRestoreInProgress",ML="InputSerialization",Wje="InventoryS3BucketDestination",Kje="InventorySchedule",ni="IsTruncated",Qje="IntelligentTieringAndOperator",eg="IntelligentTieringConfiguration",Nte="IntelligentTieringConfigurationList",Fte="InventoryTableConfigurationResult",Yje="InventoryTableConfigurationUpdates",EC="InventoryTableConfiguration",Jje="IntelligentTieringFilter",Bte="IfUnmodifiedSince",LL="If-Unmodified-Since",Xje="InvalidWriteOffset",NL="Initiator",Zje="Initiated",Ute="JSON",e6e="JSONInput",t6e="JSONOutput",_C="JournalTableConfiguration",Gte="JournalTableConfigurationResult",r6e="JournalTableConfigurationUpdates",le="Key",n6e="KeyCount",o6e="KeyId",s6e="KmsKeyArn",FA="KeyMarker",i6e="KMSContext",a6e="KMSKeyArn",c6e="KMSKeyId",u6e="KMSMasterKeyID",l6e="KeyPrefixEquals",RC="Location",d6e="ListAllMyBucketsResult",p6e="ListAllMyDirectoryBucketsResult",f6e="ListBuckets",m6e="ListBucketAnalyticsConfigurations",g6e="ListBucketAnalyticsConfigurationsOutput",h6e="ListBucketAnalyticsConfigurationResult",S6e="ListBucketAnalyticsConfigurationsRequest",y6e="ListBucketInventoryConfigurations",E6e="ListBucketInventoryConfigurationsOutput",_6e="ListBucketInventoryConfigurationsRequest",R6e="ListBucketIntelligentTieringConfigurations",C6e="ListBucketIntelligentTieringConfigurationsOutput",b6e="ListBucketIntelligentTieringConfigurationsRequest",A6e="ListBucketMetricsConfigurations",x6e="ListBucketMetricsConfigurationsOutput",T6e="ListBucketMetricsConfigurationsRequest",v6e="ListBucketsOutput",D6e="ListBucketsRequest",qte="ListBucketResult",sL="LocationConstraint",iL="LifecycleConfiguration",I6e="ListDirectoryBuckets",w6e="ListDirectoryBucketsOutput",P6e="ListDirectoryBucketsRequest",FL="LoggingEnabled",O6e="LifecycleExpiration",$6e="LambdaFunctionArn",k6e="LambdaFunctionConfiguration",M6e="LambdaFunctionConfigurationList",L6e="LambdaFunctionConfigurations",CC="LegalHold",N6e="LocationInfo",F6e="ListInventoryConfigurationsResult",co="LastModified",B6e="ListMetricsConfigurationsResult",U6e="LastModifiedTime",G6e="ListMultipartUploads",q6e="ListMultipartUploadsOutput",H6e="ListMultipartUploadsResult",j6e="ListMultipartUploadsRequest",BA="Last-Modified",z6e="ListObjects",V6e="ListObjectAnnotations",W6e="ListObjectAnnotationsOutput",K6e="ListObjectAnnotationsRequest",Q6e="ListObjectsOutput",Y6e="ListObjectsRequest",J6e="ListObjectsV2",X6e="ListObjectsV2Output",Z6e="ListObjectVersionsOutput",e5e="ListObjectsV2Request",t5e="ListObjectVersionsRequest",r5e="ListObjectVersions",n5e="ListParts",o5e="ListPartsOutput",s5e="ListPartsResult",i5e="ListPartsRequest",a5e="LifecycleRule",c5e="LifecycleRuleAndOperator",u5e="LifecycleRuleFilter",l5e="LifecycleRules",d5e="ListVersionsResult",Nd="Metadata",p5e="MetricsAndOperator",Hte="MaxAnnotationResults",f5e="MaxAgeSeconds",m5e="MaxBuckets",aL="MetadataConfiguration",jte="MetricsConfigurationList",zte="MetadataConfigurationResult",tg="MetricsConfiguration",g5e="MetadataDirective",h5e="MaxDirectoryBuckets",Vte="MfaDelete",Wte="MetadataEntry",S5e="MetricsFilter",BL="MFA",Kte="MFADelete",Fd="MaxKeys",UL="MissingMeta",y5e="MpuObjectSize",UA="MaxParts",cL="MetadataTableConfiguration",Qte="MetadataTableConfigurationResult",E5e="MetadataTableEncryptionConfiguration",Yte="MultipartUpload",_5e="MultipartUploadList",Jte="MaxUploads",Xte="Marker",Zte="Metrics",R5e="Message",C5e="Minutes",ere="Mode",au="Name",uL="NotificationConfiguration",b5e="NotificationConfigurationFilter",Bd="NextContinuationToken",tre="NoncurrentDays",A5e="NonEmptyKmsKeyArnString",x5e="NotFound",rre="NextKeyMarker",T5e="NextMarker",nre="NewerNoncurrentVersions",ore="NextPartNumberMarker",v5e="NoSuchAnnotation",D5e="NoSuchBucket",I5e="NoSuchKey",w5e="NoSuchUpload",P5e="NextUploadIdMarker",sre="NoncurrentVersionExpiration",O5e="NextVersionIdMarker",$5e="NoncurrentVersionTransitions",k5e="NoncurrentVersionTransitionList",ire="NoncurrentVersionTransition",es="Owner",M5e="ObjectAttributes",L5e="ObjectAlreadyInActiveTierError",bC="OwnershipControls",N5e="OwnershipControlsRule",F5e="OwnershipControlsRules",are="ObjectEncryption",B5e="OptionalFields",U5e="ObjectIdentifier",G5e="ObjectIdentifierList",cre="ObjectIfMatch",ure="OutputLocation",AC="ObjectLockConfiguration",q5e="ObjectLockEnabled",H5e="ObjectLockEnabledForBucket",yg="ObjectLockEventHold",Eg="ObjectLockEventHoldDurationDays",_g="ObjectLockEventHoldDurationYears",j5e="ObjectLockLegalHold",Ud="ObjectLockLegalHoldStatus",Gd="ObjectLockMode",z5e="ObjectLockRetention",qd="ObjectLockRetainUntilDate",V5e="ObjectLockRule",W5e="ObjectList",K5e="ObjectNotInActiveTierError",lre="ObjectOwnership",GL="OptionalObjectAttributes",Q5e="ObjectParts",Y5e="ObjectPart",J5e="ObjectSize",dre="ObjectSizeGreaterThan",pre="ObjectSizeLessThan",X5e="OutputSchemaVersion",qL="OutputSerialization",Z5e="ObjectVersion",GA="ObjectVersionId",eze="ObjectVersionList",tze="Objects",fre="Object",Je="Prefix",xC="PublicAccessBlockConfiguration",rze="PutBucketAbac",nze="PutBucketAccelerateConfiguration",oze="PutBucketAccelerateConfigurationRequest",sze="PutBucketAnalyticsConfigurationRequest",ize="PutBucketAnalyticsConfiguration",aze="PutBucketAbacRequest",cze="PutBucketAclRequest",uze="PutBucketAcl",lze="PutBucketCors",dze="PutBucketCorsRequest",pze="PutBucketEncryption",fze="PutBucketEncryptionRequest",mze="PutBucketInventoryConfiguration",gze="PutBucketInventoryConfigurationRequest",hze="PutBucketIntelligentTieringConfiguration",Sze="PutBucketIntelligentTieringConfigurationRequest",yze="PutBucketLogging",Eze="PutBucketLifecycleConfiguration",_ze="PutBucketLifecycleConfigurationOutput",Rze="PutBucketLifecycleConfigurationRequest",Cze="PutBucketLoggingRequest",bze="PutBucketMetricsConfiguration",Aze="PutBucketMetricsConfigurationRequest",xze="PutBucketNotificationConfiguration",Tze="PutBucketNotificationConfigurationRequest",vze="PutBucketOwnershipControls",Dze="PutBucketOwnershipControlsRequest",Ize="PutBucketPolicy",wze="PutBucketPolicyRequest",Pze="PutBucketReplication",Oze="PutBucketRequestPayment",$ze="PutBucketRequestPaymentRequest",kze="PutBucketReplicationRequest",Mze="PutBucketTagging",Lze="PutBucketTaggingRequest",Nze="PutBucketVersioning",Fze="PutBucketVersioningRequest",Bze="PutBucketWebsite",Uze="PutBucketWebsiteRequest",qA="PartsCount",Gze="PartitionDateSource",qze="ProgressEvent",Hze="ParquetInput",jze="PartsList",cu="PartNumber",HA="PartNumberMarker",zze="PutObject",Vze="PutObjectAcl",Wze="PutObjectAclOutput",Kze="PutObjectAnnotationOutput",Qze="PutObjectAclRequest",Yze="PutObjectAnnotationRequest",Jze="PutObjectAnnotation",Xze="PutObjectLockConfiguration",Zze="PutObjectLockConfigurationOutput",eVe="PutObjectLockConfigurationRequest",tVe="PutObjectLegalHold",rVe="PutObjectLegalHoldOutput",nVe="PutObjectLegalHoldRequest",oVe="PutObjectOutput",sVe="PutObjectRequest",iVe="PutObjectRetentionOutput",aVe="PutObjectRetentionRequest",cVe="PutObjectRetention",uVe="PutObjectTagging",lVe="PutObjectTaggingOutput",dVe="PutObjectTaggingRequest",TC="PartitionedPrefix",pVe="PutPublicAccessBlock",fVe="PutPublicAccessBlockRequest",mre="PolicyStatus",jA="Parts",zA="Part",mVe="Parquet",gre="Payer",hre="Payload",Sre="Permission",yre="Policy",Ere="Progress",gVe="Priority",_re="Protocol",hVe="Quiet",SVe="QueueArn",Rre="QuoteCharacter",yVe="QueueConfigurationList",EVe="QueueConfigurations",Cre="QueueConfiguration",bre="QuoteEscapeCharacter",_Ve="QuoteFields",RVe="Queue",VA="Role",HL="RedirectAllRequestsTo",$e="RequestCharged",Are="ResponseCacheControl",xre="ResponseContentDisposition",Tre="ResponseContentEncoding",vre="ResponseContentLanguage",Dre="ResponseContentType",vC="ReplicationConfiguration",jL="RecordDelimiter",Ire="ResponseExpires",CVe="RestoreExpiryDate",WA="RecordExpiration",bVe="RecordsEvent",AVe="ReplicaKmsKeyID",xVe="ReplaceKeyPrefixWith",TVe="ReplaceKeyWith",wre="ReplicaModifications",vVe="RenameObject",DVe="RenameObjectOutput",IVe="RestoreObjectOutput",wVe="RestoreOutputPath",PVe="RenameObjectRequest",OVe="RestoreObjectRequest",$Ve="RestoreObject",xe="RequestPayer",dee="RestrictPublicBuckets",DC="RequestPaymentConfiguration",Pre="RequestProgress",zL="RoutingRules",kVe="ReplicationRuleAndOperator",MVe="ReplicationRuleFilter",LVe="ReplicationRule",NVe="ReplicationRules",FVe="RequestRoute",lL="RestoreRequest",Ore="RoutingRule",Rg="ReplicationStatus",VL="RestoreStatus",BVe="RenameSource",$re="ReplicationTime",UVe="ReplicationTimeValue",GVe="RequestToken",qVe="RetainUntilDate",IC="Range",WL="Restore",HVe="Records",kre="Redirect",wC="Retention",Cg="Rules",Hd="Rule",Wr="Status",Mre="StartAfter",pee="SecretAccessKey",jVe="SseAlgorithm",zVe="StreamingBlob",Lre="S3BucketDestination",Kr="StorageClass",Nre="StorageClassAnalysis",VVe="StorageClassAnalysisDataExport",WVe="SessionCredentialValue",KVe="SessionCredentials",QVe="StatusCode",YVe="SkipDestinationValidation",JVe="StatsEvent",XVe="SourceIfMatch",ZVe="SourceIfModifiedSince",eWe="SourceIfNoneMatch",tWe="SourceIfUnmodifiedSince",KA="SSE-KMS",Fre="SseKmsEncryptedObjects",rWe="S3KeyFilter",nWe="S3Key",oWe="S3Location",sWe="SessionMode",iWe="SelectObjectContent",aWe="SelectObjectContentEventStream",cWe="SelectObjectContentOutput",uWe="SelectObjectContentRequest",Bre="SelectParameters",PC="SimplePrefix",Ure="ScanRange",Gre="SSE-S3",qre="SourceSelectionCriteria",Qr="ServerSideEncryption",lWe="SSEAlgorithm",dWe="ServerSideEncryptionByDefault",OC="ServerSideEncryptionConfiguration",Kt="SSECustomerAlgorithm",uo="SSECustomerKey",Qt="SSECustomerKeyMD5",KL="SSEKMS",pWe="SSEKMSEncryption",Hi="SSEKMSEncryptionContext",un="SSEKMSKeyId",fWe="ServerSideEncryptionRule",mWe="ServerSideEncryptionRules",Hre="SSES3",fee="SessionToken",jre="S3TablesDestination",zre="S3TablesDestinationResult",gWe="S3",hWe="Schedule",uu="Size",SWe="Start",Vre="Stats",yWe="Suffix",jd="Tags",QA="TableArn",EWe="TopicArn",_We="TargetBucket",QL="TableBucketArn",RWe="TableBucketType",YL="TagCount",CWe="TopicConfigurationList",bWe="TopicConfigurations",Wre="TopicConfiguration",AWe="TaggingDirective",JL="TransitionDefaultMinimumObjectSize",Kre="TargetGrants",xWe="TargetGrant",TWe="TieringList",vWe="TransitionList",DWe="TooManyParts",bg="TableName",Qre="TableNamespace",Yre="TargetObjectKeyFormat",IWe="TargetPrefix",wWe="TotalPartsCount",XL="TableStatus",YA="TagSet",lo="Tag",Zo="Tagging",Jre="Tier",PWe="Tierings",Xre="Tiering",OWe="Time",Zre="Token",$We="Topic",kWe="Transitions",ene="Transition",Ag="Type",MWe="Uploads",LWe="UpdateBucketMetadataAnnotationTableConfiguration",NWe="UpdateBucketMetadataAnnotationTableConfigurationRequest",FWe="UpdateBucketMetadataInventoryTableConfiguration",BWe="UpdateBucketMetadataInventoryTableConfigurationRequest",UWe="UpdateBucketMetadataJournalTableConfiguration",GWe="UpdateBucketMetadataJournalTableConfigurationRequest",Ka="UploadId",tne="UploadIdMarker",rne="UserMetadata",qWe="UnsupportedMediaType",HWe="UpdateObjectEncryption",jWe="UpdateObjectEncryptionRequest",zWe="UpdateObjectEncryptionResponse",VWe="UploadPart",WWe="UploadPartCopy",KWe="UploadPartCopyOutput",QWe="UploadPartCopyRequest",YWe="UploadPartOutput",JWe="UploadPartRequest",XWe="URI",ZWe="Upload",ZL="Value",$C="VersioningConfiguration",Re="VersionId",nne="VersionIdMarker",e8e="Versions",t8e="Version",kC="WebsiteConfiguration",r8e="WriteGetObjectResponse",n8e="WriteGetObjectResponseRequest",o8e="WriteOffsetBytes",xg="WebsiteRedirectLocation",one="Years",eN="annotationName",s8e="annotation-prefix",sne="accept-ranges",i8e="bucket-region",Dt="client",Qa="continuation-token",JA="delimiter",It="error",tN="eventPayload",a8e="endpoint",XA="encoding-type",c8e="fetch-owner",M="http",ve="httpChecksum",kt="httpError",l="httpHeader",u8e="hostLabel",Ce="httpPayload",zd="httpPrefixHeaders",U="httpQuery",ine="http://www.w3.org/2001/XMLSchema-instance",po="id",l8e="idempotencyToken",ane="key-marker",d8e="marker",p8e="max-annotation-results",f8e="max-buckets",m8e="max-directory-buckets",rN="max-keys",g8e="max-parts",h8e="max-uploads",Tg="prefix",ZA="partNumber",S8e="part-number-marker",cne="response-cache-control",une="response-content-disposition",lne="response-content-encoding",dne="response-content-language",pne="response-content-type",fne="response-expires",mne="smithy.ts.sdk.synthetic.com.amazonaws.s3",y8e="start-after",gne="streaming",vg="uploadId",E8e="upload-id-marker",Yt="versionId",_8e="version-id-marker",hne="xsi",R8e="xmlAttribute",ne="xmlFlattened",v="xmlName",Sne="xmlNamespace",Vd="x-amz-acl",yne="x-amz-abort-date",C8e="x-amz-access-point-alias",Ene="x-amz-abort-rule-id",b8e="x-amz-archive-status",_ne="x-amz-bucket-arn",nN="x-amz-bypass-governance-retention",A8e="x-amz-bucket-location-name",x8e="x-amz-bucket-location-type",T8e="x-amz-bucket-namespace",v8e="x-amz-bucket-object-lock-enabled",Rne="x-amz-bucket-object-lock-token",D8e="x-amz-bucket-region",oN="x-amz-checksum-algorithm",oi="x-amz-checksum-crc32",si="x-amz-checksum-crc32c",ii="x-amz-checksum-crc64nvme",ai="x-amz-checksum-md5",sN="x-amz-checksum-mode",I8e="x-amz-confirm-remove-self-bucket-access",ci="x-amz-checksum-sha1",ui="x-amz-checksum-sha256",li="x-amz-checksum-sha512",Cne="x-amz-copy-source",bne="x-amz-copy-source-if-match",Ane="x-amz-copy-source-if-modified-since",xne="x-amz-copy-source-if-none-match",Tne="x-amz-copy-source-if-unmodified-since",w8e="x-amz-create-session-mode",P8e="x-amz-copy-source-range",vne="x-amz-copy-source-server-side-encryption-customer-algorithm",Dne="x-amz-copy-source-server-side-encryption-customer-key",Ine="x-amz-copy-source-server-side-encryption-customer-key-MD5",wne="x-amz-copy-source-version-id",Ya="x-amz-checksum-type",O8e="x-amz-client-token",di="x-amz-checksum-xxhash64",pi="x-amz-checksum-xxhash3",fi="x-amz-checksum-xxhash128",ex="x-amz-delete-marker",Dg="x-amz-expiration",N="x-amz-expected-bucket-owner",$8e="x-amz-fwd-error-code",k8e="x-amz-fwd-error-message",M8e="x-amz-fwd-header-Cache-Control",L8e="x-amz-fwd-header-Content-Disposition",N8e="x-amz-fwd-header-Content-Encoding",F8e="x-amz-fwd-header-Content-Language",B8e="x-amz-fwd-header-Content-Range",U8e="x-amz-fwd-header-Content-Type",G8e="x-amz-fwd-header-ETag",q8e="x-amz-fwd-header-Expires",H8e="x-amz-fwd-header-Last-Modified",j8e="x-amz-fwd-header-accept-ranges",z8e="x-amz-fwd-header-x-amz-checksum-crc32",V8e="x-amz-fwd-header-x-amz-checksum-crc32c",W8e="x-amz-fwd-header-x-amz-checksum-crc64nvme",K8e="x-amz-fwd-header-x-amz-checksum-md5",Q8e="x-amz-fwd-header-x-amz-checksum-sha1",Y8e="x-amz-fwd-header-x-amz-checksum-sha256",J8e="x-amz-fwd-header-x-amz-checksum-sha512",X8e="x-amz-fwd-header-x-amz-checksum-xxhash64",Z8e="x-amz-fwd-header-x-amz-checksum-xxhash3",e9e="x-amz-fwd-header-x-amz-checksum-xxhash128",t9e="x-amz-fwd-header-x-amz-delete-marker",r9e="x-amz-fwd-header-x-amz-expiration",n9e="x-amz-fwd-header-x-amz-missing-meta",o9e="x-amz-fwd-header-x-amz-mp-parts-count",s9e="x-amz-fwd-header-x-amz-object-lock-legal-hold",i9e="x-amz-fwd-header-x-amz-object-lock-mode",a9e="x-amz-fwd-header-x-amz-object-lock-retain-until-date",c9e="x-amz-fwd-header-x-amz-restore",u9e="x-amz-fwd-header-x-amz-request-charged",l9e="x-amz-fwd-header-x-amz-replication-status",d9e="x-amz-fwd-header-x-amz-storage-class",p9e="x-amz-fwd-header-x-amz-server-side-encryption",f9e="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",m9e="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",g9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",h9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",S9e="x-amz-fwd-header-x-amz-tagging-count",y9e="x-amz-fwd-header-x-amz-version-id",E9e="x-amz-fwd-status",Wd="x-amz-grant-full-control",Kd="x-amz-grant-read",Qd="x-amz-grant-read-acp",iN="x-amz-grant-write",Yd="x-amz-grant-write-acp",_9e="x-amz-if-match-initiated-time",R9e="x-amz-if-match-last-modified-time",C9e="x-amz-if-match-size",Jd="x-amz-meta-",aN="x-amz-mfa",b9e="x-amz-metadata-directive",Pne="x-amz-missing-meta",A9e="x-amz-mp-object-size",x9e="x-amz-max-parts",One="x-amz-mp-parts-count",T9e="x-amz-object-attributes",v9e="x-amz-object-annotation-directive",$ne="x-amz-object-if-match",Ig="x-amz-object-lock-event-hold",wg="x-amz-object-lock-event-hold-duration-days",Pg="x-amz-object-lock-event-hold-duration-years",Og="x-amz-object-lock-legal-hold",$g="x-amz-object-lock-mode",kg="x-amz-object-lock-retain-until-date",D9e="x-amz-object-ownership",cN="x-amz-optional-object-attributes",I9e="x-amz-object-size",tx="x-amz-object-version-id",w9e="x-amz-part-number-marker",kne="x-amz-restore",Ne="x-amz-request-charged",P9e="x-amz-restore-output-path",Te="x-amz-request-payer",O9e="x-amz-request-route",uN="x-amz-replication-status",$9e="x-amz-rename-source",k9e="x-amz-rename-source-if-match",M9e="x-amz-rename-source-if-modified-since",L9e="x-amz-rename-source-if-none-match",N9e="x-amz-rename-source-if-unmodified-since",F9e="x-amz-request-token",Mg="x-amz-storage-class",ke="x-amz-sdk-checksum-algorithm",B9e="x-amz-skip-destination-validation",Mne="x-amz-source-expected-bucket-owner",ln="x-amz-server-side-encryption",Un="x-amz-server-side-encryption-aws-kms-key-id",Gn="x-amz-server-side-encryption-bucket-key-enabled",Ja="x-amz-server-side-encryption-context",Er="x-amz-server-side-encryption-customer-algorithm",ts="x-amz-server-side-encryption-customer-key",_r="x-amz-server-side-encryption-customer-key-MD5",lN="x-amz-tagging",Lne="x-amz-tagging-count",U9e="x-amz-tagging-directive",dN="x-amz-transition-default-minimum-object-size",mi="x-amz-version-id",G9e="x-amz-write-offset-bytes",Lg="x-amz-website-redirect-location",q9e="xsi:type",h="com.amazonaws.s3",Nne=new Eee(mne),Fne=[-3,mne,"S3ServiceException",0,[],[]];Nne.registerError(Fne,rt);var Et=new Eee(h),Bne=[-3,h,zUe,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Bne,WR);var Une=[-3,h,ZUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Une,aC);var Gne=[-3,h,sGe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Gne,cC);var qne=[-3,h,gGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(qne,QR);var Hne=[-3,h,SGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Hne,YR);var jne=[-3,h,Cqe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(jne,nC);var zne=[-3,h,jje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(zne,dC);var Vne=[-3,h,Pje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Vne,uC);var Wne=[-3,h,Gje,{[It]:Dt,[kt]:403},[Kr,Hee],[0,0]];Et.registerError(Wne,ZR);var Kne=[-3,h,Hje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Kne,rC);var Qne=[-3,h,zje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Qne,oC);var Yne=[-3,h,Xje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Yne,sC);var Jne=[-3,h,v5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Jne,eC);var Xne=[-3,h,D5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Xne,JR);var Zne=[-3,h,I5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Zne,XR);var eoe=[-3,h,w5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(eoe,VR);var toe=[-3,h,x5e,{[It]:Dt},[],[]];Et.registerError(toe,tC);var roe=[-3,h,L5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(roe,pC);var noe=[-3,h,K5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(noe,KR);var ooe=[-3,h,DWe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(ooe,iC);var soe=[-3,h,qWe,{[It]:Dt,[kt]:415},[],[]];Et.registerError(soe,lC);var ioe=[Nne,Et],aoe=[0,h,bL,8,0],H9e=[0,h,A5e,8,0],mee=[0,h,WVe,8,0],rs=[0,h,uo,8,0],Xa=[0,h,Hi,8,0],Or=[0,h,un,8,0],lu=[0,h,zVe,{[gne]:1},42],pN=[3,h,mC,0,[Wr],[0]],coe=[3,h,Fee,0,[u4e],[1]],uoe=[3,h,rGe,0,[$e],[[0,{[l]:Ne}]]],loe=[3,h,nGe,0,[w,le,Ka,xe,L,Lje],[[0,1],[0,1],[0,{[U]:vg}],[0,{[l]:Te}],[0,{[l]:N}],[6,{[l]:_9e}]],3],doe=[3,h,fC,0,[Wr],[0]],fN=[3,h,ru,0,[NA,es],[[()=>lx,{[v]:kA}],()=>gi]],poe=[3,h,Mee,0,[es],[0],1],foe=[3,h,HUe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],rx=[3,h,Xm,0,[Wt,Nre,qi],[0,()=>wue,[()=>ele,0]],2],moe=[3,h,WUe,0,[Lre],[()=>goe],1],goe=[3,h,lGe,0,[Ite,w,hGe,Je],[0,0,0,0],2],hoe=[3,h,Nee,0,[ug,co,uu,lt,ge,Rg],[0,4,1,0,[64,{[ne]:1}],0],3],Soe=[3,h,gC,0,[vd,su,VA],[0,()=>Xd,0],1],yoe=[3,h,jee,0,[vd,XL,Id,bg,QA,VA],[0,0,()=>Ng,0,0,0],1],Eoe=[3,h,fGe,0,[vd,su,VA],[0,()=>Xd,0],1],_oe=[3,h,zee,0,[TL],[[()=>Q9e,{[ne]:1}]]],Roe=[3,h,w,0,[au,OGe,SL,gL],[0,4,0,0]],Coe=[3,h,yGe,0,[lqe,Ag],[0,0]],boe=[3,h,EGe,0,[Cg],[[()=>Jue,{[ne]:1,[v]:Hd}]],1],Aoe=[3,h,hC,0,[FL],[[()=>_N,0]]],xoe=[3,h,Qee,0,[ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn],[0,0,0,0,0,0,0,0,0,0,0]],Toe=[3,h,VGe,0,[Je],[0]],voe=[3,h,LGe,0,[jA],[[()=>V9e,{[ne]:1,[v]:zA}]]],Doe=[3,h,QGe,0,[lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cu],[0,0,0,0,0,0,0,0,0,0,0,1]],Ioe=[3,h,NGe,{[v]:BGe},[RC,w,le,ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,un,zr,$e],[0,0,0,[0,{[l]:Dg}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:ln}],[0,{[l]:mi}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],woe=[3,h,UGe,0,[w,le,Ka,Yte,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,y5e,xe,L,Md,Sg,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[()=>voe,{[Ce]:1,[v]:Yee}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:A9e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],Poe=[3,h,ute,0,[Tje,l6e],[0,0]],Ooe=[3,h,$Ge,0,[],[]],$oe=[3,h,jGe,0,[Jee,ti,ate,Re,Qr,Kt,Qt,un,Hi,zr,$e],[[()=>Moe,16],[0,{[l]:Dg}],[0,{[l]:wne}],[0,{[l]:mi}],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],koe=[3,h,zGe,0,[w,cte,le,_d,Rd,ge,Cd,bd,Ad,Dd,ete,tte,rte,nte,Xo,wd,Pd,Od,$d,Md,Sg,Nd,g5e,AWe,VUe,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,ote,bL,ste,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:oN}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[0,{[l]:iu}],[0,{[l]:Ld}],[128,{[zd]:Jd}],[0,{[l]:b9e}],[0,{[l]:U9e}],[0,{[l]:v9e}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:Mne}]],3],Moe=[3,h,Jee,0,[lt,co,cn,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0,0]],Loe=[3,h,Xee,0,[lt,co,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0]],Noe=[3,h,SC,0,[_L],[[()=>Yue,{[ne]:1,[v]:RL}]],1],Foe=[3,h,RL,0,[eGe,iGe,kd,QUe,Sqe,f5e],[[64,{[ne]:1,[v]:oGe}],[64,{[ne]:1,[v]:aGe}],0,[64,{[ne]:1,[v]:YUe}],[64,{[ne]:1,[v]:Eqe}],1],2],Boe=[3,h,nL,0,[sL,RC,w,jd],[0,()=>jae,()=>Coe,[()=>ji,0]]],Uoe=[3,h,vGe,0,[w,aL,Ye,ge,L],[[0,1],[()=>zae,{[Ce]:1,[v]:aL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Goe=[3,h,IGe,0,[w,cL,Ye,ge,L],[[0,1],[()=>Kae,{[Ce]:1,[v]:cL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],qoe=[3,h,wGe,0,[RC,gL],[[0,{[l]:RC}],[0,{[l]:_ne}]]],Hoe=[3,h,PGe,0,[w,_d,nL,wd,Pd,Od,wL,$d,H5e,lre,CGe],[[0,1],[0,{[l]:Vd}],[()=>Boe,{[Ce]:1,[v]:nL}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[2,{[l]:v8e}],[0,{[l]:D9e}],[0,{[l]:T8e}]],1],joe=[3,h,FGe,{[v]:Bje},[Lee,qee,w,le,Ka,Qr,Kt,Qt,un,Hi,zr,$e,ge,cn],[[4,{[l]:yne}],[0,{[l]:Ene}],[0,{[v]:w}],0,0,[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}],[0,{[l]:oN}],[0,{[l]:Ya}]]],zoe=[3,h,GGe,0,[w,le,_d,Rd,Cd,bd,Ad,Dd,Xo,wd,Pd,Od,$d,Nd,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L,ge,cn],[[0,1],[0,1],[0,{[l]:Vd}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[128,{[zd]:Jd}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}],[0,{[l]:oN}],[0,{[l]:Ya}]],2],Voe=[3,h,JGe,{[v]:XGe},[cee,Qr,un,Hi,zr],[[()=>Rue,{[v]:cee}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Woe=[3,h,e4e,0,[w,sWe,Qr,un,Hi,zr],[[0,1],[0,{[l]:w8e}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Koe=[3,h,t4e,0,[xqe,a4e,bre,jL,vte,Rre,uGe],[0,0,0,0,0,0,2]],Qoe=[3,h,r4e,0,[_Ve,bre,jL,vte,Rre],[0,0,0,0,0]],Yoe=[3,h,fte,0,[ere,nu,one,G4e],[0,1,1,()=>gN]],Joe=[3,h,oL,0,[tze,hVe],[[()=>sKe,{[ne]:1,[v]:fre}],2],1],Xoe=[3,h,p4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Zoe=[3,h,m4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ese=[3,h,h4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],tse=[3,h,_4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],rse=[3,h,y4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],nse=[3,h,C4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ose=[3,h,A4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],sse=[3,h,D4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ise=[3,h,x4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],ase=[3,h,w4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],cse=[3,h,O4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],use=[3,h,k4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],lse=[3,h,$4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],dse=[3,h,N4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],pse=[3,h,B4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],fse=[3,h,K4e,0,[le,Re,ou,W4e],[0,0,2,0]],mse=[3,h,V4e,0,[es,le,Re,Mte,co],[()=>gi,0,0,2,4]],gse=[3,h,dte,0,[Wr],[0]],hse=[3,h,Y4e,0,[GA,$e],[[0,{[l]:tx}],[0,{[l]:Ne}]]],Sse=[3,h,J4e,0,[w,le,ug,Re,xe,L,cre],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:$ne}]],3],yse=[3,h,X4e,0,[ou,Re,$e],[[2,{[l]:ex}],[0,{[l]:mi}],[0,{[l]:Ne}]]],Ese=[3,h,eqe,0,[w,le,BL,Re,xe,hL,L,Md,Nje,Fje],[[0,1],[0,1],[0,{[l]:aN}],[0,{[U]:Yt}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:iu}],[6,{[l]:R9e}],[1,{[l]:C9e}]],2],_se=[3,h,Z4e,{[v]:dqe},[pqe,$e,xte],[[()=>W9e,{[ne]:1}],[0,{[l]:Ne}],[()=>Y9e,{[ne]:1,[v]:Id}]]],Rse=[3,h,tqe,0,[w,oL,BL,xe,hL,L,ge],[[0,1],[()=>Joe,{[Ce]:1,[v]:oL}],[0,{[l]:aN}],[0,{[l]:Te}],[2,{[l]:nN}],[0,{[l]:N}],[0,{[l]:ke}]],2],Cse=[3,h,nqe,0,[Re],[[0,{[l]:mi}]]],bse=[3,h,oqe,0,[w,le,Re,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}]],2],Ase=[3,h,uqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xse=[3,h,LA,0,[w,qUe,Kr,Mee,su,$re,Zte],[0,0,0,()=>poe,()=>Dse,()=>oue,()=>Yae],1],Tse=[3,h,mte,0,[RWe,QL,Qre],[0,0,0]],vse=[3,h,vL,0,[TL,c6e,i6e],[0,[()=>Or,0],0],1],Dse=[3,h,su,0,[AVe],[0]],Ise=[3,h,hqe,0,[],[]],wse=[3,h,Id,0,[le,Re,i4e,R5e],[0,0,0,0]],Ng=[3,h,gqe,0,[yte,_te],[0,0]],mN=[3,h,xL,0,[le],[0],1],Pse=[3,h,Ste,0,[],[]],gN=[3,h,Ete,0,[nu,one],[1,1]],Ose=[3,h,Rte,0,[Wr],[0],1],$se=[3,h,Dte,0,[au,ZL],[0,0]],kse=[3,h,Fqe,0,[mC],[[()=>pN,16]]],Mse=[3,h,Uqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Lse=[3,h,$qe,{[v]:fC},[Wr,$e],[0,[0,{[l]:Ne}]]],Nse=[3,h,Mqe,0,[w,L,xe],[[0,1],[0,{[l]:N}],[0,{[l]:Te}]],1],Fse=[3,h,Bqe,{[v]:ru},[es,NA],[()=>gi,[()=>lx,{[v]:kA}]]],Bse=[3,h,Gqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Use=[3,h,kqe,0,[Xm],[[()=>rx,16]]],Gse=[3,h,Lqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],qse=[3,h,jqe,{[v]:SC},[_L],[[()=>Yue,{[ne]:1,[v]:RL}]]],Hse=[3,h,zqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],jse=[3,h,Wqe,0,[OC],[[()=>ON,16]]],zse=[3,h,Kqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Vse=[3,h,Zqe,0,[eg],[[()=>nx,16]]],Wse=[3,h,eHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Kse=[3,h,Yqe,0,[Zm],[[()=>ox,16]]],Qse=[3,h,Jqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Yse=[3,h,nHe,{[v]:iL},[Cg,JL],[[()=>Jue,{[ne]:1,[v]:Hd}],[0,{[l]:dN}]]],Jse=[3,h,oHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xse=[3,h,sHe,{[v]:sL},[sL],[0]],Zse=[3,h,aHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],eie=[3,h,iHe,{[v]:hC},[FL],[[()=>_N,0]]],tie=[3,h,cHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],rie=[3,h,dHe,0,[wte],[[()=>oie,16]]],nie=[3,h,fHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],oie=[3,h,wte,0,[zte],[()=>Vae],1],sie=[3,h,SHe,0,[Pte],[[()=>aie,16]]],iie=[3,h,yHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],aie=[3,h,Pte,0,[Qte,Wr,Id],[()=>Qae,0,()=>Ng],2],cie=[3,h,pHe,0,[tg],[[()=>sx,16]]],uie=[3,h,mHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],lie=[3,h,_He,0,[w,L],[[0,1],[0,{[l]:N}]],1],die=[3,h,CHe,0,[bC],[[()=>TN,16]]],pie=[3,h,bHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],fie=[3,h,xHe,0,[yre],[[0,16]]],mie=[3,h,THe,0,[w,L],[[0,1],[0,{[l]:N}]],1],gie=[3,h,DHe,0,[mre],[[()=>dce,16]]],hie=[3,h,IHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Sie=[3,h,PHe,0,[vC],[[()=>IN,16]]],yie=[3,h,MHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Eie=[3,h,$He,{[v]:DC},[gre],[0]],_ie=[3,h,kHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rie=[3,h,NHe,{[v]:Zo},[YA],[[()=>ji,0]],1],Cie=[3,h,FHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],bie=[3,h,UHe,{[v]:$C},[Wr,Kte],[0,[0,{[v]:Vte}]]],Aie=[3,h,GHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],xie=[3,h,HHe,{[v]:kC},[HL,$L,xL,zL],[()=>DN,()=>SN,()=>mN,[()=>Zue,0]]],Tie=[3,h,jHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],vie=[3,h,WHe,{[v]:ru},[es,NA,$e],[()=>gi,[()=>lx,{[v]:kA}],[0,{[l]:Ne}]]],Die=[3,h,JHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Iie=[3,h,KHe,0,[Bee,GA,co,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e,Rg],[[()=>lu,16],[0,{[l]:tx}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}],[0,{[l]:uN}]]],wie=[3,h,XHe,0,[w,le,ug,Re,xe,L,EL],[[0,1],[0,1],[0,{[U]:eN}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:sN}]],3],Pie=[3,h,QHe,{[v]:ZHe},[ou,co,Re,$e,lt,Qee,Q5e,Kr,J5e],[[2,{[l]:ex}],[4,{[l]:BA}],[0,{[l]:mi}],[0,{[l]:Ne}],0,()=>xoe,[()=>Oie,0],0,1]],Oie=[3,h,YHe,0,[wWe,HA,ore,UA,ni,jA],[[1,{[v]:qA}],0,0,1,2,[()=>uKe,{[ne]:1,[v]:zA}]]],$ie=[3,h,eje,0,[w,le,M5e,Re,UA,HA,Kt,uo,Qt,xe,L],[[0,1],[0,1],[64,{[l]:T9e}],[0,{[U]:Yt}],[1,{[l]:x9e}],[0,{[l]:w9e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],3],kie=[3,h,aje,0,[CC],[[()=>bN,{[Ce]:1,[v]:CC}]]],Mie=[3,h,cje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lie=[3,h,oje,0,[AC],[[()=>CN,16]]],Nie=[3,h,sje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Fie=[3,h,uje,0,[dg,ou,mL,ti,WL,co,Td,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,UL,Re,Rd,Cd,bd,Ad,CL,Dd,Xo,yC,xg,Qr,Nd,Kt,Qt,un,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[()=>lu,16],[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Zee}],[0,{[l]:hg}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:ln}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Bie=[3,h,lje,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,uo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],Uie=[3,h,dje,0,[wC],[[()=>AN,{[Ce]:1,[v]:wC}]]],Gie=[3,h,pje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],qie=[3,h,gje,{[v]:Zo},[YA,Re],[[()=>ji,0],[0,{[l]:mi}]],1],Hie=[3,h,Sje,0,[w,le,Re,L,xe],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}],[0,{[l]:Te}]],2],jie=[3,h,hje,0,[dg,$e],[[()=>lu,16],[0,{[l]:Ne}]]],zie=[3,h,yje,0,[w,le,xe,L],[[0,1],[0,1],[0,{[l]:Te}],[0,{[l]:N}]],2],Vie=[3,h,Rje,0,[xC],[[()=>vN,16]]],Wie=[3,h,Cje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kie=[3,h,Ote,0,[Jre],[0],1],Qie=[3,h,PL,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],hN=[3,h,OL,0,[Ag,AL,mqe,kd,XWe],[[0,{[R8e]:1,[v]:q9e}],0,0,0,0],1],Yie=[3,h,Aje,0,[gL,RGe,_Ge,SL,cGe],[[0,{[l]:_ne}],[0,{[l]:x8e}],[0,{[l]:A8e}],[0,{[l]:D8e}],[2,{[l]:C8e}]]],Jie=[3,h,xje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xie=[3,h,Dje,0,[ou,mL,ti,WL,pGe,co,Td,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,lt,UL,Re,Rd,Cd,bd,Ad,Dd,CL,Xo,yC,xg,Qr,Nd,Kt,Qt,un,zr,Kr,$e,Rg,qA,YL,Gd,qd,Ud,yg,Eg,_g],[[2,{[l]:ex}],[0,{[l]:sne}],[0,{[l]:Dg}],[0,{[l]:kne}],[0,{[l]:b8e}],[4,{[l]:BA}],[1,{[l]:xd}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:lt}],[1,{[l]:Pne}],[0,{[l]:mi}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:hg}],[0,{[l]:Zee}],[4,{[l]:Xo}],[0,{[l]:yC}],[0,{[l]:Lg}],[0,{[l]:ln}],[128,{[zd]:Jd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Mg}],[0,{[l]:Ne}],[0,{[l]:uN}],[1,{[l]:One}],[1,{[l]:Lne}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}]]],Zie=[3,h,Ije,0,[w,le,Md,Lte,Sg,Bte,IC,Are,xre,Tre,vre,Dre,Ire,Re,Kt,uo,Qt,xe,cu,L,EL],[[0,1],[0,1],[0,{[l]:iu}],[4,{[l]:kL}],[0,{[l]:Ld}],[4,{[l]:LL}],[0,{[l]:IC}],[0,{[U]:cne}],[0,{[U]:une}],[0,{[U]:lne}],[0,{[U]:dne}],[0,{[U]:pne}],[6,{[U]:fne}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:ZA}],[0,{[l]:N}],[0,{[l]:sN}]],2],SN=[3,h,$L,0,[yWe],[0],1],yN=[3,h,NL,0,[kd,AL],[0,0]],EN=[3,h,ML,0,[ite,s4e,Ute,mVe],[()=>Koe,0,()=>fae,()=>cce]],eae=[3,h,Qje,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],nx=[3,h,eg,0,[Wt,Wr,PWe,qi],[0,0,[()=>mKe,{[ne]:1,[v]:Xre}],[()=>tae,0]],3],tae=[3,h,Jje,0,[Je,lo,lg],[0,()=>du,[()=>eae,0]]],ox=[3,h,Zm,0,[LA,$je,Wt,qje,hWe,qi,B5e],[[()=>rae,0],2,0,0,()=>iae,()=>oae,[()=>eKe,0]],5],rae=[3,h,Oje,0,[Lre],[[()=>sae,0]],1],nae=[3,h,kje,0,[Hre,KL],[[()=>vue,{[v]:Gre}],[()=>Aue,{[v]:KA}]]],oae=[3,h,Mje,0,[Je],[0],1],sae=[3,h,Wje,0,[w,Ite,JUe,Je,vL],[0,0,0,0,[()=>nae,0]],2],iae=[3,h,Kje,0,[wqe],[0],1],aae=[3,h,EC,0,[vd,su],[0,()=>Xd],1],cae=[3,h,Fte,0,[vd,XL,Id,bg,QA],[0,0,()=>Ng,0,0],1],uae=[3,h,Yje,0,[vd,su],[0,()=>Xd],1],lae=[3,h,_C,0,[WA,su],[()=>ax,()=>Xd],1],dae=[3,h,Gte,0,[XL,bg,WA,Id,QA],[0,0,()=>ax,()=>Ng,0],3],pae=[3,h,r6e,0,[WA],[()=>ax],1],fae=[3,h,e6e,0,[Ag],[0]],mae=[3,h,t6e,0,[jL],[0]],gae=[3,h,k6e,0,[$6e,DL,Wt,qi],[[0,{[v]:kGe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],hae=[3,h,O6e,0,[gte,nu,_qe],[5,1,2]],Sae=[3,h,a5e,0,[Wr,ti,kd,Je,qi,kWe,$5e,sre,Fee],[0,()=>hae,0,0,[()=>Eae,0],[()=>hKe,{[ne]:1,[v]:ene}],[()=>oKe,{[ne]:1,[v]:ire}],()=>Zae,()=>coe],1],yae=[3,h,c5e,0,[Je,jd,dre,pre],[0,[()=>ji,{[ne]:1,[v]:lo}],1,1]],Eae=[3,h,u5e,0,[Je,lo,dre,pre,lg],[0,()=>du,1,1,[()=>yae,0]]],_ae=[3,h,g6e,{[v]:h6e},[ni,Vr,Bd,kee],[2,0,0,[()=>j9e,{[ne]:1,[v]:Xm}]]],Rae=[3,h,S6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Cae=[3,h,C6e,0,[ni,Vr,Bd,Nte],[2,0,0,[()=>X9e,{[ne]:1,[v]:eg}]]],bae=[3,h,b6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Aae=[3,h,E6e,{[v]:F6e},[Vr,kte,ni,Bd],[0,[()=>Z9e,{[ne]:1,[v]:Zm}],2,0]],xae=[3,h,_6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Tae=[3,h,x6e,{[v]:B6e},[ni,Vr,Bd,jte],[2,0,0,[()=>rKe,{[ne]:1,[v]:tg}]]],vae=[3,h,T6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Dae=[3,h,v6e,{[v]:d6e},[yL,es,Vr,Je],[[()=>Que,0],()=>gi,0,0]],Iae=[3,h,D6e,0,[m5e,Vr,Je,SL],[[1,{[U]:f8e}],[0,{[U]:Qa}],[0,{[U]:Tg}],[0,{[U]:i8e}]]],wae=[3,h,w6e,{[v]:p6e},[yL,Vr],[[()=>Que,0],0]],Pae=[3,h,P6e,0,[Vr,h5e],[[0,{[U]:Qa}],[1,{[U]:m8e}]]],Oae=[3,h,q6e,{[v]:H6e},[w,FA,tne,rre,Je,Va,P5e,Jte,ni,MWe,MA,Wa,$e],[0,0,0,0,0,0,0,1,2,[()=>nKe,{[ne]:1,[v]:ZWe}],[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],$ae=[3,h,j6e,0,[w,Va,Wa,FA,Jte,Je,tne,L,xe],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:h8e}],[0,{[U]:Tg}],[0,{[U]:E8e}],[0,{[l]:N}],[0,{[l]:Te}]],1],kae=[3,h,W6e,0,[mGe,w,le,GA,Gee,Hte,jUe,Vr,Bd,$e],[[()=>z9e,0],0,0,[0,{[l]:tx}],0,1,1,0,0,[0,{[l]:Ne}]]],Mae=[3,h,K6e,0,[w,le,Re,Hte,Gee,Vr,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[1,{[U]:p8e}],[0,{[U]:s8e}],[0,{[U]:Qa}],[0,{[l]:Te}],[0,{[l]:N}]],2],Lae=[3,h,Q6e,{[v]:qte},[ni,Xte,T5e,lte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Nae=[3,h,Y6e,0,[w,Va,Wa,Xte,Fd,Je,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:d8e}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Fae=[3,h,X6e,{[v]:qte},[ni,lte,au,Je,Va,Fd,MA,Wa,n6e,Vr,Bd,Mre,$e],[2,[()=>Xue,{[ne]:1}],0,0,0,1,[()=>ux,{[ne]:1}],0,1,0,0,0,[0,{[l]:Ne}]]],Bae=[3,h,e5e,0,[w,Va,Wa,Fd,Je,Vr,Tqe,Mre,xe,L,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:Qa}],[2,{[U]:c8e}],[0,{[U]:y8e}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:cN}]],1],Uae=[3,h,Z6e,{[v]:d5e},[ni,FA,nne,rre,O5e,e8e,pte,au,Je,Va,Fd,MA,Wa,$e],[2,0,0,0,0,[()=>iKe,{[ne]:1,[v]:t8e}],[()=>K9e,{[ne]:1,[v]:ou}],0,0,0,1,[()=>ux,{[ne]:1}],0,[0,{[l]:Ne}]]],Gae=[3,h,t5e,0,[w,Va,Wa,FA,Fd,Je,nne,L,xe,GL],[[0,1],[0,{[U]:JA}],[0,{[U]:XA}],[0,{[U]:ane}],[1,{[U]:rN}],[0,{[U]:Tg}],[0,{[U]:_8e}],[0,{[l]:N}],[0,{[l]:Te}],[64,{[l]:cN}]],1],qae=[3,h,o5e,{[v]:s5e},[Lee,qee,w,le,Ka,HA,ore,UA,ni,jA,NL,es,Kr,$e,ge,cn],[[4,{[l]:yne}],[0,{[l]:Ene}],0,0,0,0,0,1,2,[()=>cKe,{[ne]:1,[v]:zA}],()=>yN,()=>gi,0,[0,{[l]:Ne}],0,0]],Hae=[3,h,i5e,0,[w,le,Ka,UA,HA,xe,L,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:vg}],[1,{[U]:g8e}],[0,{[U]:S8e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],jae=[3,h,N6e,0,[Ag,au],[0,0]],_N=[3,h,FL,0,[_We,IWe,Kre,Yre],[0,0,[()=>fKe,0],[()=>$ue,0]],2],zae=[3,h,aL,0,[_C,EC,gC],[()=>lae,()=>aae,()=>Soe],1],Vae=[3,h,zte,0,[mte,Gte,Fte,jee],[()=>Tse,()=>dae,()=>cae,()=>yoe],1],Wae=[3,h,Wte,0,[au,ZL],[0,0]],Kae=[3,h,cL,0,[jre],[()=>fue],1],Qae=[3,h,Qte,0,[zre],[()=>mue],1],Xd=[3,h,E5e,0,[jVe,s6e],[0,0],1],Yae=[3,h,Zte,0,[Wr,bqe],[0,()=>wN],1],Jae=[3,h,p5e,0,[Je,jd,Uee],[0,[()=>ji,{[ne]:1,[v]:lo}],0]],sx=[3,h,tg,0,[Wt,qi],[0,[()=>tle,0]],1],Xae=[3,h,Yte,0,[Ka,le,Zje,Kr,es,NL,ge,cn],[0,0,4,0,()=>gi,()=>yN,0,0]],Zae=[3,h,sre,0,[tre,nre],[1,1]],ece=[3,h,ire,0,[tre,Kr,nre],[1,0,1]],RN=[3,h,uL,0,[bWe,EVe,L6e,Ste],[[()=>gKe,{[ne]:1,[v]:Wre}],[()=>lKe,{[ne]:1,[v]:Cre}],[()=>tKe,{[ne]:1,[v]:MGe}],()=>Pse]],ix=[3,h,b5e,0,[le],[[()=>due,{[v]:nWe}]]],tce=[3,h,fre,0,[le,co,lt,ge,cn,uu,Kr,es,VL],[0,4,0,[64,{[ne]:1}],0,1,0,()=>gi,()=>PN]],rce=[3,h,U5e,0,[le,Re,lt,U6e,uu],[0,0,0,6,1],1],CN=[3,h,AC,0,[q5e,Hd],[0,()=>nce]],bN=[3,h,j5e,0,[Wr],[0]],AN=[3,h,z5e,0,[ere,qVe,yqe,Ete],[0,5,0,()=>gN]],nce=[3,h,V5e,0,[fte],[()=>Yoe]],oce=[3,h,Y5e,0,[cu,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,1,0,0,0,0,0,0,0,0,0,0]],sce=[3,h,Z5e,0,[lt,ge,cn,uu,Kr,le,Re,Mte,co,es,VL],[0,[64,{[ne]:1}],0,1,0,0,0,2,4,()=>gi,()=>PN]],ice=[3,h,ure,0,[gWe],[[()=>pue,0]]],xN=[3,h,qL,0,[ite,Ute],[()=>Qoe,()=>mae]],gi=[3,h,es,0,[AL,kd],[0,0]],TN=[3,h,bC,0,[Cg],[[()=>aKe,{[ne]:1,[v]:Hd}]],1],ace=[3,h,N5e,0,[lre],[0],1],cce=[3,h,Hze,0,[],[]],uce=[3,h,zA,0,[cu,co,lt,uu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],lce=[3,h,TC,{[v]:TC},[Gze],[0]],dce=[3,h,mre,0,[lee],[[2,{[v]:lee}]]],pce=[3,h,Ere,0,[Kee,Vee,Wee],[1,1,1]],fce=[3,h,qze,0,[hte],[[()=>pce,{[tN]:1}]]],vN=[3,h,xC,0,[iee,uee,aee,dee],[[2,{[v]:iee}],[2,{[v]:uee}],[2,{[v]:aee}],[2,{[v]:dee}]]],mce=[3,h,aze,0,[w,mC,Ye,ge,L],[[0,1],[()=>pN,{[Ce]:1,[v]:mC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],gce=[3,h,oze,0,[w,fC,L,ge],[[0,1],[()=>doe,{[Ce]:1,[v]:fC}],[0,{[l]:N}],[0,{[l]:ke}]],2],hce=[3,h,cze,0,[w,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,L],[[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:N}]],1],Sce=[3,h,sze,0,[w,Wt,Xm,L],[[0,1],[0,{[U]:po}],[()=>rx,{[Ce]:1,[v]:Xm}],[0,{[l]:N}]],3],yce=[3,h,dze,0,[w,SC,Ye,ge,L],[[0,1],[()=>Noe,{[Ce]:1,[v]:SC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Ece=[3,h,fze,0,[w,OC,Ye,ge,L],[[0,1],[()=>ON,{[Ce]:1,[v]:OC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],_ce=[3,h,Sze,0,[w,Wt,eg,L],[[0,1],[0,{[U]:po}],[()=>nx,{[Ce]:1,[v]:eg}],[0,{[l]:N}]],3],Rce=[3,h,gze,0,[w,Wt,Zm,L],[[0,1],[0,{[U]:po}],[()=>ox,{[Ce]:1,[v]:Zm}],[0,{[l]:N}]],3],Cce=[3,h,_ze,0,[JL],[[0,{[l]:dN}]]],bce=[3,h,Rze,0,[w,ge,iL,L,JL],[[0,1],[0,{[l]:ke}],[()=>boe,{[Ce]:1,[v]:iL}],[0,{[l]:N}],[0,{[l]:dN}]],1],Ace=[3,h,Cze,0,[w,hC,Ye,ge,L],[[0,1],[()=>Aoe,{[Ce]:1,[v]:hC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],xce=[3,h,Aze,0,[w,Wt,tg,L],[[0,1],[0,{[U]:po}],[()=>sx,{[Ce]:1,[v]:tg}],[0,{[l]:N}]],3],Tce=[3,h,Tze,0,[w,uL,L,YVe],[[0,1],[()=>RN,{[Ce]:1,[v]:uL}],[0,{[l]:N}],[2,{[l]:B9e}]],2],vce=[3,h,Dze,0,[w,bC,Ye,L,ge],[[0,1],[()=>TN,{[Ce]:1,[v]:bC}],[0,{[l]:Qe}],[0,{[l]:N}],[0,{[l]:ke}]],2],Dce=[3,h,wze,0,[w,yre,Ye,ge,YGe,L],[[0,1],[0,16],[0,{[l]:Qe}],[0,{[l]:ke}],[2,{[l]:I8e}],[0,{[l]:N}]],2],Ice=[3,h,kze,0,[w,vC,Ye,ge,Zre,L],[[0,1],[()=>IN,{[Ce]:1,[v]:vC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Rne}],[0,{[l]:N}]],2],wce=[3,h,$ze,0,[w,DC,Ye,ge,L],[[0,1],[()=>sue,{[Ce]:1,[v]:DC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Pce=[3,h,Lze,0,[w,Zo,Ye,ge,L],[[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Oce=[3,h,Fze,0,[w,$C,Ye,ge,BL,L],[[0,1],[()=>Vue,{[Ce]:1,[v]:$C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:aN}],[0,{[l]:N}]],2],$ce=[3,h,Uze,0,[w,kC,Ye,ge,L],[[0,1],[()=>Wue,{[Ce]:1,[v]:kC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],kce=[3,h,Wze,0,[$e],[[0,{[l]:Ne}]]],Mce=[3,h,Qze,0,[w,le,_d,ru,Ye,ge,wd,Pd,Od,wL,$d,xe,Re,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>fN,{[Ce]:1,[v]:ru}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:iN}],[0,{[l]:Yd}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:N}]],2],Lce=[3,h,Kze,0,[le,ug,GA,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e],[0,0,[0,{[l]:tx}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}]]],Nce=[3,h,Yze,0,[w,le,ug,Bee,Re,cre,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Ye,xe,L],[[0,1],[0,1],[0,{[U]:eN}],[()=>lu,16],[0,{[U]:Yt}],[0,{[l]:$ne}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Qe}],[0,{[l]:Te}],[0,{[l]:N}]],4],Fce=[3,h,rVe,0,[$e],[[0,{[l]:Ne}]]],Bce=[3,h,nVe,0,[w,le,CC,xe,Re,Ye,ge,L],[[0,1],[0,1],[()=>bN,{[Ce]:1,[v]:CC}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uce=[3,h,Zze,0,[$e],[[0,{[l]:Ne}]]],Gce=[3,h,eVe,0,[w,AC,xe,Zre,Ye,ge,L],[[0,1],[()=>CN,{[Ce]:1,[v]:AC}],[0,{[l]:Te}],[0,{[l]:Rne}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],1],qce=[3,h,oVe,0,[ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,Kt,Qt,un,Hi,zr,uu,$e],[[0,{[l]:Dg}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:mi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[1,{[l]:I9e}],[0,{[l]:Ne}]]],Hce=[3,h,sVe,0,[w,le,_d,dg,Rd,Cd,bd,Ad,Td,Ye,Dd,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Xo,Md,Sg,wd,Pd,Od,$d,o8e,Nd,Qr,Kr,xg,Kt,uo,Qt,un,Hi,zr,xe,Zo,Gd,qd,Ud,yg,Eg,_g,L],[[0,1],[0,1],[0,{[l]:Vd}],[()=>lu,16],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:hg}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[4,{[l]:Xo}],[0,{[l]:iu}],[0,{[l]:Ld}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:Yd}],[1,{[l]:G9e}],[128,{[zd]:Jd}],[0,{[l]:ln}],[0,{[l]:Mg}],[0,{[l]:Lg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:lN}],[0,{[l]:$g}],[5,{[l]:kg}],[0,{[l]:Og}],[0,{[l]:Ig}],[1,{[l]:wg}],[1,{[l]:Pg}],[0,{[l]:N}]],2],jce=[3,h,iVe,0,[$e],[[0,{[l]:Ne}]]],zce=[3,h,aVe,0,[w,le,wC,xe,Re,hL,Ye,ge,L],[[0,1],[0,1],[()=>AN,{[Ce]:1,[v]:wC}],[0,{[l]:Te}],[0,{[U]:Yt}],[2,{[l]:nN}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Vce=[3,h,lVe,0,[Re],[[0,{[l]:mi}]]],Wce=[3,h,dVe,0,[w,le,Zo,Re,Ye,ge,L,xe],[[0,1],[0,1],[()=>cx,{[Ce]:1,[v]:Zo}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}],[0,{[l]:Te}]],3],Kce=[3,h,fVe,0,[w,xC,Ye,ge,L],[[0,1],[()=>vN,{[Ce]:1,[v]:xC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Qce=[3,h,Cre,0,[SVe,DL,Wt,qi],[[0,{[v]:RVe}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],ax=[3,h,WA,0,[ti,nu],[0,1],1],Yce=[3,h,bVe,0,[hre],[[21,{[tN]:1}]]],Jce=[3,h,kre,0,[$te,wje,_re,xVe,TVe],[0,0,0,0,0]],DN=[3,h,HL,0,[$te,_re],[0,0],1],Xce=[3,h,DVe,0,[],[]],Zce=[3,h,PVe,0,[w,le,BVe,q4e,j4e,H4e,z4e,XVe,eWe,ZVe,tWe,o4e],[[0,1],[0,1],[0,{[l]:$9e}],[0,{[l]:iu}],[0,{[l]:Ld}],[4,{[l]:kL}],[4,{[l]:LL}],[0,{[l]:k9e}],[0,{[l]:L9e}],[6,{[l]:M9e}],[6,{[l]:N9e}],[0,{[l]:O8e,[l8e]:1}]],3],eue=[3,h,wre,0,[Wr],[0],1],IN=[3,h,vC,0,[VA,Cg],[0,[()=>dKe,{[ne]:1,[v]:Hd}]],2],tue=[3,h,LVe,0,[Wr,LA,kd,gVe,Je,qi,qre,Rte,dte],[0,()=>xse,0,1,0,[()=>nue,0],()=>bue,()=>Ose,()=>gse],2],rue=[3,h,kVe,0,[Je,jd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],nue=[3,h,MVe,0,[Je,lo,lg],[0,()=>du,[()=>rue,0]]],oue=[3,h,$re,0,[Wr,OWe],[0,()=>wN],2],wN=[3,h,UVe,0,[C5e],[1]],sue=[3,h,DC,0,[gre],[0],1],iue=[3,h,Pre,0,[Aqe],[2]],aue=[3,h,IVe,0,[$e,wVe],[[0,{[l]:Ne}],[0,{[l]:P9e}]]],cue=[3,h,OVe,0,[w,le,Re,lL,xe,ge,L],[[0,1],[0,1],[0,{[U]:Yt}],[()=>uue,{[Ce]:1,[v]:lL}],[0,{[l]:Te}],[0,{[l]:ke}],[0,{[l]:N}]],2],uue=[3,h,lL,0,[nu,Ote,Ag,Jre,fqe,Bre,ure],[1,()=>Kie,0,0,0,()=>yue,[()=>ice,0]]],PN=[3,h,VL,0,[Vje,CVe],[2,4]],lue=[3,h,Ore,0,[kre,ute],[()=>Jce,()=>Poe],1],due=[3,h,rWe,0,[Dqe],[[()=>J9e,{[ne]:1,[v]:Dte}]]],pue=[3,h,oWe,0,[bGe,Je,vL,AGe,kA,Zo,rne,Kr],[0,0,[()=>vse,0],0,[()=>lx,0],[()=>cx,0],[()=>SKe,0],0],2],fue=[3,h,jre,0,[QL,bg],[0,0],2],mue=[3,h,zre,0,[QL,bg,QA,Qre],[0,0,0,0],4],gue=[3,h,Ure,0,[SWe,Ate],[1,1]],hue=[3,h,cWe,0,[hre],[[()=>nle,16]]],Sue=[3,h,uWe,0,[w,le,Tte,bte,ML,qL,Kt,uo,Qt,Pre,Ure,L],[[0,1],[0,1],0,0,()=>EN,()=>xN,[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],()=>iue,()=>gue,[0,{[l]:N}]],6],yue=[3,h,Bre,0,[ML,bte,Tte,qL],[()=>EN,0,0,()=>xN],4],Eue=[3,h,dWe,0,[lWe,u6e],[0,[()=>Or,0]],1],ON=[3,h,OC,0,[Cg],[[()=>pKe,{[ne]:1,[v]:Hd}]],1],_ue=[3,h,fWe,0,[dGe,zr,zee],[[()=>Eue,0],2,[()=>_oe,0]]],Rue=[3,h,KVe,0,[see,pee,fee,ti],[[0,{[v]:see}],[()=>mee,{[v]:pee}],[()=>mee,{[v]:fee}],[4,{[v]:ti}]],4],Cue=[3,h,PC,{[v]:PC},[],[]],bue=[3,h,qre,0,[Fre,wre],[()=>xue,()=>eue]],Aue=[3,h,KL,{[v]:KA},[o6e],[[()=>Or,0]],1],xue=[3,h,Fre,0,[Wr],[0],1],Tue=[3,h,pWe,{[v]:KA},[a6e,zr],[[()=>H9e,0],2],1],vue=[3,h,Hre,{[v]:Gre},[],[]],Due=[3,h,Vre,0,[Kee,Vee,Wee],[1,1,1]],Iue=[3,h,JVe,0,[hte],[[()=>Due,{[tN]:1}]]],wue=[3,h,Nre,0,[U4e],[()=>Pue]],Pue=[3,h,VVe,0,[X5e,LA],[0,()=>moe],2],du=[3,h,lo,0,[le,ZL],[0,0],2],cx=[3,h,Zo,0,[YA],[[()=>ji,0]],1],Oue=[3,h,xWe,0,[OL,Sre],[[()=>hN,{[Sne]:[hne,ine]}],0]],$ue=[3,h,Yre,0,[PC,TC],[[()=>Cue,{[v]:PC}],[()=>lce,{[v]:TC}]]],kue=[3,h,Xre,0,[nu,Hee],[1,0],2],Mue=[3,h,Wre,0,[EWe,DL,Wt,qi],[[0,{[v]:$We}],[64,{[ne]:1,[v]:IL}],0,[()=>ix,0]],2],Lue=[3,h,ene,0,[gte,nu,Kr],[5,1,0]],Nue=[3,h,NWe,0,[w,gC,Ye,ge,L],[[0,1],[()=>Eoe,{[Ce]:1,[v]:gC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Fue=[3,h,BWe,0,[w,EC,Ye,ge,L],[[0,1],[()=>uae,{[Ce]:1,[v]:EC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Bue=[3,h,GWe,0,[w,_C,Ye,ge,L],[[0,1],[()=>pae,{[Ce]:1,[v]:_C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Uue=[3,h,jWe,0,[w,le,are,Re,xe,L,Ye,ge],[[0,1],[0,1],[()=>rle,16],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Qe}],[0,{[l]:ke}]],3],Gue=[3,h,zWe,0,[$e],[[0,{[l]:Ne}]]],que=[3,h,KWe,0,[ate,Xee,Qr,Kt,Qt,un,zr,$e],[[0,{[l]:wne}],[()=>Loe,16],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Hue=[3,h,QWe,0,[w,cte,le,cu,Ka,ete,tte,rte,nte,ZGe,Kt,uo,Qt,ote,bL,ste,xe,L,Cte],[[0,1],[0,{[l]:Cne}],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[0,{[l]:bne}],[4,{[l]:Ane}],[0,{[l]:xne}],[4,{[l]:Tne}],[0,{[l]:P8e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:vne}],[()=>aoe,{[l]:Dne}],[0,{[l]:Ine}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Mne}]],5],jue=[3,h,YWe,0,[Qr,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,Qt,un,zr,$e],[[0,{[l]:ln}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],zue=[3,h,JWe,0,[w,le,cu,Ka,dg,Td,Ye,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,uo,Qt,xe,L],[[0,1],[0,1],[1,{[U]:ZA}],[0,{[U]:vg}],[()=>lu,16],[1,{[l]:xd}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],4],Vue=[3,h,$C,0,[Kte,Wr],[[0,{[v]:Vte}],0]],Wue=[3,h,kC,0,[xL,$L,HL,zL],[()=>mN,()=>SN,()=>DN,[()=>Zue,0]]],Kue=[3,h,n8e,0,[FVe,GVe,dg,QVe,yte,_te,mL,Rd,Cd,bd,Ad,Td,CL,Dd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,ou,lt,Xo,ti,co,UL,Nd,Gd,Ud,qd,qA,Rg,$e,WL,Qr,Kt,un,Qt,Kr,YL,Re,zr],[[0,{[u8e]:1,[l]:O9e}],[0,{[l]:F9e}],[()=>lu,16],[1,{[l]:E9e}],[0,{[l]:$8e}],[0,{[l]:k8e}],[0,{[l]:j8e}],[0,{[l]:M8e}],[0,{[l]:L8e}],[0,{[l]:N8e}],[0,{[l]:F8e}],[1,{[l]:xd}],[0,{[l]:B8e}],[0,{[l]:U8e}],[0,{[l]:z8e}],[0,{[l]:V8e}],[0,{[l]:W8e}],[0,{[l]:Q8e}],[0,{[l]:Y8e}],[0,{[l]:J8e}],[0,{[l]:K8e}],[0,{[l]:X8e}],[0,{[l]:Z8e}],[0,{[l]:e9e}],[2,{[l]:t9e}],[0,{[l]:G8e}],[4,{[l]:q8e}],[0,{[l]:r9e}],[4,{[l]:H8e}],[1,{[l]:n9e}],[128,{[zd]:Jd}],[0,{[l]:i9e}],[0,{[l]:s9e}],[5,{[l]:a9e}],[1,{[l]:o9e}],[0,{[l]:l9e}],[0,{[l]:u9e}],[0,{[l]:c9e}],[0,{[l]:p9e}],[0,{[l]:g9e}],[()=>Or,{[l]:f9e}],[0,{[l]:h9e}],[0,{[l]:d9e}],[1,{[l]:S9e}],[0,{[l]:y9e}],[2,{[l]:m9e}]],2],pe="unit",j9e=[1,h,kee,0,[()=>rx,0]],z9e=[1,h,XUe,0,[()=>hoe,{[v]:Nee}]],Que=[1,h,yL,0,[()=>Roe,{[v]:w}]],ux=[1,h,WGe,0,()=>Toe],V9e=[1,h,KGe,0,()=>Doe],Yue=[1,h,_L,0,[()=>Foe,0]],W9e=[1,h,sqe,0,()=>fse],K9e=[1,h,pte,0,()=>mse],Q9e=[1,h,Rqe,0,[0,{[v]:TL}]],Y9e=[1,h,xte,0,()=>wse],J9e=[1,h,vqe,0,()=>$se],lx=[1,h,NA,0,[()=>Qie,{[v]:PL}]],X9e=[1,h,Nte,0,[()=>nx,0]],Z9e=[1,h,kte,0,[()=>ox,0]],eKe=[1,h,Uje,0,[0,{[v]:Iqe}]],tKe=[1,h,M6e,0,[()=>gae,0]],Jue=[1,h,l5e,0,[()=>Sae,0]],rKe=[1,h,jte,0,[()=>sx,0]],nKe=[1,h,_5e,0,()=>Xae],oKe=[1,h,k5e,0,()=>ece],sKe=[1,h,G5e,0,()=>rce],Xue=[1,h,W5e,0,[()=>tce,0]],iKe=[1,h,eze,0,[()=>sce,0]],aKe=[1,h,F5e,0,()=>ace],cKe=[1,h,jA,0,()=>uce],uKe=[1,h,jze,0,()=>oce],lKe=[1,h,yVe,0,[()=>Qce,0]],dKe=[1,h,NVe,0,[()=>tue,0]],Zue=[1,h,zL,0,[()=>lue,{[v]:Ore}]],pKe=[1,h,mWe,0,[()=>_ue,0]],ji=[1,h,YA,0,[()=>du,{[v]:lo}]],fKe=[1,h,Kre,0,[()=>Oue,{[v]:PL}]],mKe=[1,h,TWe,0,()=>kue],gKe=[1,h,CWe,0,[()=>Mue,0]],hKe=[1,h,vWe,0,()=>Lue],SKe=[1,h,rne,0,[()=>Wae,{[v]:Wte}]],ele=[4,h,KUe,0,[Je,lo,lg],[0,()=>du,[()=>foe,0]]],tle=[4,h,S5e,0,[Je,lo,Uee,lg],[0,()=>du,0,[()=>Jae,0]]],rle=[4,h,are,0,[KL],[[()=>Tue,{[v]:KA}]]],nle=[4,h,aWe,{[gne]:1},[HVe,Vre,Ere,c4e,Ate],[[()=>Yce,0],[()=>Iue,0],[()=>fce,0],()=>Ooe,()=>Ise]],ole=[9,h,tGe,{[M]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>loe,()=>uoe],sle=[9,h,Yee,{[M]:["POST","/{Key+}",200]},()=>woe,()=>Ioe],ile=[9,h,HGe,{[M]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>koe,()=>$oe],ale=[9,h,xGe,{[M]:["PUT","/",200]},()=>Hoe,()=>qoe],cle=[9,h,TGe,{[ve]:"-",[M]:["POST","/?metadataConfiguration",200]},()=>Uoe,()=>pe],ule=[9,h,DGe,{[ve]:"-",[M]:["POST","/?metadataTable",200]},()=>Goe,()=>pe],lle=[9,h,qGe,{[M]:["POST","/{Key+}?uploads",200]},()=>zoe,()=>joe],dle=[9,h,n4e,{[M]:["GET","/?session",200]},()=>Woe,()=>Voe],ple=[9,h,l4e,{[M]:["DELETE","/",204]},()=>lse,()=>pe],fle=[9,h,d4e,{[M]:["DELETE","/?analytics",204]},()=>Xoe,()=>pe],mle=[9,h,f4e,{[M]:["DELETE","/?cors",204]},()=>Zoe,()=>pe],gle=[9,h,g4e,{[M]:["DELETE","/?encryption",204]},()=>ese,()=>pe],hle=[9,h,E4e,{[M]:["DELETE","/?intelligent-tiering",204]},()=>tse,()=>pe],Sle=[9,h,S4e,{[M]:["DELETE","/?inventory",204]},()=>rse,()=>pe],yle=[9,h,R4e,{[M]:["DELETE","/?lifecycle",204]},()=>nse,()=>pe],Ele=[9,h,b4e,{[M]:["DELETE","/?metadataConfiguration",204]},()=>ose,()=>pe],_le=[9,h,v4e,{[M]:["DELETE","/?metadataTable",204]},()=>sse,()=>pe],Rle=[9,h,T4e,{[M]:["DELETE","/?metrics",204]},()=>ise,()=>pe],Cle=[9,h,I4e,{[M]:["DELETE","/?ownershipControls",204]},()=>ase,()=>pe],ble=[9,h,P4e,{[M]:["DELETE","/?policy",204]},()=>cse,()=>pe],Ale=[9,h,M4e,{[M]:["DELETE","/?replication",204]},()=>use,()=>pe],xle=[9,h,L4e,{[M]:["DELETE","/?tagging",204]},()=>dse,()=>pe],Tle=[9,h,F4e,{[M]:["DELETE","/?website",204]},()=>pse,()=>pe],vle=[9,h,iqe,{[M]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Ese,()=>yse],Dle=[9,h,Q4e,{[M]:["DELETE","/{Key+}?annotation",204]},()=>Sse,()=>hse],Ile=[9,h,aqe,{[ve]:"-",[M]:["POST","/?delete",200]},()=>Rse,()=>_se],wle=[9,h,rqe,{[M]:["DELETE","/{Key+}?tagging",204]},()=>bse,()=>Cse],Ple=[9,h,cqe,{[M]:["DELETE","/?publicAccessBlock",204]},()=>Ase,()=>pe],Ole=[9,h,Pqe,{[M]:["GET","/?abac",200]},()=>Mse,()=>kse],$le=[9,h,Oqe,{[M]:["GET","/?accelerate",200]},()=>Nse,()=>Lse],kle=[9,h,qqe,{[M]:["GET","/?acl",200]},()=>Bse,()=>Fse],Mle=[9,h,Nqe,{[M]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Gse,()=>Use],Lle=[9,h,Hqe,{[M]:["GET","/?cors",200]},()=>Hse,()=>qse],Nle=[9,h,Vqe,{[M]:["GET","/?encryption",200]},()=>zse,()=>jse],Fle=[9,h,Xqe,{[M]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>Wse,()=>Vse],Ble=[9,h,Qqe,{[M]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>Qse,()=>Kse],Ule=[9,h,rHe,{[M]:["GET","/?lifecycle",200]},()=>Jse,()=>Yse],Gle=[9,h,tHe,{[M]:["GET","/?location",200]},()=>Zse,()=>Xse],qle=[9,h,uHe,{[M]:["GET","/?logging",200]},()=>tie,()=>eie],Hle=[9,h,lHe,{[M]:["GET","/?metadataConfiguration",200]},()=>nie,()=>rie],jle=[9,h,hHe,{[M]:["GET","/?metadataTable",200]},()=>iie,()=>sie],zle=[9,h,gHe,{[M]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>uie,()=>cie],Vle=[9,h,EHe,{[M]:["GET","/?notification",200]},()=>lie,()=>RN],Wle=[9,h,RHe,{[M]:["GET","/?ownershipControls",200]},()=>pie,()=>die],Kle=[9,h,AHe,{[M]:["GET","/?policy",200]},()=>mie,()=>fie],Qle=[9,h,vHe,{[M]:["GET","/?policyStatus",200]},()=>hie,()=>gie],Yle=[9,h,wHe,{[M]:["GET","/?replication",200]},()=>yie,()=>Sie],Jle=[9,h,OHe,{[M]:["GET","/?requestPayment",200]},()=>_ie,()=>Eie],Xle=[9,h,LHe,{[M]:["GET","/?tagging",200]},()=>Cie,()=>Rie],Zle=[9,h,BHe,{[M]:["GET","/?versioning",200]},()=>Aie,()=>bie],ede=[9,h,qHe,{[M]:["GET","/?website",200]},()=>Tie,()=>xie],tde=[9,h,zHe,{[ve]:"-",[M]:["GET","/{Key+}?x-id=GetObject",200]},()=>Bie,()=>Fie],rde=[9,h,VHe,{[M]:["GET","/{Key+}?acl",200]},()=>Die,()=>vie],nde=[9,h,tje,{[ve]:"-",[M]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>wie,()=>Iie],ode=[9,h,rje,{[M]:["GET","/{Key+}?attributes",200]},()=>$ie,()=>Pie],sde=[9,h,ije,{[M]:["GET","/{Key+}?legal-hold",200]},()=>Mie,()=>kie],ide=[9,h,nje,{[M]:["GET","/?object-lock",200]},()=>Nie,()=>Lie],ade=[9,h,fje,{[M]:["GET","/{Key+}?retention",200]},()=>Gie,()=>Uie],cde=[9,h,mje,{[M]:["GET","/{Key+}?tagging",200]},()=>Hie,()=>qie],ude=[9,h,Eje,{[M]:["GET","/{Key+}?torrent",200]},()=>zie,()=>jie],lde=[9,h,_je,{[M]:["GET","/?publicAccessBlock",200]},()=>Wie,()=>Vie],dde=[9,h,bje,{[M]:["HEAD","/",200]},()=>Jie,()=>Yie],pde=[9,h,vje,{[M]:["HEAD","/{Key+}",200]},()=>Zie,()=>Xie],fde=[9,h,m6e,{[M]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Rae,()=>_ae],mde=[9,h,R6e,{[M]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>bae,()=>Cae],gde=[9,h,y6e,{[M]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>xae,()=>Aae],hde=[9,h,A6e,{[M]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>vae,()=>Tae],Sde=[9,h,f6e,{[M]:["GET","/?x-id=ListBuckets",200]},()=>Iae,()=>Dae],yde=[9,h,I6e,{[M]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Pae,()=>wae],Ede=[9,h,G6e,{[M]:["GET","/?uploads",200]},()=>$ae,()=>Oae],_de=[9,h,V6e,{[M]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>Mae,()=>kae],Rde=[9,h,z6e,{[M]:["GET","/",200]},()=>Nae,()=>Lae],Cde=[9,h,J6e,{[M]:["GET","/?list-type=2",200]},()=>Bae,()=>Fae],bde=[9,h,r5e,{[M]:["GET","/?versions",200]},()=>Gae,()=>Uae],Ade=[9,h,n5e,{[M]:["GET","/{Key+}?x-id=ListParts",200]},()=>Hae,()=>qae],xde=[9,h,rze,{[ve]:"-",[M]:["PUT","/?abac",200]},()=>mce,()=>pe],Tde=[9,h,nze,{[ve]:"-",[M]:["PUT","/?accelerate",200]},()=>gce,()=>pe],vde=[9,h,uze,{[ve]:"-",[M]:["PUT","/?acl",200]},()=>hce,()=>pe],Dde=[9,h,ize,{[M]:["PUT","/?analytics",200]},()=>Sce,()=>pe],Ide=[9,h,lze,{[ve]:"-",[M]:["PUT","/?cors",200]},()=>yce,()=>pe],wde=[9,h,pze,{[ve]:"-",[M]:["PUT","/?encryption",200]},()=>Ece,()=>pe],Pde=[9,h,hze,{[M]:["PUT","/?intelligent-tiering",200]},()=>_ce,()=>pe],Ode=[9,h,mze,{[M]:["PUT","/?inventory",200]},()=>Rce,()=>pe],$de=[9,h,Eze,{[ve]:"-",[M]:["PUT","/?lifecycle",200]},()=>bce,()=>Cce],kde=[9,h,yze,{[ve]:"-",[M]:["PUT","/?logging",200]},()=>Ace,()=>pe],Mde=[9,h,bze,{[M]:["PUT","/?metrics",200]},()=>xce,()=>pe],Lde=[9,h,xze,{[M]:["PUT","/?notification",200]},()=>Tce,()=>pe],Nde=[9,h,vze,{[ve]:"-",[M]:["PUT","/?ownershipControls",200]},()=>vce,()=>pe],Fde=[9,h,Ize,{[ve]:"-",[M]:["PUT","/?policy",200]},()=>Dce,()=>pe],Bde=[9,h,Pze,{[ve]:"-",[M]:["PUT","/?replication",200]},()=>Ice,()=>pe],Ude=[9,h,Oze,{[ve]:"-",[M]:["PUT","/?requestPayment",200]},()=>wce,()=>pe],Gde=[9,h,Mze,{[ve]:"-",[M]:["PUT","/?tagging",200]},()=>Pce,()=>pe],qde=[9,h,Nze,{[ve]:"-",[M]:["PUT","/?versioning",200]},()=>Oce,()=>pe],Hde=[9,h,Bze,{[ve]:"-",[M]:["PUT","/?website",200]},()=>$ce,()=>pe],jde=[9,h,zze,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Hce,()=>qce],zde=[9,h,Vze,{[ve]:"-",[M]:["PUT","/{Key+}?acl",200]},()=>Mce,()=>kce],Vde=[9,h,Jze,{[ve]:"-",[M]:["PUT","/{Key+}?annotation",200]},()=>Nce,()=>Lce],Wde=[9,h,tVe,{[ve]:"-",[M]:["PUT","/{Key+}?legal-hold",200]},()=>Bce,()=>Fce],Kde=[9,h,Xze,{[ve]:"-",[M]:["PUT","/?object-lock",200]},()=>Gce,()=>Uce],Qde=[9,h,cVe,{[ve]:"-",[M]:["PUT","/{Key+}?retention",200]},()=>zce,()=>jce],Yde=[9,h,uVe,{[ve]:"-",[M]:["PUT","/{Key+}?tagging",200]},()=>Wce,()=>Vce],Jde=[9,h,pVe,{[ve]:"-",[M]:["PUT","/?publicAccessBlock",200]},()=>Kce,()=>pe],Xde=[9,h,vVe,{[M]:["PUT","/{Key+}?renameObject",200]},()=>Zce,()=>Xce],Zde=[9,h,$Ve,{[ve]:"-",[M]:["POST","/{Key+}?restore",200]},()=>cue,()=>aue],epe=[9,h,iWe,{[M]:["POST","/{Key+}?select&select-type=2",200]},()=>Sue,()=>hue],tpe=[9,h,LWe,{[ve]:"-",[M]:["PUT","/?metadataAnnotationTable",200]},()=>Nue,()=>pe],rpe=[9,h,FWe,{[ve]:"-",[M]:["PUT","/?metadataInventoryTable",200]},()=>Fue,()=>pe],npe=[9,h,UWe,{[ve]:"-",[M]:["PUT","/?metadataJournalTable",200]},()=>Bue,()=>pe],ope=[9,h,HWe,{[ve]:"-",[M]:["PUT","/{Key+}?encryption",200]},()=>Uue,()=>Gue],spe=[9,h,VWe,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>zue,()=>jue],ipe=[9,h,WWe,{[M]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Hue,()=>que],ape=[9,h,r8e,{[a8e]:["{RequestRoute}."],[M]:["POST","/WriteGetObjectResponse",200]},()=>Kue,()=>pe],rg=class extends k(Pee,ce,"CreateSession",dle){},yKe="3.1151.0",EKe={version:yKe},_Ke=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??dUe,base64Encoder:t?.base64Encoder??lUe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Dee,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??uUe,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??TUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new X2e},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Z2e}],logger:t?.logger??new y2e,md5:t?.md5??oUe,protocol:t?.protocol??o2e,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:ioe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??cUe,serviceId:t?.serviceId??"S3",sha1:t?.sha1??gUe,sha256:t?.sha256??nUe,signerConstructor:t?.signerConstructor??_ee,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??U2e,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??aUe,utf8Encoder:t?.utf8Encoder??iUe}),RKe=t=>{E2e(process.version);let e=x2e(t),r=()=>e().then(_2e),n=_Ke(t);zBe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oo(tUe,o),bodyLengthChecker:t?.bodyLengthChecker??pUe,credentialDefaultProvider:t?.credentialDefaultProvider??rUe,defaultUserAgentProvider:t?.defaultUserAgentProvider??VBe({serviceId:n.serviceId,clientVersion:EKe.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??oo(i2e,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??F2e,maxAttempts:t?.maxAttempts??oo(V2e,t),region:t?.region??oo(D2e,{...I2e,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??oo(qBe,o),requestHandler:mUe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??oo(GBe,o),retryMode:t?.retryMode??oo({...z2e,default:async()=>(await r()).retryMode||j2e},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??oo(eUe,o),streamCollector:t?.streamCollector??fUe,streamHasher:t?.streamHasher??sUe,useArnRegion:t?.useArnRegion??oo(s2e,o),useDualstackEndpoint:t?.useDualstackEndpoint??oo(v2e,o),useFipsEndpoint:t?.useFipsEndpoint??oo(T2e,o),userAgentAppId:t?.userAgentAppId??oo(WBe,o)}},CKe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},bKe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),AKe=(t,e)=>{let r=Object.assign(KBe(t),R2e(t),G2e(t),CKe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,QBe(r),C2e(r),q2e(r),bKe(r))},Bi=class extends yee{config;constructor(...[e]){let r=RKe(e||{});super(r),this.initConfig=r;let n=DUe(r),o=YBe(n),s=HBe(o),i=W2e(s),a=w2e(i),c=JBe(a),u=N2e(c),f=B2e(u),m=vUe(f),y=a2e(m,{session:[()=>this,rg]}),_=AKe(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(Q2e(this.config)),this.middlewareStack.use(XBe(this.config)),this.middlewareStack.use(K2e(this.config)),this.middlewareStack.use(H2e(this.config)),this.middlewareStack.use(ZBe(this.config)),this.middlewareStack.use(e2e(this.config)),this.middlewareStack.use(t2e(this.config)),this.middlewareStack.use(f2e(this.config,{httpAuthSchemeParametersProvider:bUe,identityProviderConfigProvider:async C=>new m2e({"aws.auth#sigv4":C.credentials,"aws.auth#sigv4a":C.credentials})})),this.middlewareStack.use(g2e(this.config)),this.middlewareStack.use(c2e(this.config)),this.middlewareStack.use(u2e(this.config)),this.middlewareStack.use(l2e(this.config)),this.middlewareStack.use(d2e(this.config)),this.middlewareStack.use(p2e(this.config))}destroy(){super.destroy()}},MC=class extends k(An,ce,"AbortMultipartUpload",ole){},LC=class extends k(An,Ed,"CompleteMultipartUpload",sle){},NC=class extends k(wUe,Ed,"CopyObject",ile){},FC=class extends k(PUe,MUe,"CreateBucket",ale){},BC=class extends k(z,Pr,"CreateBucketMetadataConfiguration",cle){},UC=class extends k(z,Pr,"CreateBucketMetadataTableConfiguration",ule){},GC=class extends k(An,Ed,"CreateMultipartUpload",lle){},qC=class extends k(z,at,"DeleteBucketAnalyticsConfiguration",fle){},HC=class extends k(z,at,"DeleteBucket",ple){},jC=class extends k(z,at,"DeleteBucketCors",mle){},zC=class extends k(z,at,"DeleteBucketEncryption",gle){},VC=class extends k(z,at,"DeleteBucketIntelligentTieringConfiguration",hle){},WC=class extends k(z,at,"DeleteBucketInventoryConfiguration",Sle){},KC=class extends k(z,at,"DeleteBucketLifecycle",yle){},QC=class extends k(z,at,"DeleteBucketMetadataConfiguration",Ele){},YC=class extends k(z,at,"DeleteBucketMetadataTableConfiguration",_le){},JC=class extends k(z,at,"DeleteBucketMetricsConfiguration",Rle){},XC=class extends k(z,at,"DeleteBucketOwnershipControls",Cle){},ZC=class extends k(z,at,"DeleteBucketPolicy",ble){},eb=class extends k(z,at,"DeleteBucketReplication",Ale){},tb=class extends k(z,at,"DeleteBucketTagging",xle){},rb=class extends k(z,at,"DeleteBucketWebsite",Tle){},nb=class extends k($t,ce,"DeleteObjectAnnotation",Dle){},ob=class extends k(An,ce,"DeleteObject",vle){},sb=class extends k($t,za,"DeleteObjects",Ile){},ib=class extends k($t,ce,"DeleteObjectTagging",wle){},ab=class extends k(z,at,"DeletePublicAccessBlock",Ple){},cb=class extends k($t,ce,"GetBucketAbac",Ole){},ub=class extends k(z,ce,"GetBucketAccelerateConfiguration",$le){},lb=class extends k(z,ce,"GetBucketAcl",kle){},db=class extends k(z,ce,"GetBucketAnalyticsConfiguration",Mle){},pb=class extends k(z,ce,"GetBucketCors",Lle){},fb=class extends k(z,ce,"GetBucketEncryption",Nle){},mb=class extends k(z,ce,"GetBucketIntelligentTieringConfiguration",Fle){},gb=class extends k(z,ce,"GetBucketInventoryConfiguration",Ble){},hb=class extends k(z,ce,"GetBucketLifecycleConfiguration",Ule){},Sb=class extends k(z,ce,"GetBucketLocation",Gle){},yb=class extends k(z,ce,"GetBucketLogging",qle){},Eb=class extends k(z,ce,"GetBucketMetadataConfiguration",Hle){},_b=class extends k(z,ce,"GetBucketMetadataTableConfiguration",jle){},Rb=class extends k(z,ce,"GetBucketMetricsConfiguration",zle){},Cb=class extends k(z,ce,"GetBucketNotificationConfiguration",Vle){},bb=class extends k(z,ce,"GetBucketOwnershipControls",Wle){},Ab=class extends k(z,at,"GetBucketPolicy",Kle){},xb=class extends k(z,ce,"GetBucketPolicyStatus",Qle){},Tb=class extends k(z,ce,"GetBucketReplication",Yle){},vb=class extends k(z,ce,"GetBucketRequestPayment",Jle){},Db=class extends k(z,ce,"GetBucketTagging",Xle){},Ib=class extends k(z,ce,"GetBucketVersioning",Zle){},wb=class extends k(z,ce,"GetBucketWebsite",ede){},Pb=class extends k(An,ce,"GetObjectAcl",rde){},Ob=class extends k(An,LUe,"GetObjectAnnotation",nde){},$b=class extends k($t,Ed,"GetObjectAttributes",ode){},kb=class extends k(An,NUe,"GetObject",tde){},Mb=class extends k($t,ce,"GetObjectLegalHold",sde){},Lb=class extends k($t,ce,"GetObjectLockConfiguration",ide){},Nb=class extends k($t,ce,"GetObjectRetention",ade){},Fb=class extends k($t,ce,"GetObjectTagging",cde){},Bb=class extends k($t,at,"GetObjectTorrent",ude){},Ub=class extends k(z,ce,"GetPublicAccessBlock",lde){},hd=class extends k($t,ce,"HeadBucket",dde){},Sd=class extends k(An,FUe,"HeadObject",pde){},Gb=class extends k(z,ce,"ListBucketAnalyticsConfigurations",fde){},qb=class extends k(z,ce,"ListBucketIntelligentTieringConfigurations",mde){},Hb=class extends k(z,ce,"ListBucketInventoryConfigurations",gde){},jb=class extends k(z,ce,"ListBucketMetricsConfigurations",hde){},ng=class extends k(OUe,ce,"ListBuckets",Sde){},og=class extends k($Ue,ce,"ListDirectoryBuckets",yde){},zb=class extends k($A,ce,"ListMultipartUploads",Ede){},sg=class extends k($t,ce,"ListObjectAnnotations",_de){},Vb=class extends k($A,ce,"ListObjects",Rde){},ig=class extends k($A,ce,"ListObjectsV2",Cde){},Wb=class extends k($A,ce,"ListObjectVersions",bde){},ag=class extends k(An,Ed,"ListParts",Ade){},Kb=class extends k($t,Oee,"PutBucketAbac",xde){},Qb=class extends k(z,Oee,"PutBucketAccelerateConfiguration",Tde){},Yb=class extends k(z,Pr,"PutBucketAcl",vde){},Jb=class extends k(z,at,"PutBucketAnalyticsConfiguration",Dde){},Xb=class extends k(z,Pr,"PutBucketCors",Ide){},Zb=class extends k(z,Pr,"PutBucketEncryption",wde){},eA=class extends k(z,at,"PutBucketIntelligentTieringConfiguration",Pde){},tA=class extends k(z,at,"PutBucketInventoryConfiguration",Ode){},rA=class extends k(z,za,"PutBucketLifecycleConfiguration",$de){},nA=class extends k(z,Pr,"PutBucketLogging",kde){},oA=class extends k(z,at,"PutBucketMetricsConfiguration",Mde){},sA=class extends k(z,at,"PutBucketNotificationConfiguration",Lde){},iA=class extends k(z,Pr,"PutBucketOwnershipControls",Nde){},aA=class extends k(z,Pr,"PutBucketPolicy",Fde){},cA=class extends k(z,Pr,"PutBucketReplication",Bde){},uA=class extends k(z,Pr,"PutBucketRequestPayment",Ude){},lA=class extends k(z,Pr,"PutBucketTagging",Gde){},dA=class extends k(z,Pr,"PutBucketVersioning",qde){},pA=class extends k(z,Pr,"PutBucketWebsite",Hde){},fA=class extends k(An,za,"PutObjectAcl",zde){},mA=class extends k(An,$ee,"PutObjectAnnotation",Vde){},gA=class extends k(An,BUe,"PutObject",jde){},hA=class extends k($t,za,"PutObjectLegalHold",Wde){},SA=class extends k($t,za,"PutObjectLockConfiguration",Kde){},yA=class extends k($t,za,"PutObjectRetention",Qde){},EA=class extends k($t,za,"PutObjectTagging",Yde){},_A=class extends k(z,Pr,"PutPublicAccessBlock",Jde){},RA=class extends k(An,ce,"RenameObject",Xde){},CA=class extends k($t,$ee,"RestoreObject",Zde){},bA=class extends k($t,UUe,"SelectObjectContent",epe){},AA=class extends k(z,Pr,"UpdateBucketMetadataAnnotationTableConfiguration",tpe){},xA=class extends k(z,Pr,"UpdateBucketMetadataInventoryTableConfiguration",rpe){},TA=class extends k(z,Pr,"UpdateBucketMetadataJournalTableConfiguration",npe){},vA=class extends k($t,za,"UpdateObjectEncryption",ope){},DA=class extends k(An,GUe,"UploadPart",spe){},IA=class extends k(Pee,Ed,"UploadPartCopy",ipe){},wA=class extends k(kUe,at,"WriteGetObjectResponse",ape){},cpe=cg(Bi,ng,"ContinuationToken","ContinuationToken","MaxBuckets"),upe=cg(Bi,og,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),lpe=cg(Bi,sg,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),dpe=cg(Bi,ig,"ContinuationToken","NextContinuationToken","MaxKeys"),ppe=cg(Bi,ag,"PartNumberMarker","NextPartNumberMarker","MaxParts"),fpe=async(t,e)=>{let r;try{return r=await t.send(new hd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},xKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,fpe),mpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,fpe);return OA(n)},gpe=async(t,e)=>{let r;try{r=await t.send(new hd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},TKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,gpe),hpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,gpe);return OA(n)},Spe=async(t,e)=>{let r;try{return r=await t.send(new Sd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},vKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Spe),ype=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Spe);return OA(n)},Epe=async(t,e)=>{let r;try{r=await t.send(new Sd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},DKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,Epe),_pe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,Epe);return OA(n)},IKe={AbortMultipartUploadCommand:MC,CompleteMultipartUploadCommand:LC,CopyObjectCommand:NC,CreateBucketCommand:FC,CreateBucketMetadataConfigurationCommand:BC,CreateBucketMetadataTableConfigurationCommand:UC,CreateMultipartUploadCommand:GC,CreateSessionCommand:rg,DeleteBucketCommand:HC,DeleteBucketAnalyticsConfigurationCommand:qC,DeleteBucketCorsCommand:jC,DeleteBucketEncryptionCommand:zC,DeleteBucketIntelligentTieringConfigurationCommand:VC,DeleteBucketInventoryConfigurationCommand:WC,DeleteBucketLifecycleCommand:KC,DeleteBucketMetadataConfigurationCommand:QC,DeleteBucketMetadataTableConfigurationCommand:YC,DeleteBucketMetricsConfigurationCommand:JC,DeleteBucketOwnershipControlsCommand:XC,DeleteBucketPolicyCommand:ZC,DeleteBucketReplicationCommand:eb,DeleteBucketTaggingCommand:tb,DeleteBucketWebsiteCommand:rb,DeleteObjectCommand:ob,DeleteObjectAnnotationCommand:nb,DeleteObjectsCommand:sb,DeleteObjectTaggingCommand:ib,DeletePublicAccessBlockCommand:ab,GetBucketAbacCommand:cb,GetBucketAccelerateConfigurationCommand:ub,GetBucketAclCommand:lb,GetBucketAnalyticsConfigurationCommand:db,GetBucketCorsCommand:pb,GetBucketEncryptionCommand:fb,GetBucketIntelligentTieringConfigurationCommand:mb,GetBucketInventoryConfigurationCommand:gb,GetBucketLifecycleConfigurationCommand:hb,GetBucketLocationCommand:Sb,GetBucketLoggingCommand:yb,GetBucketMetadataConfigurationCommand:Eb,GetBucketMetadataTableConfigurationCommand:_b,GetBucketMetricsConfigurationCommand:Rb,GetBucketNotificationConfigurationCommand:Cb,GetBucketOwnershipControlsCommand:bb,GetBucketPolicyCommand:Ab,GetBucketPolicyStatusCommand:xb,GetBucketReplicationCommand:Tb,GetBucketRequestPaymentCommand:vb,GetBucketTaggingCommand:Db,GetBucketVersioningCommand:Ib,GetBucketWebsiteCommand:wb,GetObjectCommand:kb,GetObjectAclCommand:Pb,GetObjectAnnotationCommand:Ob,GetObjectAttributesCommand:$b,GetObjectLegalHoldCommand:Mb,GetObjectLockConfigurationCommand:Lb,GetObjectRetentionCommand:Nb,GetObjectTaggingCommand:Fb,GetObjectTorrentCommand:Bb,GetPublicAccessBlockCommand:Ub,HeadBucketCommand:hd,HeadObjectCommand:Sd,ListBucketAnalyticsConfigurationsCommand:Gb,ListBucketIntelligentTieringConfigurationsCommand:qb,ListBucketInventoryConfigurationsCommand:Hb,ListBucketMetricsConfigurationsCommand:jb,ListBucketsCommand:ng,ListDirectoryBucketsCommand:og,ListMultipartUploadsCommand:zb,ListObjectAnnotationsCommand:sg,ListObjectsCommand:Vb,ListObjectsV2Command:ig,ListObjectVersionsCommand:Wb,ListPartsCommand:ag,PutBucketAbacCommand:Kb,PutBucketAccelerateConfigurationCommand:Qb,PutBucketAclCommand:Yb,PutBucketAnalyticsConfigurationCommand:Jb,PutBucketCorsCommand:Xb,PutBucketEncryptionCommand:Zb,PutBucketIntelligentTieringConfigurationCommand:eA,PutBucketInventoryConfigurationCommand:tA,PutBucketLifecycleConfigurationCommand:rA,PutBucketLoggingCommand:nA,PutBucketMetricsConfigurationCommand:oA,PutBucketNotificationConfigurationCommand:sA,PutBucketOwnershipControlsCommand:iA,PutBucketPolicyCommand:aA,PutBucketReplicationCommand:cA,PutBucketRequestPaymentCommand:uA,PutBucketTaggingCommand:lA,PutBucketVersioningCommand:dA,PutBucketWebsiteCommand:pA,PutObjectCommand:gA,PutObjectAclCommand:fA,PutObjectAnnotationCommand:mA,PutObjectLegalHoldCommand:hA,PutObjectLockConfigurationCommand:SA,PutObjectRetentionCommand:yA,PutObjectTaggingCommand:EA,PutPublicAccessBlockCommand:_A,RenameObjectCommand:RA,RestoreObjectCommand:CA,SelectObjectContentCommand:bA,UpdateBucketMetadataAnnotationTableConfigurationCommand:AA,UpdateBucketMetadataInventoryTableConfigurationCommand:xA,UpdateBucketMetadataJournalTableConfigurationCommand:TA,UpdateObjectEncryptionCommand:vA,UploadPartCommand:DA,UploadPartCopyCommand:IA,WriteGetObjectResponseCommand:wA},wKe={paginateListBuckets:cpe,paginateListDirectoryBuckets:upe,paginateListObjectAnnotations:lpe,paginateListObjectsV2:dpe,paginateListParts:ppe},PKe={waitUntilBucketExists:mpe,waitUntilBucketNotExists:hpe,waitUntilObjectExists:ype,waitUntilObjectNotExists:_pe},PA=class extends Bi{};b2e(IKe,PA,{paginators:wKe,waiters:PKe});var OKe={Disabled:"Disabled",Enabled:"Enabled"},$Ke={requester:"requester"},kKe={requester:"requester"},MKe={Enabled:"Enabled",Suspended:"Suspended"},LKe={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},NKe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},FKe={Destination:"Destination"},BKe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},UKe={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},GKe={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},qKe={COPY:"COPY",EXCLUDE:"EXCLUDE"},HKe={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},jKe={COPY:"COPY",REPLACE:"REPLACE"},zKe={OFF:"OFF",ON:"ON"},VKe={OFF:"OFF",ON:"ON"},WKe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},KKe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},QKe={COPY:"COPY",REPLACE:"REPLACE"},YKe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},JKe={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},XKe={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},ZKe={Directory:"Directory"},eQe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},tQe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},rQe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},nQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},oQe={AES256:"AES256",aws_kms:"aws:kms"},sQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},iQe={DISABLED:"DISABLED",ENABLED:"ENABLED"},aQe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},cQe={CSV:"CSV"},uQe={V_1:"V_1"},lQe={NONE:"NONE",SSE_C:"SSE-C"},dQe={Disabled:"Disabled",Enabled:"Enabled"},pQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},fQe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},mQe={All:"All",Current:"Current"},gQe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},hQe={Daily:"Daily",Weekly:"Weekly"},SQe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},yQe={Disabled:"Disabled",Enabled:"Enabled"},EQe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},_Qe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},RQe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},CQe={aws:"aws",customer:"customer"},bQe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},AQe={prefix:"prefix",suffix:"suffix"},xQe={Disabled:"Disabled",Enabled:"Enabled"},TQe={Disabled:"Disabled",Enabled:"Enabled"},vQe={Disabled:"Disabled",Enabled:"Enabled"},DQe={Disabled:"Disabled",Enabled:"Enabled"},IQe={Disabled:"Disabled",Enabled:"Enabled"},wQe={Disabled:"Disabled",Enabled:"Enabled"},PQe={Disabled:"Disabled",Enabled:"Enabled"},OQe={BucketOwner:"BucketOwner",Requester:"Requester"},$Qe={Disabled:"Disabled",Enabled:"Enabled"},kQe={Enabled:"Enabled",Suspended:"Suspended"},MQe={http:"http",https:"https"},LQe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},NQe={ENABLED:"ENABLED"},FQe={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},BQe={Enabled:"Enabled"},UQe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},GQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},qQe={url:"url"},HQe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},jQe={RESTORE_STATUS:"RestoreStatus"},zQe={STANDARD:"STANDARD"},VQe={Disabled:"Disabled",Enabled:"Enabled"},WQe={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},KQe={SQL:"SQL"},QQe={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},YQe={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},JQe={DOCUMENT:"DOCUMENT",LINES:"LINES"},XQe={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},ZQe={SELECT:"SELECT"};d.AbacStatus$=pN;d.AbortIncompleteMultipartUpload$=coe;d.AbortMultipartUpload$=ole;d.AbortMultipartUploadCommand=MC;d.AbortMultipartUploadOutput$=uoe;d.AbortMultipartUploadRequest$=loe;d.AccelerateConfiguration$=doe;d.AccessControlPolicy$=fN;d.AccessControlTranslation$=poe;d.AccessDenied=WR;d.AccessDenied$=Bne;d.AnalyticsAndOperator$=foe;d.AnalyticsConfiguration$=rx;d.AnalyticsExportDestination$=moe;d.AnalyticsFilter$=ele;d.AnalyticsS3BucketDestination$=goe;d.AnalyticsS3ExportFileFormat=cQe;d.AnnotationConfigurationState=nQe;d.AnnotationDirective=qKe;d.AnnotationEntry$=hoe;d.AnnotationLimitExceeded=aC;d.AnnotationLimitExceeded$=Une;d.AnnotationNameTooLong=cC;d.AnnotationNameTooLong$=Gne;d.AnnotationTableConfiguration$=Soe;d.AnnotationTableConfigurationResult$=yoe;d.AnnotationTableConfigurationUpdates$=Eoe;d.ArchiveStatus=GQe;d.BlockedEncryptionTypes$=_oe;d.Bucket$=Roe;d.BucketAbacStatus=OKe;d.BucketAccelerateStatus=MKe;d.BucketAlreadyExists=QR;d.BucketAlreadyExists$=qne;d.BucketAlreadyOwnedByYou=YR;d.BucketAlreadyOwnedByYou$=Hne;d.BucketCannedACL=YKe;d.BucketInfo$=Coe;d.BucketLifecycleConfiguration$=boe;d.BucketLocationConstraint=tQe;d.BucketLoggingStatus$=Aoe;d.BucketLogsPermission=_Qe;d.BucketNamespace=JKe;d.BucketType=ZKe;d.BucketVersioningStatus=kQe;d.CORSConfiguration$=Noe;d.CORSRule$=Foe;d.CSVInput$=Koe;d.CSVOutput$=Qoe;d.Checksum$=xoe;d.ChecksumAlgorithm=HKe;d.ChecksumMode=NQe;d.ChecksumType=BKe;d.CommonPrefix$=Toe;d.CompleteMultipartUpload$=sle;d.CompleteMultipartUploadCommand=LC;d.CompleteMultipartUploadOutput$=Ioe;d.CompleteMultipartUploadRequest$=woe;d.CompletedMultipartUpload$=voe;d.CompletedPart$=Doe;d.CompressionType=QQe;d.Condition$=Poe;d.ContinuationEvent$=Ooe;d.CopyObject$=ile;d.CopyObjectCommand=NC;d.CopyObjectOutput$=$oe;d.CopyObjectRequest$=koe;d.CopyObjectResult$=Moe;d.CopyPartResult$=Loe;d.CreateBucket$=ale;d.CreateBucketCommand=FC;d.CreateBucketConfiguration$=Boe;d.CreateBucketMetadataConfiguration$=cle;d.CreateBucketMetadataConfigurationCommand=BC;d.CreateBucketMetadataConfigurationRequest$=Uoe;d.CreateBucketMetadataTableConfiguration$=ule;d.CreateBucketMetadataTableConfigurationCommand=UC;d.CreateBucketMetadataTableConfigurationRequest$=Goe;d.CreateBucketOutput$=qoe;d.CreateBucketRequest$=Hoe;d.CreateMultipartUpload$=lle;d.CreateMultipartUploadCommand=GC;d.CreateMultipartUploadOutput$=joe;d.CreateMultipartUploadRequest$=zoe;d.CreateSession$=dle;d.CreateSessionCommand=rg;d.CreateSessionOutput$=Voe;d.CreateSessionRequest$=Woe;d.DataRedundancy=XKe;d.DefaultRetention$=Yoe;d.Delete$=Joe;d.DeleteBucket$=ple;d.DeleteBucketAnalyticsConfiguration$=fle;d.DeleteBucketAnalyticsConfigurationCommand=qC;d.DeleteBucketAnalyticsConfigurationRequest$=Xoe;d.DeleteBucketCommand=HC;d.DeleteBucketCors$=mle;d.DeleteBucketCorsCommand=jC;d.DeleteBucketCorsRequest$=Zoe;d.DeleteBucketEncryption$=gle;d.DeleteBucketEncryptionCommand=zC;d.DeleteBucketEncryptionRequest$=ese;d.DeleteBucketIntelligentTieringConfiguration$=hle;d.DeleteBucketIntelligentTieringConfigurationCommand=VC;d.DeleteBucketIntelligentTieringConfigurationRequest$=tse;d.DeleteBucketInventoryConfiguration$=Sle;d.DeleteBucketInventoryConfigurationCommand=WC;d.DeleteBucketInventoryConfigurationRequest$=rse;d.DeleteBucketLifecycle$=yle;d.DeleteBucketLifecycleCommand=KC;d.DeleteBucketLifecycleRequest$=nse;d.DeleteBucketMetadataConfiguration$=Ele;d.DeleteBucketMetadataConfigurationCommand=QC;d.DeleteBucketMetadataConfigurationRequest$=ose;d.DeleteBucketMetadataTableConfiguration$=_le;d.DeleteBucketMetadataTableConfigurationCommand=YC;d.DeleteBucketMetadataTableConfigurationRequest$=sse;d.DeleteBucketMetricsConfiguration$=Rle;d.DeleteBucketMetricsConfigurationCommand=JC;d.DeleteBucketMetricsConfigurationRequest$=ise;d.DeleteBucketOwnershipControls$=Cle;d.DeleteBucketOwnershipControlsCommand=XC;d.DeleteBucketOwnershipControlsRequest$=ase;d.DeleteBucketPolicy$=ble;d.DeleteBucketPolicyCommand=ZC;d.DeleteBucketPolicyRequest$=cse;d.DeleteBucketReplication$=Ale;d.DeleteBucketReplicationCommand=eb;d.DeleteBucketReplicationRequest$=use;d.DeleteBucketRequest$=lse;d.DeleteBucketTagging$=xle;d.DeleteBucketTaggingCommand=tb;d.DeleteBucketTaggingRequest$=dse;d.DeleteBucketWebsite$=Tle;d.DeleteBucketWebsiteCommand=rb;d.DeleteBucketWebsiteRequest$=pse;d.DeleteMarkerEntry$=mse;d.DeleteMarkerReplication$=gse;d.DeleteMarkerReplicationStatus=xQe;d.DeleteObject$=vle;d.DeleteObjectAnnotation$=Dle;d.DeleteObjectAnnotationCommand=nb;d.DeleteObjectAnnotationOutput$=hse;d.DeleteObjectAnnotationRequest$=Sse;d.DeleteObjectCommand=ob;d.DeleteObjectOutput$=yse;d.DeleteObjectRequest$=Ese;d.DeleteObjectTagging$=wle;d.DeleteObjectTaggingCommand=ib;d.DeleteObjectTaggingOutput$=Cse;d.DeleteObjectTaggingRequest$=bse;d.DeleteObjects$=Ile;d.DeleteObjectsCommand=sb;d.DeleteObjectsOutput$=_se;d.DeleteObjectsRequest$=Rse;d.DeletePublicAccessBlock$=Ple;d.DeletePublicAccessBlockCommand=ab;d.DeletePublicAccessBlockRequest$=Ase;d.DeletedObject$=fse;d.Destination$=xse;d.DestinationResult$=Tse;d.EncodingType=qQe;d.Encryption$=vse;d.EncryptionConfiguration$=Dse;d.EncryptionType=lQe;d.EncryptionTypeMismatch=nC;d.EncryptionTypeMismatch$=jne;d.EndEvent$=Ise;d.ErrorDetails$=Ng;d.ErrorDocument$=mN;d.Event=bQe;d.EventBridgeConfiguration$=Pse;d.EventHoldDuration$=gN;d.ExistingObjectReplication$=Ose;d.ExistingObjectReplicationStatus=DQe;d.ExpirationState=iQe;d.ExpirationStatus=yQe;d.ExpressionType=KQe;d.FileHeaderInfo=YQe;d.FilterRule$=$se;d.FilterRuleName=AQe;d.GetBucketAbac$=Ole;d.GetBucketAbacCommand=cb;d.GetBucketAbacOutput$=kse;d.GetBucketAbacRequest$=Mse;d.GetBucketAccelerateConfiguration$=$le;d.GetBucketAccelerateConfigurationCommand=ub;d.GetBucketAccelerateConfigurationOutput$=Lse;d.GetBucketAccelerateConfigurationRequest$=Nse;d.GetBucketAcl$=kle;d.GetBucketAclCommand=lb;d.GetBucketAclOutput$=Fse;d.GetBucketAclRequest$=Bse;d.GetBucketAnalyticsConfiguration$=Mle;d.GetBucketAnalyticsConfigurationCommand=db;d.GetBucketAnalyticsConfigurationOutput$=Use;d.GetBucketAnalyticsConfigurationRequest$=Gse;d.GetBucketCors$=Lle;d.GetBucketCorsCommand=pb;d.GetBucketCorsOutput$=qse;d.GetBucketCorsRequest$=Hse;d.GetBucketEncryption$=Nle;d.GetBucketEncryptionCommand=fb;d.GetBucketEncryptionOutput$=jse;d.GetBucketEncryptionRequest$=zse;d.GetBucketIntelligentTieringConfiguration$=Fle;d.GetBucketIntelligentTieringConfigurationCommand=mb;d.GetBucketIntelligentTieringConfigurationOutput$=Vse;d.GetBucketIntelligentTieringConfigurationRequest$=Wse;d.GetBucketInventoryConfiguration$=Ble;d.GetBucketInventoryConfigurationCommand=gb;d.GetBucketInventoryConfigurationOutput$=Kse;d.GetBucketInventoryConfigurationRequest$=Qse;d.GetBucketLifecycleConfiguration$=Ule;d.GetBucketLifecycleConfigurationCommand=hb;d.GetBucketLifecycleConfigurationOutput$=Yse;d.GetBucketLifecycleConfigurationRequest$=Jse;d.GetBucketLocation$=Gle;d.GetBucketLocationCommand=Sb;d.GetBucketLocationOutput$=Xse;d.GetBucketLocationRequest$=Zse;d.GetBucketLogging$=qle;d.GetBucketLoggingCommand=yb;d.GetBucketLoggingOutput$=eie;d.GetBucketLoggingRequest$=tie;d.GetBucketMetadataConfiguration$=Hle;d.GetBucketMetadataConfigurationCommand=Eb;d.GetBucketMetadataConfigurationOutput$=rie;d.GetBucketMetadataConfigurationRequest$=nie;d.GetBucketMetadataConfigurationResult$=oie;d.GetBucketMetadataTableConfiguration$=jle;d.GetBucketMetadataTableConfigurationCommand=_b;d.GetBucketMetadataTableConfigurationOutput$=sie;d.GetBucketMetadataTableConfigurationRequest$=iie;d.GetBucketMetadataTableConfigurationResult$=aie;d.GetBucketMetricsConfiguration$=zle;d.GetBucketMetricsConfigurationCommand=Rb;d.GetBucketMetricsConfigurationOutput$=cie;d.GetBucketMetricsConfigurationRequest$=uie;d.GetBucketNotificationConfiguration$=Vle;d.GetBucketNotificationConfigurationCommand=Cb;d.GetBucketNotificationConfigurationRequest$=lie;d.GetBucketOwnershipControls$=Wle;d.GetBucketOwnershipControlsCommand=bb;d.GetBucketOwnershipControlsOutput$=die;d.GetBucketOwnershipControlsRequest$=pie;d.GetBucketPolicy$=Kle;d.GetBucketPolicyCommand=Ab;d.GetBucketPolicyOutput$=fie;d.GetBucketPolicyRequest$=mie;d.GetBucketPolicyStatus$=Qle;d.GetBucketPolicyStatusCommand=xb;d.GetBucketPolicyStatusOutput$=gie;d.GetBucketPolicyStatusRequest$=hie;d.GetBucketReplication$=Yle;d.GetBucketReplicationCommand=Tb;d.GetBucketReplicationOutput$=Sie;d.GetBucketReplicationRequest$=yie;d.GetBucketRequestPayment$=Jle;d.GetBucketRequestPaymentCommand=vb;d.GetBucketRequestPaymentOutput$=Eie;d.GetBucketRequestPaymentRequest$=_ie;d.GetBucketTagging$=Xle;d.GetBucketTaggingCommand=Db;d.GetBucketTaggingOutput$=Rie;d.GetBucketTaggingRequest$=Cie;d.GetBucketVersioning$=Zle;d.GetBucketVersioningCommand=Ib;d.GetBucketVersioningOutput$=bie;d.GetBucketVersioningRequest$=Aie;d.GetBucketWebsite$=ede;d.GetBucketWebsiteCommand=wb;d.GetBucketWebsiteOutput$=xie;d.GetBucketWebsiteRequest$=Tie;d.GetObject$=tde;d.GetObjectAcl$=rde;d.GetObjectAclCommand=Pb;d.GetObjectAclOutput$=vie;d.GetObjectAclRequest$=Die;d.GetObjectAnnotation$=nde;d.GetObjectAnnotationCommand=Ob;d.GetObjectAnnotationOutput$=Iie;d.GetObjectAnnotationRequest$=wie;d.GetObjectAttributes$=ode;d.GetObjectAttributesCommand=$b;d.GetObjectAttributesOutput$=Pie;d.GetObjectAttributesParts$=Oie;d.GetObjectAttributesRequest$=$ie;d.GetObjectCommand=kb;d.GetObjectLegalHold$=sde;d.GetObjectLegalHoldCommand=Mb;d.GetObjectLegalHoldOutput$=kie;d.GetObjectLegalHoldRequest$=Mie;d.GetObjectLockConfiguration$=ide;d.GetObjectLockConfigurationCommand=Lb;d.GetObjectLockConfigurationOutput$=Lie;d.GetObjectLockConfigurationRequest$=Nie;d.GetObjectOutput$=Fie;d.GetObjectRequest$=Bie;d.GetObjectRetention$=ade;d.GetObjectRetentionCommand=Nb;d.GetObjectRetentionOutput$=Uie;d.GetObjectRetentionRequest$=Gie;d.GetObjectTagging$=cde;d.GetObjectTaggingCommand=Fb;d.GetObjectTaggingOutput$=qie;d.GetObjectTaggingRequest$=Hie;d.GetObjectTorrent$=ude;d.GetObjectTorrentCommand=Bb;d.GetObjectTorrentOutput$=jie;d.GetObjectTorrentRequest$=zie;d.GetPublicAccessBlock$=lde;d.GetPublicAccessBlockCommand=Ub;d.GetPublicAccessBlockOutput$=Vie;d.GetPublicAccessBlockRequest$=Wie;d.GlacierJobParameters$=Kie;d.Grant$=Qie;d.Grantee$=hN;d.HeadBucket$=dde;d.HeadBucketCommand=hd;d.HeadBucketOutput$=Yie;d.HeadBucketRequest$=Jie;d.HeadObject$=pde;d.HeadObjectCommand=Sd;d.HeadObjectOutput$=Xie;d.HeadObjectRequest$=Zie;d.IdempotencyParameterMismatch=dC;d.IdempotencyParameterMismatch$=zne;d.IndexDocument$=SN;d.Initiator$=yN;d.InputSerialization$=EN;d.IntelligentTieringAccessTier=pQe;d.IntelligentTieringAndOperator$=eae;d.IntelligentTieringConfiguration$=nx;d.IntelligentTieringFilter$=tae;d.IntelligentTieringStatus=dQe;d.InvalidAnnotationName=uC;d.InvalidAnnotationName$=Vne;d.InvalidObjectState=ZR;d.InvalidObjectState$=Wne;d.InvalidPrefix=rC;d.InvalidPrefix$=Kne;d.InvalidRequest=oC;d.InvalidRequest$=Qne;d.InvalidWriteOffset=sC;d.InvalidWriteOffset$=Yne;d.InventoryConfiguration$=ox;d.InventoryConfigurationState=sQe;d.InventoryDestination$=rae;d.InventoryEncryption$=nae;d.InventoryFilter$=oae;d.InventoryFormat=fQe;d.InventoryFrequency=hQe;d.InventoryIncludedObjectVersions=mQe;d.InventoryOptionalField=gQe;d.InventoryS3BucketDestination$=sae;d.InventorySchedule$=iae;d.InventoryTableConfiguration$=aae;d.InventoryTableConfigurationResult$=cae;d.InventoryTableConfigurationUpdates$=uae;d.JSONInput$=fae;d.JSONOutput$=mae;d.JSONType=JQe;d.JournalTableConfiguration$=lae;d.JournalTableConfigurationResult$=dae;d.JournalTableConfigurationUpdates$=pae;d.LambdaFunctionConfiguration$=gae;d.LifecycleExpiration$=hae;d.LifecycleRule$=Sae;d.LifecycleRuleAndOperator$=yae;d.LifecycleRuleFilter$=Eae;d.ListBucketAnalyticsConfigurations$=fde;d.ListBucketAnalyticsConfigurationsCommand=Gb;d.ListBucketAnalyticsConfigurationsOutput$=_ae;d.ListBucketAnalyticsConfigurationsRequest$=Rae;d.ListBucketIntelligentTieringConfigurations$=mde;d.ListBucketIntelligentTieringConfigurationsCommand=qb;d.ListBucketIntelligentTieringConfigurationsOutput$=Cae;d.ListBucketIntelligentTieringConfigurationsRequest$=bae;d.ListBucketInventoryConfigurations$=gde;d.ListBucketInventoryConfigurationsCommand=Hb;d.ListBucketInventoryConfigurationsOutput$=Aae;d.ListBucketInventoryConfigurationsRequest$=xae;d.ListBucketMetricsConfigurations$=hde;d.ListBucketMetricsConfigurationsCommand=jb;d.ListBucketMetricsConfigurationsOutput$=Tae;d.ListBucketMetricsConfigurationsRequest$=vae;d.ListBuckets$=Sde;d.ListBucketsCommand=ng;d.ListBucketsOutput$=Dae;d.ListBucketsRequest$=Iae;d.ListDirectoryBuckets$=yde;d.ListDirectoryBucketsCommand=og;d.ListDirectoryBucketsOutput$=wae;d.ListDirectoryBucketsRequest$=Pae;d.ListMultipartUploads$=Ede;d.ListMultipartUploadsCommand=zb;d.ListMultipartUploadsOutput$=Oae;d.ListMultipartUploadsRequest$=$ae;d.ListObjectAnnotations$=_de;d.ListObjectAnnotationsCommand=sg;d.ListObjectAnnotationsOutput$=kae;d.ListObjectAnnotationsRequest$=Mae;d.ListObjectVersions$=bde;d.ListObjectVersionsCommand=Wb;d.ListObjectVersionsOutput$=Uae;d.ListObjectVersionsRequest$=Gae;d.ListObjects$=Rde;d.ListObjectsCommand=Vb;d.ListObjectsOutput$=Lae;d.ListObjectsRequest$=Nae;d.ListObjectsV2$=Cde;d.ListObjectsV2Command=ig;d.ListObjectsV2Output$=Fae;d.ListObjectsV2Request$=Bae;d.ListParts$=Ade;d.ListPartsCommand=ag;d.ListPartsOutput$=qae;d.ListPartsRequest$=Hae;d.LocationInfo$=jae;d.LocationType=eQe;d.LoggingEnabled$=_N;d.MFADelete=VQe;d.MFADeleteStatus=$Qe;d.MetadataConfiguration$=zae;d.MetadataConfigurationResult$=Vae;d.MetadataDirective=jKe;d.MetadataEntry$=Wae;d.MetadataTableConfiguration$=Kae;d.MetadataTableConfigurationResult$=Qae;d.MetadataTableEncryptionConfiguration$=Xd;d.Metrics$=Yae;d.MetricsAndOperator$=Jae;d.MetricsConfiguration$=sx;d.MetricsFilter$=tle;d.MetricsStatus=TQe;d.MultipartUpload$=Xae;d.NoSuchAnnotation=eC;d.NoSuchAnnotation$=Jne;d.NoSuchBucket=JR;d.NoSuchBucket$=Xne;d.NoSuchKey=XR;d.NoSuchKey$=Zne;d.NoSuchUpload=VR;d.NoSuchUpload$=eoe;d.NoncurrentVersionExpiration$=Zae;d.NoncurrentVersionTransition$=ece;d.NotFound=tC;d.NotFound$=toe;d.NotificationConfiguration$=RN;d.NotificationConfigurationFilter$=ix;d.ObjectAlreadyInActiveTierError=pC;d.ObjectAlreadyInActiveTierError$=roe;d.ObjectAttributes=FQe;d.ObjectCannedACL=GKe;d.ObjectEncryption$=rle;d.ObjectIdentifier$=rce;d.ObjectLockConfiguration$=CN;d.ObjectLockEnabled=BQe;d.ObjectLockEventHold=zKe;d.ObjectLockLegalHold$=bN;d.ObjectLockLegalHoldStatus=VKe;d.ObjectLockMode=WKe;d.ObjectLockRetention$=AN;d.ObjectLockRetentionMode=UQe;d.ObjectLockRule$=nce;d.ObjectNotInActiveTierError=KR;d.ObjectNotInActiveTierError$=noe;d.ObjectOwnership=rQe;d.ObjectPart$=oce;d.ObjectStorageClass=HQe;d.ObjectVersion$=sce;d.ObjectVersionStorageClass=zQe;d.OptionalObjectAttributes=jQe;d.OutputLocation$=ice;d.OutputSerialization$=xN;d.Owner$=gi;d.OwnerOverride=FKe;d.OwnershipControls$=TN;d.OwnershipControlsRule$=ace;d.ParquetInput$=cce;d.Part$=uce;d.PartitionDateSource=RQe;d.PartitionedPrefix$=lce;d.Payer=OQe;d.Permission=NKe;d.PolicyStatus$=dce;d.Progress$=pce;d.ProgressEvent$=fce;d.Protocol=MQe;d.PublicAccessBlockConfiguration$=vN;d.PutBucketAbac$=xde;d.PutBucketAbacCommand=Kb;d.PutBucketAbacRequest$=mce;d.PutBucketAccelerateConfiguration$=Tde;d.PutBucketAccelerateConfigurationCommand=Qb;d.PutBucketAccelerateConfigurationRequest$=gce;d.PutBucketAcl$=vde;d.PutBucketAclCommand=Yb;d.PutBucketAclRequest$=hce;d.PutBucketAnalyticsConfiguration$=Dde;d.PutBucketAnalyticsConfigurationCommand=Jb;d.PutBucketAnalyticsConfigurationRequest$=Sce;d.PutBucketCors$=Ide;d.PutBucketCorsCommand=Xb;d.PutBucketCorsRequest$=yce;d.PutBucketEncryption$=wde;d.PutBucketEncryptionCommand=Zb;d.PutBucketEncryptionRequest$=Ece;d.PutBucketIntelligentTieringConfiguration$=Pde;d.PutBucketIntelligentTieringConfigurationCommand=eA;d.PutBucketIntelligentTieringConfigurationRequest$=_ce;d.PutBucketInventoryConfiguration$=Ode;d.PutBucketInventoryConfigurationCommand=tA;d.PutBucketInventoryConfigurationRequest$=Rce;d.PutBucketLifecycleConfiguration$=$de;d.PutBucketLifecycleConfigurationCommand=rA;d.PutBucketLifecycleConfigurationOutput$=Cce;d.PutBucketLifecycleConfigurationRequest$=bce;d.PutBucketLogging$=kde;d.PutBucketLoggingCommand=nA;d.PutBucketLoggingRequest$=Ace;d.PutBucketMetricsConfiguration$=Mde;d.PutBucketMetricsConfigurationCommand=oA;d.PutBucketMetricsConfigurationRequest$=xce;d.PutBucketNotificationConfiguration$=Lde;d.PutBucketNotificationConfigurationCommand=sA;d.PutBucketNotificationConfigurationRequest$=Tce;d.PutBucketOwnershipControls$=Nde;d.PutBucketOwnershipControlsCommand=iA;d.PutBucketOwnershipControlsRequest$=vce;d.PutBucketPolicy$=Fde;d.PutBucketPolicyCommand=aA;d.PutBucketPolicyRequest$=Dce;d.PutBucketReplication$=Bde;d.PutBucketReplicationCommand=cA;d.PutBucketReplicationRequest$=Ice;d.PutBucketRequestPayment$=Ude;d.PutBucketRequestPaymentCommand=uA;d.PutBucketRequestPaymentRequest$=wce;d.PutBucketTagging$=Gde;d.PutBucketTaggingCommand=lA;d.PutBucketTaggingRequest$=Pce;d.PutBucketVersioning$=qde;d.PutBucketVersioningCommand=dA;d.PutBucketVersioningRequest$=Oce;d.PutBucketWebsite$=Hde;d.PutBucketWebsiteCommand=pA;d.PutBucketWebsiteRequest$=$ce;d.PutObject$=jde;d.PutObjectAcl$=zde;d.PutObjectAclCommand=fA;d.PutObjectAclOutput$=kce;d.PutObjectAclRequest$=Mce;d.PutObjectAnnotation$=Vde;d.PutObjectAnnotationCommand=mA;d.PutObjectAnnotationOutput$=Lce;d.PutObjectAnnotationRequest$=Nce;d.PutObjectCommand=gA;d.PutObjectLegalHold$=Wde;d.PutObjectLegalHoldCommand=hA;d.PutObjectLegalHoldOutput$=Fce;d.PutObjectLegalHoldRequest$=Bce;d.PutObjectLockConfiguration$=Kde;d.PutObjectLockConfigurationCommand=SA;d.PutObjectLockConfigurationOutput$=Uce;d.PutObjectLockConfigurationRequest$=Gce;d.PutObjectOutput$=qce;d.PutObjectRequest$=Hce;d.PutObjectRetention$=Qde;d.PutObjectRetentionCommand=yA;d.PutObjectRetentionOutput$=jce;d.PutObjectRetentionRequest$=zce;d.PutObjectTagging$=Yde;d.PutObjectTaggingCommand=EA;d.PutObjectTaggingOutput$=Vce;d.PutObjectTaggingRequest$=Wce;d.PutPublicAccessBlock$=Jde;d.PutPublicAccessBlockCommand=_A;d.PutPublicAccessBlockRequest$=Kce;d.QueueConfiguration$=Qce;d.QuoteFields=XQe;d.RecordExpiration$=ax;d.RecordsEvent$=Yce;d.Redirect$=Jce;d.RedirectAllRequestsTo$=DN;d.RenameObject$=Xde;d.RenameObjectCommand=RA;d.RenameObjectOutput$=Xce;d.RenameObjectRequest$=Zce;d.ReplicaModifications$=eue;d.ReplicaModificationsStatus=IQe;d.ReplicationConfiguration$=IN;d.ReplicationRule$=tue;d.ReplicationRuleAndOperator$=rue;d.ReplicationRuleFilter$=nue;d.ReplicationRuleStatus=PQe;d.ReplicationStatus=LQe;d.ReplicationTime$=oue;d.ReplicationTimeStatus=vQe;d.ReplicationTimeValue$=wN;d.RequestCharged=$Ke;d.RequestPayer=kKe;d.RequestPaymentConfiguration$=sue;d.RequestProgress$=iue;d.RestoreObject$=Zde;d.RestoreObjectCommand=CA;d.RestoreObjectOutput$=aue;d.RestoreObjectRequest$=cue;d.RestoreRequest$=uue;d.RestoreRequestType=ZQe;d.RestoreStatus$=PN;d.RoutingRule$=lue;d.S3=PA;d.S3Client=Bi;d.S3KeyFilter$=due;d.S3Location$=pue;d.S3ServiceException=rt;d.S3ServiceException$=Fne;d.S3TablesBucketType=CQe;d.S3TablesDestination$=fue;d.S3TablesDestinationResult$=mue;d.SSEKMS$=Aue;d.SSEKMSEncryption$=Tue;d.SSES3$=vue;d.ScanRange$=gue;d.SelectObjectContent$=epe;d.SelectObjectContentCommand=bA;d.SelectObjectContentEventStream$=nle;d.SelectObjectContentOutput$=hue;d.SelectObjectContentRequest$=Sue;d.SelectParameters$=yue;d.ServerSideEncryption=UKe;d.ServerSideEncryptionByDefault$=Eue;d.ServerSideEncryptionConfiguration$=ON;d.ServerSideEncryptionRule$=_ue;d.SessionCredentials$=Rue;d.SessionMode=aQe;d.SimplePrefix$=Cue;d.SourceSelectionCriteria$=bue;d.SseKmsEncryptedObjects$=xue;d.SseKmsEncryptedObjectsStatus=wQe;d.Stats$=Due;d.StatsEvent$=Iue;d.StorageClass=KKe;d.StorageClassAnalysis$=wue;d.StorageClassAnalysisDataExport$=Pue;d.StorageClassAnalysisSchemaVersion=uQe;d.TableSseAlgorithm=oQe;d.Tag$=du;d.Tagging$=cx;d.TaggingDirective=QKe;d.TargetGrant$=Oue;d.TargetObjectKeyFormat$=$ue;d.Tier=WQe;d.Tiering$=kue;d.TooManyParts=iC;d.TooManyParts$=ooe;d.TopicConfiguration$=Mue;d.Transition$=Lue;d.TransitionDefaultMinimumObjectSize=EQe;d.TransitionStorageClass=SQe;d.Type=LKe;d.UnsupportedMediaType=lC;d.UnsupportedMediaType$=soe;d.UpdateBucketMetadataAnnotationTableConfiguration$=tpe;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=AA;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=Nue;d.UpdateBucketMetadataInventoryTableConfiguration$=rpe;d.UpdateBucketMetadataInventoryTableConfigurationCommand=xA;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=Fue;d.UpdateBucketMetadataJournalTableConfiguration$=npe;d.UpdateBucketMetadataJournalTableConfigurationCommand=TA;d.UpdateBucketMetadataJournalTableConfigurationRequest$=Bue;d.UpdateObjectEncryption$=ope;d.UpdateObjectEncryptionCommand=vA;d.UpdateObjectEncryptionRequest$=Uue;d.UpdateObjectEncryptionResponse$=Gue;d.UploadPart$=spe;d.UploadPartCommand=DA;d.UploadPartCopy$=ipe;d.UploadPartCopyCommand=IA;d.UploadPartCopyOutput$=que;d.UploadPartCopyRequest$=Hue;d.UploadPartOutput$=jue;d.UploadPartRequest$=zue;d.VersioningConfiguration$=Vue;d.WebsiteConfiguration$=Wue;d.WriteGetObjectResponse$=ape;d.WriteGetObjectResponseCommand=wA;d.WriteGetObjectResponseRequest$=Kue;d._Error$=wse;d._Object$=tce;d.errorTypeRegistries=ioe;d.paginateListBuckets=cpe;d.paginateListDirectoryBuckets=upe;d.paginateListObjectAnnotations=lpe;d.paginateListObjectsV2=dpe;d.paginateListParts=ppe;d.waitForBucketExists=xKe;d.waitForBucketNotExists=TKe;d.waitForObjectExists=vKe;d.waitForObjectNotExists=DKe;d.waitUntilBucketExists=mpe;d.waitUntilBucketNotExists=hpe;d.waitUntilObjectExists=ype;d.waitUntilObjectNotExists=_pe});var Gx=st(D=>{var{awsEndpointFunctions:n7e,emitWarningIfUnsupportedVersion:o7e,createDefaultUserAgentProvider:s7e,NODE_APP_ID_CONFIG_OPTIONS:i7e,getAwsRegionExtensionConfiguration:a7e,resolveAwsRegionExtensionConfiguration:c7e,resolveUserAgentConfig:u7e,resolveHostHeaderConfig:l7e,getUserAgentPlugin:d7e,getHostHeaderPlugin:p7e,getLoggerPlugin:f7e,getRecursionDetectionPlugin:m7e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:g7e,DefaultIdentityProviderConfig:h7e,getHttpSigningPlugin:S7e,createPaginator:LN}=(jt(),F(xl)),{normalizeProvider:Gpe,getSmithyContext:y7e,ServiceException:E7e,NoOpLogger:_7e,emitWarningIfUnsupportedVersion:R7e,loadConfigsForDefaultMode:C7e,getDefaultExtensionConfiguration:b7e,resolveDefaultRuntimeConfig:A7e,Client:qpe,makeBuilder:x7e,createWaiter:fo,checkExceptions:tp,WaiterState:ct,createAggregatedClient:T7e}=(J(),F(bo)),{Command:v7e}=(J(),F(bo));D.$Command=v7e;D.__Client=qpe;var{resolveDefaultsModeConfig:D7e,loadConfig:pu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:I7e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:w7e,NODE_REGION_CONFIG_OPTIONS:P7e,NODE_REGION_CONFIG_FILE_OPTIONS:O7e,resolveRegionConfig:$7e}=(ye(),F(Br)),{BinaryDecisionDiagram:k7e,EndpointCache:M7e,decideEndpoint:L7e,customEndpointFunctions:N7e,resolveEndpointConfig:F7e,getEndpointPlugin:B7e}=(He(),F(jp)),{parseUrl:U7e,getHttpHandlerExtensionConfiguration:G7e,resolveHttpHandlerRuntimeConfig:q7e,getContentLengthPlugin:H7e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:j7e,NODE_RETRY_MODE_CONFIG_OPTIONS:z7e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:V7e,resolveRetryConfig:W7e,getRetryPlugin:K7e}=(en(),F(nf)),{TypeRegistry:Hpe,getSchemaSerdePlugin:Q7e}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:Y7e,AwsSdkSigV4Signer:J7e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:X7e}=(rr(),F(Il)),{defaultProvider:Z7e}=Cm(),{toUtf8:eYe,fromUtf8:tYe,toBase64:rYe,fromBase64:nYe,calculateBodyLength:oYe}=(j(),F(To)),{streamCollector:sYe,NodeHttpHandler:iYe}=zs(),{AwsRestJsonProtocol:aYe}=(Di(),F(Vy)),{Sha256:cYe}=(On(),F(Vp)),uYe=async(t,e,r)=>({operation:y7e(e).operation,region:await Gpe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function lYe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var dYe=t=>{let e=[];switch(t.operation){default:e.push(lYe(t))}return e},pYe=t=>{let e=Y7e(t);return Object.assign(e,{authSchemePreference:Gpe(t.authSchemePreference??[])})},fYe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),mYe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},gYe="3.1151.0",hYe={version:gYe},Bg="ref",fu=-1,dx=!0,kpe="isSet",jpe="PartitionResult",px="booleanEquals",Mpe="getAttr",Lpe={[Bg]:"Endpoint"},Npe={[Bg]:jpe},Fg={},Fpe=[{[Bg]:"Region"}],Bpe={conditions:[[kpe,[Lpe]],[kpe,Fpe],["aws.partition",Fpe,jpe],[px,[{[Bg]:"UseFIPS"},dx]],[px,[{[Bg]:"UseDualStack"},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsDualStack"]},dx]],[px,[{fn:Mpe,argv:[Npe,"supportsFIPS"]},dx]]],results:[[fu],[fu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[fu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lpe,Fg],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",Fg],[fu,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",Fg],[fu,"Invalid Configuration: Missing Region"]]},SYe=2,qn=1e8,yYe=new Int32Array([-1,1,-1,0,12,3,1,4,qn+11,2,5,qn+11,3,8,6,4,7,qn+10,5,qn+8,qn+9,4,10,9,6,qn+6,qn+7,5,11,qn+5,6,qn+4,qn+5,3,qn+1,13,4,qn+2,qn+3]),EYe=k7e.from(yYe,SYe,Bpe.conditions,Bpe.results),_Ye=new M7e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),RYe=(t,e={})=>_Ye.get(t,()=>L7e(EYe,{endpointParams:t,logger:e.logger}));N7e.aws=n7e;var ns=class t extends E7e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},fx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},gx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},hx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},Sx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},yx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Ex=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CYe="AccessDeniedException",bYe="AccountQuotas",AYe="AccountUsage",xYe="BuildConfig",TYe="CodeConfig",vYe="ConflictException",DYe="CreateWebFunction",IYe="CreateWebFunctionEndpoint",wYe="CreateWebFunctionEndpointRequest",PYe="CreateWebFunctionEndpointResponse",OYe="CreateWebFunctionRequest",$Ye="CreateWebFunctionRevisionRequest",kYe="CreateWebFunctionRevisionResponse",MYe="CreateWebFunctionResponse",LYe="CreateWebFunctionRevision",NYe="DeleteResourcePolicy",FYe="DeleteResourcePolicyRequest",BYe="DeleteWebFunction",UYe="DeleteWebFunctionEndpoint",GYe="DeleteWebFunctionEndpointRequest",qYe="DeleteWebFunctionRequest",HYe="DeleteWebFunctionRevisionRequest",jYe="DeleteWebFunctionRevision",zYe="EndpointConfig",VYe="EnvironmentVariables",WYe="Filter",KYe="FunctionEndpointSummary",QYe="FunctionEndpointSummaryList",YYe="FilterList",JYe="FunctionRevisionSummary",XYe="FunctionRevisionSummaryList",ZYe="FunctionSummary",eJe="FunctionSummaryList",tJe="GetResourcePolicy",rJe="GetResourcePolicyRequest",nJe="GetResourcePolicyResponse",oJe="GetWebAccountSettings",sJe="GetWebAccountSettingsRequest",iJe="GetWebAccountSettingsResponse",aJe="GetWebFunction",cJe="GetWebFunctionEndpoint",uJe="GetWebFunctionEndpointRequest",lJe="GetWebFunctionEndpointResponse",dJe="GetWebFunctionRequest",pJe="GetWebFunctionRevisionRequest",fJe="GetWebFunctionRevisionResponse",mJe="GetWebFunctionResponse",gJe="GetWebFunctionRevision",hJe="InternalServerException",SJe="LoggingConfig",yJe="ListTags",EJe="ListTagsRequest",_Je="ListTagsResponse",RJe="ListWebFunctions",CJe="ListWebFunctionEndpoints",bJe="ListWebFunctionEndpointsRequest",AJe="ListWebFunctionEndpointsResponse",xJe="ListWebFunctionsRequest",TJe="ListWebFunctionRevisionsRequest",vJe="ListWebFunctionRevisionsResponse",DJe="ListWebFunctionsResponse",IJe="ListWebFunctionRevisions",NN="Policy",wJe="PutResourcePolicy",PJe="PutResourcePolicyRequest",OJe="PutResourcePolicyResponse",$Je="Retry-After",kJe="RevisionConfig",MJe="RuntimeConfig",LJe="RegionalEndpoint",NJe="RevisionError",FJe="RegionalEndpoints",BJe="RevisionErrors",Mx="RevisionId",UJe="ResourceNotFoundException",GJe="RevisionWeight",qJe="RevisionWeightList",HJe="ScalingConfig",jJe="ServiceConfig",zJe="S3Object",VJe="ServiceQuotaExceededException",zpe="Tags",WJe="TelemetryConfig",KJe="ThrottleConfig",QJe="ThrottlingException",YJe="TagResource",JJe="TagResourceRequest",XJe="UntagResource",ZJe="UntagResourceRequest",eXe="UpdateWebFunctionEndpoint",tXe="UpdateWebFunctionEndpointRequest",rXe="UpdateWebFunctionEndpointResponse",nXe="ValidationException",oXe="attribute",hu="autoDeploymentMode",sXe="applicationLogLevel",iXe="accountQuotas",tc="authType",aXe="accountUsage",cXe="bucket",Lx="buildConfig",rp="client",hi="createdAt",uXe="codeConfig",mo="description",jg="domainName",Su="error",Nx="endpointArn",lXe="endpointConfig",dXe="errorCode",pXe="errorMessage",zi="endpointName",fXe="egressNetworkConnectorArn",mXe="executionRoleArn",np="endpointType",gXe="environmentVariables",hXe="endpoint",SXe="endpoints",Vpe="errors",FN="filters",rc="functionArn",yXe="functionCount",dn="functionName",EXe="functions",Mt="http",yu="httpError",_Xe="httpHeader",Wpe="httpQuery",ec="jsonName",RXe="key",Fx="kmsKeyArn",CXe="loggingConfig",bXe="logGroup",Eu="message",AXe="maxConcurrencyPerEnvironment",xXe="maxEnvironments",TXe="maxEndpointsPerFunction",BN="maxResults",vXe="maxRevisionsPerFunction",DXe="maxTotalArmVCpus",IXe="maxTotalRateLimit",wXe="name",op="nextToken",UN="policy",Kpe="quotaCode",sp="regions",GN="revisionArn",PXe="retryAfterSeconds",qN="resourceArn",OXe="runtimeConfig",$Xe="revisionConfig",HN="regionalEndpoints",jN="resourceId",Si="revisionId",kXe="rateLimit",zN="resourceType",_u="revisionWeights",MXe="revision",VN="resource",LXe="revisions",NXe="runtime",Qpe="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",Ype="serviceCode",nc="scalingConfig",Bx="serviceConfig",FXe="systemLogLevel",BXe="s3Object",os="stateReason",UXe="server",ss="state",Ux="tags",oc="throttleConfig",GXe="telemetryConfig",Upe="tagKeys",qXe="timeoutSeconds",Ru="updatedAt",zg="updateStatus",Vg="updateStatusReason",HXe="values",jXe="versionId",zXe="weight",G="com.amazonaws.lambdaweb",Jpe=new Hpe(Qpe),Xpe=[-3,Qpe,"LambdaWebServiceException",0,[],[]];Jpe.registerError(Xpe,ns);var sc=new Hpe(G),Zpe=[-3,G,CYe,{[Su]:rp,[yu]:403},[Eu],[0],1];sc.registerError(Zpe,fx);var efe=[-3,G,vYe,{[Su]:rp,[yu]:409},[Eu,jN,zN],[0,0,0],1];sc.registerError(efe,mx);var tfe=[-3,G,hJe,{[Su]:UXe,[yu]:500},[Eu],[0]];sc.registerError(tfe,gx);var rfe=[-3,G,UJe,{[Su]:rp,[yu]:404},[Eu,jN,zN],[0,0,0],1];sc.registerError(rfe,hx);var nfe=[-3,G,VJe,{[Su]:rp,[yu]:402},[Eu,jN,zN,Ype,Kpe],[0,0,0,0,0],1];sc.registerError(nfe,Sx);var ofe=[-3,G,QJe,{[Su]:rp,[yu]:429},[Eu,PXe,Ype,Kpe],[0,[1,{[_Xe]:$Je}],0,0],1];sc.registerError(ofe,yx);var sfe=[-3,G,nXe,{[Su]:rp,[yu]:400},[Eu],[0],1];sc.registerError(sfe,Ex);var ife=[Jpe,sc],afe=[3,G,bYe,0,[DXe,IXe,vXe,TXe],[1,1,1,1],4],cfe=[3,G,AYe,0,[yXe],[1],1],Wg=[3,G,xYe,0,[uXe,OXe],[()=>ufe,()=>Kfe],2],ufe=[3,G,TYe,0,[BXe],[()=>Qfe],1],lfe=[3,G,wYe,0,[dn,zi,np,tc,mo,hu,_u,sp,nc,oc],[[0,1],0,0,0,0,0,()=>Cu,64,()=>Vi,()=>Wi],4],dfe=[3,G,PYe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],pfe=[3,G,OYe,0,[dn,$Xe,lXe,Ux],[0,[()=>zfe,0],()=>_fe,128],1],ffe=[3,G,MYe,0,[dn,rc,ss,os,hi,Ru,MXe,hXe,Ux],[0,0,0,0,5,5,()=>KN,()=>WN,128],6],mfe=[3,G,$Ye,0,[dn,Lx,Bx,mo,Fx],[[0,1],()=>Wg,[()=>Kg,0],0,0],3],gfe=[3,G,kYe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,mo,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],hfe=[3,G,FYe,0,[qN,Si],[[0,1],[0,{[Wpe]:Mx}]],1],Sfe=[3,G,GYe,0,[dn,zi],[[0,1],[0,1]],2],yfe=[3,G,qYe,0,[dn],[[0,1]],1],Efe=[3,G,HYe,0,[dn,Si],[[0,1],[0,1]],2],_fe=[3,G,zYe,0,[zi,np,tc,mo,hu,sp,nc,oc],[0,0,0,0,0,64,()=>Vi,()=>Wi],3],Rfe=[3,G,WYe,0,[wXe,HXe],[0,64],2],WN=[3,G,KYe,0,[Nx,zi,np,jg,tc,hu,_u,sp,ss,os,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,()=>Cu,64,0,0,5,5,0,()=>Vi,()=>Wi,0,0],12],KN=[3,G,JYe,0,[GN,Si,ss,os,hi,mo],[0,0,0,0,5,0],5],Cfe=[3,G,ZYe,0,[dn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],bfe=[3,G,rJe,0,[qN],[[0,1]],1],Afe=[3,G,nJe,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],xfe=[3,G,sJe,0,[],[]],Tfe=[3,G,iJe,0,[iXe,aXe],[()=>afe,()=>cfe],2],vfe=[3,G,uJe,0,[dn,zi],[[0,1],[0,1]],2],Dfe=[3,G,lJe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],Ife=[3,G,dJe,0,[dn],[[0,1]],1],wfe=[3,G,mJe,0,[dn,rc,ss,os,hi,Ru],[0,0,0,0,5,5],6],Pfe=[3,G,pJe,0,[dn,Si],[[0,1],[0,1]],2],Ofe=[3,G,fJe,0,[rc,GN,Si,Lx,Bx,ss,os,hi,mo,Fx,Vpe],[0,0,0,()=>Wg,[()=>Kg,0],0,0,5,0,0,()=>tme],8],$fe=[3,G,EJe,0,[VN],[[0,1]],1],kfe=[3,G,_Je,0,[Ux],[[128,{[ec]:zpe}]]],Mfe=[3,G,bJe,0,[dn,FN,BN,op],[[0,1],()=>QN,1,0],1],Lfe=[3,G,AJe,0,[SXe,op],[()=>VXe,0],1],Nfe=[3,G,TJe,0,[dn,FN,BN,op],[[0,1],()=>QN,1,0],1],Ffe=[3,G,vJe,0,[LXe,op],[()=>WXe,0],1],Bfe=[3,G,xJe,0,[FN,BN,op],[()=>QN,1,0]],Ufe=[3,G,DJe,0,[EXe,op],[()=>KXe,0],1],Gfe=[3,G,SJe,0,[bXe,sXe,FXe],[0,0,0]],qfe=[3,G,PJe,0,[qN,UN,Si],[[0,1],[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],Hfe=[3,G,OJe,0,[UN,Si],[[0,{[ec]:NN}],[0,{[ec]:Mx}]],2],jfe=[3,G,LJe,0,[tc,_u,ss,os,jg,nc,oc,zg,Vg],[0,()=>Cu,0,0,0,()=>Vi,()=>Wi,0,0],4],zfe=[3,G,kJe,0,[Lx,Bx,mo,Fx],[()=>Wg,[()=>Kg,0],0,0],2],Vfe=[3,G,NJe,0,[oXe,dXe,pXe],[0,0,0],3],Wfe=[3,G,GJe,0,[Si,zXe],[0,1],2],Kfe=[3,G,MJe,0,[NXe],[0],1],Qfe=[3,G,zJe,0,[cXe,RXe,jXe],[0,0,0],2],Vi=[3,G,HJe,0,[xXe],[1]],Kg=[3,G,jJe,0,[mXe,qXe,fXe,AXe,gXe,GXe],[0,1,0,1,[()=>QXe,0],()=>Jfe],1],Yfe=[3,G,JJe,0,[VN,Ux],[[0,1],[128,{[ec]:zpe}]],2],Jfe=[3,G,WJe,0,[CXe],[()=>Gfe]],Wi=[3,G,KJe,0,[kXe],[1]],Xfe=[3,G,ZJe,0,[VN,Upe],[[0,1],[64,{[Wpe]:Upe}]],2],Zfe=[3,G,tXe,0,[dn,zi,mo,tc,hu,_u,nc,oc],[[0,1],[0,1],0,0,0,()=>Cu,()=>Vi,()=>Wi],2],eme=[3,G,rXe,0,[rc,Nx,zi,np,jg,tc,hu,_u,sp,ss,os,HN,hi,Ru,mo,nc,oc,zg,Vg],[0,0,0,0,0,0,0,()=>Cu,64,0,0,()=>YN,5,5,0,()=>Vi,()=>Wi,0,0],14],ip="unit",QN=[1,G,YYe,0,()=>Rfe],VXe=[1,G,QYe,0,()=>WN],WXe=[1,G,XYe,0,()=>KN],KXe=[1,G,eJe,0,()=>Cfe],tme=[1,G,BJe,0,()=>Vfe],Cu=[1,G,qJe,0,()=>Wfe],QXe=[2,G,VYe,8,0,0],YN=[2,G,FJe,0,0,()=>jfe],rme=[9,G,DYe,{[Mt]:["PUT","/2025-03-07/web-functions",202]},()=>pfe,()=>ffe],nme=[9,G,IYe,{[Mt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>lfe,()=>dfe],ome=[9,G,LYe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>mfe,()=>gfe],sme=[9,G,NYe,{[Mt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>hfe,()=>ip],ime=[9,G,BYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>yfe,()=>ip],ame=[9,G,UYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>Sfe,()=>ip],cme=[9,G,jYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>Efe,()=>ip],ume=[9,G,tJe,{[Mt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>bfe,()=>Afe],lme=[9,G,oJe,{[Mt]:["GET","/2025-03-07/web-account-settings",200]},()=>xfe,()=>Tfe],dme=[9,G,aJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>Ife,()=>wfe],pme=[9,G,cJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>vfe,()=>Dfe],fme=[9,G,gJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>Pfe,()=>Ofe],mme=[9,G,yJe,{[Mt]:["GET","/2025-03-07/tags/{resource}",200]},()=>$fe,()=>kfe],gme=[9,G,CJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>Mfe,()=>Lfe],hme=[9,G,IJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Nfe,()=>Ffe],Sme=[9,G,RJe,{[Mt]:["POST","/2025-03-07/web-functions",200]},()=>Bfe,()=>Ufe],yme=[9,G,wJe,{[Mt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>qfe,()=>Hfe],Eme=[9,G,YJe,{[Mt]:["POST","/2025-03-07/tags/{resource}",204]},()=>Yfe,()=>ip],_me=[9,G,XJe,{[Mt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Xfe,()=>ip],Rme=[9,G,eXe,{[Mt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Zfe,()=>eme],YXe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??nYe,base64Encoder:t?.base64Encoder??rYe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??RYe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dYe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new J7e}],logger:t?.logger??new _7e,protocol:t?.protocol??aYe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:ife,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??cYe,urlParser:t?.urlParser??U7e,utf8Decoder:t?.utf8Decoder??tYe,utf8Encoder:t?.utf8Encoder??eYe}),JXe=t=>{R7e(process.version);let e=D7e(t),r=()=>e().then(C7e),n=YXe(t);o7e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??pu(X7e,o),bodyLengthChecker:t?.bodyLengthChecker??oYe,credentialDefaultProvider:t?.credentialDefaultProvider??Z7e,defaultUserAgentProvider:t?.defaultUserAgentProvider??s7e({serviceId:n.serviceId,clientVersion:hYe.version}),maxAttempts:t?.maxAttempts??pu(V7e,t),region:t?.region??pu(P7e,{...O7e,...o}),requestHandler:iYe.create(t?.requestHandler??r),retryMode:t?.retryMode??pu({...z7e,default:async()=>(await r()).retryMode||j7e},t),streamCollector:t?.streamCollector??sYe,useDualstackEndpoint:t?.useDualstackEndpoint??pu(w7e,o),useFipsEndpoint:t?.useFipsEndpoint??pu(I7e,o),userAgentAppId:t?.userAgentAppId??pu(i7e,o)}},XXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},ZXe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),eZe=(t,e)=>{let r=Object.assign(a7e(t),b7e(t),G7e(t),XXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,c7e(r),A7e(r),q7e(r),ZXe(r))},mu=class extends qpe{config;constructor(...[e]){let r=JXe(e||{});super(r),this.initConfig=r;let n=fYe(r),o=u7e(n),s=W7e(o),i=$7e(s),a=l7e(i),c=F7e(a),u=pYe(c),f=eZe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Q7e(this.config)),this.middlewareStack.use(d7e(this.config)),this.middlewareStack.use(K7e(this.config)),this.middlewareStack.use(H7e(this.config)),this.middlewareStack.use(p7e(this.config)),this.middlewareStack.use(f7e(this.config)),this.middlewareStack.use(m7e(this.config)),this.middlewareStack.use(g7e(this.config,{httpAuthSchemeParametersProvider:uYe,identityProviderConfigProvider:async m=>new h7e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(S7e(this.config))}destroy(){super.destroy()}},Lt=x7e(mYe,"LambdaWeb","LambdaWebClient",B7e),Nt={},Ft=(t,e,r,n)=>[],_x=class extends Lt(Nt,Ft,"CreateWebFunction",rme){},Rx=class extends Lt(Nt,Ft,"CreateWebFunctionEndpoint",nme){},Cx=class extends Lt(Nt,Ft,"CreateWebFunctionRevision",ome){},bx=class extends Lt(Nt,Ft,"DeleteResourcePolicy",sme){},Ax=class extends Lt(Nt,Ft,"DeleteWebFunction",ime){},xx=class extends Lt(Nt,Ft,"DeleteWebFunctionEndpoint",ame){},Tx=class extends Lt(Nt,Ft,"DeleteWebFunctionRevision",cme){},vx=class extends Lt(Nt,Ft,"GetResourcePolicy",ume){},Dx=class extends Lt(Nt,Ft,"GetWebAccountSettings",lme){},ep=class extends Lt(Nt,Ft,"GetWebFunction",dme){},gu=class extends Lt(Nt,Ft,"GetWebFunctionEndpoint",pme){},Ug=class extends Lt(Nt,Ft,"GetWebFunctionRevision",fme){},Ix=class extends Lt(Nt,Ft,"ListTags",mme){},Gg=class extends Lt(Nt,Ft,"ListWebFunctionEndpoints",gme){},qg=class extends Lt(Nt,Ft,"ListWebFunctionRevisions",hme){},Hg=class extends Lt(Nt,Ft,"ListWebFunctions",Sme){},wx=class extends Lt(Nt,Ft,"PutResourcePolicy",yme){},Px=class extends Lt(Nt,Ft,"TagResource",Eme){},Ox=class extends Lt(Nt,Ft,"UntagResource",_me){},$x=class extends Lt(Nt,Ft,"UpdateWebFunctionEndpoint",Rme){},Cme=LN(mu,Gg,"nextToken","nextToken","maxResults"),bme=LN(mu,qg,"nextToken","nextToken","maxResults"),Ame=LN(mu,Hg,"nextToken","nextToken","maxResults"),xme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},tZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,xme),Tme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,xme);return tp(n)},vme=async(t,e)=>{let r;try{let n=await t.send(new ep(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},rZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,vme),Dme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,vme);return tp(n)},Ime=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},nZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Ime),wme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Ime);return tp(n)},Pme=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},oZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Pme),Ome=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Pme);return tp(n)},$me=async(t,e)=>{let r;try{let n=await t.send(new gu(e));r=n;try{if(n.updateStatus==="Successful")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},sZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,$me),kme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,$me);return tp(n)},Mme=async(t,e)=>{let r;try{let n=await t.send(new Ug(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},iZe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Mme),Lme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Mme);return tp(n)},aZe={CreateWebFunctionCommand:_x,CreateWebFunctionEndpointCommand:Rx,CreateWebFunctionRevisionCommand:Cx,DeleteResourcePolicyCommand:bx,DeleteWebFunctionCommand:Ax,DeleteWebFunctionEndpointCommand:xx,DeleteWebFunctionRevisionCommand:Tx,GetResourcePolicyCommand:vx,GetWebAccountSettingsCommand:Dx,GetWebFunctionCommand:ep,GetWebFunctionEndpointCommand:gu,GetWebFunctionRevisionCommand:Ug,ListTagsCommand:Ix,ListWebFunctionEndpointsCommand:Gg,ListWebFunctionRevisionsCommand:qg,ListWebFunctionsCommand:Hg,PutResourcePolicyCommand:wx,TagResourceCommand:Px,UntagResourceCommand:Ox,UpdateWebFunctionEndpointCommand:$x},cZe={paginateListWebFunctionEndpoints:Cme,paginateListWebFunctionRevisions:bme,paginateListWebFunctions:Ame},uZe={waitUntilWebFunctionActive:Tme,waitUntilWebFunctionDeleted:Dme,waitUntilWebFunctionEndpointActive:wme,waitUntilWebFunctionEndpointDeleted:Ome,waitUntilWebFunctionEndpointUpdated:kme,waitUntilWebFunctionRevisionActive:Lme},kx=class extends mu{};T7e(aZe,kx,{paginators:cZe,waiters:uZe});var lZe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},dZe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},pZe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},fZe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},mZe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},gZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},hZe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},SZe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},yZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};D.AccessDeniedException=fx;D.AccessDeniedException$=Zpe;D.AccountQuotas$=afe;D.AccountUsage$=cfe;D.ApplicationLogLevel=lZe;D.AuthType=dZe;D.AutoDeploymentMode=pZe;D.BuildConfig$=Wg;D.CodeConfig$=ufe;D.ConflictException=mx;D.ConflictException$=efe;D.CreateWebFunction$=rme;D.CreateWebFunctionCommand=_x;D.CreateWebFunctionEndpoint$=nme;D.CreateWebFunctionEndpointCommand=Rx;D.CreateWebFunctionEndpointRequest$=lfe;D.CreateWebFunctionEndpointResponse$=dfe;D.CreateWebFunctionRequest$=pfe;D.CreateWebFunctionResponse$=ffe;D.CreateWebFunctionRevision$=ome;D.CreateWebFunctionRevisionCommand=Cx;D.CreateWebFunctionRevisionRequest$=mfe;D.CreateWebFunctionRevisionResponse$=gfe;D.DeleteResourcePolicy$=sme;D.DeleteResourcePolicyCommand=bx;D.DeleteResourcePolicyRequest$=hfe;D.DeleteWebFunction$=ime;D.DeleteWebFunctionCommand=Ax;D.DeleteWebFunctionEndpoint$=ame;D.DeleteWebFunctionEndpointCommand=xx;D.DeleteWebFunctionEndpointRequest$=Sfe;D.DeleteWebFunctionRequest$=yfe;D.DeleteWebFunctionRevision$=cme;D.DeleteWebFunctionRevisionCommand=Tx;D.DeleteWebFunctionRevisionRequest$=Efe;D.EndpointConfig$=_fe;D.EndpointState=gZe;D.EndpointType=fZe;D.EndpointUpdateStatus=hZe;D.Filter$=Rfe;D.FunctionEndpointSummary$=WN;D.FunctionRevisionSummary$=KN;D.FunctionState=yZe;D.FunctionSummary$=Cfe;D.GetResourcePolicy$=ume;D.GetResourcePolicyCommand=vx;D.GetResourcePolicyRequest$=bfe;D.GetResourcePolicyResponse$=Afe;D.GetWebAccountSettings$=lme;D.GetWebAccountSettingsCommand=Dx;D.GetWebAccountSettingsRequest$=xfe;D.GetWebAccountSettingsResponse$=Tfe;D.GetWebFunction$=dme;D.GetWebFunctionCommand=ep;D.GetWebFunctionEndpoint$=pme;D.GetWebFunctionEndpointCommand=gu;D.GetWebFunctionEndpointRequest$=vfe;D.GetWebFunctionEndpointResponse$=Dfe;D.GetWebFunctionRequest$=Ife;D.GetWebFunctionResponse$=wfe;D.GetWebFunctionRevision$=fme;D.GetWebFunctionRevisionCommand=Ug;D.GetWebFunctionRevisionRequest$=Pfe;D.GetWebFunctionRevisionResponse$=Ofe;D.InternalServerException=gx;D.InternalServerException$=tfe;D.LambdaWeb=kx;D.LambdaWebClient=mu;D.LambdaWebServiceException=ns;D.LambdaWebServiceException$=Xpe;D.ListTags$=mme;D.ListTagsCommand=Ix;D.ListTagsRequest$=$fe;D.ListTagsResponse$=kfe;D.ListWebFunctionEndpoints$=gme;D.ListWebFunctionEndpointsCommand=Gg;D.ListWebFunctionEndpointsRequest$=Mfe;D.ListWebFunctionEndpointsResponse$=Lfe;D.ListWebFunctionRevisions$=hme;D.ListWebFunctionRevisionsCommand=qg;D.ListWebFunctionRevisionsRequest$=Nfe;D.ListWebFunctionRevisionsResponse$=Ffe;D.ListWebFunctions$=Sme;D.ListWebFunctionsCommand=Hg;D.ListWebFunctionsRequest$=Bfe;D.ListWebFunctionsResponse$=Ufe;D.LoggingConfig$=Gfe;D.PutResourcePolicy$=yme;D.PutResourcePolicyCommand=wx;D.PutResourcePolicyRequest$=qfe;D.PutResourcePolicyResponse$=Hfe;D.RegionalEndpoint$=jfe;D.ResourceNotFoundException=hx;D.ResourceNotFoundException$=rfe;D.RevisionConfig$=zfe;D.RevisionError$=Vfe;D.RevisionState=SZe;D.RevisionWeight$=Wfe;D.RuntimeConfig$=Kfe;D.S3Object$=Qfe;D.ScalingConfig$=Vi;D.ServiceConfig$=Kg;D.ServiceQuotaExceededException=Sx;D.ServiceQuotaExceededException$=nfe;D.SystemLogLevel=mZe;D.TagResource$=Eme;D.TagResourceCommand=Px;D.TagResourceRequest$=Yfe;D.TelemetryConfig$=Jfe;D.ThrottleConfig$=Wi;D.ThrottlingException=yx;D.ThrottlingException$=ofe;D.UntagResource$=_me;D.UntagResourceCommand=Ox;D.UntagResourceRequest$=Xfe;D.UpdateWebFunctionEndpoint$=Rme;D.UpdateWebFunctionEndpointCommand=$x;D.UpdateWebFunctionEndpointRequest$=Zfe;D.UpdateWebFunctionEndpointResponse$=eme;D.ValidationException=Ex;D.ValidationException$=sfe;D.errorTypeRegistries=ife;D.paginateListWebFunctionEndpoints=Cme;D.paginateListWebFunctionRevisions=bme;D.paginateListWebFunctions=Ame;D.waitForWebFunctionActive=tZe;D.waitForWebFunctionDeleted=rZe;D.waitForWebFunctionEndpointActive=nZe;D.waitForWebFunctionEndpointDeleted=oZe;D.waitForWebFunctionEndpointUpdated=sZe;D.waitForWebFunctionRevisionActive=iZe;D.waitUntilWebFunctionActive=Tme;D.waitUntilWebFunctionDeleted=Dme;D.waitUntilWebFunctionEndpointActive=wme;D.waitUntilWebFunctionEndpointDeleted=Ome;D.waitUntilWebFunctionEndpointUpdated=kme;D.waitUntilWebFunctionRevisionActive=Lme});var Gbe=st(p=>{var{awsEndpointFunctions:EZe,emitWarningIfUnsupportedVersion:_Ze,createDefaultUserAgentProvider:RZe,NODE_APP_ID_CONFIG_OPTIONS:CZe,getAwsRegionExtensionConfiguration:bZe,resolveAwsRegionExtensionConfiguration:AZe,resolveUserAgentConfig:xZe,resolveHostHeaderConfig:TZe,getUserAgentPlugin:vZe,getHostHeaderPlugin:DZe,getLoggerPlugin:IZe,getRecursionDetectionPlugin:wZe}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:PZe,DefaultIdentityProviderConfig:OZe,getHttpSigningPlugin:$Ze,createPaginator:Rr}=(jt(),F(xl)),{normalizeProvider:zme,getSmithyContext:kZe,ServiceException:MZe,NoOpLogger:LZe,emitWarningIfUnsupportedVersion:NZe,loadConfigsForDefaultMode:FZe,getDefaultExtensionConfiguration:BZe,resolveDefaultRuntimeConfig:UZe,Client:Vme,makeBuilder:GZe,createAggregatedClient:qZe}=(J(),F(bo)),{Command:HZe}=(J(),F(bo));p.$Command=HZe;p.__Client=Vme;var{resolveDefaultsModeConfig:jZe,loadConfig:bu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:zZe,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:VZe,NODE_REGION_CONFIG_OPTIONS:WZe,NODE_REGION_CONFIG_FILE_OPTIONS:KZe,resolveRegionConfig:QZe}=(ye(),F(Br)),{BinaryDecisionDiagram:YZe,EndpointCache:JZe,decideEndpoint:XZe,customEndpointFunctions:ZZe,resolveEndpointConfig:eet,getEndpointPlugin:tet}=(He(),F(jp)),{eventStreamSerdeProvider:ret,resolveEventStreamSerdeConfig:net}=(WS(),F(VS)),{parseUrl:oet,getHttpHandlerExtensionConfiguration:set,resolveHttpHandlerRuntimeConfig:iet,getContentLengthPlugin:aet}=(V(),F(wo)),{DEFAULT_RETRY_MODE:cet,NODE_RETRY_MODE_CONFIG_OPTIONS:uet,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:det,resolveRetryConfig:pet,getRetryPlugin:fet}=(en(),F(nf)),{TypeRegistry:Wme,getSchemaSerdePlugin:met}=(ae(),F(Dp)),{resolveAwsSdkSigV4Config:get,AwsSdkSigV4Signer:het,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yet}=(rr(),F(Il)),{defaultProvider:Eet}=Cm(),{toUtf8:_et,fromUtf8:Ret,toBase64:Cet,fromBase64:bet,calculateBodyLength:Aet}=(j(),F(To)),{streamCollector:xet,NodeHttpHandler:Tet}=zs(),{AwsJson1_1Protocol:vet}=(Di(),F(Vy)),{Sha256:Det}=(On(),F(Vp)),Iet=async(t,e,r)=>({operation:kZe(e).operation,region:await zme(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function wet(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Pet=t=>{let e=[];switch(t.operation){default:e.push(wet(t))}return e},Oet=t=>{let e=get(t);return Object.assign(e,{authSchemePreference:zme(t.authSchemePreference??[])})},$et=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),ket={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Met="3.1151.0",Let={version:Met},Qg="ref",Au=-1,Hx=!0,Fme="isSet",Kme="PartitionResult",jx="booleanEquals",Bme="getAttr",Ume="stringEquals",Gme={[Qg]:"Endpoint"},qme={[Qg]:Kme},JN={[Qg]:"Region"},xu={},Hme=[JN],jme={conditions:[[Fme,[Gme]],[Fme,Hme],["aws.partition",Hme,Kme],[jx,[{[Qg]:"UseFIPS"},Hx]],[jx,[{[Qg]:"UseDualStack"},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsDualStack"]},Hx]],[jx,[{fn:Bme,argv:[qme,"supportsFIPS"]},Hx]],[Ume,[JN,"us-gov-east-1"]],[Ume,[JN,"us-gov-west-1"]]],results:[[Au],[Au,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Au,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Gme,xu],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",xu],["https://logs.us-gov-west-1.amazonaws.com",xu],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",xu],[Au,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",xu],[Au,"Invalid Configuration: Missing Region"]]},Net=2,pn=1e8,Fet=new Int32Array([-1,1,-1,0,14,3,1,4,pn+13,2,5,pn+13,3,8,6,4,7,pn+12,5,pn+10,pn+11,4,12,9,6,10,pn+9,7,pn+6,11,8,pn+7,pn+8,5,13,pn+5,6,pn+4,pn+5,3,pn+1,15,4,pn+2,pn+3]),Bet=YZe.from(Fet,Net,jme.conditions,jme.results),Uet=new JZe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Get=(t,e={})=>Uet.get(t,()=>XZe(Bet,{endpointParams:t,logger:e.logger}));ZZe.aws=EZe;var nt=class t extends MZe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Yx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},aT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},dT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},qet="Anomaly",Het="AnomalyDetector",jet="AccessDeniedException",zet="AnomalyDetectors",Vet="AllowedFields",Wet="AddKeys",Ket="AddKeyEntry",Qet="AddKeyEntries",Yet="AssociateKmsKey",Jet="AssociateKmsKeyRequest",Xet="AggregateLogGroupSummary",Zet="AggregateLogGroupSummaries",ett="AccountPolicy",ttt="AccountPolicies",rtt="AssociateSourceToS3TableIntegration",ntt="AssociateSourceToS3TableIntegrationRequest",ott="AssociateSourceToS3TableIntegrationResponse",stt="Anomalies",itt="CreateDelivery",att="CreateDeliveryRequest",ctt="CreateDeliveryResponse",utt="ConflictException",ltt="CancelExportTask",dtt="CancelExportTaskRequest",ptt="CreateExportTaskRequest",ftt="CreateExportTaskResponse",mtt="CreateExportTask",gtt="CancelImportTask",htt="CancelImportTaskRequest",Stt="CancelImportTaskResponse",ytt="CreateImportTaskRequest",Ett="CreateImportTaskResponse",_tt="CreateImportTask",Rtt="CreateLogAnomalyDetector",Ctt="CreateLogAnomalyDetectorRequest",btt="CreateLogAnomalyDetectorResponse",Att="CreateLogGroup",xtt="CreateLogGroupRequest",Ttt="CreateLogStream",vtt="CreateLogStreamRequest",Dtt="CreateLookupTable",Itt="CreateLookupTableRequest",wtt="CreateLookupTableResponse",Ptt="CreateScheduledQuery",Ott="CreateScheduledQueryRequest",$tt="CreateScheduledQueryResponse",ktt="CSV",Mtt="ConfigurationTemplate",Ltt="ConfigurationTemplateDeliveryConfigValues",Ntt="ConfigurationTemplates",Ftt="CopyValue",Btt="CopyValueEntry",Utt="CopyValueEntries",Gtt="Delivery",qtt="DataAlreadyAcceptedException",Htt="DeleteAccountPolicy",jtt="DeleteAccountPolicyRequest",ztt="DescribeAccountPoliciesRequest",Vtt="DescribeAccountPoliciesResponse",Wtt="DescribeAccountPolicies",Ktt="DestinationConfiguration",Qtt="DescribeConfigurationTemplates",Ytt="DescribeConfigurationTemplatesRequest",Jtt="DescribeConfigurationTemplatesResponse",Xtt="DeliveryDestination",Ztt="DeliveryDestinationConfiguration",ert="DeleteDeliveryDestination",trt="DeleteDeliveryDestinationPolicy",rrt="DeleteDeliveryDestinationPolicyRequest",nrt="DeleteDeliveryDestinationRequest",ort="DescribeDeliveryDestinationsRequest",srt="DescribeDeliveryDestinationsResponse",irt="DescribeDeliveryDestinations",art="DeleteDataProtectionPolicy",crt="DeleteDataProtectionPolicyRequest",urt="DeleteDeliveryRequest",lrt="DeleteDestinationRequest",drt="DescribeDeliveriesRequest",prt="DescribeDeliveriesResponse",frt="DescribeDestinationsRequest",mrt="DescribeDestinationsResponse",grt="DeleteDeliverySource",hrt="DeleteDeliverySourceRequest",Srt="DescribeDeliverySourcesRequest",yrt="DescribeDeliverySourcesResponse",Ert="DescribeDeliverySources",_rt="DeliveryDestinations",Rrt="DeleteDelivery",Crt="DeleteDestination",brt="DescribeDeliveries",Art="DescribeDestinations",xrt="DescribeExportTasks",Trt="DescribeExportTasksRequest",vrt="DescribeExportTasksResponse",Drt="DescribeFieldIndexes",Irt="DescribeFieldIndexesRequest",wrt="DescribeFieldIndexesResponse",Prt="DeleteIntegration",Ort="DeleteIndexPolicy",$rt="DeleteIndexPolicyRequest",krt="DeleteIndexPolicyResponse",Mrt="DescribeIndexPoliciesRequest",Lrt="DescribeIndexPoliciesResponse",Nrt="DescribeIndexPolicies",Frt="DeleteIntegrationRequest",Brt="DeleteIntegrationResponse",Urt="DescribeImportTasks",Grt="DescribeImportTaskBatches",qrt="DescribeImportTaskBatchesRequest",Hrt="DescribeImportTaskBatchesResponse",jrt="DescribeImportTasksRequest",zrt="DescribeImportTasksResponse",Vrt="DeleteKeys",Wrt="DisassociateKmsKey",Krt="DisassociateKmsKeyRequest",Qrt="DeleteLogAnomalyDetector",Yrt="DeleteLogAnomalyDetectorRequest",Jrt="DeleteLogGroup",Xrt="DeleteLogGroupRequest",Zrt="DescribeLogGroupsRequest",ent="DescribeLogGroupsResponse",tnt="DescribeLogGroups",rnt="DeleteLogStream",nnt="DeleteLogStreamRequest",ont="DescribeLogStreamsRequest",snt="DescribeLogStreamsResponse",int="DescribeLogStreams",ant="DeleteLookupTable",cnt="DeleteLookupTableRequest",unt="DescribeLookupTablesRequest",lnt="DescribeLookupTablesResponse",dnt="DescribeLookupTables",pnt="DeleteMetricFilter",fnt="DeleteMetricFilterRequest",mnt="DescribeMetricFiltersRequest",gnt="DescribeMetricFiltersResponse",hnt="DescribeMetricFilters",Snt="DestinationNamePrefix",ynt="DescribeQueries",Ent="DeleteQueryDefinition",_nt="DeleteQueryDefinitionRequest",Rnt="DeleteQueryDefinitionResponse",Cnt="DescribeQueryDefinitionsRequest",bnt="DescribeQueryDefinitionsResponse",Ant="DescribeQueryDefinitions",xnt="DescribeQueriesRequest",Tnt="DescribeQueriesResponse",vnt="DeleteResourcePolicy",Dnt="DeleteResourcePolicyRequest",Int="DeleteRetentionPolicyRequest",wnt="DescribeResourcePoliciesRequest",Pnt="DescribeResourcePoliciesResponse",Ont="DeleteRetentionPolicy",$nt="DescribeResourcePolicies",knt="DataSource",Mnt="DeleteSyslogConfiguration",Lnt="DeleteSyslogConfigurationRequest",Nnt="DeliverySourceConfigurationSchema",Fnt="DeliverySourceConfigurationSchemas",Bnt="DataSourceFilter",Unt="DeleteSubscriptionFilterRequest",Gnt="DescribeSubscriptionFiltersRequest",qnt="DescribeSubscriptionFiltersResponse",Hnt="DisassociateSourceFromS3TableIntegration",jnt="DisassociateSourceFromS3TableIntegrationRequest",znt="DisassociateSourceFromS3TableIntegrationResponse",Vnt="DataSourceFilters",Wnt="DeleteSubscriptionFilter",Knt="DescribeSubscriptionFilters",Qnt="DeleteScheduledQuery",Ynt="DeleteScheduledQueryRequest",Jnt="DeleteScheduledQueryResponse",Xnt="DeliverySource",Znt="DeliverySources",eot="DeleteTransformer",tot="DateTimeConverter",rot="DeleteTransformerRequest",not="Destination",oot="Deliveries",sot="Destinations",iot="Entity",aot="ExportTask",cot="ExportTaskExecutionInfo",uot="ExportTaskStatus",lot="ExportTasks",dot="FieldsData",pot="FieldIndex",fot="FieldIndexes",mot="FilteredLogEvent",got="FilterLogEventsRequest",hot="FilterLogEventsResponse",Sot="FilteredLogEvents",yot="FilterLogEvents",Eot="Grok",_ot="GetDelivery",Rot="GetDeliveryDestination",Cot="GetDeliveryDestinationPolicy",bot="GetDeliveryDestinationPolicyRequest",Aot="GetDeliveryDestinationPolicyResponse",xot="GetDeliveryDestinationRequest",Tot="GetDeliveryDestinationResponse",vot="GetDataProtectionPolicy",Dot="GetDataProtectionPolicyRequest",Iot="GetDataProtectionPolicyResponse",wot="GetDeliveryRequest",Pot="GetDeliveryResponse",Oot="GetDeliverySource",$ot="GetDeliverySourceRequest",kot="GetDeliverySourceResponse",Mot="GroupingIdentifier",Lot="GetIntegrationRequest",Not="GetIntegrationResponse",Fot="GetIntegration",Bot="GroupingIdentifiers",Uot="GetLogAnomalyDetector",Got="GetLogAnomalyDetectorRequest",qot="GetLogAnomalyDetectorResponse",Hot="GetLogEvents",jot="GetLogEventsRequest",zot="GetLogEventsResponse",Vot="GetLogFields",Wot="GetLogFieldsRequest",Kot="GetLogFieldsResponse",Qot="GetLogGroupFields",Yot="GetLogGroupFieldsRequest",Jot="GetLogGroupFieldsResponse",Xot="GetLogObject",Zot="GetLogObjectRequest",est="GetLogObjectResponseStream",tst="GetLogObjectResponse",rst="GetLogRecord",nst="GetLogRecordRequest",ost="GetLogRecordResponse",sst="GetLookupTable",ist="GetLookupTableRequest",ast="GetLookupTableResponse",cst="GetQueryResults",ust="GetQueryResultsRequest",lst="GetQueryResultsResponse",dst="GetScheduledQuery",pst="GetScheduledQueryHistory",fst="GetScheduledQueryHistoryRequest",mst="GetScheduledQueryHistoryResponse",gst="GetScheduledQueryRequest",hst="GetScheduledQueryResponse",Sst="GetStorageTierPolicy",yst="GetStorageTierPolicyRequest",Est="GetStorageTierPolicyResponse",_st="GetTransformer",Rst="GetTransformerRequest",Cst="GetTransformerResponse",bst="Import",Ast="ImportBatch",xst="ImportBatchList",Tst="IntegrationDetails",vst="ImportFilter",Dst="ImportList",Ist="InputLogEvent",wst="InputLogEvents",Pst="InvalidOperationException",Ost="IndexPolicy",$st="InvalidParameterException",kst="IndexPolicies",Mst="ImportStatistics",Lst="InternalServerException",Qme="InternalStreamingException",Nst="InvalidSequenceTokenException",Fst="IntegrationSummary",Bst="IntegrationSummaries",Ust="ListAnomalies",Gst="ListAggregateLogGroupSummaries",qst="ListAggregateLogGroupSummariesRequest",Hst="ListAggregateLogGroupSummariesResponse",jst="ListAnomaliesRequest",zst="ListAnomaliesResponse",Vst="LowerCaseString",Wst="LogEvent",Kst="LimitExceededException",Qst="LogFieldsList",Yst="LogFieldsListItem",Jst="LogFieldType",Xst="LogGroup",Zst="LogGroupField",eit="LogGroupFieldList",tit="LogGroupSummary",rit="LogGroupSummaries",nit="LogGroups",oit="ListIntegrations",sit="ListIntegrationsRequest",iit="ListIntegrationsResponse",ait="ListLogAnomalyDetectors",cit="ListLogAnomalyDetectorsRequest",uit="ListLogAnomalyDetectorsResponse",lit="ListLogGroups",dit="ListLogGroupsForQuery",pit="ListLogGroupsForQueryRequest",fit="ListLogGroupsForQueryResponse",mit="ListLogGroupsRequest",git="ListLogGroupsResponse",hit="LogStream",Sit="ListSyslogConfigurations",yit="ListSyslogConfigurationsRequest",Eit="ListSyslogConfigurationsResponse",_it="ListSourcesForS3TableIntegration",Rit="ListSourcesForS3TableIntegrationRequest",Cit="ListSourcesForS3TableIntegrationResponse",bit="ListScheduledQueries",Ait="ListScheduledQueriesRequest",xit="ListScheduledQueriesResponse",Tit="LogSamples",vit="LogStreams",Dit="LookupTable",Iit="LookupTableConfiguration",wit="ListTagsForResource",Pit="ListTagsForResourceRequest",Oit="ListTagsForResourceResponse",$it="ListTagsLogGroup",kit="ListTagsLogGroupRequest",Mit="ListTagsLogGroupResponse",Lit="ListToMap",Nit="LiveTailSessionLogEvent",Fit="LiveTailSessionMetadata",Bit="LiveTailSessionResults",Uit="LiveTailSessionStart",Git="LiveTailSessionUpdate",qit="LookupTables",Hit="MetricFilter",jit="MetricFilterMatches",zit="MetricFilterMatchRecord",Vit="MetricFilters",Wit="MoveKeys",Kit="MoveKeyEntry",Qit="MoveKeyEntries",Yit="MalformedQueryException",Jit="MetricTransformation",Xit="MetricTransformations",Zit="OperationAbortedException",eat="OutputLogEvent",tat="OutputLogEvents",rat="OpenSearchApplication",nat="OpenSearchCollection",oat="OpenSearchDataAccessPolicy",sat="OpenSearchDataSource",iat="OpenSearchEncryptionPolicy",aat="OpenSearchIntegrationDetails",cat="OpenSearchLifecyclePolicy",uat="OpenSearchNetworkPolicy",lat="OpenSearchResourceConfig",dat="OpenSearchResourceStatus",pat="OpenSearchWorkspace",fat="Policy",mat="PutAccountPolicy",gat="PutAccountPolicyRequest",hat="PutAccountPolicyResponse",Sat="PutBearerTokenAuthentication",yat="PutBearerTokenAuthenticationRequest",Eat="ParseCloudfront",_at="PutDestination",Rat="PutDeliveryDestination",Cat="PutDeliveryDestinationPolicy",bat="PutDeliveryDestinationPolicyRequest",Aat="PutDeliveryDestinationPolicyResponse",xat="PutDeliveryDestinationRequest",Tat="PutDeliveryDestinationResponse",vat="PutDestinationPolicy",Dat="PutDataProtectionPolicy",Iat="PutDataProtectionPolicyRequest",wat="PutDataProtectionPolicyResponse",Pat="PutDestinationPolicyRequest",Oat="PutDestinationRequest",$at="PutDestinationResponse",kat="PutDeliverySource",Mat="PutDeliverySourceRequest",Lat="PutDeliverySourceResponse",Nat="PutIntegration",Fat="PutIndexPolicy",Bat="PutIndexPolicyRequest",Uat="PutIndexPolicyResponse",Gat="PutIntegrationRequest",qat="PutIntegrationResponse",Hat="ParseJSON",jat="ParseKeyValue",zat="PutLogEvents",Vat="PutLogEventsRequest",Wat="PutLogEventsResponse",Kat="PutLogGroupDeletionProtection",Qat="PutLogGroupDeletionProtectionRequest",Yat="PutMetricFilter",Jat="PutMetricFilterRequest",Xat="ParsePostgres",Zat="PutQueryDefinition",ect="PutQueryDefinitionRequest",tct="PutQueryDefinitionResponse",rct="ParseRoute53",nct="PutResourcePolicy",oct="PutResourcePolicyRequest",sct="PutResourcePolicyResponse",ict="PutRetentionPolicyRequest",act="PutRetentionPolicy",cct="PutSyslogConfiguration",uct="PutSyslogConfigurationRequest",lct="PutSubscriptionFilter",dct="PutSubscriptionFilterRequest",pct="PutStorageTierPolicy",fct="PutStorageTierPolicyRequest",mct="PutStorageTierPolicyResponse",gct="PatternToken",hct="ParseToOCSF",Sct="PutTransformerRequest",yct="PatternTokens",Ect="PutTransformer",_ct="ParseVPC",Rct="ParseWAF",Cct="Processor",bct="Processors",Act="QueryCompileError",xct="QueryCompileErrorLocation",Tct="QueryDefinition",vct="QueryDefinitionList",Dct="QueryInfo",Ict="QueryInfoList",wct="QueryParameter",Pct="QueryParameterList",Oct="QueryResults",$ct="QueryStatistics",kct="ResourceAlreadyExistsException",Mct="ResourceConfig",Lct="RejectedEntityInfo",Nct="RecordField",Fct="ResultField",Bct="RenameKeys",Uct="RenameKeyEntry",Gct="RenameKeyEntries",qct="RejectedLogEventsInfo",Hct="ResourceNotFoundException",jct="ResourcePolicy",zct="ResourcePolicies",Vct="ResultRows",Wct="S3Configuration",Kct="SyslogConfiguration",Qct="SyslogConfigurations",Yct="S3DeliveryConfiguration",Jct="SubscriptionFilter",Xct="SubscriptionFilters",Zct="SearchedLogStream",eut="SearchedLogStreams",tut="StartLiveTail",rut="StartLiveTailRequest",nut="StartLiveTailResponseStream",out="StartLiveTailResponse",sut="SuppressionPeriod",iut="StartQuery",aut="ScheduledQueryDestination",cut="ScheduledQueryDestinationList",uut="ServiceQuotaExceededException",lut="StartQueryRequest",dut="StartQueryResponse",put="StopQueryRequest",fut="StopQueryResponse",mut="ScheduledQuerySummary",gut="ScheduledQuerySummaryList",hut="StopQuery",Sut="SplitString",Yme="SessionStreamingException",yut="SplitStringEntry",Eut="SplitStringEntries",_ut="SubstituteStringEntry",Rut="SubstituteStringEntries",Cut="SubstituteString",Jme="SessionTimeoutException",but="S3TablesIntegration",Aut="S3TableIntegrationSource",xut="S3TableIntegrationSources",Tut="ServiceUnavailableException",vut="TypeConverter",Dut="TypeConverterEntry",Iut="TypeConverterEntries",wut="ThrottlingException",Put="TagFilter",Out="TagFilters",$ut="TriggerHistoryRecord",kut="TriggerHistoryRecordList",Mut="TransformedLogs",Lut="TagLogGroup",Nut="TagLogGroupRequest",Fut="TransformedLogRecord",But="TestMetricFilter",Uut="TestMetricFilterRequest",Gut="TestMetricFilterResponse",qut="TooManyTagsException",Hut="TagResource",jut="TagResourceRequest",zut="TrimString",Vut="TestTransformer",Wut="TestTransformerRequest",Kut="TestTransformerResponse",Qut="UpdateAnomaly",Yut="UpdateAnomalyRequest",Jut="UnrecognizedClientException",Xut="UpperCaseString",Zut="UpdateDeliveryConfiguration",elt="UpdateDeliveryConfigurationRequest",tlt="UpdateDeliveryConfigurationResponse",rlt="UpdateLogAnomalyDetector",nlt="UpdateLogAnomalyDetectorRequest",olt="UntagLogGroup",slt="UntagLogGroupRequest",ilt="UpdateLookupTable",alt="UpdateLookupTableRequest",clt="UpdateLookupTableResponse",ult="UntagResource",llt="UntagResourceRequest",dlt="UpdateScheduledQuery",plt="UpdateScheduledQueryRequest",flt="UpdateScheduledQueryResponse",mlt="ValidationException",glt="active",Xme="applicationArn",hlt="allowedActionForAllowVendedLogsDeliveryForResource",Slt="anomalyDetectors",ic="anomalyDetectorArn",Zme="anomalyDetectorStatus",ylt="applicationEndpoint",Elt="allowedFields",_lt="allowedFieldDelimiters",Rlt="accountId",sD="accountIdentifiers",ege="anomalyId",Clt="applicationId",blt="addKeys",Alt="aggregateLogGroupSummaries",xlt="allowedOutputFormats",iD="applyOnTransformedLogs",Tlt="accountPolicies",XN="accessPolicy",vlt="accountPolicy",Dlt="allowedSuffixPathFields",aD="anomalyVisibilityTime",Ilt="anomalies",wlt="application",ap="arn",Plt="attributes",Olt="baseline",$lt="batchId",klt="batchImportStatus",Mlt="bytesImported",tge="bytesScanned",rge="bearerTokenAuthenticationEnabled",Jt="client",nge="createdAt",Llt="collectionArn",Nlt="collectionEndpoint",Hn="creationTime",oge="creationTimeStamp",Flt="createdTimeStamp",Blt="clientToken",Ult="configurationTemplates",Glt="completionTime",qlt="createTime",Hlt="copyValue",jlt="columns",zlt="code",Vlt="collection",Wlt="csv",is="description",sge="destinationArn",mh="destinationConfiguration",Klt="deliveryDestinations",ige="deliveryDestinationArn",age="deliveryDestinationConfiguration",Qlt="defaultDeliveryConfigValues",ZN="deliveryDestinationName",cge="deliveryDestinationPolicy",cD="deliveryDestinationType",Ylt="deliveryDestinationTypes",uge="deliveryDestination",lge="destinationIdentifier",Jlt="deleteKeys",e3="detectorName",Xlt="datasourceName",uD="destinationName",dge="destinationPrefix",t3="deletionProtectionEnabled",Zlt="dataProtectionStatus",edt="destinationResourceArn",r3="dataSource",n3="deliverySourceConfiguration",pge="deliverySourceName",fge="dataSourceName",tdt="dataSourceRoleArn",rdt="dataSourceType",mge="dataSources",ndt="deliverySources",gge="deliverySource",odt="datasourceType",sdt="dateTimeConverter",idt="dynamicTokenPosition",adt="destinationType",o3="defaultValue",cdt="dashboardViewerPrincipals",udt="data",hge="delivery",Sge="delimiter",ldt="deliveries",cp="destination",ddt="descending",yge="destinations",pdt="dimensions",Ege="distribution",wt="error",fdt="estimatedBytesSkipped",mdt="endCharOffset",gdt="endEventTime",lD="evaluationFrequency",hdt="enableHiveCompatiblePath",Sdt="executionInfo",ydt="eventId",Edt="encryptionKey",_dt="expiredLogEventEndIndex",dD="errorMessage",_ge="eventMessage",Rge="eventNumber",Rdt="encryptionPolicy",pD="executionRoleArn",Cge="expectedRevisionId",Cdt="estimatedRecordsSkipped",bdt="executionStatuses",bge="emitSystemFields",Age="emitSystemFieldDimensions",xge="expectedSequenceToken",Adt="eventSource",xdt="executionStatus",Tdt="exportTasks",fD="endTimeOffset",mD="endTime",vdt="errorType",Ddt="extractedValues",Idt="element",Tu="entries",wdt="enabled",Tge="endpoint",Pdt="entity",Odt="enumerations",vge="events",s3="from",gh="fieldDelimiter",$dt="flattenedElement",kdt="firstEventTime",Mdt="firstEventTimestamp",Ldt="fieldIndexes",Ndt="fieldIndexName",Fdt="fieldIndexNames",Bdt="filterLogGroupArn",up="filterName",Dge="filterNamePrefix",yi="filterPattern",Udt="firstSeen",gD="fieldSelectionCriteria",Gdt="fieldStream",qdt="forceUpdate",Ige="fields",Hdt="field",jdt="flatten",zdt="force",Vdt="grok",Wdt="groupBy",Kdt="groupingIdentifiers",Qdt="histogram",wge="httpError",ac="identifier",Pge="integrationArn",Ydt="importBatches",Jdt="indexCategories",Xdt="indexCategory",Zdt="integrationDetails",Oge="importDestinationArn",ept="isDynamic",$ge="importFilter",vu="importId",i3="includeLinkedAccounts",lp="integrationName",tpt="integrationNamePrefix",rpt="indexPolicies",npt="isPatternLevelSuppression",opt="inheritedProperties",spt="indexPolicy",ipt="importRoleArn",kge="importStatistics",hD="importSourceArn",a3="importStatus",SD="integrationStatus",apt="integrationSummaries",c3="ingestionTime",cpt="inferredTokenName",yD="integrationType",ED="id",upt="imports",lpt="interleaved",dp="key",dpt="keyAttributes",ppt="kmsKeyArn",go="kmsKeyId",fpt="keyName",mpt="keyPrefix",gpt="keyValueDelimiter",hpt="locale",Spt="lowerCaseString",ypt="logEvents",Mge="logEventFilterPattern",Lge="logEventMessages",u3="lastExecutionStatus",Ept="lastEventTime",_pt="lastEventTimestamp",Rpt="logFields",Cpt="logFieldName",bpt="logFieldType",Nge="logGroups",l3="logGroupArn",_D="logGroupArnList",Apt="logGroupCount",pp="logGroupClass",xpt="logGroupFields",as="logGroupIdentifiers",dt="logGroupIdentifier",Me="logGroupName",Tpt="logGroupNamePrefix",d3="logGroupNamePattern",p3="logGroupNames",vpt="logGroupsScanned",Dpt="logGroupTags",Ipt="lastIngestionTime",wpt="lastModified",Ppt="lastModifiedTime",Fge="lastModifiedTimeStamp",Opt="logObjectPointer",$pt="lifecyclePolicy",kpt="logRecord",Mpt="logRecordPointer",Lpt="lastSeen",cc="logStreamName",f3="logStreamNamePrefix",Bge="logStreamNamePrefixes",m3="logStreamNames",Npt="lastScanTime",Fpt="logSamples",Bpt="logStreams",g3="logType",Du="lookupTableArn",Upt="lookupTableConfiguration",Gpt="listToMap",h3="lookupTableName",qpt="lookupTableNamePrefix",S3="lastTriggeredTime",Hpt="logTypes",jpt="lookupTables",xn="lastUpdatedTime",zpt="lastUpdateTime",Bt="limit",Vpt="location",je="message",Wpt="metricFilters",Kpt="metricFilterCount",Qpt="maxItems",Ypt="moveKeys",Uge="metricName",Gge="metricNamespace",Jpt="matchPatterns",uc="maxResults",qge="metricTransformations",Xpt="minValue",Zpt="maxValue",eft="mappingVersion",tft="metricValue",rft="match",nft="mandatory",oft="matches",Ut="name",sft="nextBackwardToken",ift="nextForwardToken",aft="nonMatchValue",cft="networkPolicy",uft="nextSequenceToken",Q="nextToken",lft="ownerAccountId",dft="orderBy",Hge="outputFormat",hh="overwriteIfExists",pft="openSearchIntegrationDetails",fft="openSearchResourceConfig",mft="ocsfVersion",gft="priority",hft="parseCloudfront",Ki="policyDocument",jge="patternId",Sft="processedIdentifier",yft="parseJSON",Eft="parseKeyValue",ho="policyName",_ft="parsePostgres",Rft="patternRegex",Cft="parseRoute53",bft="patternString",Aft="parentSourceIdentifier",zge="policyScope",RD="policyType",xft="parseToOCSF",Tft="patternTokens",vft="parseVPC",Dft="parseWAF",Vge="parameters",Ift="percent",Wge="policy",wft="queries",Pft="quoteCharacter",Oft="queryCompileError",$ft="queryDefinitions",CD="queryDefinitionId",kft="queryDefinitionNamePrefix",Mft="queryDuration",lc="queryId",cs="queryLanguage",dc="queryString",Lft="results",pc="resourceArn",Nft="resourceArns",fc="roleArn",Fft="recordsCount",Bft="resourceConfig",Uft="resultCount",Gft="retentionDays",qft="rejectedEntityInfo",bD="recordFields",Kge="resourceIdentifier",Qge="retentionInDays",Hft="requestId",Yge="revisionId",jft="renameKeys",zft="rejectedLogEventsInfo",Vft="recordsMatched",Wft="resourceName",Kft="resourcePolicies",Qft="resourcePolicy",Yft="recordsScanned",Jft="responseStream",Xft="resourceType",Zft="resourceTypes",emt="renameTo",Jge="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Xge="sizeBytes",Zge="storedBytes",ehe="selectionCriteria",tmt="startCharOffset",rmt="searchedCompletely",nmt="s3Configuration",omt="statusCode",smt="syslogConfigurations",imt="suppressedDate",AD="s3DeliveryConfiguration",Sh="scheduleExpression",xD="scheduleEndTime",amt="startEventTime",cmt="subscriptionFilters",the="startFromHead",umt="sessionId",lmt="searchedLogStreams",dmt="sessionMetadata",pmt="statusMessage",fmt="suffixPath",mmt="suppressionPeriod",gmt="scheduledQueries",yh="scheduledQueryArn",rhe="statusReason",hmt="sessionResults",Smt="suppressionState",TD="scheduleStartTime",ymt="sessionStart",Emt="splitString",_mt="substituteString",Rmt="sourceTimezone",Cmt="s3TablesIntegration",vD="startTimeOffset",DD="scheduleType",bmt="sequenceToken",Amt="sourceType",ID="startTime",y3="storageTier",xmt="suppressionType",Tmt="suppressedUntil",vmt="sessionUpdate",Dmt="suppressionUnit",Imt="supportedValues",wmt="sampled",nhe="scope",ohe="server",E3="service",$r="source",Pmt="sources",mc="state",kr="status",Omt="statistics",she="streaming",$mt="suppressed",ihe="success",wD="target",ahe="targetArn",_3="tableBody",R3="transformerConfig",kmt="typeConverter",Mmt="transformedEventMessage",Lmt="targetFormat",Nmt="tableFields",Fmt="triggerHistory",PD="taskId",Bmt="tagKeys",Umt="transformedLogs",che="taskName",Gmt="tooNewLogEventStartIndex",qmt="tableName",Hmt="tooOldLogEventEndIndex",jmt="tokenString",zmt="trimString",Vmt="targetTimezone",Wmt="triggeredTimestamp",Mr="tags",Eh="timezone",_h="timestamp",Kmt="time",C3="to",Rh="type",OD="unmask",Qmt="upperCaseString",Ymt="userIdentity",Jmt="uploadSequenceToken",Xmt="unit",$D="value",kD="vpcEndpointId",Zmt="valueKey",egt="valueType",tgt="values",rgt="workspace",ngt="workspaceId",MD="withKeys",S="com.amazonaws.cloudwatchlogs",uhe=new Wme(Jge),lhe=[-3,Jge,"CloudWatchLogsServiceException",0,[],[]];uhe.registerError(lhe,nt);var Rt=new Wme(S),dhe=[-3,S,jet,{[wt]:Jt},[je],[0]];Rt.registerError(dhe,zx);var phe=[-3,S,utt,{[wt]:Jt},[je],[0]];Rt.registerError(phe,eT);var fhe=[-3,S,qtt,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(fhe,oT);var mhe=[-3,S,Lst,{[wt]:ohe,[wge]:500},[je],[0]];Rt.registerError(mhe,Yx);var b3=[-3,S,Qme,{[wt]:Jt},[je],[0]];Rt.registerError(b3,sT);var ghe=[-3,S,Pst,{[wt]:Jt},[je],[0]];Rt.registerError(ghe,Zx);var hhe=[-3,S,$st,{[wt]:Jt},[je],[0]];Rt.registerError(hhe,Vx);var She=[-3,S,Nst,{[wt]:Jt},[xge,je],[0,0]];Rt.registerError(She,iT);var yhe=[-3,S,Kst,{[wt]:Jt},[je],[0]];Rt.registerError(yhe,rT);var Ehe=[-3,S,Yit,{[wt]:Jt},[Oft,je],[()=>s_e,0]];Rt.registerError(Ehe,lT);var _he=[-3,S,Zit,{[wt]:Jt},[je],[0]];Rt.registerError(_he,Wx);var Rhe=[-3,S,kct,{[wt]:Jt},[je],[0]];Rt.registerError(Rhe,nT);var Che=[-3,S,Hct,{[wt]:Jt},[je],[0]];Rt.registerError(Che,Kx);var bhe=[-3,S,uut,{[wt]:Jt},[je],[0]];Rt.registerError(bhe,tT);var Ahe=[-3,S,Tut,{[wt]:ohe},[je],[0]];Rt.registerError(Ahe,Qx);var A3=[-3,S,Yme,{[wt]:Jt},[je],[0]];Rt.registerError(A3,cT);var x3=[-3,S,Jme,{[wt]:Jt},[je],[0]];Rt.registerError(x3,uT);var xhe=[-3,S,wut,{[wt]:Jt},[je],[0]];Rt.registerError(xhe,Jx);var The=[-3,S,qut,{[wt]:Jt,[wge]:400},[je,Wft],[0,0]];Rt.registerError(The,dT);var vhe=[-3,S,Jut,{[wt]:Jt},[je],[0]];Rt.registerError(vhe,aT);var Dhe=[-3,S,mlt,{[wt]:Jt},[je],[0]];Rt.registerError(Dhe,Xx);var Ihe=[uhe,Rt],T3=[3,S,ett,0,[ho,Ki,xn,RD,nhe,ehe,Rlt],[0,0,1,0,0,0,0]],whe=[3,S,Ket,0,[dp,$D,hh],[0,0,2],2],Phe=[3,S,Wet,0,[Tu],[()=>sgt],1],Ohe=[3,S,Xet,0,[Apt,Kdt],[1,()=>_gt]],$he=[3,S,qet,0,[ege,jge,ic,bft,Udt,Lpt,is,glt,mc,Qdt,Fpt,Tft,_D,Rft,gft,$mt,imt,Tmt,npt],[0,0,0,0,1,1,0,2,0,129,()=>wgt,()=>Ngt,64,0,0,2,1,1,2],13],khe=[3,S,Het,0,[ic,e3,_D,lD,yi,Zme,go,oge,Fge,aD],[0,0,64,0,0,0,0,1,1,1]],Mhe=[3,S,Jet,0,[go,Me,Kge],[0,0,0],1],Lhe=[3,S,ntt,0,[Pge,r3],[0,()=>v3],2],Nhe=[3,S,ott,0,[ac],[0]],Fhe=[3,S,dtt,0,[PD],[0],1],Bhe=[3,S,htt,0,[vu],[0],1],Uhe=[3,S,Stt,0,[vu,kge,a3,Hn,xn],[0,()=>P3,0,1,1]],Ghe=[3,S,Mtt,0,[E3,g3,Xft,cD,Qlt,Elt,xlt,hlt,_lt,Dlt,n3,Cmt],[0,0,0,0,()=>qhe,()=>agt,64,0,64,64,()=>mgt,()=>E_e]],qhe=[3,S,Ltt,0,[bD,gh,AD],[64,0,()=>Ch]],Hhe=[3,S,Ftt,0,[Tu],[()=>dgt],1],jhe=[3,S,Btt,0,[$r,wD,hh],[0,0,2],2],zhe=[3,S,att,0,[pge,ige,bD,gh,AD,Mr],[0,0,64,0,()=>Ch,128],2],Vhe=[3,S,ctt,0,[hge],[()=>LD]],Whe=[3,S,ptt,0,[Me,s3,C3,cp,che,f3,dge],[0,1,1,0,0,0,0],4],Khe=[3,S,ftt,0,[PD],[0]],Qhe=[3,S,ytt,0,[hD,ipt,$ge],[0,0,()=>w3],2],Yhe=[3,S,Ett,0,[vu,Oge,Hn],[0,0,1]],Jhe=[3,S,Ctt,0,[_D,e3,lD,yi,go,aD,Mr],[64,0,0,0,0,1,128],1],Xhe=[3,S,btt,0,[ic],[0]],Zhe=[3,S,xtt,0,[Me,go,Mr,pp,t3],[0,0,128,0,2],1],eSe=[3,S,vtt,0,[Me,cc],[0,0],2],tSe=[3,S,Itt,0,[h3,is,_3,lc,go,Mr],[0,0,0,0,0,128],1],rSe=[3,S,wtt,0,[Du,nge],[0,1]],nSe=[3,S,Ott,0,[Ut,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc,Mr],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0,128],5],oSe=[3,S,$tt,0,[yh,mc],[0,0]],sSe=[3,S,ktt,0,[Pft,Sge,jlt,$r,cp],[0,0,64,0,0]],v3=[3,S,knt,0,[Ut,Rh],[0,0],1],iSe=[3,S,Bnt,0,[Ut,Rh],[0,0],1],aSe=[3,S,tot,0,[$r,wD,Jpt,Lmt,Rmt,Vmt,hpt],[0,0,64,0,0,0,0],3],cSe=[3,S,jtt,0,[ho,RD],[0,0],2],uSe=[3,S,crt,0,[dt],[0],1],lSe=[3,S,rrt,0,[ZN],[0],1],dSe=[3,S,nrt,0,[Ut],[0],1],pSe=[3,S,urt,0,[ED],[0],1],fSe=[3,S,hrt,0,[Ut],[0],1],mSe=[3,S,lrt,0,[uD],[0],1],gSe=[3,S,$rt,0,[dt],[0],1],hSe=[3,S,krt,0,[],[]],SSe=[3,S,Frt,0,[lp,zdt],[0,2],1],ySe=[3,S,Brt,0,[],[]],ESe=[3,S,Vrt,0,[MD],[64],1],_Se=[3,S,Yrt,0,[ic],[0],1],RSe=[3,S,Xrt,0,[Me],[0],1],CSe=[3,S,nnt,0,[Me,cc],[0,0],2],bSe=[3,S,cnt,0,[Du],[0],1],ASe=[3,S,fnt,0,[Me,up],[0,0],2],xSe=[3,S,_nt,0,[CD],[0],1],TSe=[3,S,Rnt,0,[ihe],[2]],vSe=[3,S,Dnt,0,[ho,pc,Cge],[0,0,0]],DSe=[3,S,Int,0,[Me],[0],1],ISe=[3,S,Ynt,0,[ac],[0],1],wSe=[3,S,Jnt,0,[],[]],PSe=[3,S,Unt,0,[Me,up],[0,0],2],OSe=[3,S,Lnt,0,[dt,kD],[0,0],1],$Se=[3,S,rot,0,[dt],[0],1],LD=[3,S,Gtt,0,[ED,ap,pge,ige,cD,bD,gh,AD,Mr],[0,0,0,0,0,64,0,()=>Ch,128]],ND=[3,S,Xtt,0,[Ut,ap,cD,Hge,age,fc,Mr],[0,0,0,0,()=>D3,0,128]],D3=[3,S,Ztt,0,[edt],[0],1],FD=[3,S,Xnt,0,[Ut,ap,Nft,E3,g3,Mr,n3,kr,rhe],[0,0,64,0,0,128,128,0,0]],kSe=[3,S,Nnt,0,[fpt,egt,o3,Imt,Xpt,Zpt],[0,0,0,64,1,1],3],MSe=[3,S,ztt,0,[RD,ho,sD,Q],[0,0,64,0],1],LSe=[3,S,Vtt,0,[Tlt,Q],[()=>ogt,0]],NSe=[3,S,Ytt,0,[E3,Hpt,Zft,Ylt,Q,Bt],[0,64,64,64,0,1]],FSe=[3,S,Jtt,0,[Ult,Q],[()=>lgt,0]],BSe=[3,S,drt,0,[Q,Bt],[0,1]],USe=[3,S,prt,0,[ldt,Q],[()=>pgt,0]],GSe=[3,S,ort,0,[Q,Bt],[0,1]],qSe=[3,S,srt,0,[Klt,Q],[()=>fgt,0]],HSe=[3,S,Srt,0,[Q,Bt],[0,1]],jSe=[3,S,yrt,0,[ndt,Q],[()=>ggt,0]],zSe=[3,S,frt,0,[Snt,Q,Bt],[0,0,1]],VSe=[3,S,mrt,0,[yge,Q],[()=>hgt,0]],WSe=[3,S,Trt,0,[PD,omt,Q,Bt],[0,0,0,1]],KSe=[3,S,vrt,0,[Tdt,Q],[()=>Sgt,0]],QSe=[3,S,Irt,0,[as,Jdt,Q],[64,64,0],1],YSe=[3,S,wrt,0,[Ldt,Q],[()=>ygt,0]],JSe=[3,S,qrt,0,[vu,klt,Bt,Q],[0,64,1,0],1],XSe=[3,S,Hrt,0,[hD,vu,Ydt,Q],[0,0,()=>Rgt,0]],ZSe=[3,S,jrt,0,[vu,a3,hD,Bt,Q],[0,0,0,1,0]],e0e=[3,S,zrt,0,[upt,Q],[()=>Cgt,0]],t0e=[3,S,Mrt,0,[as,Q],[64,0],1],r0e=[3,S,Lrt,0,[rpt,Q],[()=>bgt,0]],n0e=[3,S,Zrt,0,[sD,Tpt,d3,Q,Bt,i3,pp,as],[64,0,0,0,1,2,0,64]],o0e=[3,S,ent,0,[Nge,Q],[()=>Dgt,0]],s0e=[3,S,ont,0,[Me,dt,f3,dft,ddt,Q,Bt],[0,0,0,0,2,0,1]],i0e=[3,S,snt,0,[Bpt,Q],[()=>Pgt,0]],a0e=[3,S,unt,0,[qpt,uc,Q],[0,1,0]],c0e=[3,S,lnt,0,[jpt,Q],[()=>Ogt,0]],u0e=[3,S,mnt,0,[Me,Dge,Q,Bt,Uge,Gge],[0,0,0,1,0,0]],l0e=[3,S,gnt,0,[Wpt,Q],[()=>kgt,0]],d0e=[3,S,xnt,0,[Me,kr,uc,Q,cs],[0,0,1,0,0]],p0e=[3,S,Tnt,0,[wft,Q],[()=>Bgt,0]],f0e=[3,S,Cnt,0,[cs,kft,uc,Q],[0,0,1,0]],m0e=[3,S,bnt,0,[$ft,Q],[()=>Fgt,0]],g0e=[3,S,wnt,0,[Q,Bt,pc,zge],[0,1,0,0]],h0e=[3,S,Pnt,0,[Kft,Q],[()=>qgt,0]],S0e=[3,S,Gnt,0,[Me,Dge,Q,Bt],[0,0,0,1],1],y0e=[3,S,qnt,0,[cmt,Q],[()=>Qgt,0]],I3=[3,S,not,0,[uD,ahe,fc,XN,ap,Hn],[0,0,0,0,0,1]],fp=[3,S,Ktt,0,[nmt,Upt],[()=>S_e,()=>Zye]],E0e=[3,S,Krt,0,[Me,Kge],[0,0]],_0e=[3,S,jnt,0,[ac],[0],1],R0e=[3,S,znt,0,[ac],[0]],C0e=[3,S,iot,0,[dpt,Plt],[128,128]],b0e=[3,S,aot,0,[PD,che,Me,s3,C3,cp,dge,kr,Sdt],[0,0,0,1,1,0,0,()=>x0e,()=>A0e]],A0e=[3,S,cot,0,[Hn,Glt],[1,1]],x0e=[3,S,uot,0,[zlt,je],[0,0]],T0e=[3,S,pot,0,[dt,Ndt,Npt,kdt,Ept,Rh,Xdt],[0,0,1,1,1,0,0]],v0e=[3,S,dot,0,[udt],[21]],D0e=[3,S,mot,0,[cc,_h,je,c3,ydt],[0,1,0,1,0]],I0e=[3,S,got,0,[Me,dt,m3,f3,ID,mD,yi,Q,Bt,the,lpt,OD],[0,0,64,0,1,1,0,0,1,2,2,2]],w0e=[3,S,hot,0,[vge,lmt,Q],[()=>Egt,()=>Wgt,0]],P0e=[3,S,Dot,0,[dt],[0],1],O0e=[3,S,Iot,0,[dt,Ki,xn],[0,0,1]],$0e=[3,S,bot,0,[ZN],[0],1],k0e=[3,S,Aot,0,[Wge],[()=>k3]],M0e=[3,S,xot,0,[Ut],[0],1],L0e=[3,S,Tot,0,[uge],[()=>ND]],N0e=[3,S,wot,0,[ED],[0],1],F0e=[3,S,Pot,0,[hge],[()=>LD]],B0e=[3,S,$ot,0,[Ut],[0],1],U0e=[3,S,kot,0,[gge],[()=>FD]],G0e=[3,S,Lot,0,[lp],[0],1],q0e=[3,S,Not,0,[lp,yD,SD,Zdt],[0,0,0,()=>lRe]],H0e=[3,S,Got,0,[ic],[0],1],j0e=[3,S,qot,0,[e3,_D,lD,yi,Zme,go,oge,Fge,aD],[0,64,0,0,0,0,1,1,1]],z0e=[3,S,jot,0,[cc,Me,dt,ID,mD,Q,Bt,the,OD],[0,0,0,1,1,0,1,2,2],1],V0e=[3,S,zot,0,[vge,ift,sft],[()=>Lgt,0,0]],W0e=[3,S,Wot,0,[fge,rdt],[0,0],2],K0e=[3,S,Kot,0,[Rpt],[()=>iRe]],Q0e=[3,S,Yot,0,[Me,Kmt,dt],[0,1,0]],Y0e=[3,S,Jot,0,[xpt],[()=>vgt]],J0e=[3,S,Zot,0,[Opt,OD],[0,2],1],X0e=[3,S,tst,0,[Gdt],[[()=>uRe,0]]],Z0e=[3,S,nst,0,[Mpt,OD],[0,2],1],eye=[3,S,ost,0,[kpt],[128]],tye=[3,S,ist,0,[Du],[0],1],rye=[3,S,ast,0,[Du,h3,is,_3,Xge,xn,go],[0,0,0,0,1,1,0]],nye=[3,S,ust,0,[lc,Q,Qpt],[0,0,1],1],oye=[3,S,lst,0,[cs,Lft,Omt,kr,Edt,Q],[0,()=>Ugt,()=>l_e,0,0,0]],sye=[3,S,fst,0,[ac,ID,mD,bdt,uc,Q],[0,1,1,64,1,0],3],iye=[3,S,mst,0,[Ut,yh,Fmt,Q],[0,0,()=>eht,0]],aye=[3,S,gst,0,[ac],[0],1],cye=[3,S,hst,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],uye=[3,S,yst,0,[],[]],lye=[3,S,Est,0,[y3,xn],[0,1]],dye=[3,S,Rst,0,[dt],[0],1],pye=[3,S,Cst,0,[dt,Hn,Ppt,R3],[0,1,1,()=>L3]],fye=[3,S,Eot,0,[rft,$r],[0,0],1],mye=[3,S,Mot,0,[dp,$D],[0,0]],gye=[3,S,bst,0,[vu,hD,a3,Oge,kge,$ge,Hn,xn,dD],[0,0,0,0,()=>P3,()=>w3,1,1,0]],hye=[3,S,Ast,0,[$lt,kr,dD],[0,0,0],2],w3=[3,S,vst,0,[amt,gdt],[1,1]],P3=[3,S,Mst,0,[Mlt],[1]],O3=[3,S,Ost,0,[dt,zpt,Ki,ho,$r],[0,1,0,0,0]],Sye=[3,S,Ist,0,[_h,je],[1,0],2],yye=[3,S,Fst,0,[lp,yD,SD],[0,0,0]],Eye=[3,S,qst,0,[Wdt,sD,i3,pp,d3,mge,Q,Bt],[0,64,2,0,0,()=>sRe,0,1],1],_ye=[3,S,Hst,0,[Alt,Q],[()=>igt,0]],Rye=[3,S,jst,0,[ic,Smt,Bt,Q],[0,0,1,0]],Cye=[3,S,zst,0,[Ilt,Q],[()=>cgt,0]],bye=[3,S,sit,0,[tpt,yD,SD],[0,0,0]],Aye=[3,S,iit,0,[apt],[()=>xgt]],xye=[3,S,cit,0,[Bdt,Bt,Q],[0,1,0]],Tye=[3,S,uit,0,[Slt,Q],[()=>ugt,0]],vye=[3,S,pit,0,[lc,Q,uc],[0,0,1],1],Dye=[3,S,fit,0,[as,Q],[64,0]],Iye=[3,S,mit,0,[d3,pp,i3,sD,Q,Bt,mge,Fdt,Dpt],[0,0,2,64,0,1,()=>sRe,64,()=>Xgt]],wye=[3,S,git,0,[Nge,Q],[()=>Igt,0]],Pye=[3,S,Ait,0,[uc,Q,mc,DD],[1,0,0,0]],Oye=[3,S,xit,0,[Q,gmt],[0,()=>Vgt]],$ye=[3,S,Rit,0,[Pge,uc,Q],[0,1,0],1],kye=[3,S,Cit,0,[Pmt,Q],[()=>jgt,0]],Mye=[3,S,yit,0,[dt,kD,Q,uc],[0,0,0,1]],Lye=[3,S,Eit,0,[smt,Q],[()=>Jgt,0]],Nye=[3,S,Pit,0,[pc],[0],1],Fye=[3,S,Oit,0,[Mr],[128]],Bye=[3,S,kit,0,[Me],[0],1],Uye=[3,S,Mit,0,[Mr],[128]],Gye=[3,S,Lit,0,[$r,dp,Zmt,wD,jdt,$dt],[0,0,0,0,2,0],2],qye=[3,S,Nit,0,[cc,dt,je,_h,c3],[0,0,0,1,1]],Hye=[3,S,Fit,0,[wmt],[2]],jye=[3,S,Uit,0,[Hft,umt,as,m3,Bge,Mge],[0,0,64,64,64,0]],zye=[3,S,Git,0,[dmt,hmt],[()=>Hye,()=>Tgt]],Vye=[3,S,Wst,0,[_h,je],[1,0]],Wye=[3,S,Yst,0,[Cpt,bpt],[0,()=>$3]],$3=[3,S,Jst,0,[Rh,Idt,Ige],[0,()=>$3,()=>iRe]],Kye=[3,S,Xst,0,[Me,Hn,Qge,Kpt,ap,Zge,go,Zlt,opt,pp,l3,t3,rge],[0,1,1,1,0,1,0,0,64,0,0,2,2]],Qye=[3,S,Zst,0,[Ut,Ift],[0,1]],Yye=[3,S,tit,0,[Me,l3,pp],[0,0,0]],Jye=[3,S,hit,0,[cc,Hn,Mdt,_pt,Ipt,Jmt,ap,Zge],[0,1,1,1,1,0,0,1]],Xye=[3,S,Dit,0,[Du,h3,is,Nmt,Fft,Xge,xn,go],[0,0,0,64,1,1,1,0]],Zye=[3,S,Iit,0,[qmt,fc,is,go,Mr],[0,0,0,0,128],2],eEe=[3,S,Vst,0,[MD],[64],1],tEe=[3,S,Hit,0,[up,yi,qge,Hn,Me,iD,gD,Age],[0,0,()=>aRe,1,0,2,0,64]],rEe=[3,S,zit,0,[Rge,_ge,Ddt],[1,0,128]],nEe=[3,S,Jit,0,[Uge,Gge,tft,o3,pdt,Xmt],[0,0,0,1,128,0],3],oEe=[3,S,Kit,0,[$r,wD,hh],[0,0,2],2],sEe=[3,S,Wit,0,[Tu],[()=>Mgt],1],iEe=[3,S,rat,0,[ylt,Xme,Clt,kr],[0,0,0,()=>Qi]],aEe=[3,S,nat,0,[Nlt,Llt,kr],[0,0,()=>Qi]],cEe=[3,S,oat,0,[ho,kr],[0,()=>Qi]],uEe=[3,S,sat,0,[fge,kr],[0,()=>Qi]],lEe=[3,S,iat,0,[ho,kr],[0,()=>Qi]],dEe=[3,S,aat,0,[r3,wlt,Vlt,rgt,Rdt,cft,XN,$pt],[()=>uEe,()=>iEe,()=>aEe,()=>gEe,()=>lEe,()=>fEe,()=>cEe,()=>pEe]],pEe=[3,S,cat,0,[ho,kr],[0,()=>Qi]],fEe=[3,S,uat,0,[ho,kr],[0,()=>Qi]],mEe=[3,S,lat,0,[tdt,cdt,Gft,ppt,Xme],[0,64,1,0,0],3],Qi=[3,S,dat,0,[kr,pmt],[0,0]],gEe=[3,S,pat,0,[ngt,kr],[0,()=>Qi]],hEe=[3,S,eat,0,[_h,je,c3],[1,0,1]],SEe=[3,S,Eat,0,[$r],[0]],yEe=[3,S,Hat,0,[$r,cp],[0,0]],EEe=[3,S,jat,0,[$r,cp,gh,gpt,mpt,aft,hh],[0,0,0,0,0,0,2]],_Ee=[3,S,Xat,0,[$r],[0]],REe=[3,S,rct,0,[$r],[0]],CEe=[3,S,hct,0,[Adt,mft,$r,eft],[0,0,0,0],2],bEe=[3,S,_ct,0,[$r],[0]],AEe=[3,S,Rct,0,[$r],[0]],xEe=[3,S,gct,0,[idt,ept,jmt,Odt,cpt],[1,2,0,129,0]],k3=[3,S,fat,0,[cge],[0]],TEe=[3,S,Cct,0,[blt,Hlt,Wlt,sdt,Jlt,Vdt,Gpt,Spt,Ypt,hft,yft,Eft,Cft,xft,_ft,vft,Dft,jft,Emt,_mt,zmt,kmt,Qmt],[()=>Phe,()=>Hhe,()=>sSe,()=>aSe,()=>ESe,()=>fye,()=>Gye,()=>eEe,()=>sEe,()=>SEe,()=>yEe,()=>EEe,()=>REe,()=>CEe,()=>_Ee,()=>bEe,()=>AEe,()=>g_e,()=>b_e,()=>O_e,()=>z_e,()=>V_e,()=>oRe]],vEe=[3,S,gat,0,[ho,Ki,RD,nhe,ehe],[0,0,0,0,0],3],DEe=[3,S,hat,0,[vlt],[()=>T3]],IEe=[3,S,yat,0,[dt,rge],[0,2],2],wEe=[3,S,Iat,0,[dt,Ki],[0,0],2],PEe=[3,S,wat,0,[dt,Ki,xn],[0,0,1]],OEe=[3,S,bat,0,[ZN,cge],[0,0],2],$Ee=[3,S,Aat,0,[Wge],[()=>k3]],kEe=[3,S,xat,0,[Ut,Hge,age,cD,fc,Mr],[0,0,()=>D3,0,0,128],1],MEe=[3,S,Tat,0,[uge],[()=>ND]],LEe=[3,S,Mat,0,[Ut,pc,g3,Mr,n3],[0,0,0,128,128],3],NEe=[3,S,Lat,0,[gge],[()=>FD]],FEe=[3,S,Pat,0,[uD,XN,qdt],[0,0,2],2],BEe=[3,S,Oat,0,[uD,ahe,fc,Mr],[0,0,0,128],3],UEe=[3,S,$at,0,[cp],[()=>I3]],GEe=[3,S,Bat,0,[dt,Ki],[0,0],2],qEe=[3,S,Uat,0,[spt],[()=>O3]],HEe=[3,S,Gat,0,[lp,Bft,yD],[0,()=>dRe,0],3],jEe=[3,S,qat,0,[lp,SD],[0,0]],zEe=[3,S,Vat,0,[Me,cc,ypt,bmt,Pdt],[0,0,()=>Agt,0,()=>C0e],3],VEe=[3,S,Wat,0,[uft,zft,qft],[0,()=>f_e,()=>p_e]],WEe=[3,S,Qat,0,[dt,t3],[0,2],2],KEe=[3,S,Jat,0,[Me,up,yi,qge,iD,gD,Age],[0,0,0,()=>aRe,2,0,64],4],QEe=[3,S,ect,0,[Ut,dc,cs,CD,p3,Blt,Vge],[0,0,0,0,64,[0,4],()=>cRe],2],YEe=[3,S,tct,0,[CD],[0]],JEe=[3,S,oct,0,[ho,Ki,pc,Cge],[0,0,0,0]],XEe=[3,S,sct,0,[Qft,Yge],[()=>M3,0]],ZEe=[3,S,ict,0,[Me,Qge],[0,1],2],e_e=[3,S,fct,0,[y3],[0],1],t_e=[3,S,mct,0,[y3,xn],[0,1]],r_e=[3,S,dct,0,[Me,up,yi,sge,fc,Ege,iD,gD,bge],[0,0,0,0,0,0,2,0,64],4],n_e=[3,S,uct,0,[dt,kD],[0,0],1],o_e=[3,S,Sct,0,[dt,R3],[0,()=>L3],2],s_e=[3,S,Act,0,[Vpt,je],[()=>i_e,0]],i_e=[3,S,xct,0,[tmt,mdt],[1,1]],a_e=[3,S,Tct,0,[cs,CD,Ut,dc,wpt,p3,Vge],[0,0,0,0,1,64,()=>cRe]],c_e=[3,S,Dct,0,[cs,lc,dc,kr,qlt,Me,Mft,tge,Ymt],[0,0,0,0,1,0,1,1,0]],u_e=[3,S,wct,0,[Ut,o3,is],[0,0,0],1],l_e=[3,S,$ct,0,[Vft,Yft,Cdt,tge,fdt,vpt,Uft],[1,1,1,1,1,1,1]],d_e=[3,S,Nct,0,[Ut,nft],[0,2]],p_e=[3,S,Lct,0,[vdt],[0],1],f_e=[3,S,qct,0,[Gmt,Hmt,_dt],[1,1,1]],m_e=[3,S,Uct,0,[dp,emt,hh],[0,0,2],2],g_e=[3,S,Bct,0,[Tu],[()=>Ggt],1],M3=[3,S,jct,0,[ho,Ki,xn,zge,pc,Yge],[0,0,1,0,0,0]],h_e=[3,S,Fct,0,[Hdt,$D],[0,0]],S_e=[3,S,Wct,0,[lge,fc,lft,go],[0,0,0,0],2],Ch=[3,S,Yct,0,[fmt,hdt],[0,2]],y_e=[3,S,Aut,0,[ac,r3,kr,rhe,Flt,Aft],[0,()=>v3,0,0,1,0]],E_e=[3,S,but,0,[Xlt,odt],[0,0]],__e=[3,S,aut,0,[adt,lge,kr,Sft,dD],[0,0,0,0,0]],R_e=[3,S,mut,0,[yh,Ut,mc,DD,S3,u3,Sh,Eh,mh,Hn,xn],[0,0,0,0,1,0,0,0,()=>fp,1,1]],C_e=[3,S,Zct,0,[cc,rmt],[0,2]],b_e=[3,S,Sut,0,[Tu],[()=>Kgt],1],A_e=[3,S,yut,0,[$r,Sge],[0,0],2],x_e=[3,S,rut,0,[as,m3,Bge,Mge],[64,64,64,0],1],T_e=[3,S,out,0,[Jft],[[()=>pRe,0]]],v_e=[3,S,lut,0,[ID,mD,dc,cs,Me,p3,as,Bt],[1,1,0,0,0,64,64,1],3],D_e=[3,S,dut,0,[lc],[0]],I_e=[3,S,put,0,[lc],[0],1],w_e=[3,S,fut,0,[ihe],[2]],P_e=[3,S,Jct,0,[up,Me,yi,sge,fc,Ege,iD,Hn,gD,bge],[0,0,0,0,0,0,2,1,0,64]],O_e=[3,S,Cut,0,[Tu],[()=>Ygt],1],$_e=[3,S,_ut,0,[$r,s3,C3],[0,0,0],3],k_e=[3,S,sut,0,[$D,Dmt],[1,0]],M_e=[3,S,Kct,0,[l3,Amt,kD,nge],[0,0,0,1]],L_e=[3,S,Put,0,[dp,tgt],[0,64],1],N_e=[3,S,Nut,0,[Me,Mr],[0,128],2],F_e=[3,S,jut,0,[pc,Mr],[0,128],2],B_e=[3,S,Uut,0,[yi,Lge],[0,64],2],U_e=[3,S,Gut,0,[oft],[()=>$gt]],G_e=[3,S,Wut,0,[R3,Lge],[()=>L3,64],2],q_e=[3,S,Kut,0,[Umt],[()=>Zgt]],H_e=[3,S,Fut,0,[Rge,_ge,Mmt],[1,0,0]],j_e=[3,S,$ut,0,[lc,xdt,Wmt,dD,yge],[0,0,1,0,()=>zgt]],z_e=[3,S,zut,0,[MD],[64],1],V_e=[3,S,vut,0,[Tu],[()=>tht],1],W_e=[3,S,Dut,0,[dp,Rh],[0,0],2],K_e=[3,S,slt,0,[Me,Mr],[0,64],2],Q_e=[3,S,llt,0,[pc,Bmt],[0,64],2],Y_e=[3,S,Yut,0,[ic,ege,jge,xmt,mmt,Olt],[0,0,0,0,()=>k_e,2],1],J_e=[3,S,elt,0,[ED,bD,gh,AD],[0,64,0,()=>Ch],1],X_e=[3,S,tlt,0,[],[]],Z_e=[3,S,nlt,0,[ic,wdt,lD,yi,aD],[0,2,0,0,1],2],eRe=[3,S,alt,0,[Du,is,_3,lc,go],[0,0,0,0,0],1],tRe=[3,S,clt,0,[Du,xn],[0,1]],rRe=[3,S,plt,0,[ac,cs,dc,Sh,pD,is,as,Eh,vD,fD,mh,TD,xD,mc],[0,0,0,0,0,0,64,0,1,1,()=>fp,1,1,0],5],nRe=[3,S,flt,0,[yh,Ut,is,cs,dc,as,Sh,Eh,vD,fD,mh,mc,DD,S3,u3,TD,xD,pD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>fp,0,0,1,0,1,1,0,1,1]],oRe=[3,S,Xut,0,[MD],[64],1],Se="unit",ogt=[1,S,ttt,0,()=>T3],sgt=[1,S,Qet,0,()=>whe],igt=[1,S,Zet,0,()=>Ohe],agt=[1,S,Vet,0,()=>d_e],cgt=[1,S,stt,0,()=>$he],ugt=[1,S,zet,0,()=>khe],lgt=[1,S,Ntt,0,()=>Ghe],dgt=[1,S,Utt,0,()=>jhe],sRe=[1,S,Vnt,0,()=>iSe],pgt=[1,S,oot,0,()=>LD],fgt=[1,S,_rt,0,()=>ND],mgt=[1,S,Fnt,0,()=>kSe],ggt=[1,S,Znt,0,()=>FD],hgt=[1,S,sot,0,()=>I3],Sgt=[1,S,lot,0,()=>b0e],ygt=[1,S,fot,0,()=>T0e],Egt=[1,S,Sot,0,()=>D0e],_gt=[1,S,Bot,0,()=>mye],Rgt=[1,S,xst,0,()=>hye],Cgt=[1,S,Dst,0,()=>gye],bgt=[1,S,kst,0,()=>O3],Agt=[1,S,wst,0,()=>Sye],xgt=[1,S,Bst,0,()=>yye],Tgt=[1,S,Bit,0,()=>qye],iRe=[1,S,Qst,0,()=>Wye],vgt=[1,S,eit,0,()=>Qye],Dgt=[1,S,nit,0,()=>Kye],Igt=[1,S,rit,0,()=>Yye],wgt=[1,S,Tit,0,()=>Vye],Pgt=[1,S,vit,0,()=>Jye],Ogt=[1,S,qit,0,()=>Xye],$gt=[1,S,jit,0,()=>rEe],kgt=[1,S,Vit,0,()=>tEe],aRe=[1,S,Xit,0,()=>nEe],Mgt=[1,S,Qit,0,()=>oEe],Lgt=[1,S,tat,0,()=>hEe],Ngt=[1,S,yct,0,()=>xEe],L3=[1,S,bct,0,()=>TEe],Fgt=[1,S,vct,0,()=>a_e],Bgt=[1,S,Ict,0,()=>c_e],cRe=[1,S,Pct,0,()=>u_e],Ugt=[1,S,Oct,0,()=>Hgt],Ggt=[1,S,Gct,0,()=>m_e],qgt=[1,S,zct,0,()=>M3],Hgt=[1,S,Vct,0,()=>h_e],jgt=[1,S,xut,0,()=>y_e],zgt=[1,S,cut,0,()=>__e],Vgt=[1,S,gut,0,()=>R_e],Wgt=[1,S,eut,0,()=>C_e],Kgt=[1,S,Eut,0,()=>A_e],Qgt=[1,S,Xct,0,()=>P_e],Ygt=[1,S,Rut,0,()=>$_e],Jgt=[1,S,Qct,0,()=>M_e],Xgt=[1,S,Out,0,()=>L_e],Zgt=[1,S,Mut,0,()=>H_e],eht=[1,S,kut,0,()=>j_e],tht=[1,S,Iut,0,()=>W_e],uRe=[4,S,est,{[she]:1},[Ige,Qme],[()=>v0e,[()=>b3,0]]],lRe=[4,S,Tst,0,[pft],[()=>dEe]],dRe=[4,S,Mct,0,[fft],[()=>mEe]],pRe=[4,S,nut,{[she]:1},[ymt,vmt,Jme,Yme],[()=>jye,()=>zye,[()=>x3,0],[()=>A3,0]]],fRe=[9,S,Yet,0,()=>Mhe,()=>Se],mRe=[9,S,rtt,0,()=>Lhe,()=>Nhe],gRe=[9,S,ltt,0,()=>Fhe,()=>Se],hRe=[9,S,gtt,0,()=>Bhe,()=>Uhe],SRe=[9,S,itt,0,()=>zhe,()=>Vhe],yRe=[9,S,mtt,0,()=>Whe,()=>Khe],ERe=[9,S,_tt,0,()=>Qhe,()=>Yhe],_Re=[9,S,Rtt,0,()=>Jhe,()=>Xhe],RRe=[9,S,Att,0,()=>Zhe,()=>Se],CRe=[9,S,Ttt,0,()=>eSe,()=>Se],bRe=[9,S,Dtt,0,()=>tSe,()=>rSe],ARe=[9,S,Ptt,0,()=>nSe,()=>oSe],xRe=[9,S,Htt,0,()=>cSe,()=>Se],TRe=[9,S,art,0,()=>uSe,()=>Se],vRe=[9,S,Rrt,0,()=>pSe,()=>Se],DRe=[9,S,ert,0,()=>dSe,()=>Se],IRe=[9,S,trt,0,()=>lSe,()=>Se],wRe=[9,S,grt,0,()=>fSe,()=>Se],PRe=[9,S,Crt,0,()=>mSe,()=>Se],ORe=[9,S,Ort,0,()=>gSe,()=>hSe],$Re=[9,S,Prt,0,()=>SSe,()=>ySe],kRe=[9,S,Qrt,0,()=>_Se,()=>Se],MRe=[9,S,Jrt,0,()=>RSe,()=>Se],LRe=[9,S,rnt,0,()=>CSe,()=>Se],NRe=[9,S,ant,0,()=>bSe,()=>Se],FRe=[9,S,pnt,0,()=>ASe,()=>Se],BRe=[9,S,Ent,0,()=>xSe,()=>TSe],URe=[9,S,vnt,0,()=>vSe,()=>Se],GRe=[9,S,Ont,0,()=>DSe,()=>Se],qRe=[9,S,Qnt,0,()=>ISe,()=>wSe],HRe=[9,S,Wnt,0,()=>PSe,()=>Se],jRe=[9,S,Mnt,0,()=>OSe,()=>Se],zRe=[9,S,eot,0,()=>$Se,()=>Se],VRe=[9,S,Wtt,0,()=>MSe,()=>LSe],WRe=[9,S,Qtt,0,()=>NSe,()=>FSe],KRe=[9,S,brt,0,()=>BSe,()=>USe],QRe=[9,S,irt,0,()=>GSe,()=>qSe],YRe=[9,S,Ert,0,()=>HSe,()=>jSe],JRe=[9,S,Art,0,()=>zSe,()=>VSe],XRe=[9,S,xrt,0,()=>WSe,()=>KSe],ZRe=[9,S,Drt,0,()=>QSe,()=>YSe],eCe=[9,S,Grt,0,()=>JSe,()=>XSe],tCe=[9,S,Urt,0,()=>ZSe,()=>e0e],rCe=[9,S,Nrt,0,()=>t0e,()=>r0e],nCe=[9,S,tnt,0,()=>n0e,()=>o0e],oCe=[9,S,int,0,()=>s0e,()=>i0e],sCe=[9,S,dnt,0,()=>a0e,()=>c0e],iCe=[9,S,hnt,0,()=>u0e,()=>l0e],aCe=[9,S,ynt,0,()=>d0e,()=>p0e],cCe=[9,S,Ant,0,()=>f0e,()=>m0e],uCe=[9,S,$nt,0,()=>g0e,()=>h0e],lCe=[9,S,Knt,0,()=>S0e,()=>y0e],dCe=[9,S,Wrt,0,()=>E0e,()=>Se],pCe=[9,S,Hnt,0,()=>_0e,()=>R0e],fCe=[9,S,yot,0,()=>I0e,()=>w0e],mCe=[9,S,vot,0,()=>P0e,()=>O0e],gCe=[9,S,_ot,0,()=>N0e,()=>F0e],hCe=[9,S,Rot,0,()=>M0e,()=>L0e],SCe=[9,S,Cot,0,()=>$0e,()=>k0e],yCe=[9,S,Oot,0,()=>B0e,()=>U0e],ECe=[9,S,Fot,0,()=>G0e,()=>q0e],_Ce=[9,S,Uot,0,()=>H0e,()=>j0e],RCe=[9,S,Hot,0,()=>z0e,()=>V0e],CCe=[9,S,Vot,0,()=>W0e,()=>K0e],bCe=[9,S,Qot,0,()=>Q0e,()=>Y0e],ACe=[9,S,Xot,{[Tge]:["stream-"]},()=>J0e,()=>X0e],xCe=[9,S,rst,0,()=>Z0e,()=>eye],TCe=[9,S,sst,0,()=>tye,()=>rye],vCe=[9,S,cst,0,()=>nye,()=>oye],DCe=[9,S,dst,0,()=>aye,()=>cye],ICe=[9,S,pst,0,()=>sye,()=>iye],wCe=[9,S,Sst,0,()=>uye,()=>lye],PCe=[9,S,_st,0,()=>dye,()=>pye],OCe=[9,S,Gst,0,()=>Eye,()=>_ye],$Ce=[9,S,Ust,0,()=>Rye,()=>Cye],kCe=[9,S,oit,0,()=>bye,()=>Aye],MCe=[9,S,ait,0,()=>xye,()=>Tye],LCe=[9,S,lit,0,()=>Iye,()=>wye],NCe=[9,S,dit,0,()=>vye,()=>Dye],FCe=[9,S,bit,0,()=>Pye,()=>Oye],BCe=[9,S,_it,0,()=>$ye,()=>kye],UCe=[9,S,Sit,0,()=>Mye,()=>Lye],GCe=[9,S,wit,0,()=>Nye,()=>Fye],qCe=[9,S,$it,0,()=>Bye,()=>Uye],HCe=[9,S,mat,0,()=>vEe,()=>DEe],jCe=[9,S,Sat,0,()=>IEe,()=>Se],zCe=[9,S,Dat,0,()=>wEe,()=>PEe],VCe=[9,S,Rat,0,()=>kEe,()=>MEe],WCe=[9,S,Cat,0,()=>OEe,()=>$Ee],KCe=[9,S,kat,0,()=>LEe,()=>NEe],QCe=[9,S,_at,0,()=>BEe,()=>UEe],YCe=[9,S,vat,0,()=>FEe,()=>Se],JCe=[9,S,Fat,0,()=>GEe,()=>qEe],XCe=[9,S,Nat,0,()=>HEe,()=>jEe],ZCe=[9,S,zat,0,()=>zEe,()=>VEe],ebe=[9,S,Kat,0,()=>WEe,()=>Se],tbe=[9,S,Yat,0,()=>KEe,()=>Se],rbe=[9,S,Zat,0,()=>QEe,()=>YEe],nbe=[9,S,nct,0,()=>JEe,()=>XEe],obe=[9,S,act,0,()=>ZEe,()=>Se],sbe=[9,S,pct,0,()=>e_e,()=>t_e],ibe=[9,S,lct,0,()=>r_e,()=>Se],abe=[9,S,cct,0,()=>n_e,()=>Se],cbe=[9,S,Ect,0,()=>o_e,()=>Se],ube=[9,S,tut,{[Tge]:["stream-"]},()=>x_e,()=>T_e],lbe=[9,S,iut,0,()=>v_e,()=>D_e],dbe=[9,S,hut,0,()=>I_e,()=>w_e],pbe=[9,S,Lut,0,()=>N_e,()=>Se],fbe=[9,S,Hut,0,()=>F_e,()=>Se],mbe=[9,S,But,0,()=>B_e,()=>U_e],gbe=[9,S,Vut,0,()=>G_e,()=>q_e],hbe=[9,S,olt,0,()=>K_e,()=>Se],Sbe=[9,S,ult,0,()=>Q_e,()=>Se],ybe=[9,S,Qut,0,()=>Y_e,()=>Se],Ebe=[9,S,Zut,0,()=>J_e,()=>X_e],_be=[9,S,rlt,0,()=>Z_e,()=>Se],Rbe=[9,S,ilt,0,()=>eRe,()=>tRe],Cbe=[9,S,dlt,0,()=>rRe,()=>nRe],rht=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??bet,base64Encoder:t?.base64Encoder??Cet,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Get,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Pet,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new het}],logger:t?.logger??new LZe,protocol:t?.protocol??vet,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:Ihe,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??Det,urlParser:t?.urlParser??oet,utf8Decoder:t?.utf8Decoder??Ret,utf8Encoder:t?.utf8Encoder??_et}),nht=t=>{NZe(process.version);let e=jZe(t),r=()=>e().then(FZe),n=rht(t);_Ze(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??bu(yet,o),bodyLengthChecker:t?.bodyLengthChecker??Aet,credentialDefaultProvider:t?.credentialDefaultProvider??Eet,defaultUserAgentProvider:t?.defaultUserAgentProvider??RZe({serviceId:n.serviceId,clientVersion:Let.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??ret,maxAttempts:t?.maxAttempts??bu(det,t),region:t?.region??bu(WZe,{...KZe,...o}),requestHandler:Tet.create(t?.requestHandler??r),retryMode:t?.retryMode??bu({...uet,default:async()=>(await r()).retryMode||cet},t),streamCollector:t?.streamCollector??xet,useDualstackEndpoint:t?.useDualstackEndpoint??bu(VZe,o),useFipsEndpoint:t?.useFipsEndpoint??bu(zZe,o),userAgentAppId:t?.userAgentAppId??bu(CZe,o)}},oht=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},sht=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),iht=(t,e)=>{let r=Object.assign(bZe(t),BZe(t),set(t),oht(t));return e.forEach(n=>n.configure(r)),Object.assign(t,AZe(r),UZe(r),iet(r),sht(r))},_t=class extends Vme{config;constructor(...[e]){let r=nht(e||{});super(r),this.initConfig=r;let n=$et(r),o=xZe(n),s=pet(o),i=QZe(s),a=TZe(i),c=eet(a),u=net(c),f=Oet(u),m=iht(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(met(this.config)),this.middlewareStack.use(vZe(this.config)),this.middlewareStack.use(fet(this.config)),this.middlewareStack.use(aet(this.config)),this.middlewareStack.use(DZe(this.config)),this.middlewareStack.use(IZe(this.config)),this.middlewareStack.use(wZe(this.config)),this.middlewareStack.use(PZe(this.config,{httpAuthSchemeParametersProvider:Iet,identityProviderConfigProvider:async y=>new OZe({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use($Ze(this.config))}destroy(){super.destroy()}},P=GZe(ket,"Logs_20140328","CloudWatchLogsClient",tet),O={},$=(t,e,r,n)=>[],pT=class extends P(O,$,"AssociateKmsKey",fRe){},fT=class extends P(O,$,"AssociateSourceToS3TableIntegration",mRe){},mT=class extends P(O,$,"CancelExportTask",gRe){},gT=class extends P(O,$,"CancelImportTask",hRe){},hT=class extends P(O,$,"CreateDelivery",SRe){},ST=class extends P(O,$,"CreateExportTask",yRe){},yT=class extends P(O,$,"CreateImportTask",ERe){},ET=class extends P(O,$,"CreateLogAnomalyDetector",_Re){},_T=class extends P(O,$,"CreateLogGroup",RRe){},RT=class extends P(O,$,"CreateLogStream",CRe){},CT=class extends P(O,$,"CreateLookupTable",bRe){},bT=class extends P(O,$,"CreateScheduledQuery",ARe){},AT=class extends P(O,$,"DeleteAccountPolicy",xRe){},xT=class extends P(O,$,"DeleteDataProtectionPolicy",TRe){},TT=class extends P(O,$,"DeleteDelivery",vRe){},vT=class extends P(O,$,"DeleteDeliveryDestination",DRe){},DT=class extends P(O,$,"DeleteDeliveryDestinationPolicy",IRe){},IT=class extends P(O,$,"DeleteDeliverySource",wRe){},wT=class extends P(O,$,"DeleteDestination",PRe){},PT=class extends P(O,$,"DeleteIndexPolicy",ORe){},OT=class extends P(O,$,"DeleteIntegration",$Re){},$T=class extends P(O,$,"DeleteLogAnomalyDetector",kRe){},kT=class extends P(O,$,"DeleteLogGroup",MRe){},MT=class extends P(O,$,"DeleteLogStream",LRe){},LT=class extends P(O,$,"DeleteLookupTable",NRe){},NT=class extends P(O,$,"DeleteMetricFilter",FRe){},FT=class extends P(O,$,"DeleteQueryDefinition",BRe){},BT=class extends P(O,$,"DeleteResourcePolicy",URe){},UT=class extends P(O,$,"DeleteRetentionPolicy",GRe){},GT=class extends P(O,$,"DeleteScheduledQuery",qRe){},qT=class extends P(O,$,"DeleteSubscriptionFilter",HRe){},HT=class extends P(O,$,"DeleteSyslogConfiguration",jRe){},jT=class extends P(O,$,"DeleteTransformer",zRe){},zT=class extends P(O,$,"DescribeAccountPolicies",VRe){},Yg=class extends P(O,$,"DescribeConfigurationTemplates",WRe){},Jg=class extends P(O,$,"DescribeDeliveries",KRe){},Xg=class extends P(O,$,"DescribeDeliveryDestinations",QRe){},Zg=class extends P(O,$,"DescribeDeliverySources",YRe){},eh=class extends P(O,$,"DescribeDestinations",JRe){},VT=class extends P(O,$,"DescribeExportTasks",XRe){},WT=class extends P(O,$,"DescribeFieldIndexes",ZRe){},KT=class extends P(O,$,"DescribeImportTaskBatches",eCe){},QT=class extends P(O,$,"DescribeImportTasks",tCe){},YT=class extends P(O,$,"DescribeIndexPolicies",rCe){},th=class extends P(O,$,"DescribeLogGroups",nCe){},rh=class extends P(O,$,"DescribeLogStreams",oCe){},JT=class extends P(O,$,"DescribeLookupTables",sCe){},nh=class extends P(O,$,"DescribeMetricFilters",iCe){},XT=class extends P(O,$,"DescribeQueries",aCe){},ZT=class extends P(O,$,"DescribeQueryDefinitions",cCe){},ev=class extends P(O,$,"DescribeResourcePolicies",uCe){},oh=class extends P(O,$,"DescribeSubscriptionFilters",lCe){},tv=class extends P(O,$,"DisassociateKmsKey",dCe){},rv=class extends P(O,$,"DisassociateSourceFromS3TableIntegration",pCe){},sh=class extends P(O,$,"FilterLogEvents",fCe){},nv=class extends P(O,$,"GetDataProtectionPolicy",mCe){},ov=class extends P(O,$,"GetDelivery",gCe){},sv=class extends P(O,$,"GetDeliveryDestination",hCe){},iv=class extends P(O,$,"GetDeliveryDestinationPolicy",SCe){},av=class extends P(O,$,"GetDeliverySource",yCe){},cv=class extends P(O,$,"GetIntegration",ECe){},uv=class extends P(O,$,"GetLogAnomalyDetector",_Ce){},ih=class extends P(O,$,"GetLogEvents",RCe){},lv=class extends P(O,$,"GetLogFields",CCe){},dv=class extends P(O,$,"GetLogGroupFields",bCe){},pv=class extends P(O,$,"GetLogObject",ACe){},fv=class extends P(O,$,"GetLogRecord",xCe){},mv=class extends P(O,$,"GetLookupTable",TCe){},gv=class extends P(O,$,"GetQueryResults",vCe){},hv=class extends P(O,$,"GetScheduledQuery",DCe){},ah=class extends P(O,$,"GetScheduledQueryHistory",ICe){},Sv=class extends P(O,$,"GetStorageTierPolicy",wCe){},yv=class extends P(O,$,"GetTransformer",PCe){},ch=class extends P(O,$,"ListAggregateLogGroupSummaries",OCe){},uh=class extends P(O,$,"ListAnomalies",$Ce){},Ev=class extends P(O,$,"ListIntegrations",kCe){},lh=class extends P(O,$,"ListLogAnomalyDetectors",MCe){},_v=class extends P(O,$,"ListLogGroups",LCe){},dh=class extends P(O,$,"ListLogGroupsForQuery",NCe){},ph=class extends P(O,$,"ListScheduledQueries",FCe){},fh=class extends P(O,$,"ListSourcesForS3TableIntegration",BCe){},Rv=class extends P(O,$,"ListSyslogConfigurations",UCe){},Cv=class extends P(O,$,"ListTagsForResource",GCe){},bv=class extends P(O,$,"ListTagsLogGroup",qCe){},Av=class extends P(O,$,"PutAccountPolicy",HCe){},xv=class extends P(O,$,"PutBearerTokenAuthentication",jCe){},Tv=class extends P(O,$,"PutDataProtectionPolicy",zCe){},vv=class extends P(O,$,"PutDeliveryDestination",VCe){},Dv=class extends P(O,$,"PutDeliveryDestinationPolicy",WCe){},Iv=class extends P(O,$,"PutDeliverySource",KCe){},wv=class extends P(O,$,"PutDestination",QCe){},Pv=class extends P(O,$,"PutDestinationPolicy",YCe){},Ov=class extends P(O,$,"PutIndexPolicy",JCe){},$v=class extends P(O,$,"PutIntegration",XCe){},kv=class extends P(O,$,"PutLogEvents",ZCe){},Mv=class extends P(O,$,"PutLogGroupDeletionProtection",ebe){},Lv=class extends P(O,$,"PutMetricFilter",tbe){},Nv=class extends P(O,$,"PutQueryDefinition",rbe){},Fv=class extends P(O,$,"PutResourcePolicy",nbe){},Bv=class extends P(O,$,"PutRetentionPolicy",obe){},Uv=class extends P(O,$,"PutStorageTierPolicy",sbe){},Gv=class extends P(O,$,"PutSubscriptionFilter",ibe){},qv=class extends P(O,$,"PutSyslogConfiguration",abe){},Hv=class extends P(O,$,"PutTransformer",cbe){},jv=class extends P(O,$,"StartLiveTail",ube){},zv=class extends P(O,$,"StartQuery",lbe){},Vv=class extends P(O,$,"StopQuery",dbe){},Wv=class extends P(O,$,"TagLogGroup",pbe){},Kv=class extends P(O,$,"TagResource",fbe){},Qv=class extends P(O,$,"TestMetricFilter",mbe){},Yv=class extends P(O,$,"TestTransformer",gbe){},Jv=class extends P(O,$,"UntagLogGroup",hbe){},Xv=class extends P(O,$,"UntagResource",Sbe){},Zv=class extends P(O,$,"UpdateAnomaly",ybe){},eD=class extends P(O,$,"UpdateDeliveryConfiguration",Ebe){},tD=class extends P(O,$,"UpdateLogAnomalyDetector",_be){},rD=class extends P(O,$,"UpdateLookupTable",Rbe){},nD=class extends P(O,$,"UpdateScheduledQuery",Cbe){},bbe=Rr(_t,Yg,"nextToken","nextToken","limit"),Abe=Rr(_t,Jg,"nextToken","nextToken","limit"),xbe=Rr(_t,Xg,"nextToken","nextToken","limit"),Tbe=Rr(_t,Zg,"nextToken","nextToken","limit"),vbe=Rr(_t,eh,"nextToken","nextToken","limit"),Dbe=Rr(_t,th,"nextToken","nextToken","limit"),Ibe=Rr(_t,rh,"nextToken","nextToken","limit"),wbe=Rr(_t,nh,"nextToken","nextToken","limit"),Pbe=Rr(_t,oh,"nextToken","nextToken","limit"),Obe=Rr(_t,sh,"nextToken","nextToken","limit"),$be=Rr(_t,ih,"nextToken","nextForwardToken","limit"),kbe=Rr(_t,ah,"nextToken","nextToken","maxResults"),Mbe=Rr(_t,ch,"nextToken","nextToken","limit"),Lbe=Rr(_t,uh,"nextToken","nextToken","limit"),Nbe=Rr(_t,lh,"nextToken","nextToken","limit"),Fbe=Rr(_t,dh,"nextToken","nextToken","maxResults"),Bbe=Rr(_t,ph,"nextToken","nextToken","maxResults"),Ube=Rr(_t,fh,"nextToken","nextToken","maxResults"),aht={AssociateKmsKeyCommand:pT,AssociateSourceToS3TableIntegrationCommand:fT,CancelExportTaskCommand:mT,CancelImportTaskCommand:gT,CreateDeliveryCommand:hT,CreateExportTaskCommand:ST,CreateImportTaskCommand:yT,CreateLogAnomalyDetectorCommand:ET,CreateLogGroupCommand:_T,CreateLogStreamCommand:RT,CreateLookupTableCommand:CT,CreateScheduledQueryCommand:bT,DeleteAccountPolicyCommand:AT,DeleteDataProtectionPolicyCommand:xT,DeleteDeliveryCommand:TT,DeleteDeliveryDestinationCommand:vT,DeleteDeliveryDestinationPolicyCommand:DT,DeleteDeliverySourceCommand:IT,DeleteDestinationCommand:wT,DeleteIndexPolicyCommand:PT,DeleteIntegrationCommand:OT,DeleteLogAnomalyDetectorCommand:$T,DeleteLogGroupCommand:kT,DeleteLogStreamCommand:MT,DeleteLookupTableCommand:LT,DeleteMetricFilterCommand:NT,DeleteQueryDefinitionCommand:FT,DeleteResourcePolicyCommand:BT,DeleteRetentionPolicyCommand:UT,DeleteScheduledQueryCommand:GT,DeleteSubscriptionFilterCommand:qT,DeleteSyslogConfigurationCommand:HT,DeleteTransformerCommand:jT,DescribeAccountPoliciesCommand:zT,DescribeConfigurationTemplatesCommand:Yg,DescribeDeliveriesCommand:Jg,DescribeDeliveryDestinationsCommand:Xg,DescribeDeliverySourcesCommand:Zg,DescribeDestinationsCommand:eh,DescribeExportTasksCommand:VT,DescribeFieldIndexesCommand:WT,DescribeImportTaskBatchesCommand:KT,DescribeImportTasksCommand:QT,DescribeIndexPoliciesCommand:YT,DescribeLogGroupsCommand:th,DescribeLogStreamsCommand:rh,DescribeLookupTablesCommand:JT,DescribeMetricFiltersCommand:nh,DescribeQueriesCommand:XT,DescribeQueryDefinitionsCommand:ZT,DescribeResourcePoliciesCommand:ev,DescribeSubscriptionFiltersCommand:oh,DisassociateKmsKeyCommand:tv,DisassociateSourceFromS3TableIntegrationCommand:rv,FilterLogEventsCommand:sh,GetDataProtectionPolicyCommand:nv,GetDeliveryCommand:ov,GetDeliveryDestinationCommand:sv,GetDeliveryDestinationPolicyCommand:iv,GetDeliverySourceCommand:av,GetIntegrationCommand:cv,GetLogAnomalyDetectorCommand:uv,GetLogEventsCommand:ih,GetLogFieldsCommand:lv,GetLogGroupFieldsCommand:dv,GetLogObjectCommand:pv,GetLogRecordCommand:fv,GetLookupTableCommand:mv,GetQueryResultsCommand:gv,GetScheduledQueryCommand:hv,GetScheduledQueryHistoryCommand:ah,GetStorageTierPolicyCommand:Sv,GetTransformerCommand:yv,ListAggregateLogGroupSummariesCommand:ch,ListAnomaliesCommand:uh,ListIntegrationsCommand:Ev,ListLogAnomalyDetectorsCommand:lh,ListLogGroupsCommand:_v,ListLogGroupsForQueryCommand:dh,ListScheduledQueriesCommand:ph,ListSourcesForS3TableIntegrationCommand:fh,ListSyslogConfigurationsCommand:Rv,ListTagsForResourceCommand:Cv,ListTagsLogGroupCommand:bv,PutAccountPolicyCommand:Av,PutBearerTokenAuthenticationCommand:xv,PutDataProtectionPolicyCommand:Tv,PutDeliveryDestinationCommand:vv,PutDeliveryDestinationPolicyCommand:Dv,PutDeliverySourceCommand:Iv,PutDestinationCommand:wv,PutDestinationPolicyCommand:Pv,PutIndexPolicyCommand:Ov,PutIntegrationCommand:$v,PutLogEventsCommand:kv,PutLogGroupDeletionProtectionCommand:Mv,PutMetricFilterCommand:Lv,PutQueryDefinitionCommand:Nv,PutResourcePolicyCommand:Fv,PutRetentionPolicyCommand:Bv,PutStorageTierPolicyCommand:Uv,PutSubscriptionFilterCommand:Gv,PutSyslogConfigurationCommand:qv,PutTransformerCommand:Hv,StartLiveTailCommand:jv,StartQueryCommand:zv,StopQueryCommand:Vv,TagLogGroupCommand:Wv,TagResourceCommand:Kv,TestMetricFilterCommand:Qv,TestTransformerCommand:Yv,UntagLogGroupCommand:Jv,UntagResourceCommand:Xv,UpdateAnomalyCommand:Zv,UpdateDeliveryConfigurationCommand:eD,UpdateLogAnomalyDetectorCommand:tD,UpdateLookupTableCommand:rD,UpdateScheduledQueryCommand:nD},cht={paginateDescribeConfigurationTemplates:bbe,paginateDescribeDeliveries:Abe,paginateDescribeDeliveryDestinations:xbe,paginateDescribeDeliverySources:Tbe,paginateDescribeDestinations:vbe,paginateDescribeLogGroups:Dbe,paginateDescribeLogStreams:Ibe,paginateDescribeMetricFilters:wbe,paginateDescribeSubscriptionFilters:Pbe,paginateFilterLogEvents:Obe,paginateGetLogEvents:$be,paginateGetScheduledQueryHistory:kbe,paginateListAggregateLogGroupSummaries:Mbe,paginateListAnomalies:Lbe,paginateListLogAnomalyDetectors:Nbe,paginateListLogGroupsForQuery:Fbe,paginateListScheduledQueries:Bbe,paginateListSourcesForS3TableIntegration:Ube},oD=class extends _t{};qZe(aht,oD,{paginators:cht});var uht={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},lht={ALL:"ALL"},dht={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},pht={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},fht={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},mht={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},ght={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},hht={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},Sht={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},yht={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},Eht={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},_ht={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},Rht={DISABLED:"DISABLED",ENABLED:"ENABLED"},Cht={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},bht={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},Aht={RESOURCE_DELETED:"RESOURCE_DELETED"},xht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},Tht={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},vht={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},Dht={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},Iht={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},wht={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},Pht={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},Oht={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},$ht={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},kht={ByLogStream:"ByLogStream",Random:"Random"},Mht={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},Lht={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},Nht={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},Fht={FIRST:"first",LAST:"last"},Bht={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},Uht={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},Ght={OPENSEARCH:"OPENSEARCH"},qht={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},Hht={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},jht={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},zht={V1_1:"V1.1",V1_5:"V1.5"},Vht={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},Wht={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},Kht={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},Qht={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},Yht={VPCE:"VPCE"},Jht={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},Xht={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=zx;p.AccessDeniedException$=dhe;p.AccountPolicy$=T3;p.ActionStatus=dht;p.AddKeyEntry$=whe;p.AddKeys$=Phe;p.AggregateLogGroupSummary$=Ohe;p.Anomaly$=$he;p.AnomalyDetector$=khe;p.AnomalyDetectorStatus=fht;p.AssociateKmsKey$=fRe;p.AssociateKmsKeyCommand=pT;p.AssociateKmsKeyRequest$=Mhe;p.AssociateSourceToS3TableIntegration$=mRe;p.AssociateSourceToS3TableIntegrationCommand=fT;p.AssociateSourceToS3TableIntegrationRequest$=Lhe;p.AssociateSourceToS3TableIntegrationResponse$=Nhe;p.CSV$=sSe;p.CancelExportTask$=gRe;p.CancelExportTaskCommand=mT;p.CancelExportTaskRequest$=Fhe;p.CancelImportTask$=hRe;p.CancelImportTaskCommand=gT;p.CancelImportTaskRequest$=Bhe;p.CancelImportTaskResponse$=Uhe;p.CloudWatchLogs=oD;p.CloudWatchLogsClient=_t;p.CloudWatchLogsServiceException=nt;p.CloudWatchLogsServiceException$=lhe;p.ConfigurationTemplate$=Ghe;p.ConfigurationTemplateDeliveryConfigValues$=qhe;p.ConflictException=eT;p.ConflictException$=phe;p.CopyValue$=Hhe;p.CopyValueEntry$=jhe;p.CreateDelivery$=SRe;p.CreateDeliveryCommand=hT;p.CreateDeliveryRequest$=zhe;p.CreateDeliveryResponse$=Vhe;p.CreateExportTask$=yRe;p.CreateExportTaskCommand=ST;p.CreateExportTaskRequest$=Whe;p.CreateExportTaskResponse$=Khe;p.CreateImportTask$=ERe;p.CreateImportTaskCommand=yT;p.CreateImportTaskRequest$=Qhe;p.CreateImportTaskResponse$=Yhe;p.CreateLogAnomalyDetector$=_Re;p.CreateLogAnomalyDetectorCommand=ET;p.CreateLogAnomalyDetectorRequest$=Jhe;p.CreateLogAnomalyDetectorResponse$=Xhe;p.CreateLogGroup$=RRe;p.CreateLogGroupCommand=_T;p.CreateLogGroupRequest$=Zhe;p.CreateLogStream$=CRe;p.CreateLogStreamCommand=RT;p.CreateLogStreamRequest$=eSe;p.CreateLookupTable$=bRe;p.CreateLookupTableCommand=CT;p.CreateLookupTableRequest$=tSe;p.CreateLookupTableResponse$=rSe;p.CreateScheduledQuery$=ARe;p.CreateScheduledQueryCommand=bT;p.CreateScheduledQueryRequest$=nSe;p.CreateScheduledQueryResponse$=oSe;p.DataAlreadyAcceptedException=oT;p.DataAlreadyAcceptedException$=fhe;p.DataProtectionStatus=Cht;p.DataSource$=v3;p.DataSourceFilter$=iSe;p.DateTimeConverter$=aSe;p.DeleteAccountPolicy$=xRe;p.DeleteAccountPolicyCommand=AT;p.DeleteAccountPolicyRequest$=cSe;p.DeleteDataProtectionPolicy$=TRe;p.DeleteDataProtectionPolicyCommand=xT;p.DeleteDataProtectionPolicyRequest$=uSe;p.DeleteDelivery$=vRe;p.DeleteDeliveryCommand=TT;p.DeleteDeliveryDestination$=DRe;p.DeleteDeliveryDestinationCommand=vT;p.DeleteDeliveryDestinationPolicy$=IRe;p.DeleteDeliveryDestinationPolicyCommand=DT;p.DeleteDeliveryDestinationPolicyRequest$=lSe;p.DeleteDeliveryDestinationRequest$=dSe;p.DeleteDeliveryRequest$=pSe;p.DeleteDeliverySource$=wRe;p.DeleteDeliverySourceCommand=IT;p.DeleteDeliverySourceRequest$=fSe;p.DeleteDestination$=PRe;p.DeleteDestinationCommand=wT;p.DeleteDestinationRequest$=mSe;p.DeleteIndexPolicy$=ORe;p.DeleteIndexPolicyCommand=PT;p.DeleteIndexPolicyRequest$=gSe;p.DeleteIndexPolicyResponse$=hSe;p.DeleteIntegration$=$Re;p.DeleteIntegrationCommand=OT;p.DeleteIntegrationRequest$=SSe;p.DeleteIntegrationResponse$=ySe;p.DeleteKeys$=ESe;p.DeleteLogAnomalyDetector$=kRe;p.DeleteLogAnomalyDetectorCommand=$T;p.DeleteLogAnomalyDetectorRequest$=_Se;p.DeleteLogGroup$=MRe;p.DeleteLogGroupCommand=kT;p.DeleteLogGroupRequest$=RSe;p.DeleteLogStream$=LRe;p.DeleteLogStreamCommand=MT;p.DeleteLogStreamRequest$=CSe;p.DeleteLookupTable$=NRe;p.DeleteLookupTableCommand=LT;p.DeleteLookupTableRequest$=bSe;p.DeleteMetricFilter$=FRe;p.DeleteMetricFilterCommand=NT;p.DeleteMetricFilterRequest$=ASe;p.DeleteQueryDefinition$=BRe;p.DeleteQueryDefinitionCommand=FT;p.DeleteQueryDefinitionRequest$=xSe;p.DeleteQueryDefinitionResponse$=TSe;p.DeleteResourcePolicy$=URe;p.DeleteResourcePolicyCommand=BT;p.DeleteResourcePolicyRequest$=vSe;p.DeleteRetentionPolicy$=GRe;p.DeleteRetentionPolicyCommand=UT;p.DeleteRetentionPolicyRequest$=DSe;p.DeleteScheduledQuery$=qRe;p.DeleteScheduledQueryCommand=GT;p.DeleteScheduledQueryRequest$=ISe;p.DeleteScheduledQueryResponse$=wSe;p.DeleteSubscriptionFilter$=HRe;p.DeleteSubscriptionFilterCommand=qT;p.DeleteSubscriptionFilterRequest$=PSe;p.DeleteSyslogConfiguration$=jRe;p.DeleteSyslogConfigurationCommand=HT;p.DeleteSyslogConfigurationRequest$=OSe;p.DeleteTransformer$=zRe;p.DeleteTransformerCommand=jT;p.DeleteTransformerRequest$=$Se;p.Delivery$=LD;p.DeliveryDestination$=ND;p.DeliveryDestinationConfiguration$=D3;p.DeliveryDestinationType=Sht;p.DeliverySource$=FD;p.DeliverySourceConfigurationSchema$=kSe;p.DeliverySourceConfigurationSchemaValueType=yht;p.DeliverySourceStatus=bht;p.DeliverySourceStatusReason=Aht;p.DescribeAccountPolicies$=VRe;p.DescribeAccountPoliciesCommand=zT;p.DescribeAccountPoliciesRequest$=MSe;p.DescribeAccountPoliciesResponse$=LSe;p.DescribeConfigurationTemplates$=WRe;p.DescribeConfigurationTemplatesCommand=Yg;p.DescribeConfigurationTemplatesRequest$=NSe;p.DescribeConfigurationTemplatesResponse$=FSe;p.DescribeDeliveries$=KRe;p.DescribeDeliveriesCommand=Jg;p.DescribeDeliveriesRequest$=BSe;p.DescribeDeliveriesResponse$=USe;p.DescribeDeliveryDestinations$=QRe;p.DescribeDeliveryDestinationsCommand=Xg;p.DescribeDeliveryDestinationsRequest$=GSe;p.DescribeDeliveryDestinationsResponse$=qSe;p.DescribeDeliverySources$=YRe;p.DescribeDeliverySourcesCommand=Zg;p.DescribeDeliverySourcesRequest$=HSe;p.DescribeDeliverySourcesResponse$=jSe;p.DescribeDestinations$=JRe;p.DescribeDestinationsCommand=eh;p.DescribeDestinationsRequest$=zSe;p.DescribeDestinationsResponse$=VSe;p.DescribeExportTasks$=XRe;p.DescribeExportTasksCommand=VT;p.DescribeExportTasksRequest$=WSe;p.DescribeExportTasksResponse$=KSe;p.DescribeFieldIndexes$=ZRe;p.DescribeFieldIndexesCommand=WT;p.DescribeFieldIndexesRequest$=QSe;p.DescribeFieldIndexesResponse$=YSe;p.DescribeImportTaskBatches$=eCe;p.DescribeImportTaskBatchesCommand=KT;p.DescribeImportTaskBatchesRequest$=JSe;p.DescribeImportTaskBatchesResponse$=XSe;p.DescribeImportTasks$=tCe;p.DescribeImportTasksCommand=QT;p.DescribeImportTasksRequest$=ZSe;p.DescribeImportTasksResponse$=e0e;p.DescribeIndexPolicies$=rCe;p.DescribeIndexPoliciesCommand=YT;p.DescribeIndexPoliciesRequest$=t0e;p.DescribeIndexPoliciesResponse$=r0e;p.DescribeLogGroups$=nCe;p.DescribeLogGroupsCommand=th;p.DescribeLogGroupsRequest$=n0e;p.DescribeLogGroupsResponse$=o0e;p.DescribeLogStreams$=oCe;p.DescribeLogStreamsCommand=rh;p.DescribeLogStreamsRequest$=s0e;p.DescribeLogStreamsResponse$=i0e;p.DescribeLookupTables$=sCe;p.DescribeLookupTablesCommand=JT;p.DescribeLookupTablesRequest$=a0e;p.DescribeLookupTablesResponse$=c0e;p.DescribeMetricFilters$=iCe;p.DescribeMetricFiltersCommand=nh;p.DescribeMetricFiltersRequest$=u0e;p.DescribeMetricFiltersResponse$=l0e;p.DescribeQueries$=aCe;p.DescribeQueriesCommand=XT;p.DescribeQueriesRequest$=d0e;p.DescribeQueriesResponse$=p0e;p.DescribeQueryDefinitions$=cCe;p.DescribeQueryDefinitionsCommand=ZT;p.DescribeQueryDefinitionsRequest$=f0e;p.DescribeQueryDefinitionsResponse$=m0e;p.DescribeResourcePolicies$=uCe;p.DescribeResourcePoliciesCommand=ev;p.DescribeResourcePoliciesRequest$=g0e;p.DescribeResourcePoliciesResponse$=h0e;p.DescribeSubscriptionFilters$=lCe;p.DescribeSubscriptionFiltersCommand=oh;p.DescribeSubscriptionFiltersRequest$=S0e;p.DescribeSubscriptionFiltersResponse$=y0e;p.Destination$=I3;p.DestinationConfiguration$=fp;p.DisassociateKmsKey$=dCe;p.DisassociateKmsKeyCommand=tv;p.DisassociateKmsKeyRequest$=E0e;p.DisassociateSourceFromS3TableIntegration$=pCe;p.DisassociateSourceFromS3TableIntegrationCommand=rv;p.DisassociateSourceFromS3TableIntegrationRequest$=_0e;p.DisassociateSourceFromS3TableIntegrationResponse$=R0e;p.Distribution=kht;p.Entity$=C0e;p.EntityRejectionErrorType=Mht;p.EvaluationFrequency=mht;p.EventSource=Lht;p.ExecutionStatus=Nht;p.ExportTask$=b0e;p.ExportTaskExecutionInfo$=A0e;p.ExportTaskStatus$=x0e;p.ExportTaskStatusCode=xht;p.FieldIndex$=T0e;p.FieldsData$=v0e;p.FilterLogEvents$=fCe;p.FilterLogEventsCommand=sh;p.FilterLogEventsRequest$=I0e;p.FilterLogEventsResponse$=w0e;p.FilteredLogEvent$=D0e;p.FlattenedElement=Fht;p.GetDataProtectionPolicy$=mCe;p.GetDataProtectionPolicyCommand=nv;p.GetDataProtectionPolicyRequest$=P0e;p.GetDataProtectionPolicyResponse$=O0e;p.GetDelivery$=gCe;p.GetDeliveryCommand=ov;p.GetDeliveryDestination$=hCe;p.GetDeliveryDestinationCommand=sv;p.GetDeliveryDestinationPolicy$=SCe;p.GetDeliveryDestinationPolicyCommand=iv;p.GetDeliveryDestinationPolicyRequest$=$0e;p.GetDeliveryDestinationPolicyResponse$=k0e;p.GetDeliveryDestinationRequest$=M0e;p.GetDeliveryDestinationResponse$=L0e;p.GetDeliveryRequest$=N0e;p.GetDeliveryResponse$=F0e;p.GetDeliverySource$=yCe;p.GetDeliverySourceCommand=av;p.GetDeliverySourceRequest$=B0e;p.GetDeliverySourceResponse$=U0e;p.GetIntegration$=ECe;p.GetIntegrationCommand=cv;p.GetIntegrationRequest$=G0e;p.GetIntegrationResponse$=q0e;p.GetLogAnomalyDetector$=_Ce;p.GetLogAnomalyDetectorCommand=uv;p.GetLogAnomalyDetectorRequest$=H0e;p.GetLogAnomalyDetectorResponse$=j0e;p.GetLogEvents$=RCe;p.GetLogEventsCommand=ih;p.GetLogEventsRequest$=z0e;p.GetLogEventsResponse$=V0e;p.GetLogFields$=CCe;p.GetLogFieldsCommand=lv;p.GetLogFieldsRequest$=W0e;p.GetLogFieldsResponse$=K0e;p.GetLogGroupFields$=bCe;p.GetLogGroupFieldsCommand=dv;p.GetLogGroupFieldsRequest$=Q0e;p.GetLogGroupFieldsResponse$=Y0e;p.GetLogObject$=ACe;p.GetLogObjectCommand=pv;p.GetLogObjectRequest$=J0e;p.GetLogObjectResponse$=X0e;p.GetLogObjectResponseStream$=uRe;p.GetLogRecord$=xCe;p.GetLogRecordCommand=fv;p.GetLogRecordRequest$=Z0e;p.GetLogRecordResponse$=eye;p.GetLookupTable$=TCe;p.GetLookupTableCommand=mv;p.GetLookupTableRequest$=tye;p.GetLookupTableResponse$=rye;p.GetQueryResults$=vCe;p.GetQueryResultsCommand=gv;p.GetQueryResultsRequest$=nye;p.GetQueryResultsResponse$=oye;p.GetScheduledQuery$=DCe;p.GetScheduledQueryCommand=hv;p.GetScheduledQueryHistory$=ICe;p.GetScheduledQueryHistoryCommand=ah;p.GetScheduledQueryHistoryRequest$=sye;p.GetScheduledQueryHistoryResponse$=iye;p.GetScheduledQueryRequest$=aye;p.GetScheduledQueryResponse$=cye;p.GetStorageTierPolicy$=wCe;p.GetStorageTierPolicyCommand=Sv;p.GetStorageTierPolicyRequest$=uye;p.GetStorageTierPolicyResponse$=lye;p.GetTransformer$=PCe;p.GetTransformerCommand=yv;p.GetTransformerRequest$=dye;p.GetTransformerResponse$=pye;p.Grok$=fye;p.GroupingIdentifier$=mye;p.Import$=gye;p.ImportBatch$=hye;p.ImportFilter$=w3;p.ImportStatistics$=P3;p.ImportStatus=ght;p.IndexCategory=Tht;p.IndexPolicy$=O3;p.IndexSource=Dht;p.IndexType=vht;p.InheritedProperty=Iht;p.InputLogEvent$=Sye;p.IntegrationDetails$=lRe;p.IntegrationStatus=Uht;p.IntegrationSummary$=yye;p.IntegrationType=Ght;p.InternalServerException=Yx;p.InternalServerException$=mhe;p.InternalStreamingException=sT;p.InternalStreamingException$=b3;p.InvalidOperationException=Zx;p.InvalidOperationException$=ghe;p.InvalidParameterException=Vx;p.InvalidParameterException$=hhe;p.InvalidSequenceTokenException=iT;p.InvalidSequenceTokenException$=She;p.LimitExceededException=rT;p.LimitExceededException$=yhe;p.ListAggregateLogGroupSummaries$=OCe;p.ListAggregateLogGroupSummariesCommand=ch;p.ListAggregateLogGroupSummariesGroupBy=Wht;p.ListAggregateLogGroupSummariesRequest$=Eye;p.ListAggregateLogGroupSummariesResponse$=_ye;p.ListAnomalies$=$Ce;p.ListAnomaliesCommand=uh;p.ListAnomaliesRequest$=Rye;p.ListAnomaliesResponse$=Cye;p.ListIntegrations$=kCe;p.ListIntegrationsCommand=Ev;p.ListIntegrationsRequest$=bye;p.ListIntegrationsResponse$=Aye;p.ListLogAnomalyDetectors$=MCe;p.ListLogAnomalyDetectorsCommand=lh;p.ListLogAnomalyDetectorsRequest$=xye;p.ListLogAnomalyDetectorsResponse$=Tye;p.ListLogGroups$=LCe;p.ListLogGroupsCommand=_v;p.ListLogGroupsForQuery$=NCe;p.ListLogGroupsForQueryCommand=dh;p.ListLogGroupsForQueryRequest$=vye;p.ListLogGroupsForQueryResponse$=Dye;p.ListLogGroupsRequest$=Iye;p.ListLogGroupsResponse$=wye;p.ListScheduledQueries$=FCe;p.ListScheduledQueriesCommand=ph;p.ListScheduledQueriesRequest$=Pye;p.ListScheduledQueriesResponse$=Oye;p.ListSourcesForS3TableIntegration$=BCe;p.ListSourcesForS3TableIntegrationCommand=fh;p.ListSourcesForS3TableIntegrationRequest$=$ye;p.ListSourcesForS3TableIntegrationResponse$=kye;p.ListSyslogConfigurations$=UCe;p.ListSyslogConfigurationsCommand=Rv;p.ListSyslogConfigurationsRequest$=Mye;p.ListSyslogConfigurationsResponse$=Lye;p.ListTagsForResource$=GCe;p.ListTagsForResourceCommand=Cv;p.ListTagsForResourceRequest$=Nye;p.ListTagsForResourceResponse$=Fye;p.ListTagsLogGroup$=qCe;p.ListTagsLogGroupCommand=bv;p.ListTagsLogGroupRequest$=Bye;p.ListTagsLogGroupResponse$=Uye;p.ListToMap$=Gye;p.LiveTailSessionLogEvent$=qye;p.LiveTailSessionMetadata$=Hye;p.LiveTailSessionStart$=jye;p.LiveTailSessionUpdate$=zye;p.LogEvent$=Vye;p.LogFieldType$=$3;p.LogFieldsListItem$=Wye;p.LogGroup$=Kye;p.LogGroupClass=Eht;p.LogGroupField$=Qye;p.LogGroupSummary$=Yye;p.LogStream$=Jye;p.LookupTable$=Xye;p.LookupTableConfiguration$=Zye;p.LowerCaseString$=eEe;p.MalformedQueryException=lT;p.MalformedQueryException$=Ehe;p.MetricFilter$=tEe;p.MetricFilterMatchRecord$=rEe;p.MetricTransformation$=nEe;p.MoveKeyEntry$=oEe;p.MoveKeys$=sEe;p.OCSFVersion=zht;p.OpenSearchApplication$=iEe;p.OpenSearchCollection$=aEe;p.OpenSearchDataAccessPolicy$=cEe;p.OpenSearchDataSource$=uEe;p.OpenSearchEncryptionPolicy$=lEe;p.OpenSearchIntegrationDetails$=dEe;p.OpenSearchLifecyclePolicy$=pEe;p.OpenSearchNetworkPolicy$=fEe;p.OpenSearchResourceConfig$=mEe;p.OpenSearchResourceStatus$=Qi;p.OpenSearchResourceStatusType=Bht;p.OpenSearchWorkspace$=gEe;p.OperationAbortedException=Wx;p.OperationAbortedException$=_he;p.OrderBy=wht;p.OutputFormat=hht;p.OutputLogEvent$=hEe;p.ParseCloudfront$=SEe;p.ParseJSON$=yEe;p.ParseKeyValue$=EEe;p.ParsePostgres$=_Ee;p.ParseRoute53$=REe;p.ParseToOCSF$=CEe;p.ParseVPC$=bEe;p.ParseWAF$=AEe;p.PatternToken$=xEe;p.Policy$=k3;p.PolicyScope=$ht;p.PolicyType=uht;p.Processor$=TEe;p.PutAccountPolicy$=HCe;p.PutAccountPolicyCommand=Av;p.PutAccountPolicyRequest$=vEe;p.PutAccountPolicyResponse$=DEe;p.PutBearerTokenAuthentication$=jCe;p.PutBearerTokenAuthenticationCommand=xv;p.PutBearerTokenAuthenticationRequest$=IEe;p.PutDataProtectionPolicy$=zCe;p.PutDataProtectionPolicyCommand=Tv;p.PutDataProtectionPolicyRequest$=wEe;p.PutDataProtectionPolicyResponse$=PEe;p.PutDeliveryDestination$=VCe;p.PutDeliveryDestinationCommand=vv;p.PutDeliveryDestinationPolicy$=WCe;p.PutDeliveryDestinationPolicyCommand=Dv;p.PutDeliveryDestinationPolicyRequest$=OEe;p.PutDeliveryDestinationPolicyResponse$=$Ee;p.PutDeliveryDestinationRequest$=kEe;p.PutDeliveryDestinationResponse$=MEe;p.PutDeliverySource$=KCe;p.PutDeliverySourceCommand=Iv;p.PutDeliverySourceRequest$=LEe;p.PutDeliverySourceResponse$=NEe;p.PutDestination$=QCe;p.PutDestinationCommand=wv;p.PutDestinationPolicy$=YCe;p.PutDestinationPolicyCommand=Pv;p.PutDestinationPolicyRequest$=FEe;p.PutDestinationRequest$=BEe;p.PutDestinationResponse$=UEe;p.PutIndexPolicy$=JCe;p.PutIndexPolicyCommand=Ov;p.PutIndexPolicyRequest$=GEe;p.PutIndexPolicyResponse$=qEe;p.PutIntegration$=XCe;p.PutIntegrationCommand=$v;p.PutIntegrationRequest$=HEe;p.PutIntegrationResponse$=jEe;p.PutLogEvents$=ZCe;p.PutLogEventsCommand=kv;p.PutLogEventsRequest$=zEe;p.PutLogEventsResponse$=VEe;p.PutLogGroupDeletionProtection$=ebe;p.PutLogGroupDeletionProtectionCommand=Mv;p.PutLogGroupDeletionProtectionRequest$=WEe;p.PutMetricFilter$=tbe;p.PutMetricFilterCommand=Lv;p.PutMetricFilterRequest$=KEe;p.PutQueryDefinition$=rbe;p.PutQueryDefinitionCommand=Nv;p.PutQueryDefinitionRequest$=QEe;p.PutQueryDefinitionResponse$=YEe;p.PutResourcePolicy$=nbe;p.PutResourcePolicyCommand=Fv;p.PutResourcePolicyRequest$=JEe;p.PutResourcePolicyResponse$=XEe;p.PutRetentionPolicy$=obe;p.PutRetentionPolicyCommand=Bv;p.PutRetentionPolicyRequest$=ZEe;p.PutStorageTierPolicy$=sbe;p.PutStorageTierPolicyCommand=Uv;p.PutStorageTierPolicyRequest$=e_e;p.PutStorageTierPolicyResponse$=t_e;p.PutSubscriptionFilter$=ibe;p.PutSubscriptionFilterCommand=Gv;p.PutSubscriptionFilterRequest$=r_e;p.PutSyslogConfiguration$=abe;p.PutSyslogConfigurationCommand=qv;p.PutSyslogConfigurationRequest$=n_e;p.PutTransformer$=cbe;p.PutTransformerCommand=Hv;p.PutTransformerRequest$=o_e;p.QueryCompileError$=s_e;p.QueryCompileErrorLocation$=i_e;p.QueryDefinition$=a_e;p.QueryInfo$=c_e;p.QueryLanguage=_ht;p.QueryParameter$=u_e;p.QueryStatistics$=l_e;p.QueryStatus=Oht;p.RecordField$=d_e;p.RejectedEntityInfo$=p_e;p.RejectedLogEventsInfo$=f_e;p.RenameKeyEntry$=m_e;p.RenameKeys$=g_e;p.ResourceAlreadyExistsException=nT;p.ResourceAlreadyExistsException$=Rhe;p.ResourceConfig$=dRe;p.ResourceNotFoundException=Kx;p.ResourceNotFoundException$=Che;p.ResourcePolicy$=M3;p.ResultField$=h_e;p.S3Configuration$=S_e;p.S3DeliveryConfiguration$=Ch;p.S3TableIntegrationSource$=y_e;p.S3TableIntegrationSourceStatus=Qht;p.S3TablesIntegration$=E_e;p.ScheduleType=qht;p.ScheduledQueryDestination$=__e;p.ScheduledQueryDestinationType=Hht;p.ScheduledQueryState=Rht;p.ScheduledQuerySummary$=R_e;p.Scope=lht;p.SearchedLogStream$=C_e;p.ServiceQuotaExceededException=tT;p.ServiceQuotaExceededException$=bhe;p.ServiceUnavailableException=Qx;p.ServiceUnavailableException$=Ahe;p.SessionStreamingException=cT;p.SessionStreamingException$=A3;p.SessionTimeoutException=uT;p.SessionTimeoutException$=x3;p.SplitString$=b_e;p.SplitStringEntry$=A_e;p.StandardUnit=Pht;p.StartLiveTail$=ube;p.StartLiveTailCommand=jv;p.StartLiveTailRequest$=x_e;p.StartLiveTailResponse$=T_e;p.StartLiveTailResponseStream$=pRe;p.StartQuery$=lbe;p.StartQueryCommand=zv;p.StartQueryRequest$=v_e;p.StartQueryResponse$=D_e;p.State=pht;p.StopQuery$=dbe;p.StopQueryCommand=Vv;p.StopQueryRequest$=I_e;p.StopQueryResponse$=w_e;p.StorageTier=jht;p.SubscriptionFilter$=P_e;p.SubstituteString$=O_e;p.SubstituteStringEntry$=$_e;p.SuppressionPeriod$=k_e;p.SuppressionState=Kht;p.SuppressionType=Xht;p.SuppressionUnit=Jht;p.SyslogConfiguration$=M_e;p.SyslogSourceType=Yht;p.TagFilter$=L_e;p.TagLogGroup$=pbe;p.TagLogGroupCommand=Wv;p.TagLogGroupRequest$=N_e;p.TagResource$=fbe;p.TagResourceCommand=Kv;p.TagResourceRequest$=F_e;p.TestMetricFilter$=mbe;p.TestMetricFilterCommand=Qv;p.TestMetricFilterRequest$=B_e;p.TestMetricFilterResponse$=U_e;p.TestTransformer$=gbe;p.TestTransformerCommand=Yv;p.TestTransformerRequest$=G_e;p.TestTransformerResponse$=q_e;p.ThrottlingException=Jx;p.ThrottlingException$=xhe;p.TooManyTagsException=dT;p.TooManyTagsException$=The;p.TransformedLogRecord$=H_e;p.TriggerHistoryRecord$=j_e;p.TrimString$=z_e;p.Type=Vht;p.TypeConverter$=V_e;p.TypeConverterEntry$=W_e;p.UnrecognizedClientException=aT;p.UnrecognizedClientException$=vhe;p.UntagLogGroup$=hbe;p.UntagLogGroupCommand=Jv;p.UntagLogGroupRequest$=K_e;p.UntagResource$=Sbe;p.UntagResourceCommand=Xv;p.UntagResourceRequest$=Q_e;p.UpdateAnomaly$=ybe;p.UpdateAnomalyCommand=Zv;p.UpdateAnomalyRequest$=Y_e;p.UpdateDeliveryConfiguration$=Ebe;p.UpdateDeliveryConfigurationCommand=eD;p.UpdateDeliveryConfigurationRequest$=J_e;p.UpdateDeliveryConfigurationResponse$=X_e;p.UpdateLogAnomalyDetector$=_be;p.UpdateLogAnomalyDetectorCommand=tD;p.UpdateLogAnomalyDetectorRequest$=Z_e;p.UpdateLookupTable$=Rbe;p.UpdateLookupTableCommand=rD;p.UpdateLookupTableRequest$=eRe;p.UpdateLookupTableResponse$=tRe;p.UpdateScheduledQuery$=Cbe;p.UpdateScheduledQueryCommand=nD;p.UpdateScheduledQueryRequest$=rRe;p.UpdateScheduledQueryResponse$=nRe;p.UpperCaseString$=oRe;p.ValidationException=Xx;p.ValidationException$=Dhe;p.errorTypeRegistries=Ihe;p.paginateDescribeConfigurationTemplates=bbe;p.paginateDescribeDeliveries=Abe;p.paginateDescribeDeliveryDestinations=xbe;p.paginateDescribeDeliverySources=Tbe;p.paginateDescribeDestinations=vbe;p.paginateDescribeLogGroups=Dbe;p.paginateDescribeLogStreams=Ibe;p.paginateDescribeMetricFilters=wbe;p.paginateDescribeSubscriptionFilters=Pbe;p.paginateFilterLogEvents=Obe;p.paginateGetLogEvents=$be;p.paginateGetScheduledQueryHistory=kbe;p.paginateListAggregateLogGroupSummaries=Mbe;p.paginateListAnomalies=Lbe;p.paginateListLogAnomalyDetectors=Nbe;p.paginateListLogGroupsForQuery=Fbe;p.paginateListScheduledQueries=Bbe;p.paginateListSourcesForS3TableIntegration=Ube});var iSt={};Ct(iSt,{handler:()=>sSt});module.exports=F(iSt);var ud=De(vJ()),DJ={delaySeconds:15,attempts:8},IJ=new Map;function wJ(t){let e=IJ.get(t);return e||(e=new ud.CloudWatchClient({region:t}),IJ.set(t,e)),e}async function PJ(t){let e=t.ResourceProperties;if(t.RequestType==="Delete"){let[n,...o]=t.PhysicalResourceId.split(":");return o.length>0&&await wJ(n).send(new ud.DeleteAlarmsCommand({AlarmNames:[o.join(":")]})),{PhysicalResourceId:t.PhysicalResourceId}}let r=new ud.PutMetricAlarmCommand({AlarmName:e.AlarmName,AlarmDescription:e.AlarmDescription,Metrics:JSON.parse(e.Metrics),Threshold:Number(e.Threshold),EvaluationPeriods:Number(e.EvaluationPeriods),ComparisonOperator:e.ComparisonOperator,TreatMissingData:e.TreatMissingData,ActionsEnabled:!1});for(let n=1;;n++)try{await wJ(e.Region).send(r);break}catch(o){if(!/AccessDenied/.test(o.name)||n>=DJ.attempts)throw o;await new Promise(s=>setTimeout(s,DJ.delaySeconds*1e3))}return{PhysicalResourceId:`${e.Region}:${e.AlarmName}`}}var Zd=De($N()),Cpe=new Zd.S3Client({}),bpe="lambda-web-source";async function Ape(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await Rpe("HeadObject on the code bucket",()=>e7e(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await Rpe(`CopyObject from ${n}`,()=>Cpe.send(new Zd.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[bpe]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function e7e(t,e){try{let r=await Cpe.send(new Zd.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[bpe]}}catch(r){if(t7e(r))return;throw r}}async function Rpe(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function t7e(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var Za=De($N());var xpe="Custom::LambdaWebCode",Tpe="Custom::LambdaWebLogGroup",vpe="Custom::LambdaWebEndpointLookup";function Dpe(t){return`Domain.${t}`}var Ipe="Custom::LambdaWebRevisionCleanup";var wpe="Custom::LambdaWebAlarm",Ppe="Custom::LambdaWebCodeBucketCleanup",kN={key:"cdk-lambda-web:empty-on-delete",value:"true"},Ope="Custom::LambdaWebResourcePolicyStatements";var MN=new Za.S3Client({});async function $pe(t){let e=t.ResourceProperties;if(t.RequestType!=="Delete")return{PhysicalResourceId:e.BucketName};let r=t.PhysicalResourceId;try{if(!await r7e(r))return console.log(JSON.stringify({msg:"code bucket kept: not tagged for emptying (rollback of an update that added this resource)",bucket:r})),{PhysicalResourceId:t.PhysicalResourceId};let n={};for(;;){let o=await MN.send(new Za.ListObjectVersionsCommand({Bucket:r,...n})),s=[...o.Versions??[],...o.DeleteMarkers??[]].map(i=>({Key:i.Key,VersionId:i.VersionId}));if(s.length>0){let i=await MN.send(new Za.DeleteObjectsCommand({Bucket:r,Delete:{Objects:s,Quiet:!0}}));if(i.Errors?.length)throw new Error(`could not delete ${i.Errors.length} object version(s) from ${r}: ${i.Errors[0].Code} ${i.Errors[0].Message}`)}if(!o.IsTruncated)break;n={KeyMarker:o.NextKeyMarker,VersionIdMarker:o.NextVersionIdMarker}}}catch(n){if(n.name!=="NoSuchBucket")throw n}return{PhysicalResourceId:t.PhysicalResourceId}}async function r7e(t){try{let{TagSet:e}=await MN.send(new Za.GetBucketTaggingCommand({Bucket:t}));return(e??[]).some(r=>r.Key===kN.key&&r.Value===kN.value)}catch(e){if(e.name==="NoSuchTagSet")return!1;throw e}}var qx=De(Gx());async function Nme(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new qx.LambdaWebClient({region:r}).send(new qx.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[Dpe(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var So=De(Gbe()),qbe=new Map;function N3(t){let e=qbe.get(t);return e||(e=new So.CloudWatchLogsClient({region:t}),qbe.set(t,e)),e}var Hbe={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function zbe(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await eSt(e),{PhysicalResourceId:t.PhysicalResourceId}):(await Zht(e),{PhysicalResourceId:r})}async function Zht(t){let e=N3(t.Region);try{await e.send(new So.CreateLogGroupCommand({logGroupName:t.LogGroupName}))}catch(r){if(r.name!=="ResourceAlreadyExistsException")throw r}t.RetentionInDays==="Infinite"?await e.send(new So.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new So.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function eSt(t){await Hbe.seconds(Number(t.FlushWaitSeconds)),await jbe(t),await Hbe.seconds(Number(t.RecheckWaitSeconds)),await tSt(t)&&await jbe(t)}async function jbe(t){try{await N3(t.Region).send(new So.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function tSt(t){return((await N3(t.Region).send(new So.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).some(r=>r.logGroupName===t.LogGroupName)}var gc=De(Gx()),BD={conflictDelaySeconds:2,conflictAttempts:10,accessDeniedDelaySeconds:15,accessDeniedAttempts:8},Vbe=20480;async function Ybe(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return await Wbe(e.FunctionArn,Kbe(e),[],!1),{PhysicalResourceId:t.PhysicalResourceId};let r=t.RequestType==="Update"?t.OldResourceProperties:void 0,n=r!==void 0&&r.FunctionArn===e.FunctionArn;return await Wbe(e.FunctionArn,n?Kbe(r):new Set,[...e.Policy.Statement],!n),{PhysicalResourceId:`${e.FunctionArn}/statements/${t.LogicalResourceId}`}}async function Wbe(t,e,r,n){let o=new gc.LambdaWebClient({region:t.split(":")[3]}),s=new Map(r.map(i=>[i.Sid,i]));for(let i=1;;i++){let a=await F3(()=>Jbe(o,t)),c=[];for(let f of a?.statements??[]){let m=f.Sid;if(!(m!==void 0&&e.has(m))){if(m!==void 0&&s.has(m)){if(Qbe(f,s.get(m)))continue;throw new Error(`The resource policy of ${t} already has a statement with Sid '${m}' that another stack or tool added. Use another id (addPermission) or remove that statement.`)}m===void 0&&n&&r.some(y=>Qbe(f,nSt(y)))||c.push(f)}}let u=[...c,...r];try{if(u.length===0)a!==void 0&&await F3(()=>o.send(new gc.DeleteResourcePolicyCommand({resourceArn:t,revisionId:a.revisionId})));else{let f=JSON.stringify({Version:"2012-10-17",Statement:u});if(f.length>Vbe)throw new Error(`The resource policy of ${t} would be ${f.length} characters, over Lambda's limit of ${Vbe}`);if(await F3(()=>o.send(new gc.PutResourcePolicyCommand({resourceArn:t,policy:f,revisionId:a?.revisionId}))),a===void 0&&!await rSt(o,t,r))throw oSt("another writer created the policy at the same time")}console.log(JSON.stringify({msg:"resource policy written",functionArn:t,removed:[...e],written:r.map(f=>f.Sid),kept:c.length}));return}catch(f){let m=f.name;if(m==="ResourceNotFoundException"&&r.length===0)return;if(m!=="ConflictException"||i>=BD.conflictAttempts)throw f;await Xbe(BD.conflictDelaySeconds*i)}}}async function Jbe(t,e){try{let r=await t.send(new gc.GetResourcePolicyCommand({resourceArn:e}));return{statements:JSON.parse(r.policy).Statement??[],revisionId:r.revisionId}}catch(r){if(r.name==="ResourceNotFoundException")return;throw r}}async function rSt(t,e,r){let n=new Set((await Jbe(t,e))?.statements.map(o=>o.Sid));return r.every(o=>n.has(o.Sid))}async function F3(t){for(let e=1;;e++)try{return await t()}catch(r){if(!/AccessDenied/.test(r.name)||e>=BD.accessDeniedAttempts)throw r;await Xbe(BD.accessDeniedDelaySeconds)}}function Kbe(t){return new Set((t.Policy?.Statement??[]).map(e=>e.Sid))}function nSt(t){let{Sid:e,...r}=t;return r}function Qbe(t,e){return JSON.stringify(UD(t))===JSON.stringify(UD(e))}function UD(t){if(Array.isArray(t)){let e=t.map(UD).sort((r,n)=>JSON.stringify(r).localeCompare(JSON.stringify(n)));return e.length===1?e[0]:e}return t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(e=>[e,UD(t[e])])):t===void 0?t:String(t)}function oSt(t){return Object.assign(new Error(t),{name:"ConflictException"})}var Xbe=t=>new Promise(e=>setTimeout(e,t*1e3));var mp=De(Gx());async function Zbe(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new mp.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,mp.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new mp.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function sSt(t){switch(t.ResourceType){case xpe:return Ape(t);case Tpe:return zbe(t);case vpe:return Nme(t);case Ipe:return Zbe(t);case wpe:return PJ(t);case Ppe:return $pe(t);case Ope:return Ybe(t);default:if(t.RequestType==="Delete")return console.log(JSON.stringify({msg:"delete of an unknown resource type ignored",resourceType:t.ResourceType})),{PhysicalResourceId:t.PhysicalResourceId};throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});
|