1"use strict";(self.webpackChunkvirtual_guide=self.webpackChunkvirtual_guide||[]).push([[5636],{62:(e,t,r)=>{r.d(t,{E:()=>o});var n=r(42148);const o=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),o=new DataView(r);for(let i=0;i<e.length;i+=4){let t=0,r=0;for(let o=i,c=i+3;o<=c;o++)if("="!==e[o]){if(!(e[o]in n.mh))throw new TypeError("Invalid character ".concat(e[o]," in base64 string."));t|=n.mh[e[o]]<<(c-o)*n._w,r+=n._w}else t>>=n._w;const s=i/4*3;t>>=r%n.kQ;const a=Math.floor(r/n.kQ);for(let e=0;e<a;e++){const r=(a-e-1)*n.kQ;o.setUint8(s+e,(t&255<<r)>>r)}}return new Uint8Array(r)}},4038:(e,t,r)=>{r.d(t,{t:()=>n});const n=e=>{if("function"===typeof e)return e;const t=Promise.resolve(e);return()=>t}},9490:(e,t,r)=>{r.d(t,{G:()=>n});const n=e=>{const t=e.length,r=[];let n,o=!1,i=0;for(let s=0;s<t;++s){const t=e[s];switch(t){case'"':"\\"!==n&&(o=!o);break;case",":o||(r.push(e.slice(i,s)),i=s+1)}n=t}return r.push(e.slice(i)),r.map(e=>{const t=(e=e.trim()).length;return t<2?e:('"'===e[0]&&'"'===e[t-1]&&(e=e.slice(1,t-1)),e.replace(/\\"/g,'"'))})}},10213:(e,t,r)=>{r.d(t,{VW:()=>n});r(76693),r(83777);const n=!1},10562:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(4038),o=r(87293),i=r(42403);const s=e=>{var t;const r=null===(t=e.tls)||void 0===t||t,{endpoint:s,useDualstackEndpoint:a,useFipsEndpoint:c}=e,d=null!=s?async()=>(0,i.a)(await(0,n.t)(s)()):void 0,l=!!s,u=Object.assign(e,{endpoint:d,tls:r,isCustomEndpoint:l,useDualstackEndpoint:(0,n.t)(null!==a&&void 0!==a&&a),useFipsEndpoint:(0,n.t)(null!==c&&void 0!==c&&c)});let h;return u.serviceConfiguredEndpoint=async()=>(e.serviceId&&!h&&(h=(0,o.k)(e.serviceId)),h),u}},10755:(e,t,r)=>{var n;r.d(t,{xA:()=>o,uv:()=>i}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(n||(n={}));const o=e=>Object.assign((e=>{const t=[];for(const r in n){const o=n[r];void 0!==e[o]&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)),i=e=>Object.assign((e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t})(e),(e=>{const t={};return t.retryStrategy=e.retryStrategy(),t})(e))},11475:(e,t,r)=>{r.d(t,{n:()=>i});var n=r(82894),o=r(42148);function i(e){let t;t="string"===typeof e?(0,n.a)(e):e;const r="object"===typeof t&&"number"===typeof t.length,i="object"===typeof t&&"number"===typeof t.byteOffset&&"number"===typeof t.byteLength;if(!r&&!i)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let n=0;n<t.length;n+=3){let e=0,r=0;for(let s=n,a=Math.min(n+3,t.length);s<a;s++)e|=t[s]<<(a-s-1)*o.kQ,r+=o.kQ;const i=Math.ceil(r/o._w);e<<=i*o._w-r;for(let t=1;t<=i;t++){const r=(i-t)*o._w;s+=o.Kc[(e&o.OF<<r)>>r]}s+="==".slice(0,4-i)}return s}},11723:(e,t,r)=>{r.d(t,{P:()=>n});const n=e=>{if("string"===typeof e)return e;if("object"!==typeof e||"number"!==typeof e.byteOffset||"number"!==typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},19075:(e,t,r)=>{r.d(t,{m:()=>n});const n={}},23085:(e,t,r)=>{r.d(t,{a:()=>i,n:()=>s});const n={},o={};for(let a=0;a<256;a++){let e=a.toString(16).toLowerCase();1===e.length&&(e="0".concat(e)),n[a]=e,o[e]=a}function i(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in o))throw new Error("Cannot decode unrecognized sequence ".concat(n," as hexadecimal"));t[r/2]=o[n]}return t}function s(e){let t="";for(let r=0;r<e.byteLength;r++)t+=n[e[r]];return t}},23591:(e,t,r)=>{r.d(t,{N:()=>l});var n=r(86520);class o{constructor(e){(0,n.A)(this,"statusCode",void 0),(0,n.A)(this,"reason",void 0),(0,n.A)(this,"headers",void 0),(0,n.A)(this,"body",void 0),this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers}}const i=e=>encodeURIComponent(e).replace(/[!'()*]/g,s),s=e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase());
1function a(e,t){return new Request(e,t)}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((t,r)=>{e&&setTimeout(()=>{const t=new Error("Request did not complete within ".concat(e," ms"));t.name="TimeoutError",r(t)},e)})}const d={supported:void 0};class l{static create(e){return"function"===typeof(null===e||void 0===e?void 0:e.handle)?e:new l(e)}constructor(e){(0,n.A)(this,"config",void 0),(0,n.A)(this,"configProvider",void 0),"function"===typeof e?this.configProvider=e().then(e=>e||{}):(this.config=null!==e&&void 0!==e?e:{},this.configProvider=Promise.resolve(this.config)),void 0===d.supported&&(d.supported=Boolean("undefined"!==typeof Request&&"keepalive"in a("https://[::1]")))}destroy(){}async handle(e){var t;let{abortSignal:r,requestTimeout:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.config||(this.config=await this.configProvider);const s=null!==n&&void 0!==n?n:this.config.requestTimeout,l=!0===this.config.keepAlive,u=this.config.credentials;if(null!==r&&void 0!==r&&r.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let h=e.path;const f=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=i(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push("".concat(r,"=").concat(i(n[e])));else{let e=r;(n||"string"===typeof n)&&(e+="=".concat(i(n))),t.push(e)}}return t.join("&")}(e.query||{});f&&(h+="?".concat(f)),e.fragment&&(h+="#".concat(e.fragment));let p="";if(null!=e.username||null!=e.password){var m,g;const t=null!==(m=e.username)&&void 0!==m?m:"",r=null!==(g=e.password)&&void 0!==g?g:"";p="".concat(t,":").concat(r,"@")}const{port:y,method:v}=e,w="".concat(e.protocol,"//").concat(p).concat(e.hostname).concat(y?":".concat(y):"").concat(h),b="GET"===v||"HEAD"===v?void 0:e.body,A={body:b,headers:new Headers(e.headers),method:v,credentials:u};null!==(t=this.config)&&void 0!==t&&t.cache&&(A.cache=this.config.cache),b&&(A.duplex="half"),"undefined"!==typeof AbortController&&(A.signal=r),d.supported&&(A.keepalive=l),"function"===typeof this.config.requestInit&&Object.assign(A,this.config.requestInit(e));let S=()=>{};const T=a(w,A),C=[fetch(T).then(e=>{const t=e.headers,r={};for(const n of t.entries())r[n[0]]=n[1];return void 0!=e.body?{response:new o({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new o({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),c(s)];return r&&C.push(new Promise((e,t)=>{const n=()=>{const e=new Error("Request aborted");e.name="AbortError",t(e)};if("function"===typeof r.addEventListener){const e=r;e.addEventListener("abort",n,{once:!0}),S=()=>e.removeEventListener("abort",n)}else r.onabort=n})),Promise.race(C).finally(S)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){var e;return null!==(e=this.config)&&void 0!==e?e:{}}}},24874:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(86520);class o{constructor(e){let{size:t,params:r}=e;(0,n.A)(this,"capacity",void 0),(0,n.A)(this,"data",new Map),(0,n.A)(this,"parameters",[]),this.capacity=null!==t&&void 0!==t?t:50,r&&(this.parameters=r)}get(e,t){const r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:r,done:n}=e.next();if(this.data.delete(r),n||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="";const{parameters:r}=this;if(0===r.length)return!1;for(const o of r){var n;const r=String(null!==(n=e[o])&&void 0!==n?n:"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}},25172:(e,t,r)=>{r.d(t,{G:()=>i});const n=e=>encodeURIComponent(e).replace(/[!'()*]/g,o),o=e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase());function i(e){const t=[];for(let r of Object.keys(e).sort()){const o=e[r];if(r=n(r),Array.isArray(o))for(let e=0,i=o.length;e<i;e++)t.push("".concat(r,"=").concat(n(o[e])));else{let e=r;(o||"string"===typeof o)&&(e+="=".concat(n(o))),t.push(e)}}return t.join("&")}},25382:(e,t,r)=>{r.d(t,{K:()=>i});var n=r(86520),o=r(59020);class i{constructor(e){(0,n.A)(this,"config",void 0),(0,n.A)(this,"middlewareStack",(0,o.o)()),(0,n.A)(this,"initConfig",void 0),(0,n.A)(this,"handlers",void 0),this.config=e}send(e,t,r){const n="function"!==typeof t?t:void 0,o="function"===typeof t?t:r;let i;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then(e=>e.output);i(e).then(e=>o(null,e.output),e=>o(e)).catch(()=>{})}destroy(){var e,t;null===(e=this.config)||void 0===e||null===(e=e.requestHandler)||void 0===e||null===(t=e.destroy)||void 0===t||t.call(e),delete this.handlers}}},25705:(e,t,r)=>{r.d(t,{r:()=>y});const n={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var o=r(89510);var i=r(97519);const s=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,a=/(\d+\.){3}\d+/,c=/\.\./,d=e=>s.test(e)&&!a.test(e)&&!c.test(e),l=e=>{const[t,r,n,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,s=Boolean(i&&r&&n&&o);if(i&&!s)throw new Error("Invalid ARN: ".concat(e," was an invali
1d ARN."));return s},u=(e,t,r)=>{const n=async()=>{var n;const o=null!==(n=r[e])&&void 0!==n?n:r[t];return"function"===typeof o?o():o};return"credentialScope"===e||"CredentialScope"===t?async()=>{var e;const t="function"===typeof r.credentials?await r.credentials():r.credentials;return null!==(e=null===t||void 0===t?void 0:t.credentialScope)&&void 0!==e?e:null===t||void 0===t?void 0:t.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{var e;const t="function"===typeof r.credentials?await r.credentials():r.credentials;return null!==(e=null===t||void 0===t?void 0:t.accountId)&&void 0!==e?e:null===t||void 0===t?void 0:t.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await n();if(e&&"object"===typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return"".concat(t,"//").concat(r).concat(n?":"+n:"").concat(o)}}return e}:n};var h=r(87293),f=r(42403);const p=async(e,t,r)=>{var n;const o={},i=(null===t||void 0===t||null===(n=t.getEndpointParameterInstructions)||void 0===n?void 0:n.call(t))||{};for(const[s,a]of Object.entries(i))switch(a.type){case"staticContextParams":o[s]=a.value;break;case"contextParams":o[s]=e[a.name];break;case"clientContextParams":case"builtInParams":o[s]=await u(a.name,s,r)();break;case"operationContextParams":o[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return 0===Object.keys(i).length&&Object.assign(o,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=(null===e||void 0===e?void 0:e.Bucket)||"";if("string"===typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),l(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!d(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(o),o},m=e=>{let{config:t,instructions:r}=e;return(e,n)=>async s=>{var a,c;t.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const d=await(async(e,t,r,n)=>{if(!r.isCustomEndpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await(0,h.k)(r.serviceId),e&&(r.endpoint=()=>Promise.resolve((0,f.a)(e)),r.isCustomEndpoint=!0)}const o=await p(e,t,r);if("function"!==typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(s.input,{getEndpointParameterInstructions:()=>r},(0,o.A)({},t),n);n.endpointV2=d,n.authSchemes=null===(a=d.properties)||void 0===a?void 0:a.authSchemes;const l=null===(c=n.authSchemes)||void 0===c?void 0:c[0];if(l){var u;n.signing_region=l.signingRegion,n.signing_service=l.signingName;const e=(0,i.u)(n),t=null===e||void 0===e||null===(u=e.selectedHttpAuthScheme)||void 0===u?void 0:u.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return e((0,o.A)({},s))}},g={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:n.name},y=(e,t)=>({applyToStack:r=>{r.addRelativeTo(m({config:e,instructions:t}),g)}})},28107:(e,t,r)=>{r.d(t,{J:()=>n});const n=(e,t)=>{for(const r of Object.keys(e)){const n=e[r],o=async function(e,t,r){const o=new n(e);if("function"===typeof t)this.send(o,t);else{if("function"!==typeof r)return this.send(o,t);if("object"!==typeof t)throw new Error("Expected http options but got ".concat(typeof t));this.send(o,t||{},r)}},i=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");t.prototype[i]=o}}},28388:(e,t,r)=>{r.d(t,{T:()=>s});var n=r(28962);const o=new Set,i=e=>"string"===typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),s=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e=(e=>i(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"===typeof t?await t():t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.X;if(o.has(e)||t(e))o.add(e);else{if("*"!==e)throw new Error('Region not accepted: region="'.concat(e,'" is not a valid hostname component.'));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.')}}(e),e},useFipsEndpoint:async()=>{const e="string"===typeof t?t:await t();return!!i(e)||("function"!==typeof r?Promise.resolve(!!r):r())}})}},28962:(e,t,r)=>{r.d(t,{X:()=>o});const n=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return n.test(e);const t=e.split(".");for(const r of t)if(!o(r))return!1;return!0}},31748:(e,t,r)=>{r.d(t,{f:()=>o});var n=r(86520);class o{constructor(){(0,n.A)(this,"serdeContext",void 0)}setSerdeContext(e){this.serdeContext=e}}},33953:(e,t,r)=>{r.d(t,{N:()=>n});
1class n{trace(){}debug(){}info(){}warn(){}error(){}}},35633:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(62);const o=async e=>{var t;return"function"===typeof Blob&&e instanceof Blob||"Blob"===(null===(t=e.constructor)||void 0===t?void 0:t.name)?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{var e;if(2!==n.readyState)return r(new Error("Reader aborted too early"));const o=null!==(e=n.result)&&void 0!==e?e:"",i=o.indexOf(","),s=i>-1?i+1:o.length;t(o.substring(s))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}(e),r=(0,n.E)(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:e,value:i}=await r.read();i&&(t.push(i),o+=i.length),n=e}const i=new Uint8Array(o);let s=0;for(const a of t)i.set(a,s),s+=a.length;return i}(e)}},37932:(e,t,r)=>{r.d(t,{t:()=>n});const n=e=>{if("function"===typeof e)return e;const t=Promise.resolve(e);return()=>t}},42148:(e,t,r)=>{r.d(t,{Kc:()=>i,OF:()=>c,_w:()=>s,kQ:()=>a,mh:()=>o});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=Object.entries(n).reduce((e,t)=>{let[r,n]=t;return e[n]=Number(r),e},{}),i=n.split(""),s=6,a=8,c=63},42403:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(98368);const o=e=>"object"===typeof e?"url"in e?(0,n.D)(e.url):e:(0,n.D)(e)},43345:(e,t,r)=>{r.d(t,{I:()=>o});const n=["in-region","cross-region","mobile","standard","legacy"],o=function(){let{defaultsMode:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return((e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>((!i||null!==e&&void 0!==e&&e.forceRefresh)&&(n=await a()),n):async e=>((!i||null!==e&&void 0!==e&&e.forceRefresh)&&(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)})(async()=>{const t="function"===typeof e?await e():e;switch(null===t||void 0===t?void 0:t.toLowerCase()){case"auto":return Promise.resolve(i()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(null===t||void 0===t?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error('Invalid parameter for "defaultsMode", expect '.concat(n.join(", "),", got ").concat(t))}})},i=()=>{var e,t;const r=null===(e=window)||void 0===e?void 0:e.navigator;if(null!==r&&void 0!==r&&r.connection){const{effectiveType:e,rtt:t,downlink:n}=null===r||void 0===r?void 0:r.connection;if("string"===typeof e&&"4g"!==e||Number(t)>100||Number(n)<10)return!0}return(null===r||void 0===r||null===(t=r.userAgentData)||void 0===t?void 0:t.mobile)||"number"===typeof(null===r||void 0===r?void 0:r.maxTouchPoints)&&(null===r||void 0===r?void 0:r.maxTouchPoints)>1}},44330:(e,t,r)=>{r.d(t,{l:()=>d});var n=r(89510),o=r(56337),i=r(97519);const s=e=>e=>{throw e},a=(e,t)=>{},c={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},d=e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!o.K.isInstance(r.request))return e(r);const c=(0,i.u)(t).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:d={}},identity:l,signer:u}=c,h=await e((0,n.A)((0,n.A)({},r),{},{request:await u.sign(r.request,l,d)})).catch((u.errorHandler||s)(d));return(u.successHandler||a)(h.response,d),h},c)}})},52414:(e,t,r)=>{var n;r.d(t,{Gz:()=>o,L0:()=>i,cm:()=>n}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(n||(n={}));const o=3,i=n.STANDARD},53657:(e,t,r)=>{r.d(t,{wq:()=>h});var n=r(89510),o=r(90309),i=r(97519);const s=(e,t,r,n,o)=>({name:t,namespace:e,traits:r,input:n,output:o}),a=e=>(t,r)=>async a=>{const{response:d}=await t(a),{operationSchema:l}=(0,i.u)(r),[,u,h,f,p,m]=null!==l&&void 0!==l?l:[];try{return{response:d,output:await e.protocol.deserializeResponse(s(u,h,f,p,m),(0,n.A)((0,n.A)({},e),r),d)}}catch(w){if(Object.defineProperty(w,"$response",{value:d,enumerable:!1,writable:!1,
1configurable:!1}),!("$metadata"in w)){const e="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{w.message+="\n "+e}catch(b){var g,y,v;if(r.logger&&"NoOpLogger"!==(null===(g=r.logger)||void 0===g||null===(g=g.constructor)||void 0===g?void 0:g.name))null===(y=r.logger)||void 0===y||null===(v=y.warn)||void 0===v||v.call(y,e);else console.warn(e)}"undefined"!==typeof w.$responseBodyText&&w.$response&&(w.$response.body=w.$responseBodyText);try{if(o.c.isInstance(d)){const{headers:e={}}=d,t=Object.entries(e);w.$metadata={httpStatusCode:d.statusCode,requestId:c(/^x-[\w-]+-request-?id$/,t),extendedRequestId:c(/^x-[\w-]+-id-2$/,t),cfId:c(/^x-[\w-]+-cf-id$/,t)}}}catch(b){}}throw w}},c=(e,t)=>(t.find(t=>{let[r]=t;return r.match(e)})||[void 0,void 0])[1],d=e=>(t,r)=>async o=>{var a;const{operationSchema:c}=(0,i.u)(r),[,d,l,u,h,f]=null!==c&&void 0!==c?c:[],p=null!==(a=r.endpointV2)&&void 0!==a&&a.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint,m=await e.protocol.serializeRequest(s(d,l,u,h,f),o.input,(0,n.A)((0,n.A)((0,n.A)({},e),r),{},{endpoint:p}));return t((0,n.A)((0,n.A)({},o),{},{request:m}))},l={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},u={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function h(e){return{applyToStack:t=>{t.add(d(e),u),t.add(a(e),l),e.protocol.setSerdeContext(e)}}}},56337:(e,t,r)=>{r.d(t,{K:()=>i});var n=r(89510),o=r(86520);class i{constructor(e){(0,o.A)(this,"method",void 0),(0,o.A)(this,"protocol",void 0),(0,o.A)(this,"hostname",void 0),(0,o.A)(this,"port",void 0),(0,o.A)(this,"path",void 0),(0,o.A)(this,"query",void 0),(0,o.A)(this,"headers",void 0),(0,o.A)(this,"username",void 0),(0,o.A)(this,"password",void 0),(0,o.A)(this,"fragment",void 0),(0,o.A)(this,"body",void 0),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)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/".concat(e.path):e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new i((0,n.A)((0,n.A)({},e),{},{headers:(0,n.A)({},e.headers)}));var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const o=r[t];return(0,n.A)((0,n.A)({},e),{},{[t]:Array.isArray(o)?[...o]:o})},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers}clone(){return i.clone(this)}}},59020:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(89510);const o=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const n of t)r.push(n);return r},i=(e,t)=>"".concat(e||"anonymous").concat(t&&t.length>0?" (a.k.a. ".concat(t.join(","),")"):""),s=()=>{let e=[],t=[],r=!1;const d=new Set,l=r=>{var o;return e.forEach(e=>{r.add(e.middleware,(0,n.A)({},e))}),t.forEach(e=>{r.addRelativeTo(e.middleware,(0,n.A)({},e))}),null===(o=r.identifyOnResolve)||void 0===o||o.call(r,f.identifyOnResolve()),r},u=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t},h=function(){let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const s=[],d=[],l={};e.forEach(e=>{const t=(0,n.A)((0,n.A)({},e),{},{before:[],after:[]});for(const r of o(t.name,t.aliases))l[r]=t;s.push(t)}),t.forEach(e=>{const t=(0,n.A)((0,n.A)({},e),{},{before:[],after:[]});for(const r of o(t.name,t.aliases))l[r]=t;d.push(t)}),d.forEach(e=>{if(e.toMiddleware){const t=l[e.toMiddleware];if(void 0===t){if(r)return;throw new Error("".concat(e.toMiddleware," is not found when adding ")+"".concat(i(e.name,e.aliases)," ")+"middleware ".concat(e.relation," ").concat(e.toMiddleware))}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}});var h;return(h=s,h.sort((e,t)=>
1a[t.step]-a[e.step]||c[t.priority||"normal"]-c[e.priority||"normal"])).map(u).reduce((e,t)=>(e.push(...t),e),[])},f={add:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{name:s,override:a,aliases:c}=r,l=(0,n.A)({step:"initialize",priority:"normal",middleware:t},r),u=o(s,c);if(u.length>0){if(u.some(e=>d.has(e))){if(!a)throw new Error("Duplicate middleware name '".concat(i(s,c),"'"));for(const t of u){const r=e.findIndex(e=>{var r;return e.name===t||(null===(r=e.aliases)||void 0===r?void 0:r.some(e=>e===t))});if(-1===r)continue;const n=e[r];if(n.step!==l.step||l.priority!==n.priority)throw new Error('"'.concat(i(n.name,n.aliases),'" middleware with ')+"".concat(n.priority," priority in ").concat(n.step," step cannot ")+'be overridden by "'.concat(i(s,c),'" middleware with ')+"".concat(l.priority," priority in ").concat(l.step," step."));e.splice(r,1)}}for(const e of u)d.add(e)}e.push(l)},addRelativeTo:(e,r)=>{const{name:s,override:a,aliases:c}=r,l=(0,n.A)({middleware:e},r),u=o(s,c);if(u.length>0){if(u.some(e=>d.has(e))){if(!a)throw new Error("Duplicate middleware name '".concat(i(s,c),"'"));for(const e of u){const r=t.findIndex(t=>{var r;return t.name===e||(null===(r=t.aliases)||void 0===r?void 0:r.some(t=>t===e))});if(-1===r)continue;const n=t[r];if(n.toMiddleware!==l.toMiddleware||n.relation!==l.relation)throw new Error('"'.concat(i(n.name,n.aliases),'" middleware ')+"".concat(n.relation,' "').concat(n.toMiddleware,'" middleware cannot be overridden ')+'by "'.concat(i(s,c),'" middleware ').concat(l.relation," ")+'"'.concat(l.toMiddleware,'" middleware.'));t.splice(r,1)}}for(const e of u)d.add(e)}t.push(l)},clone:()=>l(s()),use:e=>{e.applyToStack(f)},remove:r=>"string"===typeof r?(r=>{let n=!1;const i=e=>{const t=o(e.name,e.aliases);if(t.includes(r)){n=!0;for(const e of t)d.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),n})(r):(r=>{let n=!1;const i=e=>{if(e.middleware===r){n=!0;for(const t of o(e.name,e.aliases))d.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),n})(r),removeByTag:r=>{let n=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=o(i,s);for(const t of e)d.delete(t);return n=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),n},concat:e=>{var t,n;const o=l(s());return o.use(e),o.identifyOnResolve(r||o.identifyOnResolve()||null!==(t=null===(n=e.identifyOnResolve)||void 0===n?void 0:n.call(e))&&void 0!==t&&t),o},applyToStack:l,identify:()=>h(!0).map(e=>{var t;const r=null!==(t=e.step)&&void 0!==t?t:e.relation+" "+e.toMiddleware;return i(e.name,e.aliases)+" - "+r}),identifyOnResolve:e=>("boolean"===typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of h().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(f.identify()),e}};return f},a={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},c={high:3,normal:2,low:1}},61758:(e,t,r)=>{r.d(t,{K4:()=>s,OC:()=>n,e:()=>i});const n=(o=3e5,function(e){return i(e)&&e.expiration.getTime()-Date.now()<o});var o;const i=e=>void 0!==e.expiration,s=(e,t,r)=>{if(void 0===e)return;const n="function"!==typeof e?async()=>Promise.resolve(e):e;let o,i,s,a=!1;const c=async e=>{i||(i=n(e));try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return void 0===t?async e=>((!s||null!==e&&void 0!==e&&e.forceRefresh)&&(o=await c(e)),o):async e=>((!s||null!==e&&void 0!==e&&e.forceRefresh)&&(o=await c(e)),a?o:r(o)?t(o)?(await c(e),o):o:(a=!0,o))}},62667:(e,t,r)=>{var n,o,i,s;r.d(t,{cS:()=>a}),function(e){e.HEADER="header",e.QUERY="query"}(n||(n={})),function(e){e.HTTP="http",e.HTTPS="https"}(o||(o={})),function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(i||(i={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(s||(s={}));class a{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;const t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers}}},63479:(e,t,r)=>{r.d(t,{Df:()=>s,G8:()=>o,Rn:()=>c,XP:()=>d,XS:()=>a,bp:()=>n,jh:()=>i,l5:()=>l,ok:()=>u});const n=100,o=2e4,i=500,s=500,a=5,c=10,d=1,l="amz-sdk-invocation-id",u="amz-sdk-request"},64260:(e,t,r)=>{r.d(t,{B:()=>n});const n=e=>()=>Promise.reject(e)},66417:(e,t,r)=>{r.d(t,{h:()=>o});var n=r(86520);class o{constructor(e){(0,n.A)(this,"authSchemes",new Map);for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}
1getIdentityProvider(e){return this.authSchemes.get(e)}}},66963:(e,t,r)=>{r.d(t,{P:()=>c});var n=r(62),o=r(11475),i=r(82894),s=r(11723);class a extends Uint8Array{static fromString(e){if("string"===typeof e)return"base64"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8")?a.mutate((0,n.E)(e)):a.mutate((0,i.a)(e));throw new Error("Unsupported conversion from ".concat(typeof e," to Uint8ArrayBlobAdapter."))}static mutate(e){return Object.setPrototypeOf(e,a.prototype),e}transformToString(){return"base64"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf-8")?(0,o.n)(this):(0,s.P)(this)}}const c=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,t=arguments.length>1?arguments[1]:void 0;if(e instanceof Uint8Array)return a.mutate(e);if(!e)return a.mutate(new Uint8Array);const r=t.streamCollector(e);return a.mutate(await r)}},68001:(e,t,r)=>{r.d(t,{A:()=>n});const n=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};n.from=e=>e&&"object"===typeof e&&(e instanceof n||"deserializeJSON"in e)?e:"string"===typeof e||Object.getPrototypeOf(e)===String.prototype?n(String(e)):n(JSON.stringify(e)),n.fromObject=n.from},76655:(e,t,r)=>{r.d(t,{O:()=>o});var n=r(86520);class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;(0,n.A)(this,"namespace",void 0),(0,n.A)(this,"schemas",void 0),(0,n.A)(this,"exceptions",void 0),this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return o.registries.has(e)||o.registries.set(e,new o(e)),o.registries.get(e)}register(e,t){const r=this.normalizeShapeId(e);o.for(r.split("#")[0]).schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error("@smithy/core/schema - schema not found for ".concat(t));return this.schemas.get(t)}registerError(e,t){const r=e,n=o.for(r[1]);n.schemas.set(r[1]+"#"+r[2],r),n.exceptions.set(r,t)}getErrorCtor(e){const t=e;return o.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}(0,n.A)(o,"registries",new Map)},76693:(e,t,r)=>{r.d(t,{Q:()=>n});const n=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error("Cannot load ".concat(r,' "').concat(t,'". Expected "true" or "false", got ').concat(e[t],"."))}}},77914:(e,t,r)=>{r.d(t,{GQ:()=>l,Qb:()=>c,bV:()=>d});const n=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],o=["TimeoutError","RequestTimeout","RequestTimeoutException"],i=[500,502,503,504],s=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],a=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c=e=>{var t,r;return 429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||n.includes(e.name)||1==(null===(r=e.$retryable)||void 0===r?void 0:r.throttling)},d=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e=>void 0!==(null===e||void 0===e?void 0:e.$retryable))(e)||(e=>{var t;return null===(t=e.$metadata)||void 0===t?void 0:t.clockSkewCorrected})(e)||o.includes(e.name)||s.includes((null===e||void 0===e?void 0:e.code)||"")||a.includes((null===e||void 0===e?void 0:e.code)||"")||i.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)||(e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||void 0!==e.cause&&r<=10&&d(e.cause,r+1)},l=e=>{var t;if(void 0!==(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!d(e)}return!1}},78333:(e,t,r)=>{r.d(t,{o:()=>o});const n=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}$"),o=e=>n.test(e)||e.startsWith("[")&&e.endsWith("]")},80002:(e,t,r)=>{r.d(t,{l:()=>a});var n=r(89510),o=r(86520);const i=e=>"function"===typeof e?e():e;var s=r(81142);class a{constructor(e,t){(0,o.A)(this,"ref",void 0),(0,o.A)(this,"memberName",void 0),(0,o.A)(this,"symbol",a.symbol),(0,o.A)(this,"name",void 0),(0,o.A)(this,"schema",void 0),(0,o.A)(this,"_isMemberSchema",void 0),(0,o.A)(this,"traits",void 0),(0,o.A)(this,"memberTraits",void 0),(0,o.A)(this,"normalizedTraits",void 0),this.ref=e,this.memberName=t;const r=[];let n=e,c=e;for(this._isMemberSchema=!1;d(n);)r.push(n[1]),n=n[0],c=i(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,(0,s.c)(t))}}else this.memberTraits=0;if(c instanceof a){const e=this.memberTraits;return Object.assign(this,c),this.memberTraits=Object.assign({},e,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=null!==t&&void 0!==t?t:c.memberName)}
1var u;(this.schema=i(c),l(this.schema))?(this.name="".concat(this.schema[1],"#").concat(this.schema[2]),this.traits=this.schema[3]):(this.name=null!==(u=this.memberName)&&void 0!==u?u:String(c),this.traits=0);if(this._isMemberSchema&&!t)throw new Error("@smithy/core/schema - NormalizedSchema member init ".concat(this.getName(!0)," missing member name."))}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"===typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t=i(e);if(t instanceof a)return t;if(d(t)){const[r,n]=t;if(r instanceof a)return Object.assign(r.getMergedTraits(),(0,s.c)(n)),r;throw new Error("@smithy/core/schema - may not init unwrapped member schema=".concat(JSON.stringify(e,null,2),"."))}return new a(t)}getSchema(){const e=this.schema;return 0===e[0]?e[4]:e}getName(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"===typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"===typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();return 3===e[0]||-3===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"===typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){const e=e=>4===(4&e)||!(null===e||void 0===e||!e.idempotencyToken),{normalizedTraits:t,traits:r,memberTraits:n}=this;return e(t)||e(r)||e(n)}getMergedTraits(){var e;return null!==(e=this.normalizedTraits)&&void 0!==e?e:this.normalizedTraits=(0,n.A)((0,n.A)({},this.getOwnTraits()),this.getMemberTraits())}getMemberTraits(){return(0,s.c)(this.memberTraits)}getOwnTraits(){return(0,s.c)(this.traits)}getKeySchema(){var e;const[t,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!r)throw new Error("@smithy/core/schema - cannot get key for non-map: ".concat(this.getName(!0)));const n=this.getSchema();return c([t?15:null!==(e=n[4])&&void 0!==e?e:0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o="number"===typeof e?63&e:e&&"object"===typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=o)return c([o,0],r?"value":"member");throw new Error("@smithy/core/schema - ".concat(this.getName(!0)," has no value member."))}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return c(d(n)?n:[n,0],e)}if(this.isDocumentSchema())return c([15,0],e);throw new Error("@smithy/core/schema - ".concat(this.getName(!0)," has no no member=").concat(e,"."))}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}catch(t){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema();for(let t=0;t<e[4].length;++t)yield[e[4][t],c([e[5][t],0],e[4][t])]}}function c(e,t){if(e instanceof a)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new a(e,t)}(0,o.A)(a,"symbol",Symbol.for("@smithy/nor"));const d=e=>Array.isArray(e)&&2===e.length,l=e=>Array.isArray(e)&&e.length>=5},81031:(e,t,r)=>{r.d(t,{l:()=>n});const n=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},81142:(e,t,r)=>{function n(e){if("object"===typeof e)return e;e|=0;const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1===(e>>r++&1)&&(t[n]=1);return t}r.d(t,{c:()=>n})},82894:(e,t,r)=>{r.d(t,{a:()=>n});const n=e=>(new TextEncoder).encode(e)},83505:(e,t,r)=>{r.d(t,{s:()=>I});const n="endpoints";function o(e){return"object"!==typeof e||null==e?e:"ref"in e?"$".concat(o(e.ref)):"fn"in e?"".concat(e.fn,"(").concat((e.argv||[]).map(o).join(", "),")"):JSON.stringify(e,null,2)}
1class i extends Error{constructor(e){super(e),this.name="EndpointError"}}var s=r(89510),a=r(14792),c=r(19075);const d=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new i("Path: '".concat(e,"' does not end with ']'"));const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new i("Invalid array index: '".concat(o,"' in path: '").concat(e,"'"));0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce((r,n)=>{if("object"!==typeof r)throw new i("Index '".concat(n,"' in '").concat(t,"' not found in '").concat(JSON.stringify(e),"'"));return Array.isArray(r)?r[parseInt(n)]:r[n]},e);var l=r(28962);var u;!function(e){e.HTTP="http",e.HTTPS="https"}(u||(u={}));var h=r(78333);const f={[u.HTTP]:80,[u.HTTPS]:443},p={booleanEquals:(e,t)=>e===t,getAttr:d,isSet:e=>null!=e,isValidHostLabel:l.X,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"===typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL("".concat(n,"//").concat(t).concat(r?":".concat(r):"").concat(o));return s.search=Object.entries(i).map(e=>{let[t,r]=e;return"".concat(t,"=").concat(r)}).join("&"),s}return new URL(e)}catch(t){return null}})();if(!t)return console.error("Unable to parse ".concat(JSON.stringify(e)," as a whatwg URL.")),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(u).includes(c))return null;const d=(0,h.o)(o),l=r.includes("".concat(n,":").concat(f[c]))||"string"===typeof e&&e.includes("".concat(n,":").concat(f[c]));return{scheme:c,authority:"".concat(n).concat(l?":".concat(f[c]):""),path:i,normalizedPath:i.endsWith("/")?i:"".concat(i,"/"),isIp:d}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase()))},m=(e,t)=>{const r=[],n=(0,s.A)((0,s.A)({},t.endpointParams),t.referenceRecord);let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(d(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},g=(e,t,r)=>{if("string"===typeof e)return m(e,r);if(e.fn)return v.callFunction(e,r);if(e.ref)return((e,t)=>{let{ref:r}=e;return(0,s.A)((0,s.A)({},t.endpointParams),t.referenceRecord)[r]})(e,r);throw new i("'".concat(t,"': ").concat(String(e)," is not a string, function or reference."))},y=(e,t)=>{let{fn:r,argv:n}=e;const o=n.map(e=>["boolean","number"].includes(typeof e)?e:v.evaluateExpression(e,"arg",t)),i=r.split(".");return i[0]in c.m&&null!=i[1]?c.m[i[0]][i[1]](...o):p[r](...o)},v={evaluateExpression:g,callFunction:y},w=["assign"],b=(e,t)=>{var r,c;let{assign:d}=e,l=(0,a.A)(e,w);if(d&&d in t.referenceRecord)throw new i("'".concat(d,"' is already defined in Reference Record."));const u=y(l,t);return null===(r=t.logger)||void 0===r||null===(c=r.debug)||void 0===c||c.call(r,"".concat(n," evaluateCondition: ").concat(o(l)," = ").concat(o(u))),(0,s.A)({result:""===u||!!u},null!=d&&{toAssign:{name:d,value:u}})},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const r={};for(const c of e){const{result:e,toAssign:d}=b(c,(0,s.A)((0,s.A)({},t),{},{referenceRecord:(0,s.A)((0,s.A)({},t.referenceRecord),r)}));if(!e)return{result:e};var i,a;if(d)r[d.name]=d.value,null===(i=t.logger)||void 0===i||null===(a=i.debug)||void 0===a||a.call(i,"".concat(n," assign: ").concat(d.name," := ").concat(o(d.value)))}return{result:!0,referenceRecord:r}},S=(e,t)=>Object.entries(e).reduce((e,r)=>
1{let[n,o]=r;return(0,s.A)((0,s.A)({},e),{},{[n]:o.map(e=>{const r=g(e,"Header value entry",t);if("string"!==typeof r)throw new i("Header '".concat(n,"' value '").concat(r,"' is not a string"));return r})})},{}),T=(e,t)=>Object.entries(e).reduce((e,r)=>{let[n,o]=r;return(0,s.A)((0,s.A)({},e),{},{[n]:E.getEndpointProperty(o,t)})},{}),C=(e,t)=>{if(Array.isArray(e))return e.map(e=>C(e,t));switch(typeof e){case"string":return m(e,t);case"object":if(null===e)throw new i("Unexpected endpoint property: ".concat(e));return E.getEndpointProperties(e,t);case"boolean":return e;default:throw new i("Unexpected endpoint property type: ".concat(typeof e))}},E={getEndpointProperty:C,getEndpointProperties:T},R=(e,t)=>{const r=g(e,"Endpoint URL",t);if("string"===typeof r)try{return new URL(r)}catch(n){throw console.error("Failed to construct URL with ".concat(r),n),n}throw new i("Endpoint URL must be a string, got ".concat(typeof r))},x=(e,t)=>{var r,i;const{conditions:a,endpoint:c}=e,{result:d,referenceRecord:l}=A(a,t);if(!d)return;const u=(0,s.A)((0,s.A)({},t),{},{referenceRecord:(0,s.A)((0,s.A)({},t.referenceRecord),l)}),{url:h,properties:f,headers:p}=c;return null===(r=t.logger)||void 0===r||null===(i=r.debug)||void 0===i||i.call(r,"".concat(n," Resolving endpoint from template: ").concat(o(c))),(0,s.A)((0,s.A)((0,s.A)({},void 0!=p&&{headers:S(p,u)}),void 0!=f&&{properties:T(f,u)}),{},{url:R(h,u)})},P=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:a}=A(r,t);if(o)throw new i(g(n,"Error",(0,s.A)((0,s.A)({},t),{},{referenceRecord:(0,s.A)((0,s.A)({},t.referenceRecord),a)})))},M=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=x(r,t);if(e)return e}else if("error"===r.type)P(r,t);else{if("tree"!==r.type)throw new i("Unknown endpoint rule: ".concat(r));{const e=N.evaluateTreeRule(r,t);if(e)return e}}throw new i("Rules evaluation failed")},N={evaluateRules:M,evaluateTreeRule:(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=A(r,t);if(o)return N.evaluateRules(n,(0,s.A)((0,s.A)({},t),{},{referenceRecord:(0,s.A)((0,s.A)({},t.referenceRecord),i)}))}},I=(e,t)=>{var r,s,a,c;const{endpointParams:d,logger:l}=t,{parameters:u,rules:h}=e;null===(r=t.logger)||void 0===r||null===(s=r.debug)||void 0===s||s.call(r,"".concat(n," Initial EndpointParams: ").concat(o(d)));const f=Object.entries(u).filter(e=>{let[,t]=e;return null!=t.default}).map(e=>{let[t,r]=e;return[t,r.default]});if(f.length>0)for(const[n,o]of f){var p;d[n]=null!==(p=d[n])&&void 0!==p?p:o}const m=Object.entries(u).filter(e=>{let[,t]=e;return t.required}).map(e=>{let[t]=e;return t});for(const n of m)if(null==d[n])throw new i("Missing required parameter: '".concat(n,"'"));const g=M(h,{endpointParams:d,logger:l,referenceRecord:{}});return null===(a=t.logger)||void 0===a||null===(c=a.debug)||void 0===c||c.call(a,"".concat(n," Resolved endpoint: ").concat(o(g))),g}},83645:(e,t,r)=>{r.d(t,{vK:()=>c});var n=r(89510),o=r(86520);class i{constructor(e){(0,o.A)(this,"method",void 0),(0,o.A)(this,"protocol",void 0),(0,o.A)(this,"hostname",void 0),(0,o.A)(this,"port",void 0),(0,o.A)(this,"path",void 0),(0,o.A)(this,"query",void 0),(0,o.A)(this,"headers",void 0),(0,o.A)(this,"username",void 0),(0,o.A)(this,"password",void 0),(0,o.A)(this,"fragment",void 0),(0,o.A)(this,"body",void 0),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)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/".concat(e.path):e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new i((0,n.A)((0,n.A)({},e),{},{headers:(0,n.A)({},e.headers)}));var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const o=r[t];return(0,n.A)((0,n.A)({},e),{},{[t]:Array.isArray(o)?[...o]:o})},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers}clone(){return i.clone(this)}}const s="content-length";const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},c=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const o=t.request;if(i.isInstance(o)){const{body:e,headers:t}=o;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(s))try{const t=r(e);o.headers=(0,n.A)((0,n.A)({},o.headers),{},{[s]:String(t)})}catch(a){}}return e((0,n.A)((0,n.A)({},t),{},{request:o}))}),a)}})},83777:(e,t,r)=>{var n;r.d(t,{c:()=>n}),function(e){e.ENV="env",e.CONFIG="shared config entry"}(n||(n={}))},84181:(e,t,r)=>{r.d(t,{s:()=>C});var n=r(89510),o=r(80002),i=r(81142);function s(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");const n=e.split(t);if(1===r)return n;const o=[];let i="";for(let s=0;s<n.length;s++)""===i?i=n[s]:i+=t+n[s],(s+1)%r===0&&(o.push(i),i="");return""!==i&&o.push(i),o}var a=r(9490),c=r(56337),d=r(35633),l=r(11475);const u={},h={};for(let E=0;E<256;E++){let e=E.toString(16).toLowerCase();1===e.length&&(e="0".concat(e)),u[E]=e,h[e]=E}var f=r(11723);const p=e=>{var t;return"function"===typeof ReadableStream&&((null===e||void 0===e||null===(t=e.constructor)||void 0===t?void 0:t.name)===ReadableStream.name||e instanceof ReadableStream)},m="The stream has already been transformed.",g=e=>{if(!y(e)&&!p(e)){var t;const r=(null===e||void 0===e||null===(t=e.__proto__)||void 0===t||null===(t=t.constructor)||void 0===t?void 0:t.name)||e;throw new Error("Unexpected stream implementation, expect Blob or ReadableStream, got ".concat(r))}let r=!1;const n=async()=>
1{if(r)throw new Error(m);return r=!0,await(0,d.k)(e)};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{const t=await n();if("base64"===e)return(0,l.n)(t);if("hex"===e)return function(e){let t="";for(let r=0;r<e.byteLength;r++)t+=u[e[r]];return t}(t);if(void 0===e||"utf8"===e||"utf-8"===e)return(0,f.P)(t);if("function"===typeof TextDecoder)return new TextDecoder(e).decode(t);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(r)throw new Error(m);if(r=!0,y(e))return(e=>{if("function"!==typeof e.stream)throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if(p(e))return e;throw new Error("Cannot transform payload to web stream, got ".concat(e))}})},y=e=>"function"===typeof Blob&&e instanceof Blob;var v=r(66963);function w(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var b=r(86520),A=r(90309),S=r(31748);class T extends S.f{constructor(e){super(),(0,b.A)(this,"options",void 0),this.options=e}getRequestType(){return c.K}getResponseType(){return A.c}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[r,n]of t.url.searchParams.entries())e.query[r]=n;return e}return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query=(0,n.A)({},t.query),e}setHostPrefix(e,t,r){var n;const s=o.l.of(t.input),a=(0,i.c)(null!==(n=t.traits)&&void 0!==n?n:{});if(a.endpoint){var c;let t=null===(c=a.endpoint)||void 0===c?void 0:c[0];if("string"===typeof t){const n=[...s.structIterator()].filter(e=>{let[,t]=e;return t.getMergedTraits().hostLabel});for(const[e]of n){const n=r[e];if("string"!==typeof n)throw new Error("@smithy/core/schema - ".concat(e," in input must be a string as hostLabel."));t=t.replace("{".concat(e,"}"),n)}e.hostname=t+e.hostname}}}deserializeMetadata(e){var t,r;return{httpStatusCode:e.statusCode,requestId:null!==(t=null!==(r=e.headers["x-amzn-requestid"])&&void 0!==r?r:e.headers["x-amzn-request-id"])&&void 0!==t?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream(e){let{eventStream:t,requestSchema:r,initialRequest:n}=e;return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:r,initialRequest:n})}async deserializeEventStream(e){let{response:t,responseSchema:r,initialResponseContainer:n}=e;return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await Promise.all([r.e(5566),r.e(9677)]).then(r.bind(r,33050));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error("@smithy/core/protocols - ".concat(this.constructor.name," getDefaultContentType() implementation missing."))}async deserializeHttpMessage(e,t,r,n,o){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class C extends T{async serializeRequest(e,t,r){const s=(0,n.A)({},null!==t&&void 0!==t?t:{}),a=this.serializer,d={},l={},u=await r.endpoint(),h=o.l.of(null===e||void 0===e?void 0:e.input),f=h.getSchema();let p,m=!1;const g=new c.K({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:d,headers:l,body:void 0});if(u){this.updateServiceEndpoint(g,u),this.setHostPrefix(g,e,s);const t=(0,i.c)(e.traits);if(t.http){g.method=t.http[0];const[e,r]=t.http[1].split("?");"/"==g.path?g.path=e:g.path+=e;const n=new URLSearchParams(null!==r&&void 0!==r?r:"");Object.assign(d,Object.fromEntries(n))}}for(const[n,o]of h.structIterator()){var y;const e=null!==(y=o.getMergedTraits())&&void 0!==y?y:{},t=s[n];if(null!=t||o.isIdempotencyToken())if(e.httpPayload){if(o.isStreaming()){o.isStru
1ctSchema()?s[n]&&(p=await this.serializeEventStream({eventStream:s[n],requestSchema:h})):p=t}else a.write(o,t),p=a.flush();delete s[n]}else if(e.httpLabel){a.write(o,t);const e=a.flush();g.path.includes("{".concat(n,"+}"))?g.path=g.path.replace("{".concat(n,"+}"),e.split("/").map(w).join("/")):g.path.includes("{".concat(n,"}"))&&(g.path=g.path.replace("{".concat(n,"}"),w(e))),delete s[n]}else if(e.httpHeader)a.write(o,t),l[e.httpHeader.toLowerCase()]=String(a.flush()),delete s[n];else if("string"===typeof e.httpPrefixHeaders){for(const[r,n]of Object.entries(t)){const t=e.httpPrefixHeaders+r;a.write([o.getValueSchema(),{httpHeader:t}],n),l[t.toLowerCase()]=a.flush()}delete s[n]}else e.httpQuery||e.httpQueryParams?(this.serializeQuery(o,t,d),delete s[n]):m=!0}return m&&s&&(a.write(f,s),p=a.flush()),g.headers=l,g.query=d,g.body=p,g}serializeQuery(e,t,r){const o=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(const[s,a]of Object.entries(t))if(!(s in r)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),(0,n.A)((0,n.A)({},i),{},{httpQuery:s,httpQueryParams:void 0})),this.serializeQuery(t,a,r)}}else if(e.isListSchema()){const n=!!e.getMergedTraits().sparse,s=[];for(const r of t){o.write([e.getValueSchema(),i],r);const t=o.flush();(n||void 0!==t)&&s.push(t)}r[i.httpQuery]=s}else o.write([e,i],t),r[i.httpQuery]=o.flush()}async deserializeResponse(e,t,r){const n=this.deserializer,i=o.l.of(e.output),s={};if(r.statusCode>=300){const o=await(0,v.P)(r.body,t);throw o.byteLength>0&&Object.assign(s,await n.read(15,o)),await this.handleError(e,t,r,s,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const o in r.headers){const e=r.headers[o];delete r.headers[o],r.headers[o.toLowerCase()]=e}const a=await this.deserializeHttpMessage(i,t,r,s);if(a.length){const e=await(0,v.P)(r.body,t);if(e.byteLength>0){const t=await n.read(i,e);for(const e of a)s[e]=t[e]}}else a.discardResponseBody&&await(0,v.P)(r.body,t);return s.$metadata=this.deserializeMetadata(r),s}async deserializeHttpMessage(e,t,r,n,i){let c;c=n instanceof Set?i:n;let d=!0;const l=this.deserializer,u=o.l.of(e),h=[];for(const[o,f]of u.structIterator()){const e=f.getMemberTraits();if(e.httpPayload){d=!1;if(f.isStreaming()){const e=f.isStructSchema();c[o]=e?await this.deserializeEventStream({response:r,responseSchema:u}):g(r.body)}else if(r.body){const e=await(0,v.P)(r.body,t);e.byteLength>0&&(c[o]=await l.read(f,e))}}else if(e.httpHeader){const t=String(e.httpHeader).toLowerCase(),n=r.headers[t];if(null!=n)if(f.isListSchema()){const e=f.getValueSchema();let r;e.getMergedTraits().httpHeader=t,r=e.isTimestampSchema()&&4===e.getSchema()?s(n,",",2):(0,a.G)(n);const i=[];for(const t of r)i.push(await l.read(e,t.trim()));c[o]=i}else c[o]=await l.read(f,n)}else if(void 0!==e.httpPrefixHeaders){c[o]={};for(const[t,n]of Object.entries(r.headers))if(t.startsWith(e.httpPrefixHeaders)){const r=f.getValueSchema();r.getMergedTraits().httpHeader=t,c[o][t.slice(e.httpPrefixHeaders.length)]=await l.read(r,n)}}else e.httpResponseCode?c[o]=r.statusCode:h.push(o)}return h.discardResponseBody=d,h}}},84840:(e,t,r)=>{r.d(t,{K:()=>s});var n=r(60095),o=r(99543);const i=async function(e,t,r){var n;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e,i=new e(r);i=null!==(n=o(i))&&void 0!==n?n:i;for(var s=arguments.length,a=new Array(s>4?s-4:0),c=4;c<s;c++)a[c-4]=arguments[c];return await t.send(i,...a)};function s(e,t,r,s,c){return function(){var d=(0,o.A)(function*(o,d){var l;const u=d;let h,f=null!==(l=o.startingToken)&&void 0!==l?l:u[r],p=!0;for(var m=arguments.length,g=new Array(m>2?m-2:0),y=2;y<m;y++)g[y-2]=arguments[y];for(;p;){var v;if(u[r]=f,c)u[c]=null!==(v=u[c])&&void 0!==v?v:o.pageSize;if(!(o.client instanceof e))throw new Error("Invalid client, expected instance of ".concat(e.name));h=yield(0,n.A)(i(t,o.client,d,o.withCommand,...g)),yield h;const l=f;f=a(h,s),p=!(!f||o.stopOnSameToken&&f===l)}});return function(e,t){return d.apply(this,arguments)}}()}const a=(e,t)=>{let r=e;const n=t.split(".");for(const o of n){if(!r||"object"!==typeof r)return;r=r[o]}return r}},85038:(e,t,r)=>{r.d(t,{v4:()=>i});const n="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),i=()=>
1{if(n)return n();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,o[e[0]]+o[e[1]]+o[e[2]]+o[e[3]]+"-"+o[e[4]]+o[e[5]]+"-"+o[e[6]]+o[e[7]]+"-"+o[e[8]]+o[e[9]]+"-"+o[e[10]]+o[e[11]]+o[e[12]]+o[e[13]]+o[e[14]]+o[e[15]]}},85069:(e,t,r)=>{r.d(t,{Hj:()=>n});r(76693),r(83777);const n=!1},87114:(e,t,r)=>{r.d(t,{n:()=>o});const n="function"==typeof TextEncoder?new TextEncoder:null,o=e=>{if("string"===typeof e){if(n)return n.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"===typeof e.byteLength)return e.byteLength;if("number"===typeof e.size)return e.size;throw new Error("Body Length computation failed for ".concat(e))}},87293:(e,t,r)=>{r.d(t,{k:()=>n});const n=async e=>{}},88002:(e,t,r)=>{r.d(t,{D:()=>i});var n=r(86520);const o=/^-?\d*(\.\d+)?$/;class i{constructor(e,t){if((0,n.A)(this,"string",void 0),(0,n.A)(this,"type",void 0),this.string=e,this.type=t,!o.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!==typeof e)return!1;const t=e;return i.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&o.test(t.string)}}},88595:(e,t,r)=>{r.d(t,{M:()=>i,T:()=>o});var n=r(86520);class o extends Error{constructor(e){super(e.message),(0,n.A)(this,"$fault",void 0),(0,n.A)(this,"$response",void 0),(0,n.A)(this,"$retryable",void 0),(0,n.A)(this,"$metadata",void 0),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;const t=e;return o.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===o?o.isInstance(e):!!o.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.entries(t).filter(e=>{let[,t]=e;return void 0!==t}).forEach(t=>{let[r,n]=t;void 0!=e[r]&&""!==e[r]||(e[r]=n)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},90309:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(86520);class o{constructor(e){(0,n.A)(this,"statusCode",void 0),(0,n.A)(this,"reason",void 0),(0,n.A)(this,"headers",void 0),(0,n.A)(this,"body",void 0),this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers}}},90546:(e,t,r)=>{function n(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:i}=e.getMergedTraits(),s=t.httpBindings?"string"===typeof n||Boolean(o)?6:Boolean(i)||Boolean(r)?5:void 0:void 0;return null!==s&&void 0!==s?s:t.timestampFormat.default}r.d(t,{V:()=>n})},90605:(e,t,r)=>{r.d(t,{w:()=>s});var n=r(97519);const o=(e,t)=>(r,o)=>async i=>{const s=((e,t)=>{if(!t||0===t.length)return e;const r=[];for(const n of t)for(const t of e)t.schemeId.split("#")[1]===n&&r.push(t);for(const n of e)r.find(e=>{let{schemeId:t}=e;return t===n.schemeId})||r.push(n);return r})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),a=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),c=(0,n.u)(o),d=[];for(const r of s){var l;const n=a.get(r.schemeId);if(!n){d.push("HttpAuthScheme `".concat(r.schemeId,"` was not enabled for this service."));continue}const i=n.identityProvider(await t.identityProviderConfigProvider(e));if(!i){d.push("HttpAuthScheme `".concat(r.schemeId,"` did not have an IdentityProvider configured."));continue}
1const{identityProperties:s={},signingProperties:u={}}=(null===(l=r.propertiesExtractor)||void 0===l?void 0:l.call(r,e,o))||{};r.identityProperties=Object.assign(r.identityProperties||{},s),r.signingProperties=Object.assign(r.signingProperties||{},u),c.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:n.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(d.join("\n"));return r(i)},i={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},s=(e,t)=>{let{httpAuthSchemeParametersProvider:r,identityProviderConfigProvider:n}=t;return{applyToStack:t=>{t.addRelativeTo(o(e,{httpAuthSchemeParametersProvider:r,identityProviderConfigProvider:n}),i)}}}},92044:(e,t,r)=>{r.d(t,{B:()=>F});var n=r(86520);const o={},i={};for(let $=0;$<256;$++){let e=$.toString(16).toLowerCase();1===e.length&&(e="0".concat(e)),o[$]=e,i[e]=$}function s(e){let t="";for(let r=0;r<e.byteLength;r++)t+=o[e[r]];return t}var a=r(82894);const c=e=>"string"===typeof e?(0,a.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),d="X-Amz-Date",l="X-Amz-Signature",u="X-Amz-Security-Token",h="authorization",f=d.toLowerCase(),p=[h,f,"date"],m=l.toLowerCase(),g="x-amz-content-sha256",y=u.toLowerCase(),v={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},w=/^proxy-/,b=/^sec-/,A="AWS4-HMAC-SHA256",S="AWS4-HMAC-SHA256-PAYLOAD",T="aws4_request",C={},E=[],R=(e,t,r)=>"".concat(e,"/").concat(t,"/").concat(r,"/").concat(T),x=(e,t,r)=>{const n=new e(t);return n.update(c(r)),n.digest()},P=(e,t,r)=>{let{headers:n}=e;const o={};for(const i of Object.keys(n).sort()){if(void 0==n[i])continue;const e=i.toLowerCase();(e in v||null!==t&&void 0!==t&&t.has(e)||w.test(e)||b.test(e))&&(!r||r&&!r.has(e))||(o[e]=n[i].trim().replace(/\s+/g," "))}return o},M=async(e,t)=>{let{headers:r,body:n}=e;for(const i of Object.keys(r))if(i.toLowerCase()===g)return r[i];if(void 0==n)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"===typeof n||ArrayBuffer.isView(n)||(o=n,"function"===typeof ArrayBuffer&&o instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(o))){const e=new t;return e.update(c(n)),s(await e.digest())}var o;return"UNSIGNED-PAYLOAD"};class N{format(e){const t=[];for(const o of Object.keys(e)){const r=(0,a.a)(o);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[o]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const o of t)r.set(o,n),n+=o.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const s=new Uint8Array(o.buffer);return s.set(e.value,3),s;case"string":const c=(0,a.a)(e.value),d=new DataView(new ArrayBuffer(3+c.byteLength));d.setUint8(0,7),d.setUint16(1,c.byteLength,!1);const l=new Uint8Array(d.buffer);return l.set(c,3),l;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(D.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!k.test(e.value))throw new Error("Invalid UUID received: ".concat(e.value));const h=new Uint8Array(17);return h[0]=9,h.set(function(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in i))throw new Error("Cannot decode unrecognized sequence ".concat(n," as hexadecimal"));t[r/2]=i[n]}return t}(e.value.replace(/\-/g,"")),1),h}}}var I;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(I||(I={}));const k=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class D{constructor(e){if((0,n.A)(this,"bytes",void 0),this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error("".concat(e," is too large (or, if negative, too small) to represent as an Int64"));const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&O(t),new D(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&O(e),parseInt(s(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function O(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var j=r(89510);class L{constructor(e){(0,n.A)(this,"method",void 0),(0,n.A)(this,"protocol",void 0),(0,n.A)(this,"hostname",void 0),(0,n.A)(this,"port",void 0),(0,n.A)(this,"path",void 0),(0,n.A)(this,"query",void 0),(0,n.A)(this,"headers",void 0),(0,n.A)(this,"username",void 0),(0,n.A)(this,"password",void 0),(0,n.A)(this,"fragment",void 0),(0,n.A)(this,"body",void 0),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)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/".concat(e.path):e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new L((0,j.A)((0,j.A)({},e),{},{headers:(0,j.A)({},e.headers)}));var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>
1{const n=r[t];return(0,j.A)((0,j.A)({},e),{},{[t]:Array.isArray(n)?[...n]:n})},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers}clone(){return L.clone(this)}}const z=e=>{e=L.clone(e);for(const t of Object.keys(e.headers))p.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var q=r(4038);const U=e=>encodeURIComponent(e).replace(/[!'()*]/g,_),_=e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase()),H=e=>"number"===typeof e?new Date(1e3*e):"string"===typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class B{constructor(e){let{applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a=!0}=e;(0,n.A)(this,"service",void 0),(0,n.A)(this,"regionProvider",void 0),(0,n.A)(this,"credentialProvider",void 0),(0,n.A)(this,"sha256",void 0),(0,n.A)(this,"uriEscapePath",void 0),(0,n.A)(this,"applyChecksum",void 0),this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=(0,q.t)(o),this.credentialProvider=(0,q.t)(r)}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return"".concat(e.method,"\n").concat(this.getCanonicalPath(e),"\n").concat((e=>{let{query:t={}}=e;const r=[],n={};for(const o of Object.keys(t)){if(o.toLowerCase()===m)continue;const e=U(o);r.push(e);const i=t[o];"string"===typeof i?n[e]="".concat(e,"=").concat(U(i)):Array.isArray(i)&&(n[e]=i.slice(0).reduce((t,r)=>t.concat(["".concat(e,"=").concat(U(r))]),[]).sort().join("&"))}return r.sort().map(e=>n[e]).filter(e=>e).join("&")})(e),"\n").concat(n.map(e=>"".concat(e,":").concat(t[e])).join("\n"),"\n\n").concat(n.join(";"),"\n").concat(r)}async createStringToSign(e,t,r,n){const o=new this.sha256;o.update(c(r));const i=await o.digest();return"".concat(n,"\n").concat(e,"\n").concat(t,"\n").concat(s(i))}getCanonicalPath(e){let{path:t}=e;if(this.uriEscapePath){const e=[];for(const n of t.split("/"))0!==(null===n||void 0===n?void 0:n.length)&&"."!==n&&(".."===n?e.pop():e.push(n));const r="".concat(null!==t&&void 0!==t&&t.startsWith("/")?"/":"").concat(e.join("/")).concat(e.length>0&&null!==t&&void 0!==t&&t.endsWith("/")?"/":"");return U(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(e){if("object"!==typeof e||"string"!==typeof e.accessKeyId||"string"!==typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(r=e,H(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class F extends B{constructor(e){let{applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a=!0}=e;super({applyChecksum:t,credentials:r,region:o,service:i,sha256:s,uriEscapePath:a}),(0,n.A)(this,"headerFormatter",new N)}async presign(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,hoistableHeaders:a,signingRegion:c,signingService:h}=t,f=await this.credentialProvider();this.validateResolvedCredentials(f);const p=null!==c&&void 0!==c?c:await this.regionProvider(),{longDate:m,shortDate:g}=this.formatDate(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const y=R(g,p,null!==h&&void 0!==h?h:this.service),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{headers:r,query:n={}}=L.clone(e);for(const s of Object.keys(r)){var o,i;const e=s.toLowerCase();("x-amz-"===e.slice(0,6)&&(null===(o=t.unhoistableHeaders)||void 0===o||!o.has(e))||null!==(i=t.hoistableHeaders)&&void 0!==i&&i.has(e))&&(n[s]=r[s],delete r[s])}return(0,j.A)((0,j.A)({},e),{},{headers:r,query:n})}(z(e),{unhoistableHeaders:i,hoistableHeaders:a});f.sessionToken&&(v.query[u]=f.sessionToken),v.query["X-Amz-Algorithm"]=A,v.query["X-Amz-Credential"]="".concat(f.accessKeyId,"/").concat(y),v.query[d]=m,v.query["X-Amz-Expires"]=n.toString(10);const w=P(v,o,s);return v.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(w),v.query[l]=await this.get
1Signature(m,y,this.getSigningKey(f,p,g,h),this.createCanonicalRequest(v,w,await M(e,this.sha256))),v}async sign(e,t){return"string"===typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent(e,t){let{headers:r,payload:n}=e,{signingDate:o=new Date,priorSignature:i,signingRegion:a,signingService:c}=t;const d=null!==a&&void 0!==a?a:await this.regionProvider(),{shortDate:l,longDate:u}=this.formatDate(o),h=R(l,d,null!==c&&void 0!==c?c:this.service),f=await M({headers:{},body:n},this.sha256),p=new this.sha256;p.update(r);const m=s(await p.digest()),g=[S,u,h,i,m,f].join("\n");return this.signString(g,{signingDate:o,signingRegion:d,signingService:c})}async signMessage(e,t){let{signingDate:r=new Date,signingRegion:n,signingService:o}=t;return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e){let{signingDate:t=new Date,signingRegion:r,signingService:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=null!==r&&void 0!==r?r:await this.regionProvider(),{shortDate:a}
1=this.formatDate(t),d=new this.sha256(await this.getSigningKey(o,i,a,n));return d.update(c(e)),s(await d.digest())}async signRequest(e){let{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=null!==o&&void 0!==o?o:await this.regionProvider(),c=z(e),{longDate:d,shortDate:l}=this.formatDate(t),u=R(l,a,null!==i&&void 0!==i?i:this.service);c.headers[f]=d,s.sessionToken&&(c.headers[y]=s.sessionToken);const p=await M(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(g,c.headers)&&this.applyChecksum&&(c.headers[g]=p);const m=P(c,n,r),v=await this.getSignature(d,u,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(c,m,p));return c.headers[h]="".concat(A," ")+"Credential=".concat(s.accessKeyId,"/").concat(u,", ")+"SignedHeaders=".concat(this.getCanonicalHeaderList(m),", ")+"Signature=".concat(v),c}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n,A),i=new this.sha256(await r);return i.update(c(o)),s(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=await x(e,t.secretAccessKey,t.accessKeyId),a="".concat(r,":").concat(n,":").concat(o,":").concat(s(i),":").concat(t.sessionToken);if(a in C)return C[a];for(E.push(a);E.length>50;)delete C[E.shift()];let c="AWS4".concat(t.secretAccessKey);for(const s of[r,n,o,T])c=await x(e,c,s);return C[a]=c})(this.sha256,e,r,t,n||this.service)}}},92804:(e,t,r)=>{r.d(t,{$z:()=>h});var n=r(4038),o=r(52414),i=r(86520),s=r(77914);class a{constructor(e){var t,r,n,o,s;(0,i.A)(this,"beta",void 0),(0,i.A)(this,"minCapacity",void 0),(0,i.A)(this,"minFillRate",void 0),(0,i.A)(this,"scaleConstant",void 0),(0,i.A)(this,"smooth",void 0),(0,i.A)(this,"currentCapacity",0),(0,i.A)(this,"enabled",!1),(0,i.A)(this,"lastMaxRate",0),(0,i.A)(this,"measuredTxRate",0),(0,i.A)(this,"requestCount",0),(0,i.A)(this,"fillRate",void 0),(0,i.A)(this,"lastThrottleTime",void 0),(0,i.A)(this,"lastTimestamp",0),(0,i.A)(this,"lastTxRateBucket",void 0),(0,i.A)(this,"maxCapacity",void 0),(0,i.A)(this,"timeWindow",0),this.beta=null!==(t=null===e||void 0===e?void 0:e.beta)&&void 0!==t?t:.7,this.minCapacity=null!==(r=null===e||void 0===e?void 0:e.minCapacity)&&void 0!==r?r:1,this.minFillRate=null!==(n=null===e||void 0===e?void 0:e.minFillRate)&&void 0!==n?n:.5,this.scaleConstant=null!==(o=null===e||void 0===e?void 0:e.scaleConstant)&&void 0!==o?o:.4,this.smooth=null!==(s=null===e||void 0===e?void 0:e.smooth)&&void 0!==s?s:.8;const a=this.getCurrentTimeInSeconds();this.lastThrottleTime=a,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>a.setTimeoutFn(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),(0,s.Qb)(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}
1cubicThrottle(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.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}(0,i.A)(a,"setTimeoutFn",setTimeout);var c=r(63479);const d=e=>{let{retryDelay:t,retryCount:r,retryCost:n}=e;return{getRetryCount:()=>r,getRetryDelay:()=>Math.min(c.G8,t),getRetryCost:()=>n}};class l{constructor(e){(0,i.A)(this,"maxAttempts",void 0),(0,i.A)(this,"mode",o.cm.STANDARD),(0,i.A)(this,"capacity",c.Df),(0,i.A)(this,"retryBackoffStrategy",(()=>{let e=c.bp;return{computeNextBackoffDelay:t=>Math.floor(Math.min(c.G8,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})()),(0,i.A)(this,"maxAttemptsProvider",void 0),this.maxAttempts=e,this.maxAttemptsProvider="function"===typeof e?e:async()=>e}async acquireInitialRetryToken(e){return d({retryDelay:c.bp,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?c.jh:c.bp);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,d({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){var t;this.capacity=Math.max(c.Df,this.capacity+(null!==(t=e.getRetryCost())&&void 0!==t?t:c.XP))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of ".concat(o.Gz)),o.Gz}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?c.Rn:c.XS}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class u{constructor(e,t){(0,i.A)(this,"maxAttemptsProvider",void 0),(0,i.A)(this,"rateLimiter",void 0),(0,i.A)(this,"standardRetryStrategy",void 0),(0,i.A)(this,"mode",o.cm.ADAPTIVE),this.maxAttemptsProvider=e;const{rateLimiter:r}=null!==t&&void 0!==t?t:{};this.rateLimiter=null!==r&&void 0!==r?r:new a,this.standardRetryStrategy=new l(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}o.Gz;const h=e=>{const{retryStrategy:t,retryMode:r,maxAttempts:i}=e,s=(0,n.t)(null!==i&&void 0!==i?i:o.Gz);return Object.assign(e,{maxAttempts:s,retryStrategy:async()=>{if(t)return t;return await(0,n.t)(r)()===o.cm.ADAPTIVE?new u(s):new l(s)}})};o.L0},93586:(e,t,r)=>{r.d(t,{ey:()=>y});var n=r(89510),o=r(86520);class i{constructor(e){(0,o.A)(this,"method",void 0),(0,o.A)(this,"protocol",void 0),(0,o.A)(this,"hostname",void 0),(0,o.A)(this,"port",void 0),(0,o.A)(this,"path",void 0),(0,o.A)(this,"query",void 0),(0,o.A)(this,"headers",void 0),(0,o.A)(this,"username",void 0),(0,o.A)(this,"password",void 0),(0,o.A)(this,"fragment",void 0),(0,o.A)(this,"body",void 0),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)?"".concat(e.protocol,":"):e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/".concat(e.path):e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new i((0,n.A)((0,n.A)({},e),{},{headers:(0,n.A)({},e.headers)}));var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>
1{const o=r[t];return(0,n.A)((0,n.A)({},e),{},{[t]:Array.isArray(o)?[...o]:o})},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers}clone(){return i.clone(this)}}class s{constructor(e){(0,o.A)(this,"statusCode",void 0),(0,o.A)(this,"reason",void 0),(0,o.A)(this,"headers",void 0),(0,o.A)(this,"body",void 0),this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers}}var a=r(77914),c=r(33953),d=r(63479),l=r(85038);const u=e=>(null===e||void 0===e?void 0:e.body)instanceof ReadableStream,h=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"===typeof e?new Error(e):new Error("AWS SDK error wrapper for ".concat(e)),f=e=>"undefined"!==typeof e.acquireInitialRetryToken&&"undefined"!==typeof e.refreshRetryTokenForRetry&&"undefined"!==typeof e.recordSuccess,p=e=>{const t={error:e,errorType:m(e)},r=v(e.$response);return r&&(t.retryAfterHint=r),t},m=e=>(0,a.Qb)(e)?"THROTTLING":(0,a.bV)(e)?"TRANSIENT":(0,a.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",g={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},y=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const s=await e.maxAttempts();var a;if(!f(o))return null!==(a=o)&&void 0!==a&&a.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),a=new Error,f=0,v=0;const{request:w}=n,b=i.isInstance(w);for(b&&(w.headers[d.l5]=(0,l.v4)());;)try{b&&(w.headers[d.ok]="attempt=".concat(f+1,"; max=").concat(s));const{response:r,output:i}=await t(n);return o.recordSuccess(e),i.$metadata.attempts=f+1,i.$metadata.totalRetryDelay=v,{response:r,output:i}}catch(g){const t=p(g);var m;if(a=h(g),b&&u(w))throw null===(m=r.logger instanceof c.N?console:r.logger)||void 0===m||m.warn("An error was encountered in a non-retryable streaming request."),a;try{e=await o.refreshRetryTokenForRetry(e,t)}catch(y){throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=f+1,a.$metadata.totalRetryDelay=v,a}f=e.getRetryCount();const n=e.getRetryDelay();v+=n,await new Promise(e=>setTimeout(e,n))}}})(e),g)}}),v=e=>{if(!s.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)}},95769:(e,t,r)=>{r.d(t,{z:()=>E});var n=r(86520),o=r(80002),i=r(11723),s=r(82894),a=r(31748),c=r(9490);const d="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",l="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",u="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",h="(\\d?\\d)",f="(\\d{4})",p=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),m=new RegExp("^".concat(d,", ").concat(h," ").concat(l," ").concat(f," ").concat(u," GMT$")),g=new RegExp("^".concat(d,", ").concat(h,"-").concat(l,"-(\\d\\d) ").concat(u," GMT$")),y=new RegExp("^".concat(d," ").concat(l," ( [1-9]|\\d\\d) ").concat(u," ").concat(f,"$")),v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(e,t,r){const n=Number(e);if(n<t||n>r)throw new Error("Value ".concat(n," out of range [").concat(t,", ").concat(r,"]"))}var b=r(68001),A=r(88002),S=r(62),T=r(90546);class C extends a.f{constructor(e){super(),(0,n.A)(this,"settings",void 0),this.settings=e}read(e,t){const r=o.l.of(e);if(r.isListSchema())return(0,c.G)(t).map(e=>this.read(r.getValueSchema(),e));var n,i;if(r.isBlobSchema())return(null!==(n=null===(i=this.serdeContext)||void 0===i?void 0:i.base64Decoder)&&void 0!==n?n:S.E)(t);if(r.isTimestampSchema()){switch((0,T.V)(r,this.settings)){case 5:return(e=>{if(null==e)return;if("string"!==typeof e)throw new TypeError("RFC3339 timestamps must be strings");const t=p.exec(e);if(!t)throw new TypeError("Invalid RFC3339 timestamp format ".concat(e));const[,r,n,o,i,s,a,,c,d]=t;w(n,1,12),w(o,1,31),w(i,0,23),w(s,0,59),w(a,0,60);const l=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(i),Number(s),Number(a),Number(c)?Math.round(1e3*parseFloat("0.".concat(c))):0));if(l.setUTCFullYear(Number(r)),"Z"!=d.toUpperCase()){const[,e,t,r]=/([+-])(\d\d):(\d\d)/.exec(d)||[void 0,"+",0,0],n="-"===e?1:-1;l.setTime(l.getTime()+n*(60*Number(t)*60*1e3+60*Number(r)*1e3))}return l})(t);case 6:return(e=>{if(null==e)return;if("string"!==typeof e)throw new TypeError("RFC7231 timestamps must be strings.");let t,r,n,o,i,s,a,c;if((c=m.exec(e))?[,t,r,n,o,i,s,a]=c:(c=g.exec(e))?([,t,r,n,o,i,s,a]=c,n=(Number(n)+1900).toString()):(c=y.exec(e))&&([,r,t,o,i,s,a,n]=c),n&&s){const e=Date.UTC(Number(n),v.indexOf(r),Number(t),Number(o),Number(i),Number(s),a?Math.round(1e3*parseFloat("0.".concat(a))):0);w(t,1,31),w(o,0,23),w(i,0,59),w(s,0,60);const c=new Date(e);return c.setUTCFullYear(Number(n)),c}throw new TypeError("Invalid RFC7231 date-time value ".concat(e,"."))})(t);case 7:return(e=>{if(null==e)return;let t=NaN;if("number"===typeof e)t=e;else if("string"===typeof e){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else"object"===typeof e&&1===e.tag&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(1e3*t))})(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}}if(r.isStringSchema()){const e=r.getMergedTraits().mediaType;let n=t;if(e){r.getMergedTraits().httpHeader&&(n=this.base64ToUtf8(n));return("application/json"===e||e.endsWith("+json"))&&(n=b.A.from(n)),n}}
1return r.isNumericSchema()?Number(t):r.isBigIntegerSchema()?BigInt(t):r.isBigDecimalSchema()?new A.D(t,"bigDecimal"):r.isBooleanSchema()?"true"===String(t).toLowerCase():t}base64ToUtf8(e){var t,r,n,o;return(null!==(t=null===(r=this.serdeContext)||void 0===r?void 0:r.utf8Encoder)&&void 0!==t?t:i.P)((null!==(n=null===(o=this.serdeContext)||void 0===o?void 0:o.base64Decoder)&&void 0!==n?n:S.E)(e))}}class E extends a.f{constructor(e,t){super(),(0,n.A)(this,"codecDeserializer",void 0),(0,n.A)(this,"stringDeserializer",void 0),this.codecDeserializer=e,this.stringDeserializer=new C(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){var r,n;const a=o.l.of(e),c=a.getMergedTraits(),d=null!==(r=null===(n=this.serdeContext)||void 0===n?void 0:n.utf8Encoder)&&void 0!==r?r:i.P;if(c.httpHeader||c.httpResponseCode)return this.stringDeserializer.read(a,d(t));if(c.httpPayload){if(a.isBlobSchema()){var l,u;const e=null!==(l=null===(u=this.serdeContext)||void 0===u?void 0:u.utf8Decoder)&&void 0!==l?l:s.a;return"string"===typeof t?e(t):t}if(a.isStringSchema())return"byteLength"in t?d(t):t}return this.codecDeserializer.read(a,t)}}},96403:(e,t,r)=>{r.d(t,{_:()=>f});var n=r(86520),o=r(80002),i=r(98993);function s(e){return(e.includes(",")||e.includes('"'))&&(e='"'.concat(e.replace(/"/g,'\\"'),'"')),e}var a=r(68001),c=r(85038),d=r(11475),l=r(31748),u=r(90546);class h extends l.f{constructor(e){super(),(0,n.A)(this,"settings",void 0),(0,n.A)(this,"stringBuffer",""),this.settings=e}write(e,t){const r=o.l.of(e);switch(typeof t){case"object":if(null===t)return void(this.stringBuffer="null");if(r.isTimestampSchema()){if(!(t instanceof Date))throw new Error("@smithy/core/protocols - received non-Date value ".concat(t," when schema expected Date in ").concat(r.getName(!0)));switch((0,u.V)(r,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=(0,i.JV)(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t),this.stringBuffer=String(t.getTime()/1e3)}return}var n,l;if(r.isBlobSchema()&&"byteLength"in t)return void(this.stringBuffer=(null!==(n=null===(l=this.serdeContext)||void 0===l?void 0:l.base64Encoder)&&void 0!==n?n:d.n)(t));if(r.isListSchema()&&Array.isArray(t)){let e="";for(const n of t){this.write([r.getValueSchema(),r.getMergedTraits()],n);const t=this.flush();""!==e&&(e+=", "),e+=r.getValueSchema().isTimestampSchema()?t:s(t)}return void(this.stringBuffer=e)}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=r.getMergedTraits().mediaType;let o=t;if(e){var h,f;if(("application/json"===e||e.endsWith("+json"))&&(o=a.A.from(o)),r.getMergedTraits().httpHeader)return void(this.stringBuffer=(null!==(h=null===(f=this.serdeContext)||void 0===f?void 0:f.base64Encoder)&&void 0!==h?h:d.n)(o.toString()))}this.stringBuffer=t;break;default:r.isIdempotencyToken()?this.stringBuffer=(0,c.v4)():this.stringBuffer=String(t)}}flush(){const e=this.stringBuffer;return this.stringBuffer="",e}}class f{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new h(t);(0,n.A)(this,"codecSerializer",void 0),(0,n.A)(this,"stringSerializer",void 0),(0,n.A)(this,"buffer",void 0),this.codecSerializer=e,this.stringSerializer=r}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){const r=o.l.of(e),n=r.getMergedTraits();return n.httpHeader||n.httpLabel||n.httpQuery?(this.stringSerializer.write(r,t),void(this.buffer=this.stringSerializer.flush())):this.codecSerializer.write(r,t)}flush(){if(void 0!==this.buffer){const e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}},96904:(e,t,r)=>{r.d(t,{u:()=>l});var n=r(89510),o=r(86520),i=r(59020);const s="__smithy_context";var a=r(80002);const c="***SensitiveInformation***";function d(e,t){if(null==t)return t;const r=a.l.of(e);if(r.getMergedTraits().sensitive)return c;
1if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return c}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return c}else if(r.isStructSchema()&&"object"===typeof t){const e=t,n={};for(const[t,o]of r.structIterator())null!=e[t]&&(n[t]=d(o,e[t]));return n}return t}class l{constructor(){(0,o.A)(this,"middlewareStack",(0,i.o)()),(0,o.A)(this,"schema",void 0)}static classBuilder(){return new u}resolveMiddlewareWithContext(e,t,r,o){let{middlewareFn:i,clientName:a,commandName:c,inputFilterSensitiveLog:d,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:h,CommandCtor:f}=o;for(const n of i.bind(this)(f,e,t,r))this.middlewareStack.use(n);const p=e.concat(this.middlewareStack),{logger:m}=t,g=(0,n.A)({logger:m,clientName:a,commandName:c,inputFilterSensitiveLog:d,outputFilterSensitiveLog:l,[s]:(0,n.A)({commandInstance:this},u)},h),{requestHandler:y}=t;return p.resolve(e=>y.handle(e.request,r||{}),g)}}class u{constructor(){(0,o.A)(this,"_init",()=>{}),(0,o.A)(this,"_ep",{}),(0,o.A)(this,"_middlewareFn",()=>[]),(0,o.A)(this,"_commandName",""),(0,o.A)(this,"_clientName",""),(0,o.A)(this,"_additionalContext",{}),(0,o.A)(this,"_smithyContext",{}),(0,o.A)(this,"_inputFilterSensitiveLog",void 0),(0,o.A)(this,"_outputFilterSensitiveLog",void 0),(0,o.A)(this,"_serializer",null),(0,o.A)(this,"_deserializer",null),(0,o.A)(this,"_operationSchema",void 0)}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._smithyContext=(0,n.A)({service:e,operation:t},r),this}c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,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(){const e=this;let t;return t=class extends l{static getEndpointParameterInstructions(){return e._ep}constructor(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let[i]=r;super(),(0,o.A)(this,"input",void 0),(0,o.A)(this,"serialize",e._serializer),(0,o.A)(this,"deserialize",e._deserializer),this.input=null!==i&&void 0!==i?i:{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,o){var i,s,a,c;const l=e._operationSchema,u=null!==(i=null===l||void 0===l?void 0:l[4])&&void 0!==i?i:null===l||void 0===l?void 0:l.input,h=null!==(s=null===l||void 0===l?void 0:l[5])&&void 0!==s?s:null===l||void 0===l?void 0:l.output;return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:null!==(a=e._inputFilterSensitiveLog)&&void 0!==a?a:l?d.bind(null,u):e=>e,outputFilterSensitiveLog:null!==(c=e._outputFilterSensitiveLog)&&void 0!==c?c:l?d.bind(null,h):e=>e,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}},97519:(e,t,r)=>{r.d(t,{u:()=>o});const n="__smithy_context",o=e=>e[n]||(e[n]={})},98368:(e,t,r)=>{r.d(t,{D:()=>n});const n=e=>{if("string"===typeof e)return n(new URL(e));const{hostname:t,pathname:r,port:o,protocol:i,search:s}=e;let a;return s&&(a=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:i,path:r,query:a}}},98993:(e,t,r)=>{r.d(t,{JV:()=>w,l3:()=>R,t_:()=>A,xE:()=>E});const n=e=>{if(null!==e&&void 0!==e){if("string"===typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&g.warn(m("Expected number but observed string: ".concat(e))),t}if("number"===typeof e)return e;throw new TypeError("Expected number, got ".concat(typeof e,": ").concat(e))}},o=Math.ceil(2**127*(2-2**-23)),i=e=>{const t=n(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>o)throw new TypeError("Expected 32-bit float, got ".concat(e));return t},s=e=>{if(null!==e&&void 0!==e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError("Expected integer, got ".concat(typeof e,": ").concat(e))}},a=e=>d(e,16),c=e=>d(e,8),d=(e,t)=>{const r=s(e);if(void 0!==r&&l(r,t)!==r)throw new TypeError("Expected ".concat(t,"-bit integer, got ").concat(e));return r},l=(e,t)=>
1{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},u=e=>n("string"==typeof e?f(e):e),h=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,f=e=>{const t=e.match(h);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},p=e=>a("string"===typeof e?f(e):e),m=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),g={warn:console.warn},y=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),i=e.getUTCHours(),s=e.getUTCMinutes(),a=e.getUTCSeconds(),c=o<10?"0".concat(o):"".concat(o),d=i<10?"0".concat(i):"".concat(i),l=s<10?"0".concat(s):"".concat(s),u=a<10?"0".concat(a):"".concat(a);return"".concat(y[n],", ").concat(c," ").concat(v[r]," ").concat(t," ").concat(d,":").concat(l,":").concat(u," GMT")}const b=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),A=e=>{if(null===e||void 0===e)return;if("string"!==typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=b.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,s,a,c,d,l]=t,u=p(z(n)),h=O(o,"month",1,12),f=O(i,"day",1,31),m=x(u,h,f,{hours:s,minutes:a,seconds:c,fractionalMilliseconds:d});return"Z"!=l.toUpperCase()&&m.setTime(m.getTime()-L(l)),m},S=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$/),T=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$/),C=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})$/),E=e=>{if(null===e||void 0===e)return;if("string"!==typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=S.exec(e);if(t){const[e,r,n,o,i,s,a,c]=t;return x(p(z(o)),N(n),O(r,"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c})}if(t=T.exec(e),t){const[e,r,n,o,i,s,a,c]=t;return M(x(P(o),N(n),O(r,"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c}))}if(t=C.exec(e),t){const[e,r,n,o,i,s,a,c]=t;return x(p(z(c)),N(r),O(n.trimLeft(),"day",1,31),{hours:o,minutes:i,seconds:s,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")},R=e=>{if(null===e||void 0===e)return;let t;if("number"===typeof e)t=e;else if("string"===typeof e)t=u(e);else{if("object"!==typeof e||1!==e.tag)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=e.value}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},x=(e,t,r,n)=>{const o=t-1;return k(e,o,r),new Date(Date.UTC(e,o,r,O(n.hours,"hour",0,23),O(n.minutes,"minute",0,59),O(n.seconds,"seconds",0,60),j(n.fractionalMilliseconds)))},P=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+p(z(e));return r<t?r+100:r},M=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,N=e=>{const t=v.indexOf(e);if(t<0)throw new TypeError("Invalid month: ".concat(e));return t+1},I=[31,28,31,30,31,30,31,31,30,31,30,31],k=(e,t,r)=>{let n=I[t];if(1===t&&D(e)&&(n=29),r>n)throw new TypeError("Invalid day for ".concat(v[t]," in ").concat(e,": ").concat(r))},D=e=>e%4===0&&(e%100!==0||e%400===0),O=(e,t,r,n)=>{const o=(e=>c("string"===typeof e?f(e):e))(z(e));if(o<r||o>n)throw new TypeError("".concat(t," must be between ").concat(r," and ").concat(n,", inclusive"));return o},j=e=>null===e||void 0===e?0:1e3*(e=>i("string"==typeof e?f(e):e))("0."+e),L=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError("Offset direction, ".concat(t,', must be "+" or "-"'));r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},z=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.