From f7181b784bde781cbca4e885ae1f3404f13437ca Mon Sep 17 00:00:00 2001 From: Francis Date: Wed, 17 Apr 2024 18:02:53 -0700 Subject: [PATCH] lambda nodejs snaps Signed-off-by: Francis --- ...efaultTestDeployAssertD40B5C28.assets.json | 10 ++++---- ...aultTestDeployAssertD40B5C28.template.json | 4 ++-- .../index.js | 2 +- .../index.js | 24 +++++++++---------- .../node_modules/.yarn-integrity | 0 .../node_modules/delay/index.d.ts | 0 .../node_modules/delay/index.js | 0 .../node_modules/delay/license | 0 .../node_modules/delay/package.json | 0 .../node_modules/delay/readme.md | 0 .../package.json | 0 .../yarn.lock | 0 ...cdk-integ-lambda-nodejs-latest.assets.json | 10 ++++---- ...k-integ-lambda-nodejs-latest.template.json | 2 +- .../integ.latest.js.snapshot/manifest.json | 4 ++-- .../test/integ.latest.js.snapshot/tree.json | 2 +- 16 files changed, 29 insertions(+), 29 deletions(-) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.bundle => asset.2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.bundle}/index.js (99%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/index.js (91%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/.yarn-integrity (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/delay/index.d.ts (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/delay/index.js (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/delay/license (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/delay/package.json (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/node_modules/delay/readme.md (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/package.json (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7 => asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8}/yarn.lock (100%) diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json index 9d6f9cd305a32..c03d1a71a8908 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814": { + "2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b": { "source": { - "path": "asset.cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.bundle", + "path": "asset.2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.zip", + "objectKey": "2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "c2fe281e058ea480def02a361e0682b20073691f58e0b7c6e020fbcb5500ce85": { + "a58da03bc543b60eed2114f6ccbd66fd45d0e260f5389699ba6261189779aa74": { "source": { "path": "LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "c2fe281e058ea480def02a361e0682b20073691f58e0b7c6e020fbcb5500ce85.json", + "objectKey": "a58da03bc543b60eed2114f6ccbd66fd45d0e260f5389699ba6261189779aa74.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json index bbd9216074c9b..c38fff462e30f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1713373833322" + "salt": "1713402036147" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.zip" + "S3Key": "2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.zip" }, "Timeout": 120, "Handler": "index.handler", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.bundle/index.js index d99ddf1f7e394..112fceae7206a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.cfdb46b4f2c6702b4a1cc8e23ca426e8de43d13567e73a8453d01c1176393814.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.2ba56256d9f272896a3dc876ac7bf8543e4b1c84509e62514c7c786bcdd6739b.bundle/index.js @@ -2779,7 +2779,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; } } const normalizedPath = `${(path == null ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path == null ? void 0 : path.endsWith("/")) ? "/" : ""}`; - const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath); + const doubleEncoded = encodeURIComponent(normalizedPath); return doubleEncoded.replace(/%2F/g, "/"); } return path; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/index.js similarity index 91% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/index.js index 8128555922952..5507b91738018 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/index.js @@ -1,11 +1,11 @@ -"use strict";var HL=Object.create;var Ja=Object.defineProperty;var $L=Object.getOwnPropertyDescriptor;var KL=Object.getOwnPropertyNames;var VL=Object.getPrototypeOf,XL=Object.prototype.hasOwnProperty;var je=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ni=(e,t)=>{for(var n in t)Ja(e,n,{get:t[n],enumerable:!0})},KS=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KL(t))!XL.call(e,o)&&o!==n&&Ja(e,o,{get:()=>t[o],enumerable:!(r=$L(t,o))||r.enumerable});return e};var Er=(e,t,n)=>(n=e!=null?HL(VL(e)):{},KS(t||!e||!e.__esModule?Ja(n,"default",{value:e,enumerable:!0}):n,e)),J=e=>KS(Ja({},"__esModule",{value:!0}),e);var te={};Ni(te,{__addDisposableResource:()=>pb,__assign:()=>Qa,__asyncDelegator:()=>sb,__asyncGenerator:()=>ob,__asyncValues:()=>ib,__await:()=>Pr,__awaiter:()=>QS,__classPrivateFieldGet:()=>lb,__classPrivateFieldIn:()=>mb,__classPrivateFieldSet:()=>ub,__createBinding:()=>ec,__decorate:()=>WS,__disposeResources:()=>fb,__esDecorate:()=>WL,__exportStar:()=>eb,__extends:()=>VS,__generator:()=>ZS,__importDefault:()=>db,__importStar:()=>cb,__makeTemplateObject:()=>ab,__metadata:()=>JS,__param:()=>YS,__propKey:()=>JL,__read:()=>jm,__rest:()=>XS,__runInitializers:()=>YL,__setFunctionName:()=>QL,__spread:()=>tb,__spreadArray:()=>rb,__spreadArrays:()=>nb,__values:()=>Za,default:()=>tj});function VS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function XS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function YS(e,t){return function(n,r){t(n,r,e)}}function WL(e,t,n,r,o,s){function a(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=n.length-1;C>=0;C--){var P={};for(var A in r)P[A]=A==="access"?{}:r[A];for(var A in r.access)P.access[A]=r.access[A];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(G||null))};var v=(0,n[C])(i==="accessor"?{get:c.get,set:c.set}:c[u],P);if(i==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(y=a(v.get))&&(c.get=y),(y=a(v.set))&&(c.set=y),(y=a(v.init))&&o.unshift(y)}else(y=a(v))&&(i==="field"?o.unshift(y):c[u]=y)}l&&Object.defineProperty(l,r.name,c),g=!0}function YL(e,t,n){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function tb(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Pr?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function sb(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:Pr(e[o](a)),done:!1}:s?s(a):a}:s}}function ib(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Za=="function"?Za(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function ab(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function cb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&ec(t,e,n);return ZL(t,e),t}function db(e){return e&&e.__esModule?e:{default:e}}function lb(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function ub(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function mb(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function pb(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function fb(e){function t(r){e.error=e.hasError?new ej(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var Lm,Qa,ec,ZL,ej,tj,ne=je(()=>{Lm=function(e,t){return Lm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Lm(e,t)};Qa=function(){return Qa=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{var tc=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,nc=(e,t)=>tc(e,"name",{value:t,configurable:!0}),sj=(e,t)=>{for(var n in t)tc(e,n,{get:t[n],enumerable:!0})},ij=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rj(t))!oj.call(e,o)&&o!==n&&tc(e,o,{get:()=>t[o],enumerable:!(r=nj(t,o))||r.enumerable});return e},aj=e=>ij(tc({},"__esModule",{value:!0}),e),yb={};sj(yb,{AlgorithmId:()=>Cb,EndpointURLScheme:()=>_b,FieldPosition:()=>Sb,HttpApiKeyAuthLocation:()=>hb,HttpAuthLocation:()=>gb,IniSectionType:()=>bb,RequestHandlerProtocol:()=>Eb,SMITHY_CONTEXT_KEY:()=>mj,getDefaultClientConfiguration:()=>lj,resolveDefaultRuntimeConfig:()=>uj});Pb.exports=aj(yb);var gb=(e=>(e.HEADER="header",e.QUERY="query",e))(gb||{}),hb=(e=>(e.HEADER="header",e.QUERY="query",e))(hb||{}),_b=(e=>(e.HTTP="http",e.HTTPS="https",e))(_b||{}),Cb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(Cb||{}),cj=nc(e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&t.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:t,addChecksumAlgorithm(n){this._checksumAlgorithms.push(n)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),dj=nc(e=>{let t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),lj=nc(e=>({...cj(e)}),"getDefaultClientConfiguration"),uj=nc(e=>({...dj(e)}),"resolveDefaultRuntimeConfig"),Sb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(Sb||{}),mj="__smithy_context",bb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(bb||{}),Eb=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(Eb||{})});var Ne=m((wbe,Rb)=>{var rc=Object.defineProperty,pj=Object.getOwnPropertyDescriptor,fj=Object.getOwnPropertyNames,yj=Object.prototype.hasOwnProperty,wn=(e,t)=>rc(e,"name",{value:t,configurable:!0}),gj=(e,t)=>{for(var n in t)rc(e,n,{get:t[n],enumerable:!0})},hj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fj(t))!yj.call(e,o)&&o!==n&&rc(e,o,{get:()=>t[o],enumerable:!(r=pj(t,o))||r.enumerable});return e},_j=e=>hj(rc({},"__esModule",{value:!0}),e),vb={};gj(vb,{Field:()=>Ej,Fields:()=>Pj,HttpRequest:()=>vj,HttpResponse:()=>wj,getHttpHandlerExtensionConfiguration:()=>Cj,isValidHostname:()=>Ib,resolveHttpHandlerRuntimeConfig:()=>Sj});Rb.exports=_j(vb);var Cj=wn(e=>{let t=e.httpHandler;return{setHttpHandler(n){t=n},httpHandler(){return t},updateHttpClientConfig(n,r){t.updateHttpClientConfig(n,r)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Sj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),bj=w(),wb=class{constructor({name:t,kind:n=bj.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=n,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}};wn(wb,"Field");var Ej=wb,xb=class{constructor({fields:t=[],encoding:n="utf-8"}){this.entries={},t.forEach(this.setField.bind(this)),this.encoding=n}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(n=>n.kind===t)}};wn(xb,"Fields");var Pj=xb,kb=class Ab{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new Ab({...this,headers:{...this.headers}});return t.query&&(t.query=Ob(t.query)),t}};wn(kb,"HttpRequest");var vj=kb;function Ob(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}wn(Ob,"cloneQuery");var Nb=class{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};wn(Nb,"HttpResponse");var wj=Nb;function Ib(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(Ib,"isValidHostname")});var Bb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var xj=Ne();function Tb(e){return t=>async n=>{let{request:r}=n;return xj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),t({...n,request:r})}}Zt.addExpectContinueMiddleware=Tb;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var kj=e=>({applyToStack:t=>{t.add(Tb(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=kj});var Ii=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getHostHeaderPlugin=ft.hostHeaderMiddlewareOptions=ft.hostHeaderMiddleware=ft.resolveHostHeaderConfig=void 0;var Aj=Ne();function Oj(e){return e}ft.resolveHostHeaderConfig=Oj;var Nj=e=>t=>async n=>{if(!Aj.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return t(n)};ft.hostHeaderMiddleware=Nj;ft.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Ij=e=>({applyToStack:t=>{t.add((0,ft.hostHeaderMiddleware)(e),ft.hostHeaderMiddlewareOptions)}});ft.getHostHeaderPlugin=Ij});var qb=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var Rj=()=>(e,t)=>async n=>{var r,o;try{let s=await e(n),{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:y}=l,g=c??t.inputFilterSensitiveLog,C=y??t.outputFilterSensitiveLog,{$metadata:P,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:a,commandName:i,input:g(n.input),output:C(A),metadata:P}),s}catch(s){let{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c}=l,y=c??t.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:a,commandName:i,input:y(n.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=Rj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Tj=e=>({applyToStack:t=>{t.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Tj});var Ri=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Bj=(ne(),J(te));Bj.__exportStar(qb(),Um)});var Ti=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var qj=Ne(),Db="X-Amzn-Trace-Id",Dj="AWS_LAMBDA_FUNCTION_NAME",Mj="_X_AMZN_TRACE_ID",Fj=e=>t=>async n=>{let{request:r}=n;if(!qj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Db))return t(n);let o=process.env[Dj],s=process.env[Mj],a=i=>typeof i=="string"&&i.length>0;return a(o)&&a(s)&&(r.headers[Db]=s),t({...n,request:r})};It.recursionDetectionMiddleware=Fj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Lj=e=>({applyToStack:t=>{t.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Lj});var Ub=m((Ibe,jb)=>{var oc=Object.defineProperty,jj=Object.getOwnPropertyDescriptor,Uj=Object.getOwnPropertyNames,zj=Object.prototype.hasOwnProperty,yt=(e,t)=>oc(e,"name",{value:t,configurable:!0}),Gj=(e,t)=>{for(var n in t)oc(e,n,{get:t[n],enumerable:!0})},Hj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Uj(t))!zj.call(e,o)&&o!==n&&oc(e,o,{get:()=>t[o],enumerable:!(r=jj(t,o))||r.enumerable});return e},$j=e=>Hj(oc({},"__esModule",{value:!0}),e),Lb={};Gj(Lb,{constructStack:()=>zm});jb.exports=$j(Lb);var ir=yt((e,t)=>{let n=[];if(e&&n.push(e),t)for(let r of t)n.push(r);return n},"getAllAliases"),xn=yt((e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,"getMiddlewareNameWithAliases"),zm=yt(()=>{let e=[],t=[],n=!1,r=new Set,o=yt(y=>y.sort((g,C)=>Mb[C.step]-Mb[g.step]||Fb[C.priority||"normal"]-Fb[g.priority||"normal"]),"sort"),s=yt(y=>{let g=!1,C=yt(P=>{let A=ir(P.name,P.aliases);if(A.includes(y)){g=!0;for(let v of A)r.delete(v);return!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},"removeByName"),a=yt(y=>{let g=!1,C=yt(P=>{if(P.middleware===y){g=!0;for(let A of ir(P.name,P.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},"removeByReference"),i=yt(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),t.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,c.identifyOnResolve()),y},"cloneTo"),u=yt(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=yt((y=!1)=>{let g=[],C=[],P={};return e.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;g.push(G)}),t.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;C.push(G)}),C.forEach(v=>{if(v.toMiddleware){let G=P[v.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${v.toMiddleware} is not found when adding ${xn(v.name,v.aliases)} middleware ${v.relation} ${v.toMiddleware}`)}v.relation==="after"&&G.after.push(v),v.relation==="before"&&G.before.push(v)}}),o(g).map(u).reduce((v,G)=>(v.push(...G),v),[])},"getMiddlewareList"),c={add:(y,g={})=>{let{name:C,override:P,aliases:A}=g,v={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Le=e.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Le===-1)continue;let Ae=e[Le];if(Ae.step!==v.step||v.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${v.priority} priority in ${v.step} step.`);e.splice(Le,1)}}for(let Y of G)r.add(Y)}e.push(v)},addRelativeTo:(y,g)=>{let{name:C,override:P,aliases:A}=g,v={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Le=t.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Le===-1)continue;let Ae=t[Le];if(Ae.toMiddleware!==v.toMiddleware||Ae.relation!==v.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${v.relation} "${v.toMiddleware}" middleware.`);t.splice(Le,1)}}for(let Y of G)r.add(Y)}t.push(v)},clone:()=>i(zm()),use:y=>{y.applyToStack(c)},remove:y=>typeof y=="string"?s(y):a(y),removeByTag:y=>{let g=!1,C=yt(P=>{let{tags:A,name:v,aliases:G}=P;if(A&&A.includes(y)){let Y=ir(v,G);for(let Le of Y)r.delete(Le);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},concat:y=>{var g;let C=i(zm());return C.use(y),C.identifyOnResolve(n||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(n=y),n},resolve:(y,g)=>{for(let C of l().map(P=>P.middleware).reverse())y=C(y,g);return n&&console.log(c.identify()),y}};return c},"constructStack"),Mb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Fb={high:3,normal:2,low:1}});var ic=m((Rbe,Gb)=>{var sc=Object.defineProperty,Kj=Object.getOwnPropertyDescriptor,Vj=Object.getOwnPropertyNames,Xj=Object.prototype.hasOwnProperty,Wj=(e,t)=>sc(e,"name",{value:t,configurable:!0}),Yj=(e,t)=>{for(var n in t)sc(e,n,{get:t[n],enumerable:!0})},Jj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vj(t))!Xj.call(e,o)&&o!==n&&sc(e,o,{get:()=>t[o],enumerable:!(r=Kj(t,o))||r.enumerable});return e},Qj=e=>Jj(sc({},"__esModule",{value:!0}),e),zb={};Yj(zb,{isArrayBuffer:()=>Zj});Gb.exports=Qj(zb);var Zj=Wj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var vr=m((Tbe,Kb)=>{var ac=Object.defineProperty,eU=Object.getOwnPropertyDescriptor,tU=Object.getOwnPropertyNames,nU=Object.prototype.hasOwnProperty,Hb=(e,t)=>ac(e,"name",{value:t,configurable:!0}),rU=(e,t)=>{for(var n in t)ac(e,n,{get:t[n],enumerable:!0})},oU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tU(t))!nU.call(e,o)&&o!==n&&ac(e,o,{get:()=>t[o],enumerable:!(r=eU(t,o))||r.enumerable});return e},sU=e=>oU(ac({},"__esModule",{value:!0}),e),$b={};rU($b,{fromArrayBuffer:()=>aU,fromString:()=>cU});Kb.exports=sU($b);var iU=ic(),Gm=require("buffer"),aU=Hb((e,t=0,n=e.byteLength-t)=>{if(!(0,iU.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Gm.Buffer.from(e,t,n)},"fromArrayBuffer"),cU=Hb((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Gm.Buffer.from(e,t):Gm.Buffer.from(e)},"fromString")});var Vb=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.fromBase64=void 0;var dU=vr(),lU=/^[A-Za-z0-9+/]*={0,2}$/,uU=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!lU.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,dU.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};cc.fromBase64=uU});var st=m((qbe,Jb)=>{var dc=Object.defineProperty,mU=Object.getOwnPropertyDescriptor,pU=Object.getOwnPropertyNames,fU=Object.prototype.hasOwnProperty,Hm=(e,t)=>dc(e,"name",{value:t,configurable:!0}),yU=(e,t)=>{for(var n in t)dc(e,n,{get:t[n],enumerable:!0})},gU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pU(t))!fU.call(e,o)&&o!==n&&dc(e,o,{get:()=>t[o],enumerable:!(r=mU(t,o))||r.enumerable});return e},hU=e=>gU(dc({},"__esModule",{value:!0}),e),Xb={};yU(Xb,{fromUtf8:()=>Yb,toUint8Array:()=>_U,toUtf8:()=>CU});Jb.exports=hU(Xb);var Wb=vr(),Yb=Hm(e=>{let t=(0,Wb.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),_U=Hm(e=>typeof e=="string"?Yb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),CU=Hm(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Wb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8")});var Qb=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.toBase64=void 0;var SU=vr(),bU=st(),EU=e=>{let t;if(typeof e=="string"?t=(0,bU.fromUtf8)(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,SU.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};lc.toBase64=EU});var wr=m((Mbe,uc)=>{var Zb=Object.defineProperty,PU=Object.getOwnPropertyDescriptor,vU=Object.getOwnPropertyNames,wU=Object.prototype.hasOwnProperty,$m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vU(t))!wU.call(e,o)&&o!==n&&Zb(e,o,{get:()=>t[o],enumerable:!(r=PU(t,o))||r.enumerable});return e},eE=(e,t,n)=>($m(e,t,"default"),n&&$m(n,t,"default")),xU=e=>$m(Zb({},"__esModule",{value:!0}),e),Km={};uc.exports=xU(Km);eE(Km,Vb(),uc.exports);eE(Km,Qb(),uc.exports)});var tE=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.getAwsChunkedEncodingStream=void 0;var kU=require("stream"),AU=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:a}=t,i=n!==void 0&&o!==void 0&&s!==void 0&&a!==void 0,u=i?a(o,e):void 0,l=new kU.Readable({read:()=>{}});return e.on("data",c=>{let y=r(c)||0;l.push(`${y.toString(16)}\r +"use strict";var HL=Object.create;var Ya=Object.defineProperty;var $L=Object.getOwnPropertyDescriptor;var KL=Object.getOwnPropertyNames;var VL=Object.getPrototypeOf,XL=Object.prototype.hasOwnProperty;var je=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ni=(e,t)=>{for(var n in t)Ya(e,n,{get:t[n],enumerable:!0})},KS=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KL(t))!XL.call(e,o)&&o!==n&&Ya(e,o,{get:()=>t[o],enumerable:!(r=$L(t,o))||r.enumerable});return e};var Er=(e,t,n)=>(n=e!=null?HL(VL(e)):{},KS(t||!e||!e.__esModule?Ya(n,"default",{value:e,enumerable:!0}):n,e)),J=e=>KS(Ya({},"__esModule",{value:!0}),e);var te={};Ni(te,{__addDisposableResource:()=>pb,__assign:()=>Ja,__asyncDelegator:()=>sb,__asyncGenerator:()=>ob,__asyncValues:()=>ib,__await:()=>Pr,__awaiter:()=>QS,__classPrivateFieldGet:()=>lb,__classPrivateFieldIn:()=>mb,__classPrivateFieldSet:()=>ub,__createBinding:()=>Za,__decorate:()=>WS,__disposeResources:()=>fb,__esDecorate:()=>WL,__exportStar:()=>eb,__extends:()=>VS,__generator:()=>ZS,__importDefault:()=>db,__importStar:()=>cb,__makeTemplateObject:()=>ab,__metadata:()=>JS,__param:()=>YS,__propKey:()=>JL,__read:()=>jm,__rest:()=>XS,__runInitializers:()=>YL,__setFunctionName:()=>QL,__spread:()=>tb,__spreadArray:()=>rb,__spreadArrays:()=>nb,__values:()=>Qa,default:()=>tj});function VS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function XS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function YS(e,t){return function(n,r){t(n,r,e)}}function WL(e,t,n,r,o,s){function a(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=n.length-1;C>=0;C--){var P={};for(var A in r)P[A]=A==="access"?{}:r[A];for(var A in r.access)P.access[A]=r.access[A];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(G||null))};var v=(0,n[C])(i==="accessor"?{get:c.get,set:c.set}:c[u],P);if(i==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(y=a(v.get))&&(c.get=y),(y=a(v.set))&&(c.set=y),(y=a(v.init))&&o.unshift(y)}else(y=a(v))&&(i==="field"?o.unshift(y):c[u]=y)}l&&Object.defineProperty(l,r.name,c),g=!0}function YL(e,t,n){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function tb(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Pr?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function sb(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:Pr(e[o](a)),done:!1}:s?s(a):a}:s}}function ib(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Qa=="function"?Qa(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function ab(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function cb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Za(t,e,n);return ZL(t,e),t}function db(e){return e&&e.__esModule?e:{default:e}}function lb(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function ub(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function mb(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function pb(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function fb(e){function t(r){e.error=e.hasError?new ej(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var Lm,Ja,Za,ZL,ej,tj,ne=je(()=>{Lm=function(e,t){return Lm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Lm(e,t)};Ja=function(){return Ja=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{var ec=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,tc=(e,t)=>ec(e,"name",{value:t,configurable:!0}),sj=(e,t)=>{for(var n in t)ec(e,n,{get:t[n],enumerable:!0})},ij=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rj(t))!oj.call(e,o)&&o!==n&&ec(e,o,{get:()=>t[o],enumerable:!(r=nj(t,o))||r.enumerable});return e},aj=e=>ij(ec({},"__esModule",{value:!0}),e),yb={};sj(yb,{AlgorithmId:()=>Cb,EndpointURLScheme:()=>_b,FieldPosition:()=>Sb,HttpApiKeyAuthLocation:()=>hb,HttpAuthLocation:()=>gb,IniSectionType:()=>bb,RequestHandlerProtocol:()=>Eb,SMITHY_CONTEXT_KEY:()=>mj,getDefaultClientConfiguration:()=>lj,resolveDefaultRuntimeConfig:()=>uj});Pb.exports=aj(yb);var gb=(e=>(e.HEADER="header",e.QUERY="query",e))(gb||{}),hb=(e=>(e.HEADER="header",e.QUERY="query",e))(hb||{}),_b=(e=>(e.HTTP="http",e.HTTPS="https",e))(_b||{}),Cb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(Cb||{}),cj=tc(e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&t.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:t,addChecksumAlgorithm(n){this._checksumAlgorithms.push(n)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),dj=tc(e=>{let t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),lj=tc(e=>({...cj(e)}),"getDefaultClientConfiguration"),uj=tc(e=>({...dj(e)}),"resolveDefaultRuntimeConfig"),Sb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(Sb||{}),mj="__smithy_context",bb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(bb||{}),Eb=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(Eb||{})});var Ne=m((wbe,Rb)=>{var nc=Object.defineProperty,pj=Object.getOwnPropertyDescriptor,fj=Object.getOwnPropertyNames,yj=Object.prototype.hasOwnProperty,wn=(e,t)=>nc(e,"name",{value:t,configurable:!0}),gj=(e,t)=>{for(var n in t)nc(e,n,{get:t[n],enumerable:!0})},hj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fj(t))!yj.call(e,o)&&o!==n&&nc(e,o,{get:()=>t[o],enumerable:!(r=pj(t,o))||r.enumerable});return e},_j=e=>hj(nc({},"__esModule",{value:!0}),e),vb={};gj(vb,{Field:()=>Ej,Fields:()=>Pj,HttpRequest:()=>vj,HttpResponse:()=>wj,getHttpHandlerExtensionConfiguration:()=>Cj,isValidHostname:()=>Ib,resolveHttpHandlerRuntimeConfig:()=>Sj});Rb.exports=_j(vb);var Cj=wn(e=>{let t=e.httpHandler;return{setHttpHandler(n){t=n},httpHandler(){return t},updateHttpClientConfig(n,r){t.updateHttpClientConfig(n,r)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Sj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),bj=w(),wb=class{constructor({name:t,kind:n=bj.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=n,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}};wn(wb,"Field");var Ej=wb,xb=class{constructor({fields:t=[],encoding:n="utf-8"}){this.entries={},t.forEach(this.setField.bind(this)),this.encoding=n}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(n=>n.kind===t)}};wn(xb,"Fields");var Pj=xb,kb=class Ab{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new Ab({...this,headers:{...this.headers}});return t.query&&(t.query=Ob(t.query)),t}};wn(kb,"HttpRequest");var vj=kb;function Ob(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}wn(Ob,"cloneQuery");var Nb=class{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};wn(Nb,"HttpResponse");var wj=Nb;function Ib(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(Ib,"isValidHostname")});var Bb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var xj=Ne();function Tb(e){return t=>async n=>{let{request:r}=n;return xj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),t({...n,request:r})}}Zt.addExpectContinueMiddleware=Tb;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var kj=e=>({applyToStack:t=>{t.add(Tb(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=kj});var Ii=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getHostHeaderPlugin=ft.hostHeaderMiddlewareOptions=ft.hostHeaderMiddleware=ft.resolveHostHeaderConfig=void 0;var Aj=Ne();function Oj(e){return e}ft.resolveHostHeaderConfig=Oj;var Nj=e=>t=>async n=>{if(!Aj.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return t(n)};ft.hostHeaderMiddleware=Nj;ft.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Ij=e=>({applyToStack:t=>{t.add((0,ft.hostHeaderMiddleware)(e),ft.hostHeaderMiddlewareOptions)}});ft.getHostHeaderPlugin=Ij});var qb=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var Rj=()=>(e,t)=>async n=>{var r,o;try{let s=await e(n),{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:y}=l,g=c??t.inputFilterSensitiveLog,C=y??t.outputFilterSensitiveLog,{$metadata:P,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:a,commandName:i,input:g(n.input),output:C(A),metadata:P}),s}catch(s){let{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c}=l,y=c??t.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:a,commandName:i,input:y(n.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=Rj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Tj=e=>({applyToStack:t=>{t.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Tj});var Ri=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Bj=(ne(),J(te));Bj.__exportStar(qb(),Um)});var Ti=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var qj=Ne(),Db="X-Amzn-Trace-Id",Dj="AWS_LAMBDA_FUNCTION_NAME",Mj="_X_AMZN_TRACE_ID",Fj=e=>t=>async n=>{let{request:r}=n;if(!qj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Db))return t(n);let o=process.env[Dj],s=process.env[Mj],a=i=>typeof i=="string"&&i.length>0;return a(o)&&a(s)&&(r.headers[Db]=s),t({...n,request:r})};It.recursionDetectionMiddleware=Fj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Lj=e=>({applyToStack:t=>{t.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Lj});var Ub=m((Ibe,jb)=>{var rc=Object.defineProperty,jj=Object.getOwnPropertyDescriptor,Uj=Object.getOwnPropertyNames,zj=Object.prototype.hasOwnProperty,yt=(e,t)=>rc(e,"name",{value:t,configurable:!0}),Gj=(e,t)=>{for(var n in t)rc(e,n,{get:t[n],enumerable:!0})},Hj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Uj(t))!zj.call(e,o)&&o!==n&&rc(e,o,{get:()=>t[o],enumerable:!(r=jj(t,o))||r.enumerable});return e},$j=e=>Hj(rc({},"__esModule",{value:!0}),e),Lb={};Gj(Lb,{constructStack:()=>zm});jb.exports=$j(Lb);var ir=yt((e,t)=>{let n=[];if(e&&n.push(e),t)for(let r of t)n.push(r);return n},"getAllAliases"),xn=yt((e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,"getMiddlewareNameWithAliases"),zm=yt(()=>{let e=[],t=[],n=!1,r=new Set,o=yt(y=>y.sort((g,C)=>Mb[C.step]-Mb[g.step]||Fb[C.priority||"normal"]-Fb[g.priority||"normal"]),"sort"),s=yt(y=>{let g=!1,C=yt(P=>{let A=ir(P.name,P.aliases);if(A.includes(y)){g=!0;for(let v of A)r.delete(v);return!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},"removeByName"),a=yt(y=>{let g=!1,C=yt(P=>{if(P.middleware===y){g=!0;for(let A of ir(P.name,P.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},"removeByReference"),i=yt(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),t.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,c.identifyOnResolve()),y},"cloneTo"),u=yt(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=yt((y=!1)=>{let g=[],C=[],P={};return e.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;g.push(G)}),t.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;C.push(G)}),C.forEach(v=>{if(v.toMiddleware){let G=P[v.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${v.toMiddleware} is not found when adding ${xn(v.name,v.aliases)} middleware ${v.relation} ${v.toMiddleware}`)}v.relation==="after"&&G.after.push(v),v.relation==="before"&&G.before.push(v)}}),o(g).map(u).reduce((v,G)=>(v.push(...G),v),[])},"getMiddlewareList"),c={add:(y,g={})=>{let{name:C,override:P,aliases:A}=g,v={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Le=e.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Le===-1)continue;let Ae=e[Le];if(Ae.step!==v.step||v.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${v.priority} priority in ${v.step} step.`);e.splice(Le,1)}}for(let Y of G)r.add(Y)}e.push(v)},addRelativeTo:(y,g)=>{let{name:C,override:P,aliases:A}=g,v={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Le=t.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Le===-1)continue;let Ae=t[Le];if(Ae.toMiddleware!==v.toMiddleware||Ae.relation!==v.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${v.relation} "${v.toMiddleware}" middleware.`);t.splice(Le,1)}}for(let Y of G)r.add(Y)}t.push(v)},clone:()=>i(zm()),use:y=>{y.applyToStack(c)},remove:y=>typeof y=="string"?s(y):a(y),removeByTag:y=>{let g=!1,C=yt(P=>{let{tags:A,name:v,aliases:G}=P;if(A&&A.includes(y)){let Y=ir(v,G);for(let Le of Y)r.delete(Le);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),t=t.filter(C),g},concat:y=>{var g;let C=i(zm());return C.use(y),C.identifyOnResolve(n||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(n=y),n},resolve:(y,g)=>{for(let C of l().map(P=>P.middleware).reverse())y=C(y,g);return n&&console.log(c.identify()),y}};return c},"constructStack"),Mb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Fb={high:3,normal:2,low:1}});var sc=m((Rbe,Gb)=>{var oc=Object.defineProperty,Kj=Object.getOwnPropertyDescriptor,Vj=Object.getOwnPropertyNames,Xj=Object.prototype.hasOwnProperty,Wj=(e,t)=>oc(e,"name",{value:t,configurable:!0}),Yj=(e,t)=>{for(var n in t)oc(e,n,{get:t[n],enumerable:!0})},Jj=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vj(t))!Xj.call(e,o)&&o!==n&&oc(e,o,{get:()=>t[o],enumerable:!(r=Kj(t,o))||r.enumerable});return e},Qj=e=>Jj(oc({},"__esModule",{value:!0}),e),zb={};Yj(zb,{isArrayBuffer:()=>Zj});Gb.exports=Qj(zb);var Zj=Wj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var vr=m((Tbe,Kb)=>{var ic=Object.defineProperty,eU=Object.getOwnPropertyDescriptor,tU=Object.getOwnPropertyNames,nU=Object.prototype.hasOwnProperty,Hb=(e,t)=>ic(e,"name",{value:t,configurable:!0}),rU=(e,t)=>{for(var n in t)ic(e,n,{get:t[n],enumerable:!0})},oU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tU(t))!nU.call(e,o)&&o!==n&&ic(e,o,{get:()=>t[o],enumerable:!(r=eU(t,o))||r.enumerable});return e},sU=e=>oU(ic({},"__esModule",{value:!0}),e),$b={};rU($b,{fromArrayBuffer:()=>aU,fromString:()=>cU});Kb.exports=sU($b);var iU=sc(),Gm=require("buffer"),aU=Hb((e,t=0,n=e.byteLength-t)=>{if(!(0,iU.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Gm.Buffer.from(e,t,n)},"fromArrayBuffer"),cU=Hb((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Gm.Buffer.from(e,t):Gm.Buffer.from(e)},"fromString")});var Vb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.fromBase64=void 0;var dU=vr(),lU=/^[A-Za-z0-9+/]*={0,2}$/,uU=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!lU.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,dU.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};ac.fromBase64=uU});var st=m((qbe,Jb)=>{var cc=Object.defineProperty,mU=Object.getOwnPropertyDescriptor,pU=Object.getOwnPropertyNames,fU=Object.prototype.hasOwnProperty,Hm=(e,t)=>cc(e,"name",{value:t,configurable:!0}),yU=(e,t)=>{for(var n in t)cc(e,n,{get:t[n],enumerable:!0})},gU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pU(t))!fU.call(e,o)&&o!==n&&cc(e,o,{get:()=>t[o],enumerable:!(r=mU(t,o))||r.enumerable});return e},hU=e=>gU(cc({},"__esModule",{value:!0}),e),Xb={};yU(Xb,{fromUtf8:()=>Yb,toUint8Array:()=>_U,toUtf8:()=>CU});Jb.exports=hU(Xb);var Wb=vr(),Yb=Hm(e=>{let t=(0,Wb.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),_U=Hm(e=>typeof e=="string"?Yb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),CU=Hm(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Wb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8")});var Qb=m(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.toBase64=void 0;var SU=vr(),bU=st(),EU=e=>{let t;if(typeof e=="string"?t=(0,bU.fromUtf8)(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,SU.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};dc.toBase64=EU});var wr=m((Mbe,lc)=>{var Zb=Object.defineProperty,PU=Object.getOwnPropertyDescriptor,vU=Object.getOwnPropertyNames,wU=Object.prototype.hasOwnProperty,$m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vU(t))!wU.call(e,o)&&o!==n&&Zb(e,o,{get:()=>t[o],enumerable:!(r=PU(t,o))||r.enumerable});return e},eE=(e,t,n)=>($m(e,t,"default"),n&&$m(n,t,"default")),xU=e=>$m(Zb({},"__esModule",{value:!0}),e),Km={};lc.exports=xU(Km);eE(Km,Vb(),lc.exports);eE(Km,Qb(),lc.exports)});var tE=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getAwsChunkedEncodingStream=void 0;var kU=require("stream"),AU=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:a}=t,i=n!==void 0&&o!==void 0&&s!==void 0&&a!==void 0,u=i?a(o,e):void 0,l=new kU.Readable({read:()=>{}});return e.on("data",c=>{let y=r(c)||0;l.push(`${y.toString(16)}\r `),l.push(c),l.push(`\r `)}),e.on("end",async()=>{if(l.push(`0\r `),i){let c=n(await u);l.push(`${s}:${c}\r `),l.push(`\r -`)}l.push(null)}),l};mc.getAwsChunkedEncodingStream=AU});var Xm=m((Lbe,oE)=>{var pc=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,NU=Object.getOwnPropertyNames,IU=Object.prototype.hasOwnProperty,Vm=(e,t)=>pc(e,"name",{value:t,configurable:!0}),RU=(e,t)=>{for(var n in t)pc(e,n,{get:t[n],enumerable:!0})},TU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of NU(t))!IU.call(e,o)&&o!==n&&pc(e,o,{get:()=>t[o],enumerable:!(r=OU(t,o))||r.enumerable});return e},BU=e=>TU(pc({},"__esModule",{value:!0}),e),nE={};RU(nE,{escapeUri:()=>rE,escapeUriPath:()=>DU});oE.exports=BU(nE);var rE=Vm(e=>encodeURIComponent(e).replace(/[!'()*]/g,qU),"escapeUri"),qU=Vm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),DU=Vm(e=>e.split("/").map(rE).join("/"),"escapeUriPath")});var cE=m((jbe,aE)=>{var fc=Object.defineProperty,MU=Object.getOwnPropertyDescriptor,FU=Object.getOwnPropertyNames,LU=Object.prototype.hasOwnProperty,jU=(e,t)=>fc(e,"name",{value:t,configurable:!0}),UU=(e,t)=>{for(var n in t)fc(e,n,{get:t[n],enumerable:!0})},zU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of FU(t))!LU.call(e,o)&&o!==n&&fc(e,o,{get:()=>t[o],enumerable:!(r=MU(t,o))||r.enumerable});return e},GU=e=>zU(fc({},"__esModule",{value:!0}),e),sE={};UU(sE,{buildQueryString:()=>iE});aE.exports=GU(sE);var Wm=Xm();function iE(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,Wm.escapeUri)(n),Array.isArray(r))for(let o=0,s=r.length;o{var HU=Object.create,Bi=Object.defineProperty,$U=Object.getOwnPropertyDescriptor,KU=Object.getOwnPropertyNames,VU=Object.getPrototypeOf,XU=Object.prototype.hasOwnProperty,ze=(e,t)=>Bi(e,"name",{value:t,configurable:!0}),WU=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},uE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KU(t))!XU.call(e,o)&&o!==n&&Bi(e,o,{get:()=>t[o],enumerable:!(r=$U(t,o))||r.enumerable});return e},YU=(e,t,n)=>(n=e!=null?HU(VU(e)):{},uE(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),JU=e=>uE(Bi({},"__esModule",{value:!0}),e),mE={};WU(mE,{DEFAULT_REQUEST_TIMEOUT:()=>nz,NodeHttp2Handler:()=>az,NodeHttpHandler:()=>rz,streamCollector:()=>dz});vE.exports=JU(mE);var pE=Ne(),fE=cE(),Ym=require("http"),Jm=require("https"),QU=["ECONNRESET","EPIPE","ETIMEDOUT"],yE=ze(e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t},"getTransformedHeaders"),ZU=ze((e,t,n=0)=>{if(!n)return;let r=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),ez=ze((e,{keepAlive:t,keepAliveMsecs:n})=>{t===!0&&e.on("socket",r=>{r.setKeepAlive(t,n||0)})},"setSocketKeepAlive"),tz=ze((e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),gE=require("stream"),dE=1e3;async function Zm(e,t,n=dE){let r=t.headers??{},o=r.Expect||r.expect,s=-1,a=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(dE,n)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{a=!0,clearTimeout(s),i()})})]),a||hE(e,t.body)}ze(Zm,"writeRequestBody");function hE(e,t){if(t instanceof gE.Readable){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t=="string"){e.end(t);return}let n=t;if(typeof n=="object"&&n.buffer&&typeof n.byteOffset=="number"&&typeof n.byteLength=="number"){e.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength));return}e.end(Buffer.from(t));return}e.end()}ze(hE,"writeBody");var nz=0,_E=class Qm{constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(o=>{n(this.resolveDefaultConfig(o))}).catch(r):n(this.resolveDefaultConfig(t))})}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new Qm(t)}static checkSocketUsage(t,n){var r,o;let{sockets:s,requests:a,maxSockets:i}=t;if(typeof i!="number"||i===1/0||Date.now()-15e3=i&&y>=2*i)return console.warn("@smithy/node-http-handler:WARN",`socket usage at capacity=${c} and ${y} additional requests are enqueued.`,"See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html","or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config."),Date.now()}return n}resolveDefaultConfig(t){let{requestTimeout:n,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:a}=t||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:n??o,httpAgent:s instanceof Ym.Agent||typeof(s==null?void 0:s.destroy)=="function"?s:new Ym.Agent({keepAlive:i,maxSockets:u,...s}),httpsAgent:a instanceof Jm.Agent||typeof(a==null?void 0:a.destroy)=="function"?a:new Jm.Agent({keepAlive:i,maxSockets:u,...a})}}destroy(){var t,n,r,o;(n=(t=this.config)==null?void 0:t.httpAgent)==null||n.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider);let r;return new Promise((o,s)=>{let a,i=ze(async Y=>{await a,clearTimeout(r),o(Y)},"resolve"),u=ze(async Y=>{await a,s(Y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n!=null&&n.aborted){let Y=new Error("Request aborted");Y.name="AbortError",u(Y);return}let l=t.protocol==="https:",c=l?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=Qm.checkSocketUsage(c,this.socketWarningTimestamp)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2e3)+(this.config.connectionTimeout??1e3));let y=(0,fE.buildQueryString)(t.query||{}),g;if(t.username!=null||t.password!=null){let Y=t.username??"",Le=t.password??"";g=`${Y}:${Le}`}let C=t.path;y&&(C+=`?${y}`),t.fragment&&(C+=`#${t.fragment}`);let P={headers:t.headers,host:t.hostname,method:t.method,path:C,port:t.port,agent:c,auth:g},v=(l?Jm.request:Ym.request)(P,Y=>{let Le=new pE.HttpResponse({statusCode:Y.statusCode||-1,reason:Y.statusMessage,headers:yE(Y.headers),body:Y});i({response:Le})});v.on("error",Y=>{QU.includes(Y.code)?u(Object.assign(Y,{name:"TimeoutError"})):u(Y)}),ZU(v,u,this.config.connectionTimeout),tz(v,u,this.config.requestTimeout),n&&(n.onabort=()=>{v.abort();let Y=new Error("Request aborted");Y.name="AbortError",u(Y)});let G=P.agent;typeof G=="object"&&"keepAlive"in G&&ez(v,{keepAlive:G.keepAlive,keepAliveMsecs:G.keepAliveMsecs}),a=Zm(v,t,this.config.requestTimeout).catch(s)})}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[t]:n}))}httpHandlerConfigs(){return this.config??{}}};ze(_E,"NodeHttpHandler");var rz=_E,lE=require("http2"),oz=YU(require("http2")),CE=class{constructor(t){this.sessions=[],this.sessions=t??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(t){this.sessions.push(t)}contains(t){return this.sessions.includes(t)}remove(t){this.sessions=this.sessions.filter(n=>n!==t)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(t){for(let n of this.sessions)n===t&&(n.destroyed||n.destroy())}};ze(CE,"NodeHttp2ConnectionPool");var sz=CE,SE=class{constructor(t){if(this.sessionCache=new Map,this.config=t,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(t,n){let r=this.getUrlString(t),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=oz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())}),s.unref();let a=ze(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",a),s.on("error",a),s.on("frameError",a),s.on("close",()=>this.deleteSession(r,s)),n.requestTimeout&&s.setTimeout(n.requestTimeout,a);let i=this.sessionCache.get(r)||new sz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(t,n){let r=this.sessionCache.get(t);r&&r.contains(n)&&(r.remove(n),this.sessionCache.set(t,r))}release(t,n){var r;let o=this.getUrlString(t);(r=this.sessionCache.get(o))==null||r.offerLast(n)}destroy(){for(let[t,n]of this.sessionCache){for(let r of n)r.destroyed||r.destroy(),n.remove(r);this.sessionCache.delete(t)}}setMaxConcurrentStreams(t){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=t}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}getUrlString(t){return t.destination.toString()}};ze(SE,"NodeHttp2ConnectionManager");var iz=SE,bE=class EE{constructor(t){this.metadata={handlerProtocol:"h2"},this.connectionManager=new iz({}),this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(o=>{n(o||{})}).catch(r):n(t||{})})}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new EE(t)}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,a)=>{var i;let u=!1,l,c=ze(async Oe=>{await l,s(Oe)},"resolve"),y=ze(async Oe=>{await l,a(Oe)},"reject");if(n!=null&&n.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:P,protocol:A,query:v}=t,G="";if(t.username!=null||t.password!=null){let Oe=t.username??"",Oi=t.password??"";G=`${Oe}:${Oi}@`}let Y=`${A}//${G}${g}${P?`:${P}`:""}`,Le={destination:new URL(Y)},Ae=this.connectionManager.lease(Le,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),pt=ze(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,fE.buildQueryString)(v||{}),sr=t.path;vn&&(sr+=`?${vn}`),t.fragment&&(sr+=`#${t.fragment}`);let Et=Ae.request({...t.headers,[lE.constants.HTTP2_HEADER_PATH]:sr,[lE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let Oi=new pE.HttpResponse({statusCode:Oe[":status"]||-1,headers:yE(Oe),body:Et});u=!0,c({response:Oi}),o&&(Ae.close(),this.connectionManager.deleteSession(Y,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",pt(Oe)}),n&&(n.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",pt(Oe)}),Et.on("frameError",(Oe,Oi,GL)=>{pt(new Error(`Frame type id ${Oe} in stream id ${GL} has failed with code ${Oi}.`))}),Et.on("error",pt),Et.on("aborted",()=>{pt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||pt(new Error("Unexpected error: http2 request did not get a response"))}),l=Zm(Et,t,r)})}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[t]:n}))}httpHandlerConfigs(){return this.config??{}}destroySession(t){t.destroyed||t.destroy()}};ze(bE,"NodeHttp2Handler");var az=bE,PE=class extends gE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};ze(PE,"Collector");var cz=PE,dz=ze(e=>new Promise((t,n)=>{let r=new cz;e.pipe(r),e.on("error",o=>{r.end(),n(o)}),r.on("error",n),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));t(o)})}),"streamCollector")});var xE=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.sdkStreamMixin=void 0;var lz=xr(),uz=vr(),ep=require("stream"),mz=require("util"),wE="The stream has already been transformed.",pz=e=>{var t,n;if(!(e instanceof ep.Readable)){let s=((n=(t=e==null?void 0:e.__proto__)===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(wE);return r=!0,await(0,lz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let a=await o();return s===void 0||Buffer.isEncoding(s)?(0,uz.fromArrayBuffer)(a.buffer,a.byteOffset,a.byteLength).toString(s):new mz.TextDecoder(s).decode(a)},transformToWebStream:()=>{if(r)throw new Error(wE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof ep.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,ep.Readable.toWeb(e)}})};yc.sdkStreamMixin=pz});var op=m((Kbe,_c)=>{var gc=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,yz=Object.getOwnPropertyNames,gz=Object.prototype.hasOwnProperty,rp=(e,t)=>gc(e,"name",{value:t,configurable:!0}),hz=(e,t)=>{for(var n in t)gc(e,n,{get:t[n],enumerable:!0})},tp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yz(t))!gz.call(e,o)&&o!==n&&gc(e,o,{get:()=>t[o],enumerable:!(r=fz(t,o))||r.enumerable});return e},kE=(e,t,n)=>(tp(e,t,"default"),n&&tp(n,t,"default")),_z=e=>tp(gc({},"__esModule",{value:!0}),e),hc={};hz(hc,{Uint8ArrayBlobAdapter:()=>np});_c.exports=_z(hc);var AE=wr(),OE=st();function NE(e,t="utf-8"){return t==="base64"?(0,AE.toBase64)(e):(0,OE.toUtf8)(e)}rp(NE,"transformToString");function IE(e,t){return t==="base64"?np.mutate((0,AE.fromBase64)(e)):np.mutate((0,OE.fromUtf8)(e))}rp(IE,"transformFromString");var RE=class TE extends Uint8Array{static fromString(t,n="utf-8"){switch(typeof t){case"string":return IE(t,n);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,TE.prototype),t}transformToString(t="utf-8"){return NE(this,t)}};rp(RE,"Uint8ArrayBlobAdapter");var np=RE;kE(hc,tE(),_c.exports);kE(hc,xE(),_c.exports)});var b=m((Jbe,rP)=>{var Pc=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,Sz=Object.getOwnPropertyNames,bz=Object.prototype.hasOwnProperty,z=(e,t)=>Pc(e,"name",{value:t,configurable:!0}),Ez=(e,t)=>{for(var n in t)Pc(e,n,{get:t[n],enumerable:!0})},Pz=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sz(t))!bz.call(e,o)&&o!==n&&Pc(e,o,{get:()=>t[o],enumerable:!(r=Cz(t,o))||r.enumerable});return e},vz=e=>Pz(Pc({},"__esModule",{value:!0}),e),qE={};Ez(qE,{Client:()=>xz,Command:()=>jE,LazyJsonString:()=>E3,NoOpLogger:()=>wz,SENSITIVE_STRING:()=>Oz,ServiceException:()=>l3,StringWrapper:()=>Li,_json:()=>up,collectBody:()=>kz,convertMap:()=>P3,createAggregatedClient:()=>Nz,dateToUtcString:()=>VE,decorateServiceException:()=>YE,emitWarningIfUnsupportedVersion:()=>f3,expectBoolean:()=>Rz,expectByte:()=>lp,expectFloat32:()=>Sc,expectInt:()=>Bz,expectInt32:()=>cp,expectLong:()=>Mi,expectNonNull:()=>Dz,expectNumber:()=>Di,expectObject:()=>zE,expectShort:()=>dp,expectString:()=>Mz,expectUnion:()=>Fz,extendedEncodeURIComponent:()=>Ec,getArrayIfSingleItem:()=>b3,getDefaultClientConfiguration:()=>C3,getDefaultExtensionConfiguration:()=>QE,getValueFromTextNode:()=>ZE,handleFloat:()=>Uz,limitedParseDouble:()=>fp,limitedParseFloat:()=>zz,limitedParseFloat32:()=>Gz,loadConfigsForDefaultMode:()=>p3,logger:()=>Fi,map:()=>gp,parseBoolean:()=>Iz,parseEpochTimestamp:()=>t3,parseRfc3339DateTime:()=>Xz,parseRfc3339DateTimeWithOffset:()=>Yz,parseRfc7231DateTime:()=>e3,resolveDefaultRuntimeConfig:()=>S3,resolvedPath:()=>A3,serializeFloat:()=>O3,splitEvery:()=>nP,strictParseByte:()=>KE,strictParseDouble:()=>pp,strictParseFloat:()=>Lz,strictParseFloat32:()=>GE,strictParseInt:()=>Hz,strictParseInt32:()=>$z,strictParseLong:()=>$E,strictParseShort:()=>kr,take:()=>v3,throwDefaultError:()=>JE,withBaseException:()=>u3});rP.exports=vz(qE);var DE=class{trace(){}debug(){}info(){}warn(){}error(){}};z(DE,"NoOpLogger");var wz=DE,ME=Ub(),FE=class{constructor(t){this.middlewareStack=(0,ME.constructStack)(),this.config=t}send(t,n,r){let o=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(t).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return a(t).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};z(FE,"Client");var xz=FE,sp=op(),kz=z(async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return sp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return sp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let n=t.streamCollector(e);return sp.Uint8ArrayBlobAdapter.mutate(await n)},"collectBody"),ap=w(),LE=class{constructor(){this.middlewareStack=(0,ME.constructStack)()}static classBuilder(){return new Az}resolveMiddlewareWithContext(t,n,r,{middlewareFn:o,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:c,CommandCtor:y}){for(let v of o.bind(this)(y,t,n,r))this.middlewareStack.use(v);let g=t.concat(this.middlewareStack),{logger:C}=n,P={logger:C,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[ap.SMITHY_CONTEXT_KEY]:{...l},...c},{requestHandler:A}=n;return g.resolve(v=>A.handle(v.request,r||{}),P)}};z(LE,"Command");var jE=LE,UE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=t=>t,this._outputFilterSensitiveLog=t=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){var t;let n=this,r;return r=(t=class extends jE{constructor(...[o]){super(),this.serialize=n._serializer,this.deserialize=n._deserializer,this.input=o??{},n._init(this)}static getEndpointParameterInstructions(){return n._ep}resolveMiddleware(o,s,a){return this.resolveMiddlewareWithContext(o,s,a,{CommandCtor:r,middlewareFn:n._middlewareFn,clientName:n._clientName,commandName:n._commandName,inputFilterSensitiveLog:n._inputFilterSensitiveLog,outputFilterSensitiveLog:n._outputFilterSensitiveLog,smithyContext:n._smithyContext,additionalContext:n._additionalContext})}},z(t,"CommandRef"),t)}};z(UE,"ClassBuilder");var Az=UE,Oz="***SensitiveInformation***",Nz=z((e,t)=>{for(let n of Object.keys(e)){let r=e[n],o=z(async function(a,i,u){let l=new r(a);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[s]=o}},"createAggregatedClient"),Iz=z(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),Rz=z(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Fi.warn(bc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let t=e.toLowerCase();if((t==="false"||t==="true")&&Fi.warn(bc(`Expected boolean, got ${typeof e}: ${e}`)),t==="false")return!1;if(t==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),Di=z(e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Fi.warn(bc(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),Tz=Math.ceil(2**127*(2-2**-23)),Sc=z(e=>{let t=Di(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Tz)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},"expectFloat32"),Mi=z(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),Bz=Mi,cp=z(e=>mp(e,32),"expectInt32"),dp=z(e=>mp(e,16),"expectShort"),lp=z(e=>mp(e,8),"expectByte"),mp=z((e,t)=>{let n=Mi(e);if(n!==void 0&&qz(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},"expectSizedInt"),qz=z((e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),Dz=z((e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=z(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},"expectObject"),Mz=z(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Fi.warn(bc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),Fz=z(e=>{if(e==null)return;let t=zE(e),n=Object.entries(t).filter(([,r])=>r!=null).map(([r])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},"expectUnion"),pp=z(e=>Di(typeof e=="string"?Or(e):e),"strictParseDouble"),Lz=pp,GE=z(e=>Sc(typeof e=="string"?Or(e):e),"strictParseFloat32"),jz=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Or=z(e=>{let t=e.match(jz);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),fp=z(e=>typeof e=="string"?HE(e):Di(e),"limitedParseDouble"),Uz=fp,zz=fp,Gz=z(e=>typeof e=="string"?HE(e):Sc(e),"limitedParseFloat32"),HE=z(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),$E=z(e=>Mi(typeof e=="string"?Or(e):e),"strictParseLong"),Hz=$E,$z=z(e=>cp(typeof e=="string"?Or(e):e),"strictParseInt32"),kr=z(e=>dp(typeof e=="string"?Or(e):e),"strictParseShort"),KE=z(e=>lp(typeof e=="string"?Or(e):e),"strictParseByte"),bc=z(e=>String(new TypeError(e).stack||e).split(` +`)}l.push(null)}),l};uc.getAwsChunkedEncodingStream=AU});var Xm=m((Lbe,oE)=>{var mc=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,NU=Object.getOwnPropertyNames,IU=Object.prototype.hasOwnProperty,Vm=(e,t)=>mc(e,"name",{value:t,configurable:!0}),RU=(e,t)=>{for(var n in t)mc(e,n,{get:t[n],enumerable:!0})},TU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of NU(t))!IU.call(e,o)&&o!==n&&mc(e,o,{get:()=>t[o],enumerable:!(r=OU(t,o))||r.enumerable});return e},BU=e=>TU(mc({},"__esModule",{value:!0}),e),nE={};RU(nE,{escapeUri:()=>rE,escapeUriPath:()=>DU});oE.exports=BU(nE);var rE=Vm(e=>encodeURIComponent(e).replace(/[!'()*]/g,qU),"escapeUri"),qU=Vm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),DU=Vm(e=>e.split("/").map(rE).join("/"),"escapeUriPath")});var cE=m((jbe,aE)=>{var pc=Object.defineProperty,MU=Object.getOwnPropertyDescriptor,FU=Object.getOwnPropertyNames,LU=Object.prototype.hasOwnProperty,jU=(e,t)=>pc(e,"name",{value:t,configurable:!0}),UU=(e,t)=>{for(var n in t)pc(e,n,{get:t[n],enumerable:!0})},zU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of FU(t))!LU.call(e,o)&&o!==n&&pc(e,o,{get:()=>t[o],enumerable:!(r=MU(t,o))||r.enumerable});return e},GU=e=>zU(pc({},"__esModule",{value:!0}),e),sE={};UU(sE,{buildQueryString:()=>iE});aE.exports=GU(sE);var Wm=Xm();function iE(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,Wm.escapeUri)(n),Array.isArray(r))for(let o=0,s=r.length;o{var HU=Object.create,Bi=Object.defineProperty,$U=Object.getOwnPropertyDescriptor,KU=Object.getOwnPropertyNames,VU=Object.getPrototypeOf,XU=Object.prototype.hasOwnProperty,ze=(e,t)=>Bi(e,"name",{value:t,configurable:!0}),WU=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},uE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KU(t))!XU.call(e,o)&&o!==n&&Bi(e,o,{get:()=>t[o],enumerable:!(r=$U(t,o))||r.enumerable});return e},YU=(e,t,n)=>(n=e!=null?HU(VU(e)):{},uE(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),JU=e=>uE(Bi({},"__esModule",{value:!0}),e),mE={};WU(mE,{DEFAULT_REQUEST_TIMEOUT:()=>nz,NodeHttp2Handler:()=>az,NodeHttpHandler:()=>rz,streamCollector:()=>dz});vE.exports=JU(mE);var pE=Ne(),fE=cE(),Ym=require("http"),Jm=require("https"),QU=["ECONNRESET","EPIPE","ETIMEDOUT"],yE=ze(e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t},"getTransformedHeaders"),ZU=ze((e,t,n=0)=>{if(!n)return;let r=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),ez=ze((e,{keepAlive:t,keepAliveMsecs:n})=>{t===!0&&e.on("socket",r=>{r.setKeepAlive(t,n||0)})},"setSocketKeepAlive"),tz=ze((e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),gE=require("stream"),dE=1e3;async function Zm(e,t,n=dE){let r=t.headers??{},o=r.Expect||r.expect,s=-1,a=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(dE,n)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{a=!0,clearTimeout(s),i()})})]),a||hE(e,t.body)}ze(Zm,"writeRequestBody");function hE(e,t){if(t instanceof gE.Readable){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t=="string"){e.end(t);return}let n=t;if(typeof n=="object"&&n.buffer&&typeof n.byteOffset=="number"&&typeof n.byteLength=="number"){e.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength));return}e.end(Buffer.from(t));return}e.end()}ze(hE,"writeBody");var nz=0,_E=class Qm{constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(o=>{n(this.resolveDefaultConfig(o))}).catch(r):n(this.resolveDefaultConfig(t))})}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new Qm(t)}static checkSocketUsage(t,n){var r,o;let{sockets:s,requests:a,maxSockets:i}=t;if(typeof i!="number"||i===1/0||Date.now()-15e3=i&&y>=2*i)return console.warn("@smithy/node-http-handler:WARN",`socket usage at capacity=${c} and ${y} additional requests are enqueued.`,"See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html","or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config."),Date.now()}return n}resolveDefaultConfig(t){let{requestTimeout:n,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:a}=t||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:n??o,httpAgent:s instanceof Ym.Agent||typeof(s==null?void 0:s.destroy)=="function"?s:new Ym.Agent({keepAlive:i,maxSockets:u,...s}),httpsAgent:a instanceof Jm.Agent||typeof(a==null?void 0:a.destroy)=="function"?a:new Jm.Agent({keepAlive:i,maxSockets:u,...a})}}destroy(){var t,n,r,o;(n=(t=this.config)==null?void 0:t.httpAgent)==null||n.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider);let r;return new Promise((o,s)=>{let a,i=ze(async Y=>{await a,clearTimeout(r),o(Y)},"resolve"),u=ze(async Y=>{await a,s(Y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n!=null&&n.aborted){let Y=new Error("Request aborted");Y.name="AbortError",u(Y);return}let l=t.protocol==="https:",c=l?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=Qm.checkSocketUsage(c,this.socketWarningTimestamp)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2e3)+(this.config.connectionTimeout??1e3));let y=(0,fE.buildQueryString)(t.query||{}),g;if(t.username!=null||t.password!=null){let Y=t.username??"",Le=t.password??"";g=`${Y}:${Le}`}let C=t.path;y&&(C+=`?${y}`),t.fragment&&(C+=`#${t.fragment}`);let P={headers:t.headers,host:t.hostname,method:t.method,path:C,port:t.port,agent:c,auth:g},v=(l?Jm.request:Ym.request)(P,Y=>{let Le=new pE.HttpResponse({statusCode:Y.statusCode||-1,reason:Y.statusMessage,headers:yE(Y.headers),body:Y});i({response:Le})});v.on("error",Y=>{QU.includes(Y.code)?u(Object.assign(Y,{name:"TimeoutError"})):u(Y)}),ZU(v,u,this.config.connectionTimeout),tz(v,u,this.config.requestTimeout),n&&(n.onabort=()=>{v.abort();let Y=new Error("Request aborted");Y.name="AbortError",u(Y)});let G=P.agent;typeof G=="object"&&"keepAlive"in G&&ez(v,{keepAlive:G.keepAlive,keepAliveMsecs:G.keepAliveMsecs}),a=Zm(v,t,this.config.requestTimeout).catch(s)})}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[t]:n}))}httpHandlerConfigs(){return this.config??{}}};ze(_E,"NodeHttpHandler");var rz=_E,lE=require("http2"),oz=YU(require("http2")),CE=class{constructor(t){this.sessions=[],this.sessions=t??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(t){this.sessions.push(t)}contains(t){return this.sessions.includes(t)}remove(t){this.sessions=this.sessions.filter(n=>n!==t)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(t){for(let n of this.sessions)n===t&&(n.destroyed||n.destroy())}};ze(CE,"NodeHttp2ConnectionPool");var sz=CE,SE=class{constructor(t){if(this.sessionCache=new Map,this.config=t,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(t,n){let r=this.getUrlString(t),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=oz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())}),s.unref();let a=ze(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",a),s.on("error",a),s.on("frameError",a),s.on("close",()=>this.deleteSession(r,s)),n.requestTimeout&&s.setTimeout(n.requestTimeout,a);let i=this.sessionCache.get(r)||new sz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(t,n){let r=this.sessionCache.get(t);r&&r.contains(n)&&(r.remove(n),this.sessionCache.set(t,r))}release(t,n){var r;let o=this.getUrlString(t);(r=this.sessionCache.get(o))==null||r.offerLast(n)}destroy(){for(let[t,n]of this.sessionCache){for(let r of n)r.destroyed||r.destroy(),n.remove(r);this.sessionCache.delete(t)}}setMaxConcurrentStreams(t){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=t}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}getUrlString(t){return t.destination.toString()}};ze(SE,"NodeHttp2ConnectionManager");var iz=SE,bE=class EE{constructor(t){this.metadata={handlerProtocol:"h2"},this.connectionManager=new iz({}),this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(o=>{n(o||{})}).catch(r):n(t||{})})}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new EE(t)}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,a)=>{var i;let u=!1,l,c=ze(async Oe=>{await l,s(Oe)},"resolve"),y=ze(async Oe=>{await l,a(Oe)},"reject");if(n!=null&&n.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:P,protocol:A,query:v}=t,G="";if(t.username!=null||t.password!=null){let Oe=t.username??"",Oi=t.password??"";G=`${Oe}:${Oi}@`}let Y=`${A}//${G}${g}${P?`:${P}`:""}`,Le={destination:new URL(Y)},Ae=this.connectionManager.lease(Le,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),pt=ze(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,fE.buildQueryString)(v||{}),sr=t.path;vn&&(sr+=`?${vn}`),t.fragment&&(sr+=`#${t.fragment}`);let Et=Ae.request({...t.headers,[lE.constants.HTTP2_HEADER_PATH]:sr,[lE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let Oi=new pE.HttpResponse({statusCode:Oe[":status"]||-1,headers:yE(Oe),body:Et});u=!0,c({response:Oi}),o&&(Ae.close(),this.connectionManager.deleteSession(Y,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",pt(Oe)}),n&&(n.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",pt(Oe)}),Et.on("frameError",(Oe,Oi,GL)=>{pt(new Error(`Frame type id ${Oe} in stream id ${GL} has failed with code ${Oi}.`))}),Et.on("error",pt),Et.on("aborted",()=>{pt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||pt(new Error("Unexpected error: http2 request did not get a response"))}),l=Zm(Et,t,r)})}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[t]:n}))}httpHandlerConfigs(){return this.config??{}}destroySession(t){t.destroyed||t.destroy()}};ze(bE,"NodeHttp2Handler");var az=bE,PE=class extends gE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};ze(PE,"Collector");var cz=PE,dz=ze(e=>new Promise((t,n)=>{let r=new cz;e.pipe(r),e.on("error",o=>{r.end(),n(o)}),r.on("error",n),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));t(o)})}),"streamCollector")});var xE=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.sdkStreamMixin=void 0;var lz=xr(),uz=vr(),ep=require("stream"),mz=require("util"),wE="The stream has already been transformed.",pz=e=>{var t,n;if(!(e instanceof ep.Readable)){let s=((n=(t=e==null?void 0:e.__proto__)===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(wE);return r=!0,await(0,lz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let a=await o();return s===void 0||Buffer.isEncoding(s)?(0,uz.fromArrayBuffer)(a.buffer,a.byteOffset,a.byteLength).toString(s):new mz.TextDecoder(s).decode(a)},transformToWebStream:()=>{if(r)throw new Error(wE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof ep.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,ep.Readable.toWeb(e)}})};fc.sdkStreamMixin=pz});var op=m((Kbe,hc)=>{var yc=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,yz=Object.getOwnPropertyNames,gz=Object.prototype.hasOwnProperty,rp=(e,t)=>yc(e,"name",{value:t,configurable:!0}),hz=(e,t)=>{for(var n in t)yc(e,n,{get:t[n],enumerable:!0})},tp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yz(t))!gz.call(e,o)&&o!==n&&yc(e,o,{get:()=>t[o],enumerable:!(r=fz(t,o))||r.enumerable});return e},kE=(e,t,n)=>(tp(e,t,"default"),n&&tp(n,t,"default")),_z=e=>tp(yc({},"__esModule",{value:!0}),e),gc={};hz(gc,{Uint8ArrayBlobAdapter:()=>np});hc.exports=_z(gc);var AE=wr(),OE=st();function NE(e,t="utf-8"){return t==="base64"?(0,AE.toBase64)(e):(0,OE.toUtf8)(e)}rp(NE,"transformToString");function IE(e,t){return t==="base64"?np.mutate((0,AE.fromBase64)(e)):np.mutate((0,OE.fromUtf8)(e))}rp(IE,"transformFromString");var RE=class TE extends Uint8Array{static fromString(t,n="utf-8"){switch(typeof t){case"string":return IE(t,n);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,TE.prototype),t}transformToString(t="utf-8"){return NE(this,t)}};rp(RE,"Uint8ArrayBlobAdapter");var np=RE;kE(gc,tE(),hc.exports);kE(gc,xE(),hc.exports)});var b=m((Jbe,rP)=>{var Ec=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,Sz=Object.getOwnPropertyNames,bz=Object.prototype.hasOwnProperty,z=(e,t)=>Ec(e,"name",{value:t,configurable:!0}),Ez=(e,t)=>{for(var n in t)Ec(e,n,{get:t[n],enumerable:!0})},Pz=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sz(t))!bz.call(e,o)&&o!==n&&Ec(e,o,{get:()=>t[o],enumerable:!(r=Cz(t,o))||r.enumerable});return e},vz=e=>Pz(Ec({},"__esModule",{value:!0}),e),qE={};Ez(qE,{Client:()=>xz,Command:()=>jE,LazyJsonString:()=>E3,NoOpLogger:()=>wz,SENSITIVE_STRING:()=>Oz,ServiceException:()=>l3,StringWrapper:()=>Li,_json:()=>up,collectBody:()=>kz,convertMap:()=>P3,createAggregatedClient:()=>Nz,dateToUtcString:()=>VE,decorateServiceException:()=>YE,emitWarningIfUnsupportedVersion:()=>f3,expectBoolean:()=>Rz,expectByte:()=>lp,expectFloat32:()=>Cc,expectInt:()=>Bz,expectInt32:()=>cp,expectLong:()=>Mi,expectNonNull:()=>Dz,expectNumber:()=>Di,expectObject:()=>zE,expectShort:()=>dp,expectString:()=>Mz,expectUnion:()=>Fz,extendedEncodeURIComponent:()=>bc,getArrayIfSingleItem:()=>b3,getDefaultClientConfiguration:()=>C3,getDefaultExtensionConfiguration:()=>QE,getValueFromTextNode:()=>ZE,handleFloat:()=>Uz,limitedParseDouble:()=>fp,limitedParseFloat:()=>zz,limitedParseFloat32:()=>Gz,loadConfigsForDefaultMode:()=>p3,logger:()=>Fi,map:()=>gp,parseBoolean:()=>Iz,parseEpochTimestamp:()=>t3,parseRfc3339DateTime:()=>Xz,parseRfc3339DateTimeWithOffset:()=>Yz,parseRfc7231DateTime:()=>e3,resolveDefaultRuntimeConfig:()=>S3,resolvedPath:()=>A3,serializeFloat:()=>O3,splitEvery:()=>nP,strictParseByte:()=>KE,strictParseDouble:()=>pp,strictParseFloat:()=>Lz,strictParseFloat32:()=>GE,strictParseInt:()=>Hz,strictParseInt32:()=>$z,strictParseLong:()=>$E,strictParseShort:()=>kr,take:()=>v3,throwDefaultError:()=>JE,withBaseException:()=>u3});rP.exports=vz(qE);var DE=class{trace(){}debug(){}info(){}warn(){}error(){}};z(DE,"NoOpLogger");var wz=DE,ME=Ub(),FE=class{constructor(t){this.middlewareStack=(0,ME.constructStack)(),this.config=t}send(t,n,r){let o=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(t).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return a(t).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};z(FE,"Client");var xz=FE,sp=op(),kz=z(async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return sp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return sp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let n=t.streamCollector(e);return sp.Uint8ArrayBlobAdapter.mutate(await n)},"collectBody"),ap=w(),LE=class{constructor(){this.middlewareStack=(0,ME.constructStack)()}static classBuilder(){return new Az}resolveMiddlewareWithContext(t,n,r,{middlewareFn:o,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:c,CommandCtor:y}){for(let v of o.bind(this)(y,t,n,r))this.middlewareStack.use(v);let g=t.concat(this.middlewareStack),{logger:C}=n,P={logger:C,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[ap.SMITHY_CONTEXT_KEY]:{...l},...c},{requestHandler:A}=n;return g.resolve(v=>A.handle(v.request,r||{}),P)}};z(LE,"Command");var jE=LE,UE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=t=>t,this._outputFilterSensitiveLog=t=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){var t;let n=this,r;return r=(t=class extends jE{constructor(...[o]){super(),this.serialize=n._serializer,this.deserialize=n._deserializer,this.input=o??{},n._init(this)}static getEndpointParameterInstructions(){return n._ep}resolveMiddleware(o,s,a){return this.resolveMiddlewareWithContext(o,s,a,{CommandCtor:r,middlewareFn:n._middlewareFn,clientName:n._clientName,commandName:n._commandName,inputFilterSensitiveLog:n._inputFilterSensitiveLog,outputFilterSensitiveLog:n._outputFilterSensitiveLog,smithyContext:n._smithyContext,additionalContext:n._additionalContext})}},z(t,"CommandRef"),t)}};z(UE,"ClassBuilder");var Az=UE,Oz="***SensitiveInformation***",Nz=z((e,t)=>{for(let n of Object.keys(e)){let r=e[n],o=z(async function(a,i,u){let l=new r(a);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[s]=o}},"createAggregatedClient"),Iz=z(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),Rz=z(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Fi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let t=e.toLowerCase();if((t==="false"||t==="true")&&Fi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),t==="false")return!1;if(t==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),Di=z(e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Fi.warn(Sc(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),Tz=Math.ceil(2**127*(2-2**-23)),Cc=z(e=>{let t=Di(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Tz)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},"expectFloat32"),Mi=z(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),Bz=Mi,cp=z(e=>mp(e,32),"expectInt32"),dp=z(e=>mp(e,16),"expectShort"),lp=z(e=>mp(e,8),"expectByte"),mp=z((e,t)=>{let n=Mi(e);if(n!==void 0&&qz(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},"expectSizedInt"),qz=z((e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),Dz=z((e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=z(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},"expectObject"),Mz=z(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Fi.warn(Sc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),Fz=z(e=>{if(e==null)return;let t=zE(e),n=Object.entries(t).filter(([,r])=>r!=null).map(([r])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},"expectUnion"),pp=z(e=>Di(typeof e=="string"?Or(e):e),"strictParseDouble"),Lz=pp,GE=z(e=>Cc(typeof e=="string"?Or(e):e),"strictParseFloat32"),jz=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Or=z(e=>{let t=e.match(jz);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),fp=z(e=>typeof e=="string"?HE(e):Di(e),"limitedParseDouble"),Uz=fp,zz=fp,Gz=z(e=>typeof e=="string"?HE(e):Cc(e),"limitedParseFloat32"),HE=z(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),$E=z(e=>Mi(typeof e=="string"?Or(e):e),"strictParseLong"),Hz=$E,$z=z(e=>cp(typeof e=="string"?Or(e):e),"strictParseInt32"),kr=z(e=>dp(typeof e=="string"?Or(e):e),"strictParseShort"),KE=z(e=>lp(typeof e=="string"?Or(e):e),"strictParseByte"),Sc=z(e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Fi={warn:console.warn},Kz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VE(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,c=a<10?`0${a}`:`${a}`,y=i<10?`0${i}`:`${i}`;return`${Kz[r]}, ${u} ${yp[n]} ${t} ${l}:${c}:${y} GMT`}z(VE,"dateToUtcString");var Vz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Xz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Vz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,o,s,a,i,u,l]=t,c=kr(Ar(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return qi(c,y,g,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),Wz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Yz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Wz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,o,s,a,i,u,l,c]=t,y=kr(Ar(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),P=qi(y,g,C,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l});return c.toUpperCase()!="Z"&&P.setTime(P.getTime()-d3(c)),P},"parseRfc3339DateTimeWithOffset"),Jz=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$/),Qz=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$/),Zz=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})$/),e3=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Jz.exec(e);if(t){let[n,r,o,s,a,i,u,l]=t;return qi(kr(Ar(s)),ip(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})}if(t=Qz.exec(e),t){let[n,r,o,s,a,i,u,l]=t;return o3(qi(n3(s),ip(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(t=Zz.exec(e),t){let[n,r,o,s,a,i,u,l]=t;return qi(kr(Ar(l)),ip(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),t3=z(e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=pp(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");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(t*1e3))},"parseEpochTimestamp"),qi=z((e,t,n,r)=>{let o=t-1;return i3(e,o,n),new Date(Date.UTC(e,o,n,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),c3(r.fractionalMilliseconds)))},"buildDate"),n3=z(e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+kr(Ar(e));return ne.getTime()-new Date().getTime()>r3?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),ip=z(e=>{let t=yp.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},"parseMonthByShortName"),s3=[31,28,31,30,31,30,31,31,30,31,30,31],i3=z((e,t,n)=>{let r=s3[t];if(t===1&&a3(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${yp[t]} in ${e}: ${n}`)},"validateDayOfMonth"),a3=z(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=z((e,t,n,r)=>{let o=KE(Ar(e));if(or)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return o},"parseDateValue"),c3=z(e=>e==null?0:GE("0."+e)*1e3,"parseMilliseconds"),d3=z(e=>{let t=e[0],n=1;if(t=="+")n=1;else if(t=="-")n=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return n*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),Ar=z(e=>{let t=0;for(;t{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},"decorateServiceException"),JE=z(({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{let o=m3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,a=new n({name:(t==null?void 0:t.code)||(t==null?void 0:t.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw YE(a,t)},"throwDefaultError"),u3=z(e=>({output:t,parsedBody:n,errorCode:r})=>{JE({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},"withBaseException"),m3=z(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),p3=z(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),BE=!1,f3=z(e=>{e&&!BE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(BE=!0)},"emitWarningIfUnsupportedVersion"),y3=z(e=>{let t=[];for(let n in ap.AlgorithmId){let r=ap.AlgorithmId[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(n){this._checksumAlgorithms.push(n)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),g3=z(e=>{let t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),h3=z(e=>{let t=e.retryStrategy;return{setRetryStrategy(n){t=n},retryStrategy(){return t}}},"getRetryConfiguration"),_3=z(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},"resolveRetryRuntimeConfig"),QE=z(e=>({...y3(e),...h3(e)}),"getDefaultExtensionConfiguration"),C3=QE,S3=z(e=>({...g3(e),..._3(e)}),"resolveDefaultRuntimeConfig");function Ec(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}z(Ec,"extendedEncodeURIComponent");var b3=z(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),ZE=z(e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=ZE(e[n]));return e},"getValueFromTextNode"),Li=z(function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n},"StringWrapper");Li.prototype=Object.create(String.prototype,{constructor:{value:Li,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Li,String);var eP=class Cc extends Li{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof Cc?t:t instanceof String||typeof t=="string"?new Cc(t):new Cc(JSON.stringify(t))}};z(eP,"LazyJsonString");var E3=eP;function gp(e,t,n){let r,o,s;if(typeof t>"u"&&typeof n>"u")r={},s=e;else{if(r=e,typeof t=="function")return o=t,s=n,w3(r,o,s);s=t}for(let a of Object.keys(s)){if(!Array.isArray(s[a])){r[a]=s[a];continue}tP(r,null,s,a)}return r}z(gp,"map");var P3=z(e=>{let t={};for(let[n,r]of Object.entries(e||{}))t[n]=[,r];return t},"convertMap"),v3=z((e,t)=>{let n={};for(let r in t)tP(n,e,t,r);return n},"take"),w3=z((e,t,n)=>gp(e,Object.entries(n).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[t,s()]:r[o]=[t,s],r),{})),"mapWithFilter"),tP=z((e,t,n,r)=>{if(t!==null){let a=n[r];typeof a=="function"&&(a=[,a]);let[i=x3,u=k3,l=r]=a;(typeof i=="function"&&i(t[l])||typeof i!="function"&&i)&&(e[r]=u(t[l]));return}let[o,s]=n[r];if(typeof s=="function"){let a,i=o===void 0&&(a=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=a:u&&(e[r]=s())}else{let a=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(a||i)&&(e[r]=s)}},"applyInstruction"),x3=z(e=>e!=null,"nonNullish"),k3=z(e=>e,"pass"),A3=z((e,t,n,r,o,s)=>{if(t!=null&&t[n]!==void 0){let a=r();if(a.length<=0)throw new Error("Empty value provided for input HTTP label: "+n+".");e=e.replace(o,s?a.split("/").map(i=>Ec(i)).join("/"):Ec(a))}else throw new Error("No value provided for input HTTP label: "+n+".");return e},"resolvedPath"),O3=z(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),up=z(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(t=>t!=null).map(up);if(typeof e=="object"){let t={};for(let n of Object.keys(e))e[n]!=null&&(t[n]=up(e[n]));return t}return e},"_json");function nP(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let o=[],s="";for(let a=0;a{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var N3=Ne(),I3=b(),R3="content-length";function oP(){return(e,t)=>async n=>{var r;let{request:o}=n;if(N3.HttpRequest.isInstance(o)&&!o.headers[R3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=t==null?void 0:t.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(t.logger instanceof I3.NoOpLogger)?t.logger.warn(s):console.warn(s)}return e({...n})}}en.checkContentLengthHeader=oP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var T3=e=>({applyToStack:t=>{t.add(oP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=T3});var iP=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.resolveS3Config=void 0;var B3=e=>{var t,n,r;return{...e,forcePathStyle:(t=e.forcePathStyle)!==null&&t!==void 0?t:!1,useAccelerateEndpoint:(n=e.useAccelerateEndpoint)!==null&&n!==void 0?n:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};vc.resolveS3Config=B3});var cP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var q3=Ne(),D3=e=>t=>async n=>{let r=await t(n),{response:o}=r;if(!q3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:a}=o;if(s<200||s>=300)return r;let i=await aP(a,e),u=await M3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=D3;var aP=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),M3=(e,t)=>aP(e,t).then(n=>t.utf8Encoder(n));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var F3=e=>({applyToStack:t=>{t.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=F3});var hp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var L3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=L3;var j3=e=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw new Error("Malformed ARN");let[,n,r,o,s,...a]=t;return{partition:n,service:r,region:o,accountId:s,resource:a.join(":")}};kn.parse=j3;var U3=e=>{let{partition:t="aws",service:n,region:r,accountId:o,resource:s}=e;if([n,r,o,s].some(a=>typeof a!="string"))throw new Error("Input ARN object is invalid");return`arn:${t}:${n}:${r}:${o}:${s}`};kn.build=U3});var lP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var z3=hp();function dP(){return e=>async t=>{let{input:{Bucket:n}}=t;if(typeof n=="string"&&!(0,z3.validate)(n)&&n.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw r.name="InvalidBucketName",r}return e({...t})}}tn.validateBucketNameMiddleware=dP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var G3=e=>({applyToStack:t=>{t.add(dP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=G3});var Ir=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var wc=(ne(),J(te));wc.__exportStar(sP(),Nr);wc.__exportStar(iP(),Nr);wc.__exportStar(cP(),Nr);wc.__exportStar(lP(),Nr)});var xe=m((sEe,_P)=>{var xc=Object.defineProperty,H3=Object.getOwnPropertyDescriptor,$3=Object.getOwnPropertyNames,K3=Object.prototype.hasOwnProperty,ar=(e,t)=>xc(e,"name",{value:t,configurable:!0}),V3=(e,t)=>{for(var n in t)xc(e,n,{get:t[n],enumerable:!0})},X3=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $3(t))!K3.call(e,o)&&o!==n&&xc(e,o,{get:()=>t[o],enumerable:!(r=H3(t,o))||r.enumerable});return e},W3=e=>X3(xc({},"__esModule",{value:!0}),e),uP={};V3(uP,{CredentialsProviderError:()=>Y3,ProviderError:()=>kc,TokenProviderError:()=>J3,chain:()=>Q3,fromStatic:()=>Z3,memoize:()=>eG});_P.exports=W3(uP);var mP=class pP extends Error{constructor(t,n=!0){super(t),this.tryNextLink=n,this.name="ProviderError",Object.setPrototypeOf(this,pP.prototype)}static from(t,n=!0){return Object.assign(new this(t.message,n),t)}};ar(mP,"ProviderError");var kc=mP,fP=class yP extends kc{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="CredentialsProviderError",Object.setPrototypeOf(this,yP.prototype)}};ar(fP,"CredentialsProviderError");var Y3=fP,gP=class hP extends kc{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="TokenProviderError",Object.setPrototypeOf(this,hP.prototype)}};ar(gP,"TokenProviderError");var J3=gP,Q3=ar((...e)=>async()=>{if(e.length===0)throw new kc("No providers in chain");let t;for(let n of e)try{return await n()}catch(r){if(t=r,r!=null&&r.tryNextLink)continue;throw r}throw t},"chain"),Z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),eG=ar((e,t,n)=>{let r,o,s,a=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,a=!1}finally{o=void 0}return r},"coalesceProvider");return t===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),a?r:n&&!n(r)?(a=!0,r):(t(r)&&await i(),r))},"memoize")});var Rr=m((iEe,EP)=>{var Ac=Object.defineProperty,tG=Object.getOwnPropertyDescriptor,nG=Object.getOwnPropertyNames,rG=Object.prototype.hasOwnProperty,SP=(e,t)=>Ac(e,"name",{value:t,configurable:!0}),oG=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},sG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nG(t))!rG.call(e,o)&&o!==n&&Ac(e,o,{get:()=>t[o],enumerable:!(r=tG(t,o))||r.enumerable});return e},iG=e=>sG(Ac({},"__esModule",{value:!0}),e),bP={};oG(bP,{getSmithyContext:()=>aG,normalizeProvider:()=>cG});EP.exports=iG(bP);var CP=w(),aG=SP(e=>e[CP.SMITHY_CONTEXT_KEY]||(e[CP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),cG=SP(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider")});var Cp=m((aEe,AP)=>{var Oc=Object.defineProperty,dG=Object.getOwnPropertyDescriptor,lG=Object.getOwnPropertyNames,uG=Object.prototype.hasOwnProperty,PP=(e,t)=>Oc(e,"name",{value:t,configurable:!0}),mG=(e,t)=>{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},pG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lG(t))!uG.call(e,o)&&o!==n&&Oc(e,o,{get:()=>t[o],enumerable:!(r=dG(t,o))||r.enumerable});return e},fG=e=>pG(Oc({},"__esModule",{value:!0}),e),vP={};mG(vP,{fromHex:()=>xP,toHex:()=>kP});AP.exports=fG(vP);var wP={},_p={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),wP[e]=t,_p[t]=e}function xP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n{var Bc=Object.defineProperty,yG=Object.getOwnPropertyDescriptor,gG=Object.getOwnPropertyNames,hG=Object.prototype.hasOwnProperty,Te=(e,t)=>Bc(e,"name",{value:t,configurable:!0}),_G=(e,t)=>{for(var n in t)Bc(e,n,{get:t[n],enumerable:!0})},CG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gG(t))!hG.call(e,o)&&o!==n&&Bc(e,o,{get:()=>t[o],enumerable:!(r=yG(t,o))||r.enumerable});return e},SG=e=>CG(Bc({},"__esModule",{value:!0}),e),TP={};_G(TP,{SignatureV4:()=>VG,clearCredentialCache:()=>MG,createScope:()=>Rc,getCanonicalHeaders:()=>Pp,getCanonicalQuery:()=>UP,getPayloadHash:()=>Tc,getSigningKey:()=>jP,moveHeadersToQuery:()=>KP,prepareRequest:()=>wp});XP.exports=SG(TP);var OP=Rr(),Sp=st(),bG="X-Amz-Algorithm",EG="X-Amz-Credential",BP="X-Amz-Date",PG="X-Amz-SignedHeaders",vG="X-Amz-Expires",qP="X-Amz-Signature",DP="X-Amz-Security-Token",MP="authorization",FP=BP.toLowerCase(),wG="date",xG=[MP,FP,wG],kG=qP.toLowerCase(),Ep="x-amz-content-sha256",AG=DP.toLowerCase(),OG={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},NG=/^proxy-/,IG=/^sec-/,bp="AWS4-HMAC-SHA256",RG="AWS4-HMAC-SHA256-PAYLOAD",TG="UNSIGNED-PAYLOAD",BG=50,LP="aws4_request",qG=60*60*24*7,An=Cp(),DG=st(),Tr={},Ic=[],Rc=Te((e,t,n)=>`${e}/${t}/${n}/${LP}`,"createScope"),jP=Te(async(e,t,n,r,o)=>{let s=await NP(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${o}:${(0,An.toHex)(s)}:${t.sessionToken}`;if(a in Tr)return Tr[a];for(Ic.push(a);Ic.length>BG;)delete Tr[Ic.shift()];let i=`AWS4${t.secretAccessKey}`;for(let u of[n,r,o,LP])i=await NP(e,i,u);return Tr[a]=i},"getSigningKey"),MG=Te(()=>{Ic.length=0,Object.keys(Tr).forEach(e=>{delete Tr[e]})},"clearCredentialCache"),NP=Te((e,t,n)=>{let r=new e(t);return r.update((0,DG.toUint8Array)(n)),r.digest()},"hmac"),Pp=Te(({headers:e},t,n)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in OG||t!=null&&t.has(s)||NG.test(s)||IG.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),ji=Xm(),UP=Te(({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===kG)continue;t.push(r);let o=e[r];typeof o=="string"?n[r]=`${(0,ji.escapeUri)(r)}=${(0,ji.escapeUri)(o)}`:Array.isArray(o)&&(n[r]=o.slice(0).reduce((s,a)=>s.concat([`${(0,ji.escapeUri)(r)}=${(0,ji.escapeUri)(a)}`]),[]).sort().join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")},"getCanonicalQuery"),FG=ic(),LG=st(),Tc=Te(async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===Ep)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,FG.isArrayBuffer)(t)){let r=new n;return r.update((0,LG.toUint8Array)(t)),(0,An.toHex)(await r.digest())}return TG},"getPayloadHash"),IP=st(),zP=class{format(t){let n=[];for(let s of Object.keys(t)){let a=(0,IP.fromUtf8)(s);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,a)=>s+a.byteLength,0)),o=0;for(let s of n)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let i=(0,IP.fromUtf8)(t.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(zG.fromNumber(t.value.valueOf()).bytes,1),c;case"uuid":if(!UG.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,An.fromHex)(t.value.replace(/\-/g,"")),1),y}}};Te(zP,"HeaderFormatter");var jG=zP,UG=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,GP=class HP{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&vp(n),new HP(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&vp(t),parseInt((0,An.toHex)(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};Te(GP,"Int64");var zG=GP;function vp(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}Te(vp,"negate");var GG=Te((e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},"hasHeader"),$P=Te(({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?HG(t):void 0}),"cloneRequest"),HG=Te(e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),KP=Te((e,t={})=>{var n;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():$P(e);for(let s of Object.keys(r)){let a=s.toLowerCase();a.slice(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)!=null&&n.has(a))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),wp=Te(e=>{e=typeof e.clone=="function"?e.clone():$P(e);for(let t of Object.keys(e.headers))xG.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},"prepareRequest"),$G=Te(e=>KG(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),KG=Te(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),VP=class{constructor({applyChecksum:t,credentials:n,region:r,service:o,sha256:s,uriEscapePath:a=!0}){this.headerFormatter=new jG,this.service=o,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,OP.normalizeProvider)(r),this.credentialProvider=(0,OP.normalizeProvider)(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:i,signingRegion:u,signingService:l}=n,c=await this.credentialProvider();this.validateResolvedCredentials(c);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Nc(r);if(o>qG)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let P=Rc(C,y,l??this.service),A=KP(wp(t),{unhoistableHeaders:a});c.sessionToken&&(A.query[DP]=c.sessionToken),A.query[bG]=bp,A.query[EG]=`${c.accessKeyId}/${P}`,A.query[BP]=g,A.query[vG]=o.toString(10);let v=Pp(A,s,i);return A.query[PG]=RP(v),A.query[qP]=await this.getSignature(g,P,this.getSigningKey(c,y,C,l),this.createCanonicalRequest(A,v,await Tc(t,this.sha256))),A}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:a}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Nc(r),c=Rc(u,i,a??this.service),y=await Tc({headers:{},body:n},this.sha256),g=new this.sha256;g.update(t);let C=(0,An.toHex)(await g.digest()),P=[RG,l,c,o,C,y].join(` +`),"stackTraceWarning"),Fi={warn:console.warn},Kz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VE(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,c=a<10?`0${a}`:`${a}`,y=i<10?`0${i}`:`${i}`;return`${Kz[r]}, ${u} ${yp[n]} ${t} ${l}:${c}:${y} GMT`}z(VE,"dateToUtcString");var Vz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Xz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Vz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,o,s,a,i,u,l]=t,c=kr(Ar(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return qi(c,y,g,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),Wz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Yz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Wz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,o,s,a,i,u,l,c]=t,y=kr(Ar(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),P=qi(y,g,C,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l});return c.toUpperCase()!="Z"&&P.setTime(P.getTime()-d3(c)),P},"parseRfc3339DateTimeWithOffset"),Jz=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$/),Qz=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$/),Zz=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})$/),e3=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Jz.exec(e);if(t){let[n,r,o,s,a,i,u,l]=t;return qi(kr(Ar(s)),ip(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})}if(t=Qz.exec(e),t){let[n,r,o,s,a,i,u,l]=t;return o3(qi(n3(s),ip(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(t=Zz.exec(e),t){let[n,r,o,s,a,i,u,l]=t;return qi(kr(Ar(l)),ip(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),t3=z(e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=pp(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");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(t*1e3))},"parseEpochTimestamp"),qi=z((e,t,n,r)=>{let o=t-1;return i3(e,o,n),new Date(Date.UTC(e,o,n,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),c3(r.fractionalMilliseconds)))},"buildDate"),n3=z(e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+kr(Ar(e));return ne.getTime()-new Date().getTime()>r3?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),ip=z(e=>{let t=yp.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},"parseMonthByShortName"),s3=[31,28,31,30,31,30,31,31,30,31,30,31],i3=z((e,t,n)=>{let r=s3[t];if(t===1&&a3(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${yp[t]} in ${e}: ${n}`)},"validateDayOfMonth"),a3=z(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=z((e,t,n,r)=>{let o=KE(Ar(e));if(or)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return o},"parseDateValue"),c3=z(e=>e==null?0:GE("0."+e)*1e3,"parseMilliseconds"),d3=z(e=>{let t=e[0],n=1;if(t=="+")n=1;else if(t=="-")n=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return n*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),Ar=z(e=>{let t=0;for(;t{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},"decorateServiceException"),JE=z(({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{let o=m3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,a=new n({name:(t==null?void 0:t.code)||(t==null?void 0:t.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw YE(a,t)},"throwDefaultError"),u3=z(e=>({output:t,parsedBody:n,errorCode:r})=>{JE({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},"withBaseException"),m3=z(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),p3=z(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),BE=!1,f3=z(e=>{e&&!BE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(BE=!0)},"emitWarningIfUnsupportedVersion"),y3=z(e=>{let t=[];for(let n in ap.AlgorithmId){let r=ap.AlgorithmId[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(n){this._checksumAlgorithms.push(n)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),g3=z(e=>{let t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),h3=z(e=>{let t=e.retryStrategy;return{setRetryStrategy(n){t=n},retryStrategy(){return t}}},"getRetryConfiguration"),_3=z(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},"resolveRetryRuntimeConfig"),QE=z(e=>({...y3(e),...h3(e)}),"getDefaultExtensionConfiguration"),C3=QE,S3=z(e=>({...g3(e),..._3(e)}),"resolveDefaultRuntimeConfig");function bc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}z(bc,"extendedEncodeURIComponent");var b3=z(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),ZE=z(e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=ZE(e[n]));return e},"getValueFromTextNode"),Li=z(function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n},"StringWrapper");Li.prototype=Object.create(String.prototype,{constructor:{value:Li,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Li,String);var eP=class _c extends Li{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof _c?t:t instanceof String||typeof t=="string"?new _c(t):new _c(JSON.stringify(t))}};z(eP,"LazyJsonString");var E3=eP;function gp(e,t,n){let r,o,s;if(typeof t>"u"&&typeof n>"u")r={},s=e;else{if(r=e,typeof t=="function")return o=t,s=n,w3(r,o,s);s=t}for(let a of Object.keys(s)){if(!Array.isArray(s[a])){r[a]=s[a];continue}tP(r,null,s,a)}return r}z(gp,"map");var P3=z(e=>{let t={};for(let[n,r]of Object.entries(e||{}))t[n]=[,r];return t},"convertMap"),v3=z((e,t)=>{let n={};for(let r in t)tP(n,e,t,r);return n},"take"),w3=z((e,t,n)=>gp(e,Object.entries(n).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[t,s()]:r[o]=[t,s],r),{})),"mapWithFilter"),tP=z((e,t,n,r)=>{if(t!==null){let a=n[r];typeof a=="function"&&(a=[,a]);let[i=x3,u=k3,l=r]=a;(typeof i=="function"&&i(t[l])||typeof i!="function"&&i)&&(e[r]=u(t[l]));return}let[o,s]=n[r];if(typeof s=="function"){let a,i=o===void 0&&(a=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=a:u&&(e[r]=s())}else{let a=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(a||i)&&(e[r]=s)}},"applyInstruction"),x3=z(e=>e!=null,"nonNullish"),k3=z(e=>e,"pass"),A3=z((e,t,n,r,o,s)=>{if(t!=null&&t[n]!==void 0){let a=r();if(a.length<=0)throw new Error("Empty value provided for input HTTP label: "+n+".");e=e.replace(o,s?a.split("/").map(i=>bc(i)).join("/"):bc(a))}else throw new Error("No value provided for input HTTP label: "+n+".");return e},"resolvedPath"),O3=z(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),up=z(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(t=>t!=null).map(up);if(typeof e=="object"){let t={};for(let n of Object.keys(e))e[n]!=null&&(t[n]=up(e[n]));return t}return e},"_json");function nP(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let o=[],s="";for(let a=0;a{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var N3=Ne(),I3=b(),R3="content-length";function oP(){return(e,t)=>async n=>{var r;let{request:o}=n;if(N3.HttpRequest.isInstance(o)&&!o.headers[R3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=t==null?void 0:t.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(t.logger instanceof I3.NoOpLogger)?t.logger.warn(s):console.warn(s)}return e({...n})}}en.checkContentLengthHeader=oP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var T3=e=>({applyToStack:t=>{t.add(oP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=T3});var iP=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.resolveS3Config=void 0;var B3=e=>{var t,n,r;return{...e,forcePathStyle:(t=e.forcePathStyle)!==null&&t!==void 0?t:!1,useAccelerateEndpoint:(n=e.useAccelerateEndpoint)!==null&&n!==void 0?n:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};Pc.resolveS3Config=B3});var cP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var q3=Ne(),D3=e=>t=>async n=>{let r=await t(n),{response:o}=r;if(!q3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:a}=o;if(s<200||s>=300)return r;let i=await aP(a,e),u=await M3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=D3;var aP=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),M3=(e,t)=>aP(e,t).then(n=>t.utf8Encoder(n));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var F3=e=>({applyToStack:t=>{t.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=F3});var hp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var L3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=L3;var j3=e=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw new Error("Malformed ARN");let[,n,r,o,s,...a]=t;return{partition:n,service:r,region:o,accountId:s,resource:a.join(":")}};kn.parse=j3;var U3=e=>{let{partition:t="aws",service:n,region:r,accountId:o,resource:s}=e;if([n,r,o,s].some(a=>typeof a!="string"))throw new Error("Input ARN object is invalid");return`arn:${t}:${n}:${r}:${o}:${s}`};kn.build=U3});var lP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var z3=hp();function dP(){return e=>async t=>{let{input:{Bucket:n}}=t;if(typeof n=="string"&&!(0,z3.validate)(n)&&n.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw r.name="InvalidBucketName",r}return e({...t})}}tn.validateBucketNameMiddleware=dP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var G3=e=>({applyToStack:t=>{t.add(dP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=G3});var Ir=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var vc=(ne(),J(te));vc.__exportStar(sP(),Nr);vc.__exportStar(iP(),Nr);vc.__exportStar(cP(),Nr);vc.__exportStar(lP(),Nr)});var xe=m((sEe,_P)=>{var wc=Object.defineProperty,H3=Object.getOwnPropertyDescriptor,$3=Object.getOwnPropertyNames,K3=Object.prototype.hasOwnProperty,ar=(e,t)=>wc(e,"name",{value:t,configurable:!0}),V3=(e,t)=>{for(var n in t)wc(e,n,{get:t[n],enumerable:!0})},X3=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $3(t))!K3.call(e,o)&&o!==n&&wc(e,o,{get:()=>t[o],enumerable:!(r=H3(t,o))||r.enumerable});return e},W3=e=>X3(wc({},"__esModule",{value:!0}),e),uP={};V3(uP,{CredentialsProviderError:()=>Y3,ProviderError:()=>xc,TokenProviderError:()=>J3,chain:()=>Q3,fromStatic:()=>Z3,memoize:()=>eG});_P.exports=W3(uP);var mP=class pP extends Error{constructor(t,n=!0){super(t),this.tryNextLink=n,this.name="ProviderError",Object.setPrototypeOf(this,pP.prototype)}static from(t,n=!0){return Object.assign(new this(t.message,n),t)}};ar(mP,"ProviderError");var xc=mP,fP=class yP extends xc{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="CredentialsProviderError",Object.setPrototypeOf(this,yP.prototype)}};ar(fP,"CredentialsProviderError");var Y3=fP,gP=class hP extends xc{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="TokenProviderError",Object.setPrototypeOf(this,hP.prototype)}};ar(gP,"TokenProviderError");var J3=gP,Q3=ar((...e)=>async()=>{if(e.length===0)throw new xc("No providers in chain");let t;for(let n of e)try{return await n()}catch(r){if(t=r,r!=null&&r.tryNextLink)continue;throw r}throw t},"chain"),Z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),eG=ar((e,t,n)=>{let r,o,s,a=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,a=!1}finally{o=void 0}return r},"coalesceProvider");return t===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),a?r:n&&!n(r)?(a=!0,r):(t(r)&&await i(),r))},"memoize")});var Rr=m((iEe,EP)=>{var kc=Object.defineProperty,tG=Object.getOwnPropertyDescriptor,nG=Object.getOwnPropertyNames,rG=Object.prototype.hasOwnProperty,SP=(e,t)=>kc(e,"name",{value:t,configurable:!0}),oG=(e,t)=>{for(var n in t)kc(e,n,{get:t[n],enumerable:!0})},sG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nG(t))!rG.call(e,o)&&o!==n&&kc(e,o,{get:()=>t[o],enumerable:!(r=tG(t,o))||r.enumerable});return e},iG=e=>sG(kc({},"__esModule",{value:!0}),e),bP={};oG(bP,{getSmithyContext:()=>aG,normalizeProvider:()=>cG});EP.exports=iG(bP);var CP=w(),aG=SP(e=>e[CP.SMITHY_CONTEXT_KEY]||(e[CP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),cG=SP(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider")});var Cp=m((aEe,AP)=>{var Ac=Object.defineProperty,dG=Object.getOwnPropertyDescriptor,lG=Object.getOwnPropertyNames,uG=Object.prototype.hasOwnProperty,PP=(e,t)=>Ac(e,"name",{value:t,configurable:!0}),mG=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},pG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lG(t))!uG.call(e,o)&&o!==n&&Ac(e,o,{get:()=>t[o],enumerable:!(r=dG(t,o))||r.enumerable});return e},fG=e=>pG(Ac({},"__esModule",{value:!0}),e),vP={};mG(vP,{fromHex:()=>xP,toHex:()=>kP});AP.exports=fG(vP);var wP={},_p={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),wP[e]=t,_p[t]=e}function xP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n{var Bc=Object.defineProperty,yG=Object.getOwnPropertyDescriptor,gG=Object.getOwnPropertyNames,hG=Object.prototype.hasOwnProperty,Te=(e,t)=>Bc(e,"name",{value:t,configurable:!0}),_G=(e,t)=>{for(var n in t)Bc(e,n,{get:t[n],enumerable:!0})},CG=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gG(t))!hG.call(e,o)&&o!==n&&Bc(e,o,{get:()=>t[o],enumerable:!(r=yG(t,o))||r.enumerable});return e},SG=e=>CG(Bc({},"__esModule",{value:!0}),e),TP={};_G(TP,{SignatureV4:()=>VG,clearCredentialCache:()=>MG,createScope:()=>Rc,getCanonicalHeaders:()=>Pp,getCanonicalQuery:()=>UP,getPayloadHash:()=>Tc,getSigningKey:()=>jP,moveHeadersToQuery:()=>KP,prepareRequest:()=>wp});XP.exports=SG(TP);var OP=Rr(),Sp=st(),bG="X-Amz-Algorithm",EG="X-Amz-Credential",BP="X-Amz-Date",PG="X-Amz-SignedHeaders",vG="X-Amz-Expires",qP="X-Amz-Signature",DP="X-Amz-Security-Token",MP="authorization",FP=BP.toLowerCase(),wG="date",xG=[MP,FP,wG],kG=qP.toLowerCase(),Ep="x-amz-content-sha256",AG=DP.toLowerCase(),OG={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},NG=/^proxy-/,IG=/^sec-/,bp="AWS4-HMAC-SHA256",RG="AWS4-HMAC-SHA256-PAYLOAD",TG="UNSIGNED-PAYLOAD",BG=50,LP="aws4_request",qG=60*60*24*7,An=Cp(),DG=st(),Tr={},Ic=[],Rc=Te((e,t,n)=>`${e}/${t}/${n}/${LP}`,"createScope"),jP=Te(async(e,t,n,r,o)=>{let s=await NP(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${o}:${(0,An.toHex)(s)}:${t.sessionToken}`;if(a in Tr)return Tr[a];for(Ic.push(a);Ic.length>BG;)delete Tr[Ic.shift()];let i=`AWS4${t.secretAccessKey}`;for(let u of[n,r,o,LP])i=await NP(e,i,u);return Tr[a]=i},"getSigningKey"),MG=Te(()=>{Ic.length=0,Object.keys(Tr).forEach(e=>{delete Tr[e]})},"clearCredentialCache"),NP=Te((e,t,n)=>{let r=new e(t);return r.update((0,DG.toUint8Array)(n)),r.digest()},"hmac"),Pp=Te(({headers:e},t,n)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in OG||t!=null&&t.has(s)||NG.test(s)||IG.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),Oc=Xm(),UP=Te(({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===kG)continue;t.push(r);let o=e[r];typeof o=="string"?n[r]=`${(0,Oc.escapeUri)(r)}=${(0,Oc.escapeUri)(o)}`:Array.isArray(o)&&(n[r]=o.slice(0).reduce((s,a)=>s.concat([`${(0,Oc.escapeUri)(r)}=${(0,Oc.escapeUri)(a)}`]),[]).sort().join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")},"getCanonicalQuery"),FG=sc(),LG=st(),Tc=Te(async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===Ep)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,FG.isArrayBuffer)(t)){let r=new n;return r.update((0,LG.toUint8Array)(t)),(0,An.toHex)(await r.digest())}return TG},"getPayloadHash"),IP=st(),zP=class{format(t){let n=[];for(let s of Object.keys(t)){let a=(0,IP.fromUtf8)(s);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,a)=>s+a.byteLength,0)),o=0;for(let s of n)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let i=(0,IP.fromUtf8)(t.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(zG.fromNumber(t.value.valueOf()).bytes,1),c;case"uuid":if(!UG.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,An.fromHex)(t.value.replace(/\-/g,"")),1),y}}};Te(zP,"HeaderFormatter");var jG=zP,UG=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,GP=class HP{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&vp(n),new HP(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&vp(t),parseInt((0,An.toHex)(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};Te(GP,"Int64");var zG=GP;function vp(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}Te(vp,"negate");var GG=Te((e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},"hasHeader"),$P=Te(({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?HG(t):void 0}),"cloneRequest"),HG=Te(e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),KP=Te((e,t={})=>{var n;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():$P(e);for(let s of Object.keys(r)){let a=s.toLowerCase();a.slice(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)!=null&&n.has(a))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),wp=Te(e=>{e=typeof e.clone=="function"?e.clone():$P(e);for(let t of Object.keys(e.headers))xG.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},"prepareRequest"),$G=Te(e=>KG(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),KG=Te(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),VP=class{constructor({applyChecksum:t,credentials:n,region:r,service:o,sha256:s,uriEscapePath:a=!0}){this.headerFormatter=new jG,this.service=o,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,OP.normalizeProvider)(r),this.credentialProvider=(0,OP.normalizeProvider)(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:i,signingRegion:u,signingService:l}=n,c=await this.credentialProvider();this.validateResolvedCredentials(c);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Nc(r);if(o>qG)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let P=Rc(C,y,l??this.service),A=KP(wp(t),{unhoistableHeaders:a});c.sessionToken&&(A.query[DP]=c.sessionToken),A.query[bG]=bp,A.query[EG]=`${c.accessKeyId}/${P}`,A.query[BP]=g,A.query[vG]=o.toString(10);let v=Pp(A,s,i);return A.query[PG]=RP(v),A.query[qP]=await this.getSignature(g,P,this.getSigningKey(c,y,C,l),this.createCanonicalRequest(A,v,await Tc(t,this.sha256))),A}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:a}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Nc(r),c=Rc(u,i,a??this.service),y=await Tc({headers:{},body:n},this.sha256),g=new this.sha256;g.update(t);let C=(0,An.toHex)(await g.digest()),P=[RG,l,c,o,C,y].join(` `);return this.signString(P,{signingDate:r,signingRegion:i,signingService:a})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:o}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:o,priorSignature:t.priorSignature}).then(a=>({message:t.message,signature:a}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let a=r??await this.regionProvider(),{shortDate:i}=Nc(n),u=new this.sha256(await this.getSigningKey(s,a,i,o));return u.update((0,Sp.toUint8Array)(t)),(0,An.toHex)(await u.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:a}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=wp(t),{longDate:c,shortDate:y}=Nc(n),g=Rc(y,u,a??this.service);l.headers[FP]=c,i.sessionToken&&(l.headers[AG]=i.sessionToken);let C=await Tc(l,this.sha256);!GG(Ep,l.headers)&&this.applyChecksum&&(l.headers[Ep]=C);let P=Pp(l,o,r),A=await this.getSignature(c,g,this.getSigningKey(i,u,y,a),this.createCanonicalRequest(l,P,C));return l.headers[MP]=`${bp} Credential=${i.accessKeyId}/${g}, SignedHeaders=${RP(P)}, Signature=${A}`,l}createCanonicalRequest(t,n,r){let o=Object.keys(n).sort();return`${t.method} ${this.getCanonicalPath(t)} ${UP(t)} @@ -16,18 +16,18 @@ ${o.join(";")} ${r}`}async createStringToSign(t,n,r){let o=new this.sha256;o.update((0,Sp.toUint8Array)(r));let s=await o.digest();return`${bp} ${t} ${n} -${(0,An.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return(0,ji.escapeUri)(r).replace(/%2F/g,"/")}return t}async getSignature(t,n,r,o){let s=await this.createStringToSign(t,n,o),a=new this.sha256(await r);return a.update((0,Sp.toUint8Array)(s)),(0,An.toHex)(await a.digest())}getSigningKey(t,n,r,o){return jP(this.sha256,t,r,n,o||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};Te(VP,"SignatureV4");var VG=VP,Nc=Te(e=>{let t=$G(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},"formatDate"),RP=Te(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var YP=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.resolveSigV4AuthConfig=qr.resolveAwsAuthConfig=void 0;var XG=xe(),kp=xp(),Br=Rr(),WG=3e5,YG=e=>{let t=e.credentials?WP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Br.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Br.normalizeProvider)(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,i])=>{let{signingRegion:u,signingService:l}=a;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:n},y=e.signerConstructor||kp.SignatureV4;return new y(c)}):s=async a=>{a=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Br.normalizeProvider)(e.region)(),properties:{}},a);let i=a.signingRegion,u=a.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:n},c=e.signerConstructor||kp.SignatureV4;return new c(l)},{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};qr.resolveAwsAuthConfig=YG;var JG=e=>{let t=e.credentials?WP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Br.normalizeProvider)(e.signer):s=(0,Br.normalizeProvider)(new kp.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:o,uriEscapePath:n})),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};qr.resolveSigV4AuthConfig=JG;var WP=e=>typeof e=="function"?(0,XG.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()t.expiration!==void 0):(0,Br.normalizeProvider)(e)});var Ap=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.getSkewCorrectedDate=void 0;var QG=e=>new Date(Date.now()+e);qc.getSkewCorrectedDate=QG});var JP=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.isClockSkewed=void 0;var ZG=Ap(),e2=(e,t)=>Math.abs((0,ZG.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Dc.isClockSkewed=e2});var QP=m(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.getUpdatedSystemClockOffset=void 0;var t2=JP(),n2=(e,t)=>{let n=Date.parse(e);return(0,t2.isClockSkewed)(n,t)?n-Date.now():t};Mc.getUpdatedSystemClockOffset=n2});var n0=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin=dt.awsAuthMiddlewareOptions=dt.awsAuthMiddleware=void 0;var t0=Ne(),r2=Ap(),ZP=QP(),o2=e=>(t,n)=>async function(r){var o,s,a,i;if(!t0.HttpRequest.isInstance(r.request))return t(r);let u=(a=(s=(o=n.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||a===void 0?void 0:a[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,c=await e.signer(u),y=await t({...r,request:await c.sign(r.request,{signingDate:(0,r2.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||n.signing_region,signingService:n.signing_service})}).catch(C=>{var P;let A=(P=C.ServerTime)!==null&&P!==void 0?P:e0(C.$response);throw A&&(e.systemClockOffset=(0,ZP.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=e0(y.response);return g&&(e.systemClockOffset=(0,ZP.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};dt.awsAuthMiddleware=o2;var e0=e=>{var t,n,r;return t0.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};dt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var s2=e=>({applyToStack:t=>{t.addRelativeTo((0,dt.awsAuthMiddleware)(e),dt.awsAuthMiddlewareOptions)}});dt.getAwsAuthPlugin=s2;dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin});var nn=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var r0=(ne(),J(te));r0.__exportStar(YP(),Fc);r0.__exportStar(n0(),Fc)});var o0=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.resolveUserAgentConfig=void 0;function i2(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Lc.resolveUserAgentConfig=i2});var s0=m((_Ee,a2)=>{a2.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Op=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var c2=(ne(),J(te)),i0=c2.__importDefault(s0()),a0=i0.default,c0="",d2=e=>{let{partitions:t}=a0;for(let r of t){let{regions:o,outputs:s}=r;for(let[a,i]of Object.entries(o))if(a===e)return{...s,...i}}for(let r of t){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}};Pt.partition=d2;var l2=(e,t="")=>{a0=e,c0=t};Pt.setPartitionInfo=l2;var u2=()=>{(0,Pt.setPartitionInfo)(i0.default,"")};Pt.useDefaultPartitionInfo=u2;var m2=()=>c0;Pt.getUserAgentPrefix=m2});var Uc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.isIpAddress=void 0;var p2=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}$"),f2=e=>p2.test(e)||e.startsWith("[")&&e.endsWith("]");jc.isIpAddress=f2});var d0=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.debugId=void 0;zc.debugId="endpoints"});var l0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.toDebugString=void 0;function Np(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Np(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Np).join(", ")})`:JSON.stringify(e,null,2)}Gc.toDebugString=Np});var Ui=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var u0=(ne(),J(te));u0.__exportStar(d0(),Hc);u0.__exportStar(l0(),Hc)});var m0=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.EndpointError=void 0;var Ip=class extends Error{constructor(t){super(t),this.name="EndpointError"}};$c.EndpointError=Ip});var f0=m(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0})});var g0=m(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0})});var _0=m(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0})});var S0=m(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0})});var E0=m(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0})});var gt=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var Dr=(ne(),J(te));Dr.__exportStar(m0(),On);Dr.__exportStar(f0(),On);Dr.__exportStar(g0(),On);Dr.__exportStar(_0(),On);Dr.__exportStar(S0(),On);Dr.__exportStar(E0(),On)});var Rp=m(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.isValidHostLabel=void 0;var y2=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),g2=(e,t=!1)=>{if(!t)return y2.test(e);let n=e.split(".");for(let r of n)if(!(0,zi.isValidHostLabel)(r))return!1;return!0};zi.isValidHostLabel=g2});var P0=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.isVirtualHostableS3Bucket=void 0;var h2=Uc(),_2=Rp(),C2=(e,t=!1)=>{if(t){for(let n of e.split("."))if(!(0,Gi.isVirtualHostableS3Bucket)(n))return!1;return!0}return!(!(0,_2.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,h2.isIpAddress)(e))};Gi.isVirtualHostableS3Bucket=C2});var v0=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.parseArn=void 0;var S2=e=>{let t=e.split(":");if(t.length<6)return null;let[n,r,o,s,a,...i]=t;return n!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:a,resourceId:i[0].includes("/")?i[0].split("/"):i}};Kc.parseArn=S2});var w0=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});var Tp=(ne(),J(te));Tp.__exportStar(P0(),Hi);Tp.__exportStar(v0(),Hi);Tp.__exportStar(Op(),Hi)});var x0=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.booleanEquals=void 0;var b2=(e,t)=>e===t;Vc.booleanEquals=b2});var A0=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.getAttrPathList=void 0;var k0=gt(),E2=e=>{let t=e.split("."),n=[];for(let r of t){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new k0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new k0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&n.push(r.slice(0,o)),n.push(s)}else n.push(r)}return n};Xc.getAttrPathList=E2});var O0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.getAttr=void 0;var P2=gt(),v2=A0(),w2=(e,t)=>(0,v2.getAttrPathList)(t).reduce((n,r)=>{if(typeof n!="object")throw new P2.EndpointError(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e);Wc.getAttr=w2});var N0=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.isSet=void 0;var x2=e=>e!=null;Yc.isSet=x2});var I0=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.not=void 0;var k2=e=>!e;Jc.not=k2});var T0=m(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0})});var B0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.HttpAuthLocation=void 0;var A2=w();Object.defineProperty(Qc,"HttpAuthLocation",{enumerable:!0,get:function(){return A2.HttpAuthLocation}})});var D0=m(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0})});var F0=m(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0})});var j0=m(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0})});var z0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var H0=m(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0})});var K0=m($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0})});var X0=m(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0})});var W0=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.HostAddressType=void 0;var O2;(function(e){e.AAAA="AAAA",e.A="A"})(O2=$i.HostAddressType||($i.HostAddressType={}))});var J0=m(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0})});var Q0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.EndpointURLScheme=void 0;var N2=w();Object.defineProperty(Zc,"EndpointURLScheme",{enumerable:!0,get:function(){return N2.EndpointURLScheme}})});var ev=m(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0})});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var ov=m(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0})});var iv=m(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=m(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var lv=m(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var mv=m(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0})});var fv=m(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0})});var yv=m(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});var Ki=(ne(),J(te));Ki.__exportStar(iv(),cr);Ki.__exportStar(cv(),cr);Ki.__exportStar(lv(),cr);Ki.__exportStar(mv(),cr);Ki.__exportStar(fv(),cr)});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var Cv=m(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var bv=m(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Lv=m(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var jv=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.RequestHandlerProtocol=void 0;var I2=w();Object.defineProperty(ed,"RequestHandlerProtocol",{enumerable:!0,get:function(){return I2.RequestHandlerProtocol}})});var zv=m(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Vv=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var pe=(ne(),J(te));pe.__exportStar(T0(),ue);pe.__exportStar(B0(),ue);pe.__exportStar(D0(),ue);pe.__exportStar(F0(),ue);pe.__exportStar(j0(),ue);pe.__exportStar(z0(),ue);pe.__exportStar(H0(),ue);pe.__exportStar(K0(),ue);pe.__exportStar(X0(),ue);pe.__exportStar(W0(),ue);pe.__exportStar(J0(),ue);pe.__exportStar(Q0(),ue);pe.__exportStar(ev(),ue);pe.__exportStar(nv(),ue);pe.__exportStar(ov(),ue);pe.__exportStar(yv(),ue);pe.__exportStar(hv(),ue);pe.__exportStar(Cv(),ue);pe.__exportStar(bv(),ue);pe.__exportStar(Pv(),ue);pe.__exportStar(wv(),ue);pe.__exportStar(kv(),ue);pe.__exportStar(Ov(),ue);pe.__exportStar(Iv(),ue);pe.__exportStar(Tv(),ue);pe.__exportStar(qv(),ue);pe.__exportStar(Mv(),ue);pe.__exportStar(Lv(),ue);pe.__exportStar(jv(),ue);pe.__exportStar(zv(),ue);pe.__exportStar(Hv(),ue);pe.__exportStar(Kv(),ue)});var Xv=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.parseURL=void 0;var qp=Vv(),R2=Uc(),Bp={[qp.EndpointURLScheme.HTTP]:80,[qp.EndpointURLScheme.HTTPS]:443},T2=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:P="",path:A="",query:v={}}=e,G=new URL(`${P}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(v).map(([Y,Le])=>`${Y}=${Le}`).join("&"),G}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:o,pathname:s,protocol:a,search:i}=t;if(i)return null;let u=a.slice(0,-1);if(!Object.values(qp.EndpointURLScheme).includes(u))return null;let l=(0,R2.isIpAddress)(o),c=n.includes(`${r}:${Bp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Bp[u]}`),y=`${r}${c?`:${Bp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};td.parseURL=T2});var Wv=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.stringEquals=void 0;var B2=(e,t)=>e===t;nd.stringEquals=B2});var Yv=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.substring=void 0;var q2=(e,t,n,r)=>t>=n||e.length{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.uriEncode=void 0;var D2=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);od.uriEncode=D2});var Dp=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.aws=void 0;var Bt=(ne(),J(te));lt.aws=Bt.__importStar(w0());Bt.__exportStar(x0(),lt);Bt.__exportStar(O0(),lt);Bt.__exportStar(N0(),lt);Bt.__exportStar(Rp(),lt);Bt.__exportStar(I0(),lt);Bt.__exportStar(Xv(),lt);Bt.__exportStar(Wv(),lt);Bt.__exportStar(Yv(),lt);Bt.__exportStar(Jv(),lt)});var Mp=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.evaluateTemplate=void 0;var M2=Dp(),F2=(e,t)=>{let n=[],r={...t.endpointParams,...t.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getReferenceValue=void 0;var L2=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e];id.getReferenceValue=L2});var Vi=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.evaluateExpression=void 0;var j2=gt(),U2=Fp(),z2=Mp(),G2=Qv(),H2=(e,t,n)=>{if(typeof e=="string")return(0,z2.evaluateTemplate)(e,n);if(e.fn)return(0,U2.callFunction)(e,n);if(e.ref)return(0,G2.getReferenceValue)(e,n);throw new j2.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};ad.evaluateExpression=H2});var Fp=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.callFunction=void 0;var $2=(ne(),J(te)),K2=$2.__importStar(Dp()),V2=Vi(),X2=({fn:e,argv:t},n)=>{let r=t.map(o=>["boolean","number"].includes(typeof o)?o:(0,V2.evaluateExpression)(o,"arg",n));return e.split(".").reduce((o,s)=>o[s],K2)(...r)};cd.callFunction=X2});var Zv=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.evaluateCondition=void 0;var Lp=Ui(),W2=gt(),Y2=Fp(),J2=({assign:e,...t},n)=>{var r,o;if(e&&e in n.referenceRecord)throw new W2.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,Y2.callFunction)(t,n);return(o=(r=n.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Lp.debugId,`evaluateCondition: ${(0,Lp.toDebugString)(t)} = ${(0,Lp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};dd.evaluateCondition=J2});var ud=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.evaluateConditions=void 0;var ew=Ui(),Q2=Zv(),Z2=(e=[],t)=>{var n,r;let o={};for(let s of e){let{result:a,toAssign:i}=(0,Q2.evaluateCondition)(s,{...t,referenceRecord:{...t.referenceRecord,...o}});if(!a)return{result:a};i&&(o[i.name]=i.value,(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,ew.debugId,`assign: ${i.name} := ${(0,ew.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};ld.evaluateConditions=Z2});var tw=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.getEndpointHeaders=void 0;var eH=gt(),tH=Vi(),nH=(e,t)=>Object.entries(e).reduce((n,[r,o])=>({...n,[r]:o.map(s=>{let a=(0,tH.evaluateExpression)(s,"Header value entry",t);if(typeof a!="string")throw new eH.EndpointError(`Header '${r}' value '${a}' is not a string`);return a})}),{});md.getEndpointHeaders=nH});var rw=m(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.getEndpointProperty=void 0;var nw=gt(),rH=Mp(),oH=jp(),sH=(e,t)=>{if(Array.isArray(e))return e.map(n=>(0,Xi.getEndpointProperty)(n,t));switch(typeof e){case"string":return(0,rH.evaluateTemplate)(e,t);case"object":if(e===null)throw new nw.EndpointError(`Unexpected endpoint property: ${e}`);return(0,oH.getEndpointProperties)(e,t);case"boolean":return e;default:throw new nw.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Xi.getEndpointProperty=sH});var jp=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.getEndpointProperties=void 0;var iH=rw(),aH=(e,t)=>Object.entries(e).reduce((n,[r,o])=>({...n,[r]:(0,iH.getEndpointProperty)(o,t)}),{});pd.getEndpointProperties=aH});var ow=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.getEndpointUrl=void 0;var cH=gt(),dH=Vi(),lH=(e,t)=>{let n=(0,dH.evaluateExpression)(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new cH.EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};fd.getEndpointUrl=lH});var iw=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.evaluateEndpointRule=void 0;var sw=Ui(),uH=ud(),mH=tw(),pH=jp(),fH=ow(),yH=(e,t)=>{var n,r;let{conditions:o,endpoint:s}=e,{result:a,referenceRecord:i}=(0,uH.evaluateConditions)(o,t);if(!a)return;let u={...t,referenceRecord:{...t.referenceRecord,...i}},{url:l,properties:c,headers:y}=s;return(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,sw.debugId,`Resolving endpoint from template: ${(0,sw.toDebugString)(s)}`),{...y!=null&&{headers:(0,mH.getEndpointHeaders)(y,u)},...c!=null&&{properties:(0,pH.getEndpointProperties)(c,u)},url:(0,fH.getEndpointUrl)(l,u)}};yd.evaluateEndpointRule=yH});var aw=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateErrorRule=void 0;var gH=gt(),hH=ud(),_H=Vi(),CH=(e,t)=>{let{conditions:n,error:r}=e,{result:o,referenceRecord:s}=(0,hH.evaluateConditions)(n,t);if(o)throw new gH.EndpointError((0,_H.evaluateExpression)(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))};gd.evaluateErrorRule=CH});var cw=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.evaluateTreeRule=void 0;var SH=ud(),bH=Up(),EH=(e,t)=>{let{conditions:n,rules:r}=e,{result:o,referenceRecord:s}=(0,SH.evaluateConditions)(n,t);if(o)return(0,bH.evaluateRules)(r,{...t,referenceRecord:{...t.referenceRecord,...s}})};hd.evaluateTreeRule=EH});var Up=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.evaluateRules=void 0;var dw=gt(),PH=iw(),vH=aw(),wH=cw(),xH=(e,t)=>{for(let n of e)if(n.type==="endpoint"){let r=(0,PH.evaluateEndpointRule)(n,t);if(r)return r}else if(n.type==="error")(0,vH.evaluateErrorRule)(n,t);else if(n.type==="tree"){let r=(0,wH.evaluateTreeRule)(n,t);if(r)return r}else throw new dw.EndpointError(`Unknown endpoint rule: ${n}`);throw new dw.EndpointError("Rules evaluation failed")};_d.evaluateRules=xH});var lw=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var kH=(ne(),J(te));kH.__exportStar(Up(),zp)});var uw=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.resolveEndpoint=void 0;var Cd=Ui(),AH=gt(),OH=lw(),NH=(e,t)=>{var n,r,o,s,a,i;let{endpointParams:u,logger:l}=t,{parameters:c,rules:y}=e;(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,`${Cd.debugId} Initial EndpointParams: ${(0,Cd.toDebugString)(u)}`);let g=Object.entries(c).filter(([,A])=>A.default!=null).map(([A,v])=>[A,v.default]);if(g.length>0)for(let[A,v]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:v;let C=Object.entries(c).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new AH.EndpointError(`Missing required parameter: '${A}'`);let P=(0,OH.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=t.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(t.endpointParams.Endpoint),{protocol:v,port:G}=A;P.url.protocol=v,P.url.port=G}catch{}return(i=(a=t.logger)===null||a===void 0?void 0:a.debug)===null||i===void 0||i.call(a,`${Cd.debugId} Resolved endpoint: ${(0,Cd.toDebugString)(P)}`),P};Sd.resolveEndpoint=NH});var Fr=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var bd=(ne(),J(te));bd.__exportStar(Op(),Mr);bd.__exportStar(Uc(),Mr);bd.__exportStar(uw(),Mr);bd.__exportStar(gt(),Mr)});var mw=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UA_ESCAPE_CHAR=Qe.UA_VALUE_ESCAPE_REGEX=Qe.UA_NAME_ESCAPE_REGEX=Qe.UA_NAME_SEPARATOR=Qe.SPACE=Qe.X_AMZ_USER_AGENT=Qe.USER_AGENT=void 0;Qe.USER_AGENT="user-agent";Qe.X_AMZ_USER_AGENT="x-amz-user-agent";Qe.SPACE=" ";Qe.UA_NAME_SEPARATOR="/";Qe.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Qe.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Qe.UA_ESCAPE_CHAR="-"});var pw=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getUserAgentPlugin=qt.getUserAgentMiddlewareOptions=qt.userAgentMiddleware=void 0;var IH=Fr(),RH=Ne(),it=mw(),TH=e=>(t,n)=>async r=>{var o,s;let{request:a}=r;if(!RH.HttpRequest.isInstance(a))return t(r);let{headers:i}=a,u=((o=n==null?void 0:n.userAgent)===null||o===void 0?void 0:o.map(Gp))||[],l=(await e.defaultUserAgentProvider()).map(Gp),c=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Gp))||[],y=(0,IH.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...c]).join(it.SPACE),C=[...l.filter(P=>P.startsWith("aws-sdk-")),...c].join(it.SPACE);return e.runtime!=="browser"?(C&&(i[it.X_AMZ_USER_AGENT]=i[it.X_AMZ_USER_AGENT]?`${i[it.USER_AGENT]} ${C}`:C),i[it.USER_AGENT]=g):i[it.X_AMZ_USER_AGENT]=g,t({...r,request:a})};qt.userAgentMiddleware=TH;var Gp=e=>{var t;let n=e[0].split(it.UA_NAME_SEPARATOR).map(i=>i.replace(it.UA_NAME_ESCAPE_REGEX,it.UA_ESCAPE_CHAR)).join(it.UA_NAME_SEPARATOR),r=(t=e[1])===null||t===void 0?void 0:t.replace(it.UA_VALUE_ESCAPE_REGEX,it.UA_ESCAPE_CHAR),o=n.indexOf(it.UA_NAME_SEPARATOR),s=n.substring(0,o),a=n.substring(o+1);return s==="api"&&(a=a.toLowerCase()),[s,a,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};qt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var BH=e=>({applyToStack:t=>{t.add((0,qt.userAgentMiddleware)(e),qt.getUserAgentMiddlewareOptions)}});qt.getUserAgentPlugin=BH});var Wi=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var fw=(ne(),J(te));fw.__exportStar(o0(),Ed);fw.__exportStar(pw(),Ed)});var vd=m((WPe,_w)=>{var Pd=Object.defineProperty,qH=Object.getOwnPropertyDescriptor,DH=Object.getOwnPropertyNames,MH=Object.prototype.hasOwnProperty,yw=(e,t)=>Pd(e,"name",{value:t,configurable:!0}),FH=(e,t)=>{for(var n in t)Pd(e,n,{get:t[n],enumerable:!0})},LH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of DH(t))!MH.call(e,o)&&o!==n&&Pd(e,o,{get:()=>t[o],enumerable:!(r=qH(t,o))||r.enumerable});return e},jH=e=>LH(Pd({},"__esModule",{value:!0}),e),gw={};FH(gw,{SelectorType:()=>hw,booleanSelector:()=>UH,numberSelector:()=>zH});_w.exports=jH(gw);var UH=yw((e,t,n)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}},"booleanSelector"),zH=yw((e,t,n)=>{if(!(t in e))return;let r=parseInt(e[t],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`);return r},"numberSelector"),hw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(hw||{})});var Dt=m((YPe,Ow)=>{var xd=Object.defineProperty,GH=Object.getOwnPropertyDescriptor,HH=Object.getOwnPropertyNames,$H=Object.prototype.hasOwnProperty,vt=(e,t)=>xd(e,"name",{value:t,configurable:!0}),KH=(e,t)=>{for(var n in t)xd(e,n,{get:t[n],enumerable:!0})},VH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HH(t))!$H.call(e,o)&&o!==n&&xd(e,o,{get:()=>t[o],enumerable:!(r=GH(t,o))||r.enumerable});return e},XH=e=>VH(xd({},"__esModule",{value:!0}),e),bw={};KH(bw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Pw,CONFIG_USE_FIPS_ENDPOINT:()=>ww,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>WH,DEFAULT_USE_FIPS_ENDPOINT:()=>JH,ENV_USE_DUALSTACK_ENDPOINT:()=>Ew,ENV_USE_FIPS_ENDPOINT:()=>vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>r$,NODE_REGION_CONFIG_OPTIONS:()=>n$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>YH,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>QH,REGION_ENV_NAME:()=>xw,REGION_INI_NAME:()=>kw,getRegionInfo:()=>c$,resolveCustomEndpointsConfig:()=>ZH,resolveEndpointsConfig:()=>t$,resolveRegionConfig:()=>o$});Ow.exports=XH(bw);var Nn=vd(),Ew="AWS_USE_DUALSTACK_ENDPOINT",Pw="use_dualstack_endpoint",WH=!1,YH={environmentVariableSelector:e=>(0,Nn.booleanSelector)(e,Ew,Nn.SelectorType.ENV),configFileSelector:e=>(0,Nn.booleanSelector)(e,Pw,Nn.SelectorType.CONFIG),default:!1},vw="AWS_USE_FIPS_ENDPOINT",ww="use_fips_endpoint",JH=!1,QH={environmentVariableSelector:e=>(0,Nn.booleanSelector)(e,vw,Nn.SelectorType.ENV),configFileSelector:e=>(0,Nn.booleanSelector)(e,ww,Nn.SelectorType.CONFIG),default:!1},wd=Rr(),ZH=vt(e=>{let{endpoint:t,urlParser:n}=e;return{...e,tls:e.tls??!0,endpoint:(0,wd.normalizeProvider)(typeof t=="string"?n(t):t),isCustomEndpoint:!0,useDualstackEndpoint:(0,wd.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),e$=vt(async e=>{let{tls:t=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:a}=await e.regionInfoProvider(n,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${a}`)},"getEndpointFromRegion"),t$=vt(e=>{let t=(0,wd.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:n,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:n?(0,wd.normalizeProvider)(typeof n=="string"?o(n):n):()=>e$({...e,useDualstackEndpoint:t,useFipsEndpoint:r}),isCustomEndpoint:!!n,useDualstackEndpoint:t}},"resolveEndpointsConfig"),xw="AWS_REGION",kw="region",n$={environmentVariableSelector:e=>e[xw],configFileSelector:e=>e[kw],default:()=>{throw new Error("Region is missing")}},r$={preferredFile:"credentials"},Aw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Cw=vt(e=>Aw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),o$=vt(e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return Cw(t);let r=await t();return Cw(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return Aw(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}}},"resolveRegionConfig"),Sw=vt((e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var r;return(r=e.find(({tags:o})=>t===o.includes("fips")&&n===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),s$=vt((e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0),"getResolvedHostname"),i$=vt((e,{partitionHash:t})=>Object.keys(t||{}).find(n=>t[n].regions.includes(e))??"aws","getResolvedPartition"),a$=vt((e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let o=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),c$=vt((e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:o,partitionHash:s})=>{var a,i,u,l,c;let y=i$(e,{partitionHash:s}),g=e in o?e:((a=s[y])==null?void 0:a.endpoint)??e,C={useFipsEndpoint:t,useDualstackEndpoint:n},P=Sw((i=o[g])==null?void 0:i.variants,C),A=Sw((u=s[y])==null?void 0:u.variants,C),v=s$(g,{regionHostname:P,partitionHostname:A});if(v===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let G=a$(v,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:r,hostname:v,...G&&{signingRegion:G},...((c=o[g])==null?void 0:c.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var Rw=m((JPe,Iw)=>{var kd=Object.defineProperty,d$=Object.getOwnPropertyDescriptor,l$=Object.getOwnPropertyNames,u$=Object.prototype.hasOwnProperty,m$=(e,t)=>kd(e,"name",{value:t,configurable:!0}),p$=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})},f$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l$(t))!u$.call(e,o)&&o!==n&&kd(e,o,{get:()=>t[o],enumerable:!(r=d$(t,o))||r.enumerable});return e},y$=e=>f$(kd({},"__esModule",{value:!0}),e),Nw={};p$(Nw,{resolveEventStreamSerdeConfig:()=>g$});Iw.exports=y$(Nw);var g$=m$(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Yi=m((QPe,Mw)=>{var Ad=Object.defineProperty,h$=Object.getOwnPropertyDescriptor,_$=Object.getOwnPropertyNames,C$=Object.prototype.hasOwnProperty,Bw=(e,t)=>Ad(e,"name",{value:t,configurable:!0}),S$=(e,t)=>{for(var n in t)Ad(e,n,{get:t[n],enumerable:!0})},b$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _$(t))!C$.call(e,o)&&o!==n&&Ad(e,o,{get:()=>t[o],enumerable:!(r=h$(t,o))||r.enumerable});return e},E$=e=>b$(Ad({},"__esModule",{value:!0}),e),qw={};S$(qw,{contentLengthMiddleware:()=>Hp,contentLengthMiddlewareOptions:()=>Dw,getContentLengthPlugin:()=>v$});Mw.exports=E$(qw);var P$=Ne(),Tw="content-length";function Hp(e){return t=>async n=>{let r=n.request;if(P$.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(Tw)===-1)try{let a=e(o);r.headers={...r.headers,[Tw]:String(a)}}catch{}}return t({...n,request:r})}}Bw(Hp,"contentLengthMiddleware");var Dw={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},v$=Bw(e=>({applyToStack:t=>{t.add(Hp(e.bodyLengthChecker),Dw)}}),"getContentLengthPlugin")});var Ji=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.getHomeDir=void 0;var w$=require("os"),x$=require("path"),$p={},k$=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",A$=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${x$.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${r}${n}`;let o=k$();return $p[o]||($p[o]=(0,w$.homedir)()),$p[o]};Od.getHomeDir=A$});var Kp=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.getSSOTokenFilepath=void 0;var O$=require("crypto"),N$=require("path"),I$=Ji(),R$=e=>{let n=(0,O$.createHash)("sha1").update(e).digest("hex");return(0,N$.join)((0,I$.getHomeDir)(),".aws","sso","cache",`${n}.json`)};Nd.getSSOTokenFilepath=R$});var Fw=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.getSSOTokenFromFile=void 0;var T$=require("fs"),B$=Kp(),{readFile:q$}=T$.promises,D$=async e=>{let t=(0,B$.getSSOTokenFilepath)(e),n=await q$(t,"utf8");return JSON.parse(n)};Id.getSSOTokenFromFile=D$});var Xp=m(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.slurpFile=void 0;var M$=require("fs"),{readFile:F$}=M$.promises,Vp={},L$=(e,t)=>((!Vp[e]||t!=null&&t.ignoreCache)&&(Vp[e]=F$(e,"utf8")),Vp[e]);Rd.slurpFile=L$});var wt=m((r0e,Zi)=>{var Bd=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,U$=Object.getOwnPropertyNames,z$=Object.prototype.hasOwnProperty,ht=(e,t)=>Bd(e,"name",{value:t,configurable:!0}),G$=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Wp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of U$(t))!z$.call(e,o)&&o!==n&&Bd(e,o,{get:()=>t[o],enumerable:!(r=j$(t,o))||r.enumerable});return e},Jp=(e,t,n)=>(Wp(e,t,"default"),n&&Wp(n,t,"default")),H$=e=>Wp(Bd({},"__esModule",{value:!0}),e),Qi={};G$(Qi,{CONFIG_PREFIX_SEPARATOR:()=>dr,DEFAULT_PROFILE:()=>zw,ENV_PROFILE:()=>Uw,getProfileName:()=>$$,loadSharedConfigFiles:()=>$w,loadSsoSessionData:()=>rK,parseKnownFiles:()=>sK});Zi.exports=H$(Qi);Jp(Qi,Ji(),Zi.exports);var Uw="AWS_PROFILE",zw="default",$$=ht(e=>e.profile||process.env[Uw]||zw,"getProfileName");Jp(Qi,Kp(),Zi.exports);Jp(Qi,Fw(),Zi.exports);var Td=w(),K$=ht(e=>Object.entries(e).filter(([t])=>{let n=t.indexOf(dr);return n===-1?!1:Object.values(Td.IniSectionType).includes(t.substring(0,n))}).reduce((t,[n,r])=>{let o=n.indexOf(dr),s=n.substring(0,o)===Td.IniSectionType.PROFILE?n.substring(o+1):n;return t[s]=r,t},{...e.default&&{default:e.default}}),"getConfigData"),Gw=require("path"),V$=Ji(),X$="AWS_CONFIG_FILE",Hw=ht(()=>process.env[X$]||(0,Gw.join)((0,V$.getHomeDir)(),".aws","config"),"getConfigFilepath"),W$=Ji(),Y$="AWS_SHARED_CREDENTIALS_FILE",J$=ht(()=>process.env[Y$]||(0,Gw.join)((0,W$.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),Q$=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Z$=["__proto__","profile __proto__"],Yp=ht(e=>{let t={},n,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){n=void 0,r=void 0;let i=s.substring(1,s.length-1),u=Q$.exec(i);if(u){let[,l,,c]=u;Object.values(Td.IniSectionType).includes(l)&&(n=[l,c].join(dr))}else n=i;if(Z$.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(n){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),t[n]=t[n]||{};let c=r?[r,u].join(dr):u;t[n][c]=l}}}}return t},"parseIni"),Lw=Xp(),jw=ht(()=>({}),"swallowError"),dr=".",$w=ht(async(e={})=>{let{filepath:t=J$(),configFilepath:n=Hw()}=e,r=await Promise.all([(0,Lw.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(Yp).then(K$).catch(jw),(0,Lw.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(Yp).catch(jw)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),eK=ht(e=>Object.entries(e).filter(([t])=>t.startsWith(Td.IniSectionType.SSO_SESSION+dr)).reduce((t,[n,r])=>({...t,[n.substring(n.indexOf(dr)+1)]:r}),{}),"getSsoSessionData"),tK=Xp(),nK=ht(()=>({}),"swallowError"),rK=ht(async(e={})=>(0,tK.slurpFile)(e.configFilepath??Hw()).then(Yp).then(eK).catch(nK),"loadSsoSessionData"),oK=ht((...e)=>{let t={};for(let n of e)for(let[r,o]of Object.entries(n))t[r]!==void 0?Object.assign(t[r],o):t[r]=o;return t},"mergeConfigFiles"),sK=ht(async e=>{let t=await $w(e);return oK(t.configFile,t.credentialsFile)},"parseKnownFiles")});var rn=m((o0e,Xw)=>{var qd=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,ta=(e,t)=>qd(e,"name",{value:t,configurable:!0}),dK=(e,t)=>{for(var n in t)qd(e,n,{get:t[n],enumerable:!0})},lK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aK(t))!cK.call(e,o)&&o!==n&&qd(e,o,{get:()=>t[o],enumerable:!(r=iK(t,o))||r.enumerable});return e},uK=e=>lK(qd({},"__esModule",{value:!0}),e),Vw={};dK(Vw,{loadConfig:()=>gK});Xw.exports=uK(Vw);var ea=xe(),mK=ta(e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new ea.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),Kw=wt(),pK=ta((e,{preferredFile:t="config",...n}={})=>async()=>{let r=(0,Kw.getProfileName)(n),{configFile:o,credentialsFile:s}=await(0,Kw.loadSharedConfigFiles)(n),a=s[r]||{},i=o[r]||{},u=t==="config"?{...a,...i}:{...i,...a};try{let c=e(u,t==="config"?o:s);if(c===void 0)throw new Error;return c}catch(l){throw new ea.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),fK=ta(e=>typeof e=="function","isFunction"),yK=ta(e=>fK(e)?async()=>await e():(0,ea.fromStatic)(e),"fromStatic"),gK=ta(({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,ea.memoize)((0,ea.chain)(mK(e),pK(t,r),yK(n))),"loadConfig")});var Qw=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getEndpointUrlConfig=void 0;var Ww=wt(),Yw="AWS_ENDPOINT_URL",Jw="endpoint_url",hK=e=>({environmentVariableSelector:t=>{let n=e.split(" ").map(s=>s.toUpperCase()),r=t[[Yw,...n].join("_")];if(r)return r;let o=t[Yw];if(o)return o},configFileSelector:(t,n)=>{if(n&&t.services){let o=n[["services",t.services].join(Ww.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),a=o[[s.join("_"),Jw].join(Ww.CONFIG_PREFIX_SEPARATOR)];if(a)return a}}let r=t[Jw];if(r)return r},default:void 0});Dd.getEndpointUrlConfig=hK});var Zw=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getEndpointFromConfig=void 0;var _K=rn(),CK=Qw(),SK=async e=>(0,_K.loadConfig)((0,CK.getEndpointUrlConfig)(e))();Md.getEndpointFromConfig=SK});var rx=m((a0e,nx)=>{var Fd=Object.defineProperty,bK=Object.getOwnPropertyDescriptor,EK=Object.getOwnPropertyNames,PK=Object.prototype.hasOwnProperty,vK=(e,t)=>Fd(e,"name",{value:t,configurable:!0}),wK=(e,t)=>{for(var n in t)Fd(e,n,{get:t[n],enumerable:!0})},xK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EK(t))!PK.call(e,o)&&o!==n&&Fd(e,o,{get:()=>t[o],enumerable:!(r=bK(t,o))||r.enumerable});return e},kK=e=>xK(Fd({},"__esModule",{value:!0}),e),ex={};wK(ex,{parseQueryString:()=>tx});nx.exports=kK(ex);function tx(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,o=null]=n.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in t?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o}return t}vK(tx,"parseQueryString")});var lr=m((c0e,ix)=>{var Ld=Object.defineProperty,AK=Object.getOwnPropertyDescriptor,OK=Object.getOwnPropertyNames,NK=Object.prototype.hasOwnProperty,IK=(e,t)=>Ld(e,"name",{value:t,configurable:!0}),RK=(e,t)=>{for(var n in t)Ld(e,n,{get:t[n],enumerable:!0})},TK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of OK(t))!NK.call(e,o)&&o!==n&&Ld(e,o,{get:()=>t[o],enumerable:!(r=AK(t,o))||r.enumerable});return e},BK=e=>TK(Ld({},"__esModule",{value:!0}),e),ox={};RK(ox,{parseUrl:()=>sx});ix.exports=BK(ox);var qK=rx(),sx=IK(e=>{if(typeof e=="string")return sx(new URL(e));let{hostname:t,pathname:n,port:r,protocol:o,search:s}=e,a;return s&&(a=(0,qK.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:o,path:n,query:a}},"parseUrl")});var k=m((d0e,px)=>{var jd=Object.defineProperty,DK=Object.getOwnPropertyDescriptor,MK=Object.getOwnPropertyNames,FK=Object.prototype.hasOwnProperty,Qp=(e,t)=>jd(e,"name",{value:t,configurable:!0}),LK=(e,t)=>{for(var n in t)jd(e,n,{get:t[n],enumerable:!0})},jK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of MK(t))!FK.call(e,o)&&o!==n&&jd(e,o,{get:()=>t[o],enumerable:!(r=DK(t,o))||r.enumerable});return e},UK=e=>jK(jd({},"__esModule",{value:!0}),e),ax={};LK(ax,{deserializerMiddleware:()=>cx,deserializerMiddlewareOption:()=>lx,getSerdePlugin:()=>mx,serializerMiddleware:()=>dx,serializerMiddlewareOption:()=>ux});px.exports=UK(ax);var cx=Qp((e,t)=>(n,r)=>async o=>{let{response:s}=await n(o);try{let a=await t(s,e);return{response:s,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:s}),!("$metadata"in a)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";a.message+=` - `+i,typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText)}throw a}},"deserializerMiddleware"),dx=Qp((e,t)=>(n,r)=>async o=>{var s;let a=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let i=await t(o.input,{...e,endpoint:a});return n({...o,request:i})},"serializerMiddleware"),lx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ux={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function mx(e,t,n){return{applyToStack:r=>{r.add(cx(e,n),lx),r.add(dx(e,t),ux)}}}Qp(mx,"getSerdePlugin")});var x=m((l0e,Sx)=>{var zd=Object.defineProperty,zK=Object.getOwnPropertyDescriptor,GK=Object.getOwnPropertyNames,HK=Object.prototype.hasOwnProperty,xt=(e,t)=>zd(e,"name",{value:t,configurable:!0}),$K=(e,t)=>{for(var n in t)zd(e,n,{get:t[n],enumerable:!0})},KK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of GK(t))!HK.call(e,o)&&o!==n&&zd(e,o,{get:()=>t[o],enumerable:!(r=zK(t,o))||r.enumerable});return e},VK=e=>KK(zd({},"__esModule",{value:!0}),e),yx={};$K(yx,{endpointMiddleware:()=>_x,endpointMiddlewareOptions:()=>Cx,getEndpointFromInstructions:()=>gx,getEndpointPlugin:()=>r6,resolveEndpointConfig:()=>o6,resolveParams:()=>hx,toEndpointV1:()=>Zp});Sx.exports=VK(yx);var XK=xt(async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),ZK(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!QK(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),WK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,YK=/(\d+\.){3}\d+/,JK=/\.\./,QK=xt(e=>WK.test(e)&&!YK.test(e)&&!JK.test(e),"isDnsCompatibleBucketName"),ZK=xt(e=>{let[t,n,r,,,o]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&n&&r&&o);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},"isArnBucketName"),e6=xt((e,t,n)=>{let r=xt(async()=>{let o=n[e]??n[t];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||t==="CredentialScope"?async()=>{let o=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||t==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:a,port:i,path:u}=o;return`${s}//${a}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),t6=Zw(),fx=lr(),Zp=xt(e=>typeof e=="object"?"url"in e?(0,fx.parseUrl)(e.url):e:(0,fx.parseUrl)(e),"toEndpointV1"),gx=xt(async(e,t,n,r)=>{if(!n.endpoint){let a=await(0,t6.getEndpointFromConfig)(n.serviceId||"");a&&(n.endpoint=()=>Promise.resolve(Zp(a)))}let o=await hx(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(o,r)},"getEndpointFromInstructions"),hx=xt(async(e,t,n)=>{var r;let o={},s=((r=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:r.call(t))||{};for(let[a,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[a]=i.value;break;case"contextParams":o[a]=e[i.name];break;case"clientContextParams":case"builtInParams":o[a]=await e6(i.name,a,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,n),String(n.serviceId).toLowerCase()==="s3"&&await XK(o),o},"resolveParams"),Ud=Rr(),_x=xt(({config:e,instructions:t})=>(n,r)=>async o=>{var s,a,i;let u=await gx(o.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(a=r.authSchemes)==null?void 0:a[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let c=(0,Ud.getSmithyContext)(r),y=(i=c==null?void 0:c.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...o})},"endpointMiddleware"),n6=k(),Cx={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:n6.serializerMiddlewareOption.name},r6=xt((e,t)=>({applyToStack:n=>{n.addRelativeTo(_x({config:e,instructions:t}),Cx)}}),"getEndpointPlugin"),o6=xt(e=>{let t=e.tls??!0,{endpoint:n}=e,r=n!=null?async()=>Zp(await(0,Ud.normalizeProvider)(n)()):void 0;return{...e,endpoint:r,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:(0,Ud.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Ud.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function na(){return Gd>Hd.length-16&&(bx.default.randomFillSync(Hd),Gd=0),Hd.slice(Gd,Gd+=16)}var bx,Hd,Gd,ef=je(()=>{bx=Er(require("crypto")),Hd=new Uint8Array(256),Gd=Hd.length});var Ex,Px=je(()=>{Ex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function s6(e){return typeof e=="string"&&Ex.test(e)}var In,ra=je(()=>{Px();In=s6});function ur(e,t=0){return Ve[e[t+0]]+Ve[e[t+1]]+Ve[e[t+2]]+Ve[e[t+3]]+"-"+Ve[e[t+4]]+Ve[e[t+5]]+"-"+Ve[e[t+6]]+Ve[e[t+7]]+"-"+Ve[e[t+8]]+Ve[e[t+9]]+"-"+Ve[e[t+10]]+Ve[e[t+11]]+Ve[e[t+12]]+Ve[e[t+13]]+Ve[e[t+14]]+Ve[e[t+15]]}function i6(e,t=0){let n=ur(e,t);if(!In(n))throw TypeError("Stringified UUID is invalid");return n}var Ve,vx,oa=je(()=>{ra();Ve=[];for(let e=0;e<256;++e)Ve.push((e+256).toString(16).slice(1));vx=i6});function a6(e,t,n){let r=t&&n||0,o=t||new Array(16);e=e||{};let s=e.node||wx,a=e.clockseq!==void 0?e.clockseq:tf;if(s==null||a==null){let g=e.random||(e.rng||na)();s==null&&(s=wx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),a==null&&(a=tf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:rf+1,l=i-nf+(u-rf)/1e4;if(l<0&&e.clockseq===void 0&&(a=a+1&16383),(l<0||i>nf)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");nf=i,rf=u,tf=a,i+=122192928e5;let c=((i&268435455)*1e4+u)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=c&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(let g=0;g<6;++g)o[r+g]=s[g];return t||ur(o)}var wx,tf,nf,rf,xx,kx=je(()=>{ef();oa();nf=0,rf=0;xx=a6});function c6(e){if(!In(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var $d,of=je(()=>{ra();$d=c6});function d6(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n{oa();of();l6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",u6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Ax.default.createHash("md5").update(e).digest()}var Ax,Ox,Nx=je(()=>{Ax=Er(require("crypto"));Ox=m6});var p6,Ix,Rx=je(()=>{sf();Nx();p6=sa("v3",48,Ox),Ix=p6});var Tx,af,Bx=je(()=>{Tx=Er(require("crypto")),af={randomUUID:Tx.default.randomUUID}});function f6(e,t,n){if(af.randomUUID&&!t&&!e)return af.randomUUID();e=e||{};let r=e.random||(e.rng||na)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return ur(r)}var qx,Dx=je(()=>{Bx();ef();oa();qx=f6});function y6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Mx.default.createHash("sha1").update(e).digest()}var Mx,Fx,Lx=je(()=>{Mx=Er(require("crypto"));Fx=y6});var g6,jx,Ux=je(()=>{sf();Lx();g6=sa("v5",80,Fx),jx=g6});var zx,Gx=je(()=>{zx="00000000-0000-0000-0000-000000000000"});function h6(e){if(!In(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var Hx,$x=je(()=>{ra();Hx=h6});var Kx={};Ni(Kx,{NIL:()=>zx,parse:()=>$d,stringify:()=>vx,v1:()=>xx,v3:()=>Ix,v4:()=>qx,v5:()=>jx,validate:()=>In,version:()=>Hx});var Vx=je(()=>{kx();Rx();Dx();Ux();Gx();$x();ra();oa();of()});var cf=m((Y0e,Jx)=>{var Kd=Object.defineProperty,_6=Object.getOwnPropertyDescriptor,C6=Object.getOwnPropertyNames,S6=Object.prototype.hasOwnProperty,Lr=(e,t)=>Kd(e,"name",{value:t,configurable:!0}),b6=(e,t)=>{for(var n in t)Kd(e,n,{get:t[n],enumerable:!0})},E6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of C6(t))!S6.call(e,o)&&o!==n&&Kd(e,o,{get:()=>t[o],enumerable:!(r=_6(t,o))||r.enumerable});return e},P6=e=>E6(Kd({},"__esModule",{value:!0}),e),Xx={};b6(Xx,{isClockSkewCorrectedError:()=>Wx,isClockSkewError:()=>N6,isRetryableByTrait:()=>O6,isServerError:()=>R6,isThrottlingError:()=>I6,isTransientError:()=>Yx});Jx.exports=P6(Xx);var v6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],w6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],x6=["TimeoutError","RequestTimeout","RequestTimeoutException"],k6=[500,502,503,504],A6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],O6=Lr(e=>e.$retryable!==void 0,"isRetryableByTrait"),N6=Lr(e=>v6.includes(e.name),"isClockSkewError"),Wx=Lr(e=>{var t;return(t=e.$metadata)==null?void 0:t.clockSkewCorrected},"isClockSkewCorrectedError"),I6=Lr(e=>{var t,n;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||w6.includes(e.name)||((n=e.$retryable)==null?void 0:n.throttling)==!0},"isThrottlingError"),Yx=Lr(e=>{var t;return Wx(e)||x6.includes(e.name)||A6.includes((e==null?void 0:e.code)||"")||k6.includes(((t=e.$metadata)==null?void 0:t.httpStatusCode)||0)},"isTransientError"),R6=Lr(e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){let n=e.$metadata.httpStatusCode;return 500<=n&&n<=599&&!Yx(e)}return!1},"isServerError")});var jr=m((tve,lk)=>{var Vd=Object.defineProperty,T6=Object.getOwnPropertyDescriptor,B6=Object.getOwnPropertyNames,q6=Object.prototype.hasOwnProperty,kt=(e,t)=>Vd(e,"name",{value:t,configurable:!0}),D6=(e,t)=>{for(var n in t)Vd(e,n,{get:t[n],enumerable:!0})},M6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B6(t))!q6.call(e,o)&&o!==n&&Vd(e,o,{get:()=>t[o],enumerable:!(r=T6(t,o))||r.enumerable});return e},F6=e=>M6(Vd({},"__esModule",{value:!0}),e),Zx={};D6(Zx,{AdaptiveRetryStrategy:()=>H6,ConfiguredRetryStrategy:()=>$6,DEFAULT_MAX_ATTEMPTS:()=>df,DEFAULT_RETRY_DELAY_BASE:()=>ia,DEFAULT_RETRY_MODE:()=>L6,DefaultRateLimiter:()=>nk,INITIAL_RETRY_TOKENS:()=>lf,INVOCATION_ID_HEADER:()=>U6,MAXIMUM_RETRY_DELAY:()=>uf,NO_RETRY_INCREMENT:()=>ik,REQUEST_HEADER:()=>z6,RETRY_COST:()=>ok,RETRY_MODES:()=>ek,StandardRetryStrategy:()=>mf,THROTTLING_RETRY_DELAY_BASE:()=>rk,TIMEOUT_RETRY_COST:()=>sk});lk.exports=F6(Zx);var ek=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(ek||{}),df=3,L6="standard",j6=cf(),tk=class{constructor(t){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(t==null?void 0:t.beta)??.7,this.minCapacity=(t==null?void 0:t.minCapacity)??1,this.minFillRate=(t==null?void 0:t.minFillRate)??.5,this.scaleConstant=(t==null?void 0:t.scaleConstant)??.4,this.smooth=(t==null?void 0:t.smooth)??.8;let n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,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(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),(0,j6.isThrottlingError)(t)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};kt(tk,"DefaultRateLimiter");var nk=tk,ia=100,uf=20*1e3,rk=500,lf=500,ok=5,sk=10,ik=1,U6="amz-sdk-invocation-id",z6="amz-sdk-request",G6=kt(()=>{let e=ia;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(uf,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),Qx=kt(({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:kt(()=>t,"getRetryCount"),getRetryDelay:kt(()=>Math.min(uf,e),"getRetryDelay"),getRetryCost:kt(()=>n,"getRetryCost")}),"createDefaultRetryToken"),ak=class{constructor(t){this.maxAttempts=t,this.mode="standard",this.capacity=lf,this.retryBackoffStrategy=G6(),this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return Qx({retryDelay:ia,retryCount:0})}async refreshRetryTokenForRetry(t,n){let r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){let o=n.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?rk:ia);let s=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),a=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,Qx({retryDelay:a,retryCount:t.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(lf,this.capacity+(t.getRetryCost()??ik))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${df}`),df}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?sk:ok}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};kt(ak,"StandardRetryStrategy");var mf=ak,ck=class{constructor(t,n){this.maxAttemptsProvider=t,this.mode="adaptive";let{rateLimiter:r}=n??{};this.rateLimiter=r??new nk,this.standardRetryStrategy=new mf(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}};kt(ck,"AdaptiveRetryStrategy");var H6=ck,dk=class extends mf{constructor(t,n=ia){super(typeof t=="function"?t:async()=>t),typeof n=="number"?this.computeNextBackoffDelay=()=>n:this.computeNextBackoffDelay=n}async refreshRetryTokenForRetry(t,n){let r=await super.refreshRetryTokenForRetry(t,n);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(dk,"ConfiguredRetryStrategy");var $6=dk});var uk=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.isStreamingPayload=void 0;var K6=require("stream"),V6=e=>(e==null?void 0:e.body)instanceof K6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;Xd.isStreamingPayload=V6});var on=m((sve,Ak)=>{var Wd=Object.defineProperty,X6=Object.getOwnPropertyDescriptor,W6=Object.getOwnPropertyNames,Y6=Object.prototype.hasOwnProperty,Be=(e,t)=>Wd(e,"name",{value:t,configurable:!0}),J6=(e,t)=>{for(var n in t)Wd(e,n,{get:t[n],enumerable:!0})},Q6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of W6(t))!Y6.call(e,o)&&o!==n&&Wd(e,o,{get:()=>t[o],enumerable:!(r=X6(t,o))||r.enumerable});return e},Z6=e=>Q6(Wd({},"__esModule",{value:!0}),e),pk={};J6(pk,{AdaptiveRetryStrategy:()=>nV,CONFIG_MAX_ATTEMPTS:()=>ff,CONFIG_RETRY_MODE:()=>Ek,ENV_MAX_ATTEMPTS:()=>pf,ENV_RETRY_MODE:()=>bk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>rV,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>sV,StandardRetryStrategy:()=>Ck,defaultDelayDecider:()=>yk,defaultRetryDecider:()=>gk,getOmitRetryHeadersPlugin:()=>iV,getRetryAfterHint:()=>kk,getRetryPlugin:()=>mV,omitRetryHeadersMiddleware:()=>Pk,omitRetryHeadersMiddlewareOptions:()=>vk,resolveRetryConfig:()=>oV,retryMiddleware:()=>wk,retryMiddlewareOptions:()=>xk});Ak.exports=Z6(pk);var Ur=Ne(),fk=(Vx(),J(Kx)),ve=jr(),eV=Be((e,t)=>{let n=e,r=(t==null?void 0:t.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(t==null?void 0:t.retryCost)??ve.RETRY_COST,s=(t==null?void 0:t.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,a=e,i=Be(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Be(y=>i(y)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Be(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return a-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Be(y=>{a+=y??r,a=Math.min(a,n)},"releaseRetryTokens")})},"getDefaultRetryQuota"),yk=Be((e,t)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e)),"defaultDelayDecider"),Rn=cf(),gk=Be(e=>e?(0,Rn.isRetryableByTrait)(e)||(0,Rn.isClockSkewError)(e)||(0,Rn.isThrottlingError)(e)||(0,Rn.isTransientError)(e):!1,"defaultRetryDecider"),hk=Be(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),_k=class{constructor(t,n){this.maxAttemptsProvider=t,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(n==null?void 0:n.retryDecider)??gk,this.delayDecider=(n==null?void 0:n.delayDecider)??yk,this.retryQuota=(n==null?void 0:n.retryQuota)??eV(ve.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return nsetTimeout(P,C));continue}throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=s,c.$metadata.totalRetryDelay=a,c}}};Be(_k,"StandardRetryStrategy");var Ck=_k,tV=Be(e=>{if(!Ur.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;let n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Sk=class extends Ck{constructor(t,n){let{rateLimiter:r,...o}=n??{};super(t,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Be(Sk,"AdaptiveRetryStrategy");var nV=Sk,mk=Rr(),pf="AWS_MAX_ATTEMPTS",ff="max_attempts",rV={environmentVariableSelector:e=>{let t=e[pf];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${pf} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ff];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ff} mast be a number, got "${t}"`);return n},default:ve.DEFAULT_MAX_ATTEMPTS},oV=Be(e=>{let{retryStrategy:t}=e,n=(0,mk.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:n,retryStrategy:async()=>t||(await(0,mk.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(n):new ve.StandardRetryStrategy(n))}},"resolveRetryConfig"),bk="AWS_RETRY_MODE",Ek="retry_mode",sV={environmentVariableSelector:e=>e[bk],configFileSelector:e=>e[Ek],default:ve.DEFAULT_RETRY_MODE},Pk=Be(()=>e=>async t=>{let{request:n}=t;return Ur.HttpRequest.isInstance(n)&&(delete n.headers[ve.INVOCATION_ID_HEADER],delete n.headers[ve.REQUEST_HEADER]),e(t)},"omitRetryHeadersMiddleware"),vk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},iV=Be(e=>({applyToStack:t=>{t.addRelativeTo(Pk(),vk)}}),"getOmitRetryHeadersPlugin"),aV=b(),cV=uk(),wk=Be(e=>(t,n)=>async r=>{var o;let s=await e.retryStrategy(),a=await e.maxAttempts();if(dV(s)){s=s;let i=await s.acquireInitialRetryToken(n.partition_id),u=new Error,l=0,c=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,fk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${a}`);let{response:C,output:P}=await t(r);return s.recordSuccess(i),P.$metadata.attempts=l+1,P.$metadata.totalRetryDelay=c,{response:C,output:P}}catch(C){let P=lV(C);if(u=hk(C),g&&(0,cV.isStreamingPayload)(y))throw(o=n.logger instanceof aV.NoOpLogger?console:n.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,P)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=c,u}l=i.getRetryCount();let A=i.getRetryDelay();c+=A,await new Promise(v=>setTimeout(v,A))}}else return s=s,s!=null&&s.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)},"retryMiddleware"),dV=Be(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),lV=Be(e=>{let t={error:e,errorType:uV(e)},n=kk(e.$response);return n&&(t.retryAfterHint=n),t},"getRetryErrorInfo"),uV=Be(e=>(0,Rn.isThrottlingError)(e)?"THROTTLING":(0,Rn.isTransientError)(e)?"TRANSIENT":(0,Rn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),xk={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},mV=Be(e=>({applyToStack:t=>{t.add(wk(e),xk)}}),"getRetryPlugin"),kk=Be(e=>{if(!Ur.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;let n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},"getRetryAfterHint")});var Ok=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.resolveClientEndpointParameters=void 0;var pV=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});Yd.resolveClientEndpointParameters=pV});var Nk=m((ave,fV)=>{fV.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Ik=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.resolveStsAuthConfig=void 0;var yV=nn(),gV=(e,{stsClientCtor:t})=>(0,yV.resolveAwsAuthConfig)({...e,stsClientCtor:t});Jd.resolveStsAuthConfig=gV});var Rk=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.resolveClientEndpointParameters=void 0;var hV=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});Qd.resolveClientEndpointParameters=hV});var Tk=m((lve,_V)=>{_V.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var Zd=m(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.STSServiceException=zr.__ServiceException=void 0;var Bk=b();Object.defineProperty(zr,"__ServiceException",{enumerable:!0,get:function(){return Bk.ServiceException}});var yf=class e extends Bk.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};zr.STSServiceException=yf});var Bn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.GetSessionTokenResponseFilterSensitiveLog=ae.GetFederationTokenResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=ae.AssumeRoleResponseFilterSensitiveLog=ae.CredentialsFilterSensitiveLog=ae.InvalidAuthorizationMessageException=ae.IDPCommunicationErrorException=ae.InvalidIdentityTokenException=ae.IDPRejectedClaimException=ae.RegionDisabledException=ae.PackedPolicyTooLargeException=ae.MalformedPolicyDocumentException=ae.ExpiredTokenException=void 0;var vf=b(),Tn=Zd(),gf=class e extends Tn.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.ExpiredTokenException=gf;var hf=class e extends Tn.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.MalformedPolicyDocumentException=hf;var _f=class e extends Tn.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.PackedPolicyTooLargeException=_f;var Cf=class e extends Tn.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.RegionDisabledException=Cf;var Sf=class e extends Tn.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPRejectedClaimException=Sf;var bf=class e extends Tn.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidIdentityTokenException=bf;var Ef=class e extends Tn.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPCommunicationErrorException=Ef;var Pf=class e extends Tn.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidAuthorizationMessageException=Pf;var CV=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:vf.SENSITIVE_STRING}});ae.CredentialsFilterSensitiveLog=CV;var SV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleResponseFilterSensitiveLog=SV;var bV=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:vf.SENSITIVE_STRING}});ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=bV;var EV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=EV;var PV=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:vf.SENSITIVE_STRING}});ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=PV;var vV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=vV;var wV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetFederationTokenResponseFilterSensitiveLog=wV;var xV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetSessionTokenResponseFilterSensitiveLog=xV});var el=m(sn=>{"use strict";var qk=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",kV=qk+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Dk="["+qk+"]["+kV+"]*",AV=new RegExp("^"+Dk+"$"),OV=function(e,t){let n=[],r=t.exec(e);for(;r;){let o=[];o.startIndex=t.lastIndex-r[0].length;let s=r.length;for(let a=0;a"u")};sn.isExist=function(e){return typeof e<"u"};sn.isEmptyObject=function(e){return Object.keys(e).length===0};sn.merge=function(e,t,n){if(t){let r=Object.keys(t),o=r.length;for(let s=0;s{"use strict";var wf=el(),IV={allowBooleanAttributes:!1,unpairedTags:[]};Uk.validate=function(e,t){t=Object.assign({},IV,t);let n=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` +${(0,An.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return t}async getSignature(t,n,r,o){let s=await this.createStringToSign(t,n,o),a=new this.sha256(await r);return a.update((0,Sp.toUint8Array)(s)),(0,An.toHex)(await a.digest())}getSigningKey(t,n,r,o){return jP(this.sha256,t,r,n,o||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};Te(VP,"SignatureV4");var VG=VP,Nc=Te(e=>{let t=$G(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},"formatDate"),RP=Te(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var YP=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.resolveSigV4AuthConfig=qr.resolveAwsAuthConfig=void 0;var XG=xe(),kp=xp(),Br=Rr(),WG=3e5,YG=e=>{let t=e.credentials?WP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Br.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Br.normalizeProvider)(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,i])=>{let{signingRegion:u,signingService:l}=a;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:n},y=e.signerConstructor||kp.SignatureV4;return new y(c)}):s=async a=>{a=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Br.normalizeProvider)(e.region)(),properties:{}},a);let i=a.signingRegion,u=a.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:n},c=e.signerConstructor||kp.SignatureV4;return new c(l)},{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};qr.resolveAwsAuthConfig=YG;var JG=e=>{let t=e.credentials?WP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Br.normalizeProvider)(e.signer):s=(0,Br.normalizeProvider)(new kp.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:o,uriEscapePath:n})),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};qr.resolveSigV4AuthConfig=JG;var WP=e=>typeof e=="function"?(0,XG.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()t.expiration!==void 0):(0,Br.normalizeProvider)(e)});var Ap=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.getSkewCorrectedDate=void 0;var QG=e=>new Date(Date.now()+e);qc.getSkewCorrectedDate=QG});var JP=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.isClockSkewed=void 0;var ZG=Ap(),e2=(e,t)=>Math.abs((0,ZG.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Dc.isClockSkewed=e2});var QP=m(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.getUpdatedSystemClockOffset=void 0;var t2=JP(),n2=(e,t)=>{let n=Date.parse(e);return(0,t2.isClockSkewed)(n,t)?n-Date.now():t};Mc.getUpdatedSystemClockOffset=n2});var n0=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin=dt.awsAuthMiddlewareOptions=dt.awsAuthMiddleware=void 0;var t0=Ne(),r2=Ap(),ZP=QP(),o2=e=>(t,n)=>async function(r){var o,s,a,i;if(!t0.HttpRequest.isInstance(r.request))return t(r);let u=(a=(s=(o=n.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||a===void 0?void 0:a[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,c=await e.signer(u),y=await t({...r,request:await c.sign(r.request,{signingDate:(0,r2.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||n.signing_region,signingService:n.signing_service})}).catch(C=>{var P;let A=(P=C.ServerTime)!==null&&P!==void 0?P:e0(C.$response);throw A&&(e.systemClockOffset=(0,ZP.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=e0(y.response);return g&&(e.systemClockOffset=(0,ZP.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};dt.awsAuthMiddleware=o2;var e0=e=>{var t,n,r;return t0.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};dt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var s2=e=>({applyToStack:t=>{t.addRelativeTo((0,dt.awsAuthMiddleware)(e),dt.awsAuthMiddlewareOptions)}});dt.getAwsAuthPlugin=s2;dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin});var nn=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var r0=(ne(),J(te));r0.__exportStar(YP(),Fc);r0.__exportStar(n0(),Fc)});var o0=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.resolveUserAgentConfig=void 0;function i2(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Lc.resolveUserAgentConfig=i2});var s0=m((_Ee,a2)=>{a2.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Op=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var c2=(ne(),J(te)),i0=c2.__importDefault(s0()),a0=i0.default,c0="",d2=e=>{let{partitions:t}=a0;for(let r of t){let{regions:o,outputs:s}=r;for(let[a,i]of Object.entries(o))if(a===e)return{...s,...i}}for(let r of t){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}};Pt.partition=d2;var l2=(e,t="")=>{a0=e,c0=t};Pt.setPartitionInfo=l2;var u2=()=>{(0,Pt.setPartitionInfo)(i0.default,"")};Pt.useDefaultPartitionInfo=u2;var m2=()=>c0;Pt.getUserAgentPrefix=m2});var Uc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.isIpAddress=void 0;var p2=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}$"),f2=e=>p2.test(e)||e.startsWith("[")&&e.endsWith("]");jc.isIpAddress=f2});var d0=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.debugId=void 0;zc.debugId="endpoints"});var l0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.toDebugString=void 0;function Np(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Np(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Np).join(", ")})`:JSON.stringify(e,null,2)}Gc.toDebugString=Np});var ji=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var u0=(ne(),J(te));u0.__exportStar(d0(),Hc);u0.__exportStar(l0(),Hc)});var m0=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.EndpointError=void 0;var Ip=class extends Error{constructor(t){super(t),this.name="EndpointError"}};$c.EndpointError=Ip});var f0=m(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0})});var g0=m(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0})});var _0=m(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0})});var S0=m(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0})});var E0=m(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0})});var gt=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var Dr=(ne(),J(te));Dr.__exportStar(m0(),On);Dr.__exportStar(f0(),On);Dr.__exportStar(g0(),On);Dr.__exportStar(_0(),On);Dr.__exportStar(S0(),On);Dr.__exportStar(E0(),On)});var Rp=m(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.isValidHostLabel=void 0;var y2=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),g2=(e,t=!1)=>{if(!t)return y2.test(e);let n=e.split(".");for(let r of n)if(!(0,Ui.isValidHostLabel)(r))return!1;return!0};Ui.isValidHostLabel=g2});var P0=m(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.isVirtualHostableS3Bucket=void 0;var h2=Uc(),_2=Rp(),C2=(e,t=!1)=>{if(t){for(let n of e.split("."))if(!(0,zi.isVirtualHostableS3Bucket)(n))return!1;return!0}return!(!(0,_2.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,h2.isIpAddress)(e))};zi.isVirtualHostableS3Bucket=C2});var v0=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.parseArn=void 0;var S2=e=>{let t=e.split(":");if(t.length<6)return null;let[n,r,o,s,a,...i]=t;return n!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:a,resourceId:i[0].includes("/")?i[0].split("/"):i}};Kc.parseArn=S2});var w0=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var Tp=(ne(),J(te));Tp.__exportStar(P0(),Gi);Tp.__exportStar(v0(),Gi);Tp.__exportStar(Op(),Gi)});var x0=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.booleanEquals=void 0;var b2=(e,t)=>e===t;Vc.booleanEquals=b2});var A0=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.getAttrPathList=void 0;var k0=gt(),E2=e=>{let t=e.split("."),n=[];for(let r of t){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new k0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new k0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&n.push(r.slice(0,o)),n.push(s)}else n.push(r)}return n};Xc.getAttrPathList=E2});var O0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.getAttr=void 0;var P2=gt(),v2=A0(),w2=(e,t)=>(0,v2.getAttrPathList)(t).reduce((n,r)=>{if(typeof n!="object")throw new P2.EndpointError(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e);Wc.getAttr=w2});var N0=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.isSet=void 0;var x2=e=>e!=null;Yc.isSet=x2});var I0=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.not=void 0;var k2=e=>!e;Jc.not=k2});var T0=m(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0})});var B0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.HttpAuthLocation=void 0;var A2=w();Object.defineProperty(Qc,"HttpAuthLocation",{enumerable:!0,get:function(){return A2.HttpAuthLocation}})});var D0=m(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0})});var F0=m(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0})});var j0=m(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0})});var z0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var H0=m(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0})});var K0=m($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0})});var X0=m(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0})});var W0=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.HostAddressType=void 0;var O2;(function(e){e.AAAA="AAAA",e.A="A"})(O2=Hi.HostAddressType||(Hi.HostAddressType={}))});var J0=m(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0})});var Q0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.EndpointURLScheme=void 0;var N2=w();Object.defineProperty(Zc,"EndpointURLScheme",{enumerable:!0,get:function(){return N2.EndpointURLScheme}})});var ev=m(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0})});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var ov=m(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0})});var iv=m(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=m(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var lv=m(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var mv=m(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0})});var fv=m(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0})});var yv=m(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});var $i=(ne(),J(te));$i.__exportStar(iv(),cr);$i.__exportStar(cv(),cr);$i.__exportStar(lv(),cr);$i.__exportStar(mv(),cr);$i.__exportStar(fv(),cr)});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var Cv=m(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var bv=m(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Lv=m(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var jv=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.RequestHandlerProtocol=void 0;var I2=w();Object.defineProperty(ed,"RequestHandlerProtocol",{enumerable:!0,get:function(){return I2.RequestHandlerProtocol}})});var zv=m(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Vv=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var pe=(ne(),J(te));pe.__exportStar(T0(),ue);pe.__exportStar(B0(),ue);pe.__exportStar(D0(),ue);pe.__exportStar(F0(),ue);pe.__exportStar(j0(),ue);pe.__exportStar(z0(),ue);pe.__exportStar(H0(),ue);pe.__exportStar(K0(),ue);pe.__exportStar(X0(),ue);pe.__exportStar(W0(),ue);pe.__exportStar(J0(),ue);pe.__exportStar(Q0(),ue);pe.__exportStar(ev(),ue);pe.__exportStar(nv(),ue);pe.__exportStar(ov(),ue);pe.__exportStar(yv(),ue);pe.__exportStar(hv(),ue);pe.__exportStar(Cv(),ue);pe.__exportStar(bv(),ue);pe.__exportStar(Pv(),ue);pe.__exportStar(wv(),ue);pe.__exportStar(kv(),ue);pe.__exportStar(Ov(),ue);pe.__exportStar(Iv(),ue);pe.__exportStar(Tv(),ue);pe.__exportStar(qv(),ue);pe.__exportStar(Mv(),ue);pe.__exportStar(Lv(),ue);pe.__exportStar(jv(),ue);pe.__exportStar(zv(),ue);pe.__exportStar(Hv(),ue);pe.__exportStar(Kv(),ue)});var Xv=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.parseURL=void 0;var qp=Vv(),R2=Uc(),Bp={[qp.EndpointURLScheme.HTTP]:80,[qp.EndpointURLScheme.HTTPS]:443},T2=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:P="",path:A="",query:v={}}=e,G=new URL(`${P}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(v).map(([Y,Le])=>`${Y}=${Le}`).join("&"),G}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:o,pathname:s,protocol:a,search:i}=t;if(i)return null;let u=a.slice(0,-1);if(!Object.values(qp.EndpointURLScheme).includes(u))return null;let l=(0,R2.isIpAddress)(o),c=n.includes(`${r}:${Bp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Bp[u]}`),y=`${r}${c?`:${Bp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};td.parseURL=T2});var Wv=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.stringEquals=void 0;var B2=(e,t)=>e===t;nd.stringEquals=B2});var Yv=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.substring=void 0;var q2=(e,t,n,r)=>t>=n||e.length{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.uriEncode=void 0;var D2=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);od.uriEncode=D2});var Dp=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.aws=void 0;var Bt=(ne(),J(te));lt.aws=Bt.__importStar(w0());Bt.__exportStar(x0(),lt);Bt.__exportStar(O0(),lt);Bt.__exportStar(N0(),lt);Bt.__exportStar(Rp(),lt);Bt.__exportStar(I0(),lt);Bt.__exportStar(Xv(),lt);Bt.__exportStar(Wv(),lt);Bt.__exportStar(Yv(),lt);Bt.__exportStar(Jv(),lt)});var Mp=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.evaluateTemplate=void 0;var M2=Dp(),F2=(e,t)=>{let n=[],r={...t.endpointParams,...t.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getReferenceValue=void 0;var L2=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e];id.getReferenceValue=L2});var Ki=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.evaluateExpression=void 0;var j2=gt(),U2=Fp(),z2=Mp(),G2=Qv(),H2=(e,t,n)=>{if(typeof e=="string")return(0,z2.evaluateTemplate)(e,n);if(e.fn)return(0,U2.callFunction)(e,n);if(e.ref)return(0,G2.getReferenceValue)(e,n);throw new j2.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};ad.evaluateExpression=H2});var Fp=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.callFunction=void 0;var $2=(ne(),J(te)),K2=$2.__importStar(Dp()),V2=Ki(),X2=({fn:e,argv:t},n)=>{let r=t.map(o=>["boolean","number"].includes(typeof o)?o:(0,V2.evaluateExpression)(o,"arg",n));return e.split(".").reduce((o,s)=>o[s],K2)(...r)};cd.callFunction=X2});var Zv=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.evaluateCondition=void 0;var Lp=ji(),W2=gt(),Y2=Fp(),J2=({assign:e,...t},n)=>{var r,o;if(e&&e in n.referenceRecord)throw new W2.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,Y2.callFunction)(t,n);return(o=(r=n.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Lp.debugId,`evaluateCondition: ${(0,Lp.toDebugString)(t)} = ${(0,Lp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};dd.evaluateCondition=J2});var ud=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.evaluateConditions=void 0;var ew=ji(),Q2=Zv(),Z2=(e=[],t)=>{var n,r;let o={};for(let s of e){let{result:a,toAssign:i}=(0,Q2.evaluateCondition)(s,{...t,referenceRecord:{...t.referenceRecord,...o}});if(!a)return{result:a};i&&(o[i.name]=i.value,(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,ew.debugId,`assign: ${i.name} := ${(0,ew.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};ld.evaluateConditions=Z2});var tw=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.getEndpointHeaders=void 0;var eH=gt(),tH=Ki(),nH=(e,t)=>Object.entries(e).reduce((n,[r,o])=>({...n,[r]:o.map(s=>{let a=(0,tH.evaluateExpression)(s,"Header value entry",t);if(typeof a!="string")throw new eH.EndpointError(`Header '${r}' value '${a}' is not a string`);return a})}),{});md.getEndpointHeaders=nH});var rw=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.getEndpointProperty=void 0;var nw=gt(),rH=Mp(),oH=jp(),sH=(e,t)=>{if(Array.isArray(e))return e.map(n=>(0,Vi.getEndpointProperty)(n,t));switch(typeof e){case"string":return(0,rH.evaluateTemplate)(e,t);case"object":if(e===null)throw new nw.EndpointError(`Unexpected endpoint property: ${e}`);return(0,oH.getEndpointProperties)(e,t);case"boolean":return e;default:throw new nw.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Vi.getEndpointProperty=sH});var jp=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.getEndpointProperties=void 0;var iH=rw(),aH=(e,t)=>Object.entries(e).reduce((n,[r,o])=>({...n,[r]:(0,iH.getEndpointProperty)(o,t)}),{});pd.getEndpointProperties=aH});var ow=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.getEndpointUrl=void 0;var cH=gt(),dH=Ki(),lH=(e,t)=>{let n=(0,dH.evaluateExpression)(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new cH.EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};fd.getEndpointUrl=lH});var iw=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.evaluateEndpointRule=void 0;var sw=ji(),uH=ud(),mH=tw(),pH=jp(),fH=ow(),yH=(e,t)=>{var n,r;let{conditions:o,endpoint:s}=e,{result:a,referenceRecord:i}=(0,uH.evaluateConditions)(o,t);if(!a)return;let u={...t,referenceRecord:{...t.referenceRecord,...i}},{url:l,properties:c,headers:y}=s;return(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,sw.debugId,`Resolving endpoint from template: ${(0,sw.toDebugString)(s)}`),{...y!=null&&{headers:(0,mH.getEndpointHeaders)(y,u)},...c!=null&&{properties:(0,pH.getEndpointProperties)(c,u)},url:(0,fH.getEndpointUrl)(l,u)}};yd.evaluateEndpointRule=yH});var aw=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateErrorRule=void 0;var gH=gt(),hH=ud(),_H=Ki(),CH=(e,t)=>{let{conditions:n,error:r}=e,{result:o,referenceRecord:s}=(0,hH.evaluateConditions)(n,t);if(o)throw new gH.EndpointError((0,_H.evaluateExpression)(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))};gd.evaluateErrorRule=CH});var cw=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.evaluateTreeRule=void 0;var SH=ud(),bH=Up(),EH=(e,t)=>{let{conditions:n,rules:r}=e,{result:o,referenceRecord:s}=(0,SH.evaluateConditions)(n,t);if(o)return(0,bH.evaluateRules)(r,{...t,referenceRecord:{...t.referenceRecord,...s}})};hd.evaluateTreeRule=EH});var Up=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.evaluateRules=void 0;var dw=gt(),PH=iw(),vH=aw(),wH=cw(),xH=(e,t)=>{for(let n of e)if(n.type==="endpoint"){let r=(0,PH.evaluateEndpointRule)(n,t);if(r)return r}else if(n.type==="error")(0,vH.evaluateErrorRule)(n,t);else if(n.type==="tree"){let r=(0,wH.evaluateTreeRule)(n,t);if(r)return r}else throw new dw.EndpointError(`Unknown endpoint rule: ${n}`);throw new dw.EndpointError("Rules evaluation failed")};_d.evaluateRules=xH});var lw=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var kH=(ne(),J(te));kH.__exportStar(Up(),zp)});var uw=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.resolveEndpoint=void 0;var Cd=ji(),AH=gt(),OH=lw(),NH=(e,t)=>{var n,r,o,s,a,i;let{endpointParams:u,logger:l}=t,{parameters:c,rules:y}=e;(r=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,`${Cd.debugId} Initial EndpointParams: ${(0,Cd.toDebugString)(u)}`);let g=Object.entries(c).filter(([,A])=>A.default!=null).map(([A,v])=>[A,v.default]);if(g.length>0)for(let[A,v]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:v;let C=Object.entries(c).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new AH.EndpointError(`Missing required parameter: '${A}'`);let P=(0,OH.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=t.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(t.endpointParams.Endpoint),{protocol:v,port:G}=A;P.url.protocol=v,P.url.port=G}catch{}return(i=(a=t.logger)===null||a===void 0?void 0:a.debug)===null||i===void 0||i.call(a,`${Cd.debugId} Resolved endpoint: ${(0,Cd.toDebugString)(P)}`),P};Sd.resolveEndpoint=NH});var Fr=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var bd=(ne(),J(te));bd.__exportStar(Op(),Mr);bd.__exportStar(Uc(),Mr);bd.__exportStar(uw(),Mr);bd.__exportStar(gt(),Mr)});var mw=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UA_ESCAPE_CHAR=Qe.UA_VALUE_ESCAPE_REGEX=Qe.UA_NAME_ESCAPE_REGEX=Qe.UA_NAME_SEPARATOR=Qe.SPACE=Qe.X_AMZ_USER_AGENT=Qe.USER_AGENT=void 0;Qe.USER_AGENT="user-agent";Qe.X_AMZ_USER_AGENT="x-amz-user-agent";Qe.SPACE=" ";Qe.UA_NAME_SEPARATOR="/";Qe.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Qe.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Qe.UA_ESCAPE_CHAR="-"});var pw=m(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getUserAgentPlugin=qt.getUserAgentMiddlewareOptions=qt.userAgentMiddleware=void 0;var IH=Fr(),RH=Ne(),it=mw(),TH=e=>(t,n)=>async r=>{var o,s;let{request:a}=r;if(!RH.HttpRequest.isInstance(a))return t(r);let{headers:i}=a,u=((o=n==null?void 0:n.userAgent)===null||o===void 0?void 0:o.map(Gp))||[],l=(await e.defaultUserAgentProvider()).map(Gp),c=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Gp))||[],y=(0,IH.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...c]).join(it.SPACE),C=[...l.filter(P=>P.startsWith("aws-sdk-")),...c].join(it.SPACE);return e.runtime!=="browser"?(C&&(i[it.X_AMZ_USER_AGENT]=i[it.X_AMZ_USER_AGENT]?`${i[it.USER_AGENT]} ${C}`:C),i[it.USER_AGENT]=g):i[it.X_AMZ_USER_AGENT]=g,t({...r,request:a})};qt.userAgentMiddleware=TH;var Gp=e=>{var t;let n=e[0].split(it.UA_NAME_SEPARATOR).map(i=>i.replace(it.UA_NAME_ESCAPE_REGEX,it.UA_ESCAPE_CHAR)).join(it.UA_NAME_SEPARATOR),r=(t=e[1])===null||t===void 0?void 0:t.replace(it.UA_VALUE_ESCAPE_REGEX,it.UA_ESCAPE_CHAR),o=n.indexOf(it.UA_NAME_SEPARATOR),s=n.substring(0,o),a=n.substring(o+1);return s==="api"&&(a=a.toLowerCase()),[s,a,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};qt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var BH=e=>({applyToStack:t=>{t.add((0,qt.userAgentMiddleware)(e),qt.getUserAgentMiddlewareOptions)}});qt.getUserAgentPlugin=BH});var Xi=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var fw=(ne(),J(te));fw.__exportStar(o0(),Ed);fw.__exportStar(pw(),Ed)});var vd=m((WPe,_w)=>{var Pd=Object.defineProperty,qH=Object.getOwnPropertyDescriptor,DH=Object.getOwnPropertyNames,MH=Object.prototype.hasOwnProperty,yw=(e,t)=>Pd(e,"name",{value:t,configurable:!0}),FH=(e,t)=>{for(var n in t)Pd(e,n,{get:t[n],enumerable:!0})},LH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of DH(t))!MH.call(e,o)&&o!==n&&Pd(e,o,{get:()=>t[o],enumerable:!(r=qH(t,o))||r.enumerable});return e},jH=e=>LH(Pd({},"__esModule",{value:!0}),e),gw={};FH(gw,{SelectorType:()=>hw,booleanSelector:()=>UH,numberSelector:()=>zH});_w.exports=jH(gw);var UH=yw((e,t,n)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}},"booleanSelector"),zH=yw((e,t,n)=>{if(!(t in e))return;let r=parseInt(e[t],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`);return r},"numberSelector"),hw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(hw||{})});var Dt=m((YPe,Ow)=>{var xd=Object.defineProperty,GH=Object.getOwnPropertyDescriptor,HH=Object.getOwnPropertyNames,$H=Object.prototype.hasOwnProperty,vt=(e,t)=>xd(e,"name",{value:t,configurable:!0}),KH=(e,t)=>{for(var n in t)xd(e,n,{get:t[n],enumerable:!0})},VH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HH(t))!$H.call(e,o)&&o!==n&&xd(e,o,{get:()=>t[o],enumerable:!(r=GH(t,o))||r.enumerable});return e},XH=e=>VH(xd({},"__esModule",{value:!0}),e),bw={};KH(bw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Pw,CONFIG_USE_FIPS_ENDPOINT:()=>ww,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>WH,DEFAULT_USE_FIPS_ENDPOINT:()=>JH,ENV_USE_DUALSTACK_ENDPOINT:()=>Ew,ENV_USE_FIPS_ENDPOINT:()=>vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>r$,NODE_REGION_CONFIG_OPTIONS:()=>n$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>YH,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>QH,REGION_ENV_NAME:()=>xw,REGION_INI_NAME:()=>kw,getRegionInfo:()=>c$,resolveCustomEndpointsConfig:()=>ZH,resolveEndpointsConfig:()=>t$,resolveRegionConfig:()=>o$});Ow.exports=XH(bw);var Nn=vd(),Ew="AWS_USE_DUALSTACK_ENDPOINT",Pw="use_dualstack_endpoint",WH=!1,YH={environmentVariableSelector:e=>(0,Nn.booleanSelector)(e,Ew,Nn.SelectorType.ENV),configFileSelector:e=>(0,Nn.booleanSelector)(e,Pw,Nn.SelectorType.CONFIG),default:!1},vw="AWS_USE_FIPS_ENDPOINT",ww="use_fips_endpoint",JH=!1,QH={environmentVariableSelector:e=>(0,Nn.booleanSelector)(e,vw,Nn.SelectorType.ENV),configFileSelector:e=>(0,Nn.booleanSelector)(e,ww,Nn.SelectorType.CONFIG),default:!1},wd=Rr(),ZH=vt(e=>{let{endpoint:t,urlParser:n}=e;return{...e,tls:e.tls??!0,endpoint:(0,wd.normalizeProvider)(typeof t=="string"?n(t):t),isCustomEndpoint:!0,useDualstackEndpoint:(0,wd.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),e$=vt(async e=>{let{tls:t=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:a}=await e.regionInfoProvider(n,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${a}`)},"getEndpointFromRegion"),t$=vt(e=>{let t=(0,wd.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:n,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:n?(0,wd.normalizeProvider)(typeof n=="string"?o(n):n):()=>e$({...e,useDualstackEndpoint:t,useFipsEndpoint:r}),isCustomEndpoint:!!n,useDualstackEndpoint:t}},"resolveEndpointsConfig"),xw="AWS_REGION",kw="region",n$={environmentVariableSelector:e=>e[xw],configFileSelector:e=>e[kw],default:()=>{throw new Error("Region is missing")}},r$={preferredFile:"credentials"},Aw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Cw=vt(e=>Aw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),o$=vt(e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return Cw(t);let r=await t();return Cw(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return Aw(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}}},"resolveRegionConfig"),Sw=vt((e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var r;return(r=e.find(({tags:o})=>t===o.includes("fips")&&n===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),s$=vt((e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0),"getResolvedHostname"),i$=vt((e,{partitionHash:t})=>Object.keys(t||{}).find(n=>t[n].regions.includes(e))??"aws","getResolvedPartition"),a$=vt((e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let o=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),c$=vt((e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:o,partitionHash:s})=>{var a,i,u,l,c;let y=i$(e,{partitionHash:s}),g=e in o?e:((a=s[y])==null?void 0:a.endpoint)??e,C={useFipsEndpoint:t,useDualstackEndpoint:n},P=Sw((i=o[g])==null?void 0:i.variants,C),A=Sw((u=s[y])==null?void 0:u.variants,C),v=s$(g,{regionHostname:P,partitionHostname:A});if(v===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let G=a$(v,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:r,hostname:v,...G&&{signingRegion:G},...((c=o[g])==null?void 0:c.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var Rw=m((JPe,Iw)=>{var kd=Object.defineProperty,d$=Object.getOwnPropertyDescriptor,l$=Object.getOwnPropertyNames,u$=Object.prototype.hasOwnProperty,m$=(e,t)=>kd(e,"name",{value:t,configurable:!0}),p$=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})},f$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l$(t))!u$.call(e,o)&&o!==n&&kd(e,o,{get:()=>t[o],enumerable:!(r=d$(t,o))||r.enumerable});return e},y$=e=>f$(kd({},"__esModule",{value:!0}),e),Nw={};p$(Nw,{resolveEventStreamSerdeConfig:()=>g$});Iw.exports=y$(Nw);var g$=m$(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Wi=m((QPe,Mw)=>{var Ad=Object.defineProperty,h$=Object.getOwnPropertyDescriptor,_$=Object.getOwnPropertyNames,C$=Object.prototype.hasOwnProperty,Bw=(e,t)=>Ad(e,"name",{value:t,configurable:!0}),S$=(e,t)=>{for(var n in t)Ad(e,n,{get:t[n],enumerable:!0})},b$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _$(t))!C$.call(e,o)&&o!==n&&Ad(e,o,{get:()=>t[o],enumerable:!(r=h$(t,o))||r.enumerable});return e},E$=e=>b$(Ad({},"__esModule",{value:!0}),e),qw={};S$(qw,{contentLengthMiddleware:()=>Hp,contentLengthMiddlewareOptions:()=>Dw,getContentLengthPlugin:()=>v$});Mw.exports=E$(qw);var P$=Ne(),Tw="content-length";function Hp(e){return t=>async n=>{let r=n.request;if(P$.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(Tw)===-1)try{let a=e(o);r.headers={...r.headers,[Tw]:String(a)}}catch{}}return t({...n,request:r})}}Bw(Hp,"contentLengthMiddleware");var Dw={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},v$=Bw(e=>({applyToStack:t=>{t.add(Hp(e.bodyLengthChecker),Dw)}}),"getContentLengthPlugin")});var Yi=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.getHomeDir=void 0;var w$=require("os"),x$=require("path"),$p={},k$=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",A$=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${x$.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${r}${n}`;let o=k$();return $p[o]||($p[o]=(0,w$.homedir)()),$p[o]};Od.getHomeDir=A$});var Kp=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.getSSOTokenFilepath=void 0;var O$=require("crypto"),N$=require("path"),I$=Yi(),R$=e=>{let n=(0,O$.createHash)("sha1").update(e).digest("hex");return(0,N$.join)((0,I$.getHomeDir)(),".aws","sso","cache",`${n}.json`)};Nd.getSSOTokenFilepath=R$});var Fw=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.getSSOTokenFromFile=void 0;var T$=require("fs"),B$=Kp(),{readFile:q$}=T$.promises,D$=async e=>{let t=(0,B$.getSSOTokenFilepath)(e),n=await q$(t,"utf8");return JSON.parse(n)};Id.getSSOTokenFromFile=D$});var Xp=m(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.slurpFile=void 0;var M$=require("fs"),{readFile:F$}=M$.promises,Vp={},L$=(e,t)=>((!Vp[e]||t!=null&&t.ignoreCache)&&(Vp[e]=F$(e,"utf8")),Vp[e]);Rd.slurpFile=L$});var wt=m((r0e,Qi)=>{var Bd=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,U$=Object.getOwnPropertyNames,z$=Object.prototype.hasOwnProperty,ht=(e,t)=>Bd(e,"name",{value:t,configurable:!0}),G$=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Wp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of U$(t))!z$.call(e,o)&&o!==n&&Bd(e,o,{get:()=>t[o],enumerable:!(r=j$(t,o))||r.enumerable});return e},Jp=(e,t,n)=>(Wp(e,t,"default"),n&&Wp(n,t,"default")),H$=e=>Wp(Bd({},"__esModule",{value:!0}),e),Ji={};G$(Ji,{CONFIG_PREFIX_SEPARATOR:()=>dr,DEFAULT_PROFILE:()=>zw,ENV_PROFILE:()=>Uw,getProfileName:()=>$$,loadSharedConfigFiles:()=>$w,loadSsoSessionData:()=>rK,parseKnownFiles:()=>sK});Qi.exports=H$(Ji);Jp(Ji,Yi(),Qi.exports);var Uw="AWS_PROFILE",zw="default",$$=ht(e=>e.profile||process.env[Uw]||zw,"getProfileName");Jp(Ji,Kp(),Qi.exports);Jp(Ji,Fw(),Qi.exports);var Td=w(),K$=ht(e=>Object.entries(e).filter(([t])=>{let n=t.indexOf(dr);return n===-1?!1:Object.values(Td.IniSectionType).includes(t.substring(0,n))}).reduce((t,[n,r])=>{let o=n.indexOf(dr),s=n.substring(0,o)===Td.IniSectionType.PROFILE?n.substring(o+1):n;return t[s]=r,t},{...e.default&&{default:e.default}}),"getConfigData"),Gw=require("path"),V$=Yi(),X$="AWS_CONFIG_FILE",Hw=ht(()=>process.env[X$]||(0,Gw.join)((0,V$.getHomeDir)(),".aws","config"),"getConfigFilepath"),W$=Yi(),Y$="AWS_SHARED_CREDENTIALS_FILE",J$=ht(()=>process.env[Y$]||(0,Gw.join)((0,W$.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),Q$=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Z$=["__proto__","profile __proto__"],Yp=ht(e=>{let t={},n,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){n=void 0,r=void 0;let i=s.substring(1,s.length-1),u=Q$.exec(i);if(u){let[,l,,c]=u;Object.values(Td.IniSectionType).includes(l)&&(n=[l,c].join(dr))}else n=i;if(Z$.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(n){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),t[n]=t[n]||{};let c=r?[r,u].join(dr):u;t[n][c]=l}}}}return t},"parseIni"),Lw=Xp(),jw=ht(()=>({}),"swallowError"),dr=".",$w=ht(async(e={})=>{let{filepath:t=J$(),configFilepath:n=Hw()}=e,r=await Promise.all([(0,Lw.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(Yp).then(K$).catch(jw),(0,Lw.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(Yp).catch(jw)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),eK=ht(e=>Object.entries(e).filter(([t])=>t.startsWith(Td.IniSectionType.SSO_SESSION+dr)).reduce((t,[n,r])=>({...t,[n.substring(n.indexOf(dr)+1)]:r}),{}),"getSsoSessionData"),tK=Xp(),nK=ht(()=>({}),"swallowError"),rK=ht(async(e={})=>(0,tK.slurpFile)(e.configFilepath??Hw()).then(Yp).then(eK).catch(nK),"loadSsoSessionData"),oK=ht((...e)=>{let t={};for(let n of e)for(let[r,o]of Object.entries(n))t[r]!==void 0?Object.assign(t[r],o):t[r]=o;return t},"mergeConfigFiles"),sK=ht(async e=>{let t=await $w(e);return oK(t.configFile,t.credentialsFile)},"parseKnownFiles")});var rn=m((o0e,Xw)=>{var qd=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,ea=(e,t)=>qd(e,"name",{value:t,configurable:!0}),dK=(e,t)=>{for(var n in t)qd(e,n,{get:t[n],enumerable:!0})},lK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aK(t))!cK.call(e,o)&&o!==n&&qd(e,o,{get:()=>t[o],enumerable:!(r=iK(t,o))||r.enumerable});return e},uK=e=>lK(qd({},"__esModule",{value:!0}),e),Vw={};dK(Vw,{loadConfig:()=>gK});Xw.exports=uK(Vw);var Zi=xe(),mK=ea(e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new Zi.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),Kw=wt(),pK=ea((e,{preferredFile:t="config",...n}={})=>async()=>{let r=(0,Kw.getProfileName)(n),{configFile:o,credentialsFile:s}=await(0,Kw.loadSharedConfigFiles)(n),a=s[r]||{},i=o[r]||{},u=t==="config"?{...a,...i}:{...i,...a};try{let c=e(u,t==="config"?o:s);if(c===void 0)throw new Error;return c}catch(l){throw new Zi.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),fK=ea(e=>typeof e=="function","isFunction"),yK=ea(e=>fK(e)?async()=>await e():(0,Zi.fromStatic)(e),"fromStatic"),gK=ea(({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,Zi.memoize)((0,Zi.chain)(mK(e),pK(t,r),yK(n))),"loadConfig")});var Qw=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getEndpointUrlConfig=void 0;var Ww=wt(),Yw="AWS_ENDPOINT_URL",Jw="endpoint_url",hK=e=>({environmentVariableSelector:t=>{let n=e.split(" ").map(s=>s.toUpperCase()),r=t[[Yw,...n].join("_")];if(r)return r;let o=t[Yw];if(o)return o},configFileSelector:(t,n)=>{if(n&&t.services){let o=n[["services",t.services].join(Ww.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),a=o[[s.join("_"),Jw].join(Ww.CONFIG_PREFIX_SEPARATOR)];if(a)return a}}let r=t[Jw];if(r)return r},default:void 0});Dd.getEndpointUrlConfig=hK});var Zw=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getEndpointFromConfig=void 0;var _K=rn(),CK=Qw(),SK=async e=>(0,_K.loadConfig)((0,CK.getEndpointUrlConfig)(e))();Md.getEndpointFromConfig=SK});var rx=m((a0e,nx)=>{var Fd=Object.defineProperty,bK=Object.getOwnPropertyDescriptor,EK=Object.getOwnPropertyNames,PK=Object.prototype.hasOwnProperty,vK=(e,t)=>Fd(e,"name",{value:t,configurable:!0}),wK=(e,t)=>{for(var n in t)Fd(e,n,{get:t[n],enumerable:!0})},xK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EK(t))!PK.call(e,o)&&o!==n&&Fd(e,o,{get:()=>t[o],enumerable:!(r=bK(t,o))||r.enumerable});return e},kK=e=>xK(Fd({},"__esModule",{value:!0}),e),ex={};wK(ex,{parseQueryString:()=>tx});nx.exports=kK(ex);function tx(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,o=null]=n.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in t?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o}return t}vK(tx,"parseQueryString")});var lr=m((c0e,ix)=>{var Ld=Object.defineProperty,AK=Object.getOwnPropertyDescriptor,OK=Object.getOwnPropertyNames,NK=Object.prototype.hasOwnProperty,IK=(e,t)=>Ld(e,"name",{value:t,configurable:!0}),RK=(e,t)=>{for(var n in t)Ld(e,n,{get:t[n],enumerable:!0})},TK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of OK(t))!NK.call(e,o)&&o!==n&&Ld(e,o,{get:()=>t[o],enumerable:!(r=AK(t,o))||r.enumerable});return e},BK=e=>TK(Ld({},"__esModule",{value:!0}),e),ox={};RK(ox,{parseUrl:()=>sx});ix.exports=BK(ox);var qK=rx(),sx=IK(e=>{if(typeof e=="string")return sx(new URL(e));let{hostname:t,pathname:n,port:r,protocol:o,search:s}=e,a;return s&&(a=(0,qK.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:o,path:n,query:a}},"parseUrl")});var k=m((d0e,px)=>{var jd=Object.defineProperty,DK=Object.getOwnPropertyDescriptor,MK=Object.getOwnPropertyNames,FK=Object.prototype.hasOwnProperty,Qp=(e,t)=>jd(e,"name",{value:t,configurable:!0}),LK=(e,t)=>{for(var n in t)jd(e,n,{get:t[n],enumerable:!0})},jK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of MK(t))!FK.call(e,o)&&o!==n&&jd(e,o,{get:()=>t[o],enumerable:!(r=DK(t,o))||r.enumerable});return e},UK=e=>jK(jd({},"__esModule",{value:!0}),e),ax={};LK(ax,{deserializerMiddleware:()=>cx,deserializerMiddlewareOption:()=>lx,getSerdePlugin:()=>mx,serializerMiddleware:()=>dx,serializerMiddlewareOption:()=>ux});px.exports=UK(ax);var cx=Qp((e,t)=>(n,r)=>async o=>{let{response:s}=await n(o);try{let a=await t(s,e);return{response:s,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:s}),!("$metadata"in a)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";a.message+=` + `+i,typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText)}throw a}},"deserializerMiddleware"),dx=Qp((e,t)=>(n,r)=>async o=>{var s;let a=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let i=await t(o.input,{...e,endpoint:a});return n({...o,request:i})},"serializerMiddleware"),lx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ux={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function mx(e,t,n){return{applyToStack:r=>{r.add(cx(e,n),lx),r.add(dx(e,t),ux)}}}Qp(mx,"getSerdePlugin")});var x=m((l0e,Sx)=>{var zd=Object.defineProperty,zK=Object.getOwnPropertyDescriptor,GK=Object.getOwnPropertyNames,HK=Object.prototype.hasOwnProperty,xt=(e,t)=>zd(e,"name",{value:t,configurable:!0}),$K=(e,t)=>{for(var n in t)zd(e,n,{get:t[n],enumerable:!0})},KK=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of GK(t))!HK.call(e,o)&&o!==n&&zd(e,o,{get:()=>t[o],enumerable:!(r=zK(t,o))||r.enumerable});return e},VK=e=>KK(zd({},"__esModule",{value:!0}),e),yx={};$K(yx,{endpointMiddleware:()=>_x,endpointMiddlewareOptions:()=>Cx,getEndpointFromInstructions:()=>gx,getEndpointPlugin:()=>r6,resolveEndpointConfig:()=>o6,resolveParams:()=>hx,toEndpointV1:()=>Zp});Sx.exports=VK(yx);var XK=xt(async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),ZK(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!QK(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),WK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,YK=/(\d+\.){3}\d+/,JK=/\.\./,QK=xt(e=>WK.test(e)&&!YK.test(e)&&!JK.test(e),"isDnsCompatibleBucketName"),ZK=xt(e=>{let[t,n,r,,,o]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&n&&r&&o);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},"isArnBucketName"),e6=xt((e,t,n)=>{let r=xt(async()=>{let o=n[e]??n[t];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||t==="CredentialScope"?async()=>{let o=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||t==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:a,port:i,path:u}=o;return`${s}//${a}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),t6=Zw(),fx=lr(),Zp=xt(e=>typeof e=="object"?"url"in e?(0,fx.parseUrl)(e.url):e:(0,fx.parseUrl)(e),"toEndpointV1"),gx=xt(async(e,t,n,r)=>{if(!n.endpoint){let a=await(0,t6.getEndpointFromConfig)(n.serviceId||"");a&&(n.endpoint=()=>Promise.resolve(Zp(a)))}let o=await hx(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(o,r)},"getEndpointFromInstructions"),hx=xt(async(e,t,n)=>{var r;let o={},s=((r=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:r.call(t))||{};for(let[a,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[a]=i.value;break;case"contextParams":o[a]=e[i.name];break;case"clientContextParams":case"builtInParams":o[a]=await e6(i.name,a,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,n),String(n.serviceId).toLowerCase()==="s3"&&await XK(o),o},"resolveParams"),Ud=Rr(),_x=xt(({config:e,instructions:t})=>(n,r)=>async o=>{var s,a,i;let u=await gx(o.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(a=r.authSchemes)==null?void 0:a[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let c=(0,Ud.getSmithyContext)(r),y=(i=c==null?void 0:c.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...o})},"endpointMiddleware"),n6=k(),Cx={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:n6.serializerMiddlewareOption.name},r6=xt((e,t)=>({applyToStack:n=>{n.addRelativeTo(_x({config:e,instructions:t}),Cx)}}),"getEndpointPlugin"),o6=xt(e=>{let t=e.tls??!0,{endpoint:n}=e,r=n!=null?async()=>Zp(await(0,Ud.normalizeProvider)(n)()):void 0;return{...e,endpoint:r,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:(0,Ud.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Ud.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function ta(){return Gd>Hd.length-16&&(bx.default.randomFillSync(Hd),Gd=0),Hd.slice(Gd,Gd+=16)}var bx,Hd,Gd,ef=je(()=>{bx=Er(require("crypto")),Hd=new Uint8Array(256),Gd=Hd.length});var Ex,Px=je(()=>{Ex=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function s6(e){return typeof e=="string"&&Ex.test(e)}var In,na=je(()=>{Px();In=s6});function ur(e,t=0){return Ve[e[t+0]]+Ve[e[t+1]]+Ve[e[t+2]]+Ve[e[t+3]]+"-"+Ve[e[t+4]]+Ve[e[t+5]]+"-"+Ve[e[t+6]]+Ve[e[t+7]]+"-"+Ve[e[t+8]]+Ve[e[t+9]]+"-"+Ve[e[t+10]]+Ve[e[t+11]]+Ve[e[t+12]]+Ve[e[t+13]]+Ve[e[t+14]]+Ve[e[t+15]]}function i6(e,t=0){let n=ur(e,t);if(!In(n))throw TypeError("Stringified UUID is invalid");return n}var Ve,vx,ra=je(()=>{na();Ve=[];for(let e=0;e<256;++e)Ve.push((e+256).toString(16).slice(1));vx=i6});function a6(e,t,n){let r=t&&n||0,o=t||new Array(16);e=e||{};let s=e.node||wx,a=e.clockseq!==void 0?e.clockseq:tf;if(s==null||a==null){let g=e.random||(e.rng||ta)();s==null&&(s=wx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),a==null&&(a=tf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:rf+1,l=i-nf+(u-rf)/1e4;if(l<0&&e.clockseq===void 0&&(a=a+1&16383),(l<0||i>nf)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");nf=i,rf=u,tf=a,i+=122192928e5;let c=((i&268435455)*1e4+u)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=c&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(let g=0;g<6;++g)o[r+g]=s[g];return t||ur(o)}var wx,tf,nf,rf,xx,kx=je(()=>{ef();ra();nf=0,rf=0;xx=a6});function c6(e){if(!In(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var $d,of=je(()=>{na();$d=c6});function d6(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n{ra();of();l6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",u6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Ax.default.createHash("md5").update(e).digest()}var Ax,Ox,Nx=je(()=>{Ax=Er(require("crypto"));Ox=m6});var p6,Ix,Rx=je(()=>{sf();Nx();p6=oa("v3",48,Ox),Ix=p6});var Tx,af,Bx=je(()=>{Tx=Er(require("crypto")),af={randomUUID:Tx.default.randomUUID}});function f6(e,t,n){if(af.randomUUID&&!t&&!e)return af.randomUUID();e=e||{};let r=e.random||(e.rng||ta)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return ur(r)}var qx,Dx=je(()=>{Bx();ef();ra();qx=f6});function y6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Mx.default.createHash("sha1").update(e).digest()}var Mx,Fx,Lx=je(()=>{Mx=Er(require("crypto"));Fx=y6});var g6,jx,Ux=je(()=>{sf();Lx();g6=oa("v5",80,Fx),jx=g6});var zx,Gx=je(()=>{zx="00000000-0000-0000-0000-000000000000"});function h6(e){if(!In(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var Hx,$x=je(()=>{na();Hx=h6});var Kx={};Ni(Kx,{NIL:()=>zx,parse:()=>$d,stringify:()=>vx,v1:()=>xx,v3:()=>Ix,v4:()=>qx,v5:()=>jx,validate:()=>In,version:()=>Hx});var Vx=je(()=>{kx();Rx();Dx();Ux();Gx();$x();na();ra();of()});var cf=m((Y0e,Jx)=>{var Kd=Object.defineProperty,_6=Object.getOwnPropertyDescriptor,C6=Object.getOwnPropertyNames,S6=Object.prototype.hasOwnProperty,Lr=(e,t)=>Kd(e,"name",{value:t,configurable:!0}),b6=(e,t)=>{for(var n in t)Kd(e,n,{get:t[n],enumerable:!0})},E6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of C6(t))!S6.call(e,o)&&o!==n&&Kd(e,o,{get:()=>t[o],enumerable:!(r=_6(t,o))||r.enumerable});return e},P6=e=>E6(Kd({},"__esModule",{value:!0}),e),Xx={};b6(Xx,{isClockSkewCorrectedError:()=>Wx,isClockSkewError:()=>N6,isRetryableByTrait:()=>O6,isServerError:()=>R6,isThrottlingError:()=>I6,isTransientError:()=>Yx});Jx.exports=P6(Xx);var v6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],w6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],x6=["TimeoutError","RequestTimeout","RequestTimeoutException"],k6=[500,502,503,504],A6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],O6=Lr(e=>e.$retryable!==void 0,"isRetryableByTrait"),N6=Lr(e=>v6.includes(e.name),"isClockSkewError"),Wx=Lr(e=>{var t;return(t=e.$metadata)==null?void 0:t.clockSkewCorrected},"isClockSkewCorrectedError"),I6=Lr(e=>{var t,n;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||w6.includes(e.name)||((n=e.$retryable)==null?void 0:n.throttling)==!0},"isThrottlingError"),Yx=Lr(e=>{var t;return Wx(e)||x6.includes(e.name)||A6.includes((e==null?void 0:e.code)||"")||k6.includes(((t=e.$metadata)==null?void 0:t.httpStatusCode)||0)},"isTransientError"),R6=Lr(e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){let n=e.$metadata.httpStatusCode;return 500<=n&&n<=599&&!Yx(e)}return!1},"isServerError")});var jr=m((tve,lk)=>{var Vd=Object.defineProperty,T6=Object.getOwnPropertyDescriptor,B6=Object.getOwnPropertyNames,q6=Object.prototype.hasOwnProperty,kt=(e,t)=>Vd(e,"name",{value:t,configurable:!0}),D6=(e,t)=>{for(var n in t)Vd(e,n,{get:t[n],enumerable:!0})},M6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B6(t))!q6.call(e,o)&&o!==n&&Vd(e,o,{get:()=>t[o],enumerable:!(r=T6(t,o))||r.enumerable});return e},F6=e=>M6(Vd({},"__esModule",{value:!0}),e),Zx={};D6(Zx,{AdaptiveRetryStrategy:()=>H6,ConfiguredRetryStrategy:()=>$6,DEFAULT_MAX_ATTEMPTS:()=>df,DEFAULT_RETRY_DELAY_BASE:()=>sa,DEFAULT_RETRY_MODE:()=>L6,DefaultRateLimiter:()=>nk,INITIAL_RETRY_TOKENS:()=>lf,INVOCATION_ID_HEADER:()=>U6,MAXIMUM_RETRY_DELAY:()=>uf,NO_RETRY_INCREMENT:()=>ik,REQUEST_HEADER:()=>z6,RETRY_COST:()=>ok,RETRY_MODES:()=>ek,StandardRetryStrategy:()=>mf,THROTTLING_RETRY_DELAY_BASE:()=>rk,TIMEOUT_RETRY_COST:()=>sk});lk.exports=F6(Zx);var ek=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(ek||{}),df=3,L6="standard",j6=cf(),tk=class{constructor(t){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(t==null?void 0:t.beta)??.7,this.minCapacity=(t==null?void 0:t.minCapacity)??1,this.minFillRate=(t==null?void 0:t.minFillRate)??.5,this.scaleConstant=(t==null?void 0:t.scaleConstant)??.4,this.smooth=(t==null?void 0:t.smooth)??.8;let n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,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(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),(0,j6.isThrottlingError)(t)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};kt(tk,"DefaultRateLimiter");var nk=tk,sa=100,uf=20*1e3,rk=500,lf=500,ok=5,sk=10,ik=1,U6="amz-sdk-invocation-id",z6="amz-sdk-request",G6=kt(()=>{let e=sa;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(uf,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),Qx=kt(({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:kt(()=>t,"getRetryCount"),getRetryDelay:kt(()=>Math.min(uf,e),"getRetryDelay"),getRetryCost:kt(()=>n,"getRetryCost")}),"createDefaultRetryToken"),ak=class{constructor(t){this.maxAttempts=t,this.mode="standard",this.capacity=lf,this.retryBackoffStrategy=G6(),this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return Qx({retryDelay:sa,retryCount:0})}async refreshRetryTokenForRetry(t,n){let r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){let o=n.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?rk:sa);let s=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),a=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,Qx({retryDelay:a,retryCount:t.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(lf,this.capacity+(t.getRetryCost()??ik))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${df}`),df}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?sk:ok}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};kt(ak,"StandardRetryStrategy");var mf=ak,ck=class{constructor(t,n){this.maxAttemptsProvider=t,this.mode="adaptive";let{rateLimiter:r}=n??{};this.rateLimiter=r??new nk,this.standardRetryStrategy=new mf(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}};kt(ck,"AdaptiveRetryStrategy");var H6=ck,dk=class extends mf{constructor(t,n=sa){super(typeof t=="function"?t:async()=>t),typeof n=="number"?this.computeNextBackoffDelay=()=>n:this.computeNextBackoffDelay=n}async refreshRetryTokenForRetry(t,n){let r=await super.refreshRetryTokenForRetry(t,n);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(dk,"ConfiguredRetryStrategy");var $6=dk});var uk=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.isStreamingPayload=void 0;var K6=require("stream"),V6=e=>(e==null?void 0:e.body)instanceof K6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;Xd.isStreamingPayload=V6});var on=m((sve,Ak)=>{var Wd=Object.defineProperty,X6=Object.getOwnPropertyDescriptor,W6=Object.getOwnPropertyNames,Y6=Object.prototype.hasOwnProperty,Be=(e,t)=>Wd(e,"name",{value:t,configurable:!0}),J6=(e,t)=>{for(var n in t)Wd(e,n,{get:t[n],enumerable:!0})},Q6=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of W6(t))!Y6.call(e,o)&&o!==n&&Wd(e,o,{get:()=>t[o],enumerable:!(r=X6(t,o))||r.enumerable});return e},Z6=e=>Q6(Wd({},"__esModule",{value:!0}),e),pk={};J6(pk,{AdaptiveRetryStrategy:()=>nV,CONFIG_MAX_ATTEMPTS:()=>ff,CONFIG_RETRY_MODE:()=>Ek,ENV_MAX_ATTEMPTS:()=>pf,ENV_RETRY_MODE:()=>bk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>rV,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>sV,StandardRetryStrategy:()=>Ck,defaultDelayDecider:()=>yk,defaultRetryDecider:()=>gk,getOmitRetryHeadersPlugin:()=>iV,getRetryAfterHint:()=>kk,getRetryPlugin:()=>mV,omitRetryHeadersMiddleware:()=>Pk,omitRetryHeadersMiddlewareOptions:()=>vk,resolveRetryConfig:()=>oV,retryMiddleware:()=>wk,retryMiddlewareOptions:()=>xk});Ak.exports=Z6(pk);var Ur=Ne(),fk=(Vx(),J(Kx)),ve=jr(),eV=Be((e,t)=>{let n=e,r=(t==null?void 0:t.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(t==null?void 0:t.retryCost)??ve.RETRY_COST,s=(t==null?void 0:t.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,a=e,i=Be(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Be(y=>i(y)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Be(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return a-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Be(y=>{a+=y??r,a=Math.min(a,n)},"releaseRetryTokens")})},"getDefaultRetryQuota"),yk=Be((e,t)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e)),"defaultDelayDecider"),Rn=cf(),gk=Be(e=>e?(0,Rn.isRetryableByTrait)(e)||(0,Rn.isClockSkewError)(e)||(0,Rn.isThrottlingError)(e)||(0,Rn.isTransientError)(e):!1,"defaultRetryDecider"),hk=Be(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),_k=class{constructor(t,n){this.maxAttemptsProvider=t,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(n==null?void 0:n.retryDecider)??gk,this.delayDecider=(n==null?void 0:n.delayDecider)??yk,this.retryQuota=(n==null?void 0:n.retryQuota)??eV(ve.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return nsetTimeout(P,C));continue}throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=s,c.$metadata.totalRetryDelay=a,c}}};Be(_k,"StandardRetryStrategy");var Ck=_k,tV=Be(e=>{if(!Ur.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;let n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Sk=class extends Ck{constructor(t,n){let{rateLimiter:r,...o}=n??{};super(t,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Be(Sk,"AdaptiveRetryStrategy");var nV=Sk,mk=Rr(),pf="AWS_MAX_ATTEMPTS",ff="max_attempts",rV={environmentVariableSelector:e=>{let t=e[pf];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${pf} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ff];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ff} mast be a number, got "${t}"`);return n},default:ve.DEFAULT_MAX_ATTEMPTS},oV=Be(e=>{let{retryStrategy:t}=e,n=(0,mk.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:n,retryStrategy:async()=>t||(await(0,mk.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(n):new ve.StandardRetryStrategy(n))}},"resolveRetryConfig"),bk="AWS_RETRY_MODE",Ek="retry_mode",sV={environmentVariableSelector:e=>e[bk],configFileSelector:e=>e[Ek],default:ve.DEFAULT_RETRY_MODE},Pk=Be(()=>e=>async t=>{let{request:n}=t;return Ur.HttpRequest.isInstance(n)&&(delete n.headers[ve.INVOCATION_ID_HEADER],delete n.headers[ve.REQUEST_HEADER]),e(t)},"omitRetryHeadersMiddleware"),vk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},iV=Be(e=>({applyToStack:t=>{t.addRelativeTo(Pk(),vk)}}),"getOmitRetryHeadersPlugin"),aV=b(),cV=uk(),wk=Be(e=>(t,n)=>async r=>{var o;let s=await e.retryStrategy(),a=await e.maxAttempts();if(dV(s)){s=s;let i=await s.acquireInitialRetryToken(n.partition_id),u=new Error,l=0,c=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,fk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${a}`);let{response:C,output:P}=await t(r);return s.recordSuccess(i),P.$metadata.attempts=l+1,P.$metadata.totalRetryDelay=c,{response:C,output:P}}catch(C){let P=lV(C);if(u=hk(C),g&&(0,cV.isStreamingPayload)(y))throw(o=n.logger instanceof aV.NoOpLogger?console:n.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,P)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=c,u}l=i.getRetryCount();let A=i.getRetryDelay();c+=A,await new Promise(v=>setTimeout(v,A))}}else return s=s,s!=null&&s.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)},"retryMiddleware"),dV=Be(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),lV=Be(e=>{let t={error:e,errorType:uV(e)},n=kk(e.$response);return n&&(t.retryAfterHint=n),t},"getRetryErrorInfo"),uV=Be(e=>(0,Rn.isThrottlingError)(e)?"THROTTLING":(0,Rn.isTransientError)(e)?"TRANSIENT":(0,Rn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),xk={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},mV=Be(e=>({applyToStack:t=>{t.add(wk(e),xk)}}),"getRetryPlugin"),kk=Be(e=>{if(!Ur.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;let n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},"getRetryAfterHint")});var Ok=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.resolveClientEndpointParameters=void 0;var pV=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});Yd.resolveClientEndpointParameters=pV});var Nk=m((ave,fV)=>{fV.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Ik=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.resolveStsAuthConfig=void 0;var yV=nn(),gV=(e,{stsClientCtor:t})=>(0,yV.resolveAwsAuthConfig)({...e,stsClientCtor:t});Jd.resolveStsAuthConfig=gV});var Rk=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.resolveClientEndpointParameters=void 0;var hV=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});Qd.resolveClientEndpointParameters=hV});var Tk=m((lve,_V)=>{_V.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var Zd=m(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.STSServiceException=zr.__ServiceException=void 0;var Bk=b();Object.defineProperty(zr,"__ServiceException",{enumerable:!0,get:function(){return Bk.ServiceException}});var yf=class e extends Bk.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};zr.STSServiceException=yf});var Bn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.GetSessionTokenResponseFilterSensitiveLog=ae.GetFederationTokenResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=ae.AssumeRoleResponseFilterSensitiveLog=ae.CredentialsFilterSensitiveLog=ae.InvalidAuthorizationMessageException=ae.IDPCommunicationErrorException=ae.InvalidIdentityTokenException=ae.IDPRejectedClaimException=ae.RegionDisabledException=ae.PackedPolicyTooLargeException=ae.MalformedPolicyDocumentException=ae.ExpiredTokenException=void 0;var vf=b(),Tn=Zd(),gf=class e extends Tn.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.ExpiredTokenException=gf;var hf=class e extends Tn.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.MalformedPolicyDocumentException=hf;var _f=class e extends Tn.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.PackedPolicyTooLargeException=_f;var Cf=class e extends Tn.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.RegionDisabledException=Cf;var Sf=class e extends Tn.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPRejectedClaimException=Sf;var bf=class e extends Tn.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidIdentityTokenException=bf;var Ef=class e extends Tn.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPCommunicationErrorException=Ef;var Pf=class e extends Tn.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidAuthorizationMessageException=Pf;var CV=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:vf.SENSITIVE_STRING}});ae.CredentialsFilterSensitiveLog=CV;var SV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleResponseFilterSensitiveLog=SV;var bV=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:vf.SENSITIVE_STRING}});ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=bV;var EV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=EV;var PV=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:vf.SENSITIVE_STRING}});ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=PV;var vV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=vV;var wV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetFederationTokenResponseFilterSensitiveLog=wV;var xV=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetSessionTokenResponseFilterSensitiveLog=xV});var el=m(sn=>{"use strict";var qk=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",kV=qk+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Dk="["+qk+"]["+kV+"]*",AV=new RegExp("^"+Dk+"$"),OV=function(e,t){let n=[],r=t.exec(e);for(;r;){let o=[];o.startIndex=t.lastIndex-r[0].length;let s=r.length;for(let a=0;a"u")};sn.isExist=function(e){return typeof e<"u"};sn.isEmptyObject=function(e){return Object.keys(e).length===0};sn.merge=function(e,t,n){if(t){let r=Object.keys(t),o=r.length;for(let s=0;s{"use strict";var wf=el(),IV={allowBooleanAttributes:!1,unpairedTags:[]};Uk.validate=function(e,t){t=Object.assign({},IV,t);let n=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` `&&e[s]!=="\r";s++)u+=e[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!LV(u)){let y;return u.trim().length===0?y="Invalid space after '<'.":y="Tag '"+u+"' is an invalid name.",qe("InvalidTag",y,at(e,s))}let l=BV(e,s);if(l===!1)return qe("InvalidAttr","Attributes for '"+u+"' have open quote.",at(e,s));let c=l.value;if(s=l.index,c[c.length-1]==="/"){let y=s-c.length;c=c.substring(0,c.length-1);let g=jk(c,t);if(g===!0)r=!0;else return qe(g.err.code,g.err.msg,at(e,y+g.err.line))}else if(i)if(l.tagClosed){if(c.trim().length>0)return qe("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",at(e,a));{let y=n.pop();if(u!==y.tagName){let g=at(e,y.tagStartPos);return qe("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+g.line+", col "+g.col+") instead of closing tag '"+u+"'.",at(e,a))}n.length==0&&(o=!0)}}else return qe("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",at(e,s));else{let y=jk(c,t);if(y!==!0)return qe(y.err.code,y.err.msg,at(e,s-c.length+y.err.line));if(o===!0)return qe("InvalidXml","Multiple possible root nodes found.",at(e,s));t.unpairedTags.indexOf(u)!==-1||n.push({tagName:u,tagStartPos:a}),r=!0}for(s++;s0)return qe("InvalidXml","Invalid '"+JSON.stringify(n.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return qe("InvalidXml","Start tag expected.",1);return!0};function Mk(e){return e===" "||e===" "||e===` -`||e==="\r"}function Fk(e,t){let n=t;for(;t5&&r==="xml")return qe("InvalidXml","XML declaration allowed only at the start of the document.",at(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function Lk(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}var RV='"',TV="'";function BV(e,t){let n="",r="",o=!1;for(;t"&&r===""){o=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:o}}var qV=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jk(e,t){let n=wf.getAllMatches(e,qV),r={};for(let o=0;o{var zk={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}},jV=function(e){return Object.assign({},zk,e)};kf.buildOptions=jV;kf.defaultOptions=zk});var $k=m((gve,Hk)=>{"use strict";var Af=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}};Hk.exports=Af});var Vk=m((hve,Kk)=>{var UV=el();function zV(e,t){let n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let r=1,o=!1,s=!1,a="";for(;t"){if(s?e[t-1]==="-"&&e[t-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[t]==="["?o=!0:a+=e[t];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}function GV(e,t){let n="";for(;t{var YV=/^[-+]?0x[a-fA-F0-9]+$/,JV=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var QV={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function ZV(e,t={}){if(t=Object.assign({},QV,t),!e||typeof e!="string")return e;let n=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(n))return e;if(t.hex&&YV.test(n))return Number.parseInt(n,16);{let r=JV.exec(n);if(r){let o=r[1],s=r[2],a=e8(r[3]),i=r[4]||r[6];if(!t.leadingZeros&&s.length>0&&o&&n[2]!==".")return e;if(!t.leadingZeros&&s.length>0&&!o&&n[1]!==".")return e;{let u=Number(n),l=""+u;return l.search(/[eE]/)!==-1||i?t.eNotation?u:e:n.indexOf(".")!==-1?l==="0"&&a===""||l===a||o&&l==="-"+a?u:e:s?a===l||o+a===l?u:e:n===l||n===o+l?u:e}}else return e}}function e8(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}Xk.exports=ZV});var Jk=m((Sve,Yk)=>{"use strict";var Rf=el(),ca=$k(),t8=Vk(),n8=Wk(),Cve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Rf.nameRegexp),Of=class{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=r8,this.parseXml=c8,this.parseTextData=o8,this.resolveNameSpace=s8,this.buildAttributesMap=a8,this.isItStopNode=m8,this.replaceEntitiesValue=l8,this.readStopNodeData=f8,this.saveTextToParentTag=u8,this.addChild=d8}};function r8(e){let t=Object.keys(e);for(let n=0;n0)){a||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(t,e,n,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?If(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?If(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function s8(e){if(this.options.removeNSPrefix){let t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}var i8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function a8(e,t,n){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=Rf.getAllMatches(e,i8),o=r.length,s={};for(let a=0;a",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&(r=this.saveTextToParentTag(r,n,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let c=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),n=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Nf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new ca(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(n,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=mr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=t8(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=mr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,n,o),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,n.tagname,o,!0,!1,!0);l==null&&(l=""),n.add(this.options.textNodeName,l)}s=i+2}else{let i=Nf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,c=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,o,!1));let g=n;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==t.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let P=new ca(u);u!==l&&c&&(P[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,c,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),P.add(this.options.textNodeName,C),this.addChild(n,P,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new ca(u);u!==l&&c&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(n,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new ca(u);this.tagsNodeStack.push(n),u!==l&&c&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(n,C,o),n=C}r="",s=y}}else r+=e[s];return t.child};function d8(e,t,n){let r=this.options.updateTag(t.tagname,n,t[":@"]);r===!1||(typeof r=="string"&&(t.tagname=r),e.addChild(t))}var l8=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){let n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function u8(e,t,n,r){return e&&(r===void 0&&(r=Object.keys(t.child).length===0),e=this.parseTextData(e,t.tagname,n,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function m8(e,t,n){let r="*."+n;for(let o in e){let s=e[o];if(r===s||t===s)return!0}return!1}function p8(e,t,n=">"){let r,o="";for(let s=t;s",n,`${t} is not closed`);if(e.substring(n+2,s).trim()===t&&(o--,o===0))return{tagContent:e.substring(r,n),i:s};n=s}else if(e[n+1]==="?")n=mr(e,"?>",n+1,"StopNode is not closed.");else if(e.substr(n+1,3)==="!--")n=mr(e,"-->",n+3,"StopNode is not closed.");else if(e.substr(n+1,2)==="![")n=mr(e,"]]>",n,"StopNode is not closed.")-2;else{let s=Nf(e,n,">");s&&((s&&s.tagName)===t&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,n=s.closeIndex)}}function If(e,t,n){if(t&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:n8(e,n)}else return Rf.isExist(e)?e:""}Yk.exports=Of});var eA=m(Zk=>{"use strict";function y8(e,t){return Qk(e,t)}function Qk(e,t,n){let r,o={};for(let s=0;s0&&(o[t.textNodeName]=r):r!==void 0&&(o[t.textNodeName]=r),o}function g8(e){let t=Object.keys(e);for(let n=0;n{var{buildOptions:C8}=Gk(),S8=Jk(),{prettify:b8}=eA(),E8=xf(),Tf=class{constructor(t){this.externalEntities={},this.options=C8(t)}parse(t,n){if(typeof t!="string")if(t.toString)t=t.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(n){n===!0&&(n={});let s=E8.validate(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new S8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(t);return this.options.preserveOrder||o===void 0?o:b8(o,this.options)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}};tA.exports=Tf});var aA=m((Pve,iA)=>{var P8=` +`||e==="\r"}function Fk(e,t){let n=t;for(;t5&&r==="xml")return qe("InvalidXml","XML declaration allowed only at the start of the document.",at(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function Lk(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}var RV='"',TV="'";function BV(e,t){let n="",r="",o=!1;for(;t"&&r===""){o=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:o}}var qV=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jk(e,t){let n=wf.getAllMatches(e,qV),r={};for(let o=0;o{var zk={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}},jV=function(e){return Object.assign({},zk,e)};kf.buildOptions=jV;kf.defaultOptions=zk});var $k=m((gve,Hk)=>{"use strict";var Af=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}};Hk.exports=Af});var Vk=m((hve,Kk)=>{var UV=el();function zV(e,t){let n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let r=1,o=!1,s=!1,a="";for(;t"){if(s?e[t-1]==="-"&&e[t-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[t]==="["?o=!0:a+=e[t];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}function GV(e,t){let n="";for(;t{var YV=/^[-+]?0x[a-fA-F0-9]+$/,JV=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var QV={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function ZV(e,t={}){if(t=Object.assign({},QV,t),!e||typeof e!="string")return e;let n=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(n))return e;if(t.hex&&YV.test(n))return Number.parseInt(n,16);{let r=JV.exec(n);if(r){let o=r[1],s=r[2],a=e8(r[3]),i=r[4]||r[6];if(!t.leadingZeros&&s.length>0&&o&&n[2]!==".")return e;if(!t.leadingZeros&&s.length>0&&!o&&n[1]!==".")return e;{let u=Number(n),l=""+u;return l.search(/[eE]/)!==-1||i?t.eNotation?u:e:n.indexOf(".")!==-1?l==="0"&&a===""||l===a||o&&l==="-"+a?u:e:s?a===l||o+a===l?u:e:n===l||n===o+l?u:e}}else return e}}function e8(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}Xk.exports=ZV});var Jk=m((Sve,Yk)=>{"use strict";var Rf=el(),aa=$k(),t8=Vk(),n8=Wk(),Cve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Rf.nameRegexp),Of=class{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=r8,this.parseXml=c8,this.parseTextData=o8,this.resolveNameSpace=s8,this.buildAttributesMap=a8,this.isItStopNode=m8,this.replaceEntitiesValue=l8,this.readStopNodeData=f8,this.saveTextToParentTag=u8,this.addChild=d8}};function r8(e){let t=Object.keys(e);for(let n=0;n0)){a||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(t,e,n,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?If(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?If(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function s8(e){if(this.options.removeNSPrefix){let t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}var i8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function a8(e,t,n){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=Rf.getAllMatches(e,i8),o=r.length,s={};for(let a=0;a",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&(r=this.saveTextToParentTag(r,n,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let c=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),n=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Nf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new aa(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(n,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=mr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=t8(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=mr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,n,o),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,n.tagname,o,!0,!1,!0);l==null&&(l=""),n.add(this.options.textNodeName,l)}s=i+2}else{let i=Nf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,c=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,o,!1));let g=n;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==t.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let P=new aa(u);u!==l&&c&&(P[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,c,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),P.add(this.options.textNodeName,C),this.addChild(n,P,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new aa(u);u!==l&&c&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(n,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new aa(u);this.tagsNodeStack.push(n),u!==l&&c&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(n,C,o),n=C}r="",s=y}}else r+=e[s];return t.child};function d8(e,t,n){let r=this.options.updateTag(t.tagname,n,t[":@"]);r===!1||(typeof r=="string"&&(t.tagname=r),e.addChild(t))}var l8=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){let n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function u8(e,t,n,r){return e&&(r===void 0&&(r=Object.keys(t.child).length===0),e=this.parseTextData(e,t.tagname,n,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function m8(e,t,n){let r="*."+n;for(let o in e){let s=e[o];if(r===s||t===s)return!0}return!1}function p8(e,t,n=">"){let r,o="";for(let s=t;s",n,`${t} is not closed`);if(e.substring(n+2,s).trim()===t&&(o--,o===0))return{tagContent:e.substring(r,n),i:s};n=s}else if(e[n+1]==="?")n=mr(e,"?>",n+1,"StopNode is not closed.");else if(e.substr(n+1,3)==="!--")n=mr(e,"-->",n+3,"StopNode is not closed.");else if(e.substr(n+1,2)==="![")n=mr(e,"]]>",n,"StopNode is not closed.")-2;else{let s=Nf(e,n,">");s&&((s&&s.tagName)===t&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,n=s.closeIndex)}}function If(e,t,n){if(t&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:n8(e,n)}else return Rf.isExist(e)?e:""}Yk.exports=Of});var eA=m(Zk=>{"use strict";function y8(e,t){return Qk(e,t)}function Qk(e,t,n){let r,o={};for(let s=0;s0&&(o[t.textNodeName]=r):r!==void 0&&(o[t.textNodeName]=r),o}function g8(e){let t=Object.keys(e);for(let n=0;n{var{buildOptions:C8}=Gk(),S8=Jk(),{prettify:b8}=eA(),E8=xf(),Tf=class{constructor(t){this.externalEntities={},this.options=C8(t)}parse(t,n){if(typeof t!="string")if(t.toString)t=t.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(n){n===!0&&(n={});let s=E8.validate(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new S8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(t);return this.options.preserveOrder||o===void 0?o:b8(o,this.options)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}};tA.exports=Tf});var aA=m((Pve,iA)=>{var P8=` `;function v8(e,t){let n="";return t.format&&t.indentBy.length>0&&(n=P8),oA(e,t,"",n)}function oA(e,t,n,r){let o="",s=!1;for(let a=0;a`,s=!1;continue}else if(u===t.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let P=rA(i[":@"],t),A=u==="?xml"?"":r,v=i[u][0][t.textNodeName];v=v.length!==0?" "+v:"",o+=A+`<${u}${v}${P}?>`,s=!0;continue}let c=r;c!==""&&(c+=t.indentBy);let y=rA(i[":@"],t),g=r+`<${u}${y}`,C=oA(i[u],t,l,c);t.unpairedTags.indexOf(u)!==-1?t.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&t.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("`),s=!0}return o}function w8(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{"use strict";var k8=aA(),A8={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function qn(e){this.options=Object.assign({},A8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=I8),this.processTextOrObjNode=O8,this.options.format?(this.indentate=N8,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}qn.prototype.build=function(e){return this.options.preserveOrder?k8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};qn.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)n+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let a=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(a)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){let s=e[o].length,a="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?a+=this.j2x(u,t+1).val:a+=this.processTextOrObjNode(u,o,t):a+=this.buildTextValNode(u,o,"",t))}this.options.oneListGroup&&(a=this.buildObjectNode(a,o,"",t)),r+=a}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),a=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&t===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+o}};qn.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"0&&this.options.processEntities)for(let t=0;t{"use strict";var R8=xf(),T8=nA(),B8=dA();lA.exports={XMLParser:T8,XMLValidator:R8,XMLBuilder:B8}});var cn=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.de_GetSessionTokenCommand=me.de_GetFederationTokenCommand=me.de_GetCallerIdentityCommand=me.de_GetAccessKeyInfoCommand=me.de_DecodeAuthorizationMessageCommand=me.de_AssumeRoleWithWebIdentityCommand=me.de_AssumeRoleWithSAMLCommand=me.de_AssumeRoleCommand=me.se_GetSessionTokenCommand=me.se_GetFederationTokenCommand=me.se_GetCallerIdentityCommand=me.se_GetAccessKeyInfoCommand=me.se_DecodeAuthorizationMessageCommand=me.se_AssumeRoleWithWebIdentityCommand=me.se_AssumeRoleWithSAMLCommand=me.se_AssumeRoleCommand=void 0;var q8=Ne(),W=b(),D8=Bf(),Dn=Bn(),M8=Zd(),F8=async(e,t)=>{let n=Ln,r;return r=Un({...lX(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleCommand=F8;var L8=async(e,t)=>{let n=Ln,r;return r=Un({...uX(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleWithSAMLCommand=L8;var j8=async(e,t)=>{let n=Ln,r;return r=Un({...mX(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleWithWebIdentityCommand=j8;var U8=async(e,t)=>{let n=Ln,r;return r=Un({...pX(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_DecodeAuthorizationMessageCommand=U8;var z8=async(e,t)=>{let n=Ln,r;return r=Un({...fX(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetAccessKeyInfoCommand=z8;var G8=async(e,t)=>{let n=Ln,r;return r=Un({...yX(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetCallerIdentityCommand=G8;var H8=async(e,t)=>{let n=Ln,r;return r=Un({...gX(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetFederationTokenCommand=H8;var $8=async(e,t)=>{let n=Ln,r;return r=Un({...hX(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetSessionTokenCommand=$8;var K8=async(e,t)=>{if(e.statusCode>=300)return V8(e,t);let n=await an(e.body,t),r={};return r=PX(n.AssumeRoleResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleCommand=K8;var V8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await da(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},X8=async(e,t)=>{if(e.statusCode>=300)return W8(e,t);let n=await an(e.body,t),r={};return r=vX(n.AssumeRoleWithSAMLResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithSAMLCommand=X8;var W8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await uA(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await mA(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await da(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},Y8=async(e,t)=>{if(e.statusCode>=300)return J8(e,t);let n=await an(e.body,t),r={};return r=wX(n.AssumeRoleWithWebIdentityResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithWebIdentityCommand=Y8;var J8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await cX(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await uA(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await mA(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await da(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},Q8=async(e,t)=>{if(e.statusCode>=300)return Z8(e,t);let n=await an(e.body,t),r={};return r=xX(n.DecodeAuthorizationMessageResult,t),{$metadata:Ze(e),...r}};me.de_DecodeAuthorizationMessageCommand=Q8;var Z8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await dX(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},eX=async(e,t)=>{if(e.statusCode>=300)return tX(e,t);let n=await an(e.body,t),r={};return r=OX(n.GetAccessKeyInfoResult,t),{$metadata:Ze(e),...r}};me.de_GetAccessKeyInfoCommand=eX;var tX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body),o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})},nX=async(e,t)=>{if(e.statusCode>=300)return rX(e,t);let n=await an(e.body,t),r={};return r=NX(n.GetCallerIdentityResult,t),{$metadata:Ze(e),...r}};me.de_GetCallerIdentityCommand=nX;var rX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body),o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})},oX=async(e,t)=>{if(e.statusCode>=300)return sX(e,t);let n=await an(e.body,t),r={};return r=IX(n.GetFederationTokenResult,t),{$metadata:Ze(e),...r}};me.de_GetFederationTokenCommand=oX;var sX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await da(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},iX=async(e,t)=>{if(e.statusCode>=300)return aX(e,t);let n=await an(e.body,t),r={};return r=RX(n.GetSessionTokenResult,t),{$metadata:Ze(e),...r}};me.de_GetSessionTokenCommand=iX;var aX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await da(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},qf=async(e,t)=>{let n=e.body,r=kX(n.Error,t),o=new Dn.ExpiredTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},cX=async(e,t)=>{let n=e.body,r=TX(n.Error,t),o=new Dn.IDPCommunicationErrorException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},uA=async(e,t)=>{let n=e.body,r=BX(n.Error,t),o=new Dn.IDPRejectedClaimException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},dX=async(e,t)=>{let n=e.body,r=qX(n.Error,t),o=new Dn.InvalidAuthorizationMessageException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},mA=async(e,t)=>{let n=e.body,r=DX(n.Error,t),o=new Dn.InvalidIdentityTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},tl=async(e,t)=>{let n=e.body,r=MX(n.Error,t),o=new Dn.MalformedPolicyDocumentException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},nl=async(e,t)=>{let n=e.body,r=FX(n.Error,t),o=new Dn.PackedPolicyTooLargeException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},da=async(e,t)=>{let n=e.body,r=LX(n.Error,t),o=new Dn.RegionDisabledException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},lX=(e,t)=>{var r,o,s,a;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let c=`PolicyArns.${u}`;n[c]=l})}if(e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=pA(e.Tags,t);((o=e.Tags)==null?void 0:o.length)===0&&(n.Tags=[]),Object.entries(i).forEach(([u,l])=>{let c=`Tags.${u}`;n[c]=l})}if(e.TransitiveTagKeys!=null){let i=EX(e.TransitiveTagKeys,t);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(n.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let c=`TransitiveTagKeys.${u}`;n[c]=l})}if(e.ExternalId!=null&&(n.ExternalId=e.ExternalId),e.SerialNumber!=null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(n.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=SX(e.ProvidedContexts,t);((a=e.ProvidedContexts)==null?void 0:a.length)===0&&(n.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let c=`ProvidedContexts.${u}`;n[c]=l})}return n},uX=(e,t)=>{var r;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(o).forEach(([s,a])=>{let i=`PolicyArns.${s}`;n[i]=a})}return e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),n},mX=(e,t)=>{var r;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(n.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(o).forEach(([s,a])=>{let i=`PolicyArns.${s}`;n[i]=a})}return e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),n},pX=(e,t)=>{let n={};return e.EncodedMessage!=null&&(n.EncodedMessage=e.EncodedMessage),n},fX=(e,t)=>{let n={};return e.AccessKeyId!=null&&(n.AccessKeyId=e.AccessKeyId),n},yX=(e,t)=>({}),gX=(e,t)=>{var r,o;let n={};if(e.Name!=null&&(n.Name=e.Name),e.Policy!=null&&(n.Policy=e.Policy),e.PolicyArns!=null){let s=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(s).forEach(([a,i])=>{let u=`PolicyArns.${a}`;n[u]=i})}if(e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=pA(e.Tags,t);((o=e.Tags)==null?void 0:o.length)===0&&(n.Tags=[]),Object.entries(s).forEach(([a,i])=>{let u=`Tags.${a}`;n[u]=i})}return n},hX=(e,t)=>{let n={};return e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(n.TokenCode=e.TokenCode),n},rl=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=_X(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},_X=(e,t)=>{let n={};return e.arn!=null&&(n.arn=e.arn),n},CX=(e,t)=>{let n={};return e.ProviderArn!=null&&(n.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(n.ContextAssertion=e.ContextAssertion),n},SX=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=CX(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},bX=(e,t)=>{let n={};return e.Key!=null&&(n.Key=e.Key),e.Value!=null&&(n.Value=e.Value),n},EX=(e,t)=>{let n={},r=1;for(let o of e)o!==null&&(n[`member.${r}`]=o,r++);return n},pA=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=bX(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},Df=(e,t)=>{let n={};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},PX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=la(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},vX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=la(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},wX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=la(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},la=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),n},xX=(e,t)=>{let n={};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),n},kX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},AX=(e,t)=>{let n={};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},OX=(e,t)=>{let n={};return e.Account!==void 0&&(n.Account=(0,W.expectString)(e.Account)),n},NX=(e,t)=>{let n={};return e.UserId!==void 0&&(n.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},IX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=la(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=AX(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),n},RX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=la(e.Credentials,t)),n},TX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},BX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},qX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},DX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},MX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},FX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},LX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},Ze=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),jX=(e,t)=>(0,W.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Mn=(0,W.withBaseException)(M8.STSServiceException),Fn=async(e,t,n,r,o)=>{let{hostname:s,protocol:a="https",port:i,path:u}=await e.endpoint(),l={protocol:a,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+n:u+n,headers:t};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new q8.HttpRequest(l)},Ln={"content-type":"application/x-www-form-urlencoded"},an=(e,t)=>jX(e,t).then(n=>{if(n.length){let r=new D8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}qn.prototype.build=function(e){return this.options.preserveOrder?k8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};qn.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)n+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let a=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(a)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){let s=e[o].length,a="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?a+=this.j2x(u,t+1).val:a+=this.processTextOrObjNode(u,o,t):a+=this.buildTextValNode(u,o,"",t))}this.options.oneListGroup&&(a=this.buildObjectNode(a,o,"",t)),r+=a}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),a=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&t===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+o}};qn.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"0&&this.options.processEntities)for(let t=0;t{"use strict";var R8=xf(),T8=nA(),B8=dA();lA.exports={XMLParser:T8,XMLValidator:R8,XMLBuilder:B8}});var cn=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.de_GetSessionTokenCommand=me.de_GetFederationTokenCommand=me.de_GetCallerIdentityCommand=me.de_GetAccessKeyInfoCommand=me.de_DecodeAuthorizationMessageCommand=me.de_AssumeRoleWithWebIdentityCommand=me.de_AssumeRoleWithSAMLCommand=me.de_AssumeRoleCommand=me.se_GetSessionTokenCommand=me.se_GetFederationTokenCommand=me.se_GetCallerIdentityCommand=me.se_GetAccessKeyInfoCommand=me.se_DecodeAuthorizationMessageCommand=me.se_AssumeRoleWithWebIdentityCommand=me.se_AssumeRoleWithSAMLCommand=me.se_AssumeRoleCommand=void 0;var q8=Ne(),W=b(),D8=Bf(),Dn=Bn(),M8=Zd(),F8=async(e,t)=>{let n=Ln,r;return r=Un({...lX(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleCommand=F8;var L8=async(e,t)=>{let n=Ln,r;return r=Un({...uX(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleWithSAMLCommand=L8;var j8=async(e,t)=>{let n=Ln,r;return r=Un({...mX(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_AssumeRoleWithWebIdentityCommand=j8;var U8=async(e,t)=>{let n=Ln,r;return r=Un({...pX(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_DecodeAuthorizationMessageCommand=U8;var z8=async(e,t)=>{let n=Ln,r;return r=Un({...fX(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetAccessKeyInfoCommand=z8;var G8=async(e,t)=>{let n=Ln,r;return r=Un({...yX(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetCallerIdentityCommand=G8;var H8=async(e,t)=>{let n=Ln,r;return r=Un({...gX(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetFederationTokenCommand=H8;var $8=async(e,t)=>{let n=Ln,r;return r=Un({...hX(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),Fn(t,n,"/",void 0,r)};me.se_GetSessionTokenCommand=$8;var K8=async(e,t)=>{if(e.statusCode>=300)return V8(e,t);let n=await an(e.body,t),r={};return r=PX(n.AssumeRoleResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleCommand=K8;var V8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ca(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},X8=async(e,t)=>{if(e.statusCode>=300)return W8(e,t);let n=await an(e.body,t),r={};return r=vX(n.AssumeRoleWithSAMLResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithSAMLCommand=X8;var W8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await uA(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await mA(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ca(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},Y8=async(e,t)=>{if(e.statusCode>=300)return J8(e,t);let n=await an(e.body,t),r={};return r=wX(n.AssumeRoleWithWebIdentityResult,t),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithWebIdentityCommand=Y8;var J8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qf(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await cX(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await uA(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await mA(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ca(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},Q8=async(e,t)=>{if(e.statusCode>=300)return Z8(e,t);let n=await an(e.body,t),r={};return r=xX(n.DecodeAuthorizationMessageResult,t),{$metadata:Ze(e),...r}};me.de_DecodeAuthorizationMessageCommand=Q8;var Z8=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await dX(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},eX=async(e,t)=>{if(e.statusCode>=300)return tX(e,t);let n=await an(e.body,t),r={};return r=OX(n.GetAccessKeyInfoResult,t),{$metadata:Ze(e),...r}};me.de_GetAccessKeyInfoCommand=eX;var tX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body),o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})},nX=async(e,t)=>{if(e.statusCode>=300)return rX(e,t);let n=await an(e.body,t),r={};return r=NX(n.GetCallerIdentityResult,t),{$metadata:Ze(e),...r}};me.de_GetCallerIdentityCommand=nX;var rX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body),o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})},oX=async(e,t)=>{if(e.statusCode>=300)return sX(e,t);let n=await an(e.body,t),r={};return r=IX(n.GetFederationTokenResult,t),{$metadata:Ze(e),...r}};me.de_GetFederationTokenCommand=oX;var sX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await tl(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await nl(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ca(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},iX=async(e,t)=>{if(e.statusCode>=300)return aX(e,t);let n=await an(e.body,t),r={};return r=RX(n.GetSessionTokenResult,t),{$metadata:Ze(e),...r}};me.de_GetSessionTokenCommand=iX;var aX=async(e,t)=>{let n={...e,body:await jn(e.body,t)},r=zn(e,n.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ca(n,t);default:let o=n.body;return Mn({output:e,parsedBody:o.Error,errorCode:r})}},qf=async(e,t)=>{let n=e.body,r=kX(n.Error,t),o=new Dn.ExpiredTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},cX=async(e,t)=>{let n=e.body,r=TX(n.Error,t),o=new Dn.IDPCommunicationErrorException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},uA=async(e,t)=>{let n=e.body,r=BX(n.Error,t),o=new Dn.IDPRejectedClaimException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},dX=async(e,t)=>{let n=e.body,r=qX(n.Error,t),o=new Dn.InvalidAuthorizationMessageException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},mA=async(e,t)=>{let n=e.body,r=DX(n.Error,t),o=new Dn.InvalidIdentityTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},tl=async(e,t)=>{let n=e.body,r=MX(n.Error,t),o=new Dn.MalformedPolicyDocumentException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},nl=async(e,t)=>{let n=e.body,r=FX(n.Error,t),o=new Dn.PackedPolicyTooLargeException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},ca=async(e,t)=>{let n=e.body,r=LX(n.Error,t),o=new Dn.RegionDisabledException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,n)},lX=(e,t)=>{var r,o,s,a;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let c=`PolicyArns.${u}`;n[c]=l})}if(e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=pA(e.Tags,t);((o=e.Tags)==null?void 0:o.length)===0&&(n.Tags=[]),Object.entries(i).forEach(([u,l])=>{let c=`Tags.${u}`;n[c]=l})}if(e.TransitiveTagKeys!=null){let i=EX(e.TransitiveTagKeys,t);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(n.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let c=`TransitiveTagKeys.${u}`;n[c]=l})}if(e.ExternalId!=null&&(n.ExternalId=e.ExternalId),e.SerialNumber!=null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(n.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=SX(e.ProvidedContexts,t);((a=e.ProvidedContexts)==null?void 0:a.length)===0&&(n.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let c=`ProvidedContexts.${u}`;n[c]=l})}return n},uX=(e,t)=>{var r;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(o).forEach(([s,a])=>{let i=`PolicyArns.${s}`;n[i]=a})}return e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),n},mX=(e,t)=>{var r;let n={};if(e.RoleArn!=null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(n.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(o).forEach(([s,a])=>{let i=`PolicyArns.${s}`;n[i]=a})}return e.Policy!=null&&(n.Policy=e.Policy),e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),n},pX=(e,t)=>{let n={};return e.EncodedMessage!=null&&(n.EncodedMessage=e.EncodedMessage),n},fX=(e,t)=>{let n={};return e.AccessKeyId!=null&&(n.AccessKeyId=e.AccessKeyId),n},yX=(e,t)=>({}),gX=(e,t)=>{var r,o;let n={};if(e.Name!=null&&(n.Name=e.Name),e.Policy!=null&&(n.Policy=e.Policy),e.PolicyArns!=null){let s=rl(e.PolicyArns,t);((r=e.PolicyArns)==null?void 0:r.length)===0&&(n.PolicyArns=[]),Object.entries(s).forEach(([a,i])=>{let u=`PolicyArns.${a}`;n[u]=i})}if(e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=pA(e.Tags,t);((o=e.Tags)==null?void 0:o.length)===0&&(n.Tags=[]),Object.entries(s).forEach(([a,i])=>{let u=`Tags.${a}`;n[u]=i})}return n},hX=(e,t)=>{let n={};return e.DurationSeconds!=null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(n.TokenCode=e.TokenCode),n},rl=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=_X(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},_X=(e,t)=>{let n={};return e.arn!=null&&(n.arn=e.arn),n},CX=(e,t)=>{let n={};return e.ProviderArn!=null&&(n.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(n.ContextAssertion=e.ContextAssertion),n},SX=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=CX(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},bX=(e,t)=>{let n={};return e.Key!=null&&(n.Key=e.Key),e.Value!=null&&(n.Value=e.Value),n},EX=(e,t)=>{let n={},r=1;for(let o of e)o!==null&&(n[`member.${r}`]=o,r++);return n},pA=(e,t)=>{let n={},r=1;for(let o of e){if(o===null)continue;let s=bX(o,t);Object.entries(s).forEach(([a,i])=>{n[`member.${r}.${a}`]=i}),r++}return n},Df=(e,t)=>{let n={};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},PX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=da(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},vX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=da(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},wX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=da(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Df(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),n},da=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),n},xX=(e,t)=>{let n={};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),n},kX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},AX=(e,t)=>{let n={};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},OX=(e,t)=>{let n={};return e.Account!==void 0&&(n.Account=(0,W.expectString)(e.Account)),n},NX=(e,t)=>{let n={};return e.UserId!==void 0&&(n.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,W.expectString)(e.Arn)),n},IX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=da(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=AX(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),n},RX=(e,t)=>{let n={};return e.Credentials!==void 0&&(n.Credentials=da(e.Credentials,t)),n},TX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},BX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},qX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},DX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},MX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},FX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},LX=(e,t)=>{let n={};return e.message!==void 0&&(n.message=(0,W.expectString)(e.message)),n},Ze=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),jX=(e,t)=>(0,W.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Mn=(0,W.withBaseException)(M8.STSServiceException),Fn=async(e,t,n,r,o)=>{let{hostname:s,protocol:a="https",port:i,path:u}=await e.endpoint(),l={protocol:a,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+n:u+n,headers:t};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new q8.HttpRequest(l)},Ln={"content-type":"application/x-www-form-urlencoded"},an=(e,t)=>jX(e,t).then(n=>{if(n.length){let r=new D8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` `);let o=r.parse(n),s="#text",a=Object.keys(o)[0],i=o[a];return i[s]&&(i[a]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),jn=async(e,t)=>{let n=await an(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},Un=e=>Object.entries(e).map(([t,n])=>(0,W.extendedEncodeURIComponent)(t)+"="+(0,W.extendedEncodeURIComponent)(n)).join("&"),zn=(e,t)=>{var n;if(((n=t.Error)==null?void 0:n.Code)!==void 0)return t.Error.Code;if(e.statusCode==404)return"NotFound"}});var ol=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.AssumeRoleCommand=Gr.$Command=void 0;var UX=nn(),zX=x(),GX=k(),yA=b();Object.defineProperty(Gr,"$Command",{enumerable:!0,get:function(){return yA.Command}});var HX=w(),$X=Bn(),fA=cn(),Mf=class e extends yA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,GX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,zX.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,UX.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:$X.AssumeRoleResponseFilterSensitiveLog,[HX.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,fA.se_AssumeRoleCommand)(t,n)}deserialize(t,n){return(0,fA.de_AssumeRoleCommand)(t,n)}};Gr.AssumeRoleCommand=Mf});var sl=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.AssumeRoleWithWebIdentityCommand=Hr.$Command=void 0;var KX=x(),VX=k(),_A=b();Object.defineProperty(Hr,"$Command",{enumerable:!0,get:function(){return _A.Command}});var XX=w(),gA=Bn(),hA=cn(),Ff=class e extends _A.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,VX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,KX.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:gA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:gA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[XX.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,hA.se_AssumeRoleWithWebIdentityCommand)(t,n)}deserialize(t,n){return(0,hA.de_AssumeRoleWithWebIdentityCommand)(t,n)}};Hr.AssumeRoleWithWebIdentityCommand=Ff});var Lf=m(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.decorateDefaultCredentialProvider=Mt.getDefaultRoleAssumerWithWebIdentity=Mt.getDefaultRoleAssumer=void 0;var WX=ol(),YX=sl(),CA="us-east-1",SA=e=>typeof e!="function"?e===void 0?CA:e:async()=>{try{return await e()}catch{return CA}},JX=(e,t)=>{let n,r;return async(o,s)=>{if(r=o,!n){let{logger:i,region:u,requestHandler:l}=e;n=new t({logger:i,credentialDefaultProvider:()=>async()=>r,region:SA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:a}=await n.send(new WX.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};Mt.getDefaultRoleAssumer=JX;var QX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:a,requestHandler:i}=e;n=new t({logger:s,region:SA(a||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await n.send(new YX.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Mt.getDefaultRoleAssumerWithWebIdentity=QX;var ZX=e=>t=>e({roleAssumer:(0,Mt.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,Mt.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});Mt.decorateDefaultCredentialProvider=ZX});var bA=m(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.fromEnv=et.ENV_EXPIRATION=et.ENV_SESSION=et.ENV_SECRET=et.ENV_KEY=void 0;var e4=xe();et.ENV_KEY="AWS_ACCESS_KEY_ID";et.ENV_SECRET="AWS_SECRET_ACCESS_KEY";et.ENV_SESSION="AWS_SESSION_TOKEN";et.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var t4=()=>async()=>{let e=process.env[et.ENV_KEY],t=process.env[et.ENV_SECRET],n=process.env[et.ENV_SESSION],r=process.env[et.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...n&&{sessionToken:n},...r&&{expiration:new Date(r)}};throw new e4.CredentialsProviderError("Unable to find environment variable credentials.")};et.fromEnv=t4});var Uf=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var n4=(ne(),J(te));n4.__exportStar(bA(),jf)});var dl=m((Rve,DA)=>{var cl=Object.defineProperty,r4=Object.getOwnPropertyDescriptor,o4=Object.getOwnPropertyNames,s4=Object.prototype.hasOwnProperty,De=(e,t)=>cl(e,"name",{value:t,configurable:!0}),i4=(e,t)=>{for(var n in t)cl(e,n,{get:t[n],enumerable:!0})},a4=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of o4(t))!s4.call(e,o)&&o!==n&&cl(e,o,{get:()=>t[o],enumerable:!(r=r4(t,o))||r.enumerable});return e},c4=e=>a4(cl({},"__esModule",{value:!0}),e),wA={};i4(wA,{DEFAULT_MAX_RETRIES:()=>OA,DEFAULT_TIMEOUT:()=>AA,ENV_CMDS_AUTH_TOKEN:()=>Hf,ENV_CMDS_FULL_URI:()=>il,ENV_CMDS_RELATIVE_URI:()=>al,Endpoint:()=>RA,fromContainerMetadata:()=>m4,fromInstanceMetadata:()=>T4,getInstanceMetadataEndpoint:()=>BA,httpRequest:()=>$r,providerConfigFromInit:()=>$f});DA.exports=c4(wA);var d4=require("url"),Ft=xe(),l4=require("buffer"),u4=require("http");function $r(e){return new Promise((t,n)=>{var r;let o=(0,u4.request)({method:"GET",...e,hostname:(r=e.hostname)==null?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{n(Object.assign(new Ft.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{n(new Ft.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(n(Object.assign(new Ft.ProviderError("Error response received from instance metadata service"),{statusCode:a})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{t(l4.Buffer.concat(i)),o.destroy()})}),o.end()})}De($r,"httpRequest");var xA=De(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),kA=De(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),AA=1e3,OA=0,$f=De(({maxRetries:e=OA,timeout:t=AA})=>({maxRetries:e,timeout:t}),"providerConfigFromInit"),Gf=De((e,t)=>{let n=e();for(let r=0;r{let{timeout:t,maxRetries:n}=$f(e);return()=>Gf(async()=>{let r=await h4(),o=JSON.parse(await p4(t,r));if(!xA(o))throw new Ft.CredentialsProviderError("Invalid response received from instance metadata service.");return kA(o)},n)},"fromContainerMetadata"),p4=De(async(e,t)=>(process.env[Hf]&&(t.headers={...t.headers,Authorization:process.env[Hf]}),(await $r({...t,timeout:e})).toString()),"requestFromEcsImds"),f4="169.254.170.2",y4={localhost:!0,"127.0.0.1":!0},g4={"http:":!0,"https:":!0},h4=De(async()=>{if(process.env[al])return{hostname:f4,path:process.env[al]};if(process.env[il]){let e=(0,d4.parse)(process.env[il]);if(!e.hostname||!(e.hostname in y4))throw new Ft.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in g4))throw new Ft.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Ft.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${al} or ${il} environment variable is set`,!1)},"getCmdsUri"),NA=class IA extends Ft.CredentialsProviderError{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,IA.prototype)}};De(NA,"InstanceMetadataV1FallbackError");var _4=NA,Kf=rn(),C4=lr(),RA=(e=>(e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]",e))(RA||{}),S4="AWS_EC2_METADATA_SERVICE_ENDPOINT",b4="ec2_metadata_service_endpoint",E4={environmentVariableSelector:e=>e[S4],configFileSelector:e=>e[b4],default:void 0},TA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(TA||{}),P4="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",v4="ec2_metadata_service_endpoint_mode",w4={environmentVariableSelector:e=>e[P4],configFileSelector:e=>e[v4],default:"IPv4"},BA=De(async()=>(0,C4.parseUrl)(await x4()||await k4()),"getInstanceMetadataEndpoint"),x4=De(async()=>(0,Kf.loadConfig)(E4)(),"getFromEndpointConfig"),k4=De(async()=>{let e=await(0,Kf.loadConfig)(w4)();switch(e){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(TA)}`)}},"getFromEndpointModeConfig"),A4=5*60,O4=5*60,N4="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",EA=De((e,t)=>{let n=A4+Math.floor(Math.random()*O4),r=new Date(Date.now()+n*1e3);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(r)}. -For more information, please visit: `+N4);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),I4=De((e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()I4(B4(e),{logger:e.logger}),"fromInstanceMetadata"),B4=De(e=>{let t=!1,{logger:n,profile:r}=e,{timeout:o,maxRetries:s}=$f(e),a=De(async(i,u)=>{var l;if(t||((l=u.headers)==null?void 0:l[vA])==null){let g=!1,C=!1,P=await(0,Kf.loadConfig)({environmentVariableSelector:A=>{let v=A[zf];if(C=!!v&&v!=="false",v===void 0)throw new Ft.CredentialsProviderError(`${zf} not set in env, checking config file next.`);return C},configFileSelector:A=>{let v=A[PA];return g=!!v&&v!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||P){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${PA})`),C&&A.push(`process environment variable (${zf})`),new _4(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Gf(async()=>{let g;try{g=await D4(u)}catch(C){throw C.statusCode===401&&(t=!1),C}return g},i)).trim();return Gf(async()=>{let g;try{g=await M4(y,u)}catch(C){throw C.statusCode===401&&(t=!1),C}return g},i)},"getCredentials");return async()=>{let i=await BA();if(t)return n==null||n.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(s,{...i,timeout:o});{let u;try{u=(await q4({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(t=!0),n==null||n.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(s,{...i,timeout:o})}return a(s,{...i,headers:{[vA]:u},timeout:o})}}},"getInstanceImdsProvider"),q4=De(async e=>$r({...e,path:R4,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),D4=De(async e=>(await $r({...e,path:qA})).toString(),"getProfile"),M4=De(async(e,t)=>{let n=JSON.parse((await $r({...t,path:qA+e})).toString());if(!xA(n))throw new Ft.CredentialsProviderError("Invalid response received from instance metadata service.");return kA(n)},"getCredentialsFromProfile")});var FA=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.resolveCredentialSource=void 0;var F4=Uf(),MA=dl(),L4=xe(),j4=(e,t)=>{let n={EcsContainer:MA.fromContainerMetadata,Ec2InstanceMetadata:MA.fromInstanceMetadata,Environment:F4.fromEnv};if(e in n)return n[e]();throw new L4.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};ll.resolveCredentialSource=j4});var LA=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.resolveAssumeRoleCredentials=Kr.isAssumeRoleProfile=void 0;var Vf=xe(),U4=wt(),z4=FA(),G4=Xf(),H4=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&($4(e)||K4(e));Kr.isAssumeRoleProfile=H4;var $4=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",K4=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",V4=async(e,t,n,r={})=>{let o=t[e];if(!n.roleAssumer)throw new Vf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Vf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,U4.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let a=s?(0,G4.resolveProfileData)(s,t,n,{...r,[s]:!0}):(0,z4.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!n.mfaCodeProvider)throw new Vf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await n.mfaCodeProvider(u)}let l=await a;return n.roleAssumer(l,i)};Kr.resolveAssumeRoleCredentials=V4});var jA=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.getValidatedProcessCredentials=void 0;var X4=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration){"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.resolveProcessCredentials=void 0;var Wf=xe(),W4=require("child_process"),Y4=require("util"),J4=jA(),Q4=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let o=(0,Y4.promisify)(W4.exec);try{let{stdout:s}=await o(r),a;try{a=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,J4.getValidatedProcessCredentials)(e,a)}catch(s){throw new Wf.CredentialsProviderError(s.message)}}else throw new Wf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Wf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};ml.resolveProcessCredentials=Q4});var GA=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.fromProcess=void 0;var zA=wt(),Z4=UA(),eW=(e={})=>async()=>{let t=await(0,zA.parseKnownFiles)(e);return(0,Z4.resolveProcessCredentials)((0,zA.getProfileName)(e),t)};pl.fromProcess=eW});var Jf=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var tW=(ne(),J(te));tW.__exportStar(GA(),Yf)});var HA=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveProcessCredentials=Vr.isProcessProfile=void 0;var nW=Jf(),rW=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Vr.isProcessProfile=rW;var oW=async(e,t)=>(0,nW.fromProcess)({...e,profile:t})();Vr.resolveProcessCredentials=oW});var Qf=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.isSsoProfile=void 0;var sW=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");fl.isSsoProfile=sW});var $A=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.resolveClientEndpointParameters=void 0;var iW=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});yl.resolveClientEndpointParameters=iW});var KA=m((zve,aW)=>{aW.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var XA=m((gl,VA)=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.isCrtAvailable=void 0;var cW=()=>{try{return typeof require=="function"&&typeof VA<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};gl.isCrtAvailable=cW});var ua=m(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.defaultUserAgent=Lt.UA_APP_ID_INI_NAME=Lt.UA_APP_ID_ENV_NAME=void 0;var dW=rn(),WA=require("os"),Zf=require("process"),lW=XA();Lt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Lt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var uW=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,WA.platform)()}`,(0,WA.release)()],["lang/js"],["md/nodejs",`${Zf.versions.node}`]],r=(0,lW.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),Zf.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Zf.env.AWS_EXECUTION_ENV}`]);let o=(0,dW.loadConfig)({environmentVariableSelector:a=>a[Lt.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Lt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await o;s=a?[...n,[`app/${a}`]]:[...n]}return s}};Lt.defaultUserAgent=uW});var ma=m(($ve,eO)=>{var hl=Object.defineProperty,mW=Object.getOwnPropertyDescriptor,pW=Object.getOwnPropertyNames,fW=Object.prototype.hasOwnProperty,JA=(e,t)=>hl(e,"name",{value:t,configurable:!0}),yW=(e,t)=>{for(var n in t)hl(e,n,{get:t[n],enumerable:!0})},gW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pW(t))!fW.call(e,o)&&o!==n&&hl(e,o,{get:()=>t[o],enumerable:!(r=mW(t,o))||r.enumerable});return e},hW=e=>gW(hl({},"__esModule",{value:!0}),e),QA={};yW(QA,{Hash:()=>SW});eO.exports=hW(QA);var ey=vr(),_W=st(),CW=require("buffer"),YA=require("crypto"),ZA=class{constructor(t,n){this.algorithmIdentifier=t,this.secret=n,this.reset()}update(t,n){this.hash.update((0,_W.toUint8Array)(ty(t,n)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,YA.createHmac)(this.algorithmIdentifier,ty(this.secret)):(0,YA.createHash)(this.algorithmIdentifier)}};JA(ZA,"Hash");var SW=ZA;function ty(e,t){return CW.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ey.fromString)(e,t):ArrayBuffer.isView(e)?(0,ey.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ey.fromArrayBuffer)(e)}JA(ty,"castSourceData")});var pa=m((Kve,rO)=>{var _l=Object.defineProperty,bW=Object.getOwnPropertyDescriptor,EW=Object.getOwnPropertyNames,PW=Object.prototype.hasOwnProperty,vW=(e,t)=>_l(e,"name",{value:t,configurable:!0}),wW=(e,t)=>{for(var n in t)_l(e,n,{get:t[n],enumerable:!0})},xW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EW(t))!PW.call(e,o)&&o!==n&&_l(e,o,{get:()=>t[o],enumerable:!(r=bW(t,o))||r.enumerable});return e},kW=e=>xW(_l({},"__esModule",{value:!0}),e),nO={};wW(nO,{calculateBodyLength:()=>AW});rO.exports=kW(nO);var tO=require("fs"),AW=vW(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,tO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,tO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var gO=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.ruleSet=void 0;var pO="required",ln="fn",un="argv",Wr="ref",oO="isSet",dn="tree",Xr="error",fa="endpoint",ny="PartitionResult",sO={[pO]:!1,type:"String"},iO={[pO]:!0,default:!1,type:"Boolean"},aO={[Wr]:"Endpoint"},fO={[ln]:"booleanEquals",[un]:[{[Wr]:"UseFIPS"},!0]},yO={[ln]:"booleanEquals",[un]:[{[Wr]:"UseDualStack"},!0]},jt={},cO={[ln]:"booleanEquals",[un]:[!0,{[ln]:"getAttr",[un]:[{[Wr]:ny},"supportsFIPS"]}]},dO={[ln]:"booleanEquals",[un]:[!0,{[ln]:"getAttr",[un]:[{[Wr]:ny},"supportsDualStack"]}]},lO=[fO],uO=[yO],mO=[{[Wr]:"Region"}],OW={version:"1.0",parameters:{Region:sO,UseDualStack:iO,UseFIPS:iO,Endpoint:sO},rules:[{conditions:[{[ln]:oO,[un]:[aO]}],type:dn,rules:[{conditions:lO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Xr},{conditions:uO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Xr},{endpoint:{url:aO,properties:jt,headers:jt},type:fa}]},{conditions:[{[ln]:oO,[un]:mO}],type:dn,rules:[{conditions:[{[ln]:"aws.partition",[un]:mO,assign:ny}],type:dn,rules:[{conditions:[fO,yO],type:dn,rules:[{conditions:[cO,dO],type:dn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jt,headers:jt},type:fa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Xr}]},{conditions:lO,type:dn,rules:[{conditions:[cO],type:dn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:jt,headers:jt},type:fa}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Xr}]},{conditions:uO,type:dn,rules:[{conditions:[dO],type:dn,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jt,headers:jt},type:fa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Xr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:jt,headers:jt},type:fa}]}]},{error:"Invalid Configuration: Missing Region",type:Xr}]};Cl.ruleSet=OW});var hO=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.defaultEndpointResolver=void 0;var NW=Fr(),IW=gO(),RW=(e,t={})=>(0,NW.resolveEndpoint)(IW.ruleSet,{endpointParams:e,logger:t.logger});Sl.defaultEndpointResolver=RW});var SO=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.getRuntimeConfig=void 0;var TW=b(),BW=lr(),_O=wr(),CO=st(),qW=hO(),DW=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??_O.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??_O.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??qW.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new TW.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??BW.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??CO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??CO.toUtf8});bl.getRuntimeConfig=DW});var ga=m((Yve,xO)=>{var MW=Object.create,ya=Object.defineProperty,FW=Object.getOwnPropertyDescriptor,LW=Object.getOwnPropertyNames,jW=Object.getPrototypeOf,UW=Object.prototype.hasOwnProperty,ry=(e,t)=>ya(e,"name",{value:t,configurable:!0}),zW=(e,t)=>{for(var n in t)ya(e,n,{get:t[n],enumerable:!0})},vO=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LW(t))!UW.call(e,o)&&o!==n&&ya(e,o,{get:()=>t[o],enumerable:!(r=FW(t,o))||r.enumerable});return e},GW=(e,t,n)=>(n=e!=null?MW(jW(e)):{},vO(t||!e||!e.__esModule?ya(n,"default",{value:e,enumerable:!0}):n,e)),HW=e=>vO(ya({},"__esModule",{value:!0}),e),wO={};zW(wO,{resolveDefaultsModeConfig:()=>e5});xO.exports=HW(wO);var $W=Dt(),bO=rn(),KW=xe(),VW="AWS_EXECUTION_ENV",EO="AWS_REGION",PO="AWS_DEFAULT_REGION",XW="AWS_EC2_METADATA_DISABLED",WW=["in-region","cross-region","mobile","standard","legacy"],YW="/latest/meta-data/placement/region",JW="AWS_DEFAULTS_MODE",QW="defaults_mode",ZW={environmentVariableSelector:e=>e[JW],configFileSelector:e=>e[QW],default:"legacy"},e5=ry(({region:e=(0,bO.loadConfig)($W.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,bO.loadConfig)(ZW)}={})=>(0,KW.memoize)(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return t5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n==null?void 0:n.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${WW.join(", ")}, got ${n}`)}}),"resolveDefaultsModeConfig"),t5=ry(async e=>{if(e){let t=typeof e=="function"?await e():e,n=await n5();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),n5=ry(async()=>{if(process.env[VW]&&(process.env[EO]||process.env[PO]))return process.env[EO]??process.env[PO];if(!process.env[XW])try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(()=>GW(dl())),n=await e();return(await t({...n,path:YW})).toString()}catch{}},"inferPhysicalRegion")});var OO=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getRuntimeConfig=void 0;var r5=(ne(),J(te)),o5=r5.__importDefault(KA()),s5=ua(),El=Dt(),i5=ma(),kO=on(),ha=rn(),AO=xr(),a5=pa(),c5=jr(),d5=SO(),l5=b(),u5=ga(),m5=b(),p5=e=>{(0,m5.emitWarningIfUnsupportedVersion)(process.version);let t=(0,u5.resolveDefaultsModeConfig)(e),n=()=>t().then(l5.loadConfigsForDefaultMode),r=(0,d5.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??a5.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,s5.defaultUserAgent)({serviceId:r.serviceId,clientVersion:o5.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,ha.loadConfig)(kO.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,ha.loadConfig)(El.NODE_REGION_CONFIG_OPTIONS,El.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new AO.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,ha.loadConfig)({...kO.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||c5.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??i5.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??AO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,ha.loadConfig)(El.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,ha.loadConfig)(El.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Pl.getRuntimeConfig=p5});var NO=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.resolveAwsRegionExtensionConfiguration=Yr.getAwsRegionExtensionConfiguration=void 0;var f5=e=>{let t=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let n=e.region;return typeof n=="string"?n:n()};return{setRegion(n){t=n},region(){return t}}};Yr.getAwsRegionExtensionConfiguration=f5;var y5=e=>({region:e.region()});Yr.resolveAwsRegionExtensionConfiguration=y5});var IO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var oy=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isFipsRegion=void 0;var g5=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));vl.isFipsRegion=g5});var RO=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.getRealRegion=void 0;var h5=oy(),_5=e=>(0,h5.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;wl.getRealRegion=_5});var BO=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.resolveRegionConfig=void 0;var TO=RO(),C5=oy(),S5=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,TO.getRealRegion)(t);let r=await t();return(0,TO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return(0,C5.isFipsRegion)(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}}};xl.resolveRegionConfig=S5});var DO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var qO=(ne(),J(te));qO.__exportStar(IO(),kl);qO.__exportStar(BO(),kl)});var Ol=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var MO=(ne(),J(te));MO.__exportStar(NO(),Al);MO.__exportStar(DO(),Al)});var UO=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.resolveRuntimeExtensions=void 0;var FO=Ol(),LO=Ne(),jO=b(),sy=e=>e,b5=(e,t)=>{let n={...sy((0,FO.getAwsRegionExtensionConfiguration)(e)),...sy((0,jO.getDefaultExtensionConfiguration)(e)),...sy((0,LO.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,FO.resolveAwsRegionExtensionConfiguration)(n),...(0,jO.resolveDefaultRuntimeConfig)(n),...(0,LO.resolveHttpHandlerRuntimeConfig)(n)}};Nl.resolveRuntimeExtensions=b5});var _a=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SSOClient=Jr.__Client=void 0;var zO=Ii(),E5=Ri(),P5=Ti(),GO=Wi(),v5=Dt(),w5=Yi(),x5=x(),HO=on(),$O=b();Object.defineProperty(Jr,"__Client",{enumerable:!0,get:function(){return $O.Client}});var k5=$A(),A5=OO(),O5=UO(),iy=class extends $O.Client{constructor(...[t]){let n=(0,A5.getRuntimeConfig)(t||{}),r=(0,k5.resolveClientEndpointParameters)(n),o=(0,v5.resolveRegionConfig)(r),s=(0,x5.resolveEndpointConfig)(o),a=(0,HO.resolveRetryConfig)(s),i=(0,zO.resolveHostHeaderConfig)(a),u=(0,GO.resolveUserAgentConfig)(i),l=(0,O5.resolveRuntimeExtensions)(u,(t==null?void 0:t.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,HO.getRetryPlugin)(this.config)),this.middlewareStack.use((0,w5.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,zO.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,E5.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,P5.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,GO.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Jr.SSOClient=iy});var Il=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOServiceException=Qr.__ServiceException=void 0;var KO=b();Object.defineProperty(Qr,"__ServiceException",{enumerable:!0,get:function(){return KO.ServiceException}});var ay=class e extends KO.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};Qr.SSOServiceException=ay});var pr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var Zr=b(),Rl=Il(),cy=class e extends Rl.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=cy;var dy=class e extends Rl.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=dy;var ly=class e extends Rl.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=ly;var uy=class e extends Rl.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=uy;var N5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=N5;var I5=e=>({...e,...e.secretAccessKey&&{secretAccessKey:Zr.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:Zr.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=I5;var R5=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=R5;var T5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=T5;var B5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=B5;var q5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=q5});var Ca=m(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.de_LogoutCommand=Ge.de_ListAccountsCommand=Ge.de_ListAccountRolesCommand=Ge.de_GetRoleCredentialsCommand=Ge.se_LogoutCommand=Ge.se_ListAccountsCommand=Ge.se_ListAccountRolesCommand=Ge.se_GetRoleCredentialsCommand=void 0;var Tl=Ne(),Q=b(),Bl=pr(),D5=Il(),M5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,Q.map)({role_name:[,(0,Q.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_GetRoleCredentialsCommand=M5;var F5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_ListAccountRolesCommand=F5;var L5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_ListAccountsCommand=L5;var j5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})};Ge.se_LogoutCommand=j5;var U5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return z5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{roleCredentials:Q._json});return Object.assign(n,o),n};Ge.de_GetRoleCredentialsCommand=U5;var z5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},G5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return H5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{nextToken:Q.expectString,roleList:Q._json});return Object.assign(n,o),n};Ge.de_ListAccountRolesCommand=G5;var H5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},$5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{accountList:Q._json,nextToken:Q.expectString});return Object.assign(n,o),n};Ge.de_ListAccountsCommand=$5;var K5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},V5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return X5(e,t);let n=(0,Q.map)({$metadata:Gn(e)});return await(0,Q.collectBody)(e.body,t),n};Ge.de_LogoutCommand=V5;var X5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},ql=(0,Q.withBaseException)(D5.SSOServiceException),Dl=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.InvalidRequestException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},my=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.ResourceNotFoundException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Ml=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.TooManyRequestsException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Fl=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.UnauthorizedException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Gn=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),W5=(e,t)=>(0,Q.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Ll=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),jl=(e,t)=>W5(e,t).then(n=>n.length?JSON.parse(n):{}),Ul=async(e,t)=>{let n=await jl(e,t);return n.message=n.message??n.Message,n},zl=(e,t)=>{let n=(s,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},o=n(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(t.code!==void 0)return r(t.code);if(t.__type!==void 0)return r(t.__type)}});var fy=m(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.GetRoleCredentialsCommand=eo.$Command=void 0;var Y5=x(),J5=k(),WO=b();Object.defineProperty(eo,"$Command",{enumerable:!0,get:function(){return WO.Command}});var Q5=w(),VO=pr(),XO=Ca(),py=class e extends WO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J5.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Y5.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:VO.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:VO.GetRoleCredentialsResponseFilterSensitiveLog,[Q5.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XO.se_GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,XO.de_GetRoleCredentialsCommand)(t,n)}};eo.GetRoleCredentialsCommand=py});var Gl=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.ListAccountRolesCommand=to.$Command=void 0;var Z5=x(),e9=k(),JO=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return JO.Command}});var t9=w(),n9=pr(),YO=Ca(),yy=class e extends JO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,e9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Z5.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:n9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[t9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YO.se_ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,YO.de_ListAccountRolesCommand)(t,n)}};to.ListAccountRolesCommand=yy});var Hl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountsCommand=no.$Command=void 0;var r9=x(),o9=k(),ZO=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return ZO.Command}});var s9=w(),i9=pr(),QO=Ca(),gy=class e extends ZO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,r9.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:i9.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[s9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QO.se_ListAccountsCommand)(t,n)}deserialize(t,n){return(0,QO.de_ListAccountsCommand)(t,n)}};no.ListAccountsCommand=gy});var _y=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.LogoutCommand=ro.$Command=void 0;var a9=x(),c9=k(),tN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return tN.Command}});var d9=w(),l9=pr(),eN=Ca(),hy=class e extends tN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,a9.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:l9.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[d9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,eN.se_LogoutCommand)(t,n)}deserialize(t,n){return(0,eN.de_LogoutCommand)(t,n)}};ro.LogoutCommand=hy});var nN=m(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.SSO=void 0;var u9=b(),m9=fy(),p9=Gl(),f9=Hl(),y9=_y(),g9=_a(),h9={GetRoleCredentialsCommand:m9.GetRoleCredentialsCommand,ListAccountRolesCommand:p9.ListAccountRolesCommand,ListAccountsCommand:f9.ListAccountsCommand,LogoutCommand:y9.LogoutCommand},$l=class extends g9.SSOClient{};Kl.SSO=$l;(0,u9.createAggregatedClient)(h9,$l)});var rN=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var Vl=(ne(),J(te));Vl.__exportStar(fy(),oo);Vl.__exportStar(Gl(),oo);Vl.__exportStar(Hl(),oo);Vl.__exportStar(_y(),oo)});var sN=m(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0})});var iN=m(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.paginateListAccountRoles=void 0;var _9=Gl(),C9=_a(),S9=async(e,t,...n)=>await e.send(new _9.ListAccountRolesCommand(t),...n);async function*b9(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof C9.SSOClient)s=await S9(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Xl.paginateListAccountRoles=b9});var aN=m(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.paginateListAccounts=void 0;var E9=Hl(),P9=_a(),v9=async(e,t,...n)=>await e.send(new E9.ListAccountsCommand(t),...n);async function*w9(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof P9.SSOClient)s=await v9(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Wl.paginateListAccounts=w9});var cN=m(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Cy=(ne(),J(te));Cy.__exportStar(sN(),Sa);Cy.__exportStar(iN(),Sa);Cy.__exportStar(aN(),Sa)});var dN=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var x9=(ne(),J(te));x9.__exportStar(pr(),Sy)});var lN=m(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.SSOServiceException=void 0;var ba=(ne(),J(te));ba.__exportStar(_a(),mn);ba.__exportStar(nN(),mn);ba.__exportStar(rN(),mn);ba.__exportStar(cN(),mn);ba.__exportStar(dN(),mn);var k9=Il();Object.defineProperty(mn,"SSOServiceException",{enumerable:!0,get:function(){return k9.SSOServiceException}})});var Ql=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var uN=Ii(),A9=Ri(),O9=Ti(),mN=Wi(),N9=Dt(),I9=Yi(),R9=x(),pN=on(),T9=b(),B9=e=>{var t,n;return{...e,useDualstackEndpoint:(t=e.useDualstackEndpoint)!==null&&t!==void 0?t:!1,useFipsEndpoint:(n=e.useFipsEndpoint)!==null&&n!==void 0?n:!1,defaultSigningName:"awsssooidc"}},q9={version:"3.387.0"},D9=ua(),Yl=Dt(),M9=ma(),fN=on(),Ea=rn(),yN=xr(),F9=pa(),L9=jr(),j9=b(),U9=lr(),gN=wr(),hN=st(),z9=Fr(),wN="required",pn="fn",fn="argv",so="ref",by="PartitionResult",Ut="tree",Pa="error",va="endpoint",_N={[wN]:!1,type:"String"},CN={[wN]:!0,default:!1,type:"Boolean"},xN={[so]:"Endpoint"},kN={[pn]:"booleanEquals",[fn]:[{[so]:"UseFIPS"},!0]},AN={[pn]:"booleanEquals",[fn]:[{[so]:"UseDualStack"},!0]},zt={},SN={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[so]:by},"supportsFIPS"]}]},bN={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[so]:by},"supportsDualStack"]}]},EN=[xN],PN=[kN],vN=[AN],G9={version:"1.0",parameters:{Region:_N,UseDualStack:CN,UseFIPS:CN,Endpoint:_N},rules:[{conditions:[{[pn]:"aws.partition",[fn]:[{[so]:"Region"}],assign:by}],type:Ut,rules:[{conditions:[{[pn]:"isSet",[fn]:EN},{[pn]:"parseURL",[fn]:EN,assign:"url"}],type:Ut,rules:[{conditions:PN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Pa},{type:Ut,rules:[{conditions:vN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Pa},{endpoint:{url:xN,properties:zt,headers:zt},type:va}]}]},{conditions:[kN,AN],type:Ut,rules:[{conditions:[SN,bN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:va}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Pa}]},{conditions:PN,type:Ut,rules:[{conditions:[SN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:va}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Pa}]},{conditions:vN,type:Ut,rules:[{conditions:[bN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:va}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Pa}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:va}]}]},H9=G9,$9=(e,t={})=>(0,z9.resolveEndpoint)(H9,{endpointParams:e,logger:t.logger}),K9=e=>{var t,n,r,o,s,a,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:gN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:gN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:$9,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new j9.NoOpLogger,serviceId:(a=e==null?void 0:e.serviceId)!==null&&a!==void 0?a:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:U9.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:hN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:hN.toUtf8}},V9=b(),X9=ga(),W9=b(),Y9=e=>{var t,n,r,o,s,a,i,u,l,c;(0,W9.emitWarningIfUnsupportedVersion)(process.version);let y=(0,X9.resolveDefaultsModeConfig)(e),g=()=>y().then(V9.loadConfigsForDefaultMode),C=K9(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(t=e==null?void 0:e.bodyLengthChecker)!==null&&t!==void 0?t:F9.calculateBodyLength,defaultUserAgentProvider:(n=e==null?void 0:e.defaultUserAgentProvider)!==null&&n!==void 0?n:(0,D9.defaultUserAgent)({serviceId:C.serviceId,clientVersion:q9.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,Ea.loadConfig)(fN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Ea.loadConfig)(Yl.NODE_REGION_CONFIG_OPTIONS,Yl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new yN.NodeHttpHandler(g),retryMode:(a=e==null?void 0:e.retryMode)!==null&&a!==void 0?a:(0,Ea.loadConfig)({...fN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||L9.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:M9.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:yN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,Ea.loadConfig)(Yl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(c=e==null?void 0:e.useFipsEndpoint)!==null&&c!==void 0?c:(0,Ea.loadConfig)(Yl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},ON=class extends T9.Client{constructor(...[e]){let t=Y9(e||{}),n=B9(t),r=(0,N9.resolveRegionConfig)(n),o=(0,R9.resolveEndpointConfig)(r),s=(0,pN.resolveRetryConfig)(o),a=(0,uN.resolveHostHeaderConfig)(s),i=(0,mN.resolveUserAgentConfig)(a);super(i),this.config=i,this.middlewareStack.use((0,pN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,I9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,uN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,A9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,O9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,mN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=ON;var J9=b(),Q9=x(),Z9=k(),eY=b(),Ey=Ne(),R=b(),tY=b(),ut=class NN extends tY.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,NN.prototype)}},IN=class RN extends ut{constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,RN.prototype),this.error=t.error,this.error_description=t.error_description}};he.AccessDeniedException=IN;var TN=class BN extends ut{constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,BN.prototype),this.error=t.error,this.error_description=t.error_description}};he.AuthorizationPendingException=TN;var qN=class DN extends ut{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,DN.prototype),this.error=t.error,this.error_description=t.error_description}};he.ExpiredTokenException=qN;var MN=class FN extends ut{constructor(t){super({name:"InternalServerException",$fault:"server",...t}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,FN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InternalServerException=MN;var LN=class jN extends ut{constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,jN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidClientException=LN;var nY=class UN extends ut{constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,UN.prototype),this.error=t.error,this.error_description=t.error_description}},zN=class GN extends ut{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,GN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidRequestException=zN;var HN=class $N extends ut{constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,$N.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidScopeException=HN;var KN=class VN extends ut{constructor(t){super({name:"SlowDownException",$fault:"client",...t}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,VN.prototype),this.error=t.error,this.error_description=t.error_description}};he.SlowDownException=KN;var XN=class WN extends ut{constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,WN.prototype),this.error=t.error,this.error_description=t.error_description}};he.UnauthorizedClientException=XN;var YN=class JN extends ut{constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,JN.prototype),this.error=t.error,this.error_description=t.error_description}};he.UnsupportedGrantTypeException=YN;var rY=class QN extends ut{constructor(t){super({name:"InvalidClientMetadataException",$fault:"client",...t}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=t.error,this.error_description=t.error_description}},oY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},sY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},iY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},aY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return cY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(n,o),n},cY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await pY(n,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await fY(n,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await yY(n,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await ZN(n,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await hY(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await eI(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await tI(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await nI(n,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await _Y(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},dY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return lY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(n,o),n},lY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await gY(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await eI(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},uY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return mY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(n,o),n},mY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await ZN(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await tI(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await nI(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},Py=(0,R.withBaseException)(ut),pY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new IN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},fY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new TN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},yY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new qN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},vy=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new MN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},ZN=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new LN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},gY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new rY({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},hY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new nY({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},wy=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new zN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},eI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new HN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},tI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new KN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},nI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new XN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},_Y=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new YN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var t,n;return{httpStatusCode:e.statusCode,requestId:(n=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&n!==void 0?n:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},CY=(e,t)=>(0,R.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Jl=(e,t)=>CY(e,t).then(n=>n.length?JSON.parse(n):{}),xy=async(e,t)=>{var n;let r=await Jl(e,t);return r.message=(n=r.message)!==null&&n!==void 0?n:r.Message,r},ky=(e,t)=>{let n=(s,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},o=n(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(t.code!==void 0)return r(t.code);if(t.__type!==void 0)return r(t.__type)},rI=class oI extends eY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Q9.getEndpointPlugin)(n,oI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return oY(t,n)}deserialize(t,n){return aY(t,n)}};he.CreateTokenCommand=rI;var SY=x(),bY=k(),EY=b(),PY=class sI extends EY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,bY.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,SY.getEndpointPlugin)(n,sI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return sY(t,n)}deserialize(t,n){return dY(t,n)}},vY=x(),wY=k(),xY=b(),kY=class iI extends xY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wY.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vY.getEndpointPlugin)(n,iI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return iY(t,n)}deserialize(t,n){return uY(t,n)}},AY={CreateTokenCommand:rI,RegisterClientCommand:PY,StartDeviceAuthorizationCommand:kY},OY=class extends ON{};(0,J9.createAggregatedClient)(AY,OY)});var Zl=m(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.REFRESH_MESSAGE=io.EXPIRE_WINDOW_MS=void 0;io.EXPIRE_WINDOW_MS=5*60*1e3;io.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var aI=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.getSsoOidcClient=void 0;var NY=Ql(),Ay={},IY=e=>{if(Ay[e])return Ay[e];let t=new NY.SSOOIDCClient({region:e});return Ay[e]=t,t};eu.getSsoOidcClient=IY});var cI=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.getNewSsoOidcToken=void 0;var RY=Ql(),TY=aI(),BY=(e,t)=>(0,TY.getSsoOidcClient)(t).send(new RY.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));tu.getNewSsoOidcToken=BY});var dI=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.validateTokenExpiry=void 0;var qY=xe(),DY=Zl(),MY=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.validateTokenKey=void 0;var FY=xe(),LY=Zl(),jY=(e,t,n=!1)=>{if(typeof t>"u")throw new FY.TokenProviderError(`Value not present for '${e}' in SSO Token${n?". Cannot refresh":""}. ${LY.REFRESH_MESSAGE}`,!1)};ru.validateTokenKey=jY});var uI=m(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.writeSSOTokenToFile=void 0;var UY=wt(),zY=require("fs"),{writeFile:GY}=zY.promises,HY=(e,t)=>{let n=(0,UY.getSSOTokenFilepath)(e),r=JSON.stringify(t,null,2);return GY(n,r)};ou.writeSSOTokenToFile=HY});var Oy=m(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.fromSso=void 0;var wa=xe(),su=wt(),mI=Zl(),$Y=cI(),pI=dI(),fr=lI(),KY=uI(),fI=new Date(0),VY=(e={})=>async()=>{let t=await(0,su.parseKnownFiles)(e),n=(0,su.getProfileName)(e),r=t[n];if(r){if(!r.sso_session)throw new wa.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new wa.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=r.sso_session,a=(await(0,su.loadSsoSessionData)(e))[o];if(!a)throw new wa.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new wa.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=a.sso_start_url,u=a.sso_region,l;try{l=await(0,su.getSSOTokenFromFile)(o)}catch{throw new wa.TokenProviderError(`The SSO session token associated with profile=${n} was not found or is invalid. ${mI.REFRESH_MESSAGE}`,!1)}(0,fr.validateTokenKey)("accessToken",l.accessToken),(0,fr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:c,expiresAt:y}=l,g={token:c,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>mI.EXPIRE_WINDOW_MS)return g;if(Date.now()-fI.getTime()<30*1e3)return(0,pI.validateTokenExpiry)(g),g;(0,fr.validateTokenKey)("clientId",l.clientId,!0),(0,fr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,fr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{fI.setTime(Date.now());let C=await(0,$Y.getNewSsoOidcToken)(l,u);(0,fr.validateTokenKey)("accessToken",C.accessToken),(0,fr.validateTokenKey)("expiresIn",C.expiresIn);let P=new Date(Date.now()+C.expiresIn*1e3);try{await(0,KY.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:P.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:P}}catch{return(0,pI.validateTokenExpiry)(g),g}};iu.fromSso=VY});var yI=m(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.fromStatic=void 0;var XY=xe(),WY=({token:e})=>async()=>{if(!e||!e.token)throw new XY.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};au.fromStatic=WY});var gI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.nodeProvider=void 0;var Ny=xe(),YY=Oy(),JY=(e={})=>(0,Ny.memoize)((0,Ny.chain)((0,YY.fromSso)(e),async()=>{throw new Ny.TokenProviderError("Could not load token from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);cu.nodeProvider=JY});var hI=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var du=(ne(),J(te));du.__exportStar(Ql(),ao);du.__exportStar(Oy(),ao);du.__exportStar(yI(),ao);du.__exportStar(gI(),ao)});var CI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.resolveSSOCredentials=void 0;var _I=lN(),QY=hI(),xa=xe(),ZY=wt(),ka=!1,e7=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:a})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let v=await(0,QY.fromSso)({profile:a})();i={accessToken:v.token,expiresAt:new Date(v.expiration).toISOString()}}catch(v){throw new xa.CredentialsProviderError(v.message,ka)}else try{i=await(0,ZY.getSSOTokenFromFile)(e)}catch{throw new xa.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,ka)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new xa.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,ka);let{accessToken:l}=i,c=s||new _I.SSOClient({region:r}),y;try{y=await c.send(new _I.GetRoleCredentialsCommand({accountId:n,roleName:o,accessToken:l}))}catch(v){throw xa.CredentialsProviderError.from(v,ka)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:A}={}}=y;if(!g||!C||!P||!A)throw new xa.CredentialsProviderError("SSO returns an invalid temporary credential.",ka);return{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:new Date(A)}};lu.resolveSSOCredentials=e7});var Iy=m(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateSsoProfile=void 0;var t7=xe(),n7=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:o}=e;if(!t||!n||!r||!o)throw new t7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};uu.validateSsoProfile=n7});var bI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.fromSSO=void 0;var Aa=xe(),Ry=wt(),r7=Qf(),SI=CI(),o7=Iy(),s7=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:a}=e,i=(0,Ry.getProfileName)(e);if(!t&&!n&&!r&&!o&&!a){let l=(await(0,Ry.parseKnownFiles)(e))[i];if(!l)throw new Aa.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,r7.isSsoProfile)(l))throw new Aa.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let v=(await(0,Ry.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==v.sso_region)throw new Aa.CredentialsProviderError("Conflicting SSO region"+G,!1);if(t&&t!==v.sso_start_url)throw new Aa.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=v.sso_region,l.sso_start_url=v.sso_start_url}let{sso_start_url:c,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:P}=(0,o7.validateSsoProfile)(l);return(0,SI.resolveSSOCredentials)({ssoStartUrl:c,ssoSession:P,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!t||!n||!r||!o)throw new Aa.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,SI.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:a,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};mu.fromSSO=s7});var PI=m(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0})});var fu=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var pu=(ne(),J(te));pu.__exportStar(bI(),co);pu.__exportStar(Qf(),co);pu.__exportStar(PI(),co);pu.__exportStar(Iy(),co)});var wI=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.resolveSsoCredentials=lo.isSsoProfile=void 0;var vI=fu(),i7=fu();Object.defineProperty(lo,"isSsoProfile",{enumerable:!0,get:function(){return i7.isSsoProfile}});var a7=e=>{let{sso_start_url:t,sso_account_id:n,sso_session:r,sso_region:o,sso_role_name:s}=(0,vI.validateSsoProfile)(e);return(0,vI.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};lo.resolveSsoCredentials=a7});var xI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveStaticCredentials=uo.isStaticCredsProfile=void 0;var c7=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;uo.isStaticCredsProfile=c7;var d7=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});uo.resolveStaticCredentials=d7});var Ty=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromWebToken=void 0;var l7=xe(),u7=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:o,policyArns:s,policy:a,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new l7.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:a,DurationSeconds:i})};yu.fromWebToken=u7});var kI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.fromTokenFile=void 0;var m7=xe(),p7=require("fs"),f7=Ty(),y7="AWS_WEB_IDENTITY_TOKEN_FILE",g7="AWS_ROLE_ARN",h7="AWS_ROLE_SESSION_NAME",_7=(e={})=>async()=>{var t,n,r;let o=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[y7],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[g7],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[h7];if(!o||!s)throw new m7.CredentialsProviderError("Web identity configuration not specified");return(0,f7.fromWebToken)({...e,webIdentityToken:(0,p7.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:a})()};gu.fromTokenFile=_7});var By=m(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var AI=(ne(),J(te));AI.__exportStar(kI(),hu);AI.__exportStar(Ty(),hu)});var OI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveWebIdentityCredentials=mo.isWebIdentityProfile=void 0;var C7=By(),S7=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;mo.isWebIdentityProfile=S7;var b7=async(e,t)=>(0,C7.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();mo.resolveWebIdentityCredentials=b7});var Xf=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.resolveProfileData=void 0;var E7=xe(),NI=LA(),II=HA(),RI=wI(),_u=xI(),TI=OI(),P7=async(e,t,n,r={})=>{let o=t[e];if(Object.keys(r).length>0&&(0,_u.isStaticCredsProfile)(o))return(0,_u.resolveStaticCredentials)(o);if((0,NI.isAssumeRoleProfile)(o))return(0,NI.resolveAssumeRoleCredentials)(e,t,n,r);if((0,_u.isStaticCredsProfile)(o))return(0,_u.resolveStaticCredentials)(o);if((0,TI.isWebIdentityProfile)(o))return(0,TI.resolveWebIdentityCredentials)(o,n);if((0,II.isProcessProfile)(o))return(0,II.resolveProcessCredentials)(n,e);if((0,RI.isSsoProfile)(o))return(0,RI.resolveSsoCredentials)(o);throw new E7.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Cu.resolveProfileData=P7});var qI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromIni=void 0;var BI=wt(),v7=Xf(),w7=(e={})=>async()=>{let t=await(0,BI.parseKnownFiles)(e);return(0,v7.resolveProfileData)((0,BI.getProfileName)(e),t,e)};Su.fromIni=w7});var DI=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var x7=(ne(),J(te));x7.__exportStar(qI(),qy)});var MI=m(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.remoteProvider=yr.ENV_IMDS_DISABLED=void 0;var bu=dl(),k7=xe();yr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var A7=e=>process.env[bu.ENV_CMDS_RELATIVE_URI]||process.env[bu.ENV_CMDS_FULL_URI]?(0,bu.fromContainerMetadata)(e):process.env[yr.ENV_IMDS_DISABLED]?async()=>{throw new k7.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,bu.fromInstanceMetadata)(e);yr.remoteProvider=A7});var FI=m(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.defaultProvider=void 0;var O7=Uf(),N7=DI(),I7=Jf(),R7=fu(),T7=By(),Dy=xe(),B7=wt(),q7=MI(),D7=(e={})=>(0,Dy.memoize)((0,Dy.chain)(...e.profile||process.env[B7.ENV_PROFILE]?[]:[(0,O7.fromEnv)()],(0,R7.fromSSO)(e),(0,N7.fromIni)(e),(0,I7.fromProcess)(e),(0,T7.fromTokenFile)(e),(0,q7.remoteProvider)(e),async()=>{throw new Dy.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);Eu.defaultProvider=D7});var Fy=m(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var M7=(ne(),J(te));M7.__exportStar(FI(),My)});var iR=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.ruleSet=void 0;var YI="required",se="type",fe="fn",ye="argv",Hn="ref",LI=!1,F7=!0,gr="booleanEquals",Gt="tree",Xe="stringEquals",JI="sigv4",QI="sts",ZI="us-east-1",Ee="endpoint",jI="https://sts.{Region}.{PartitionResult#dnsSuffix}",po="error",jy="getAttr",UI={[YI]:!1,[se]:"String"},Ly={[YI]:!0,default:!1,[se]:"Boolean"},eR={[Hn]:"Endpoint"},zI={[fe]:"isSet",[ye]:[{[Hn]:"Region"}]},We={[Hn]:"Region"},GI={[fe]:"aws.partition",[ye]:[We],assign:"PartitionResult"},tR={[Hn]:"UseFIPS"},nR={[Hn]:"UseDualStack"},tt={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:JI,signingName:QI,signingRegion:ZI}]},headers:{}},mt={},HI={conditions:[{[fe]:Xe,[ye]:[We,"aws-global"]}],[Ee]:tt,[se]:Ee},rR={[fe]:gr,[ye]:[tR,!0]},oR={[fe]:gr,[ye]:[nR,!0]},$I={[fe]:gr,[ye]:[!0,{[fe]:jy,[ye]:[{[Hn]:"PartitionResult"},"supportsFIPS"]}]},sR={[Hn]:"PartitionResult"},KI={[fe]:gr,[ye]:[!0,{[fe]:jy,[ye]:[sR,"supportsDualStack"]}]},VI=[{[fe]:"isSet",[ye]:[eR]}],XI=[rR],WI=[oR],L7={version:"1.0",parameters:{Region:UI,UseDualStack:Ly,UseFIPS:Ly,Endpoint:UI,UseGlobalEndpoint:Ly},rules:[{conditions:[{[fe]:gr,[ye]:[{[Hn]:"UseGlobalEndpoint"},F7]},{[fe]:"not",[ye]:VI},zI,GI,{[fe]:gr,[ye]:[tR,LI]},{[fe]:gr,[ye]:[nR,LI]}],[se]:Gt,rules:[{conditions:[{[fe]:Xe,[ye]:[We,"ap-northeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-south-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-2"]}],endpoint:tt,[se]:Ee},HI,{conditions:[{[fe]:Xe,[ye]:[We,"ca-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-north-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-3"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"sa-east-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,ZI]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-east-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-2"]}],endpoint:tt,[se]:Ee},{endpoint:{url:jI,properties:{authSchemes:[{name:JI,signingName:QI,signingRegion:"{Region}"}]},headers:mt},[se]:Ee}]},{conditions:VI,[se]:Gt,rules:[{conditions:XI,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[se]:po},{conditions:WI,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[se]:po},{endpoint:{url:eR,properties:mt,headers:mt},[se]:Ee}]},{conditions:[zI],[se]:Gt,rules:[{conditions:[GI],[se]:Gt,rules:[{conditions:[rR,oR],[se]:Gt,rules:[{conditions:[$I,KI],[se]:Gt,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[se]:po}]},{conditions:XI,[se]:Gt,rules:[{conditions:[$I],[se]:Gt,rules:[{conditions:[{[fe]:Xe,[ye]:["aws-us-gov",{[fe]:jy,[ye]:[sR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:mt,headers:mt},[se]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[se]:po}]},{conditions:WI,[se]:Gt,rules:[{conditions:[KI],[se]:Gt,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[se]:po}]},HI,{endpoint:{url:jI,properties:mt,headers:mt},[se]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[se]:po}]};Pu.ruleSet=L7});var aR=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.defaultEndpointResolver=void 0;var j7=Fr(),U7=iR(),z7=(e,t={})=>(0,j7.resolveEndpoint)(U7.ruleSet,{endpointParams:e,logger:t.logger});vu.defaultEndpointResolver=z7});var lR=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.getRuntimeConfig=void 0;var G7=b(),H7=lr(),cR=wr(),dR=st(),$7=aR(),K7=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??cR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??cR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??$7.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new G7.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??H7.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??dR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??dR.toUtf8});wu.getRuntimeConfig=K7});var pR=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.getRuntimeConfig=void 0;var V7=(ne(),J(te)),X7=V7.__importDefault(Tk()),W7=Lf(),Y7=Fy(),J7=ua(),xu=Dt(),Q7=ma(),uR=on(),Oa=rn(),mR=xr(),Z7=pa(),eJ=jr(),tJ=lR(),nJ=b(),rJ=ga(),oJ=b(),sJ=e=>{(0,oJ.emitWarningIfUnsupportedVersion)(process.version);let t=(0,rJ.resolveDefaultsModeConfig)(e),n=()=>t().then(nJ.loadConfigsForDefaultMode),r=(0,tJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Z7.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,W7.decorateDefaultCredentialProvider)(Y7.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,J7.defaultUserAgent)({serviceId:r.serviceId,clientVersion:X7.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Oa.loadConfig)(uR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Oa.loadConfig)(xu.NODE_REGION_CONFIG_OPTIONS,xu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new mR.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,Oa.loadConfig)({...uR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||eJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??Q7.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??mR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Oa.loadConfig)(xu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Oa.loadConfig)(xu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};ku.getRuntimeConfig=sJ});var hR=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.resolveRuntimeExtensions=void 0;var fR=Ol(),yR=Ne(),gR=b(),Uy=e=>e,iJ=(e,t)=>{let n={...Uy((0,fR.getAwsRegionExtensionConfiguration)(e)),...Uy((0,gR.getDefaultExtensionConfiguration)(e)),...Uy((0,yR.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,fR.resolveAwsRegionExtensionConfiguration)(n),...(0,gR.resolveDefaultRuntimeConfig)(n),...(0,yR.resolveHttpHandlerRuntimeConfig)(n)}};Au.resolveRuntimeExtensions=iJ});var Ou=m(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.STSClient=fo.__Client=void 0;var _R=Ii(),aJ=Ri(),cJ=Ti(),dJ=Ik(),CR=Wi(),lJ=Dt(),uJ=Yi(),mJ=x(),SR=on(),bR=b();Object.defineProperty(fo,"__Client",{enumerable:!0,get:function(){return bR.Client}});var pJ=Rk(),fJ=pR(),yJ=hR(),zy=class e extends bR.Client{constructor(...[t]){let n=(0,fJ.getRuntimeConfig)(t||{}),r=(0,pJ.resolveClientEndpointParameters)(n),o=(0,lJ.resolveRegionConfig)(r),s=(0,mJ.resolveEndpointConfig)(o),a=(0,SR.resolveRetryConfig)(s),i=(0,_R.resolveHostHeaderConfig)(a),u=(0,dJ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,CR.resolveUserAgentConfig)(u),c=(0,yJ.resolveRuntimeExtensions)(l,(t==null?void 0:t.extensions)||[]);super(c),this.config=c,this.middlewareStack.use((0,SR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,uJ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,_R.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,aJ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,cJ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,CR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};fo.STSClient=zy});var Hy=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.AssumeRoleWithSAMLCommand=yo.$Command=void 0;var gJ=x(),hJ=k(),vR=b();Object.defineProperty(yo,"$Command",{enumerable:!0,get:function(){return vR.Command}});var _J=w(),ER=Bn(),PR=cn(),Gy=class e extends vR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,hJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,gJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:ER.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:ER.AssumeRoleWithSAMLResponseFilterSensitiveLog,[_J.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,PR.se_AssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,PR.de_AssumeRoleWithSAMLCommand)(t,n)}};yo.AssumeRoleWithSAMLCommand=Gy});var Ky=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DecodeAuthorizationMessageCommand=go.$Command=void 0;var CJ=nn(),SJ=x(),bJ=k(),xR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return xR.Command}});var EJ=w(),wR=cn(),$y=class e extends xR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,bJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,SJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,CJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[EJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wR.se_DecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,wR.de_DecodeAuthorizationMessageCommand)(t,n)}};go.DecodeAuthorizationMessageCommand=$y});var Xy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.GetAccessKeyInfoCommand=ho.$Command=void 0;var PJ=nn(),vJ=x(),wJ=k(),AR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return AR.Command}});var xJ=w(),kR=cn(),Vy=class e extends AR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,PJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,kR.se_GetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,kR.de_GetAccessKeyInfoCommand)(t,n)}};ho.GetAccessKeyInfoCommand=Vy});var Yy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetCallerIdentityCommand=_o.$Command=void 0;var kJ=nn(),AJ=x(),OJ=k(),NR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return NR.Command}});var NJ=w(),OR=cn(),Wy=class e extends NR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,OJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,AJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,kJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[NJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OR.se_GetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,OR.de_GetCallerIdentityCommand)(t,n)}};_o.GetCallerIdentityCommand=Wy});var Qy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetFederationTokenCommand=Co.$Command=void 0;var IJ=nn(),RJ=x(),TJ=k(),RR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return RR.Command}});var BJ=w(),qJ=Bn(),IR=cn(),Jy=class e extends RR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,TJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,RJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,IJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:qJ.GetFederationTokenResponseFilterSensitiveLog,[BJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,IR.se_GetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,IR.de_GetFederationTokenCommand)(t,n)}};Co.GetFederationTokenCommand=Jy});var eg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetSessionTokenCommand=So.$Command=void 0;var DJ=nn(),MJ=x(),FJ=k(),BR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return BR.Command}});var LJ=w(),jJ=Bn(),TR=cn(),Zy=class e extends BR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,FJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,MJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,DJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:jJ.GetSessionTokenResponseFilterSensitiveLog,[LJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,TR.se_GetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,TR.de_GetSessionTokenCommand)(t,n)}};So.GetSessionTokenCommand=Zy});var qR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.STS=void 0;var UJ=b(),zJ=ol(),GJ=Hy(),HJ=sl(),$J=Ky(),KJ=Xy(),VJ=Yy(),XJ=Qy(),WJ=eg(),YJ=Ou(),JJ={AssumeRoleCommand:zJ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:GJ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:HJ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:$J.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:KJ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:VJ.GetCallerIdentityCommand,GetFederationTokenCommand:XJ.GetFederationTokenCommand,GetSessionTokenCommand:WJ.GetSessionTokenCommand},Nu=class extends YJ.STSClient{};Iu.STS=Nu;(0,UJ.createAggregatedClient)(JJ,Nu)});var DR=m(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var $n=(ne(),J(te));$n.__exportStar(ol(),Ht);$n.__exportStar(Hy(),Ht);$n.__exportStar(sl(),Ht);$n.__exportStar(Ky(),Ht);$n.__exportStar(Xy(),Ht);$n.__exportStar(Yy(),Ht);$n.__exportStar(Qy(),Ht);$n.__exportStar(eg(),Ht)});var MR=m(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var QJ=(ne(),J(te));QJ.__exportStar(Bn(),tg)});var UR=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.decorateDefaultCredentialProvider=$t.getDefaultRoleAssumerWithWebIdentity=$t.getDefaultRoleAssumer=void 0;var FR=Lf(),LR=Ou(),jR=(e,t)=>t?class extends e{constructor(r){super(r);for(let o of t)this.middlewareStack.use(o)}}:e,ZJ=(e={},t)=>(0,FR.getDefaultRoleAssumer)(e,jR(LR.STSClient,t));$t.getDefaultRoleAssumer=ZJ;var eQ=(e={},t)=>(0,FR.getDefaultRoleAssumerWithWebIdentity)(e,jR(LR.STSClient,t));$t.getDefaultRoleAssumerWithWebIdentity=eQ;var tQ=e=>t=>e({roleAssumer:(0,$t.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,$t.getDefaultRoleAssumerWithWebIdentity)(t),...t});$t.decorateDefaultCredentialProvider=tQ});var zR=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.STSServiceException=void 0;var Na=(ne(),J(te));Na.__exportStar(Ou(),yn);Na.__exportStar(qR(),yn);Na.__exportStar(DR(),yn);Na.__exportStar(MR(),yn);Na.__exportStar(UR(),yn);var nQ=Zd();Object.defineProperty(yn,"STSServiceException",{enumerable:!0,get:function(){return nQ.STSServiceException}})});var GR=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var Ru=vd();Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ru.booleanSelector)(e,Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,Ru.SelectorType.ENV),configFileSelector:e=>(0,Ru.booleanSelector)(e,Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,Ru.SelectorType.CONFIG),default:!1}});var HR=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Vt.NODE_USE_ARN_REGION_INI_NAME=Vt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var Tu=vd();Vt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Vt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Vt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Tu.booleanSelector)(e,Vt.NODE_USE_ARN_REGION_ENV_NAME,Tu.SelectorType.ENV),configFileSelector:e=>(0,Tu.booleanSelector)(e,Vt.NODE_USE_ARN_REGION_INI_NAME,Tu.SelectorType.CONFIG),default:!1}});var og=m(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.validateMrapAlias=ee.validateNoFIPS=ee.validateNoDualstack=ee.getArnResources=ee.validateCustomEndpoint=ee.validateDNSHostLabel=ee.validateAccountId=ee.validateRegionalClient=ee.validateRegion=ee.validatePartition=ee.validateOutpostService=ee.validateS3Service=ee.validateService=ee.validateArnEndpointOptions=ee.getSuffixForArnEndpoint=ee.getSuffix=ee.isDnsCompatibleBucketName=ee.isBucketNameOptions=ee.S3_HOSTNAME_PATTERN=ee.DOT_PATTERN=void 0;var rQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,oQ=/(\d+\.){3}\d+/,sQ=/\.\./;ee.DOT_PATTERN=/\./;ee.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var $R=/^s3(-external-1)?\.amazonaws\.com$/,rg="amazonaws.com",iQ=e=>typeof e.bucketName=="string";ee.isBucketNameOptions=iQ;var aQ=e=>rQ.test(e)&&!oQ.test(e)&&!sQ.test(e);ee.isDnsCompatibleBucketName=aQ;var KR=e=>{let t=e.match(ee.S3_HOSTNAME_PATTERN);return[t[4],e.replace(new RegExp(`^${t[0]}`),"")]},cQ=e=>$R.test(e)?["us-east-1",rg]:KR(e);ee.getSuffix=cQ;var dQ=e=>$R.test(e)?[e.replace(`.${rg}`,""),rg]:KR(e);ee.getSuffixForArnEndpoint=dQ;var lQ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};ee.validateArnEndpointOptions=lQ;var uQ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};ee.validateService=uQ;var mQ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};ee.validateS3Service=mQ;var pQ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};ee.validateOutpostService=pQ;var fQ=(e,t)=>{if(e!==t.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${t.clientPartition}"`)};ee.validatePartition=fQ;var yQ=(e,t)=>{if(e==="")throw new Error("ARN region is empty");if(t.useFipsEndpoint)if(t.allowFipsRegion){if(!ng(e,t.clientRegion))throw new Error(`Client FIPS region ${t.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!t.useArnRegion&&!ng(e,t.clientRegion||"")&&!ng(e,t.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${t.clientRegion}`)};ee.validateRegion=yQ;var gQ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};ee.validateRegionalClient=gQ;var ng=(e,t)=>e===t,hQ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};ee.validateAccountId=hQ;var _Q=(e,t={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||t!=null&&t.tlsCompatible&&ee.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};ee.validateDNSHostLabel=_Q;var CQ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};ee.validateCustomEndpoint=CQ;var SQ=e=>{let t=e.includes(":")?":":"/",[n,...r]=e.split(t);if(n==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${t}{accesspointname}`);return{accesspointName:r[0]}}else if(n==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${t}{outpostId}${t}accesspoint${t}{accesspointName}`);let[o,s,a]=r;return{outpostId:o,accesspointName:a}}else throw new Error(`ARN resource should begin with 'accesspoint${t}' or 'outpost${t}'`)};ee.getArnResources=SQ;var bQ=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};ee.validateNoDualstack=bQ;var EQ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};ee.validateNoFIPS=EQ;var PQ=e=>{try{e.split(".").forEach(t=>{(0,ee.validateDNSHostLabel)(t)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};ee.validateMrapAlias=PQ});var sg=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.bucketHostname=void 0;var ge=og(),vQ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?wQ(e):xQ(e));Bu.bucketHostname=vQ;var wQ=({accelerateEndpoint:e=!1,clientRegion:t,baseHostname:n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:a=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,c]=u?[t,n]:(0,ge.getSuffix)(n);return a||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${c}`:n}:(e?n=`s3-accelerate${o?".dualstack":""}.${c}`:o&&(n=`s3.dualstack.${l}.${c}`),{bucketEndpoint:!0,hostname:`${r}.${n}`})},xQ=e=>{let{isCustomEndpoint:t,baseHostname:n,clientRegion:r}=e,o=t?n:(0,ge.getSuffixForArnEndpoint)(n)[1],{pathStyleEndpoint:s,accelerateEndpoint:a=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:c="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:a,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:P,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:c}),(0,ge.validateAccountId)(C);let{accesspointName:v,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?kQ({...e,tlsCompatible:u,bucketName:l,accesspointName:v,hostnameSuffix:o}):P===""?AQ({...e,clientRegion:r,mrapAlias:v,hostnameSuffix:o}):G?OQ({...e,clientRegion:r,outpostId:G,accesspointName:v,hostnameSuffix:o}):NQ({...e,clientRegion:r,accesspointName:v,hostnameSuffix:o})},kQ=({dualstackEndpoint:e=!1,fipsEndpoint:t=!1,tlsCompatible:n=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:a,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:c,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(c,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:t}),(0,ge.validateNoDualstack)(e);let g=`${a}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:n});let C=r?c:o,P=r?c:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${t?"-fips":""}.${C}.${u}`,signingRegion:P,signingService:y}},AQ=({disableMultiregionAccessPoints:e,dualstackEndpoint:t=!1,isCustomEndpoint:n,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(t),{bucketEndpoint:!0,hostname:`${r}${n?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},OQ=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:a=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:c})=>{(0,ge.validateRegionalClient)(t),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:t,clientSigningRegion:n,useFipsEndpoint:a});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:t,C=e?r.region:n;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(a),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${c}`,signingRegion:C,signingService:"s3-outposts"}},NQ=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:a=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(t),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:t,clientSigningRegion:n,allowFipsRegion:!0,useFipsEndpoint:s});let c=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(c,{tlsCompatible:a});let y=e?r.region:t,g=e?r.region:n;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${c}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var WR=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getBucketEndpointPlugin=Xt.bucketEndpointMiddlewareOptions=Xt.bucketEndpointMiddleware=void 0;var VR=hp(),IQ=Ne(),XR=sg(),RQ=e=>(t,n)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,a=r.request;if(IQ.HttpRequest.isInstance(a)){if(e.bucketEndpoint)a.hostname=o;else if((0,VR.validate)(o)){let i=(0,VR.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),c=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:c})||{},C=await e.useArnRegion(),{hostname:P,bucketEndpoint:A,signingRegion:v,signingService:G}=(0,XR.bucketHostname)({bucketName:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:c,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});v&&v!==g&&(n.signing_region=v),G&&G!=="s3"&&(n.signing_service=G),a.hostname=P,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:c,bucketEndpoint:y}=(0,XR.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});a.hostname=c,s=y}s&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),a.path===""&&(a.path="/"))}return t({...r,request:a})};Xt.bucketEndpointMiddleware=RQ;Xt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var TQ=e=>({applyToStack:t=>{t.addRelativeTo((0,Xt.bucketEndpointMiddleware)(e),Xt.bucketEndpointMiddlewareOptions)}});Xt.getBucketEndpointPlugin=TQ});var YR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.resolveBucketEndpointConfig=void 0;function BQ(e){let{bucketEndpoint:t=!1,forcePathStyle:n=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:t,forcePathStyle:n,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}qu.resolveBucketEndpointConfig=BQ});var JR=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Ia=(ne(),J(te));Ia.__exportStar(GR(),Se);Ia.__exportStar(HR(),Se);Ia.__exportStar(WR(),Se);Ia.__exportStar(sg(),Se);Ia.__exportStar(YR(),Se);var gn=og();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return gn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return gn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return gn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return gn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return gn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return gn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return gn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return gn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return gn.validateNoFIPS}})});var dg={};Ni(dg,{__assign:()=>ag,__asyncDelegator:()=>VQ,__asyncGenerator:()=>KQ,__asyncValues:()=>XQ,__await:()=>Ra,__awaiter:()=>jQ,__classPrivateFieldGet:()=>QQ,__classPrivateFieldSet:()=>ZQ,__createBinding:()=>zQ,__decorate:()=>MQ,__exportStar:()=>GQ,__extends:()=>qQ,__generator:()=>UQ,__importDefault:()=>JQ,__importStar:()=>YQ,__makeTemplateObject:()=>WQ,__metadata:()=>LQ,__param:()=>FQ,__read:()=>QR,__rest:()=>DQ,__spread:()=>HQ,__spreadArrays:()=>$Q,__values:()=>cg});function qQ(e,t){ig(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function DQ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function FQ(e,t){return function(n,r){t(n,r,e)}}function LQ(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function jQ(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,t||[])).next())})}function UQ(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function QR(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function HQ(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Ra?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function VQ(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:Ra(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function XQ(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof cg=="function"?cg(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function WQ(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function YQ(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function JQ(e){return e&&e.__esModule?e:{default:e}}function QQ(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ZQ(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var ig,ag,lg=je(()=>{ig=function(e,t){return ig=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},ig(e,t)};ag=function(){return ag=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.toUtf8=bo.fromUtf8=void 0;var eZ=e=>{let t=[];for(let n=0,r=e.length;n>6|192,o&63|128);else if(n+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)};bo.fromUtf8=eZ;var tZ=e=>{let t="";for(let n=0,r=e.length;ni.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}return t};bo.toUtf8=tZ});var eT=m(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.toUtf8=Eo.fromUtf8=void 0;function nZ(e){return new TextEncoder().encode(e)}Eo.fromUtf8=nZ;function rZ(e){return new TextDecoder("utf-8").decode(e)}Eo.toUtf8=rZ});var rT=m(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.toUtf8=Po.fromUtf8=void 0;var tT=ZR(),nT=eT(),oZ=e=>typeof TextEncoder=="function"?(0,nT.fromUtf8)(e):(0,tT.fromUtf8)(e);Po.fromUtf8=oZ;var sZ=e=>typeof TextDecoder=="function"?(0,nT.toUtf8)(e):(0,tT.toUtf8)(e);Po.toUtf8=sZ});var oT=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.convertToBuffer=void 0;var iZ=rT(),aZ=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:iZ.fromUtf8;function cZ(e){return e instanceof Uint8Array?e:typeof e=="string"?aZ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}Du.convertToBuffer=cZ});var sT=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isEmptyData=void 0;function dZ(e){return typeof e=="string"?e.length===0:e.byteLength===0}Mu.isEmptyData=dZ});var iT=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.numToUint8=void 0;function lZ(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Fu.numToUint8=lZ});var aT=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.uint32ArrayFrom=void 0;function uZ(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.uint32ArrayFrom=Wt.numToUint8=Wt.isEmptyData=Wt.convertToBuffer=void 0;var mZ=oT();Object.defineProperty(Wt,"convertToBuffer",{enumerable:!0,get:function(){return mZ.convertToBuffer}});var pZ=sT();Object.defineProperty(Wt,"isEmptyData",{enumerable:!0,get:function(){return pZ.isEmptyData}});var fZ=iT();Object.defineProperty(Wt,"numToUint8",{enumerable:!0,get:function(){return fZ.numToUint8}});var yZ=aT();Object.defineProperty(Wt,"uint32ArrayFrom",{enumerable:!0,get:function(){return yZ.uint32ArrayFrom}})});var lT=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.AwsCrc32=void 0;var cT=(lg(),J(dg)),ug=Ta(),dT=Ba(),gZ=function(){function e(){this.crc32=new dT.Crc32}return e.prototype.update=function(t){(0,ug.isEmptyData)(t)||this.crc32.update((0,ug.convertToBuffer)(t))},e.prototype.digest=function(){return cT.__awaiter(this,void 0,void 0,function(){return cT.__generator(this,function(t){return[2,(0,ug.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new dT.Crc32},e}();ju.AwsCrc32=gZ});var Ba=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.AwsCrc32=Kn.Crc32=Kn.crc32=void 0;var hZ=(lg(),J(dg)),_Z=Ta();function CZ(e){return new uT().update(e).digest()}Kn.crc32=CZ;var uT=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var o=hZ.__values(t),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^bZ[(this.checksum^a)&255]}}catch(i){n={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();Kn.Crc32=uT;var SZ=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],bZ=(0,_Z.uint32ArrayFrom)(SZ),EZ=lT();Object.defineProperty(Kn,"AwsCrc32",{enumerable:!0,get:function(){return EZ.AwsCrc32}})});var xT=m((Lxe,wT)=>{var zu=Object.defineProperty,PZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,wZ=Object.prototype.hasOwnProperty,hn=(e,t)=>zu(e,"name",{value:t,configurable:!0}),xZ=(e,t)=>{for(var n in t)zu(e,n,{get:t[n],enumerable:!0})},kZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vZ(t))!wZ.call(e,o)&&o!==n&&zu(e,o,{get:()=>t[o],enumerable:!(r=PZ(t,o))||r.enumerable});return e},AZ=e=>kZ(zu({},"__esModule",{value:!0}),e),pT={};xZ(pT,{EventStreamCodec:()=>UZ,HeaderMarshaller:()=>hT,Int64:()=>Uu,MessageDecoderStream:()=>zZ,MessageEncoderStream:()=>GZ,SmithyMessageDecoderStream:()=>HZ,SmithyMessageEncoderStream:()=>$Z});wT.exports=AZ(pT);var OZ=Ba(),hr=Cp(),fT=class yT{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&mg(n),new yT(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&mg(t),parseInt((0,hr.toHex)(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};hn(fT,"Int64");var Uu=fT;function mg(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}hn(mg,"negate");var gT=class{constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){let n=[];for(let s of Object.keys(t)){let a=this.fromUtf8(s);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,a)=>s+a.byteLength,0)),o=0;for(let s of n)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let i=this.fromUtf8(t.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(Uu.fromNumber(t.value.valueOf()).bytes,1),c;case"uuid":if(!FZ.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,hr.fromHex)(t.value.replace(/\-/g,"")),1),y}}parse(t){let n={},r=0;for(;r{var Gu=Object.defineProperty,KZ=Object.getOwnPropertyDescriptor,VZ=Object.getOwnPropertyNames,XZ=Object.prototype.hasOwnProperty,vo=(e,t)=>Gu(e,"name",{value:t,configurable:!0}),WZ=(e,t)=>{for(var n in t)Gu(e,n,{get:t[n],enumerable:!0})},YZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of VZ(t))!XZ.call(e,o)&&o!==n&&Gu(e,o,{get:()=>t[o],enumerable:!(r=KZ(t,o))||r.enumerable});return e},JZ=e=>YZ(Gu({},"__esModule",{value:!0}),e),kT={};WZ(kT,{EventStreamMarshaller:()=>IT,eventStreamSerdeProvider:()=>QZ});RT.exports=JZ(kT);var qa=xT();function AT(e){let t=0,n=0,r=null,o=null,s=vo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);t=i,n=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),a=vo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}let c=u.length,y=0;for(;ynew IT(e),"eventStreamSerdeProvider")});var LT=m((Gxe,FT)=>{var Hu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,eee=Object.getOwnPropertyNames,tee=Object.prototype.hasOwnProperty,pg=(e,t)=>Hu(e,"name",{value:t,configurable:!0}),nee=(e,t)=>{for(var n in t)Hu(e,n,{get:t[n],enumerable:!0})},ree=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eee(t))!tee.call(e,o)&&o!==n&&Hu(e,o,{get:()=>t[o],enumerable:!(r=ZZ(t,o))||r.enumerable});return e},oee=e=>ree(Hu({},"__esModule",{value:!0}),e),BT={};nee(BT,{EventStreamMarshaller:()=>MT,eventStreamSerdeProvider:()=>aee});FT.exports=oee(BT);var see=TT(),iee=require("stream");async function*qT(e){let t=!1,n=!1,r=new Array;for(e.on("error",o=>{if(t||(t=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{t=!0});!n;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),n=t&&r.length===0}}pg(qT,"readabletoIterable");var DT=class{constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new see.EventStreamMarshaller({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){let r=typeof t[Symbol.asyncIterator]=="function"?t:qT(t);return this.universalMarshaller.deserialize(r,n)}serialize(t,n){return iee.Readable.from(this.universalMarshaller.serialize(t,n))}};pg(DT,"EventStreamMarshaller");var MT=DT,aee=pg(e=>new MT(e),"eventStreamSerdeProvider")});var HT=m(($xe,GT)=>{var $u=Object.defineProperty,cee=Object.getOwnPropertyDescriptor,dee=Object.getOwnPropertyNames,lee=Object.prototype.hasOwnProperty,Ku=(e,t)=>$u(e,"name",{value:t,configurable:!0}),uee=(e,t)=>{for(var n in t)$u(e,n,{get:t[n],enumerable:!0})},mee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dee(t))!lee.call(e,o)&&o!==n&&$u(e,o,{get:()=>t[o],enumerable:!(r=cee(t,o))||r.enumerable});return e},pee=e=>mee($u({},"__esModule",{value:!0}),e),jT={};uee(jT,{fileStreamHasher:()=>hee,readableStreamHasher:()=>Cee});GT.exports=pee(jT);var fee=require("fs"),yee=st(),gee=require("stream"),UT=class extends gee.Writable{constructor(t,n){super(n),this.hash=t}_write(t,n,r){try{this.hash.update((0,yee.toUint8Array)(t))}catch(o){return r(o)}r()}};Ku(UT,"HashCalculator");var zT=UT,hee=Ku((e,t)=>new Promise((n,r)=>{if(!_ee(t)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,fee.createReadStream)(t.path,{start:t.start,end:t.end}),s=new e,a=new zT(s);o.pipe(a),o.on("error",i=>{a.end(),r(i)}),a.on("error",r),a.on("finish",function(){s.digest().then(n).catch(r)})}),"fileStreamHasher"),_ee=Ku(e=>typeof e.path=="string","isReadStream"),Cee=Ku((e,t)=>{if(t.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let n=new e,r=new zT(n);return t.pipe(r),new Promise((o,s)=>{t.on("error",a=>{r.end(),s(a)}),r.on("error",s),r.on("finish",()=>{n.digest().then(o).catch(s)})})},"readableStreamHasher")});var Xu=m(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.signatureV4CrtContainer=void 0;Vu.signatureV4CrtContainer={CrtSignerV4:null}});var $T=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.loadCrt=void 0;var See=Xu();function bee(){if(!See.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. +For more information, please visit: `+N4);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),I4=De((e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()I4(B4(e),{logger:e.logger}),"fromInstanceMetadata"),B4=De(e=>{let t=!1,{logger:n,profile:r}=e,{timeout:o,maxRetries:s}=$f(e),a=De(async(i,u)=>{var l;if(t||((l=u.headers)==null?void 0:l[vA])==null){let g=!1,C=!1,P=await(0,Kf.loadConfig)({environmentVariableSelector:A=>{let v=A[zf];if(C=!!v&&v!=="false",v===void 0)throw new Ft.CredentialsProviderError(`${zf} not set in env, checking config file next.`);return C},configFileSelector:A=>{let v=A[PA];return g=!!v&&v!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||P){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${PA})`),C&&A.push(`process environment variable (${zf})`),new _4(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Gf(async()=>{let g;try{g=await D4(u)}catch(C){throw C.statusCode===401&&(t=!1),C}return g},i)).trim();return Gf(async()=>{let g;try{g=await M4(y,u)}catch(C){throw C.statusCode===401&&(t=!1),C}return g},i)},"getCredentials");return async()=>{let i=await BA();if(t)return n==null||n.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(s,{...i,timeout:o});{let u;try{u=(await q4({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(t=!0),n==null||n.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(s,{...i,timeout:o})}return a(s,{...i,headers:{[vA]:u},timeout:o})}}},"getInstanceImdsProvider"),q4=De(async e=>$r({...e,path:R4,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),D4=De(async e=>(await $r({...e,path:qA})).toString(),"getProfile"),M4=De(async(e,t)=>{let n=JSON.parse((await $r({...t,path:qA+e})).toString());if(!xA(n))throw new Ft.CredentialsProviderError("Invalid response received from instance metadata service.");return kA(n)},"getCredentialsFromProfile")});var FA=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.resolveCredentialSource=void 0;var F4=Uf(),MA=dl(),L4=xe(),j4=(e,t)=>{let n={EcsContainer:MA.fromContainerMetadata,Ec2InstanceMetadata:MA.fromInstanceMetadata,Environment:F4.fromEnv};if(e in n)return n[e]();throw new L4.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};ll.resolveCredentialSource=j4});var LA=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.resolveAssumeRoleCredentials=Kr.isAssumeRoleProfile=void 0;var Vf=xe(),U4=wt(),z4=FA(),G4=Xf(),H4=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&($4(e)||K4(e));Kr.isAssumeRoleProfile=H4;var $4=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",K4=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",V4=async(e,t,n,r={})=>{let o=t[e];if(!n.roleAssumer)throw new Vf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Vf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,U4.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let a=s?(0,G4.resolveProfileData)(s,t,n,{...r,[s]:!0}):(0,z4.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!n.mfaCodeProvider)throw new Vf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await n.mfaCodeProvider(u)}let l=await a;return n.roleAssumer(l,i)};Kr.resolveAssumeRoleCredentials=V4});var jA=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.getValidatedProcessCredentials=void 0;var X4=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration){"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.resolveProcessCredentials=void 0;var Wf=xe(),W4=require("child_process"),Y4=require("util"),J4=jA(),Q4=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let o=(0,Y4.promisify)(W4.exec);try{let{stdout:s}=await o(r),a;try{a=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,J4.getValidatedProcessCredentials)(e,a)}catch(s){throw new Wf.CredentialsProviderError(s.message)}}else throw new Wf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Wf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};ml.resolveProcessCredentials=Q4});var GA=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.fromProcess=void 0;var zA=wt(),Z4=UA(),eW=(e={})=>async()=>{let t=await(0,zA.parseKnownFiles)(e);return(0,Z4.resolveProcessCredentials)((0,zA.getProfileName)(e),t)};pl.fromProcess=eW});var Jf=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var tW=(ne(),J(te));tW.__exportStar(GA(),Yf)});var HA=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveProcessCredentials=Vr.isProcessProfile=void 0;var nW=Jf(),rW=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Vr.isProcessProfile=rW;var oW=async(e,t)=>(0,nW.fromProcess)({...e,profile:t})();Vr.resolveProcessCredentials=oW});var Qf=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.isSsoProfile=void 0;var sW=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");fl.isSsoProfile=sW});var $A=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.resolveClientEndpointParameters=void 0;var iW=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});yl.resolveClientEndpointParameters=iW});var KA=m((zve,aW)=>{aW.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var XA=m((gl,VA)=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.isCrtAvailable=void 0;var cW=()=>{try{return typeof require=="function"&&typeof VA<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};gl.isCrtAvailable=cW});var la=m(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.defaultUserAgent=Lt.UA_APP_ID_INI_NAME=Lt.UA_APP_ID_ENV_NAME=void 0;var dW=rn(),WA=require("os"),Zf=require("process"),lW=XA();Lt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Lt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var uW=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,WA.platform)()}`,(0,WA.release)()],["lang/js"],["md/nodejs",`${Zf.versions.node}`]],r=(0,lW.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),Zf.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Zf.env.AWS_EXECUTION_ENV}`]);let o=(0,dW.loadConfig)({environmentVariableSelector:a=>a[Lt.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Lt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await o;s=a?[...n,[`app/${a}`]]:[...n]}return s}};Lt.defaultUserAgent=uW});var ua=m(($ve,eO)=>{var hl=Object.defineProperty,mW=Object.getOwnPropertyDescriptor,pW=Object.getOwnPropertyNames,fW=Object.prototype.hasOwnProperty,JA=(e,t)=>hl(e,"name",{value:t,configurable:!0}),yW=(e,t)=>{for(var n in t)hl(e,n,{get:t[n],enumerable:!0})},gW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pW(t))!fW.call(e,o)&&o!==n&&hl(e,o,{get:()=>t[o],enumerable:!(r=mW(t,o))||r.enumerable});return e},hW=e=>gW(hl({},"__esModule",{value:!0}),e),QA={};yW(QA,{Hash:()=>SW});eO.exports=hW(QA);var ey=vr(),_W=st(),CW=require("buffer"),YA=require("crypto"),ZA=class{constructor(t,n){this.algorithmIdentifier=t,this.secret=n,this.reset()}update(t,n){this.hash.update((0,_W.toUint8Array)(ty(t,n)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,YA.createHmac)(this.algorithmIdentifier,ty(this.secret)):(0,YA.createHash)(this.algorithmIdentifier)}};JA(ZA,"Hash");var SW=ZA;function ty(e,t){return CW.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ey.fromString)(e,t):ArrayBuffer.isView(e)?(0,ey.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ey.fromArrayBuffer)(e)}JA(ty,"castSourceData")});var ma=m((Kve,rO)=>{var _l=Object.defineProperty,bW=Object.getOwnPropertyDescriptor,EW=Object.getOwnPropertyNames,PW=Object.prototype.hasOwnProperty,vW=(e,t)=>_l(e,"name",{value:t,configurable:!0}),wW=(e,t)=>{for(var n in t)_l(e,n,{get:t[n],enumerable:!0})},xW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of EW(t))!PW.call(e,o)&&o!==n&&_l(e,o,{get:()=>t[o],enumerable:!(r=bW(t,o))||r.enumerable});return e},kW=e=>xW(_l({},"__esModule",{value:!0}),e),nO={};wW(nO,{calculateBodyLength:()=>AW});rO.exports=kW(nO);var tO=require("fs"),AW=vW(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,tO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,tO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var gO=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.ruleSet=void 0;var pO="required",ln="fn",un="argv",Wr="ref",oO="isSet",dn="tree",Xr="error",pa="endpoint",ny="PartitionResult",sO={[pO]:!1,type:"String"},iO={[pO]:!0,default:!1,type:"Boolean"},aO={[Wr]:"Endpoint"},fO={[ln]:"booleanEquals",[un]:[{[Wr]:"UseFIPS"},!0]},yO={[ln]:"booleanEquals",[un]:[{[Wr]:"UseDualStack"},!0]},jt={},cO={[ln]:"booleanEquals",[un]:[!0,{[ln]:"getAttr",[un]:[{[Wr]:ny},"supportsFIPS"]}]},dO={[ln]:"booleanEquals",[un]:[!0,{[ln]:"getAttr",[un]:[{[Wr]:ny},"supportsDualStack"]}]},lO=[fO],uO=[yO],mO=[{[Wr]:"Region"}],OW={version:"1.0",parameters:{Region:sO,UseDualStack:iO,UseFIPS:iO,Endpoint:sO},rules:[{conditions:[{[ln]:oO,[un]:[aO]}],type:dn,rules:[{conditions:lO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Xr},{conditions:uO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Xr},{endpoint:{url:aO,properties:jt,headers:jt},type:pa}]},{conditions:[{[ln]:oO,[un]:mO}],type:dn,rules:[{conditions:[{[ln]:"aws.partition",[un]:mO,assign:ny}],type:dn,rules:[{conditions:[fO,yO],type:dn,rules:[{conditions:[cO,dO],type:dn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jt,headers:jt},type:pa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Xr}]},{conditions:lO,type:dn,rules:[{conditions:[cO],type:dn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:jt,headers:jt},type:pa}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Xr}]},{conditions:uO,type:dn,rules:[{conditions:[dO],type:dn,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:jt,headers:jt},type:pa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Xr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:jt,headers:jt},type:pa}]}]},{error:"Invalid Configuration: Missing Region",type:Xr}]};Cl.ruleSet=OW});var hO=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.defaultEndpointResolver=void 0;var NW=Fr(),IW=gO(),RW=(e,t={})=>(0,NW.resolveEndpoint)(IW.ruleSet,{endpointParams:e,logger:t.logger});Sl.defaultEndpointResolver=RW});var SO=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.getRuntimeConfig=void 0;var TW=b(),BW=lr(),_O=wr(),CO=st(),qW=hO(),DW=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??_O.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??_O.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??qW.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new TW.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??BW.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??CO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??CO.toUtf8});bl.getRuntimeConfig=DW});var ya=m((Yve,xO)=>{var MW=Object.create,fa=Object.defineProperty,FW=Object.getOwnPropertyDescriptor,LW=Object.getOwnPropertyNames,jW=Object.getPrototypeOf,UW=Object.prototype.hasOwnProperty,ry=(e,t)=>fa(e,"name",{value:t,configurable:!0}),zW=(e,t)=>{for(var n in t)fa(e,n,{get:t[n],enumerable:!0})},vO=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LW(t))!UW.call(e,o)&&o!==n&&fa(e,o,{get:()=>t[o],enumerable:!(r=FW(t,o))||r.enumerable});return e},GW=(e,t,n)=>(n=e!=null?MW(jW(e)):{},vO(t||!e||!e.__esModule?fa(n,"default",{value:e,enumerable:!0}):n,e)),HW=e=>vO(fa({},"__esModule",{value:!0}),e),wO={};zW(wO,{resolveDefaultsModeConfig:()=>e5});xO.exports=HW(wO);var $W=Dt(),bO=rn(),KW=xe(),VW="AWS_EXECUTION_ENV",EO="AWS_REGION",PO="AWS_DEFAULT_REGION",XW="AWS_EC2_METADATA_DISABLED",WW=["in-region","cross-region","mobile","standard","legacy"],YW="/latest/meta-data/placement/region",JW="AWS_DEFAULTS_MODE",QW="defaults_mode",ZW={environmentVariableSelector:e=>e[JW],configFileSelector:e=>e[QW],default:"legacy"},e5=ry(({region:e=(0,bO.loadConfig)($W.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,bO.loadConfig)(ZW)}={})=>(0,KW.memoize)(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return t5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n==null?void 0:n.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${WW.join(", ")}, got ${n}`)}}),"resolveDefaultsModeConfig"),t5=ry(async e=>{if(e){let t=typeof e=="function"?await e():e,n=await n5();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),n5=ry(async()=>{if(process.env[VW]&&(process.env[EO]||process.env[PO]))return process.env[EO]??process.env[PO];if(!process.env[XW])try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(()=>GW(dl())),n=await e();return(await t({...n,path:YW})).toString()}catch{}},"inferPhysicalRegion")});var OO=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getRuntimeConfig=void 0;var r5=(ne(),J(te)),o5=r5.__importDefault(KA()),s5=la(),El=Dt(),i5=ua(),kO=on(),ga=rn(),AO=xr(),a5=ma(),c5=jr(),d5=SO(),l5=b(),u5=ya(),m5=b(),p5=e=>{(0,m5.emitWarningIfUnsupportedVersion)(process.version);let t=(0,u5.resolveDefaultsModeConfig)(e),n=()=>t().then(l5.loadConfigsForDefaultMode),r=(0,d5.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??a5.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,s5.defaultUserAgent)({serviceId:r.serviceId,clientVersion:o5.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,ga.loadConfig)(kO.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,ga.loadConfig)(El.NODE_REGION_CONFIG_OPTIONS,El.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new AO.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,ga.loadConfig)({...kO.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||c5.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??i5.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??AO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,ga.loadConfig)(El.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,ga.loadConfig)(El.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Pl.getRuntimeConfig=p5});var NO=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.resolveAwsRegionExtensionConfiguration=Yr.getAwsRegionExtensionConfiguration=void 0;var f5=e=>{let t=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let n=e.region;return typeof n=="string"?n:n()};return{setRegion(n){t=n},region(){return t}}};Yr.getAwsRegionExtensionConfiguration=f5;var y5=e=>({region:e.region()});Yr.resolveAwsRegionExtensionConfiguration=y5});var IO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var oy=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isFipsRegion=void 0;var g5=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));vl.isFipsRegion=g5});var RO=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.getRealRegion=void 0;var h5=oy(),_5=e=>(0,h5.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;wl.getRealRegion=_5});var BO=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.resolveRegionConfig=void 0;var TO=RO(),C5=oy(),S5=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,TO.getRealRegion)(t);let r=await t();return(0,TO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return(0,C5.isFipsRegion)(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}}};xl.resolveRegionConfig=S5});var DO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var qO=(ne(),J(te));qO.__exportStar(IO(),kl);qO.__exportStar(BO(),kl)});var Ol=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var MO=(ne(),J(te));MO.__exportStar(NO(),Al);MO.__exportStar(DO(),Al)});var UO=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.resolveRuntimeExtensions=void 0;var FO=Ol(),LO=Ne(),jO=b(),sy=e=>e,b5=(e,t)=>{let n={...sy((0,FO.getAwsRegionExtensionConfiguration)(e)),...sy((0,jO.getDefaultExtensionConfiguration)(e)),...sy((0,LO.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,FO.resolveAwsRegionExtensionConfiguration)(n),...(0,jO.resolveDefaultRuntimeConfig)(n),...(0,LO.resolveHttpHandlerRuntimeConfig)(n)}};Nl.resolveRuntimeExtensions=b5});var ha=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SSOClient=Jr.__Client=void 0;var zO=Ii(),E5=Ri(),P5=Ti(),GO=Xi(),v5=Dt(),w5=Wi(),x5=x(),HO=on(),$O=b();Object.defineProperty(Jr,"__Client",{enumerable:!0,get:function(){return $O.Client}});var k5=$A(),A5=OO(),O5=UO(),iy=class extends $O.Client{constructor(...[t]){let n=(0,A5.getRuntimeConfig)(t||{}),r=(0,k5.resolveClientEndpointParameters)(n),o=(0,v5.resolveRegionConfig)(r),s=(0,x5.resolveEndpointConfig)(o),a=(0,HO.resolveRetryConfig)(s),i=(0,zO.resolveHostHeaderConfig)(a),u=(0,GO.resolveUserAgentConfig)(i),l=(0,O5.resolveRuntimeExtensions)(u,(t==null?void 0:t.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,HO.getRetryPlugin)(this.config)),this.middlewareStack.use((0,w5.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,zO.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,E5.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,P5.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,GO.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Jr.SSOClient=iy});var Il=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOServiceException=Qr.__ServiceException=void 0;var KO=b();Object.defineProperty(Qr,"__ServiceException",{enumerable:!0,get:function(){return KO.ServiceException}});var ay=class e extends KO.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};Qr.SSOServiceException=ay});var pr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var Zr=b(),Rl=Il(),cy=class e extends Rl.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=cy;var dy=class e extends Rl.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=dy;var ly=class e extends Rl.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=ly;var uy=class e extends Rl.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=uy;var N5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=N5;var I5=e=>({...e,...e.secretAccessKey&&{secretAccessKey:Zr.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:Zr.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=I5;var R5=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=R5;var T5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=T5;var B5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=B5;var q5=e=>({...e,...e.accessToken&&{accessToken:Zr.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=q5});var _a=m(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.de_LogoutCommand=Ge.de_ListAccountsCommand=Ge.de_ListAccountRolesCommand=Ge.de_GetRoleCredentialsCommand=Ge.se_LogoutCommand=Ge.se_ListAccountsCommand=Ge.se_ListAccountRolesCommand=Ge.se_GetRoleCredentialsCommand=void 0;var Tl=Ne(),Q=b(),Bl=pr(),D5=Il(),M5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,Q.map)({role_name:[,(0,Q.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_GetRoleCredentialsCommand=M5;var F5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_ListAccountRolesCommand=F5;var L5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};Ge.se_ListAccountsCommand=L5;var j5=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,Q.map)({},Ll,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new Tl.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})};Ge.se_LogoutCommand=j5;var U5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return z5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{roleCredentials:Q._json});return Object.assign(n,o),n};Ge.de_GetRoleCredentialsCommand=U5;var z5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},G5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return H5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{nextToken:Q.expectString,roleList:Q._json});return Object.assign(n,o),n};Ge.de_ListAccountRolesCommand=G5;var H5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},$5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K5(e,t);let n=(0,Q.map)({$metadata:Gn(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await jl(e.body,t)),"body"),o=(0,Q.take)(r,{accountList:Q._json,nextToken:Q.expectString});return Object.assign(n,o),n};Ge.de_ListAccountsCommand=$5;var K5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await my(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},V5=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return X5(e,t);let n=(0,Q.map)({$metadata:Gn(e)});return await(0,Q.collectBody)(e.body,t),n};Ge.de_LogoutCommand=V5;var X5=async(e,t)=>{let n={...e,body:await Ul(e.body,t)},r=zl(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Dl(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ml(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fl(n,t);default:let o=n.body;return ql({output:e,parsedBody:o,errorCode:r})}},ql=(0,Q.withBaseException)(D5.SSOServiceException),Dl=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.InvalidRequestException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},my=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.ResourceNotFoundException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Ml=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.TooManyRequestsException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Fl=async(e,t)=>{let n=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(n,o);let s=new Bl.UnauthorizedException({$metadata:Gn(e),...n});return(0,Q.decorateServiceException)(s,e.body)},Gn=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),W5=(e,t)=>(0,Q.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Ll=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),jl=(e,t)=>W5(e,t).then(n=>n.length?JSON.parse(n):{}),Ul=async(e,t)=>{let n=await jl(e,t);return n.message=n.message??n.Message,n},zl=(e,t)=>{let n=(s,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},o=n(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(t.code!==void 0)return r(t.code);if(t.__type!==void 0)return r(t.__type)}});var fy=m(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.GetRoleCredentialsCommand=eo.$Command=void 0;var Y5=x(),J5=k(),WO=b();Object.defineProperty(eo,"$Command",{enumerable:!0,get:function(){return WO.Command}});var Q5=w(),VO=pr(),XO=_a(),py=class e extends WO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J5.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Y5.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:VO.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:VO.GetRoleCredentialsResponseFilterSensitiveLog,[Q5.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XO.se_GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,XO.de_GetRoleCredentialsCommand)(t,n)}};eo.GetRoleCredentialsCommand=py});var Gl=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.ListAccountRolesCommand=to.$Command=void 0;var Z5=x(),e9=k(),JO=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return JO.Command}});var t9=w(),n9=pr(),YO=_a(),yy=class e extends JO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,e9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Z5.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:n9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[t9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YO.se_ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,YO.de_ListAccountRolesCommand)(t,n)}};to.ListAccountRolesCommand=yy});var Hl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountsCommand=no.$Command=void 0;var r9=x(),o9=k(),ZO=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return ZO.Command}});var s9=w(),i9=pr(),QO=_a(),gy=class e extends ZO.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,r9.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:i9.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[s9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QO.se_ListAccountsCommand)(t,n)}deserialize(t,n){return(0,QO.de_ListAccountsCommand)(t,n)}};no.ListAccountsCommand=gy});var _y=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.LogoutCommand=ro.$Command=void 0;var a9=x(),c9=k(),tN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return tN.Command}});var d9=w(),l9=pr(),eN=_a(),hy=class e extends tN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,a9.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:l9.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[d9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,eN.se_LogoutCommand)(t,n)}deserialize(t,n){return(0,eN.de_LogoutCommand)(t,n)}};ro.LogoutCommand=hy});var nN=m(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.SSO=void 0;var u9=b(),m9=fy(),p9=Gl(),f9=Hl(),y9=_y(),g9=ha(),h9={GetRoleCredentialsCommand:m9.GetRoleCredentialsCommand,ListAccountRolesCommand:p9.ListAccountRolesCommand,ListAccountsCommand:f9.ListAccountsCommand,LogoutCommand:y9.LogoutCommand},$l=class extends g9.SSOClient{};Kl.SSO=$l;(0,u9.createAggregatedClient)(h9,$l)});var rN=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var Vl=(ne(),J(te));Vl.__exportStar(fy(),oo);Vl.__exportStar(Gl(),oo);Vl.__exportStar(Hl(),oo);Vl.__exportStar(_y(),oo)});var sN=m(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0})});var iN=m(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.paginateListAccountRoles=void 0;var _9=Gl(),C9=ha(),S9=async(e,t,...n)=>await e.send(new _9.ListAccountRolesCommand(t),...n);async function*b9(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof C9.SSOClient)s=await S9(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Xl.paginateListAccountRoles=b9});var aN=m(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.paginateListAccounts=void 0;var E9=Hl(),P9=ha(),v9=async(e,t,...n)=>await e.send(new E9.ListAccountsCommand(t),...n);async function*w9(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof P9.SSOClient)s=await v9(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Wl.paginateListAccounts=w9});var cN=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Cy=(ne(),J(te));Cy.__exportStar(sN(),Ca);Cy.__exportStar(iN(),Ca);Cy.__exportStar(aN(),Ca)});var dN=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var x9=(ne(),J(te));x9.__exportStar(pr(),Sy)});var lN=m(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.SSOServiceException=void 0;var Sa=(ne(),J(te));Sa.__exportStar(ha(),mn);Sa.__exportStar(nN(),mn);Sa.__exportStar(rN(),mn);Sa.__exportStar(cN(),mn);Sa.__exportStar(dN(),mn);var k9=Il();Object.defineProperty(mn,"SSOServiceException",{enumerable:!0,get:function(){return k9.SSOServiceException}})});var Ql=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var uN=Ii(),A9=Ri(),O9=Ti(),mN=Xi(),N9=Dt(),I9=Wi(),R9=x(),pN=on(),T9=b(),B9=e=>{var t,n;return{...e,useDualstackEndpoint:(t=e.useDualstackEndpoint)!==null&&t!==void 0?t:!1,useFipsEndpoint:(n=e.useFipsEndpoint)!==null&&n!==void 0?n:!1,defaultSigningName:"awsssooidc"}},q9={version:"3.387.0"},D9=la(),Yl=Dt(),M9=ua(),fN=on(),ba=rn(),yN=xr(),F9=ma(),L9=jr(),j9=b(),U9=lr(),gN=wr(),hN=st(),z9=Fr(),wN="required",pn="fn",fn="argv",so="ref",by="PartitionResult",Ut="tree",Ea="error",Pa="endpoint",_N={[wN]:!1,type:"String"},CN={[wN]:!0,default:!1,type:"Boolean"},xN={[so]:"Endpoint"},kN={[pn]:"booleanEquals",[fn]:[{[so]:"UseFIPS"},!0]},AN={[pn]:"booleanEquals",[fn]:[{[so]:"UseDualStack"},!0]},zt={},SN={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[so]:by},"supportsFIPS"]}]},bN={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[so]:by},"supportsDualStack"]}]},EN=[xN],PN=[kN],vN=[AN],G9={version:"1.0",parameters:{Region:_N,UseDualStack:CN,UseFIPS:CN,Endpoint:_N},rules:[{conditions:[{[pn]:"aws.partition",[fn]:[{[so]:"Region"}],assign:by}],type:Ut,rules:[{conditions:[{[pn]:"isSet",[fn]:EN},{[pn]:"parseURL",[fn]:EN,assign:"url"}],type:Ut,rules:[{conditions:PN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ea},{type:Ut,rules:[{conditions:vN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ea},{endpoint:{url:xN,properties:zt,headers:zt},type:Pa}]}]},{conditions:[kN,AN],type:Ut,rules:[{conditions:[SN,bN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:Pa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ea}]},{conditions:PN,type:Ut,rules:[{conditions:[SN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:Pa}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Ea}]},{conditions:vN,type:Ut,rules:[{conditions:[bN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:Pa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Ea}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:Pa}]}]},H9=G9,$9=(e,t={})=>(0,z9.resolveEndpoint)(H9,{endpointParams:e,logger:t.logger}),K9=e=>{var t,n,r,o,s,a,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:gN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:gN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:$9,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new j9.NoOpLogger,serviceId:(a=e==null?void 0:e.serviceId)!==null&&a!==void 0?a:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:U9.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:hN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:hN.toUtf8}},V9=b(),X9=ya(),W9=b(),Y9=e=>{var t,n,r,o,s,a,i,u,l,c;(0,W9.emitWarningIfUnsupportedVersion)(process.version);let y=(0,X9.resolveDefaultsModeConfig)(e),g=()=>y().then(V9.loadConfigsForDefaultMode),C=K9(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(t=e==null?void 0:e.bodyLengthChecker)!==null&&t!==void 0?t:F9.calculateBodyLength,defaultUserAgentProvider:(n=e==null?void 0:e.defaultUserAgentProvider)!==null&&n!==void 0?n:(0,D9.defaultUserAgent)({serviceId:C.serviceId,clientVersion:q9.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,ba.loadConfig)(fN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,ba.loadConfig)(Yl.NODE_REGION_CONFIG_OPTIONS,Yl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new yN.NodeHttpHandler(g),retryMode:(a=e==null?void 0:e.retryMode)!==null&&a!==void 0?a:(0,ba.loadConfig)({...fN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||L9.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:M9.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:yN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,ba.loadConfig)(Yl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(c=e==null?void 0:e.useFipsEndpoint)!==null&&c!==void 0?c:(0,ba.loadConfig)(Yl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},ON=class extends T9.Client{constructor(...[e]){let t=Y9(e||{}),n=B9(t),r=(0,N9.resolveRegionConfig)(n),o=(0,R9.resolveEndpointConfig)(r),s=(0,pN.resolveRetryConfig)(o),a=(0,uN.resolveHostHeaderConfig)(s),i=(0,mN.resolveUserAgentConfig)(a);super(i),this.config=i,this.middlewareStack.use((0,pN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,I9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,uN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,A9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,O9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,mN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=ON;var J9=b(),Q9=x(),Z9=k(),eY=b(),Ey=Ne(),R=b(),tY=b(),ut=class NN extends tY.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,NN.prototype)}},IN=class RN extends ut{constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,RN.prototype),this.error=t.error,this.error_description=t.error_description}};he.AccessDeniedException=IN;var TN=class BN extends ut{constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,BN.prototype),this.error=t.error,this.error_description=t.error_description}};he.AuthorizationPendingException=TN;var qN=class DN extends ut{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,DN.prototype),this.error=t.error,this.error_description=t.error_description}};he.ExpiredTokenException=qN;var MN=class FN extends ut{constructor(t){super({name:"InternalServerException",$fault:"server",...t}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,FN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InternalServerException=MN;var LN=class jN extends ut{constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,jN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidClientException=LN;var nY=class UN extends ut{constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,UN.prototype),this.error=t.error,this.error_description=t.error_description}},zN=class GN extends ut{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,GN.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidRequestException=zN;var HN=class $N extends ut{constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,$N.prototype),this.error=t.error,this.error_description=t.error_description}};he.InvalidScopeException=HN;var KN=class VN extends ut{constructor(t){super({name:"SlowDownException",$fault:"client",...t}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,VN.prototype),this.error=t.error,this.error_description=t.error_description}};he.SlowDownException=KN;var XN=class WN extends ut{constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,WN.prototype),this.error=t.error,this.error_description=t.error_description}};he.UnauthorizedClientException=XN;var YN=class JN extends ut{constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,JN.prototype),this.error=t.error,this.error_description=t.error_description}};he.UnsupportedGrantTypeException=YN;var rY=class QN extends ut{constructor(t){super({name:"InvalidClientMetadataException",$fault:"client",...t}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=t.error,this.error_description=t.error_description}},oY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},sY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},iY=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new Ey.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,body:u})},aY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return cY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(n,o),n},cY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await pY(n,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await fY(n,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await yY(n,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await ZN(n,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await hY(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await eI(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await tI(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await nI(n,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await _Y(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},dY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return lY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(n,o),n},lY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await gY(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await eI(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},uY=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return mY(e,t);let n=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await Jl(e.body,t)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(n,o),n},mY=async(e,t)=>{let n={...e,body:await xy(e.body,t)},r=ky(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await vy(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await ZN(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await wy(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await tI(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await nI(n,t);default:let o=n.body;return Py({output:e,parsedBody:o,errorCode:r})}},Py=(0,R.withBaseException)(ut),pY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new IN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},fY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new TN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},yY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new qN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},vy=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new MN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},ZN=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new LN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},gY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new rY({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},hY=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new nY({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},wy=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new zN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},eI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new HN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},tI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new KN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},nI=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new XN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},_Y=async(e,t)=>{let n=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(n,o);let s=new YN({$metadata:rt(e),...n});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var t,n;return{httpStatusCode:e.statusCode,requestId:(n=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&n!==void 0?n:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},CY=(e,t)=>(0,R.collectBody)(e,t).then(n=>t.utf8Encoder(n)),Jl=(e,t)=>CY(e,t).then(n=>n.length?JSON.parse(n):{}),xy=async(e,t)=>{var n;let r=await Jl(e,t);return r.message=(n=r.message)!==null&&n!==void 0?n:r.Message,r},ky=(e,t)=>{let n=(s,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},o=n(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(t.code!==void 0)return r(t.code);if(t.__type!==void 0)return r(t.__type)},rI=class oI extends eY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z9.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Q9.getEndpointPlugin)(n,oI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return oY(t,n)}deserialize(t,n){return aY(t,n)}};he.CreateTokenCommand=rI;var SY=x(),bY=k(),EY=b(),PY=class sI extends EY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,bY.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,SY.getEndpointPlugin)(n,sI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return sY(t,n)}deserialize(t,n){return dY(t,n)}},vY=x(),wY=k(),xY=b(),kY=class iI extends xY.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wY.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vY.getEndpointPlugin)(n,iI.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return iY(t,n)}deserialize(t,n){return uY(t,n)}},AY={CreateTokenCommand:rI,RegisterClientCommand:PY,StartDeviceAuthorizationCommand:kY},OY=class extends ON{};(0,J9.createAggregatedClient)(AY,OY)});var Zl=m(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.REFRESH_MESSAGE=io.EXPIRE_WINDOW_MS=void 0;io.EXPIRE_WINDOW_MS=5*60*1e3;io.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var aI=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.getSsoOidcClient=void 0;var NY=Ql(),Ay={},IY=e=>{if(Ay[e])return Ay[e];let t=new NY.SSOOIDCClient({region:e});return Ay[e]=t,t};eu.getSsoOidcClient=IY});var cI=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.getNewSsoOidcToken=void 0;var RY=Ql(),TY=aI(),BY=(e,t)=>(0,TY.getSsoOidcClient)(t).send(new RY.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));tu.getNewSsoOidcToken=BY});var dI=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.validateTokenExpiry=void 0;var qY=xe(),DY=Zl(),MY=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.validateTokenKey=void 0;var FY=xe(),LY=Zl(),jY=(e,t,n=!1)=>{if(typeof t>"u")throw new FY.TokenProviderError(`Value not present for '${e}' in SSO Token${n?". Cannot refresh":""}. ${LY.REFRESH_MESSAGE}`,!1)};ru.validateTokenKey=jY});var uI=m(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.writeSSOTokenToFile=void 0;var UY=wt(),zY=require("fs"),{writeFile:GY}=zY.promises,HY=(e,t)=>{let n=(0,UY.getSSOTokenFilepath)(e),r=JSON.stringify(t,null,2);return GY(n,r)};ou.writeSSOTokenToFile=HY});var Oy=m(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.fromSso=void 0;var va=xe(),su=wt(),mI=Zl(),$Y=cI(),pI=dI(),fr=lI(),KY=uI(),fI=new Date(0),VY=(e={})=>async()=>{let t=await(0,su.parseKnownFiles)(e),n=(0,su.getProfileName)(e),r=t[n];if(r){if(!r.sso_session)throw new va.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new va.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=r.sso_session,a=(await(0,su.loadSsoSessionData)(e))[o];if(!a)throw new va.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new va.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=a.sso_start_url,u=a.sso_region,l;try{l=await(0,su.getSSOTokenFromFile)(o)}catch{throw new va.TokenProviderError(`The SSO session token associated with profile=${n} was not found or is invalid. ${mI.REFRESH_MESSAGE}`,!1)}(0,fr.validateTokenKey)("accessToken",l.accessToken),(0,fr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:c,expiresAt:y}=l,g={token:c,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>mI.EXPIRE_WINDOW_MS)return g;if(Date.now()-fI.getTime()<30*1e3)return(0,pI.validateTokenExpiry)(g),g;(0,fr.validateTokenKey)("clientId",l.clientId,!0),(0,fr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,fr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{fI.setTime(Date.now());let C=await(0,$Y.getNewSsoOidcToken)(l,u);(0,fr.validateTokenKey)("accessToken",C.accessToken),(0,fr.validateTokenKey)("expiresIn",C.expiresIn);let P=new Date(Date.now()+C.expiresIn*1e3);try{await(0,KY.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:P.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:P}}catch{return(0,pI.validateTokenExpiry)(g),g}};iu.fromSso=VY});var yI=m(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.fromStatic=void 0;var XY=xe(),WY=({token:e})=>async()=>{if(!e||!e.token)throw new XY.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};au.fromStatic=WY});var gI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.nodeProvider=void 0;var Ny=xe(),YY=Oy(),JY=(e={})=>(0,Ny.memoize)((0,Ny.chain)((0,YY.fromSso)(e),async()=>{throw new Ny.TokenProviderError("Could not load token from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);cu.nodeProvider=JY});var hI=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var du=(ne(),J(te));du.__exportStar(Ql(),ao);du.__exportStar(Oy(),ao);du.__exportStar(yI(),ao);du.__exportStar(gI(),ao)});var CI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.resolveSSOCredentials=void 0;var _I=lN(),QY=hI(),wa=xe(),ZY=wt(),xa=!1,e7=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:a})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let v=await(0,QY.fromSso)({profile:a})();i={accessToken:v.token,expiresAt:new Date(v.expiration).toISOString()}}catch(v){throw new wa.CredentialsProviderError(v.message,xa)}else try{i=await(0,ZY.getSSOTokenFromFile)(e)}catch{throw new wa.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,xa)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new wa.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,xa);let{accessToken:l}=i,c=s||new _I.SSOClient({region:r}),y;try{y=await c.send(new _I.GetRoleCredentialsCommand({accountId:n,roleName:o,accessToken:l}))}catch(v){throw wa.CredentialsProviderError.from(v,xa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:A}={}}=y;if(!g||!C||!P||!A)throw new wa.CredentialsProviderError("SSO returns an invalid temporary credential.",xa);return{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:new Date(A)}};lu.resolveSSOCredentials=e7});var Iy=m(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateSsoProfile=void 0;var t7=xe(),n7=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:o}=e;if(!t||!n||!r||!o)throw new t7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};uu.validateSsoProfile=n7});var bI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.fromSSO=void 0;var ka=xe(),Ry=wt(),r7=Qf(),SI=CI(),o7=Iy(),s7=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:a}=e,i=(0,Ry.getProfileName)(e);if(!t&&!n&&!r&&!o&&!a){let l=(await(0,Ry.parseKnownFiles)(e))[i];if(!l)throw new ka.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,r7.isSsoProfile)(l))throw new ka.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let v=(await(0,Ry.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==v.sso_region)throw new ka.CredentialsProviderError("Conflicting SSO region"+G,!1);if(t&&t!==v.sso_start_url)throw new ka.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=v.sso_region,l.sso_start_url=v.sso_start_url}let{sso_start_url:c,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:P}=(0,o7.validateSsoProfile)(l);return(0,SI.resolveSSOCredentials)({ssoStartUrl:c,ssoSession:P,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!t||!n||!r||!o)throw new ka.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,SI.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:a,ssoAccountId:n,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};mu.fromSSO=s7});var PI=m(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0})});var fu=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var pu=(ne(),J(te));pu.__exportStar(bI(),co);pu.__exportStar(Qf(),co);pu.__exportStar(PI(),co);pu.__exportStar(Iy(),co)});var wI=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.resolveSsoCredentials=lo.isSsoProfile=void 0;var vI=fu(),i7=fu();Object.defineProperty(lo,"isSsoProfile",{enumerable:!0,get:function(){return i7.isSsoProfile}});var a7=e=>{let{sso_start_url:t,sso_account_id:n,sso_session:r,sso_region:o,sso_role_name:s}=(0,vI.validateSsoProfile)(e);return(0,vI.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};lo.resolveSsoCredentials=a7});var xI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveStaticCredentials=uo.isStaticCredsProfile=void 0;var c7=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;uo.isStaticCredsProfile=c7;var d7=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});uo.resolveStaticCredentials=d7});var Ty=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromWebToken=void 0;var l7=xe(),u7=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:o,policyArns:s,policy:a,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new l7.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:a,DurationSeconds:i})};yu.fromWebToken=u7});var kI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.fromTokenFile=void 0;var m7=xe(),p7=require("fs"),f7=Ty(),y7="AWS_WEB_IDENTITY_TOKEN_FILE",g7="AWS_ROLE_ARN",h7="AWS_ROLE_SESSION_NAME",_7=(e={})=>async()=>{var t,n,r;let o=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[y7],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[g7],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[h7];if(!o||!s)throw new m7.CredentialsProviderError("Web identity configuration not specified");return(0,f7.fromWebToken)({...e,webIdentityToken:(0,p7.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:a})()};gu.fromTokenFile=_7});var By=m(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var AI=(ne(),J(te));AI.__exportStar(kI(),hu);AI.__exportStar(Ty(),hu)});var OI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveWebIdentityCredentials=mo.isWebIdentityProfile=void 0;var C7=By(),S7=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;mo.isWebIdentityProfile=S7;var b7=async(e,t)=>(0,C7.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();mo.resolveWebIdentityCredentials=b7});var Xf=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.resolveProfileData=void 0;var E7=xe(),NI=LA(),II=HA(),RI=wI(),_u=xI(),TI=OI(),P7=async(e,t,n,r={})=>{let o=t[e];if(Object.keys(r).length>0&&(0,_u.isStaticCredsProfile)(o))return(0,_u.resolveStaticCredentials)(o);if((0,NI.isAssumeRoleProfile)(o))return(0,NI.resolveAssumeRoleCredentials)(e,t,n,r);if((0,_u.isStaticCredsProfile)(o))return(0,_u.resolveStaticCredentials)(o);if((0,TI.isWebIdentityProfile)(o))return(0,TI.resolveWebIdentityCredentials)(o,n);if((0,II.isProcessProfile)(o))return(0,II.resolveProcessCredentials)(n,e);if((0,RI.isSsoProfile)(o))return(0,RI.resolveSsoCredentials)(o);throw new E7.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Cu.resolveProfileData=P7});var qI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromIni=void 0;var BI=wt(),v7=Xf(),w7=(e={})=>async()=>{let t=await(0,BI.parseKnownFiles)(e);return(0,v7.resolveProfileData)((0,BI.getProfileName)(e),t,e)};Su.fromIni=w7});var DI=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var x7=(ne(),J(te));x7.__exportStar(qI(),qy)});var MI=m(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.remoteProvider=yr.ENV_IMDS_DISABLED=void 0;var bu=dl(),k7=xe();yr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var A7=e=>process.env[bu.ENV_CMDS_RELATIVE_URI]||process.env[bu.ENV_CMDS_FULL_URI]?(0,bu.fromContainerMetadata)(e):process.env[yr.ENV_IMDS_DISABLED]?async()=>{throw new k7.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,bu.fromInstanceMetadata)(e);yr.remoteProvider=A7});var FI=m(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.defaultProvider=void 0;var O7=Uf(),N7=DI(),I7=Jf(),R7=fu(),T7=By(),Dy=xe(),B7=wt(),q7=MI(),D7=(e={})=>(0,Dy.memoize)((0,Dy.chain)(...e.profile||process.env[B7.ENV_PROFILE]?[]:[(0,O7.fromEnv)()],(0,R7.fromSSO)(e),(0,N7.fromIni)(e),(0,I7.fromProcess)(e),(0,T7.fromTokenFile)(e),(0,q7.remoteProvider)(e),async()=>{throw new Dy.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);Eu.defaultProvider=D7});var Fy=m(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var M7=(ne(),J(te));M7.__exportStar(FI(),My)});var iR=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.ruleSet=void 0;var YI="required",se="type",fe="fn",ye="argv",Hn="ref",LI=!1,F7=!0,gr="booleanEquals",Gt="tree",Xe="stringEquals",JI="sigv4",QI="sts",ZI="us-east-1",Ee="endpoint",jI="https://sts.{Region}.{PartitionResult#dnsSuffix}",po="error",jy="getAttr",UI={[YI]:!1,[se]:"String"},Ly={[YI]:!0,default:!1,[se]:"Boolean"},eR={[Hn]:"Endpoint"},zI={[fe]:"isSet",[ye]:[{[Hn]:"Region"}]},We={[Hn]:"Region"},GI={[fe]:"aws.partition",[ye]:[We],assign:"PartitionResult"},tR={[Hn]:"UseFIPS"},nR={[Hn]:"UseDualStack"},tt={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:JI,signingName:QI,signingRegion:ZI}]},headers:{}},mt={},HI={conditions:[{[fe]:Xe,[ye]:[We,"aws-global"]}],[Ee]:tt,[se]:Ee},rR={[fe]:gr,[ye]:[tR,!0]},oR={[fe]:gr,[ye]:[nR,!0]},$I={[fe]:gr,[ye]:[!0,{[fe]:jy,[ye]:[{[Hn]:"PartitionResult"},"supportsFIPS"]}]},sR={[Hn]:"PartitionResult"},KI={[fe]:gr,[ye]:[!0,{[fe]:jy,[ye]:[sR,"supportsDualStack"]}]},VI=[{[fe]:"isSet",[ye]:[eR]}],XI=[rR],WI=[oR],L7={version:"1.0",parameters:{Region:UI,UseDualStack:Ly,UseFIPS:Ly,Endpoint:UI,UseGlobalEndpoint:Ly},rules:[{conditions:[{[fe]:gr,[ye]:[{[Hn]:"UseGlobalEndpoint"},F7]},{[fe]:"not",[ye]:VI},zI,GI,{[fe]:gr,[ye]:[tR,LI]},{[fe]:gr,[ye]:[nR,LI]}],[se]:Gt,rules:[{conditions:[{[fe]:Xe,[ye]:[We,"ap-northeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-south-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-2"]}],endpoint:tt,[se]:Ee},HI,{conditions:[{[fe]:Xe,[ye]:[We,"ca-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-north-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-3"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"sa-east-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,ZI]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-east-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-2"]}],endpoint:tt,[se]:Ee},{endpoint:{url:jI,properties:{authSchemes:[{name:JI,signingName:QI,signingRegion:"{Region}"}]},headers:mt},[se]:Ee}]},{conditions:VI,[se]:Gt,rules:[{conditions:XI,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[se]:po},{conditions:WI,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[se]:po},{endpoint:{url:eR,properties:mt,headers:mt},[se]:Ee}]},{conditions:[zI],[se]:Gt,rules:[{conditions:[GI],[se]:Gt,rules:[{conditions:[rR,oR],[se]:Gt,rules:[{conditions:[$I,KI],[se]:Gt,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[se]:po}]},{conditions:XI,[se]:Gt,rules:[{conditions:[$I],[se]:Gt,rules:[{conditions:[{[fe]:Xe,[ye]:["aws-us-gov",{[fe]:jy,[ye]:[sR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:mt,headers:mt},[se]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[se]:po}]},{conditions:WI,[se]:Gt,rules:[{conditions:[KI],[se]:Gt,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[se]:po}]},HI,{endpoint:{url:jI,properties:mt,headers:mt},[se]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[se]:po}]};Pu.ruleSet=L7});var aR=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.defaultEndpointResolver=void 0;var j7=Fr(),U7=iR(),z7=(e,t={})=>(0,j7.resolveEndpoint)(U7.ruleSet,{endpointParams:e,logger:t.logger});vu.defaultEndpointResolver=z7});var lR=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.getRuntimeConfig=void 0;var G7=b(),H7=lr(),cR=wr(),dR=st(),$7=aR(),K7=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??cR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??cR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??$7.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new G7.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??H7.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??dR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??dR.toUtf8});wu.getRuntimeConfig=K7});var pR=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.getRuntimeConfig=void 0;var V7=(ne(),J(te)),X7=V7.__importDefault(Tk()),W7=Lf(),Y7=Fy(),J7=la(),xu=Dt(),Q7=ua(),uR=on(),Aa=rn(),mR=xr(),Z7=ma(),eJ=jr(),tJ=lR(),nJ=b(),rJ=ya(),oJ=b(),sJ=e=>{(0,oJ.emitWarningIfUnsupportedVersion)(process.version);let t=(0,rJ.resolveDefaultsModeConfig)(e),n=()=>t().then(nJ.loadConfigsForDefaultMode),r=(0,tJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Z7.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,W7.decorateDefaultCredentialProvider)(Y7.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,J7.defaultUserAgent)({serviceId:r.serviceId,clientVersion:X7.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Aa.loadConfig)(uR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Aa.loadConfig)(xu.NODE_REGION_CONFIG_OPTIONS,xu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new mR.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,Aa.loadConfig)({...uR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||eJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??Q7.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??mR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Aa.loadConfig)(xu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Aa.loadConfig)(xu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};ku.getRuntimeConfig=sJ});var hR=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.resolveRuntimeExtensions=void 0;var fR=Ol(),yR=Ne(),gR=b(),Uy=e=>e,iJ=(e,t)=>{let n={...Uy((0,fR.getAwsRegionExtensionConfiguration)(e)),...Uy((0,gR.getDefaultExtensionConfiguration)(e)),...Uy((0,yR.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,fR.resolveAwsRegionExtensionConfiguration)(n),...(0,gR.resolveDefaultRuntimeConfig)(n),...(0,yR.resolveHttpHandlerRuntimeConfig)(n)}};Au.resolveRuntimeExtensions=iJ});var Ou=m(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.STSClient=fo.__Client=void 0;var _R=Ii(),aJ=Ri(),cJ=Ti(),dJ=Ik(),CR=Xi(),lJ=Dt(),uJ=Wi(),mJ=x(),SR=on(),bR=b();Object.defineProperty(fo,"__Client",{enumerable:!0,get:function(){return bR.Client}});var pJ=Rk(),fJ=pR(),yJ=hR(),zy=class e extends bR.Client{constructor(...[t]){let n=(0,fJ.getRuntimeConfig)(t||{}),r=(0,pJ.resolveClientEndpointParameters)(n),o=(0,lJ.resolveRegionConfig)(r),s=(0,mJ.resolveEndpointConfig)(o),a=(0,SR.resolveRetryConfig)(s),i=(0,_R.resolveHostHeaderConfig)(a),u=(0,dJ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,CR.resolveUserAgentConfig)(u),c=(0,yJ.resolveRuntimeExtensions)(l,(t==null?void 0:t.extensions)||[]);super(c),this.config=c,this.middlewareStack.use((0,SR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,uJ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,_R.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,aJ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,cJ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,CR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};fo.STSClient=zy});var Hy=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.AssumeRoleWithSAMLCommand=yo.$Command=void 0;var gJ=x(),hJ=k(),vR=b();Object.defineProperty(yo,"$Command",{enumerable:!0,get:function(){return vR.Command}});var _J=w(),ER=Bn(),PR=cn(),Gy=class e extends vR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,hJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,gJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:ER.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:ER.AssumeRoleWithSAMLResponseFilterSensitiveLog,[_J.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,PR.se_AssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,PR.de_AssumeRoleWithSAMLCommand)(t,n)}};yo.AssumeRoleWithSAMLCommand=Gy});var Ky=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DecodeAuthorizationMessageCommand=go.$Command=void 0;var CJ=nn(),SJ=x(),bJ=k(),xR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return xR.Command}});var EJ=w(),wR=cn(),$y=class e extends xR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,bJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,SJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,CJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[EJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wR.se_DecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,wR.de_DecodeAuthorizationMessageCommand)(t,n)}};go.DecodeAuthorizationMessageCommand=$y});var Xy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.GetAccessKeyInfoCommand=ho.$Command=void 0;var PJ=nn(),vJ=x(),wJ=k(),AR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return AR.Command}});var xJ=w(),kR=cn(),Vy=class e extends AR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,PJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,kR.se_GetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,kR.de_GetAccessKeyInfoCommand)(t,n)}};ho.GetAccessKeyInfoCommand=Vy});var Yy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetCallerIdentityCommand=_o.$Command=void 0;var kJ=nn(),AJ=x(),OJ=k(),NR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return NR.Command}});var NJ=w(),OR=cn(),Wy=class e extends NR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,OJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,AJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,kJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[NJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OR.se_GetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,OR.de_GetCallerIdentityCommand)(t,n)}};_o.GetCallerIdentityCommand=Wy});var Qy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetFederationTokenCommand=Co.$Command=void 0;var IJ=nn(),RJ=x(),TJ=k(),RR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return RR.Command}});var BJ=w(),qJ=Bn(),IR=cn(),Jy=class e extends RR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,TJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,RJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,IJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:qJ.GetFederationTokenResponseFilterSensitiveLog,[BJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,IR.se_GetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,IR.de_GetFederationTokenCommand)(t,n)}};Co.GetFederationTokenCommand=Jy});var eg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetSessionTokenCommand=So.$Command=void 0;var DJ=nn(),MJ=x(),FJ=k(),BR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return BR.Command}});var LJ=w(),jJ=Bn(),TR=cn(),Zy=class e extends BR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,FJ.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,MJ.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,DJ.getAwsAuthPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:jJ.GetSessionTokenResponseFilterSensitiveLog,[LJ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,TR.se_GetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,TR.de_GetSessionTokenCommand)(t,n)}};So.GetSessionTokenCommand=Zy});var qR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.STS=void 0;var UJ=b(),zJ=ol(),GJ=Hy(),HJ=sl(),$J=Ky(),KJ=Xy(),VJ=Yy(),XJ=Qy(),WJ=eg(),YJ=Ou(),JJ={AssumeRoleCommand:zJ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:GJ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:HJ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:$J.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:KJ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:VJ.GetCallerIdentityCommand,GetFederationTokenCommand:XJ.GetFederationTokenCommand,GetSessionTokenCommand:WJ.GetSessionTokenCommand},Nu=class extends YJ.STSClient{};Iu.STS=Nu;(0,UJ.createAggregatedClient)(JJ,Nu)});var DR=m(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var $n=(ne(),J(te));$n.__exportStar(ol(),Ht);$n.__exportStar(Hy(),Ht);$n.__exportStar(sl(),Ht);$n.__exportStar(Ky(),Ht);$n.__exportStar(Xy(),Ht);$n.__exportStar(Yy(),Ht);$n.__exportStar(Qy(),Ht);$n.__exportStar(eg(),Ht)});var MR=m(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var QJ=(ne(),J(te));QJ.__exportStar(Bn(),tg)});var UR=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.decorateDefaultCredentialProvider=$t.getDefaultRoleAssumerWithWebIdentity=$t.getDefaultRoleAssumer=void 0;var FR=Lf(),LR=Ou(),jR=(e,t)=>t?class extends e{constructor(r){super(r);for(let o of t)this.middlewareStack.use(o)}}:e,ZJ=(e={},t)=>(0,FR.getDefaultRoleAssumer)(e,jR(LR.STSClient,t));$t.getDefaultRoleAssumer=ZJ;var eQ=(e={},t)=>(0,FR.getDefaultRoleAssumerWithWebIdentity)(e,jR(LR.STSClient,t));$t.getDefaultRoleAssumerWithWebIdentity=eQ;var tQ=e=>t=>e({roleAssumer:(0,$t.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,$t.getDefaultRoleAssumerWithWebIdentity)(t),...t});$t.decorateDefaultCredentialProvider=tQ});var zR=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.STSServiceException=void 0;var Oa=(ne(),J(te));Oa.__exportStar(Ou(),yn);Oa.__exportStar(qR(),yn);Oa.__exportStar(DR(),yn);Oa.__exportStar(MR(),yn);Oa.__exportStar(UR(),yn);var nQ=Zd();Object.defineProperty(yn,"STSServiceException",{enumerable:!0,get:function(){return nQ.STSServiceException}})});var GR=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var Ru=vd();Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ru.booleanSelector)(e,Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,Ru.SelectorType.ENV),configFileSelector:e=>(0,Ru.booleanSelector)(e,Kt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,Ru.SelectorType.CONFIG),default:!1}});var HR=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Vt.NODE_USE_ARN_REGION_INI_NAME=Vt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var Tu=vd();Vt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Vt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Vt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Tu.booleanSelector)(e,Vt.NODE_USE_ARN_REGION_ENV_NAME,Tu.SelectorType.ENV),configFileSelector:e=>(0,Tu.booleanSelector)(e,Vt.NODE_USE_ARN_REGION_INI_NAME,Tu.SelectorType.CONFIG),default:!1}});var og=m(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.validateMrapAlias=ee.validateNoFIPS=ee.validateNoDualstack=ee.getArnResources=ee.validateCustomEndpoint=ee.validateDNSHostLabel=ee.validateAccountId=ee.validateRegionalClient=ee.validateRegion=ee.validatePartition=ee.validateOutpostService=ee.validateS3Service=ee.validateService=ee.validateArnEndpointOptions=ee.getSuffixForArnEndpoint=ee.getSuffix=ee.isDnsCompatibleBucketName=ee.isBucketNameOptions=ee.S3_HOSTNAME_PATTERN=ee.DOT_PATTERN=void 0;var rQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,oQ=/(\d+\.){3}\d+/,sQ=/\.\./;ee.DOT_PATTERN=/\./;ee.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var $R=/^s3(-external-1)?\.amazonaws\.com$/,rg="amazonaws.com",iQ=e=>typeof e.bucketName=="string";ee.isBucketNameOptions=iQ;var aQ=e=>rQ.test(e)&&!oQ.test(e)&&!sQ.test(e);ee.isDnsCompatibleBucketName=aQ;var KR=e=>{let t=e.match(ee.S3_HOSTNAME_PATTERN);return[t[4],e.replace(new RegExp(`^${t[0]}`),"")]},cQ=e=>$R.test(e)?["us-east-1",rg]:KR(e);ee.getSuffix=cQ;var dQ=e=>$R.test(e)?[e.replace(`.${rg}`,""),rg]:KR(e);ee.getSuffixForArnEndpoint=dQ;var lQ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};ee.validateArnEndpointOptions=lQ;var uQ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};ee.validateService=uQ;var mQ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};ee.validateS3Service=mQ;var pQ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};ee.validateOutpostService=pQ;var fQ=(e,t)=>{if(e!==t.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${t.clientPartition}"`)};ee.validatePartition=fQ;var yQ=(e,t)=>{if(e==="")throw new Error("ARN region is empty");if(t.useFipsEndpoint)if(t.allowFipsRegion){if(!ng(e,t.clientRegion))throw new Error(`Client FIPS region ${t.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!t.useArnRegion&&!ng(e,t.clientRegion||"")&&!ng(e,t.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${t.clientRegion}`)};ee.validateRegion=yQ;var gQ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};ee.validateRegionalClient=gQ;var ng=(e,t)=>e===t,hQ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};ee.validateAccountId=hQ;var _Q=(e,t={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||t!=null&&t.tlsCompatible&&ee.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};ee.validateDNSHostLabel=_Q;var CQ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};ee.validateCustomEndpoint=CQ;var SQ=e=>{let t=e.includes(":")?":":"/",[n,...r]=e.split(t);if(n==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${t}{accesspointname}`);return{accesspointName:r[0]}}else if(n==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${t}{outpostId}${t}accesspoint${t}{accesspointName}`);let[o,s,a]=r;return{outpostId:o,accesspointName:a}}else throw new Error(`ARN resource should begin with 'accesspoint${t}' or 'outpost${t}'`)};ee.getArnResources=SQ;var bQ=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};ee.validateNoDualstack=bQ;var EQ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};ee.validateNoFIPS=EQ;var PQ=e=>{try{e.split(".").forEach(t=>{(0,ee.validateDNSHostLabel)(t)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};ee.validateMrapAlias=PQ});var sg=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.bucketHostname=void 0;var ge=og(),vQ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?wQ(e):xQ(e));Bu.bucketHostname=vQ;var wQ=({accelerateEndpoint:e=!1,clientRegion:t,baseHostname:n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:a=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,c]=u?[t,n]:(0,ge.getSuffix)(n);return a||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${c}`:n}:(e?n=`s3-accelerate${o?".dualstack":""}.${c}`:o&&(n=`s3.dualstack.${l}.${c}`),{bucketEndpoint:!0,hostname:`${r}.${n}`})},xQ=e=>{let{isCustomEndpoint:t,baseHostname:n,clientRegion:r}=e,o=t?n:(0,ge.getSuffixForArnEndpoint)(n)[1],{pathStyleEndpoint:s,accelerateEndpoint:a=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:c="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:a,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:P,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:c}),(0,ge.validateAccountId)(C);let{accesspointName:v,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?kQ({...e,tlsCompatible:u,bucketName:l,accesspointName:v,hostnameSuffix:o}):P===""?AQ({...e,clientRegion:r,mrapAlias:v,hostnameSuffix:o}):G?OQ({...e,clientRegion:r,outpostId:G,accesspointName:v,hostnameSuffix:o}):NQ({...e,clientRegion:r,accesspointName:v,hostnameSuffix:o})},kQ=({dualstackEndpoint:e=!1,fipsEndpoint:t=!1,tlsCompatible:n=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:a,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:c,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(c,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:t}),(0,ge.validateNoDualstack)(e);let g=`${a}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:n});let C=r?c:o,P=r?c:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${t?"-fips":""}.${C}.${u}`,signingRegion:P,signingService:y}},AQ=({disableMultiregionAccessPoints:e,dualstackEndpoint:t=!1,isCustomEndpoint:n,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(t),{bucketEndpoint:!0,hostname:`${r}${n?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},OQ=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:a=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:c})=>{(0,ge.validateRegionalClient)(t),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:t,clientSigningRegion:n,useFipsEndpoint:a});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:t,C=e?r.region:n;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(a),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${c}`,signingRegion:C,signingService:"s3-outposts"}},NQ=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:a=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(t),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:t,clientSigningRegion:n,allowFipsRegion:!0,useFipsEndpoint:s});let c=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(c,{tlsCompatible:a});let y=e?r.region:t,g=e?r.region:n;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${c}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var WR=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getBucketEndpointPlugin=Xt.bucketEndpointMiddlewareOptions=Xt.bucketEndpointMiddleware=void 0;var VR=hp(),IQ=Ne(),XR=sg(),RQ=e=>(t,n)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,a=r.request;if(IQ.HttpRequest.isInstance(a)){if(e.bucketEndpoint)a.hostname=o;else if((0,VR.validate)(o)){let i=(0,VR.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),c=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:c})||{},C=await e.useArnRegion(),{hostname:P,bucketEndpoint:A,signingRegion:v,signingService:G}=(0,XR.bucketHostname)({bucketName:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:c,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});v&&v!==g&&(n.signing_region=v),G&&G!=="s3"&&(n.signing_service=G),a.hostname=P,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:c,bucketEndpoint:y}=(0,XR.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});a.hostname=c,s=y}s&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),a.path===""&&(a.path="/"))}return t({...r,request:a})};Xt.bucketEndpointMiddleware=RQ;Xt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var TQ=e=>({applyToStack:t=>{t.addRelativeTo((0,Xt.bucketEndpointMiddleware)(e),Xt.bucketEndpointMiddlewareOptions)}});Xt.getBucketEndpointPlugin=TQ});var YR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.resolveBucketEndpointConfig=void 0;function BQ(e){let{bucketEndpoint:t=!1,forcePathStyle:n=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:t,forcePathStyle:n,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}qu.resolveBucketEndpointConfig=BQ});var JR=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Na=(ne(),J(te));Na.__exportStar(GR(),Se);Na.__exportStar(HR(),Se);Na.__exportStar(WR(),Se);Na.__exportStar(sg(),Se);Na.__exportStar(YR(),Se);var gn=og();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return gn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return gn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return gn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return gn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return gn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return gn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return gn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return gn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return gn.validateNoFIPS}})});var dg={};Ni(dg,{__assign:()=>ag,__asyncDelegator:()=>VQ,__asyncGenerator:()=>KQ,__asyncValues:()=>XQ,__await:()=>Ia,__awaiter:()=>jQ,__classPrivateFieldGet:()=>QQ,__classPrivateFieldSet:()=>ZQ,__createBinding:()=>zQ,__decorate:()=>MQ,__exportStar:()=>GQ,__extends:()=>qQ,__generator:()=>UQ,__importDefault:()=>JQ,__importStar:()=>YQ,__makeTemplateObject:()=>WQ,__metadata:()=>LQ,__param:()=>FQ,__read:()=>QR,__rest:()=>DQ,__spread:()=>HQ,__spreadArrays:()=>$Q,__values:()=>cg});function qQ(e,t){ig(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function DQ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function FQ(e,t){return function(n,r){t(n,r,e)}}function LQ(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function jQ(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,t||[])).next())})}function UQ(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function QR(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function HQ(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Ia?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function VQ(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:Ia(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function XQ(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof cg=="function"?cg(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function WQ(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function YQ(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function JQ(e){return e&&e.__esModule?e:{default:e}}function QQ(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ZQ(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var ig,ag,lg=je(()=>{ig=function(e,t){return ig=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},ig(e,t)};ag=function(){return ag=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.toUtf8=bo.fromUtf8=void 0;var eZ=e=>{let t=[];for(let n=0,r=e.length;n>6|192,o&63|128);else if(n+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)};bo.fromUtf8=eZ;var tZ=e=>{let t="";for(let n=0,r=e.length;ni.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}return t};bo.toUtf8=tZ});var eT=m(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.toUtf8=Eo.fromUtf8=void 0;function nZ(e){return new TextEncoder().encode(e)}Eo.fromUtf8=nZ;function rZ(e){return new TextDecoder("utf-8").decode(e)}Eo.toUtf8=rZ});var rT=m(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.toUtf8=Po.fromUtf8=void 0;var tT=ZR(),nT=eT(),oZ=e=>typeof TextEncoder=="function"?(0,nT.fromUtf8)(e):(0,tT.fromUtf8)(e);Po.fromUtf8=oZ;var sZ=e=>typeof TextDecoder=="function"?(0,nT.toUtf8)(e):(0,tT.toUtf8)(e);Po.toUtf8=sZ});var oT=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.convertToBuffer=void 0;var iZ=rT(),aZ=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:iZ.fromUtf8;function cZ(e){return e instanceof Uint8Array?e:typeof e=="string"?aZ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}Du.convertToBuffer=cZ});var sT=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isEmptyData=void 0;function dZ(e){return typeof e=="string"?e.length===0:e.byteLength===0}Mu.isEmptyData=dZ});var iT=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.numToUint8=void 0;function lZ(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Fu.numToUint8=lZ});var aT=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.uint32ArrayFrom=void 0;function uZ(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.uint32ArrayFrom=Wt.numToUint8=Wt.isEmptyData=Wt.convertToBuffer=void 0;var mZ=oT();Object.defineProperty(Wt,"convertToBuffer",{enumerable:!0,get:function(){return mZ.convertToBuffer}});var pZ=sT();Object.defineProperty(Wt,"isEmptyData",{enumerable:!0,get:function(){return pZ.isEmptyData}});var fZ=iT();Object.defineProperty(Wt,"numToUint8",{enumerable:!0,get:function(){return fZ.numToUint8}});var yZ=aT();Object.defineProperty(Wt,"uint32ArrayFrom",{enumerable:!0,get:function(){return yZ.uint32ArrayFrom}})});var lT=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.AwsCrc32=void 0;var cT=(lg(),J(dg)),ug=Ra(),dT=Ta(),gZ=function(){function e(){this.crc32=new dT.Crc32}return e.prototype.update=function(t){(0,ug.isEmptyData)(t)||this.crc32.update((0,ug.convertToBuffer)(t))},e.prototype.digest=function(){return cT.__awaiter(this,void 0,void 0,function(){return cT.__generator(this,function(t){return[2,(0,ug.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new dT.Crc32},e}();ju.AwsCrc32=gZ});var Ta=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.AwsCrc32=Kn.Crc32=Kn.crc32=void 0;var hZ=(lg(),J(dg)),_Z=Ra();function CZ(e){return new uT().update(e).digest()}Kn.crc32=CZ;var uT=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var o=hZ.__values(t),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^bZ[(this.checksum^a)&255]}}catch(i){n={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();Kn.Crc32=uT;var SZ=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],bZ=(0,_Z.uint32ArrayFrom)(SZ),EZ=lT();Object.defineProperty(Kn,"AwsCrc32",{enumerable:!0,get:function(){return EZ.AwsCrc32}})});var xT=m((Lxe,wT)=>{var zu=Object.defineProperty,PZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,wZ=Object.prototype.hasOwnProperty,hn=(e,t)=>zu(e,"name",{value:t,configurable:!0}),xZ=(e,t)=>{for(var n in t)zu(e,n,{get:t[n],enumerable:!0})},kZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vZ(t))!wZ.call(e,o)&&o!==n&&zu(e,o,{get:()=>t[o],enumerable:!(r=PZ(t,o))||r.enumerable});return e},AZ=e=>kZ(zu({},"__esModule",{value:!0}),e),pT={};xZ(pT,{EventStreamCodec:()=>UZ,HeaderMarshaller:()=>hT,Int64:()=>Uu,MessageDecoderStream:()=>zZ,MessageEncoderStream:()=>GZ,SmithyMessageDecoderStream:()=>HZ,SmithyMessageEncoderStream:()=>$Z});wT.exports=AZ(pT);var OZ=Ta(),hr=Cp(),fT=class yT{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&mg(n),new yT(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&mg(t),parseInt((0,hr.toHex)(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};hn(fT,"Int64");var Uu=fT;function mg(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}hn(mg,"negate");var gT=class{constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){let n=[];for(let s of Object.keys(t)){let a=this.fromUtf8(s);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,a)=>s+a.byteLength,0)),o=0;for(let s of n)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let i=this.fromUtf8(t.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(Uu.fromNumber(t.value.valueOf()).bytes,1),c;case"uuid":if(!FZ.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,hr.fromHex)(t.value.replace(/\-/g,"")),1),y}}parse(t){let n={},r=0;for(;r{var Gu=Object.defineProperty,KZ=Object.getOwnPropertyDescriptor,VZ=Object.getOwnPropertyNames,XZ=Object.prototype.hasOwnProperty,vo=(e,t)=>Gu(e,"name",{value:t,configurable:!0}),WZ=(e,t)=>{for(var n in t)Gu(e,n,{get:t[n],enumerable:!0})},YZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of VZ(t))!XZ.call(e,o)&&o!==n&&Gu(e,o,{get:()=>t[o],enumerable:!(r=KZ(t,o))||r.enumerable});return e},JZ=e=>YZ(Gu({},"__esModule",{value:!0}),e),kT={};WZ(kT,{EventStreamMarshaller:()=>IT,eventStreamSerdeProvider:()=>QZ});RT.exports=JZ(kT);var Ba=xT();function AT(e){let t=0,n=0,r=null,o=null,s=vo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);t=i,n=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),a=vo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}let c=u.length,y=0;for(;ynew IT(e),"eventStreamSerdeProvider")});var LT=m((Gxe,FT)=>{var Hu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,eee=Object.getOwnPropertyNames,tee=Object.prototype.hasOwnProperty,pg=(e,t)=>Hu(e,"name",{value:t,configurable:!0}),nee=(e,t)=>{for(var n in t)Hu(e,n,{get:t[n],enumerable:!0})},ree=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eee(t))!tee.call(e,o)&&o!==n&&Hu(e,o,{get:()=>t[o],enumerable:!(r=ZZ(t,o))||r.enumerable});return e},oee=e=>ree(Hu({},"__esModule",{value:!0}),e),BT={};nee(BT,{EventStreamMarshaller:()=>MT,eventStreamSerdeProvider:()=>aee});FT.exports=oee(BT);var see=TT(),iee=require("stream");async function*qT(e){let t=!1,n=!1,r=new Array;for(e.on("error",o=>{if(t||(t=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{t=!0});!n;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),n=t&&r.length===0}}pg(qT,"readabletoIterable");var DT=class{constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new see.EventStreamMarshaller({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){let r=typeof t[Symbol.asyncIterator]=="function"?t:qT(t);return this.universalMarshaller.deserialize(r,n)}serialize(t,n){return iee.Readable.from(this.universalMarshaller.serialize(t,n))}};pg(DT,"EventStreamMarshaller");var MT=DT,aee=pg(e=>new MT(e),"eventStreamSerdeProvider")});var HT=m(($xe,GT)=>{var $u=Object.defineProperty,cee=Object.getOwnPropertyDescriptor,dee=Object.getOwnPropertyNames,lee=Object.prototype.hasOwnProperty,Ku=(e,t)=>$u(e,"name",{value:t,configurable:!0}),uee=(e,t)=>{for(var n in t)$u(e,n,{get:t[n],enumerable:!0})},mee=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dee(t))!lee.call(e,o)&&o!==n&&$u(e,o,{get:()=>t[o],enumerable:!(r=cee(t,o))||r.enumerable});return e},pee=e=>mee($u({},"__esModule",{value:!0}),e),jT={};uee(jT,{fileStreamHasher:()=>hee,readableStreamHasher:()=>Cee});GT.exports=pee(jT);var fee=require("fs"),yee=st(),gee=require("stream"),UT=class extends gee.Writable{constructor(t,n){super(n),this.hash=t}_write(t,n,r){try{this.hash.update((0,yee.toUint8Array)(t))}catch(o){return r(o)}r()}};Ku(UT,"HashCalculator");var zT=UT,hee=Ku((e,t)=>new Promise((n,r)=>{if(!_ee(t)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,fee.createReadStream)(t.path,{start:t.start,end:t.end}),s=new e,a=new zT(s);o.pipe(a),o.on("error",i=>{a.end(),r(i)}),a.on("error",r),a.on("finish",function(){s.digest().then(n).catch(r)})}),"fileStreamHasher"),_ee=Ku(e=>typeof e.path=="string","isReadStream"),Cee=Ku((e,t)=>{if(t.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let n=new e,r=new zT(n);return t.pipe(r),new Promise((o,s)=>{t.on("error",a=>{r.end(),s(a)}),r.on("error",s),r.on("finish",()=>{n.digest().then(o).catch(s)})})},"readableStreamHasher")});var Xu=m(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.signatureV4CrtContainer=void 0;Vu.signatureV4CrtContainer={CrtSignerV4:null}});var $T=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.loadCrt=void 0;var See=Xu();function bee(){if(!See.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. To avoid this warning, please explicitly import the package in your application with: import "@aws-sdk/signature-v4-crt"; // ESM @@ -39,9 +39,9 @@ will become an error and dynamic loading will not be available. See https://github.com/aws/aws-sdk-js-v3/issues/5229. `))}catch{}}Wu.loadCrt=bee});var KT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.SignatureV4MultiRegion=void 0;var Eee=xp(),Pee=$T(),vee=Xu(),fg=class{constructor(t){this.sigv4Signer=new Eee.SignatureV4(t),this.signerOptions=t}async sign(t,n={}){if(n.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(t,n)}return this.sigv4Signer.sign(t,n)}async presign(t,n={}){if(n.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(t,n)}return this.sigv4Signer.presign(t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let t=null;try{if((0,Pee.loadCrt)(),t=vee.signatureV4CrtContainer.CrtSignerV4,typeof t!="function")throw new Error}catch(n){throw n.message=`${n.message} Please check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,n}this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Yu.SignatureV4MultiRegion=fg});var XT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var VT=(ne(),J(te));VT.__exportStar(KT(),Ju);VT.__exportStar(Xu(),Ju)});var sq=m(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.ruleSet=void 0;var Ug="required",h="type",S="conditions",O="fn",N="argv",oe="ref",Ye="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",WT=!1,Yt=!0,Jt="isSet",j="tree",nt="booleanEquals",H="error",tm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",Da="substring",zB="hardwareType",GB="regionPrefix",YT="bucketAliasSuffix",Fg="outpostId",Cr="isValidHostLabel",Ot="not",HB="parseURL",zg="s3-outposts",U="endpoint",JT="aws.isVirtualHostableS3Bucket",xo="s3",$B="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",KB="{url#scheme}://{Bucket}.{url#authority}{url#path}",VB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",QT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",XB="aws.parseArn",WB="bucketArn",YB="arnType",nm="",Gg="s3-object-lambda",JB="accesspoint",Hg="accessPointName",ZT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",eB="mrapPartition",tB="outpostType",nB="arnPrefix",QB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",rB="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Lg="{url#scheme}://{url#authority}{url#path}",oB="https://s3.{partitionResult#dnsSuffix}",yg={[Ug]:!1,[h]:"String"},wo={[Ug]:!0,default:!1,[h]:"Boolean"},gg={[Ug]:!1,[h]:"Boolean"},At={[O]:nt,[N]:[{[oe]:"Accelerate"},!0]},Pe={[O]:nt,[N]:[{[oe]:"UseFIPS"},!0]},_e={[O]:nt,[N]:[{[oe]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[oe]:"Endpoint"}]},ZB={[O]:tm,[N]:[{[oe]:"Region"}],[Ye]:"partitionResult"},sB={[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]},"aws-cn"]},eq={[O]:Jt,[N]:[{[oe]:"Bucket"}]},_n={[oe]:"Bucket"},iB={[oe]:zB},aB={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},re={[O]:Ot,[N]:[Ie]},ot={[O]:HB,[N]:[{[oe]:"Endpoint"}],[Ye]:"url"},Qu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{Region}"}]},ce={},hg={[O]:nt,[N]:[{[oe]:"ForcePathStyle"},!1]},wee={[oe]:"ForcePathStyle"},Me={[O]:nt,[N]:[{[oe]:"Accelerate"},!1]},Ue={[O]:ke,[N]:[{[oe]:"Region"},"aws-global"]},He={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"us-east-1"}]},le={[O]:Ot,[N]:[Ue]},$e={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!0]},cB={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{Region}"}]},[V]:{}},Fe={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{Region}"}]},Ke={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!1]},de={[O]:nt,[N]:[{[oe]:"UseDualStack"},!1]},dB={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},ie={[O]:nt,[N]:[{[oe]:"UseFIPS"},!1]},lB={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},uB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},_g={[O]:nt,[N]:[{[O]:Re,[N]:[{[oe]:"url"},"isIp"]},!0]},tq={[oe]:"url"},Cg={[O]:nt,[N]:[{[O]:Re,[N]:[tq,"isIp"]},!1]},Sg={[$]:$B,[K]:Fe,[V]:{}},jg={[$]:KB,[K]:Fe,[V]:{}},mB={[U]:jg,[h]:U},bg={[$]:VB,[K]:Fe,[V]:{}},pB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Zu={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},ct={[oe]:WB},nq={[oe]:YB},Eg={[O]:Re,[N]:[ct,"service"]},$g={[oe]:Hg},fB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},yB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},gB={[S]:[{[O]:Jt,[N]:[{[oe]:"DisableAccessPoints"}]},{[O]:nt,[N]:[{[oe]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Pg={[S]:[{[O]:Jt,[N]:[{[oe]:"UseArnRegion"}]},{[O]:nt,[N]:[{[oe]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[ct,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},rq={[O]:Re,[N]:[{[oe]:"bucketPartition"},Ct]},oq={[O]:Re,[N]:[ct,"accountId"]},vg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Gg,[Yn]:"{bucketArn#region}"}]},hB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},wg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},xg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},kg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},_B={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},CB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},Ma={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{bucketArn#region}"}]},SB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{bucketArn#region}"}]},bB={[O]:XB,[N]:[_n]},EB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},PB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},vB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},Ag={[$]:QB,[K]:Fe,[V]:{}},wB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},xB={[oe]:"UseObjectLambdaEndpoint"},Og={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Gg,[Yn]:"{Region}"}]},kB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},AB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},OB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Ng={[$]:Lg,[K]:Fe,[V]:{}},NB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Ig=[{[oe]:"Region"}],xee=[{[oe]:"Endpoint"}],IB=[_n],RB=[{[O]:Cr,[N]:[{[oe]:Fg},!1]}],TB=[{[O]:ke,[N]:[{[oe]:GB},"beta"]}],Fa=[Ie,ot],BB=[eq],Xn=[ZB],qB=[{[O]:Cr,[N]:[{[oe]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[oe]:"Region"},"us-east-1"]}],Rg=[{[O]:ke,[N]:[nq,JB]}],DB=[{[O]:Re,[N]:[ct,"resourceId[1]"],[Ye]:Hg},{[O]:Ot,[N]:[{[O]:ke,[N]:[$g,nm]}]}],kee=[ct,"resourceId[1]"],MB=[_e],Tg=[At],Bg=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[ct,"region"]},nm]}]}],FB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[ct,"resourceId[2]"]}]}]}],Aee=[ct,"resourceId[2]"],qg=[{[O]:tm,[N]:[{[O]:Re,[N]:[ct,"region"]}],[Ye]:"bucketPartition"}],LB=[{[O]:ke,[N]:[rq,{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]}]}],Dg=[{[O]:Cr,[N]:[{[O]:Re,[N]:[ct,"region"]},!0]}],Mg=[{[O]:Cr,[N]:[oq,!1]}],jB=[{[O]:Cr,[N]:[$g,!1]}],em=[Pe],UB=[{[O]:Cr,[N]:[{[oe]:"Region"},!0]}],Oee={version:"1.0",parameters:{Bucket:yg,Region:yg,UseFIPS:wo,UseDualStack:wo,Endpoint:yg,ForcePathStyle:wo,Accelerate:wo,UseGlobalEndpoint:wo,UseObjectLambdaEndpoint:gg,DisableAccessPoints:gg,DisableMultiRegionAccessPoints:wo,UseArnRegion:gg},rules:[{[S]:[{[O]:Jt,[N]:Ig}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,ZB,sB],error:"Partition does not support FIPS",[h]:H},{[S]:[eq,{[O]:Da,[N]:[_n,49,50,Yt],[Ye]:zB},{[O]:Da,[N]:[_n,8,12,Yt],[Ye]:GB},{[O]:Da,[N]:[_n,0,7,Yt],[Ye]:YT},{[O]:Da,[N]:[_n,32,49,Yt],[Ye]:Fg},{[O]:tm,[N]:Ig,[Ye]:"regionPartition"},{[O]:ke,[N]:[{[oe]:YT},"--op-s3"]}],[h]:j,rules:[{[S]:RB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[iB,"e"]}],[h]:j,rules:[{[S]:TB,[h]:j,rules:[aB,{[S]:Fa,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Qu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Qu,[V]:ce},[h]:U}]},{[S]:[{[O]:ke,[N]:[iB,"o"]}],[h]:j,rules:[{[S]:TB,[h]:j,rules:[aB,{[S]:Fa,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Qu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Qu,[V]:ce},[h]:U}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:BB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:HB,[N]:xee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[hg,{[O]:JT,[N]:[_n,WT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:qB,[h]:j,rules:[{[S]:[At,sB],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,Pe,Me,re,le,$e],[h]:j,rules:[{endpoint:cB,[h]:U}]},{[S]:[_e,Pe,Me,re,le,Ke],endpoint:cB,[h]:U},{[S]:[de,Pe,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[de,Pe,Me,re,le,$e],[h]:j,rules:[{endpoint:dB,[h]:U}]},{[S]:[de,Pe,Me,re,le,Ke],endpoint:dB,[h]:U},{[S]:[_e,ie,At,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,ie,At,re,le,$e],[h]:j,rules:[{endpoint:lB,[h]:U}]},{[S]:[_e,ie,At,re,le,Ke],endpoint:lB,[h]:U},{[S]:[_e,ie,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,ie,Me,re,le,$e],[h]:j,rules:[{endpoint:uB,[h]:U}]},{[S]:[_e,ie,Me,re,le,Ke],endpoint:uB,[h]:U},{[S]:[de,ie,Me,Ie,ot,_g,Ue],endpoint:{[$]:$B,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,Ie,ot,Cg,Ue],endpoint:{[$]:KB,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,Ie,ot,_g,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Sg,[h]:U},{endpoint:Sg,[h]:U}]},{[S]:[de,ie,Me,Ie,ot,Cg,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:jg,[h]:U},mB]},{[S]:[de,ie,Me,Ie,ot,_g,le,Ke],endpoint:Sg,[h]:U},{[S]:[de,ie,Me,Ie,ot,Cg,le,Ke],endpoint:jg,[h]:U},{[S]:[de,ie,At,re,Ue],endpoint:{[$]:VB,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,At,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:bg,[h]:U},{endpoint:bg,[h]:U}]},{[S]:[de,ie,At,re,le,Ke],endpoint:bg,[h]:U},{[S]:[de,ie,Me,re,Ue],endpoint:{[$]:QT,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:QT,[K]:Fe,[V]:ce},[h]:U},{endpoint:pB,[h]:U}]},{[S]:[de,ie,Me,re,le,Ke],endpoint:pB,[h]:U}]},Zu]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[tq,"scheme"]},"http"]},{[O]:JT,[N]:[_n,Yt]},hg,ie,de,Me],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:qB,[h]:j,rules:[mB]},Zu]}]},{[S]:[hg,{[O]:XB,[N]:IB,[Ye]:WB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[ct,"resourceId[0]"],[Ye]:YB},{[O]:Ot,[N]:[{[O]:ke,[N]:[nq,nm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[Eg,Gg]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:DB,[h]:j,rules:[fB,yB,{[S]:Bg,[h]:j,rules:[gB,{[S]:FB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:LB,[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[oq,nm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Mg,[h]:j,rules:[{[S]:jB,[h]:j,rules:[{[S]:Fa,endpoint:{[$]:ZT,[K]:vg,[V]:ce},[h]:U},{[S]:em,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:vg,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:vg,[V]:ce},[h]:U}]},hB]},wg]},xg]},kg]}]}]},_B]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},CB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Rg,[h]:j,rules:[{[S]:DB,[h]:j,rules:[{[S]:Bg,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Bg,[h]:j,rules:[gB,{[S]:FB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[rq,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[Eg,xo]}],[h]:j,rules:[{[S]:Mg,[h]:j,rules:[{[S]:jB,[h]:j,rules:[{[S]:Tg,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Ma,[V]:ce},[h]:U},{[S]:[Pe,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Ma,[V]:ce},[h]:U},{[S]:[ie,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Ma,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot],endpoint:{[$]:ZT,[K]:Ma,[V]:ce},[h]:U},{[S]:[ie,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Ma,[V]:ce},[h]:U}]},hB]},wg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},xg]},kg]}]}]},_B]}]}]},{[S]:[{[O]:Cr,[N]:[$g,Yt]}],[h]:j,rules:[{[S]:MB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:em,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Tg,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:nt,[N]:[{[oe]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:tm,[N]:Ig,[Ye]:eB}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:eB},Ct]},{[O]:Re,[N]:[ct,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:xo,signingRegionSet:["*"]}]},[V]:ce},[h]:U}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},CB]},{[S]:[{[O]:ke,[N]:[Eg,zg]}],[h]:j,rules:[{[S]:MB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:em,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Tg,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[ct,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:kee,[Ye]:Fg}],[h]:j,rules:[{[S]:RB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:LB,[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:Mg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:Aee,[Ye]:tB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[ct,"resourceId[3]"],[Ye]:Hg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[oe]:tB},JB]}],[h]:j,rules:[{[S]:Fa,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:SB,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:SB,[V]:ce},[h]:U}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},wg]},xg]},kg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:Da,[N]:[_n,0,4,WT],[Ye]:nB},{[O]:ke,[N]:[{[oe]:nB},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[bB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:nt,[N]:[wee,Yt]},bB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:IB,[Ye]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[Me],[h]:j,rules:[{[S]:[_e,re,Pe,Ue],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,re,Pe,le,$e],[h]:j,rules:[{endpoint:EB,[h]:U}]},{[S]:[_e,re,Pe,le,Ke],endpoint:EB,[h]:U},{[S]:[de,re,Pe,Ue],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[de,re,Pe,le,$e],[h]:j,rules:[{endpoint:PB,[h]:U}]},{[S]:[de,re,Pe,le,Ke],endpoint:PB,[h]:U},{[S]:[_e,re,ie,Ue],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,re,ie,le,$e],[h]:j,rules:[{endpoint:vB,[h]:U}]},{[S]:[_e,re,ie,le,Ke],endpoint:vB,[h]:U},{[S]:[de,Ie,ot,ie,Ue],endpoint:{[$]:QB,[K]:He,[V]:ce},[h]:U},{[S]:[de,Ie,ot,ie,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Ag,[h]:U},{endpoint:Ag,[h]:U}]},{[S]:[de,Ie,ot,ie,le,Ke],endpoint:Ag,[h]:U},{[S]:[de,re,ie,Ue],endpoint:{[$]:rB,[K]:He,[V]:ce},[h]:U},{[S]:[de,re,ie,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:rB,[K]:Fe,[V]:ce},[h]:U},{endpoint:wB,[h]:U}]},{[S]:[de,re,ie,le,Ke],endpoint:wB,[h]:U}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[xB]},{[O]:nt,[N]:[xB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:UB,[h]:j,rules:[fB,yB,{[S]:Fa,endpoint:{[$]:Lg,[K]:Og,[V]:ce},[h]:U},{[S]:em,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Og,[V]:ce},[h]:U},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:Og,[V]:ce},[h]:U}]},Zu]}]},{[S]:[{[O]:Ot,[N]:BB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:UB,[h]:j,rules:[{[S]:[Pe,_e,re,Ue],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[Pe,_e,re,le,$e],[h]:j,rules:[{endpoint:kB,[h]:U}]},{[S]:[Pe,_e,re,le,Ke],endpoint:kB,[h]:U},{[S]:[Pe,de,re,Ue],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[Pe,de,re,le,$e],[h]:j,rules:[{endpoint:AB,[h]:U}]},{[S]:[Pe,de,re,le,Ke],endpoint:AB,[h]:U},{[S]:[ie,_e,re,Ue],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[ie,_e,re,le,$e],[h]:j,rules:[{endpoint:OB,[h]:U}]},{[S]:[ie,_e,re,le,Ke],endpoint:OB,[h]:U},{[S]:[ie,de,Ie,ot,Ue],endpoint:{[$]:Lg,[K]:He,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Ng,[h]:U},{endpoint:Ng,[h]:U}]},{[S]:[ie,de,Ie,ot,le,Ke],endpoint:Ng,[h]:U},{[S]:[ie,de,re,Ue],endpoint:{[$]:oB,[K]:He,[V]:ce},[h]:U},{[S]:[ie,de,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:oB,[K]:Fe,[V]:ce},[h]:U},{endpoint:NB,[h]:U}]},{[S]:[ie,de,re,le,Ke],endpoint:NB,[h]:U}]},Zu]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};rm.ruleSet=Oee});var iq=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.defaultEndpointResolver=void 0;var Nee=Fr(),Iee=sq(),Ree=(e,t={})=>(0,Nee.resolveEndpoint)(Iee.ruleSet,{endpointParams:e,logger:t.logger});om.defaultEndpointResolver=Ree});var lq=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.getRuntimeConfig=void 0;var Tee=XT(),Bee=b(),qee=lr(),aq=wr(),cq=op(),dq=st(),Dee=iq(),Mee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??aq.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??aq.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Dee.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??cq.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new Bee.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??cq.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??Tee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??qee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??dq.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??dq.toUtf8});sm.getRuntimeConfig=Mee});var pq=m(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.getRuntimeConfig=void 0;var Fee=(ne(),J(te)),Lee=Fee.__importDefault(Nk()),jee=zR(),Uee=Fy(),zee=JR(),Gee=ua(),im=Dt(),Hee=LT(),Kg=ma(),$ee=HT(),uq=on(),ko=rn(),mq=xr(),Kee=pa(),Vee=jr(),Xee=lq(),Wee=b(),Yee=ga(),Jee=b(),Qee=e=>{(0,Jee.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Yee.resolveDefaultsModeConfig)(e),n=()=>t().then(Wee.loadConfigsForDefaultMode),r=(0,Xee.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Kee.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,jee.decorateDefaultCredentialProvider)(Uee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Gee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Lee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Hee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,ko.loadConfig)(uq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Kg.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,ko.loadConfig)(im.NODE_REGION_CONFIG_OPTIONS,im.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new mq.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,ko.loadConfig)({...uq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||Vee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Kg.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Kg.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??mq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??$ee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,ko.loadConfig)(zee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,ko.loadConfig)(im.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,ko.loadConfig)(im.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};am.getRuntimeConfig=Qee});var hq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.resolveRuntimeExtensions=void 0;var fq=Ol(),yq=Ne(),gq=b(),Vg=e=>e,Zee=(e,t)=>{let n={...Vg((0,fq.getAwsRegionExtensionConfiguration)(e)),...Vg((0,gq.getDefaultExtensionConfiguration)(e)),...Vg((0,yq.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,fq.resolveAwsRegionExtensionConfiguration)(n),...(0,gq.resolveDefaultRuntimeConfig)(n),...(0,yq.resolveHttpHandlerRuntimeConfig)(n)}};cm.resolveRuntimeExtensions=Zee});var La=m(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.S3Client=Ao.__Client=void 0;var ete=Bb(),_q=Ii(),tte=Ri(),nte=Ti(),Cq=Ir(),Sq=nn(),bq=Wi(),rte=Dt(),ote=Rw(),ste=Yi(),ite=x(),Eq=on(),Pq=b();Object.defineProperty(Ao,"__Client",{enumerable:!0,get:function(){return Pq.Client}});var ate=Ok(),cte=pq(),dte=hq(),Xg=class extends Pq.Client{constructor(...[t]){let n=(0,cte.getRuntimeConfig)(t||{}),r=(0,ate.resolveClientEndpointParameters)(n),o=(0,rte.resolveRegionConfig)(r),s=(0,ite.resolveEndpointConfig)(o),a=(0,Eq.resolveRetryConfig)(s),i=(0,_q.resolveHostHeaderConfig)(a),u=(0,Sq.resolveAwsAuthConfig)(i),l=(0,Cq.resolveS3Config)(u),c=(0,bq.resolveUserAgentConfig)(l),y=(0,ote.resolveEventStreamSerdeConfig)(c),g=(0,dte.resolveRuntimeExtensions)(y,(t==null?void 0:t.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,Eq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,ste.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,_q.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,tte.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,nte.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Sq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,ete.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,bq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ao.S3Client=Xg});var vq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.escapeAttribute=void 0;function lte(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}dm.escapeAttribute=lte});var wq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeElement=void 0;function ute(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}lm.escapeElement=ute});var Yg=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.XmlText=void 0;var mte=wq(),Wg=class{constructor(t){this.value=t}toString(){return(0,mte.escapeElement)(""+this.value)}};um.XmlText=Wg});var xq=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlNode=void 0;var pte=vq(),fte=Yg(),Jg=class e{static of(t,n,r){let o=new e(t);return n!==void 0&&o.addChildNode(new fte.XmlText(n)),r!==void 0&&o.withName(r),o}constructor(t,n=[]){this.name=t,this.children=n,this.attributes={}}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}toString(){let t=!!this.children.length,n=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(n+=` ${o}="${(0,pte.escapeAttribute)(""+s)}"`)}return n+=t?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};mm.XmlNode=Jg});var Aq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var kq=(ne(),J(te));kq.__exportStar(xq(),pm);kq.__exportStar(Yg(),pm)});var ja=m(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.S3ServiceException=Oo.__ServiceException=void 0;var Oq=b();Object.defineProperty(Oo,"__ServiceException",{enumerable:!0,get:function(){return Oq.ServiceException}});var Qg=class e extends Oq.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};Oo.S3ServiceException=Qg});var Je=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=ja();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Zg=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Zg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var eh=class e extends Jn.S3ServiceException{constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=eh;var th=class e extends Jn.S3ServiceException{constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=th;var nh=class e extends Jn.S3ServiceException{constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=nh;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var yte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(yte=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var gte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.ObjectSizeGreaterThan!==void 0?n.ObjectSizeGreaterThan(t.ObjectSizeGreaterThan):t.ObjectSizeLessThan!==void 0?n.ObjectSizeLessThan(t.ObjectSizeLessThan):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(gte=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var hte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.AccessPointArn!==void 0?n.AccessPointArn(t.AccessPointArn):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(hte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var _te;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(_te=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var rh=class e extends Jn.S3ServiceException{constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}};_.InvalidObjectState=rh;var oh=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=oh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var sh=class e extends Jn.S3ServiceException{constructor(t){super({name:"NotFound",$fault:"client",...t}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=sh;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var ih=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=ih;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var Cte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=bte;var Ete=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=Pte;var vte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=vte;var wte=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=wte;var xte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=xte;var kte=e=>({...e,...e.Rules&&{Rules:e.Rules.map(t=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(t))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=kte;var Ate=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=Nte;var Ite=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=Ite;var Rte=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=Rte;var Tte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=Tte;var Bte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=Bte;var qte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=qte;var Dte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=Mte;var Fte=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=Lte;var jte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=jte;var Ute=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(t=>(0,_.InventoryConfigurationFilterSensitiveLog)(t))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=Ute;var zte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=zte;var Gte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=$te;var Kte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Kte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Vte=ja(),ah=class e extends Vte.S3ServiceException{constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=ah;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Xte;(function(e){e.visit=(t,n)=>t.Records!==void 0?n.Records(t.Records):t.Stats!==void 0?n.Stats(t.Stats):t.Progress!==void 0?n.Progress(t.Progress):t.Cont!==void 0?n.Cont(t.Cont):t.End!==void 0?n.End(t.End):n._(t.$unknown[0],t.$unknown[1])})(Xte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var Wte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=Wte;var Yte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Yte;var Jte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=Jte;var Qte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Qte;var Zte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Zte;var ene=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=ene;var tne=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=tne;var nne=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=nne;var rne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=rne;var one=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=one;var sne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=sne;var ine=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=ine;var ane=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=ane});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=Aq(),B=Ne(),d=b(),cne=Bf(),St=Je(),dne=Zn(),lne=ja(),une=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=une;var mne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Bq(e.MultipartUpload,t));let c;return e.MultipartUpload!==void 0&&(c=Bq(e.MultipartUpload,t),c=c.withName("CompleteMultipartUpload"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=mne;var pne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_CopyObjectCommand=pne;var fne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>E(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=Dq(e.CreateBucketConfiguration,t));let l;return e.CreateBucketConfiguration!==void 0&&(l=Dq(e.CreateBucketConfiguration,t),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,body:u})};p.se_CreateBucketCommand=fne;var yne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=yne;var gne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,body:u})};p.se_DeleteBucketCommand=gne;var hne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=hne;var _ne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=_ne;var Cne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=Cne;var Sne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=Sne;var bne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=bne;var Ene=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=Ene;var Pne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=Pne;var vne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=vne;var wne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=wne;var xne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=xne;var kne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=kne;var Ane=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=Ane;var One=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectCommand=One;var Nne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=Mq(e.Delete,t));let c;return e.Delete!==void 0&&(c=Mq(e.Delete,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=Nne;var Ine=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=Ine;var Rne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=Rne;var Tne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=Tne;var Bne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAclCommand=Bne;var qne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=qne;var Dne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Dne;var Mne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=Mne;var Fne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=Fne;var Lne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=Lne;var jne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=jne;var Une=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=Une;var zne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=zne;var Gne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=Gne;var Hne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Hne;var $ne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=$ne;var Kne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Kne;var Vne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Vne;var Xne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Xne;var Wne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Wne;var Yne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Yne;var Jne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=Jne;var Qne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Qne;var Zne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectCommand=Zne;var ere=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectAclCommand=ere;var tre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-max-parts":[()=>E(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>E(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=tre;var nre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=nre;var rre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=rre;var ore=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=ore;var sre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=sre;var ire=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=ire;var are=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=are;var cre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"HEAD",headers:a,path:i,body:u})};p.se_HeadBucketCommand=cre;var dre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"HEAD",headers:a,path:i,query:u,body:l})};p.se_HeadObjectCommand=dre;var lre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=lre;var ure=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=ure;var mre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=mre;var pre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=pre;var fre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,body:u})};p.se_ListBucketsCommand=fre;var yre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=yre;var gre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectsCommand=gre;var hre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectsV2Command=hre;var _re=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=_re;var Cre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListPartsCommand=Cre;var Sre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Nq(e.AccelerateConfiguration,t));let c;return e.AccelerateConfiguration!==void 0&&(c=Nq(e.AccelerateConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=Sre;var bre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=fm(e.AccessControlPolicy,t));let c;return e.AccessControlPolicy!==void 0&&(c=fm(e.AccessControlPolicy,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAclCommand=bre;var Ere=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Iq(e.AnalyticsConfiguration,t));let c;return e.AnalyticsConfiguration!==void 0&&(c=Iq(e.AnalyticsConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=Ere;var Pre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=qq(e.CORSConfiguration,t));let c;return e.CORSConfiguration!==void 0&&(c=qq(e.CORSConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=Pre;var vre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Yq(e.ServerSideEncryptionConfiguration,t));let c;return e.ServerSideEncryptionConfiguration!==void 0&&(c=Yq(e.ServerSideEncryptionConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=vre;var wre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=Fq(e.IntelligentTieringConfiguration,t));let c;return e.IntelligentTieringConfiguration!==void 0&&(c=Fq(e.IntelligentTieringConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=wre;var xre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Lq(e.InventoryConfiguration,t));let c;return e.InventoryConfiguration!==void 0&&(c=Lq(e.InventoryConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=xre;var kre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=Rq(e.LifecycleConfiguration,t));let c;return e.LifecycleConfiguration!==void 0&&(c=Rq(e.LifecycleConfiguration,t),c=c.withName("LifecycleConfiguration"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=kre;var Are=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Tq(e.BucketLoggingStatus,t));let c;return e.BucketLoggingStatus!==void 0&&(c=Tq(e.BucketLoggingStatus,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=Are;var Ore=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=jq(e.MetricsConfiguration,t));let c;return e.MetricsConfiguration!==void 0&&(c=jq(e.MetricsConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=Ore;var Nre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>E(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Uq(e.NotificationConfiguration,t));let c;return e.NotificationConfiguration!==void 0&&(c=Uq(e.NotificationConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=Nre;var Ire=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=$q(e.OwnershipControls,t));let c;return e.OwnershipControls!==void 0&&(c=$q(e.OwnershipControls,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=Ire;var Rre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>E(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let c;return e.Policy!==void 0&&(c=e.Policy,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=Rre;var Tre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Vq(e.ReplicationConfiguration,t));let c;return e.ReplicationConfiguration!==void 0&&(c=Vq(e.ReplicationConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=Tre;var Bre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Xq(e.RequestPaymentConfiguration,t));let c;return e.RequestPaymentConfiguration!==void 0&&(c=Xq(e.RequestPaymentConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=Bre;var qre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=Ua(e.Tagging,t));let c;return e.Tagging!==void 0&&(c=Ua(e.Tagging,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=qre;var Dre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=Jq(e.VersioningConfiguration,t));let c;return e.VersioningConfiguration!==void 0&&(c=Jq(e.VersioningConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Dre;var Mre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=Qq(e.WebsiteConfiguration,t));let c;return e.WebsiteConfiguration!==void 0&&(c=Qq(e.WebsiteConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=Mre;var Fre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectCommand=Fre;var Lre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=fm(e.AccessControlPolicy,t));let c;return e.AccessControlPolicy!==void 0&&(c=fm(e.AccessControlPolicy,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectAclCommand=Lre;var jre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Gq(e.LegalHold,t));let c;return e.LegalHold!==void 0&&(c=Gq(e.LegalHold,t),c=c.withName("LegalHold"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=jre;var Ure=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=zq(e.ObjectLockConfiguration,t));let c;return e.ObjectLockConfiguration!==void 0&&(c=zq(e.ObjectLockConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=Ure;var zre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Hq(e.Retention,t));let c;return e.Retention!==void 0&&(c=Hq(e.Retention,t),c=c.withName("Retention"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=zre;var Gre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=Ua(e.Tagging,t));let c;return e.Tagging!==void 0&&(c=Ua(e.Tagging,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=Gre;var Hre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=Kq(e.PublicAccessBlockConfiguration,t));let c;return e.PublicAccessBlockConfiguration!==void 0&&(c=Kq(e.PublicAccessBlockConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Hre;var $re=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Wq(e.RestoreRequest,t));let c;return e.RestoreRequest!==void 0&&(c=Wq(e.RestoreRequest,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_RestoreObjectCommand=$re;var Kre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let c=new f.XmlNode("SelectObjectContentRequest");if(c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");c.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");c.addChildNode(y)}if(e.InputSerialization!==void 0){let y=rD(e.InputSerialization,t).withName("InputSerialization");c.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=oD(e.OutputSerialization,t).withName("OutputSerialization");c.addChildNode(y)}if(e.RequestProgress!==void 0){let y=Jce(e.RequestProgress,t).withName("RequestProgress");c.addChildNode(y)}if(e.ScanRange!==void 0){let y=nde(e.ScanRange,t).withName("ScanRange");c.addChildNode(y)}return l+=c.toString(),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Kre;var Vre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/octet-stream","content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_UploadPartCommand=Vre;var Xre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Xre;var Wre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>E(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>E(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>E(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>E(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>E(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>E(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let c;e.Body!==void 0&&(c=e.Body,l=c);let{hostname:y}=await t.endpoint();if(t.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Wre;var Yre=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_AbortMultipartUploadCommand=Yre;var Jre=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await Pae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Qre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zre(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(n.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(n.Location=(0,d.expectString)(r.Location)),n};p.de_CompleteMultipartUploadCommand=Qre;var Zre=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return toe(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Z(e.body,t));return n.CopyObjectResult=Fde(r,t),n};p.de_CopyObjectCommand=eoe;var toe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await wae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},noe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return roe(e,t);let n=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,t),n};p.de_CreateBucketCommand=noe;var roe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await Sae(n,t);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await bae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},ooe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return soe(e,t);let n=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(r.UploadId)),n};p.de_CreateMultipartUploadCommand=ooe;var soe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketCommand=ioe;var aoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketAnalyticsConfigurationCommand=coe;var doe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketCorsCommand=loe;var uoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketEncryptionCommand=moe;var poe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketIntelligentTieringConfigurationCommand=foe;var yoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketInventoryConfigurationCommand=goe;var hoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Coe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketLifecycleCommand=_oe;var Coe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return boe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketMetricsConfigurationCommand=Soe;var boe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketOwnershipControlsCommand=Eoe;var Poe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return woe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketPolicyCommand=voe;var woe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return koe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketReplicationCommand=xoe;var koe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Ooe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketTaggingCommand=Aoe;var Ooe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Ioe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketWebsiteCommand=Noe;var Ioe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Toe(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteObjectCommand=Roe;var Toe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Deleted===""?n.Deleted=[]:r.Deleted!==void 0&&(n.Deleted=Hde((0,d.getArrayIfSingleItem)(r.Deleted),t)),r.Error===""?n.Errors=[]:r.Error!==void 0&&(n.Errors=Zde((0,d.getArrayIfSingleItem)(r.Error),t)),n};p.de_DeleteObjectsCommand=Boe;var qoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Moe(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteObjectTaggingCommand=Doe;var Moe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Loe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeletePublicAccessBlockCommand=Foe;var Loe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uoe(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Status!==void 0&&(n.Status=(0,d.expectString)(r.Status)),n};p.de_GetBucketAccelerateConfigurationCommand=joe;var Uoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AccessControlList===""?n.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(n.Grants=dD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_GetBucketAclCommand=zoe;var Goe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.AnalyticsConfiguration=iD(r,t),n};p.de_GetBucketAnalyticsConfigurationCommand=Hoe;var $oe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CORSRule===""?n.CORSRules=[]:r.CORSRule!==void 0&&(n.CORSRules=Ude((0,d.getArrayIfSingleItem)(r.CORSRule),t)),n};p.de_GetBucketCorsCommand=Koe;var Voe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ServerSideEncryptionConfiguration=pue(r,t),n};p.de_GetBucketEncryptionCommand=Xoe;var Woe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.IntelligentTieringConfiguration=uD(r,t),n};p.de_GetBucketIntelligentTieringConfigurationCommand=Yoe;var Joe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.InventoryConfiguration=mD(r,t),n};p.de_GetBucketInventoryConfigurationCommand=Qoe;var Zoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Rule===""?n.Rules=[]:r.Rule!==void 0&&(n.Rules=vle((0,d.getArrayIfSingleItem)(r.Rule),t)),n};p.de_GetBucketLifecycleConfigurationCommand=ese;var tse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.LocationConstraint!==void 0&&(n.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),n};p.de_GetBucketLocationCommand=nse;var rse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.LoggingEnabled!==void 0&&(n.LoggingEnabled=wle(r.LoggingEnabled,t)),n};p.de_GetBucketLoggingCommand=ose;var sse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.MetricsConfiguration=pD(r,t),n};p.de_GetBucketMetricsConfigurationCommand=ise;var ase=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.EventBridgeConfiguration!==void 0&&(n.EventBridgeConfiguration=ele(r.EventBridgeConfiguration,t)),r.CloudFunctionConfiguration===""?n.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(n.LambdaFunctionConfigurations=Cle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),t)),r.QueueConfiguration===""?n.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(n.QueueConfigurations=Zle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),t)),r.TopicConfiguration===""?n.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(n.TopicConfigurations=Aue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),t)),n};p.de_GetBucketNotificationConfigurationCommand=cse;var dse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.OwnershipControls=Gle(r,t),n};p.de_GetBucketOwnershipControlsCommand=lse;var use=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},mse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=await hD(e.body,t);return n.Policy=(0,d.expectString)(r),n};p.de_GetBucketPolicyCommand=mse;var pse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.PolicyStatus=Wle(r,t),n};p.de_GetBucketPolicyStatusCommand=fse;var yse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ReplicationConfiguration=rue(r,t),n};p.de_GetBucketReplicationCommand=gse;var hse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_se=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Payer!==void 0&&(n.Payer=(0,d.expectString)(r.Payer)),n};p.de_GetBucketRequestPaymentCommand=_se;var Cse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.TagSet===""?n.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(n.TagSet=Sr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),t)),n};p.de_GetBucketTaggingCommand=Sse;var bse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.MfaDelete!==void 0&&(n.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(n.Status=(0,d.expectString)(r.Status)),n};p.de_GetBucketVersioningCommand=Ese;var Pse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ErrorDocument!==void 0&&(n.ErrorDocument=Qde(r.ErrorDocument,t)),r.IndexDocument!==void 0&&(n.IndexDocument=ale(r.IndexDocument,t)),r.RedirectAllRequestsTo!==void 0&&(n.RedirectAllRequestsTo=tue(r.RedirectAllRequestsTo,t)),r.RoutingRules===""?n.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(n.RoutingRules=lue((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),t)),n};p.de_GetBucketWebsiteCommand=vse;var wse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n};p.de_GetObjectCommand=xse;var kse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await Eae(n,t);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Ase=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AccessControlList===""?n.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(n.Grants=dD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_GetObjectAclCommand=Ase;var Ose=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Nse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Checksum!==void 0&&(n.Checksum=Bde(r.Checksum,t)),r.ETag!==void 0&&(n.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(n.ObjectParts=sle(r.ObjectParts,t)),r.ObjectSize!==void 0&&(n.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass)),n};p.de_GetObjectAttributesCommand=Nse;var Ise=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.LegalHold=Mle(r,t),n};p.de_GetObjectLegalHoldCommand=Rse;var Tse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Bse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ObjectLockConfiguration=Dle(r,t),n};p.de_GetObjectLockConfigurationCommand=Bse;var qse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.Retention=Fle(r,t),n};p.de_GetObjectRetentionCommand=Dse;var Mse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.TagSet===""?n.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(n.TagSet=Sr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),t)),n};p.de_GetObjectTaggingCommand=Fse;var Lse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Use(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n};p.de_GetObjectTorrentCommand=jse;var Use=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.PublicAccessBlockConfiguration=Jle(r,t),n};p.de_GetPublicAccessBlockCommand=zse;var Gse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_HeadBucketCommand=Hse;var $se=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await eD(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Kse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,t),n};p.de_HeadObjectCommand=Kse;var Vse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await eD(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AnalyticsConfiguration===""?n.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(n.AnalyticsConfigurationList=Ade((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),t)),r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketAnalyticsConfigurationsCommand=Xse;var Wse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?n.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(n.IntelligentTieringConfigurationList=dle((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketIntelligentTieringConfigurationsCommand=Yse;var Jse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?n.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(n.InventoryConfigurationList=ule((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketInventoryConfigurationsCommand=Qse;var Zse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?n.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(n.MetricsConfigurationList=Ale((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),t)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketMetricsConfigurationsCommand=eie;var tie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Buckets===""?n.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(n.Buckets=Tde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_ListBucketsCommand=nie;var rie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(n.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(n.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(n.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(n.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(n.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?n.Uploads=[]:r.Upload!==void 0&&(n.Uploads=Ile((0,d.getArrayIfSingleItem)(r.Upload),t)),n};p.de_ListMultipartUploadsCommand=oie;var sie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Contents===""?n.Contents=[]:r.Contents!==void 0&&(n.Contents=fD((0,d.getArrayIfSingleItem)(r.Contents),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(n.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(n.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),n};p.de_ListObjectsCommand=iie;var aie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Zq(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},cie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Contents===""?n.Contents=[]:r.Contents!==void 0&&(n.Contents=fD((0,d.getArrayIfSingleItem)(r.Contents),t)),r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(n.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(n.StartAfter=(0,d.expectString)(r.StartAfter)),n};p.de_ListObjectsV2Command=cie;var die=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Zq(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},lie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.DeleteMarker===""?n.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(n.DeleteMarkers=Vde((0,d.getArrayIfSingleItem)(r.DeleteMarker),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(n.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(n.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(n.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(n.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?n.Versions=[]:r.Version!==void 0&&(n.Versions=zle((0,d.getArrayIfSingleItem)(r.Version),t)),n};p.de_ListObjectVersionsCommand=lie;var uie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,t);let n=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(n.Initiator=lD(r.Initiator,t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(n.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(n.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),r.PartNumberMarker!==void 0&&(n.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?n.Parts=[]:r.Part!==void 0&&(n.Parts=Vle((0,d.getArrayIfSingleItem)(r.Part),t)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(r.UploadId)),n};p.de_ListPartsCommand=mie;var pie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAccelerateConfigurationCommand=fie;var yie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAclCommand=gie;var hie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAnalyticsConfigurationCommand=_ie;var Cie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketCorsCommand=Sie;var bie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketEncryptionCommand=Eie;var Pie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketIntelligentTieringConfigurationCommand=vie;var wie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketInventoryConfigurationCommand=xie;var kie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketLifecycleConfigurationCommand=Aie;var Oie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketLoggingCommand=Nie;var Iie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketMetricsConfigurationCommand=Rie;var Tie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketNotificationConfigurationCommand=Bie;var qie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketOwnershipControlsCommand=Die;var Mie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Fie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketPolicyCommand=Fie;var Lie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},jie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketReplicationCommand=jie;var Uie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketRequestPaymentCommand=zie;var Gie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketTaggingCommand=Hie;var $ie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketVersioningCommand=Kie;var Vie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketWebsiteCommand=Xie;var Wie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectCommand=Yie;var Jie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectAclCommand=Qie;var Zie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},eae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectLegalHoldCommand=eae;var tae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectLockConfigurationCommand=nae;var rae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},oae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectRetentionCommand=oae;var sae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},iae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return aae(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectTaggingCommand=iae;var aae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},cae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return dae(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutPublicAccessBlockCommand=cae;var dae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},lae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return uae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,t),n};p.de_RestoreObjectCommand=lae;var uae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await vae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},mae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pae(e,t);let n=(0,d.map)({$metadata:I(e)}),r=e.body;return n.Payload=xae(r,t),n};p.de_SelectObjectContentCommand=mae;var pae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yae(e,t);let n=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_UploadPartCommand=fae;var yae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hae(e,t);let n=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Z(e.body,t));return n.CopyPartResult=Lde(r,t),n};p.de_UploadPartCopyCommand=gae;var hae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_ae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cae(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_WriteGetObjectResponseCommand=_ae;var Cae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(lne.S3ServiceException),Sae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},bae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Eae=async(e,t)=>{let n=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(n.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Zq=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},ym=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Pae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},eD=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},vae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new dne.ObjectAlreadyInActiveTierError({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},wae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},xae=(e,t)=>t.eventStreamMarshaller.deserialize(e,async n=>n.Records!=null?{Records:await Nae(n.Records,t)}:n.Stats!=null?{Stats:await Iae(n.Stats,t)}:n.Progress!=null?{Progress:await Oae(n.Progress,t)}:n.Cont!=null?{Cont:await kae(n.Cont,t)}:n.End!=null?{End:await Aae(n.End,t)}:{$unknown:e}),kae=async(e,t)=>{let n={},r=await Z(e.body,t);return Object.assign(n,Mde(r,t)),n},Aae=async(e,t)=>{let n={},r=await Z(e.body,t);return Object.assign(n,Yde(r,t)),n},Oae=async(e,t)=>{let n={},r=await Z(e.body,t);return n.Details=Yle(r,t),n},Nae=async(e,t)=>{let n={};return n.Payload=e.body,n},Iae=async(e,t)=>{let n={},r=await Z(e.body,t);return n.Details=Sue(r,t),n},Rae=(e,t)=>{let n=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");n.addChildNode(r)}return n},Nq=(e,t)=>{let n=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");n.addChildNode(r)}return n},fm=(e,t)=>{let n=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=nD(e.Grants,t),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Owner!=null){let r=Mce(e.Owner,t).withName("Owner");n.addChildNode(r)}return n},Tae=(e,t)=>{let n=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");n.addChildNode(r)}return n},Bae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedHeader",n).withName("member")),qae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedMethod",n).withName("member")),Dae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedOrigin",n).withName("member")),Mae=(e,t)=>{let n=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Iq=(e,t)=>{let n=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=Lae(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=ude(e.StorageClassAnalysis,t).withName("StorageClassAnalysis");n.addChildNode(r)}return n},Fae=(e,t)=>{let n=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=jae(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},Lae=(e,t)=>{let n=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},And:r=>{let o=Mae(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},jae=(e,t)=>{let n=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");n.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");n.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return n},Rq=(e,t)=>{let n=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&vce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Tq=(e,t)=>{let n=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=wce(e.LoggingEnabled,t).withName("LoggingEnabled");n.addChildNode(r)}return n},Bq=(e,t)=>{let n=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&zae(e.Parts,t).map(o=>{o=o.withName("Part"),n.addChildNode(o)}),n},Uae=(e,t)=>{let n=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");n.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");n.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");n.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");n.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");n.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");n.addChildNode(r)}return n},zae=(e,t)=>e.filter(n=>n!=null).map(n=>Uae(n,t).withName("member")),Gae=(e,t)=>{let n=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");n.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");n.addChildNode(r)}return n},qq=(e,t)=>{let n=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&$ae(e.CORSRules,t).map(o=>{o=o.withName("CORSRule"),n.addChildNode(o)}),n},Hae=(e,t)=>{let n=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.AllowedHeaders!=null&&Bae(e.AllowedHeaders,t).map(o=>{o=o.withName("AllowedHeader"),n.addChildNode(o)}),e.AllowedMethods!=null&&qae(e.AllowedMethods,t).map(o=>{o=o.withName("AllowedMethod"),n.addChildNode(o)}),e.AllowedOrigins!=null&&Dae(e.AllowedOrigins,t).map(o=>{o=o.withName("AllowedOrigin"),n.addChildNode(o)}),e.ExposeHeaders!=null&&nce(e.ExposeHeaders,t).map(o=>{o=o.withName("ExposeHeader"),n.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");n.addChildNode(r)}return n},$ae=(e,t)=>e.filter(n=>n!=null).map(n=>Hae(n,t).withName("member")),Dq=(e,t)=>{let n=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");n.addChildNode(r)}return n},Kae=(e,t)=>{let n=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");n.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");n.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");n.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");n.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");n.addChildNode(r)}return n},Vae=(e,t)=>{let n=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");n.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");n.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");n.addChildNode(r)}return n},Xae=(e,t)=>{let n=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");n.addChildNode(r)}return n},Mq=(e,t)=>{let n=new f.XmlNode("Delete");if(e.Objects!=null&&Bce(e.Objects,t).map(o=>{o=o.withName("Object"),n.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");n.addChildNode(r)}return n},Wae=(e,t)=>{let n=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Yae=(e,t)=>{let n=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=Tae(e.AccessControlTranslation,t).withName("AccessControlTranslation");n.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Qae(e.EncryptionConfiguration,t).withName("EncryptionConfiguration");n.addChildNode(r)}if(e.ReplicationTime!=null){let r=Yce(e.ReplicationTime,t).withName("ReplicationTime");n.addChildNode(r)}if(e.Metrics!=null){let r=kce(e.Metrics,t).withName("Metrics");n.addChildNode(r)}return n},Jae=(e,t)=>{let n=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");n.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");n.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");n.addChildNode(r)}return n},Qae=(e,t)=>{let n=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");n.addChildNode(r)}return n},Zae=(e,t)=>{let n=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}return n},ece=(e,t)=>new f.XmlNode("EventBridgeConfiguration"),ch=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("Event",n).withName("member")),tce=(e,t)=>{let n=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");n.addChildNode(r)}return n},nce=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("ExposeHeader",n).withName("member")),rce=(e,t)=>{let n=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");n.addChildNode(r)}return n},oce=(e,t)=>e.filter(n=>n!=null).map(n=>rce(n,t).withName("member")),sce=(e,t)=>{let n=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");n.addChildNode(r)}return n},ice=(e,t)=>{let n=new f.XmlNode("Grant");if(e.Grantee!=null){let r=tD(e.Grantee,t).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");n.addChildNode(r)}return n},tD=(e,t)=>{let n=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");n.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");n.addChildNode(r)}return e.Type!=null&&n.addAttribute("xsi:type",e.Type),n},nD=(e,t)=>e.filter(n=>n!=null).map(n=>ice(n,t).withName("Grant")),ace=(e,t)=>{let n=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");n.addChildNode(r)}return n},rD=(e,t)=>{let n=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Kae(e.CSV,t).withName("CSV");n.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");n.addChildNode(r)}if(e.JSON!=null){let r=gce(e.JSON,t).withName("JSON");n.addChildNode(r)}if(e.Parquet!=null){let r=jce(e.Parquet,t).withName("Parquet");n.addChildNode(r)}return n},cce=(e,t)=>{let n=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Fq=(e,t)=>{let n=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=dce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");n.addChildNode(r)}return e.Tierings!=null&&gde(e.Tierings,t).map(o=>{o=o.withName("Tiering"),n.addChildNode(o)}),n},dce=(e,t)=>{let n=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tag!=null){let r=No(e.Tag,t).withName("Tag");n.addChildNode(r)}if(e.And!=null){let r=cce(e.And,t).withName("And");n.addChildNode(r)}return n},Lq=(e,t)=>{let n=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=lce(e.Destination,t).withName("Destination");n.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");n.addChildNode(r)}if(e.Filter!=null){let r=mce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");n.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");n.addChildNode(r)}if(e.OptionalFields!=null){let r=pce(e.OptionalFields,t),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Schedule!=null){let r=yce(e.Schedule,t).withName("Schedule");n.addChildNode(r)}return n},lce=(e,t)=>{let n=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=fce(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},uce=(e,t)=>{let n=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=lde(e.SSES3,t).withName("SSE-S3");n.addChildNode(r)}if(e.SSEKMS!=null){let r=cde(e.SSEKMS,t).withName("SSE-KMS");n.addChildNode(r)}return n},mce=(e,t)=>{let n=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return n},pce=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("InventoryOptionalField",n).withName("Field")),fce=(e,t)=>{let n=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");n.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Encryption!=null){let r=uce(e.Encryption,t).withName("Encryption");n.addChildNode(r)}return n},yce=(e,t)=>{let n=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");n.addChildNode(r)}return n},gce=(e,t)=>{let n=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");n.addChildNode(r)}return n},hce=(e,t)=>{let n=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}return n},_ce=(e,t)=>{let n=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},Cce=(e,t)=>e.filter(n=>n!=null).map(n=>_ce(n,t).withName("member")),Sce=(e,t)=>{let n=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");n.addChildNode(r)}return n},bce=(e,t)=>{let n=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=Sce(e.Expiration,t).withName("Expiration");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Filter!=null){let r=Pce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.Transitions!=null&&Sde(e.Transitions,t).map(o=>{o=o.withName("Transition"),n.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&Rce(e.NoncurrentVersionTransitions,t).map(o=>{o=o.withName("NoncurrentVersionTransition"),n.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=Nce(e.NoncurrentVersionExpiration,t).withName("NoncurrentVersionExpiration");n.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=Rae(e.AbortIncompleteMultipartUpload,t).withName("AbortIncompleteMultipartUpload");n.addChildNode(r)}return n},Ece=(e,t)=>{let n=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");n.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");n.addChildNode(r)}return n},Pce=(e,t)=>{let n=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");n.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");n.addChildNode(o)},And:r=>{let o=Ece(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},vce=(e,t)=>e.filter(n=>n!=null).map(n=>bce(n,t).withName("member")),wce=(e,t)=>{let n=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");n.addChildNode(r)}if(e.TargetGrants!=null){let r=fde(e.TargetGrants,t),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");n.addChildNode(r)}return n},xce=(e,t)=>{let n=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");n.addChildNode(r)}return n},kce=(e,t)=>{let n=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.EventThreshold!=null){let r=sD(e.EventThreshold,t).withName("EventThreshold");n.addChildNode(r)}return n},Ace=(e,t)=>{let n=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");n.addChildNode(r)}return n},jq=(e,t)=>{let n=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=Oce(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},Oce=(e,t)=>{let n=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");n.addChildNode(o)},And:r=>{let o=Ace(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},Nce=(e,t)=>{let n=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");n.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n},Ice=(e,t)=>{let n=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n},Rce=(e,t)=>e.filter(n=>n!=null).map(n=>Ice(n,t).withName("member")),Uq=(e,t)=>{let n=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&_de(e.TopicConfigurations,t).map(o=>{o=o.withName("TopicConfiguration"),n.addChildNode(o)}),e.QueueConfigurations!=null&&zce(e.QueueConfigurations,t).map(o=>{o=o.withName("QueueConfiguration"),n.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&Cce(e.LambdaFunctionConfigurations,t).map(o=>{o=o.withName("CloudFunctionConfiguration"),n.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=ece(e.EventBridgeConfiguration,t).withName("EventBridgeConfiguration");n.addChildNode(r)}return n},dh=(e,t)=>{let n=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=ede(e.Key,t).withName("S3Key");n.addChildNode(r)}return n},Tce=(e,t)=>{let n=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");n.addChildNode(r)}return n},Bce=(e,t)=>e.filter(n=>n!=null).map(n=>Tce(n,t).withName("member")),zq=(e,t)=>{let n=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");n.addChildNode(r)}if(e.Rule!=null){let r=qce(e.Rule,t).withName("Rule");n.addChildNode(r)}return n},Gq=(e,t)=>{let n=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Hq=(e,t)=>{let n=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");n.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");n.addChildNode(r)}return n},qce=(e,t)=>{let n=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Xae(e.DefaultRetention,t).withName("DefaultRetention");n.addChildNode(r)}return n},Dce=(e,t)=>{let n=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=tde(e.S3,t).withName("S3");n.addChildNode(r)}return n},oD=(e,t)=>{let n=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Vae(e.CSV,t).withName("CSV");n.addChildNode(r)}if(e.JSON!=null){let r=hce(e.JSON,t).withName("JSON");n.addChildNode(r)}return n},Mce=(e,t)=>{let n=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}return n},$q=(e,t)=>{let n=new f.XmlNode("OwnershipControls");return e.Rules!=null&&Lce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Fce=(e,t)=>{let n=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");n.addChildNode(r)}return n},Lce=(e,t)=>e.filter(n=>n!=null).map(n=>Fce(n,t).withName("member")),jce=(e,t)=>new f.XmlNode("ParquetInput"),Kq=(e,t)=>{let n=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");n.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");n.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");n.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");n.addChildNode(r)}return n},Uce=(e,t)=>{let n=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},zce=(e,t)=>e.filter(n=>n!=null).map(n=>Uce(n,t).withName("member")),Gce=(e,t)=>{let n=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");n.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");n.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");n.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");n.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");n.addChildNode(r)}return n},Hce=(e,t)=>{let n=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");n.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");n.addChildNode(r)}return n},$ce=(e,t)=>{let n=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Vq=(e,t)=>{let n=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");n.addChildNode(r)}return e.Rules!=null&&Wce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Kce=(e,t)=>{let n=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Filter!=null){let r=Xce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=ade(e.SourceSelectionCriteria,t).withName("SourceSelectionCriteria");n.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=tce(e.ExistingObjectReplication,t).withName("ExistingObjectReplication");n.addChildNode(r)}if(e.Destination!=null){let r=Yae(e.Destination,t).withName("Destination");n.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Wae(e.DeleteMarkerReplication,t).withName("DeleteMarkerReplication");n.addChildNode(r)}return n},Vce=(e,t)=>{let n=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Xce=(e,t)=>{let n=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},And:r=>{let o=Vce(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},Wce=(e,t)=>e.filter(n=>n!=null).map(n=>Kce(n,t).withName("member")),Yce=(e,t)=>{let n=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.Time!=null){let r=sD(e.Time,t).withName("Time");n.addChildNode(r)}return n},sD=(e,t)=>{let n=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");n.addChildNode(r)}return n},Xq=(e,t)=>{let n=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");n.addChildNode(r)}return n},Jce=(e,t)=>{let n=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");n.addChildNode(r)}return n},Wq=(e,t)=>{let n=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=sce(e.GlacierJobParameters,t).withName("GlacierJobParameters");n.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");n.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");n.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");n.addChildNode(r)}if(e.SelectParameters!=null){let r=rde(e.SelectParameters,t).withName("SelectParameters");n.addChildNode(r)}if(e.OutputLocation!=null){let r=Dce(e.OutputLocation,t).withName("OutputLocation");n.addChildNode(r)}return n},Qce=(e,t)=>{let n=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=Gae(e.Condition,t).withName("Condition");n.addChildNode(r)}if(e.Redirect!=null){let r=Gce(e.Redirect,t).withName("Redirect");n.addChildNode(r)}return n},Zce=(e,t)=>e.filter(n=>n!=null).map(n=>Qce(n,t).withName("RoutingRule")),ede=(e,t)=>{let n=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&oce(e.FilterRules,t).map(o=>{o=o.withName("FilterRule"),n.addChildNode(o)}),n},tde=(e,t)=>{let n=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Encryption!=null){let r=Jae(e.Encryption,t).withName("Encryption");n.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");n.addChildNode(r)}if(e.AccessControlList!=null){let r=nD(e.AccessControlList,t),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Tagging!=null){let r=Ua(e.Tagging,t).withName("Tagging");n.addChildNode(r)}if(e.UserMetadata!=null){let r=bde(e.UserMetadata,t),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}return n},nde=(e,t)=>{let n=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");n.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");n.addChildNode(r)}return n},rde=(e,t)=>{let n=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=rD(e.InputSerialization,t).withName("InputSerialization");n.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");n.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");n.addChildNode(r)}if(e.OutputSerialization!=null){let r=oD(e.OutputSerialization,t).withName("OutputSerialization");n.addChildNode(r)}return n},ode=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");n.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");n.addChildNode(r)}return n},Yq=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&ide(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},sde=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=ode(e.ApplyServerSideEncryptionByDefault,t).withName("ApplyServerSideEncryptionByDefault");n.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");n.addChildNode(r)}return n},ide=(e,t)=>e.filter(n=>n!=null).map(n=>sde(n,t).withName("member")),ade=(e,t)=>{let n=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=dde(e.SseKmsEncryptedObjects,t).withName("SseKmsEncryptedObjects");n.addChildNode(r)}if(e.ReplicaModifications!=null){let r=$ce(e.ReplicaModifications,t).withName("ReplicaModifications");n.addChildNode(r)}return n},cde=(e,t)=>{let n=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");n.addChildNode(r)}return n},dde=(e,t)=>{let n=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");n.addChildNode(r)}return n},lde=(e,t)=>new f.XmlNode("SSE-S3"),ude=(e,t)=>{let n=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=mde(e.DataExport,t).withName("DataExport");n.addChildNode(r)}return n},mde=(e,t)=>{let n=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");n.addChildNode(r)}if(e.Destination!=null){let r=Fae(e.Destination,t).withName("Destination");n.addChildNode(r)}return n},No=(e,t)=>{let n=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");n.addChildNode(r)}return n},Ua=(e,t)=>{let n=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Io(e.TagSet,t),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}return n},Io=(e,t)=>e.filter(n=>n!=null).map(n=>No(n,t).withName("Tag")),pde=(e,t)=>{let n=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=tD(e.Grantee,t).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");n.addChildNode(r)}return n},fde=(e,t)=>e.filter(n=>n!=null).map(n=>pde(n,t).withName("Grant")),yde=(e,t)=>{let n=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");n.addChildNode(r)}return n},gde=(e,t)=>e.filter(n=>n!=null).map(n=>yde(n,t).withName("member")),hde=(e,t)=>{let n=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},_de=(e,t)=>e.filter(n=>n!=null).map(n=>hde(n,t).withName("member")),Cde=(e,t)=>{let n=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}return n},Sde=(e,t)=>e.filter(n=>n!=null).map(n=>Cde(n,t).withName("member")),bde=(e,t)=>e.filter(n=>n!=null).map(n=>xce(n,t).withName("MetadataEntry")),Jq=(e,t)=>{let n=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Qq=(e,t)=>{let n=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Zae(e.ErrorDocument,t).withName("ErrorDocument");n.addChildNode(r)}if(e.IndexDocument!=null){let r=ace(e.IndexDocument,t).withName("IndexDocument");n.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Hce(e.RedirectAllRequestsTo,t).withName("RedirectAllRequestsTo");n.addChildNode(r)}if(e.RoutingRules!=null){let r=Zce(e.RoutingRules,t),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}return n},Ede=(e,t)=>{let n={};return e.DaysAfterInitiation!==void 0&&(n.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),n},Pde=(e,t)=>{let n={};return e.Owner!==void 0&&(n.Owner=(0,d.expectString)(e.Owner)),n},vde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),wde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),xde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),kde=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},iD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Nde((0,d.expectUnion)(e.Filter),t)),e.StorageClassAnalysis!==void 0&&(n.StorageClassAnalysis=bue(e.StorageClassAnalysis,t)),n},Ade=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>iD(n,t)),Ode=(e,t)=>{let n={};return e.S3BucketDestination!==void 0&&(n.S3BucketDestination=Ide(e.S3BucketDestination,t)),n},Nde=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.And!==void 0?{And:kde(e.And,t)}:{$unknown:Object.entries(e)[0]},Ide=(e,t)=>{let n={};return e.Format!==void 0&&(n.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(n.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},Rde=(e,t)=>{let n={};return e.Name!==void 0&&(n.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(n.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),n},Tde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Rde(n,t)),Bde=(e,t)=>{let n={};return e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},aD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),qde=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},gm=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>qde(n,t)),Dde=(e,t)=>{let n={};return e.HttpErrorCodeReturnedEquals!==void 0&&(n.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(n.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),n},Mde=(e,t)=>({}),Fde=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Lde=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},jde=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?n.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(n.AllowedHeaders=vde((0,d.getArrayIfSingleItem)(e.AllowedHeader),t)),e.AllowedMethod===""?n.AllowedMethods=[]:e.AllowedMethod!==void 0&&(n.AllowedMethods=wde((0,d.getArrayIfSingleItem)(e.AllowedMethod),t)),e.AllowedOrigin===""?n.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(n.AllowedOrigins=xde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),t)),e.ExposeHeader===""?n.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(n.ExposeHeaders=nle((0,d.getArrayIfSingleItem)(e.ExposeHeader),t)),e.MaxAgeSeconds!==void 0&&(n.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),n},Ude=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>jde(n,t)),zde=(e,t)=>{let n={};return e.Mode!==void 0&&(n.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(n.Years=(0,d.strictParseInt32)(e.Years)),n},Gde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(n.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(n.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),n},Hde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Gde(n,t)),$de=(e,t)=>{let n={};return e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(n.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),n},Kde=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Vde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>$de(n,t)),Xde=(e,t)=>{let n={};return e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(n.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(n.AccessControlTranslation=Pde(e.AccessControlTranslation,t)),e.EncryptionConfiguration!==void 0&&(n.EncryptionConfiguration=Wde(e.EncryptionConfiguration,t)),e.ReplicationTime!==void 0&&(n.ReplicationTime=cue(e.ReplicationTime,t)),e.Metrics!==void 0&&(n.Metrics=xle(e.Metrics,t)),n},Wde=(e,t)=>{let n={};return e.ReplicaKmsKeyID!==void 0&&(n.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),n},Yde=(e,t)=>({}),Jde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(n.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(n.Message=(0,d.expectString)(e.Message)),n},Qde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),n},Zde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Jde(n,t)),ele=(e,t)=>({}),lh=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),tle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},nle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),rle=(e,t)=>{let n={};return e.Name!==void 0&&(n.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(n.Value=(0,d.expectString)(e.Value)),n},ole=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>rle(n,t)),sle=(e,t)=>{let n={};return e.PartsCount!==void 0&&(n.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(n.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(n.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(n.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?n.Parts=[]:e.Part!==void 0&&(n.Parts=Xle((0,d.getArrayIfSingleItem)(e.Part),t)),n},ile=(e,t)=>{let n={};return e.Grantee!==void 0&&(n.Grantee=cD(e.Grantee,t)),e.Permission!==void 0&&(n.Permission=(0,d.expectString)(e.Permission)),n},cD=(e,t)=>{let n={};return e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(n.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(n.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(n.Type=(0,d.expectString)(e["xsi:type"])),n},dD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>ile(n,t)),ale=(e,t)=>{let n={};return e.Suffix!==void 0&&(n.Suffix=(0,d.expectString)(e.Suffix)),n},lD=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),n},cle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},uD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(n.Filter=lle(e.Filter,t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Tiering===""?n.Tierings=[]:e.Tiering!==void 0&&(n.Tierings=xue((0,d.getArrayIfSingleItem)(e.Tiering),t)),n},dle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>uD(n,t)),lle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(n.Tag=Ro(e.Tag,t)),e.And!==void 0&&(n.And=cle(e.And,t)),n},mD=(e,t)=>{let n={};return e.Destination!==void 0&&(n.Destination=mle(e.Destination,t)),e.IsEnabled!==void 0&&(n.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(n.Filter=fle(e.Filter,t)),e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(n.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?n.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(n.OptionalFields=yle((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),t)),e.Schedule!==void 0&&(n.Schedule=hle(e.Schedule,t)),n},ule=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>mD(n,t)),mle=(e,t)=>{let n={};return e.S3BucketDestination!==void 0&&(n.S3BucketDestination=gle(e.S3BucketDestination,t)),n},ple=(e,t)=>{let n={};return e["SSE-S3"]!==void 0&&(n.SSES3=Cue(e["SSE-S3"],t)),e["SSE-KMS"]!==void 0&&(n.SSEKMS=hue(e["SSE-KMS"],t)),n},fle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},yle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),gle=(e,t)=>{let n={};return e.AccountId!==void 0&&(n.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(n.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(n.Encryption=ple(e.Encryption,t)),n},hle=(e,t)=>{let n={};return e.Frequency!==void 0&&(n.Frequency=(0,d.expectString)(e.Frequency)),n},_le=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(n.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Cle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>_le(n,t)),Sle=(e,t)=>{let n={};return e.Date!==void 0&&(n.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(n.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),n},ble=(e,t)=>{let n={};return e.Expiration!==void 0&&(n.Expiration=Sle(e.Expiration,t)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Ple((0,d.expectUnion)(e.Filter),t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Transition===""?n.Transitions=[]:e.Transition!==void 0&&(n.Transitions=Nue((0,d.getArrayIfSingleItem)(e.Transition),t)),e.NoncurrentVersionTransition===""?n.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(n.NoncurrentVersionTransitions=Ble((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),t)),e.NoncurrentVersionExpiration!==void 0&&(n.NoncurrentVersionExpiration=Rle(e.NoncurrentVersionExpiration,t)),e.AbortIncompleteMultipartUpload!==void 0&&(n.AbortIncompleteMultipartUpload=Ede(e.AbortIncompleteMultipartUpload,t)),n},Ele=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),e.ObjectSizeGreaterThan!==void 0&&(n.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(n.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),n},Ple=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:Ele(e.And,t)}:{$unknown:Object.entries(e)[0]},vle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>ble(n,t)),wle=(e,t)=>{let n={};return e.TargetBucket!==void 0&&(n.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?n.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(n.TargetGrants=vue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),t)),e.TargetPrefix!==void 0&&(n.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),n},xle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(n.EventThreshold=yD(e.EventThreshold,t)),n},kle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),e.AccessPointArn!==void 0&&(n.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),n},pD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Ole((0,d.expectUnion)(e.Filter),t)),n},Ale=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>pD(n,t)),Ole=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:kle(e.And,t)}:{$unknown:Object.entries(e)[0]},Nle=(e,t)=>{let n={};return e.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(n.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.Initiator!==void 0&&(n.Initiator=lD(e.Initiator,t)),e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),n},Ile=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Nle(n,t)),Rle=(e,t)=>{let n={};return e.NoncurrentDays!==void 0&&(n.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(n.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),n},Tle=(e,t)=>{let n={};return e.NoncurrentDays!==void 0&&(n.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(n.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),n},Ble=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Tle(n,t)),uh=(e,t)=>{let n={};return e.S3Key!==void 0&&(n.Key=uue(e.S3Key,t)),n},qle=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?n.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=aD((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),t)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.RestoreStatus!==void 0&&(n.RestoreStatus=gD(e.RestoreStatus,t)),n},fD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>qle(n,t)),Dle=(e,t)=>{let n={};return e.ObjectLockEnabled!==void 0&&(n.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(n.Rule=Lle(e.Rule,t)),n},Mle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Fle=(e,t)=>{let n={};return e.Mode!==void 0&&(n.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(n.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),n},Lle=(e,t)=>{let n={};return e.DefaultRetention!==void 0&&(n.DefaultRetention=zde(e.DefaultRetention,t)),n},jle=(e,t)=>{let n={};return e.PartNumber!==void 0&&(n.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Ule=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?n.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=aD((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),t)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(n.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.RestoreStatus!==void 0&&(n.RestoreStatus=gD(e.RestoreStatus,t)),n},zle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Ule(n,t)),er=(e,t)=>{let n={};return e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),n},Gle=(e,t)=>{let n={};return e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=$le((0,d.getArrayIfSingleItem)(e.Rule),t)),n},Hle=(e,t)=>{let n={};return e.ObjectOwnership!==void 0&&(n.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),n},$le=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Hle(n,t)),Kle=(e,t)=>{let n={};return e.PartNumber!==void 0&&(n.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Vle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Kle(n,t)),Xle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>jle(n,t)),Wle=(e,t)=>{let n={};return e.IsPublic!==void 0&&(n.IsPublic=(0,d.parseBoolean)(e.IsPublic)),n},Yle=(e,t)=>{let n={};return e.BytesScanned!==void 0&&(n.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(n.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(n.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),n},Jle=(e,t)=>{let n={};return e.BlockPublicAcls!==void 0&&(n.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(n.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(n.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(n.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),n},Qle=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(n.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Zle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Qle(n,t)),eue=(e,t)=>{let n={};return e.HostName!==void 0&&(n.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(n.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(n.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(n.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(n.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),n},tue=(e,t)=>{let n={};return e.HostName!==void 0&&(n.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(n.Protocol=(0,d.expectString)(e.Protocol)),n},nue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},rue=(e,t)=>{let n={};return e.Role!==void 0&&(n.Role=(0,d.expectString)(e.Role)),e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=aue((0,d.getArrayIfSingleItem)(e.Rule),t)),n},oue=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(n.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(n.Filter=iue((0,d.expectUnion)(e.Filter),t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(n.SourceSelectionCriteria=gue(e.SourceSelectionCriteria,t)),e.ExistingObjectReplication!==void 0&&(n.ExistingObjectReplication=tle(e.ExistingObjectReplication,t)),e.Destination!==void 0&&(n.Destination=Xde(e.Destination,t)),e.DeleteMarkerReplication!==void 0&&(n.DeleteMarkerReplication=Kde(e.DeleteMarkerReplication,t)),n},sue=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},iue=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.And!==void 0?{And:sue(e.And,t)}:{$unknown:Object.entries(e)[0]},aue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>oue(n,t)),cue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(n.Time=yD(e.Time,t)),n},yD=(e,t)=>{let n={};return e.Minutes!==void 0&&(n.Minutes=(0,d.strictParseInt32)(e.Minutes)),n},gD=(e,t)=>{let n={};return e.IsRestoreInProgress!==void 0&&(n.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(n.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),n},due=(e,t)=>{let n={};return e.Condition!==void 0&&(n.Condition=Dde(e.Condition,t)),e.Redirect!==void 0&&(n.Redirect=eue(e.Redirect,t)),n},lue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>due(n,t)),uue=(e,t)=>{let n={};return e.FilterRule===""?n.FilterRules=[]:e.FilterRule!==void 0&&(n.FilterRules=ole((0,d.getArrayIfSingleItem)(e.FilterRule),t)),n},mue=(e,t)=>{let n={};return e.SSEAlgorithm!==void 0&&(n.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(n.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),n},pue=(e,t)=>{let n={};return e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=yue((0,d.getArrayIfSingleItem)(e.Rule),t)),n},fue=(e,t)=>{let n={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(n.ApplyServerSideEncryptionByDefault=mue(e.ApplyServerSideEncryptionByDefault,t)),e.BucketKeyEnabled!==void 0&&(n.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),n},yue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>fue(n,t)),gue=(e,t)=>{let n={};return e.SseKmsEncryptedObjects!==void 0&&(n.SseKmsEncryptedObjects=_ue(e.SseKmsEncryptedObjects,t)),e.ReplicaModifications!==void 0&&(n.ReplicaModifications=nue(e.ReplicaModifications,t)),n},hue=(e,t)=>{let n={};return e.KeyId!==void 0&&(n.KeyId=(0,d.expectString)(e.KeyId)),n},_ue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Cue=(e,t)=>({}),Sue=(e,t)=>{let n={};return e.BytesScanned!==void 0&&(n.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(n.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(n.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),n},bue=(e,t)=>{let n={};return e.DataExport!==void 0&&(n.DataExport=Eue(e.DataExport,t)),n},Eue=(e,t)=>{let n={};return e.OutputSchemaVersion!==void 0&&(n.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(n.Destination=Ode(e.Destination,t)),n},Ro=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(n.Value=(0,d.expectString)(e.Value)),n},Sr=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Ro(n,t)),Pue=(e,t)=>{let n={};return e.Grantee!==void 0&&(n.Grantee=cD(e.Grantee,t)),e.Permission!==void 0&&(n.Permission=(0,d.expectString)(e.Permission)),n},vue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Pue(n,t)),wue=(e,t)=>{let n={};return e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(n.AccessTier=(0,d.expectString)(e.AccessTier)),n},xue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>wue(n,t)),kue=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(n.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Aue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>kue(n,t)),Oue=(e,t)=>{let n={};return e.Date!==void 0&&(n.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),n},Nue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Oue(n,t)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),hD=(e,t)=>(0,d.collectBody)(e,t).then(n=>t.utf8Encoder(n)),E=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Z=(e,t)=>hD(e,t).then(n=>{if(n.length){let r=new cne.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,n}this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Yu.SignatureV4MultiRegion=fg});var XT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var VT=(ne(),J(te));VT.__exportStar(KT(),Ju);VT.__exportStar(Xu(),Ju)});var sq=m(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.ruleSet=void 0;var Ug="required",h="type",S="conditions",O="fn",N="argv",oe="ref",Ye="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",WT=!1,Yt=!0,Jt="isSet",j="tree",nt="booleanEquals",H="error",tm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",qa="substring",zB="hardwareType",GB="regionPrefix",YT="bucketAliasSuffix",Fg="outpostId",Cr="isValidHostLabel",Ot="not",HB="parseURL",zg="s3-outposts",U="endpoint",JT="aws.isVirtualHostableS3Bucket",xo="s3",$B="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",KB="{url#scheme}://{Bucket}.{url#authority}{url#path}",VB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",QT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",XB="aws.parseArn",WB="bucketArn",YB="arnType",nm="",Gg="s3-object-lambda",JB="accesspoint",Hg="accessPointName",ZT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",eB="mrapPartition",tB="outpostType",nB="arnPrefix",QB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",rB="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Lg="{url#scheme}://{url#authority}{url#path}",oB="https://s3.{partitionResult#dnsSuffix}",yg={[Ug]:!1,[h]:"String"},wo={[Ug]:!0,default:!1,[h]:"Boolean"},gg={[Ug]:!1,[h]:"Boolean"},At={[O]:nt,[N]:[{[oe]:"Accelerate"},!0]},Pe={[O]:nt,[N]:[{[oe]:"UseFIPS"},!0]},_e={[O]:nt,[N]:[{[oe]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[oe]:"Endpoint"}]},ZB={[O]:tm,[N]:[{[oe]:"Region"}],[Ye]:"partitionResult"},sB={[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]},"aws-cn"]},eq={[O]:Jt,[N]:[{[oe]:"Bucket"}]},_n={[oe]:"Bucket"},iB={[oe]:zB},aB={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},re={[O]:Ot,[N]:[Ie]},ot={[O]:HB,[N]:[{[oe]:"Endpoint"}],[Ye]:"url"},Qu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{Region}"}]},ce={},hg={[O]:nt,[N]:[{[oe]:"ForcePathStyle"},!1]},wee={[oe]:"ForcePathStyle"},Me={[O]:nt,[N]:[{[oe]:"Accelerate"},!1]},Ue={[O]:ke,[N]:[{[oe]:"Region"},"aws-global"]},He={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"us-east-1"}]},le={[O]:Ot,[N]:[Ue]},$e={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!0]},cB={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{Region}"}]},[V]:{}},Fe={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{Region}"}]},Ke={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!1]},de={[O]:nt,[N]:[{[oe]:"UseDualStack"},!1]},dB={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},ie={[O]:nt,[N]:[{[oe]:"UseFIPS"},!1]},lB={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},uB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},_g={[O]:nt,[N]:[{[O]:Re,[N]:[{[oe]:"url"},"isIp"]},!0]},tq={[oe]:"url"},Cg={[O]:nt,[N]:[{[O]:Re,[N]:[tq,"isIp"]},!1]},Sg={[$]:$B,[K]:Fe,[V]:{}},jg={[$]:KB,[K]:Fe,[V]:{}},mB={[U]:jg,[h]:U},bg={[$]:VB,[K]:Fe,[V]:{}},pB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Zu={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},ct={[oe]:WB},nq={[oe]:YB},Eg={[O]:Re,[N]:[ct,"service"]},$g={[oe]:Hg},fB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},yB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},gB={[S]:[{[O]:Jt,[N]:[{[oe]:"DisableAccessPoints"}]},{[O]:nt,[N]:[{[oe]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Pg={[S]:[{[O]:Jt,[N]:[{[oe]:"UseArnRegion"}]},{[O]:nt,[N]:[{[oe]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[ct,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},rq={[O]:Re,[N]:[{[oe]:"bucketPartition"},Ct]},oq={[O]:Re,[N]:[ct,"accountId"]},vg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Gg,[Yn]:"{bucketArn#region}"}]},hB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},wg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},xg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},kg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},_B={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},CB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},Da={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:xo,[Yn]:"{bucketArn#region}"}]},SB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{bucketArn#region}"}]},bB={[O]:XB,[N]:[_n]},EB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},PB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},vB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},Ag={[$]:QB,[K]:Fe,[V]:{}},wB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Fe,[V]:{}},xB={[oe]:"UseObjectLambdaEndpoint"},Og={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Gg,[Yn]:"{Region}"}]},kB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},AB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},OB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Ng={[$]:Lg,[K]:Fe,[V]:{}},NB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Fe,[V]:{}},Ig=[{[oe]:"Region"}],xee=[{[oe]:"Endpoint"}],IB=[_n],RB=[{[O]:Cr,[N]:[{[oe]:Fg},!1]}],TB=[{[O]:ke,[N]:[{[oe]:GB},"beta"]}],Ma=[Ie,ot],BB=[eq],Xn=[ZB],qB=[{[O]:Cr,[N]:[{[oe]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[oe]:"Region"},"us-east-1"]}],Rg=[{[O]:ke,[N]:[nq,JB]}],DB=[{[O]:Re,[N]:[ct,"resourceId[1]"],[Ye]:Hg},{[O]:Ot,[N]:[{[O]:ke,[N]:[$g,nm]}]}],kee=[ct,"resourceId[1]"],MB=[_e],Tg=[At],Bg=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[ct,"region"]},nm]}]}],FB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[ct,"resourceId[2]"]}]}]}],Aee=[ct,"resourceId[2]"],qg=[{[O]:tm,[N]:[{[O]:Re,[N]:[ct,"region"]}],[Ye]:"bucketPartition"}],LB=[{[O]:ke,[N]:[rq,{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]}]}],Dg=[{[O]:Cr,[N]:[{[O]:Re,[N]:[ct,"region"]},!0]}],Mg=[{[O]:Cr,[N]:[oq,!1]}],jB=[{[O]:Cr,[N]:[$g,!1]}],em=[Pe],UB=[{[O]:Cr,[N]:[{[oe]:"Region"},!0]}],Oee={version:"1.0",parameters:{Bucket:yg,Region:yg,UseFIPS:wo,UseDualStack:wo,Endpoint:yg,ForcePathStyle:wo,Accelerate:wo,UseGlobalEndpoint:wo,UseObjectLambdaEndpoint:gg,DisableAccessPoints:gg,DisableMultiRegionAccessPoints:wo,UseArnRegion:gg},rules:[{[S]:[{[O]:Jt,[N]:Ig}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,ZB,sB],error:"Partition does not support FIPS",[h]:H},{[S]:[eq,{[O]:qa,[N]:[_n,49,50,Yt],[Ye]:zB},{[O]:qa,[N]:[_n,8,12,Yt],[Ye]:GB},{[O]:qa,[N]:[_n,0,7,Yt],[Ye]:YT},{[O]:qa,[N]:[_n,32,49,Yt],[Ye]:Fg},{[O]:tm,[N]:Ig,[Ye]:"regionPartition"},{[O]:ke,[N]:[{[oe]:YT},"--op-s3"]}],[h]:j,rules:[{[S]:RB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[iB,"e"]}],[h]:j,rules:[{[S]:TB,[h]:j,rules:[aB,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Qu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Qu,[V]:ce},[h]:U}]},{[S]:[{[O]:ke,[N]:[iB,"o"]}],[h]:j,rules:[{[S]:TB,[h]:j,rules:[aB,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Qu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Qu,[V]:ce},[h]:U}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:BB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:HB,[N]:xee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[hg,{[O]:JT,[N]:[_n,WT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:qB,[h]:j,rules:[{[S]:[At,sB],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,Pe,Me,re,le,$e],[h]:j,rules:[{endpoint:cB,[h]:U}]},{[S]:[_e,Pe,Me,re,le,Ke],endpoint:cB,[h]:U},{[S]:[de,Pe,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[de,Pe,Me,re,le,$e],[h]:j,rules:[{endpoint:dB,[h]:U}]},{[S]:[de,Pe,Me,re,le,Ke],endpoint:dB,[h]:U},{[S]:[_e,ie,At,re,Ue],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,ie,At,re,le,$e],[h]:j,rules:[{endpoint:lB,[h]:U}]},{[S]:[_e,ie,At,re,le,Ke],endpoint:lB,[h]:U},{[S]:[_e,ie,Me,re,Ue],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,ie,Me,re,le,$e],[h]:j,rules:[{endpoint:uB,[h]:U}]},{[S]:[_e,ie,Me,re,le,Ke],endpoint:uB,[h]:U},{[S]:[de,ie,Me,Ie,ot,_g,Ue],endpoint:{[$]:$B,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,Ie,ot,Cg,Ue],endpoint:{[$]:KB,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,Ie,ot,_g,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Sg,[h]:U},{endpoint:Sg,[h]:U}]},{[S]:[de,ie,Me,Ie,ot,Cg,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:jg,[h]:U},mB]},{[S]:[de,ie,Me,Ie,ot,_g,le,Ke],endpoint:Sg,[h]:U},{[S]:[de,ie,Me,Ie,ot,Cg,le,Ke],endpoint:jg,[h]:U},{[S]:[de,ie,At,re,Ue],endpoint:{[$]:VB,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,At,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:bg,[h]:U},{endpoint:bg,[h]:U}]},{[S]:[de,ie,At,re,le,Ke],endpoint:bg,[h]:U},{[S]:[de,ie,Me,re,Ue],endpoint:{[$]:QT,[K]:He,[V]:ce},[h]:U},{[S]:[de,ie,Me,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:QT,[K]:Fe,[V]:ce},[h]:U},{endpoint:pB,[h]:U}]},{[S]:[de,ie,Me,re,le,Ke],endpoint:pB,[h]:U}]},Zu]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[tq,"scheme"]},"http"]},{[O]:JT,[N]:[_n,Yt]},hg,ie,de,Me],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:qB,[h]:j,rules:[mB]},Zu]}]},{[S]:[hg,{[O]:XB,[N]:IB,[Ye]:WB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[ct,"resourceId[0]"],[Ye]:YB},{[O]:Ot,[N]:[{[O]:ke,[N]:[nq,nm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[Eg,Gg]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:DB,[h]:j,rules:[fB,yB,{[S]:Bg,[h]:j,rules:[gB,{[S]:FB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:LB,[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[oq,nm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Mg,[h]:j,rules:[{[S]:jB,[h]:j,rules:[{[S]:Ma,endpoint:{[$]:ZT,[K]:vg,[V]:ce},[h]:U},{[S]:em,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:vg,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:vg,[V]:ce},[h]:U}]},hB]},wg]},xg]},kg]}]}]},_B]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},CB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Rg,[h]:j,rules:[{[S]:DB,[h]:j,rules:[{[S]:Bg,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Bg,[h]:j,rules:[gB,{[S]:FB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[rq,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[Eg,xo]}],[h]:j,rules:[{[S]:Mg,[h]:j,rules:[{[S]:jB,[h]:j,rules:[{[S]:Tg,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U},{[S]:[Pe,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U},{[S]:[ie,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot],endpoint:{[$]:ZT,[K]:Da,[V]:ce},[h]:U},{[S]:[ie,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U}]},hB]},wg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},xg]},kg]}]}]},_B]}]}]},{[S]:[{[O]:Cr,[N]:[$g,Yt]}],[h]:j,rules:[{[S]:MB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:em,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Tg,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:nt,[N]:[{[oe]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:tm,[N]:Ig,[Ye]:eB}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:eB},Ct]},{[O]:Re,[N]:[ct,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:xo,signingRegionSet:["*"]}]},[V]:ce},[h]:U}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},CB]},{[S]:[{[O]:ke,[N]:[Eg,zg]}],[h]:j,rules:[{[S]:MB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:em,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Tg,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[ct,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:kee,[Ye]:Fg}],[h]:j,rules:[{[S]:RB,[h]:j,rules:[Pg,{[S]:qg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:LB,[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:Mg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:Aee,[Ye]:tB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[ct,"resourceId[3]"],[Ye]:Hg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[oe]:tB},JB]}],[h]:j,rules:[{[S]:Ma,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:SB,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:SB,[V]:ce},[h]:U}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},wg]},xg]},kg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:qa,[N]:[_n,0,4,WT],[Ye]:nB},{[O]:ke,[N]:[{[oe]:nB},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[bB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:nt,[N]:[wee,Yt]},bB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:IB,[Ye]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[Me],[h]:j,rules:[{[S]:[_e,re,Pe,Ue],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,re,Pe,le,$e],[h]:j,rules:[{endpoint:EB,[h]:U}]},{[S]:[_e,re,Pe,le,Ke],endpoint:EB,[h]:U},{[S]:[de,re,Pe,Ue],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[de,re,Pe,le,$e],[h]:j,rules:[{endpoint:PB,[h]:U}]},{[S]:[de,re,Pe,le,Ke],endpoint:PB,[h]:U},{[S]:[_e,re,ie,Ue],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:He,[V]:ce},[h]:U},{[S]:[_e,re,ie,le,$e],[h]:j,rules:[{endpoint:vB,[h]:U}]},{[S]:[_e,re,ie,le,Ke],endpoint:vB,[h]:U},{[S]:[de,Ie,ot,ie,Ue],endpoint:{[$]:QB,[K]:He,[V]:ce},[h]:U},{[S]:[de,Ie,ot,ie,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Ag,[h]:U},{endpoint:Ag,[h]:U}]},{[S]:[de,Ie,ot,ie,le,Ke],endpoint:Ag,[h]:U},{[S]:[de,re,ie,Ue],endpoint:{[$]:rB,[K]:He,[V]:ce},[h]:U},{[S]:[de,re,ie,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:rB,[K]:Fe,[V]:ce},[h]:U},{endpoint:wB,[h]:U}]},{[S]:[de,re,ie,le,Ke],endpoint:wB,[h]:U}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[xB]},{[O]:nt,[N]:[xB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:UB,[h]:j,rules:[fB,yB,{[S]:Ma,endpoint:{[$]:Lg,[K]:Og,[V]:ce},[h]:U},{[S]:em,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Og,[V]:ce},[h]:U},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:Og,[V]:ce},[h]:U}]},Zu]}]},{[S]:[{[O]:Ot,[N]:BB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:UB,[h]:j,rules:[{[S]:[Pe,_e,re,Ue],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[Pe,_e,re,le,$e],[h]:j,rules:[{endpoint:kB,[h]:U}]},{[S]:[Pe,_e,re,le,Ke],endpoint:kB,[h]:U},{[S]:[Pe,de,re,Ue],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[Pe,de,re,le,$e],[h]:j,rules:[{endpoint:AB,[h]:U}]},{[S]:[Pe,de,re,le,Ke],endpoint:AB,[h]:U},{[S]:[ie,_e,re,Ue],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:He,[V]:ce},[h]:U},{[S]:[ie,_e,re,le,$e],[h]:j,rules:[{endpoint:OB,[h]:U}]},{[S]:[ie,_e,re,le,Ke],endpoint:OB,[h]:U},{[S]:[ie,de,Ie,ot,Ue],endpoint:{[$]:Lg,[K]:He,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:Ng,[h]:U},{endpoint:Ng,[h]:U}]},{[S]:[ie,de,Ie,ot,le,Ke],endpoint:Ng,[h]:U},{[S]:[ie,de,re,Ue],endpoint:{[$]:oB,[K]:He,[V]:ce},[h]:U},{[S]:[ie,de,re,le,$e],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:oB,[K]:Fe,[V]:ce},[h]:U},{endpoint:NB,[h]:U}]},{[S]:[ie,de,re,le,Ke],endpoint:NB,[h]:U}]},Zu]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};rm.ruleSet=Oee});var iq=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.defaultEndpointResolver=void 0;var Nee=Fr(),Iee=sq(),Ree=(e,t={})=>(0,Nee.resolveEndpoint)(Iee.ruleSet,{endpointParams:e,logger:t.logger});om.defaultEndpointResolver=Ree});var lq=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.getRuntimeConfig=void 0;var Tee=XT(),Bee=b(),qee=lr(),aq=wr(),cq=op(),dq=st(),Dee=iq(),Mee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??aq.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??aq.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Dee.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??cq.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new Bee.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??cq.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??Tee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??qee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??dq.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??dq.toUtf8});sm.getRuntimeConfig=Mee});var pq=m(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.getRuntimeConfig=void 0;var Fee=(ne(),J(te)),Lee=Fee.__importDefault(Nk()),jee=zR(),Uee=Fy(),zee=JR(),Gee=la(),im=Dt(),Hee=LT(),Kg=ua(),$ee=HT(),uq=on(),ko=rn(),mq=xr(),Kee=ma(),Vee=jr(),Xee=lq(),Wee=b(),Yee=ya(),Jee=b(),Qee=e=>{(0,Jee.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Yee.resolveDefaultsModeConfig)(e),n=()=>t().then(Wee.loadConfigsForDefaultMode),r=(0,Xee.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Kee.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,jee.decorateDefaultCredentialProvider)(Uee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Gee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Lee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Hee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,ko.loadConfig)(uq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Kg.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,ko.loadConfig)(im.NODE_REGION_CONFIG_OPTIONS,im.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new mq.NodeHttpHandler(n),retryMode:(e==null?void 0:e.retryMode)??(0,ko.loadConfig)({...uq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||Vee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Kg.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Kg.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??mq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??$ee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,ko.loadConfig)(zee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,ko.loadConfig)(im.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,ko.loadConfig)(im.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};am.getRuntimeConfig=Qee});var hq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.resolveRuntimeExtensions=void 0;var fq=Ol(),yq=Ne(),gq=b(),Vg=e=>e,Zee=(e,t)=>{let n={...Vg((0,fq.getAwsRegionExtensionConfiguration)(e)),...Vg((0,gq.getDefaultExtensionConfiguration)(e)),...Vg((0,yq.getHttpHandlerExtensionConfiguration)(e))};return t.forEach(r=>r.configure(n)),{...e,...(0,fq.resolveAwsRegionExtensionConfiguration)(n),...(0,gq.resolveDefaultRuntimeConfig)(n),...(0,yq.resolveHttpHandlerRuntimeConfig)(n)}};cm.resolveRuntimeExtensions=Zee});var Fa=m(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.S3Client=Ao.__Client=void 0;var ete=Bb(),_q=Ii(),tte=Ri(),nte=Ti(),Cq=Ir(),Sq=nn(),bq=Xi(),rte=Dt(),ote=Rw(),ste=Wi(),ite=x(),Eq=on(),Pq=b();Object.defineProperty(Ao,"__Client",{enumerable:!0,get:function(){return Pq.Client}});var ate=Ok(),cte=pq(),dte=hq(),Xg=class extends Pq.Client{constructor(...[t]){let n=(0,cte.getRuntimeConfig)(t||{}),r=(0,ate.resolveClientEndpointParameters)(n),o=(0,rte.resolveRegionConfig)(r),s=(0,ite.resolveEndpointConfig)(o),a=(0,Eq.resolveRetryConfig)(s),i=(0,_q.resolveHostHeaderConfig)(a),u=(0,Sq.resolveAwsAuthConfig)(i),l=(0,Cq.resolveS3Config)(u),c=(0,bq.resolveUserAgentConfig)(l),y=(0,ote.resolveEventStreamSerdeConfig)(c),g=(0,dte.resolveRuntimeExtensions)(y,(t==null?void 0:t.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,Eq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,ste.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,_q.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,tte.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,nte.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Sq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,ete.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,bq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ao.S3Client=Xg});var vq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.escapeAttribute=void 0;function lte(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}dm.escapeAttribute=lte});var wq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeElement=void 0;function ute(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}lm.escapeElement=ute});var Yg=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.XmlText=void 0;var mte=wq(),Wg=class{constructor(t){this.value=t}toString(){return(0,mte.escapeElement)(""+this.value)}};um.XmlText=Wg});var xq=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlNode=void 0;var pte=vq(),fte=Yg(),Jg=class e{static of(t,n,r){let o=new e(t);return n!==void 0&&o.addChildNode(new fte.XmlText(n)),r!==void 0&&o.withName(r),o}constructor(t,n=[]){this.name=t,this.children=n,this.attributes={}}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}toString(){let t=!!this.children.length,n=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(n+=` ${o}="${(0,pte.escapeAttribute)(""+s)}"`)}return n+=t?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};mm.XmlNode=Jg});var Aq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var kq=(ne(),J(te));kq.__exportStar(xq(),pm);kq.__exportStar(Yg(),pm)});var La=m(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.S3ServiceException=Oo.__ServiceException=void 0;var Oq=b();Object.defineProperty(Oo,"__ServiceException",{enumerable:!0,get:function(){return Oq.ServiceException}});var Qg=class e extends Oq.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};Oo.S3ServiceException=Qg});var Je=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=La();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Zg=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Zg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var eh=class e extends Jn.S3ServiceException{constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=eh;var th=class e extends Jn.S3ServiceException{constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=th;var nh=class e extends Jn.S3ServiceException{constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=nh;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var yte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(yte=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var gte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.ObjectSizeGreaterThan!==void 0?n.ObjectSizeGreaterThan(t.ObjectSizeGreaterThan):t.ObjectSizeLessThan!==void 0?n.ObjectSizeLessThan(t.ObjectSizeLessThan):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(gte=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var hte;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.AccessPointArn!==void 0?n.AccessPointArn(t.AccessPointArn):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(hte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var _te;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(_te=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var rh=class e extends Jn.S3ServiceException{constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}};_.InvalidObjectState=rh;var oh=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=oh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var sh=class e extends Jn.S3ServiceException{constructor(t){super({name:"NotFound",$fault:"client",...t}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=sh;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var ih=class e extends Jn.S3ServiceException{constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=ih;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var Cte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=bte;var Ete=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=Pte;var vte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=vte;var wte=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=wte;var xte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=xte;var kte=e=>({...e,...e.Rules&&{Rules:e.Rules.map(t=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(t))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=kte;var Ate=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=Nte;var Ite=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=Ite;var Rte=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=Rte;var Tte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=Tte;var Bte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=Bte;var qte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=qte;var Dte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=Mte;var Fte=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=Lte;var jte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=jte;var Ute=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(t=>(0,_.InventoryConfigurationFilterSensitiveLog)(t))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=Ute;var zte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=zte;var Gte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=$te;var Kte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Kte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Vte=La(),ah=class e extends Vte.S3ServiceException{constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=ah;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Xte;(function(e){e.visit=(t,n)=>t.Records!==void 0?n.Records(t.Records):t.Stats!==void 0?n.Stats(t.Stats):t.Progress!==void 0?n.Progress(t.Progress):t.Cont!==void 0?n.Cont(t.Cont):t.End!==void 0?n.End(t.End):n._(t.$unknown[0],t.$unknown[1])})(Xte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var Wte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=Wte;var Yte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Yte;var Jte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=Jte;var Qte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Qte;var Zte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Zte;var ene=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=ene;var tne=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=tne;var nne=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=nne;var rne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=rne;var one=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=one;var sne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=sne;var ine=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=ine;var ane=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=ane});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=Aq(),B=Ne(),d=b(),cne=Bf(),St=Je(),dne=Zn(),lne=La(),une=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=une;var mne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Bq(e.MultipartUpload,t));let c;return e.MultipartUpload!==void 0&&(c=Bq(e.MultipartUpload,t),c=c.withName("CompleteMultipartUpload"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=mne;var pne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_CopyObjectCommand=pne;var fne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>E(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=Dq(e.CreateBucketConfiguration,t));let l;return e.CreateBucketConfiguration!==void 0&&(l=Dq(e.CreateBucketConfiguration,t),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,body:u})};p.se_CreateBucketCommand=fne;var yne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=yne;var gne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,body:u})};p.se_DeleteBucketCommand=gne;var hne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=hne;var _ne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=_ne;var Cne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=Cne;var Sne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=Sne;var bne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=bne;var Ene=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=Ene;var Pne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=Pne;var vne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=vne;var wne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=wne;var xne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=xne;var kne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=kne;var Ane=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=Ane;var One=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectCommand=One;var Nne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=Mq(e.Delete,t));let c;return e.Delete!==void 0&&(c=Mq(e.Delete,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=Nne;var Ine=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=Ine;var Rne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"DELETE",headers:a,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=Rne;var Tne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=Tne;var Bne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAclCommand=Bne;var qne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=qne;var Dne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Dne;var Mne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=Mne;var Fne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=Fne;var Lne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=Lne;var jne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=jne;var Une=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=Une;var zne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=zne;var Gne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=Gne;var Hne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Hne;var $ne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=$ne;var Kne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Kne;var Vne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Vne;var Xne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Xne;var Wne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Wne;var Yne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Yne;var Jne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=Jne;var Qne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Qne;var Zne=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectCommand=Zne;var ere=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectAclCommand=ere;var tre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-max-parts":[()=>E(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>E(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=tre;var nre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=nre;var rre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=rre;var ore=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=ore;var sre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=sre;var ire=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=ire;var are=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=are;var cre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"HEAD",headers:a,path:i,body:u})};p.se_HeadBucketCommand=cre;var dre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"HEAD",headers:a,path:i,query:u,body:l})};p.se_HeadObjectCommand=dre;var lre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=lre;var ure=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=ure;var mre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=mre;var pre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=pre;var fre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,body:u})};p.se_ListBucketsCommand=fre;var yre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=yre;var gre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectsCommand=gre;var hre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectsV2Command=hre;var _re=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=_re;var Cre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"GET",headers:a,path:i,query:u,body:l})};p.se_ListPartsCommand=Cre;var Sre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Nq(e.AccelerateConfiguration,t));let c;return e.AccelerateConfiguration!==void 0&&(c=Nq(e.AccelerateConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=Sre;var bre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=fm(e.AccessControlPolicy,t));let c;return e.AccessControlPolicy!==void 0&&(c=fm(e.AccessControlPolicy,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAclCommand=bre;var Ere=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Iq(e.AnalyticsConfiguration,t));let c;return e.AnalyticsConfiguration!==void 0&&(c=Iq(e.AnalyticsConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=Ere;var Pre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=qq(e.CORSConfiguration,t));let c;return e.CORSConfiguration!==void 0&&(c=qq(e.CORSConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=Pre;var vre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Yq(e.ServerSideEncryptionConfiguration,t));let c;return e.ServerSideEncryptionConfiguration!==void 0&&(c=Yq(e.ServerSideEncryptionConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=vre;var wre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=Fq(e.IntelligentTieringConfiguration,t));let c;return e.IntelligentTieringConfiguration!==void 0&&(c=Fq(e.IntelligentTieringConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=wre;var xre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Lq(e.InventoryConfiguration,t));let c;return e.InventoryConfiguration!==void 0&&(c=Lq(e.InventoryConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=xre;var kre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=Rq(e.LifecycleConfiguration,t));let c;return e.LifecycleConfiguration!==void 0&&(c=Rq(e.LifecycleConfiguration,t),c=c.withName("LifecycleConfiguration"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=kre;var Are=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Tq(e.BucketLoggingStatus,t));let c;return e.BucketLoggingStatus!==void 0&&(c=Tq(e.BucketLoggingStatus,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=Are;var Ore=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=jq(e.MetricsConfiguration,t));let c;return e.MetricsConfiguration!==void 0&&(c=jq(e.MetricsConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=Ore;var Nre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>E(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Uq(e.NotificationConfiguration,t));let c;return e.NotificationConfiguration!==void 0&&(c=Uq(e.NotificationConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=Nre;var Ire=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=$q(e.OwnershipControls,t));let c;return e.OwnershipControls!==void 0&&(c=$q(e.OwnershipControls,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=Ire;var Rre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>E(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let c;return e.Policy!==void 0&&(c=e.Policy,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=Rre;var Tre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Vq(e.ReplicationConfiguration,t));let c;return e.ReplicationConfiguration!==void 0&&(c=Vq(e.ReplicationConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=Tre;var Bre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Xq(e.RequestPaymentConfiguration,t));let c;return e.RequestPaymentConfiguration!==void 0&&(c=Xq(e.RequestPaymentConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=Bre;var qre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,t));let c;return e.Tagging!==void 0&&(c=ja(e.Tagging,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=qre;var Dre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=Jq(e.VersioningConfiguration,t));let c;return e.VersioningConfiguration!==void 0&&(c=Jq(e.VersioningConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Dre;var Mre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=Qq(e.WebsiteConfiguration,t));let c;return e.WebsiteConfiguration!==void 0&&(c=Qq(e.WebsiteConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=Mre;var Fre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectCommand=Fre;var Lre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=fm(e.AccessControlPolicy,t));let c;return e.AccessControlPolicy!==void 0&&(c=fm(e.AccessControlPolicy,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectAclCommand=Lre;var jre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Gq(e.LegalHold,t));let c;return e.LegalHold!==void 0&&(c=Gq(e.LegalHold,t),c=c.withName("LegalHold"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=jre;var Ure=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=zq(e.ObjectLockConfiguration,t));let c;return e.ObjectLockConfiguration!==void 0&&(c=zq(e.ObjectLockConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=Ure;var zre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Hq(e.Retention,t));let c;return e.Retention!==void 0&&(c=Hq(e.Retention,t),c=c.withName("Retention"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=zre;var Gre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,t));let c;return e.Tagging!==void 0&&(c=ja(e.Tagging,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=Gre;var Hre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=Kq(e.PublicAccessBlockConfiguration,t));let c;return e.PublicAccessBlockConfiguration!==void 0&&(c=Kq(e.PublicAccessBlockConfiguration,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Hre;var $re=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Wq(e.RestoreRequest,t));let c;return e.RestoreRequest!==void 0&&(c=Wq(e.RestoreRequest,t),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_RestoreObjectCommand=$re;var Kre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let c=new f.XmlNode("SelectObjectContentRequest");if(c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");c.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");c.addChildNode(y)}if(e.InputSerialization!==void 0){let y=rD(e.InputSerialization,t).withName("InputSerialization");c.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=oD(e.OutputSerialization,t).withName("OutputSerialization");c.addChildNode(y)}if(e.RequestProgress!==void 0){let y=Jce(e.RequestProgress,t).withName("RequestProgress");c.addChildNode(y)}if(e.ScanRange!==void 0){let y=nde(e.ScanRange,t).withName("ScanRange");c.addChildNode(y)}return l+=c.toString(),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Kre;var Vre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"content-type":"application/octet-stream","content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_UploadPartCommand=Vre;var Xre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:n,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Xre;var Wre=async(e,t)=>{let{hostname:n,protocol:r="https",port:o,path:s}=await t.endpoint(),a=(0,d.map)({},E,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>E(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>E(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>E(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>E(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>E(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>E(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>E(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>E(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let c;e.Body!==void 0&&(c=e.Body,l=c);let{hostname:y}=await t.endpoint();if(t.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Wre;var Yre=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_AbortMultipartUploadCommand=Yre;var Jre=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await Pae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Qre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zre(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(n.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(n.Location=(0,d.expectString)(r.Location)),n};p.de_CompleteMultipartUploadCommand=Qre;var Zre=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return toe(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Z(e.body,t));return n.CopyObjectResult=Fde(r,t),n};p.de_CopyObjectCommand=eoe;var toe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await wae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},noe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return roe(e,t);let n=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,t),n};p.de_CreateBucketCommand=noe;var roe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await Sae(n,t);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await bae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},ooe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return soe(e,t);let n=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(r.UploadId)),n};p.de_CreateMultipartUploadCommand=ooe;var soe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketCommand=ioe;var aoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketAnalyticsConfigurationCommand=coe;var doe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketCorsCommand=loe;var uoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketEncryptionCommand=moe;var poe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketIntelligentTieringConfigurationCommand=foe;var yoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketInventoryConfigurationCommand=goe;var hoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Coe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketLifecycleCommand=_oe;var Coe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return boe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketMetricsConfigurationCommand=Soe;var boe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketOwnershipControlsCommand=Eoe;var Poe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return woe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketPolicyCommand=voe;var woe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return koe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketReplicationCommand=xoe;var koe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Ooe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketTaggingCommand=Aoe;var Ooe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Ioe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteBucketWebsiteCommand=Noe;var Ioe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Toe(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteObjectCommand=Roe;var Toe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Deleted===""?n.Deleted=[]:r.Deleted!==void 0&&(n.Deleted=Hde((0,d.getArrayIfSingleItem)(r.Deleted),t)),r.Error===""?n.Errors=[]:r.Error!==void 0&&(n.Errors=Zde((0,d.getArrayIfSingleItem)(r.Error),t)),n};p.de_DeleteObjectsCommand=Boe;var qoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Moe(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,t),n};p.de_DeleteObjectTaggingCommand=Doe;var Moe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Loe(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_DeletePublicAccessBlockCommand=Foe;var Loe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uoe(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Status!==void 0&&(n.Status=(0,d.expectString)(r.Status)),n};p.de_GetBucketAccelerateConfigurationCommand=joe;var Uoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AccessControlList===""?n.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(n.Grants=dD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_GetBucketAclCommand=zoe;var Goe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.AnalyticsConfiguration=iD(r,t),n};p.de_GetBucketAnalyticsConfigurationCommand=Hoe;var $oe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CORSRule===""?n.CORSRules=[]:r.CORSRule!==void 0&&(n.CORSRules=Ude((0,d.getArrayIfSingleItem)(r.CORSRule),t)),n};p.de_GetBucketCorsCommand=Koe;var Voe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ServerSideEncryptionConfiguration=pue(r,t),n};p.de_GetBucketEncryptionCommand=Xoe;var Woe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.IntelligentTieringConfiguration=uD(r,t),n};p.de_GetBucketIntelligentTieringConfigurationCommand=Yoe;var Joe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.InventoryConfiguration=mD(r,t),n};p.de_GetBucketInventoryConfigurationCommand=Qoe;var Zoe=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Rule===""?n.Rules=[]:r.Rule!==void 0&&(n.Rules=vle((0,d.getArrayIfSingleItem)(r.Rule),t)),n};p.de_GetBucketLifecycleConfigurationCommand=ese;var tse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.LocationConstraint!==void 0&&(n.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),n};p.de_GetBucketLocationCommand=nse;var rse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.LoggingEnabled!==void 0&&(n.LoggingEnabled=wle(r.LoggingEnabled,t)),n};p.de_GetBucketLoggingCommand=ose;var sse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.MetricsConfiguration=pD(r,t),n};p.de_GetBucketMetricsConfigurationCommand=ise;var ase=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.EventBridgeConfiguration!==void 0&&(n.EventBridgeConfiguration=ele(r.EventBridgeConfiguration,t)),r.CloudFunctionConfiguration===""?n.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(n.LambdaFunctionConfigurations=Cle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),t)),r.QueueConfiguration===""?n.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(n.QueueConfigurations=Zle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),t)),r.TopicConfiguration===""?n.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(n.TopicConfigurations=Aue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),t)),n};p.de_GetBucketNotificationConfigurationCommand=cse;var dse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.OwnershipControls=Gle(r,t),n};p.de_GetBucketOwnershipControlsCommand=lse;var use=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},mse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=await hD(e.body,t);return n.Policy=(0,d.expectString)(r),n};p.de_GetBucketPolicyCommand=mse;var pse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.PolicyStatus=Wle(r,t),n};p.de_GetBucketPolicyStatusCommand=fse;var yse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ReplicationConfiguration=rue(r,t),n};p.de_GetBucketReplicationCommand=gse;var hse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_se=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Payer!==void 0&&(n.Payer=(0,d.expectString)(r.Payer)),n};p.de_GetBucketRequestPaymentCommand=_se;var Cse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.TagSet===""?n.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(n.TagSet=Sr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),t)),n};p.de_GetBucketTaggingCommand=Sse;var bse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.MfaDelete!==void 0&&(n.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(n.Status=(0,d.expectString)(r.Status)),n};p.de_GetBucketVersioningCommand=Ese;var Pse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ErrorDocument!==void 0&&(n.ErrorDocument=Qde(r.ErrorDocument,t)),r.IndexDocument!==void 0&&(n.IndexDocument=ale(r.IndexDocument,t)),r.RedirectAllRequestsTo!==void 0&&(n.RedirectAllRequestsTo=tue(r.RedirectAllRequestsTo,t)),r.RoutingRules===""?n.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(n.RoutingRules=lue((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),t)),n};p.de_GetBucketWebsiteCommand=vse;var wse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n};p.de_GetObjectCommand=xse;var kse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await Eae(n,t);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Ase=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AccessControlList===""?n.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(n.Grants=dD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_GetObjectAclCommand=Ase;var Ose=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Nse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Checksum!==void 0&&(n.Checksum=Bde(r.Checksum,t)),r.ETag!==void 0&&(n.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(n.ObjectParts=sle(r.ObjectParts,t)),r.ObjectSize!==void 0&&(n.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass)),n};p.de_GetObjectAttributesCommand=Nse;var Ise=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.LegalHold=Mle(r,t),n};p.de_GetObjectLegalHoldCommand=Rse;var Tse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Bse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.ObjectLockConfiguration=Dle(r,t),n};p.de_GetObjectLockConfigurationCommand=Bse;var qse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.Retention=Fle(r,t),n};p.de_GetObjectRetentionCommand=Dse;var Mse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.TagSet===""?n.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(n.TagSet=Sr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),t)),n};p.de_GetObjectTaggingCommand=Fse;var Lse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Use(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n};p.de_GetObjectTorrentCommand=jse;var Use=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,t));return n.PublicAccessBlockConfiguration=Jle(r,t),n};p.de_GetPublicAccessBlockCommand=zse;var Gse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_HeadBucketCommand=Hse;var $se=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await eD(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Kse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,t);let n=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,t),n};p.de_HeadObjectCommand=Kse;var Vse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await eD(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.AnalyticsConfiguration===""?n.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(n.AnalyticsConfigurationList=Ade((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),t)),r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketAnalyticsConfigurationsCommand=Xse;var Wse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?n.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(n.IntelligentTieringConfigurationList=dle((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketIntelligentTieringConfigurationsCommand=Yse;var Jse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?n.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(n.InventoryConfigurationList=ule((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketInventoryConfigurationsCommand=Qse;var Zse=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?n.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(n.MetricsConfigurationList=Ale((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),t)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),n};p.de_ListBucketMetricsConfigurationsCommand=eie;var tie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,t);let n=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Buckets===""?n.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(n.Buckets=Tde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),t)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),n};p.de_ListBucketsCommand=nie;var rie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(n.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(n.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(n.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(n.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(n.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?n.Uploads=[]:r.Upload!==void 0&&(n.Uploads=Ile((0,d.getArrayIfSingleItem)(r.Upload),t)),n};p.de_ListMultipartUploadsCommand=oie;var sie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Contents===""?n.Contents=[]:r.Contents!==void 0&&(n.Contents=fD((0,d.getArrayIfSingleItem)(r.Contents),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(n.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(n.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),n};p.de_ListObjectsCommand=iie;var aie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Zq(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},cie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.Contents===""?n.Contents=[]:r.Contents!==void 0&&(n.Contents=fD((0,d.getArrayIfSingleItem)(r.Contents),t)),r.ContinuationToken!==void 0&&(n.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(n.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(n.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(n.StartAfter=(0,d.expectString)(r.StartAfter)),n};p.de_ListObjectsV2Command=cie;var die=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Zq(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},lie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.CommonPrefixes===""?n.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(n.CommonPrefixes=gm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),t)),r.DeleteMarker===""?n.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(n.DeleteMarkers=Vde((0,d.getArrayIfSingleItem)(r.DeleteMarker),t)),r.Delimiter!==void 0&&(n.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(n.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(n.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(n.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(n.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(n.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(n.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(n.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?n.Versions=[]:r.Version!==void 0&&(n.Versions=zle((0,d.getArrayIfSingleItem)(r.Version),t)),n};p.de_ListObjectVersionsCommand=lie;var uie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,t);let n=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,t)),"body");return r.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(n.Initiator=lD(r.Initiator,t)),r.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(n.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(n.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(n.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(n.Owner=er(r.Owner,t)),r.PartNumberMarker!==void 0&&(n.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?n.Parts=[]:r.Part!==void 0&&(n.Parts=Vle((0,d.getArrayIfSingleItem)(r.Part),t)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(r.UploadId)),n};p.de_ListPartsCommand=mie;var pie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAccelerateConfigurationCommand=fie;var yie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAclCommand=gie;var hie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketAnalyticsConfigurationCommand=_ie;var Cie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketCorsCommand=Sie;var bie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketEncryptionCommand=Eie;var Pie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketIntelligentTieringConfigurationCommand=vie;var wie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketInventoryConfigurationCommand=xie;var kie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketLifecycleConfigurationCommand=Aie;var Oie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketLoggingCommand=Nie;var Iie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketMetricsConfigurationCommand=Rie;var Tie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketNotificationConfigurationCommand=Bie;var qie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketOwnershipControlsCommand=Die;var Mie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Fie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketPolicyCommand=Fie;var Lie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},jie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketReplicationCommand=jie;var Uie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},zie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketRequestPaymentCommand=zie;var Gie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketTaggingCommand=Hie;var $ie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketVersioningCommand=Kie;var Vie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutBucketWebsiteCommand=Xie;var Wie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Yie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,t);let n=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectCommand=Yie;var Jie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},Qie=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectAclCommand=Qie;var Zie=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await ym(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},eae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectLegalHoldCommand=eae;var tae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectLockConfigurationCommand=nae;var rae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},oae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectRetentionCommand=oae;var sae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},iae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return aae(e,t);let n=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,t),n};p.de_PutObjectTaggingCommand=iae;var aae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},cae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return dae(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_PutPublicAccessBlockCommand=cae;var dae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},lae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return uae(e,t);let n=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,t),n};p.de_RestoreObjectCommand=lae;var uae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await vae(n,t);default:let o=n.body;return D({output:e,parsedBody:o,errorCode:r})}},mae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return pae(e,t);let n=(0,d.map)({$metadata:I(e)}),r=e.body;return n.Payload=xae(r,t),n};p.de_SelectObjectContentCommand=mae;var pae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},fae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return yae(e,t);let n=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,t),n};p.de_UploadPartCommand=fae;var yae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},gae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hae(e,t);let n=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Z(e.body,t));return n.CopyPartResult=Lde(r,t),n};p.de_UploadPartCopyCommand=gae;var hae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},_ae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cae(e,t);let n=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,t),n};p.de_WriteGetObjectResponseCommand=_ae;var Cae=async(e,t)=>{let n={...e,body:await M(e.body,t)},r=F(e,n.body),o=n.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(lne.S3ServiceException),Sae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},bae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Eae=async(e,t)=>{let n=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(n.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Zq=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},ym=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},Pae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},eD=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},vae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new dne.ObjectAlreadyInActiveTierError({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},wae=async(e,t)=>{let n=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...n});return(0,d.decorateServiceException)(o,e.body)},xae=(e,t)=>t.eventStreamMarshaller.deserialize(e,async n=>n.Records!=null?{Records:await Nae(n.Records,t)}:n.Stats!=null?{Stats:await Iae(n.Stats,t)}:n.Progress!=null?{Progress:await Oae(n.Progress,t)}:n.Cont!=null?{Cont:await kae(n.Cont,t)}:n.End!=null?{End:await Aae(n.End,t)}:{$unknown:e}),kae=async(e,t)=>{let n={},r=await Z(e.body,t);return Object.assign(n,Mde(r,t)),n},Aae=async(e,t)=>{let n={},r=await Z(e.body,t);return Object.assign(n,Yde(r,t)),n},Oae=async(e,t)=>{let n={},r=await Z(e.body,t);return n.Details=Yle(r,t),n},Nae=async(e,t)=>{let n={};return n.Payload=e.body,n},Iae=async(e,t)=>{let n={},r=await Z(e.body,t);return n.Details=Sue(r,t),n},Rae=(e,t)=>{let n=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");n.addChildNode(r)}return n},Nq=(e,t)=>{let n=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");n.addChildNode(r)}return n},fm=(e,t)=>{let n=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=nD(e.Grants,t),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Owner!=null){let r=Mce(e.Owner,t).withName("Owner");n.addChildNode(r)}return n},Tae=(e,t)=>{let n=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");n.addChildNode(r)}return n},Bae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedHeader",n).withName("member")),qae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedMethod",n).withName("member")),Dae=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("AllowedOrigin",n).withName("member")),Mae=(e,t)=>{let n=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Iq=(e,t)=>{let n=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=Lae(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=ude(e.StorageClassAnalysis,t).withName("StorageClassAnalysis");n.addChildNode(r)}return n},Fae=(e,t)=>{let n=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=jae(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},Lae=(e,t)=>{let n=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},And:r=>{let o=Mae(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},jae=(e,t)=>{let n=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");n.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");n.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return n},Rq=(e,t)=>{let n=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&vce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Tq=(e,t)=>{let n=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=wce(e.LoggingEnabled,t).withName("LoggingEnabled");n.addChildNode(r)}return n},Bq=(e,t)=>{let n=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&zae(e.Parts,t).map(o=>{o=o.withName("Part"),n.addChildNode(o)}),n},Uae=(e,t)=>{let n=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");n.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");n.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");n.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");n.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");n.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");n.addChildNode(r)}return n},zae=(e,t)=>e.filter(n=>n!=null).map(n=>Uae(n,t).withName("member")),Gae=(e,t)=>{let n=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");n.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");n.addChildNode(r)}return n},qq=(e,t)=>{let n=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&$ae(e.CORSRules,t).map(o=>{o=o.withName("CORSRule"),n.addChildNode(o)}),n},Hae=(e,t)=>{let n=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.AllowedHeaders!=null&&Bae(e.AllowedHeaders,t).map(o=>{o=o.withName("AllowedHeader"),n.addChildNode(o)}),e.AllowedMethods!=null&&qae(e.AllowedMethods,t).map(o=>{o=o.withName("AllowedMethod"),n.addChildNode(o)}),e.AllowedOrigins!=null&&Dae(e.AllowedOrigins,t).map(o=>{o=o.withName("AllowedOrigin"),n.addChildNode(o)}),e.ExposeHeaders!=null&&nce(e.ExposeHeaders,t).map(o=>{o=o.withName("ExposeHeader"),n.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");n.addChildNode(r)}return n},$ae=(e,t)=>e.filter(n=>n!=null).map(n=>Hae(n,t).withName("member")),Dq=(e,t)=>{let n=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");n.addChildNode(r)}return n},Kae=(e,t)=>{let n=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");n.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");n.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");n.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");n.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");n.addChildNode(r)}return n},Vae=(e,t)=>{let n=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");n.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");n.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");n.addChildNode(r)}return n},Xae=(e,t)=>{let n=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");n.addChildNode(r)}return n},Mq=(e,t)=>{let n=new f.XmlNode("Delete");if(e.Objects!=null&&Bce(e.Objects,t).map(o=>{o=o.withName("Object"),n.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");n.addChildNode(r)}return n},Wae=(e,t)=>{let n=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Yae=(e,t)=>{let n=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=Tae(e.AccessControlTranslation,t).withName("AccessControlTranslation");n.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Qae(e.EncryptionConfiguration,t).withName("EncryptionConfiguration");n.addChildNode(r)}if(e.ReplicationTime!=null){let r=Yce(e.ReplicationTime,t).withName("ReplicationTime");n.addChildNode(r)}if(e.Metrics!=null){let r=kce(e.Metrics,t).withName("Metrics");n.addChildNode(r)}return n},Jae=(e,t)=>{let n=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");n.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");n.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");n.addChildNode(r)}return n},Qae=(e,t)=>{let n=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");n.addChildNode(r)}return n},Zae=(e,t)=>{let n=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}return n},ece=(e,t)=>new f.XmlNode("EventBridgeConfiguration"),ch=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("Event",n).withName("member")),tce=(e,t)=>{let n=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");n.addChildNode(r)}return n},nce=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("ExposeHeader",n).withName("member")),rce=(e,t)=>{let n=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");n.addChildNode(r)}return n},oce=(e,t)=>e.filter(n=>n!=null).map(n=>rce(n,t).withName("member")),sce=(e,t)=>{let n=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");n.addChildNode(r)}return n},ice=(e,t)=>{let n=new f.XmlNode("Grant");if(e.Grantee!=null){let r=tD(e.Grantee,t).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");n.addChildNode(r)}return n},tD=(e,t)=>{let n=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");n.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");n.addChildNode(r)}return e.Type!=null&&n.addAttribute("xsi:type",e.Type),n},nD=(e,t)=>e.filter(n=>n!=null).map(n=>ice(n,t).withName("Grant")),ace=(e,t)=>{let n=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");n.addChildNode(r)}return n},rD=(e,t)=>{let n=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Kae(e.CSV,t).withName("CSV");n.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");n.addChildNode(r)}if(e.JSON!=null){let r=gce(e.JSON,t).withName("JSON");n.addChildNode(r)}if(e.Parquet!=null){let r=jce(e.Parquet,t).withName("Parquet");n.addChildNode(r)}return n},cce=(e,t)=>{let n=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Fq=(e,t)=>{let n=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=dce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");n.addChildNode(r)}return e.Tierings!=null&&gde(e.Tierings,t).map(o=>{o=o.withName("Tiering"),n.addChildNode(o)}),n},dce=(e,t)=>{let n=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tag!=null){let r=No(e.Tag,t).withName("Tag");n.addChildNode(r)}if(e.And!=null){let r=cce(e.And,t).withName("And");n.addChildNode(r)}return n},Lq=(e,t)=>{let n=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=lce(e.Destination,t).withName("Destination");n.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");n.addChildNode(r)}if(e.Filter!=null){let r=mce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");n.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");n.addChildNode(r)}if(e.OptionalFields!=null){let r=pce(e.OptionalFields,t),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Schedule!=null){let r=yce(e.Schedule,t).withName("Schedule");n.addChildNode(r)}return n},lce=(e,t)=>{let n=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=fce(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},uce=(e,t)=>{let n=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=lde(e.SSES3,t).withName("SSE-S3");n.addChildNode(r)}if(e.SSEKMS!=null){let r=cde(e.SSEKMS,t).withName("SSE-KMS");n.addChildNode(r)}return n},mce=(e,t)=>{let n=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return n},pce=(e,t)=>e.filter(n=>n!=null).map(n=>f.XmlNode.of("InventoryOptionalField",n).withName("Field")),fce=(e,t)=>{let n=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");n.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");n.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Encryption!=null){let r=uce(e.Encryption,t).withName("Encryption");n.addChildNode(r)}return n},yce=(e,t)=>{let n=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");n.addChildNode(r)}return n},gce=(e,t)=>{let n=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");n.addChildNode(r)}return n},hce=(e,t)=>{let n=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");n.addChildNode(r)}return n},_ce=(e,t)=>{let n=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},Cce=(e,t)=>e.filter(n=>n!=null).map(n=>_ce(n,t).withName("member")),Sce=(e,t)=>{let n=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");n.addChildNode(r)}return n},bce=(e,t)=>{let n=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=Sce(e.Expiration,t).withName("Expiration");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Filter!=null){let r=Pce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.Transitions!=null&&Sde(e.Transitions,t).map(o=>{o=o.withName("Transition"),n.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&Rce(e.NoncurrentVersionTransitions,t).map(o=>{o=o.withName("NoncurrentVersionTransition"),n.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=Nce(e.NoncurrentVersionExpiration,t).withName("NoncurrentVersionExpiration");n.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=Rae(e.AbortIncompleteMultipartUpload,t).withName("AbortIncompleteMultipartUpload");n.addChildNode(r)}return n},Ece=(e,t)=>{let n=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");n.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");n.addChildNode(r)}return n},Pce=(e,t)=>{let n=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");n.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");n.addChildNode(o)},And:r=>{let o=Ece(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},vce=(e,t)=>e.filter(n=>n!=null).map(n=>bce(n,t).withName("member")),wce=(e,t)=>{let n=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");n.addChildNode(r)}if(e.TargetGrants!=null){let r=fde(e.TargetGrants,t),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");n.addChildNode(r)}return n},xce=(e,t)=>{let n=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");n.addChildNode(r)}return n},kce=(e,t)=>{let n=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.EventThreshold!=null){let r=sD(e.EventThreshold,t).withName("EventThreshold");n.addChildNode(r)}return n},Ace=(e,t)=>{let n=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");n.addChildNode(r)}return n},jq=(e,t)=>{let n=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");n.addChildNode(r)}if(e.Filter!=null){let r=Oce(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},Oce=(e,t)=>{let n=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");n.addChildNode(o)},And:r=>{let o=Ace(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},Nce=(e,t)=>{let n=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");n.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n},Ice=(e,t)=>{let n=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n},Rce=(e,t)=>e.filter(n=>n!=null).map(n=>Ice(n,t).withName("member")),Uq=(e,t)=>{let n=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&_de(e.TopicConfigurations,t).map(o=>{o=o.withName("TopicConfiguration"),n.addChildNode(o)}),e.QueueConfigurations!=null&&zce(e.QueueConfigurations,t).map(o=>{o=o.withName("QueueConfiguration"),n.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&Cce(e.LambdaFunctionConfigurations,t).map(o=>{o=o.withName("CloudFunctionConfiguration"),n.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=ece(e.EventBridgeConfiguration,t).withName("EventBridgeConfiguration");n.addChildNode(r)}return n},dh=(e,t)=>{let n=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=ede(e.Key,t).withName("S3Key");n.addChildNode(r)}return n},Tce=(e,t)=>{let n=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");n.addChildNode(r)}return n},Bce=(e,t)=>e.filter(n=>n!=null).map(n=>Tce(n,t).withName("member")),zq=(e,t)=>{let n=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");n.addChildNode(r)}if(e.Rule!=null){let r=qce(e.Rule,t).withName("Rule");n.addChildNode(r)}return n},Gq=(e,t)=>{let n=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Hq=(e,t)=>{let n=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");n.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");n.addChildNode(r)}return n},qce=(e,t)=>{let n=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Xae(e.DefaultRetention,t).withName("DefaultRetention");n.addChildNode(r)}return n},Dce=(e,t)=>{let n=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=tde(e.S3,t).withName("S3");n.addChildNode(r)}return n},oD=(e,t)=>{let n=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Vae(e.CSV,t).withName("CSV");n.addChildNode(r)}if(e.JSON!=null){let r=hce(e.JSON,t).withName("JSON");n.addChildNode(r)}return n},Mce=(e,t)=>{let n=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");n.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}return n},$q=(e,t)=>{let n=new f.XmlNode("OwnershipControls");return e.Rules!=null&&Lce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Fce=(e,t)=>{let n=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");n.addChildNode(r)}return n},Lce=(e,t)=>e.filter(n=>n!=null).map(n=>Fce(n,t).withName("member")),jce=(e,t)=>new f.XmlNode("ParquetInput"),Kq=(e,t)=>{let n=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");n.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");n.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");n.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");n.addChildNode(r)}return n},Uce=(e,t)=>{let n=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},zce=(e,t)=>e.filter(n=>n!=null).map(n=>Uce(n,t).withName("member")),Gce=(e,t)=>{let n=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");n.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");n.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");n.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");n.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");n.addChildNode(r)}return n},Hce=(e,t)=>{let n=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");n.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");n.addChildNode(r)}return n},$ce=(e,t)=>{let n=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Vq=(e,t)=>{let n=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");n.addChildNode(r)}return e.Rules!=null&&Wce(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},Kce=(e,t)=>{let n=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");n.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Filter!=null){let r=Xce(e.Filter,t).withName("Filter");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=ade(e.SourceSelectionCriteria,t).withName("SourceSelectionCriteria");n.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=tce(e.ExistingObjectReplication,t).withName("ExistingObjectReplication");n.addChildNode(r)}if(e.Destination!=null){let r=Yae(e.Destination,t).withName("Destination");n.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Wae(e.DeleteMarkerReplication,t).withName("DeleteMarkerReplication");n.addChildNode(r)}return n},Vce=(e,t)=>{let n=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");n.addChildNode(r)}return e.Tags!=null&&Io(e.Tags,t).map(o=>{o=o.withName("Tag"),n.addChildNode(o)}),n},Xce=(e,t)=>{let n=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");n.addChildNode(o)},Tag:r=>{let o=No(r,t).withName("Tag");n.addChildNode(o)},And:r=>{let o=Vce(r,t).withName("And");n.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new f.XmlNode(r).addChildNode(o))}}),n},Wce=(e,t)=>e.filter(n=>n!=null).map(n=>Kce(n,t).withName("member")),Yce=(e,t)=>{let n=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");n.addChildNode(r)}if(e.Time!=null){let r=sD(e.Time,t).withName("Time");n.addChildNode(r)}return n},sD=(e,t)=>{let n=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");n.addChildNode(r)}return n},Xq=(e,t)=>{let n=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");n.addChildNode(r)}return n},Jce=(e,t)=>{let n=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");n.addChildNode(r)}return n},Wq=(e,t)=>{let n=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=sce(e.GlacierJobParameters,t).withName("GlacierJobParameters");n.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");n.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");n.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");n.addChildNode(r)}if(e.SelectParameters!=null){let r=rde(e.SelectParameters,t).withName("SelectParameters");n.addChildNode(r)}if(e.OutputLocation!=null){let r=Dce(e.OutputLocation,t).withName("OutputLocation");n.addChildNode(r)}return n},Qce=(e,t)=>{let n=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=Gae(e.Condition,t).withName("Condition");n.addChildNode(r)}if(e.Redirect!=null){let r=Gce(e.Redirect,t).withName("Redirect");n.addChildNode(r)}return n},Zce=(e,t)=>e.filter(n=>n!=null).map(n=>Qce(n,t).withName("RoutingRule")),ede=(e,t)=>{let n=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&oce(e.FilterRules,t).map(o=>{o=o.withName("FilterRule"),n.addChildNode(o)}),n},tde=(e,t)=>{let n=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");n.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");n.addChildNode(r)}if(e.Encryption!=null){let r=Jae(e.Encryption,t).withName("Encryption");n.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");n.addChildNode(r)}if(e.AccessControlList!=null){let r=nD(e.AccessControlList,t),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.Tagging!=null){let r=ja(e.Tagging,t).withName("Tagging");n.addChildNode(r)}if(e.UserMetadata!=null){let r=bde(e.UserMetadata,t),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}return n},nde=(e,t)=>{let n=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");n.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");n.addChildNode(r)}return n},rde=(e,t)=>{let n=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=rD(e.InputSerialization,t).withName("InputSerialization");n.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");n.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");n.addChildNode(r)}if(e.OutputSerialization!=null){let r=oD(e.OutputSerialization,t).withName("OutputSerialization");n.addChildNode(r)}return n},ode=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");n.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");n.addChildNode(r)}return n},Yq=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&ide(e.Rules,t).map(o=>{o=o.withName("Rule"),n.addChildNode(o)}),n},sde=(e,t)=>{let n=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=ode(e.ApplyServerSideEncryptionByDefault,t).withName("ApplyServerSideEncryptionByDefault");n.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");n.addChildNode(r)}return n},ide=(e,t)=>e.filter(n=>n!=null).map(n=>sde(n,t).withName("member")),ade=(e,t)=>{let n=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=dde(e.SseKmsEncryptedObjects,t).withName("SseKmsEncryptedObjects");n.addChildNode(r)}if(e.ReplicaModifications!=null){let r=$ce(e.ReplicaModifications,t).withName("ReplicaModifications");n.addChildNode(r)}return n},cde=(e,t)=>{let n=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");n.addChildNode(r)}return n},dde=(e,t)=>{let n=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");n.addChildNode(r)}return n},lde=(e,t)=>new f.XmlNode("SSE-S3"),ude=(e,t)=>{let n=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=mde(e.DataExport,t).withName("DataExport");n.addChildNode(r)}return n},mde=(e,t)=>{let n=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");n.addChildNode(r)}if(e.Destination!=null){let r=Fae(e.Destination,t).withName("Destination");n.addChildNode(r)}return n},No=(e,t)=>{let n=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");n.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");n.addChildNode(r)}return n},ja=(e,t)=>{let n=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Io(e.TagSet,t),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}return n},Io=(e,t)=>e.filter(n=>n!=null).map(n=>No(n,t).withName("Tag")),pde=(e,t)=>{let n=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=tD(e.Grantee,t).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");n.addChildNode(r)}return n},fde=(e,t)=>e.filter(n=>n!=null).map(n=>pde(n,t).withName("Grant")),yde=(e,t)=>{let n=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");n.addChildNode(r)}return n},gde=(e,t)=>e.filter(n=>n!=null).map(n=>yde(n,t).withName("member")),hde=(e,t)=>{let n=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");n.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");n.addChildNode(r)}if(e.Events!=null&&ch(e.Events,t).map(o=>{o=o.withName("Event"),n.addChildNode(o)}),e.Filter!=null){let r=dh(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},_de=(e,t)=>e.filter(n=>n!=null).map(n=>hde(n,t).withName("member")),Cde=(e,t)=>{let n=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");n.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");n.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");n.addChildNode(r)}return n},Sde=(e,t)=>e.filter(n=>n!=null).map(n=>Cde(n,t).withName("member")),bde=(e,t)=>e.filter(n=>n!=null).map(n=>xce(n,t).withName("MetadataEntry")),Jq=(e,t)=>{let n=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");n.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");n.addChildNode(r)}return n},Qq=(e,t)=>{let n=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Zae(e.ErrorDocument,t).withName("ErrorDocument");n.addChildNode(r)}if(e.IndexDocument!=null){let r=ace(e.IndexDocument,t).withName("IndexDocument");n.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Hce(e.RedirectAllRequestsTo,t).withName("RedirectAllRequestsTo");n.addChildNode(r)}if(e.RoutingRules!=null){let r=Zce(e.RoutingRules,t),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),n.addChildNode(o)}return n},Ede=(e,t)=>{let n={};return e.DaysAfterInitiation!==void 0&&(n.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),n},Pde=(e,t)=>{let n={};return e.Owner!==void 0&&(n.Owner=(0,d.expectString)(e.Owner)),n},vde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),wde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),xde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),kde=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},iD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Nde((0,d.expectUnion)(e.Filter),t)),e.StorageClassAnalysis!==void 0&&(n.StorageClassAnalysis=bue(e.StorageClassAnalysis,t)),n},Ade=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>iD(n,t)),Ode=(e,t)=>{let n={};return e.S3BucketDestination!==void 0&&(n.S3BucketDestination=Ide(e.S3BucketDestination,t)),n},Nde=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.And!==void 0?{And:kde(e.And,t)}:{$unknown:Object.entries(e)[0]},Ide=(e,t)=>{let n={};return e.Format!==void 0&&(n.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(n.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},Rde=(e,t)=>{let n={};return e.Name!==void 0&&(n.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(n.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),n},Tde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Rde(n,t)),Bde=(e,t)=>{let n={};return e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},aD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),qde=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},gm=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>qde(n,t)),Dde=(e,t)=>{let n={};return e.HttpErrorCodeReturnedEquals!==void 0&&(n.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(n.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),n},Mde=(e,t)=>({}),Fde=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Lde=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},jde=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?n.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(n.AllowedHeaders=vde((0,d.getArrayIfSingleItem)(e.AllowedHeader),t)),e.AllowedMethod===""?n.AllowedMethods=[]:e.AllowedMethod!==void 0&&(n.AllowedMethods=wde((0,d.getArrayIfSingleItem)(e.AllowedMethod),t)),e.AllowedOrigin===""?n.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(n.AllowedOrigins=xde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),t)),e.ExposeHeader===""?n.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(n.ExposeHeaders=nle((0,d.getArrayIfSingleItem)(e.ExposeHeader),t)),e.MaxAgeSeconds!==void 0&&(n.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),n},Ude=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>jde(n,t)),zde=(e,t)=>{let n={};return e.Mode!==void 0&&(n.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(n.Years=(0,d.strictParseInt32)(e.Years)),n},Gde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(n.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(n.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),n},Hde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Gde(n,t)),$de=(e,t)=>{let n={};return e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(n.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),n},Kde=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Vde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>$de(n,t)),Xde=(e,t)=>{let n={};return e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(n.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(n.AccessControlTranslation=Pde(e.AccessControlTranslation,t)),e.EncryptionConfiguration!==void 0&&(n.EncryptionConfiguration=Wde(e.EncryptionConfiguration,t)),e.ReplicationTime!==void 0&&(n.ReplicationTime=cue(e.ReplicationTime,t)),e.Metrics!==void 0&&(n.Metrics=xle(e.Metrics,t)),n},Wde=(e,t)=>{let n={};return e.ReplicaKmsKeyID!==void 0&&(n.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),n},Yde=(e,t)=>({}),Jde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(n.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(n.Message=(0,d.expectString)(e.Message)),n},Qde=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),n},Zde=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Jde(n,t)),ele=(e,t)=>({}),lh=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),tle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},nle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),rle=(e,t)=>{let n={};return e.Name!==void 0&&(n.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(n.Value=(0,d.expectString)(e.Value)),n},ole=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>rle(n,t)),sle=(e,t)=>{let n={};return e.PartsCount!==void 0&&(n.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(n.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(n.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(n.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(n.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?n.Parts=[]:e.Part!==void 0&&(n.Parts=Xle((0,d.getArrayIfSingleItem)(e.Part),t)),n},ile=(e,t)=>{let n={};return e.Grantee!==void 0&&(n.Grantee=cD(e.Grantee,t)),e.Permission!==void 0&&(n.Permission=(0,d.expectString)(e.Permission)),n},cD=(e,t)=>{let n={};return e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(n.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(n.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(n.Type=(0,d.expectString)(e["xsi:type"])),n},dD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>ile(n,t)),ale=(e,t)=>{let n={};return e.Suffix!==void 0&&(n.Suffix=(0,d.expectString)(e.Suffix)),n},lD=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),n},cle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},uD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(n.Filter=lle(e.Filter,t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Tiering===""?n.Tierings=[]:e.Tiering!==void 0&&(n.Tierings=xue((0,d.getArrayIfSingleItem)(e.Tiering),t)),n},dle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>uD(n,t)),lle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(n.Tag=Ro(e.Tag,t)),e.And!==void 0&&(n.And=cle(e.And,t)),n},mD=(e,t)=>{let n={};return e.Destination!==void 0&&(n.Destination=mle(e.Destination,t)),e.IsEnabled!==void 0&&(n.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(n.Filter=fle(e.Filter,t)),e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(n.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?n.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(n.OptionalFields=yle((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),t)),e.Schedule!==void 0&&(n.Schedule=hle(e.Schedule,t)),n},ule=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>mD(n,t)),mle=(e,t)=>{let n={};return e.S3BucketDestination!==void 0&&(n.S3BucketDestination=gle(e.S3BucketDestination,t)),n},ple=(e,t)=>{let n={};return e["SSE-S3"]!==void 0&&(n.SSES3=Cue(e["SSE-S3"],t)),e["SSE-KMS"]!==void 0&&(n.SSEKMS=hue(e["SSE-KMS"],t)),n},fle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),n},yle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>(0,d.expectString)(n)),gle=(e,t)=>{let n={};return e.AccountId!==void 0&&(n.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(n.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(n.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(n.Encryption=ple(e.Encryption,t)),n},hle=(e,t)=>{let n={};return e.Frequency!==void 0&&(n.Frequency=(0,d.expectString)(e.Frequency)),n},_le=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(n.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Cle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>_le(n,t)),Sle=(e,t)=>{let n={};return e.Date!==void 0&&(n.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(n.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),n},ble=(e,t)=>{let n={};return e.Expiration!==void 0&&(n.Expiration=Sle(e.Expiration,t)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Ple((0,d.expectUnion)(e.Filter),t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Transition===""?n.Transitions=[]:e.Transition!==void 0&&(n.Transitions=Nue((0,d.getArrayIfSingleItem)(e.Transition),t)),e.NoncurrentVersionTransition===""?n.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(n.NoncurrentVersionTransitions=Ble((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),t)),e.NoncurrentVersionExpiration!==void 0&&(n.NoncurrentVersionExpiration=Rle(e.NoncurrentVersionExpiration,t)),e.AbortIncompleteMultipartUpload!==void 0&&(n.AbortIncompleteMultipartUpload=Ede(e.AbortIncompleteMultipartUpload,t)),n},Ele=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),e.ObjectSizeGreaterThan!==void 0&&(n.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(n.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),n},Ple=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:Ele(e.And,t)}:{$unknown:Object.entries(e)[0]},vle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>ble(n,t)),wle=(e,t)=>{let n={};return e.TargetBucket!==void 0&&(n.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?n.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(n.TargetGrants=vue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),t)),e.TargetPrefix!==void 0&&(n.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),n},xle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(n.EventThreshold=yD(e.EventThreshold,t)),n},kle=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),e.AccessPointArn!==void 0&&(n.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),n},pD=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(n.Filter=Ole((0,d.expectUnion)(e.Filter),t)),n},Ale=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>pD(n,t)),Ole=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:kle(e.And,t)}:{$unknown:Object.entries(e)[0]},Nle=(e,t)=>{let n={};return e.UploadId!==void 0&&(n.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(n.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.Initiator!==void 0&&(n.Initiator=lD(e.Initiator,t)),e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),n},Ile=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Nle(n,t)),Rle=(e,t)=>{let n={};return e.NoncurrentDays!==void 0&&(n.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(n.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),n},Tle=(e,t)=>{let n={};return e.NoncurrentDays!==void 0&&(n.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(n.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),n},Ble=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Tle(n,t)),uh=(e,t)=>{let n={};return e.S3Key!==void 0&&(n.Key=uue(e.S3Key,t)),n},qle=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?n.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=aD((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),t)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.RestoreStatus!==void 0&&(n.RestoreStatus=gD(e.RestoreStatus,t)),n},fD=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>qle(n,t)),Dle=(e,t)=>{let n={};return e.ObjectLockEnabled!==void 0&&(n.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(n.Rule=Lle(e.Rule,t)),n},Mle=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Fle=(e,t)=>{let n={};return e.Mode!==void 0&&(n.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(n.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),n},Lle=(e,t)=>{let n={};return e.DefaultRetention!==void 0&&(n.DefaultRetention=zde(e.DefaultRetention,t)),n},jle=(e,t)=>{let n={};return e.PartNumber!==void 0&&(n.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Ule=(e,t)=>{let n={};return e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?n.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(n.ChecksumAlgorithm=aD((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),t)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(n.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(n.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(n.Owner=er(e.Owner,t)),e.RestoreStatus!==void 0&&(n.RestoreStatus=gD(e.RestoreStatus,t)),n},zle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Ule(n,t)),er=(e,t)=>{let n={};return e.DisplayName!==void 0&&(n.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),n},Gle=(e,t)=>{let n={};return e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=$le((0,d.getArrayIfSingleItem)(e.Rule),t)),n},Hle=(e,t)=>{let n={};return e.ObjectOwnership!==void 0&&(n.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),n},$le=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Hle(n,t)),Kle=(e,t)=>{let n={};return e.PartNumber!==void 0&&(n.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(n.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(n.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(n.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(n.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(n.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(n.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(n.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),n},Vle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Kle(n,t)),Xle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>jle(n,t)),Wle=(e,t)=>{let n={};return e.IsPublic!==void 0&&(n.IsPublic=(0,d.parseBoolean)(e.IsPublic)),n},Yle=(e,t)=>{let n={};return e.BytesScanned!==void 0&&(n.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(n.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(n.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),n},Jle=(e,t)=>{let n={};return e.BlockPublicAcls!==void 0&&(n.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(n.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(n.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(n.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),n},Qle=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(n.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Zle=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Qle(n,t)),eue=(e,t)=>{let n={};return e.HostName!==void 0&&(n.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(n.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(n.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(n.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(n.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),n},tue=(e,t)=>{let n={};return e.HostName!==void 0&&(n.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(n.Protocol=(0,d.expectString)(e.Protocol)),n},nue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},rue=(e,t)=>{let n={};return e.Role!==void 0&&(n.Role=(0,d.expectString)(e.Role)),e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=aue((0,d.getArrayIfSingleItem)(e.Rule),t)),n},oue=(e,t)=>{let n={};return e.ID!==void 0&&(n.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(n.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(n.Filter=iue((0,d.expectUnion)(e.Filter),t)),e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(n.SourceSelectionCriteria=gue(e.SourceSelectionCriteria,t)),e.ExistingObjectReplication!==void 0&&(n.ExistingObjectReplication=tle(e.ExistingObjectReplication,t)),e.Destination!==void 0&&(n.Destination=Xde(e.Destination,t)),e.DeleteMarkerReplication!==void 0&&(n.DeleteMarkerReplication=Kde(e.DeleteMarkerReplication,t)),n},sue=(e,t)=>{let n={};return e.Prefix!==void 0&&(n.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?n.Tags=[]:e.Tag!==void 0&&(n.Tags=Sr((0,d.getArrayIfSingleItem)(e.Tag),t)),n},iue=(e,t)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ro(e.Tag,t)}:e.And!==void 0?{And:sue(e.And,t)}:{$unknown:Object.entries(e)[0]},aue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>oue(n,t)),cue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(n.Time=yD(e.Time,t)),n},yD=(e,t)=>{let n={};return e.Minutes!==void 0&&(n.Minutes=(0,d.strictParseInt32)(e.Minutes)),n},gD=(e,t)=>{let n={};return e.IsRestoreInProgress!==void 0&&(n.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(n.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),n},due=(e,t)=>{let n={};return e.Condition!==void 0&&(n.Condition=Dde(e.Condition,t)),e.Redirect!==void 0&&(n.Redirect=eue(e.Redirect,t)),n},lue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>due(n,t)),uue=(e,t)=>{let n={};return e.FilterRule===""?n.FilterRules=[]:e.FilterRule!==void 0&&(n.FilterRules=ole((0,d.getArrayIfSingleItem)(e.FilterRule),t)),n},mue=(e,t)=>{let n={};return e.SSEAlgorithm!==void 0&&(n.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(n.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),n},pue=(e,t)=>{let n={};return e.Rule===""?n.Rules=[]:e.Rule!==void 0&&(n.Rules=yue((0,d.getArrayIfSingleItem)(e.Rule),t)),n},fue=(e,t)=>{let n={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(n.ApplyServerSideEncryptionByDefault=mue(e.ApplyServerSideEncryptionByDefault,t)),e.BucketKeyEnabled!==void 0&&(n.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),n},yue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>fue(n,t)),gue=(e,t)=>{let n={};return e.SseKmsEncryptedObjects!==void 0&&(n.SseKmsEncryptedObjects=_ue(e.SseKmsEncryptedObjects,t)),e.ReplicaModifications!==void 0&&(n.ReplicaModifications=nue(e.ReplicaModifications,t)),n},hue=(e,t)=>{let n={};return e.KeyId!==void 0&&(n.KeyId=(0,d.expectString)(e.KeyId)),n},_ue=(e,t)=>{let n={};return e.Status!==void 0&&(n.Status=(0,d.expectString)(e.Status)),n},Cue=(e,t)=>({}),Sue=(e,t)=>{let n={};return e.BytesScanned!==void 0&&(n.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(n.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(n.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),n},bue=(e,t)=>{let n={};return e.DataExport!==void 0&&(n.DataExport=Eue(e.DataExport,t)),n},Eue=(e,t)=>{let n={};return e.OutputSchemaVersion!==void 0&&(n.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(n.Destination=Ode(e.Destination,t)),n},Ro=(e,t)=>{let n={};return e.Key!==void 0&&(n.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(n.Value=(0,d.expectString)(e.Value)),n},Sr=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Ro(n,t)),Pue=(e,t)=>{let n={};return e.Grantee!==void 0&&(n.Grantee=cD(e.Grantee,t)),e.Permission!==void 0&&(n.Permission=(0,d.expectString)(e.Permission)),n},vue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Pue(n,t)),wue=(e,t)=>{let n={};return e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(n.AccessTier=(0,d.expectString)(e.AccessTier)),n},xue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>wue(n,t)),kue=(e,t)=>{let n={};return e.Id!==void 0&&(n.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(n.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?n.Events=[]:e.Event!==void 0&&(n.Events=lh((0,d.getArrayIfSingleItem)(e.Event),t)),e.Filter!==void 0&&(n.Filter=uh(e.Filter,t)),n},Aue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>kue(n,t)),Oue=(e,t)=>{let n={};return e.Date!==void 0&&(n.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(n.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(n.StorageClass=(0,d.expectString)(e.StorageClass)),n},Nue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>Oue(n,t)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),hD=(e,t)=>(0,d.collectBody)(e,t).then(n=>t.utf8Encoder(n)),E=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Z=(e,t)=>hD(e,t).then(n=>{if(n.length){let r=new cne.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let o=r.parse(n),s="#text",a=Object.keys(o)[0],i=o[a];return i[s]&&(i[a]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,t)=>{let n=await Z(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},F=(e,t)=>{if((t==null?void 0:t.Code)!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"}});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.AbortMultipartUploadCommand=To.$Command=void 0;var Iue=x(),Rue=k(),CD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return CD.Command}});var Tue=w(),_D=q(),mh=class e extends CD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iue.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Tue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,_D.se_AbortMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,_D.de_AbortMultipartUploadCommand)(t,n)}};To.AbortMultipartUploadCommand=mh});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function SD(e){return t=>async n=>{let r={...n.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let a=r[s.target];if(a){let i=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):typeof a=="string"?e.utf8Decoder(a):new Uint8Array(a),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return t({...n,input:r})}}En.ssecMiddleware=SD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var Bue=e=>({applyToStack:t=>{t.add(SD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=Bue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CompleteMultipartUploadCommand=Bo.$Command=void 0;var que=Ir(),Due=bt(),Mue=x(),Fue=k(),PD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return PD.Command}});var Lue=w(),bD=Je(),ED=q(),fh=class e extends PD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Fue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,que.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,Due.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:bD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:bD.CompleteMultipartUploadOutputFilterSensitiveLog,[Lue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,ED.se_CompleteMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,ED.de_CompleteMultipartUploadCommand)(t,n)}};Bo.CompleteMultipartUploadCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CopyObjectCommand=qo.$Command=void 0;var jue=Ir(),Uue=bt(),zue=x(),Gue=k(),xD=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Hue=w(),vD=Je(),wD=q(),gh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Gue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,zue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,jue.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,Uue.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:vD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:vD.CopyObjectOutputFilterSensitiveLog,[Hue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wD.se_CopyObjectCommand)(t,n)}deserialize(t,n){return(0,wD.de_CopyObjectCommand)(t,n)}};qo.CopyObjectCommand=gh});var AD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function kD(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,o=await e.region();return(!r||!r.LocationConstraint)&&(n={...n,input:{...n.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),t(n)}}Pn.locationConstraintMiddleware=kD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var $ue=e=>({applyToStack:t=>{t.add(kD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=$ue});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.CreateBucketCommand=Do.$Command=void 0;var Kue=AD(),Vue=x(),Xue=k(),ND=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Wue=w(),OD=q(),_h=class e extends ND.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kue.getLocationConstraintPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OD.se_CreateBucketCommand)(t,n)}deserialize(t,n){return(0,OD.de_CreateBucketCommand)(t,n)}};Do.CreateBucketCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.CreateMultipartUploadCommand=Mo.$Command=void 0;var Yue=bt(),Jue=x(),Que=k(),TD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return TD.Command}});var Zue=w(),ID=Je(),RD=q(),Sh=class e extends TD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Que.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yue.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:ID.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:ID.CreateMultipartUploadOutputFilterSensitiveLog,[Zue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,RD.se_CreateMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,RD.de_CreateMultipartUploadCommand)(t,n)}};Mo.CreateMultipartUploadCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketAnalyticsConfigurationCommand=Fo.$Command=void 0;var eme=x(),tme=k(),qD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return qD.Command}});var nme=w(),BD=q(),Eh=class e extends qD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,eme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[nme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,BD.se_DeleteBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,BD.de_DeleteBucketAnalyticsConfigurationCommand)(t,n)}};Fo.DeleteBucketAnalyticsConfigurationCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketCommand=Lo.$Command=void 0;var rme=x(),ome=k(),MD=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return MD.Command}});var sme=w(),DD=q(),vh=class e extends MD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ome.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,rme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[sme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,DD.se_DeleteBucketCommand)(t,n)}deserialize(t,n){return(0,DD.de_DeleteBucketCommand)(t,n)}};Lo.DeleteBucketCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketCorsCommand=jo.$Command=void 0;var ime=x(),ame=k(),LD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return LD.Command}});var cme=w(),FD=q(),xh=class e extends LD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ame.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ime.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[cme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,FD.se_DeleteBucketCorsCommand)(t,n)}deserialize(t,n){return(0,FD.de_DeleteBucketCorsCommand)(t,n)}};jo.DeleteBucketCorsCommand=xh});var Oh=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketEncryptionCommand=Uo.$Command=void 0;var dme=x(),lme=k(),UD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return UD.Command}});var ume=w(),jD=q(),Ah=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ume.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,jD.se_DeleteBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,jD.de_DeleteBucketEncryptionCommand)(t,n)}};Uo.DeleteBucketEncryptionCommand=Ah});var Ih=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketIntelligentTieringConfigurationCommand=zo.$Command=void 0;var mme=x(),pme=k(),GD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return GD.Command}});var fme=w(),zD=q(),Nh=class e extends GD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[fme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,zD.se_DeleteBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,zD.de_DeleteBucketIntelligentTieringConfigurationCommand)(t,n)}};zo.DeleteBucketIntelligentTieringConfigurationCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketInventoryConfigurationCommand=Go.$Command=void 0;var yme=x(),gme=k(),$D=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return $D.Command}});var hme=w(),HD=q(),Rh=class e extends $D.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,HD.se_DeleteBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,HD.de_DeleteBucketInventoryConfigurationCommand)(t,n)}};Go.DeleteBucketInventoryConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketLifecycleCommand=Ho.$Command=void 0;var _me=x(),Cme=k(),VD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return VD.Command}});var Sme=w(),KD=q(),Bh=class e extends VD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_me.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,KD.se_DeleteBucketLifecycleCommand)(t,n)}deserialize(t,n){return(0,KD.de_DeleteBucketLifecycleCommand)(t,n)}};Ho.DeleteBucketLifecycleCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketMetricsConfigurationCommand=$o.$Command=void 0;var bme=x(),Eme=k(),WD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return WD.Command}});var Pme=w(),XD=q(),Dh=class e extends WD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Eme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Pme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XD.se_DeleteBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,XD.de_DeleteBucketMetricsConfigurationCommand)(t,n)}};$o.DeleteBucketMetricsConfigurationCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketOwnershipControlsCommand=Ko.$Command=void 0;var vme=x(),wme=k(),JD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return JD.Command}});var xme=w(),YD=q(),Fh=class e extends JD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YD.se_DeleteBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,YD.de_DeleteBucketOwnershipControlsCommand)(t,n)}};Ko.DeleteBucketOwnershipControlsCommand=Fh});var Uh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketPolicyCommand=Vo.$Command=void 0;var kme=x(),Ame=k(),ZD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return ZD.Command}});var Ome=w(),QD=q(),jh=class e extends ZD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ame.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ome.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QD.se_DeleteBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,QD.de_DeleteBucketPolicyCommand)(t,n)}};Vo.DeleteBucketPolicyCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketReplicationCommand=Xo.$Command=void 0;var Nme=x(),Ime=k(),t1=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return t1.Command}});var Rme=w(),e1=q(),zh=class e extends t1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ime.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Rme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,e1.se_DeleteBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,e1.de_DeleteBucketReplicationCommand)(t,n)}};Xo.DeleteBucketReplicationCommand=zh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteBucketTaggingCommand=Wo.$Command=void 0;var Tme=x(),Bme=k(),r1=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return r1.Command}});var qme=w(),n1=q(),Hh=class e extends r1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Bme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[qme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,n1.se_DeleteBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,n1.de_DeleteBucketTaggingCommand)(t,n)}};Wo.DeleteBucketTaggingCommand=Hh});var Vh=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.DeleteBucketWebsiteCommand=Yo.$Command=void 0;var Dme=x(),Mme=k(),s1=b();Object.defineProperty(Yo,"$Command",{enumerable:!0,get:function(){return s1.Command}});var Fme=w(),o1=q(),Kh=class e extends s1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,o1.se_DeleteBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,o1.de_DeleteBucketWebsiteCommand)(t,n)}};Yo.DeleteBucketWebsiteCommand=Kh});var Wh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DeleteObjectCommand=Jo.$Command=void 0;var Lme=x(),jme=k(),a1=b();Object.defineProperty(Jo,"$Command",{enumerable:!0,get:function(){return a1.Command}});var Ume=w(),i1=q(),Xh=class e extends a1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ume.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,i1.se_DeleteObjectCommand)(t,n)}deserialize(t,n){return(0,i1.de_DeleteObjectCommand)(t,n)}};Jo.DeleteObjectCommand=Xh});var Qo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var zme;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(zme=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var Gme;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Gme=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Yh=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.PRIORITY_ORDER_ALGORITHMS=Zo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Qo();Zo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Zo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var d1=m(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.getChecksumAlgorithmForRequest=void 0;var Hme=Qo(),c1=Yh(),$me=(e,{requestChecksumRequired:t,requestAlgorithmMember:n})=>{if(!n||!e[n])return t?Hme.ChecksumAlgorithm.MD5:void 0;let r=e[n];if(!c1.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${c1.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};hm.getChecksumAlgorithmForRequest=$me});var Jh=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumLocationName=void 0;var Kme=Qo(),Vme=e=>e===Kme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;_m.getChecksumLocationName=Vme});var l1=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.hasHeader=void 0;var Xme=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(n===r.toLowerCase())return!0;return!1};Cm.hasHeader=Xme});var bm=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isStreaming=void 0;var Wme=ic(),Yme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,Wme.isArrayBuffer)(e);Sm.isStreaming=Yme});var t_={};Ni(t_,{__assign:()=>Zh,__asyncDelegator:()=>dpe,__asyncGenerator:()=>cpe,__asyncValues:()=>lpe,__await:()=>za,__awaiter:()=>npe,__classPrivateFieldGet:()=>fpe,__classPrivateFieldSet:()=>ype,__createBinding:()=>ope,__decorate:()=>Zme,__exportStar:()=>spe,__extends:()=>Jme,__generator:()=>rpe,__importDefault:()=>ppe,__importStar:()=>mpe,__makeTemplateObject:()=>upe,__metadata:()=>tpe,__param:()=>epe,__read:()=>u1,__rest:()=>Qme,__spread:()=>ipe,__spreadArrays:()=>ape,__values:()=>e_});function Jme(e,t){Qh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Qme(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function epe(e,t){return function(n,r){t(n,r,e)}}function tpe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function npe(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,t||[])).next())})}function rpe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u1(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function ipe(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof za?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function dpe(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:za(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function lpe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof e_=="function"?e_(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function upe(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mpe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function ppe(e){return e&&e.__esModule?e:{default:e}}function fpe(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ype(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var Qh,Zh,n_=je(()=>{Qh=function(e,t){return Qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Qh(e,t)};Zh=function(){return Zh=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.AwsCrc32c=void 0;var m1=(n_(),J(t_)),r_=Ta(),p1=o_(),gpe=function(){function e(){this.crc32c=new p1.Crc32c}return e.prototype.update=function(t){(0,r_.isEmptyData)(t)||this.crc32c.update((0,r_.convertToBuffer)(t))},e.prototype.digest=function(){return m1.__awaiter(this,void 0,void 0,function(){return m1.__generator(this,function(t){return[2,(0,r_.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new p1.Crc32c},e}();Em.AwsCrc32c=gpe});var o_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var hpe=(n_(),J(t_)),_pe=Ta();function Cpe(e){return new y1().update(e).digest()}rr.crc32c=Cpe;var y1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var o=hpe.__values(t),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^bpe[(this.checksum^a)&255]}}catch(i){n={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=y1;var Spe=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],bpe=(0,_pe.uint32ArrayFrom)(Spe),Epe=f1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return Epe.AwsCrc32c}})});var s_=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.selectChecksumAlgorithmFunction=void 0;var Ppe=Ba(),vpe=o_(),Ga=Qo(),wpe=(e,t)=>({[Ga.ChecksumAlgorithm.MD5]:t.md5,[Ga.ChecksumAlgorithm.CRC32]:Ppe.AwsCrc32,[Ga.ChecksumAlgorithm.CRC32C]:vpe.AwsCrc32c,[Ga.ChecksumAlgorithm.SHA1]:t.sha1,[Ga.ChecksumAlgorithm.SHA256]:t.sha256})[e];Pm.selectChecksumAlgorithmFunction=wpe});var i_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.stringHasher=void 0;var xpe=st(),kpe=(e,t)=>{let n=new e;return n.update((0,xpe.toUint8Array)(t||"")),n.digest()};vm.stringHasher=kpe});var a_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.flexibleChecksumsMiddleware=void 0;var Ape=Ne(),Ope=d1(),Npe=Jh(),Ipe=l1(),Rpe=bm(),Tpe=s_(),Bpe=i_(),qpe=(e,t)=>n=>async r=>{if(!Ape.HttpRequest.isInstance(r.request))return n(r);let{request:o}=r,{body:s,headers:a}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:c,requestAlgorithmMember:y}=t,g=(0,Ope.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:c,requestAlgorithmMember:y}),C=s,P=a;if(g){let v=(0,Npe.getChecksumLocationName)(g),G=(0,Tpe.selectChecksumAlgorithmFunction)(g,e);if((0,Rpe.isStreaming)(s)){let{getAwsChunkedEncodingStream:Y,bodyLengthChecker:Le}=e;C=Y(s,{base64Encoder:i,bodyLengthChecker:Le,checksumLocationName:v,checksumAlgorithmFn:G,streamHasher:u}),P={...a,"content-encoding":a["content-encoding"]?`${a["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":a["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":v},delete P["content-length"]}else if(!(0,Ipe.hasHeader)(v,a)){let Y=await(0,Bpe.stringHasher)(G,s);P={...a,[v]:i(Y)}}}return await n({...r,request:{...o,headers:P,body:C}})};wm.flexibleChecksumsMiddleware=qpe});var g1=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.createReadStreamOnBuffer=void 0;var Dpe=require("stream");function Mpe(e){let t=new Dpe.Transform;return t.push(e),t.push(null),t}xm.createReadStreamOnBuffer=Mpe});var h1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.getChecksum=void 0;var Fpe=bm(),Lpe=i_(),jpe=async(e,{streamHasher:t,checksumAlgorithmFn:n,base64Encoder:r})=>{let o=(0,Fpe.isStreaming)(e)?t(n,e):(0,Lpe.stringHasher)(n,e);return r(await o)};km.getChecksum=jpe});var C1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksumAlgorithmListForResponse=void 0;var _1=Yh(),Upe=(e=[])=>{let t=[];for(let n of _1.PRIORITY_ORDER_ALGORITHMS)!e.includes(n)||!_1.CLIENT_SUPPORTED_ALGORITHMS.includes(n)||t.push(n);return t};Am.getChecksumAlgorithmListForResponse=Upe});var S1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.validateChecksumFromResponse=void 0;var zpe=h1(),Gpe=C1(),Hpe=Jh(),$pe=s_(),Kpe=async(e,{config:t,responseAlgorithms:n})=>{let r=(0,Gpe.getChecksumAlgorithmListForResponse)(n),{body:o,headers:s}=e;for(let a of r){let i=(0,Hpe.getChecksumLocationName)(a),u=s[i];if(u){let l=(0,$pe.selectChecksumAlgorithmFunction)(a,t),{streamHasher:c,base64Encoder:y}=t,g=await(0,zpe.getChecksum)(o,{streamHasher:c,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Om.validateChecksumFromResponse=Kpe});var E1=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.flexibleChecksumsResponseMiddleware=es.flexibleChecksumsResponseMiddlewareOptions=void 0;var Vpe=Ne(),Xpe=bm(),b1=g1(),Wpe=S1();es.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Ype=(e,t)=>n=>async r=>{if(!Vpe.HttpRequest.isInstance(r.request))return n(r);let o=r.input,s=await n(r),a=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=t;if(u&&o[u]==="ENABLED"){let c=(0,Xpe.isStreaming)(a.body);c&&(i=await e.streamCollector(a.body),a.body=(0,b1.createReadStreamOnBuffer)(i)),await(0,Wpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),c&&i&&(a.body=(0,b1.createReadStreamOnBuffer)(i))}return s};es.flexibleChecksumsResponseMiddleware=Ype});var v1=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.getFlexibleChecksumsPlugin=br.flexibleChecksumsMiddlewareOptions=void 0;var Jpe=a_(),P1=E1();br.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Qpe=(e,t)=>({applyToStack:n=>{n.add((0,Jpe.flexibleChecksumsMiddleware)(e,t),br.flexibleChecksumsMiddlewareOptions),n.addRelativeTo((0,P1.flexibleChecksumsResponseMiddleware)(e,t),P1.flexibleChecksumsResponseMiddlewareOptions)}});br.getFlexibleChecksumsPlugin=Qpe});var be=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var c_=(ne(),J(te));c_.__exportStar(Qo(),Ha);c_.__exportStar(a_(),Ha);c_.__exportStar(v1(),Ha)});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeleteObjectsCommand=ts.$Command=void 0;var Zpe=be(),efe=x(),tfe=k(),x1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return x1.Command}});var nfe=w(),w1=q(),d_=class e extends x1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,efe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zpe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,w1.se_DeleteObjectsCommand)(t,n)}deserialize(t,n){return(0,w1.de_DeleteObjectsCommand)(t,n)}};ts.DeleteObjectsCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DeleteObjectTaggingCommand=ns.$Command=void 0;var rfe=x(),ofe=k(),A1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return A1.Command}});var sfe=w(),k1=q(),u_=class e extends A1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ofe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,rfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,k1.se_DeleteObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,k1.de_DeleteObjectTaggingCommand)(t,n)}};ns.DeleteObjectTaggingCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.DeletePublicAccessBlockCommand=rs.$Command=void 0;var ife=x(),afe=k(),N1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return N1.Command}});var cfe=w(),O1=q(),p_=class e extends N1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,afe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ife.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[cfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,O1.se_DeletePublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,O1.de_DeletePublicAccessBlockCommand)(t,n)}};rs.DeletePublicAccessBlockCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAccelerateConfigurationCommand=os.$Command=void 0;var dfe=x(),lfe=k(),R1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return R1.Command}});var ufe=w(),I1=q(),y_=class e extends R1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,I1.se_GetBucketAccelerateConfigurationCommand)(t,n)}deserialize(t,n){return(0,I1.de_GetBucketAccelerateConfigurationCommand)(t,n)}};os.GetBucketAccelerateConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketAclCommand=ss.$Command=void 0;var mfe=x(),pfe=k(),B1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return B1.Command}});var ffe=w(),T1=q(),h_=class e extends B1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,T1.se_GetBucketAclCommand)(t,n)}deserialize(t,n){return(0,T1.de_GetBucketAclCommand)(t,n)}};ss.GetBucketAclCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketAnalyticsConfigurationCommand=is.$Command=void 0;var yfe=x(),gfe=k(),D1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return D1.Command}});var hfe=w(),q1=q(),C_=class e extends D1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,q1.se_GetBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,q1.de_GetBucketAnalyticsConfigurationCommand)(t,n)}};is.GetBucketAnalyticsConfigurationCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketCorsCommand=as.$Command=void 0;var _fe=x(),Cfe=k(),F1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return F1.Command}});var Sfe=w(),M1=q(),b_=class e extends F1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_fe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,M1.se_GetBucketCorsCommand)(t,n)}deserialize(t,n){return(0,M1.de_GetBucketCorsCommand)(t,n)}};as.GetBucketCorsCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketEncryptionCommand=cs.$Command=void 0;var bfe=x(),Efe=k(),j1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return j1.Command}});var Pfe=w(),vfe=Je(),L1=q(),P_=class e extends j1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Efe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:vfe.GetBucketEncryptionOutputFilterSensitiveLog,[Pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,L1.se_GetBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,L1.de_GetBucketEncryptionCommand)(t,n)}};cs.GetBucketEncryptionCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketIntelligentTieringConfigurationCommand=ds.$Command=void 0;var wfe=x(),xfe=k(),z1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return z1.Command}});var kfe=w(),U1=q(),w_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,xfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,wfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,U1.se_GetBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,U1.de_GetBucketIntelligentTieringConfigurationCommand)(t,n)}};ds.GetBucketIntelligentTieringConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketInventoryConfigurationCommand=ls.$Command=void 0;var Afe=x(),Ofe=k(),H1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return H1.Command}});var Nfe=w(),Ife=Je(),G1=q(),k_=class e extends H1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ofe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Afe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:Ife.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[Nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,G1.se_GetBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,G1.de_GetBucketInventoryConfigurationCommand)(t,n)}};ls.GetBucketInventoryConfigurationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLifecycleConfigurationCommand=us.$Command=void 0;var Rfe=x(),Tfe=k(),K1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return K1.Command}});var Bfe=w(),$1=q(),O_=class e extends K1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Tfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Bfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,$1.se_GetBucketLifecycleConfigurationCommand)(t,n)}deserialize(t,n){return(0,$1.de_GetBucketLifecycleConfigurationCommand)(t,n)}};us.GetBucketLifecycleConfigurationCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketLocationCommand=ms.$Command=void 0;var qfe=x(),Dfe=k(),X1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return X1.Command}});var Mfe=w(),V1=q(),I_=class e extends X1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Dfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,qfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Mfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,V1.se_GetBucketLocationCommand)(t,n)}deserialize(t,n){return(0,V1.de_GetBucketLocationCommand)(t,n)}};ms.GetBucketLocationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketLoggingCommand=ps.$Command=void 0;var Ffe=x(),Lfe=k(),Y1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return Y1.Command}});var jfe=w(),W1=q(),T_=class e extends Y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Lfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ffe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[jfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,W1.se_GetBucketLoggingCommand)(t,n)}deserialize(t,n){return(0,W1.de_GetBucketLoggingCommand)(t,n)}};ps.GetBucketLoggingCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketMetricsConfigurationCommand=fs.$Command=void 0;var Ufe=x(),zfe=k(),Q1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return Q1.Command}});var Gfe=w(),J1=q(),q_=class e extends Q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,zfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ufe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Gfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,J1.se_GetBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,J1.de_GetBucketMetricsConfigurationCommand)(t,n)}};fs.GetBucketMetricsConfigurationCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketNotificationConfigurationCommand=ys.$Command=void 0;var Hfe=x(),$fe=k(),eM=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return eM.Command}});var Kfe=w(),Z1=q(),M_=class e extends eM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$fe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,Z1.se_GetBucketNotificationConfigurationCommand)(t,n)}deserialize(t,n){return(0,Z1.de_GetBucketNotificationConfigurationCommand)(t,n)}};ys.GetBucketNotificationConfigurationCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketOwnershipControlsCommand=gs.$Command=void 0;var Vfe=x(),Xfe=k(),nM=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return nM.Command}});var Wfe=w(),tM=q(),L_=class e extends nM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,tM.se_GetBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,tM.de_GetBucketOwnershipControlsCommand)(t,n)}};gs.GetBucketOwnershipControlsCommand=L_});var z_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketPolicyCommand=hs.$Command=void 0;var Yfe=x(),Jfe=k(),oM=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return oM.Command}});var Qfe=w(),rM=q(),U_=class e extends oM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Jfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Qfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,rM.se_GetBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,rM.de_GetBucketPolicyCommand)(t,n)}};hs.GetBucketPolicyCommand=U_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketPolicyStatusCommand=_s.$Command=void 0;var Zfe=x(),eye=k(),iM=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return iM.Command}});var tye=w(),sM=q(),G_=class e extends iM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,eye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[tye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,sM.se_GetBucketPolicyStatusCommand)(t,n)}deserialize(t,n){return(0,sM.de_GetBucketPolicyStatusCommand)(t,n)}};_s.GetBucketPolicyStatusCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketReplicationCommand=Cs.$Command=void 0;var nye=x(),rye=k(),cM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return cM.Command}});var oye=w(),aM=q(),$_=class e extends cM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,rye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,nye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[oye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aM.se_GetBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,aM.de_GetBucketReplicationCommand)(t,n)}};Cs.GetBucketReplicationCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketRequestPaymentCommand=Ss.$Command=void 0;var sye=x(),iye=k(),lM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return lM.Command}});var aye=w(),dM=q(),V_=class e extends lM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,iye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,sye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,dM.se_GetBucketRequestPaymentCommand)(t,n)}deserialize(t,n){return(0,dM.de_GetBucketRequestPaymentCommand)(t,n)}};Ss.GetBucketRequestPaymentCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketTaggingCommand=bs.$Command=void 0;var cye=x(),dye=k(),mM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var lye=w(),uM=q(),W_=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,dye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[lye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,uM.se_GetBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,uM.de_GetBucketTaggingCommand)(t,n)}};bs.GetBucketTaggingCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetBucketVersioningCommand=Es.$Command=void 0;var uye=x(),mye=k(),fM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return fM.Command}});var pye=w(),pM=q(),J_=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,mye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,uye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pM.se_GetBucketVersioningCommand)(t,n)}deserialize(t,n){return(0,pM.de_GetBucketVersioningCommand)(t,n)}};Es.GetBucketVersioningCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetBucketWebsiteCommand=Ps.$Command=void 0;var fye=x(),yye=k(),gM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return gM.Command}});var gye=w(),yM=q(),Z_=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,fye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[gye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yM.se_GetBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,yM.de_GetBucketWebsiteCommand)(t,n)}};Ps.GetBucketWebsiteCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectAclCommand=vs.$Command=void 0;var hye=x(),_ye=k(),_M=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return _M.Command}});var Cye=w(),hM=q(),tC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,_ye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,hye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Cye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,hM.se_GetObjectAclCommand)(t,n)}deserialize(t,n){return(0,hM.de_GetObjectAclCommand)(t,n)}};vs.GetObjectAclCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectAttributesCommand=ws.$Command=void 0;var Sye=bt(),bye=x(),Eye=k(),SM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return SM.Command}});var Pye=w(),vye=Je(),CM=q(),rC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Eye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Sye.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:vye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,CM.se_GetObjectAttributesCommand)(t,n)}deserialize(t,n){return(0,CM.de_GetObjectAttributesCommand)(t,n)}};ws.GetObjectAttributesCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectCommand=xs.$Command=void 0;var wye=be(),xye=bt(),kye=x(),Aye=k(),PM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return PM.Command}});var Oye=w(),bM=Je(),EM=q(),sC=class e extends PM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Aye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xye.getSsecPlugin)(n)),this.middlewareStack.use((0,wye.getFlexibleChecksumsPlugin)(n,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:bM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:bM.GetObjectOutputFilterSensitiveLog,[Oye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,EM.se_GetObjectCommand)(t,n)}deserialize(t,n){return(0,EM.de_GetObjectCommand)(t,n)}};xs.GetObjectCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectLegalHoldCommand=ks.$Command=void 0;var Nye=x(),Iye=k(),wM=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return wM.Command}});var Rye=w(),vM=q(),aC=class e extends wM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Iye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,vM.se_GetObjectLegalHoldCommand)(t,n)}deserialize(t,n){return(0,vM.de_GetObjectLegalHoldCommand)(t,n)}};ks.GetObjectLegalHoldCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectLockConfigurationCommand=As.$Command=void 0;var Tye=x(),Bye=k(),kM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return kM.Command}});var qye=w(),xM=q(),dC=class e extends kM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Bye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,xM.se_GetObjectLockConfigurationCommand)(t,n)}deserialize(t,n){return(0,xM.de_GetObjectLockConfigurationCommand)(t,n)}};As.GetObjectLockConfigurationCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectRetentionCommand=Os.$Command=void 0;var Dye=x(),Mye=k(),OM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return OM.Command}});var Fye=w(),AM=q(),uC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,AM.se_GetObjectRetentionCommand)(t,n)}deserialize(t,n){return(0,AM.de_GetObjectRetentionCommand)(t,n)}};Os.GetObjectRetentionCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetObjectTaggingCommand=Ns.$Command=void 0;var Lye=x(),jye=k(),IM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Uye=w(),NM=q(),pC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Uye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,NM.se_GetObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,NM.de_GetObjectTaggingCommand)(t,n)}};Ns.GetObjectTaggingCommand=pC});var gC=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.GetObjectTorrentCommand=Is.$Command=void 0;var zye=x(),Gye=k(),TM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return TM.Command}});var Hye=w(),$ye=Je(),RM=q(),yC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Gye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,zye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:$ye.GetObjectTorrentOutputFilterSensitiveLog,[Hye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,RM.se_GetObjectTorrentCommand)(t,n)}deserialize(t,n){return(0,RM.de_GetObjectTorrentCommand)(t,n)}};Is.GetObjectTorrentCommand=yC});var _C=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.GetPublicAccessBlockCommand=Rs.$Command=void 0;var Kye=x(),Vye=k(),qM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Xye=w(),BM=q(),hC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Vye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Xye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,BM.se_GetPublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,BM.de_GetPublicAccessBlockCommand)(t,n)}};Rs.GetPublicAccessBlockCommand=hC});var $a=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.HeadBucketCommand=Ts.$Command=void 0;var Wye=x(),Yye=k(),MM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return MM.Command}});var Jye=w(),DM=q(),CC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Yye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Jye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,DM.se_HeadBucketCommand)(t,n)}deserialize(t,n){return(0,DM.de_HeadBucketCommand)(t,n)}};Ts.HeadBucketCommand=CC});var Ka=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.HeadObjectCommand=Bs.$Command=void 0;var Qye=bt(),Zye=x(),ege=k(),jM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return jM.Command}});var tge=w(),FM=Je(),LM=q(),SC=class e extends jM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ege.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qye.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:FM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:FM.HeadObjectOutputFilterSensitiveLog,[tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,LM.se_HeadObjectCommand)(t,n)}deserialize(t,n){return(0,LM.de_HeadObjectCommand)(t,n)}};Bs.HeadObjectCommand=SC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketAnalyticsConfigurationsCommand=qs.$Command=void 0;var nge=x(),rge=k(),zM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var oge=w(),UM=q(),bC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,rge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,nge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,UM.se_ListBucketAnalyticsConfigurationsCommand)(t,n)}deserialize(t,n){return(0,UM.de_ListBucketAnalyticsConfigurationsCommand)(t,n)}};qs.ListBucketAnalyticsConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketIntelligentTieringConfigurationsCommand=Ds.$Command=void 0;var sge=x(),ige=k(),HM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return HM.Command}});var age=w(),GM=q(),PC=class e extends HM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ige.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,sge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,GM.se_ListBucketIntelligentTieringConfigurationsCommand)(t,n)}deserialize(t,n){return(0,GM.de_ListBucketIntelligentTieringConfigurationsCommand)(t,n)}};Ds.ListBucketIntelligentTieringConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketInventoryConfigurationsCommand=Ms.$Command=void 0;var cge=x(),dge=k(),KM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return KM.Command}});var lge=w(),uge=Je(),$M=q(),wC=class e extends KM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,dge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:uge.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,$M.se_ListBucketInventoryConfigurationsCommand)(t,n)}deserialize(t,n){return(0,$M.de_ListBucketInventoryConfigurationsCommand)(t,n)}};Ms.ListBucketInventoryConfigurationsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListBucketMetricsConfigurationsCommand=Fs.$Command=void 0;var mge=x(),pge=k(),XM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return XM.Command}});var fge=w(),VM=q(),kC=class e extends XM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[fge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,VM.se_ListBucketMetricsConfigurationsCommand)(t,n)}deserialize(t,n){return(0,VM.de_ListBucketMetricsConfigurationsCommand)(t,n)}};Fs.ListBucketMetricsConfigurationsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListBucketsCommand=Ls.$Command=void 0;var yge=x(),gge=k(),YM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return YM.Command}});var hge=w(),WM=q(),OC=class e extends YM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,WM.se_ListBucketsCommand)(t,n)}deserialize(t,n){return(0,WM.de_ListBucketsCommand)(t,n)}};Ls.ListBucketsCommand=OC});var RC=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListMultipartUploadsCommand=js.$Command=void 0;var _ge=x(),Cge=k(),QM=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return QM.Command}});var Sge=w(),JM=q(),IC=class e extends QM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_ge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,JM.se_ListMultipartUploadsCommand)(t,n)}deserialize(t,n){return(0,JM.de_ListMultipartUploadsCommand)(t,n)}};js.ListMultipartUploadsCommand=IC});var BC=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListObjectsCommand=Us.$Command=void 0;var bge=x(),Ege=k(),eF=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return eF.Command}});var Pge=w(),ZM=q(),TC=class e extends eF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ege.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Pge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,ZM.se_ListObjectsCommand)(t,n)}deserialize(t,n){return(0,ZM.de_ListObjectsCommand)(t,n)}};Us.ListObjectsCommand=TC});var Nm=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectsV2Command=zs.$Command=void 0;var vge=x(),wge=k(),nF=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return nF.Command}});var xge=w(),tF=q(),qC=class e extends nF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,tF.se_ListObjectsV2Command)(t,n)}deserialize(t,n){return(0,tF.de_ListObjectsV2Command)(t,n)}};zs.ListObjectsV2Command=qC});var MC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.ListObjectVersionsCommand=Gs.$Command=void 0;var kge=x(),Age=k(),oF=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return oF.Command}});var Oge=w(),rF=q(),DC=class e extends oF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Age.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,rF.se_ListObjectVersionsCommand)(t,n)}deserialize(t,n){return(0,rF.de_ListObjectVersionsCommand)(t,n)}};Gs.ListObjectVersionsCommand=DC});var Im=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.ListPartsCommand=Hs.$Command=void 0;var Nge=bt(),Ige=x(),Rge=k(),iF=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return iF.Command}});var Tge=w(),Bge=Je(),sF=q(),FC=class e extends iF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ige.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nge.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Bge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,sF.se_ListPartsCommand)(t,n)}deserialize(t,n){return(0,sF.de_ListPartsCommand)(t,n)}};Hs.ListPartsCommand=FC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAccelerateConfigurationCommand=$s.$Command=void 0;var qge=be(),Dge=x(),Mge=k(),cF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return cF.Command}});var Fge=w(),aF=q(),LC=class e extends cF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,qge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aF.se_PutBucketAccelerateConfigurationCommand)(t,n)}deserialize(t,n){return(0,aF.de_PutBucketAccelerateConfigurationCommand)(t,n)}};$s.PutBucketAccelerateConfigurationCommand=LC});var zC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketAclCommand=Ks.$Command=void 0;var Lge=be(),jge=x(),Uge=k(),lF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return lF.Command}});var zge=w(),dF=q(),UC=class e extends lF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Uge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,jge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,dF.se_PutBucketAclCommand)(t,n)}deserialize(t,n){return(0,dF.de_PutBucketAclCommand)(t,n)}};Ks.PutBucketAclCommand=UC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketAnalyticsConfigurationCommand=Vs.$Command=void 0;var Gge=x(),Hge=k(),mF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return mF.Command}});var $ge=w(),uF=q(),GC=class e extends mF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Hge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[$ge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,uF.se_PutBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,uF.de_PutBucketAnalyticsConfigurationCommand)(t,n)}};Vs.PutBucketAnalyticsConfigurationCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketCorsCommand=Xs.$Command=void 0;var Kge=be(),Vge=x(),Xge=k(),fF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return fF.Command}});var Wge=w(),pF=q(),$C=class e extends fF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pF.se_PutBucketCorsCommand)(t,n)}deserialize(t,n){return(0,pF.de_PutBucketCorsCommand)(t,n)}};Xs.PutBucketCorsCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketEncryptionCommand=Ws.$Command=void 0;var Yge=be(),Jge=x(),Qge=k(),gF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return gF.Command}});var Zge=w(),ehe=Je(),yF=q(),VC=class e extends gF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Qge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:ehe.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yF.se_PutBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,yF.de_PutBucketEncryptionCommand)(t,n)}};Ws.PutBucketEncryptionCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketIntelligentTieringConfigurationCommand=Ys.$Command=void 0;var the=x(),nhe=k(),_F=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return _F.Command}});var rhe=w(),hF=q(),WC=class e extends _F.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,nhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,the.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[rhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,hF.se_PutBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,hF.de_PutBucketIntelligentTieringConfigurationCommand)(t,n)}};Ys.PutBucketIntelligentTieringConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketInventoryConfigurationCommand=Js.$Command=void 0;var ohe=x(),she=k(),SF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return SF.Command}});var ihe=w(),ahe=Je(),CF=q(),JC=class e extends SF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,she.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ohe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:ahe.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[ihe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,CF.se_PutBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,CF.de_PutBucketInventoryConfigurationCommand)(t,n)}};Js.PutBucketInventoryConfigurationCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketLifecycleConfigurationCommand=Qs.$Command=void 0;var che=be(),dhe=x(),lhe=k(),EF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return EF.Command}});var uhe=w(),bF=q(),ZC=class e extends EF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,che.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,bF.se_PutBucketLifecycleConfigurationCommand)(t,n)}deserialize(t,n){return(0,bF.de_PutBucketLifecycleConfigurationCommand)(t,n)}};Qs.PutBucketLifecycleConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketLoggingCommand=Zs.$Command=void 0;var mhe=be(),phe=x(),fhe=k(),vF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return vF.Command}});var yhe=w(),PF=q(),tS=class e extends vF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,phe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[yhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,PF.se_PutBucketLoggingCommand)(t,n)}deserialize(t,n){return(0,PF.de_PutBucketLoggingCommand)(t,n)}};Zs.PutBucketLoggingCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketMetricsConfigurationCommand=ei.$Command=void 0;var ghe=x(),hhe=k(),xF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return xF.Command}});var _he=w(),wF=q(),rS=class e extends xF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,hhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ghe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[_he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wF.se_PutBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,wF.de_PutBucketMetricsConfigurationCommand)(t,n)}};ei.PutBucketMetricsConfigurationCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketNotificationConfigurationCommand=ti.$Command=void 0;var Che=x(),She=k(),AF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return AF.Command}});var bhe=w(),kF=q(),sS=class e extends AF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,She.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Che.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[bhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,kF.se_PutBucketNotificationConfigurationCommand)(t,n)}deserialize(t,n){return(0,kF.de_PutBucketNotificationConfigurationCommand)(t,n)}};ti.PutBucketNotificationConfigurationCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketOwnershipControlsCommand=ni.$Command=void 0;var Ehe=be(),Phe=x(),vhe=k(),NF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return NF.Command}});var whe=w(),OF=q(),aS=class e extends NF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,vhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Phe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ehe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OF.se_PutBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,OF.de_PutBucketOwnershipControlsCommand)(t,n)}};ni.PutBucketOwnershipControlsCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketPolicyCommand=ri.$Command=void 0;var xhe=be(),khe=x(),Ahe=k(),RF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return RF.Command}});var Ohe=w(),IF=q(),dS=class e extends RF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ahe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,khe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,IF.se_PutBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,IF.de_PutBucketPolicyCommand)(t,n)}};ri.PutBucketPolicyCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketReplicationCommand=oi.$Command=void 0;var Nhe=be(),Ihe=x(),Rhe=k(),BF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return BF.Command}});var The=w(),TF=q(),uS=class e extends BF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ihe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[The.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,TF.se_PutBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,TF.de_PutBucketReplicationCommand)(t,n)}};oi.PutBucketReplicationCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketRequestPaymentCommand=si.$Command=void 0;var Bhe=be(),qhe=x(),Dhe=k(),DF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return DF.Command}});var Mhe=w(),qF=q(),pS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Dhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,qhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Mhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,qF.se_PutBucketRequestPaymentCommand)(t,n)}deserialize(t,n){return(0,qF.de_PutBucketRequestPaymentCommand)(t,n)}};si.PutBucketRequestPaymentCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketTaggingCommand=ii.$Command=void 0;var Fhe=be(),Lhe=x(),jhe=k(),FF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Uhe=w(),MF=q(),yS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Fhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,MF.se_PutBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,MF.de_PutBucketTaggingCommand)(t,n)}};ii.PutBucketTaggingCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutBucketVersioningCommand=ai.$Command=void 0;var zhe=be(),Ghe=x(),Hhe=k(),jF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return jF.Command}});var $he=w(),LF=q(),hS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Hhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ghe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,zhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[$he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,LF.se_PutBucketVersioningCommand)(t,n)}deserialize(t,n){return(0,LF.de_PutBucketVersioningCommand)(t,n)}};ai.PutBucketVersioningCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutBucketWebsiteCommand=ci.$Command=void 0;var Khe=be(),Vhe=x(),Xhe=k(),zF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return zF.Command}});var Whe=w(),UF=q(),CS=class e extends zF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Khe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,UF.se_PutBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,UF.de_PutBucketWebsiteCommand)(t,n)}};ci.PutBucketWebsiteCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectAclCommand=di.$Command=void 0;var Yhe=be(),Jhe=x(),Qhe=k(),HF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return HF.Command}});var Zhe=w(),GF=q(),bS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Qhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Zhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,GF.se_PutObjectAclCommand)(t,n)}deserialize(t,n){return(0,GF.de_PutObjectAclCommand)(t,n)}};di.PutObjectAclCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectCommand=li.$Command=void 0;var e_e=be(),t_e=Ir(),n_e=bt(),r_e=x(),o_e=k(),VF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return VF.Command}});var s_e=w(),$F=Je(),KF=q(),PS=class e extends VF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,r_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,t_e.getCheckContentLengthHeaderPlugin)(n)),this.middlewareStack.use((0,n_e.getSsecPlugin)(n)),this.middlewareStack.use((0,e_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:$F.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:$F.PutObjectOutputFilterSensitiveLog,[s_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,KF.se_PutObjectCommand)(t,n)}deserialize(t,n){return(0,KF.de_PutObjectCommand)(t,n)}};li.PutObjectCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectLegalHoldCommand=ui.$Command=void 0;var i_e=be(),a_e=x(),c_e=k(),WF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return WF.Command}});var d_e=w(),XF=q(),wS=class e extends WF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,a_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,i_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[d_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XF.se_PutObjectLegalHoldCommand)(t,n)}deserialize(t,n){return(0,XF.de_PutObjectLegalHoldCommand)(t,n)}};ui.PutObjectLegalHoldCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectLockConfigurationCommand=mi.$Command=void 0;var l_e=be(),u_e=x(),m_e=k(),JF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var p_e=w(),YF=q(),kS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,u_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,l_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[p_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YF.se_PutObjectLockConfigurationCommand)(t,n)}deserialize(t,n){return(0,YF.de_PutObjectLockConfigurationCommand)(t,n)}};mi.PutObjectLockConfigurationCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutObjectRetentionCommand=pi.$Command=void 0;var f_e=be(),y_e=x(),g_e=k(),ZF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return ZF.Command}});var h_e=w(),QF=q(),OS=class e extends ZF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,y_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,f_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[h_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QF.se_PutObjectRetentionCommand)(t,n)}deserialize(t,n){return(0,QF.de_PutObjectRetentionCommand)(t,n)}};pi.PutObjectRetentionCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PutObjectTaggingCommand=fi.$Command=void 0;var __e=be(),C_e=x(),S_e=k(),tL=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return tL.Command}});var b_e=w(),eL=q(),IS=class e extends tL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,S_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,C_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,__e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[b_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,eL.se_PutObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,eL.de_PutObjectTaggingCommand)(t,n)}};fi.PutObjectTaggingCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.PutPublicAccessBlockCommand=yi.$Command=void 0;var E_e=be(),P_e=x(),v_e=k(),rL=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var w_e=w(),nL=q(),TS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,P_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,E_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[w_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,nL.se_PutPublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,nL.de_PutPublicAccessBlockCommand)(t,n)}};yi.PutPublicAccessBlockCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.RestoreObjectCommand=gi.$Command=void 0;var x_e=be(),k_e=x(),A_e=k(),sL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return sL.Command}});var O_e=w(),N_e=Zn(),oL=q(),qS=class e extends sL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,A_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,k_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,x_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:N_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[O_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,oL.se_RestoreObjectCommand)(t,n)}deserialize(t,n){return(0,oL.de_RestoreObjectCommand)(t,n)}};gi.RestoreObjectCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SelectObjectContentCommand=hi.$Command=void 0;var I_e=bt(),R_e=x(),T_e=k(),cL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return cL.Command}});var B_e=w(),iL=Zn(),aL=q(),MS=class e extends cL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,R_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,I_e.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:iL.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:iL.SelectObjectContentOutputFilterSensitiveLog,[B_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aL.se_SelectObjectContentCommand)(t,n)}deserialize(t,n){return(0,aL.de_SelectObjectContentCommand)(t,n)}};hi.SelectObjectContentCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.UploadPartCommand=_i.$Command=void 0;var q_e=be(),D_e=bt(),M_e=x(),F_e=k(),uL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return uL.Command}});var L_e=w(),dL=Zn(),lL=q(),LS=class e extends uL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,F_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,M_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,D_e.getSsecPlugin)(n)),this.middlewareStack.use((0,q_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:dL.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:dL.UploadPartOutputFilterSensitiveLog,[L_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,lL.se_UploadPartCommand)(t,n)}deserialize(t,n){return(0,lL.de_UploadPartCommand)(t,n)}};_i.UploadPartCommand=LS});var zS=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.UploadPartCopyCommand=Ci.$Command=void 0;var j_e=Ir(),U_e=bt(),z_e=x(),G_e=k(),fL=b();Object.defineProperty(Ci,"$Command",{enumerable:!0,get:function(){return fL.Command}});var H_e=w(),mL=Zn(),pL=q(),US=class e extends fL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,z_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,j_e.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,U_e.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:mL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:mL.UploadPartCopyOutputFilterSensitiveLog,[H_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pL.se_UploadPartCopyCommand)(t,n)}deserialize(t,n){return(0,pL.de_UploadPartCopyCommand)(t,n)}};Ci.UploadPartCopyCommand=US});var HS=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.WriteGetObjectResponseCommand=Si.$Command=void 0;var $_e=x(),K_e=k(),gL=b();Object.defineProperty(Si,"$Command",{enumerable:!0,get:function(){return gL.Command}});var V_e=w(),X_e=Zn(),yL=q(),GS=class e extends gL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,$_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:X_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[V_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yL.se_WriteGetObjectResponseCommand)(t,n)}deserialize(t,n){return(0,yL.de_WriteGetObjectResponseCommand)(t,n)}};Si.WriteGetObjectResponseCommand=GS});var hL=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.S3=void 0;var W_e=b(),Y_e=ph(),J_e=yh(),Q_e=hh(),Z_e=Ch(),eCe=bh(),tCe=Ph(),nCe=wh(),rCe=kh(),oCe=Oh(),sCe=Ih(),iCe=Th(),aCe=qh(),cCe=Mh(),dCe=Lh(),lCe=Uh(),uCe=Gh(),mCe=$h(),pCe=Vh(),fCe=Wh(),yCe=l_(),gCe=m_(),hCe=f_(),_Ce=g_(),CCe=__(),SCe=S_(),bCe=E_(),ECe=v_(),PCe=x_(),vCe=A_(),wCe=N_(),xCe=R_(),kCe=B_(),ACe=D_(),OCe=F_(),NCe=j_(),ICe=z_(),RCe=H_(),TCe=K_(),BCe=X_(),qCe=Y_(),DCe=Q_(),MCe=eC(),FCe=nC(),LCe=oC(),jCe=iC(),UCe=cC(),zCe=lC(),GCe=mC(),HCe=fC(),$Ce=gC(),KCe=_C(),VCe=$a(),XCe=Ka(),WCe=EC(),YCe=vC(),JCe=xC(),QCe=AC(),ZCe=NC(),eSe=RC(),tSe=BC(),nSe=Nm(),rSe=MC(),oSe=Im(),sSe=jC(),iSe=zC(),aSe=HC(),cSe=KC(),dSe=XC(),lSe=YC(),uSe=QC(),mSe=eS(),pSe=nS(),fSe=oS(),ySe=iS(),gSe=cS(),hSe=lS(),_Se=mS(),CSe=fS(),SSe=gS(),bSe=_S(),ESe=SS(),PSe=ES(),vSe=vS(),wSe=xS(),xSe=AS(),kSe=NS(),ASe=RS(),OSe=BS(),NSe=DS(),ISe=FS(),RSe=jS(),TSe=zS(),BSe=HS(),qSe=La(),DSe={AbortMultipartUploadCommand:Y_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:J_e.CompleteMultipartUploadCommand,CopyObjectCommand:Q_e.CopyObjectCommand,CreateBucketCommand:Z_e.CreateBucketCommand,CreateMultipartUploadCommand:eCe.CreateMultipartUploadCommand,DeleteBucketCommand:nCe.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:tCe.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:rCe.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:oCe.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:sCe.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:iCe.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:aCe.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:cCe.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:dCe.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:lCe.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:uCe.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:mCe.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:pCe.DeleteBucketWebsiteCommand,DeleteObjectCommand:fCe.DeleteObjectCommand,DeleteObjectsCommand:yCe.DeleteObjectsCommand,DeleteObjectTaggingCommand:gCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:hCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:_Ce.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:CCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:SCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:bCe.GetBucketCorsCommand,GetBucketEncryptionCommand:ECe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:PCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:vCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:wCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:xCe.GetBucketLocationCommand,GetBucketLoggingCommand:kCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:ACe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:OCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:NCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:ICe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:RCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:TCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:BCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:qCe.GetBucketTaggingCommand,GetBucketVersioningCommand:DCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:MCe.GetBucketWebsiteCommand,GetObjectCommand:jCe.GetObjectCommand,GetObjectAclCommand:FCe.GetObjectAclCommand,GetObjectAttributesCommand:LCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:UCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:zCe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:GCe.GetObjectRetentionCommand,GetObjectTaggingCommand:HCe.GetObjectTaggingCommand,GetObjectTorrentCommand:$Ce.GetObjectTorrentCommand,GetPublicAccessBlockCommand:KCe.GetPublicAccessBlockCommand,HeadBucketCommand:VCe.HeadBucketCommand,HeadObjectCommand:XCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:WCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:YCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:JCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:QCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:ZCe.ListBucketsCommand,ListMultipartUploadsCommand:eSe.ListMultipartUploadsCommand,ListObjectsCommand:tSe.ListObjectsCommand,ListObjectsV2Command:nSe.ListObjectsV2Command,ListObjectVersionsCommand:rSe.ListObjectVersionsCommand,ListPartsCommand:oSe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:sSe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:iSe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:aSe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:cSe.PutBucketCorsCommand,PutBucketEncryptionCommand:dSe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:lSe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:uSe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:mSe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:pSe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:fSe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:ySe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:gSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:hSe.PutBucketPolicyCommand,PutBucketReplicationCommand:_Se.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:CSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:SSe.PutBucketTaggingCommand,PutBucketVersioningCommand:bSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:ESe.PutBucketWebsiteCommand,PutObjectCommand:vSe.PutObjectCommand,PutObjectAclCommand:PSe.PutObjectAclCommand,PutObjectLegalHoldCommand:wSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:xSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:kSe.PutObjectRetentionCommand,PutObjectTaggingCommand:ASe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:OSe.PutPublicAccessBlockCommand,RestoreObjectCommand:NSe.RestoreObjectCommand,SelectObjectContentCommand:ISe.SelectObjectContentCommand,UploadPartCommand:RSe.UploadPartCommand,UploadPartCopyCommand:TSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:BSe.WriteGetObjectResponseCommand},Rm=class extends qSe.S3Client{};Tm.S3=Rm;(0,W_e.createAggregatedClient)(DSe,Rm)});var _L=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(ne(),J(te));L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(Uh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(Vh(),T);L.__exportStar(Wh(),T);L.__exportStar(m_(),T);L.__exportStar(l_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(z_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(gC(),T);L.__exportStar(_C(),T);L.__exportStar($a(),T);L.__exportStar(Ka(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(NC(),T);L.__exportStar(RC(),T);L.__exportStar(MC(),T);L.__exportStar(BC(),T);L.__exportStar(Nm(),T);L.__exportStar(Im(),T);L.__exportStar(jC(),T);L.__exportStar(zC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T);L.__exportStar(zS(),T);L.__exportStar(HS(),T)});var SL=m(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0})});var bL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.paginateListObjectsV2=void 0;var MSe=Nm(),FSe=La(),LSe=async(e,t,...n)=>await e.send(new MSe.ListObjectsV2Command(t),...n);async function*jSe(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.ContinuationToken=r,t.MaxKeys=e.pageSize,e.client instanceof FSe.S3Client)s=await LSe(e.client,t,...n);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Bm.paginateListObjectsV2=jSe});var EL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListParts=void 0;var USe=Im(),zSe=La(),GSe=async(e,t,...n)=>await e.send(new USe.ListPartsCommand(t),...n);async function*HSe(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.PartNumberMarker=r,t.MaxParts=e.pageSize,e.client instanceof zSe.S3Client)s=await GSe(e.client,t,...n);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}qm.paginateListParts=HSe});var PL=m(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var $S=(ne(),J(te));$S.__exportStar(SL(),Va);$S.__exportStar(bL(),Va);$S.__exportStar(EL(),Va)});var Xa=m((EOe,AL)=>{var Dm=Object.defineProperty,$Se=Object.getOwnPropertyDescriptor,KSe=Object.getOwnPropertyNames,VSe=Object.prototype.hasOwnProperty,or=(e,t)=>Dm(e,"name",{value:t,configurable:!0}),XSe=(e,t)=>{for(var n in t)Dm(e,n,{get:t[n],enumerable:!0})},WSe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KSe(t))!VSe.call(e,o)&&o!==n&&Dm(e,o,{get:()=>t[o],enumerable:!(r=$Se(t,o))||r.enumerable});return e},YSe=e=>WSe(Dm({},"__esModule",{value:!0}),e),wL={};XSe(wL,{WaiterState:()=>kL,checkExceptions:()=>QSe,createWaiter:()=>rbe,waiterServiceDefaults:()=>xL});AL.exports=YSe(wL);var JSe=or(e=>new Promise(t=>setTimeout(t,e*1e3)),"sleep"),xL={minDelay:2,maxDelay:120},kL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(kL||{}),QSe=or(e=>{if(e.state==="ABORTED"){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state==="TIMEOUT"){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),ZSe=or((e,t,n,r)=>{if(r>n)return t;let o=e*2**(r-1);return ebe(e,o)},"exponentialBackoffWithJitter"),ebe=or((e,t)=>e+Math.random()*(t-e),"randomInRange"),tbe=or(async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:o,abortSignal:s},a,i)=>{var u;let{state:l,reason:c}=await i(o,a);if(l!=="RETRY")return{state:l,reason:c};let y=1,g=Date.now()+n*1e3,C=Math.log(t/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let P=ZSe(e,t,C,y);if(Date.now()+P*1e3>g)return{state:"TIMEOUT"};await JSe(P);let{state:A,reason:v}=await i(o,a);if(A!=="RETRY")return{state:A,reason:v};y+=1}},"runPolling"),nbe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(t=>{e.onabort=()=>t({state:"ABORTED"})}),"abortTimeout"),rbe=or(async(e,t,n)=>{let r={...xL,...e};nbe(r);let o=[tbe(r,t,n)];return e.abortController&&o.push(vL(e.abortController.signal)),e.abortSignal&&o.push(vL(e.abortSignal)),Promise.race(o)},"createWaiter")});var NL=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.waitUntilBucketExists=Ei.waitForBucketExists=void 0;var bi=Xa(),obe=$a(),OL=async(e,t)=>{let n;try{return n=await e.send(new obe.HeadBucketCommand(t)),{state:bi.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:bi.WaiterState.RETRY,reason:n}}return{state:bi.WaiterState.RETRY,reason:n}},sbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,bi.createWaiter)({...n,...e},t,OL)};Ei.waitForBucketExists=sbe;var ibe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,bi.createWaiter)({...n,...e},t,OL);return(0,bi.checkExceptions)(r)};Ei.waitUntilBucketExists=ibe});var RL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilBucketNotExists=Pi.waitForBucketNotExists=void 0;var Wa=Xa(),abe=$a(),IL=async(e,t)=>{let n;try{n=await e.send(new abe.HeadBucketCommand(t))}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:Wa.WaiterState.SUCCESS,reason:n}}return{state:Wa.WaiterState.RETRY,reason:n}},cbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,Wa.createWaiter)({...n,...e},t,IL)};Pi.waitForBucketNotExists=cbe;var dbe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,Wa.createWaiter)({...n,...e},t,IL);return(0,Wa.checkExceptions)(r)};Pi.waitUntilBucketNotExists=dbe});var BL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.waitUntilObjectExists=wi.waitForObjectExists=void 0;var vi=Xa(),lbe=Ka(),TL=async(e,t)=>{let n;try{return n=await e.send(new lbe.HeadObjectCommand(t)),{state:vi.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:vi.WaiterState.RETRY,reason:n}}return{state:vi.WaiterState.RETRY,reason:n}},ube=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,vi.createWaiter)({...n,...e},t,TL)};wi.waitForObjectExists=ube;var mbe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,vi.createWaiter)({...n,...e},t,TL);return(0,vi.checkExceptions)(r)};wi.waitUntilObjectExists=mbe});var DL=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.waitUntilObjectNotExists=xi.waitForObjectNotExists=void 0;var Ya=Xa(),pbe=Ka(),qL=async(e,t)=>{let n;try{n=await e.send(new pbe.HeadObjectCommand(t))}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:Ya.WaiterState.SUCCESS,reason:n}}return{state:Ya.WaiterState.RETRY,reason:n}},fbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,Ya.createWaiter)({...n,...e},t,qL)};xi.waitForObjectNotExists=fbe;var ybe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,Ya.createWaiter)({...n,...e},t,qL);return(0,Ya.checkExceptions)(r)};xi.waitUntilObjectNotExists=ybe});var ML=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Mm=(ne(),J(te));Mm.__exportStar(NL(),ki);Mm.__exportStar(RL(),ki);Mm.__exportStar(BL(),ki);Mm.__exportStar(DL(),ki)});var LL=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var FL=(ne(),J(te));FL.__exportStar(Je(),Fm);FL.__exportStar(Zn(),Fm)});var jL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var Ai=(ne(),J(te));Ai.__exportStar(La(),Qt);Ai.__exportStar(hL(),Qt);Ai.__exportStar(_L(),Qt);Ai.__exportStar(PL(),Qt);Ai.__exportStar(ML(),Qt);Ai.__exportStar(LL(),Qt);var gbe=ja();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return gbe.S3ServiceException}})});var Cbe={};Ni(Cbe,{handler:()=>_be});module.exports=J(Cbe);var UL=Er(jL()),zL=Er(require("delay")),hbe=new UL.S3;async function _be(){console.log(hbe),await(0,zL.default)(5)}0&&(module.exports={handler}); +`);let o=r.parse(n),s="#text",a=Object.keys(o)[0],i=o[a];return i[s]&&(i[a]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,t)=>{let n=await Z(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},F=(e,t)=>{if((t==null?void 0:t.Code)!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"}});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.AbortMultipartUploadCommand=To.$Command=void 0;var Iue=x(),Rue=k(),CD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return CD.Command}});var Tue=w(),_D=q(),mh=class e extends CD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iue.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Tue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,_D.se_AbortMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,_D.de_AbortMultipartUploadCommand)(t,n)}};To.AbortMultipartUploadCommand=mh});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function SD(e){return t=>async n=>{let r={...n.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let a=r[s.target];if(a){let i=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):typeof a=="string"?e.utf8Decoder(a):new Uint8Array(a),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return t({...n,input:r})}}En.ssecMiddleware=SD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var Bue=e=>({applyToStack:t=>{t.add(SD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=Bue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CompleteMultipartUploadCommand=Bo.$Command=void 0;var que=Ir(),Due=bt(),Mue=x(),Fue=k(),PD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return PD.Command}});var Lue=w(),bD=Je(),ED=q(),fh=class e extends PD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Fue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,que.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,Due.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:bD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:bD.CompleteMultipartUploadOutputFilterSensitiveLog,[Lue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,ED.se_CompleteMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,ED.de_CompleteMultipartUploadCommand)(t,n)}};Bo.CompleteMultipartUploadCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CopyObjectCommand=qo.$Command=void 0;var jue=Ir(),Uue=bt(),zue=x(),Gue=k(),xD=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Hue=w(),vD=Je(),wD=q(),gh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Gue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,zue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,jue.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,Uue.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:vD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:vD.CopyObjectOutputFilterSensitiveLog,[Hue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wD.se_CopyObjectCommand)(t,n)}deserialize(t,n){return(0,wD.de_CopyObjectCommand)(t,n)}};qo.CopyObjectCommand=gh});var AD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function kD(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,o=await e.region();return(!r||!r.LocationConstraint)&&(n={...n,input:{...n.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),t(n)}}Pn.locationConstraintMiddleware=kD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var $ue=e=>({applyToStack:t=>{t.add(kD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=$ue});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.CreateBucketCommand=Do.$Command=void 0;var Kue=AD(),Vue=x(),Xue=k(),ND=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Wue=w(),OD=q(),_h=class e extends ND.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xue.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kue.getLocationConstraintPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OD.se_CreateBucketCommand)(t,n)}deserialize(t,n){return(0,OD.de_CreateBucketCommand)(t,n)}};Do.CreateBucketCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.CreateMultipartUploadCommand=Mo.$Command=void 0;var Yue=bt(),Jue=x(),Que=k(),TD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return TD.Command}});var Zue=w(),ID=Je(),RD=q(),Sh=class e extends TD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Que.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jue.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yue.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:ID.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:ID.CreateMultipartUploadOutputFilterSensitiveLog,[Zue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,RD.se_CreateMultipartUploadCommand)(t,n)}deserialize(t,n){return(0,RD.de_CreateMultipartUploadCommand)(t,n)}};Mo.CreateMultipartUploadCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketAnalyticsConfigurationCommand=Fo.$Command=void 0;var eme=x(),tme=k(),qD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return qD.Command}});var nme=w(),BD=q(),Eh=class e extends qD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,eme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[nme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,BD.se_DeleteBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,BD.de_DeleteBucketAnalyticsConfigurationCommand)(t,n)}};Fo.DeleteBucketAnalyticsConfigurationCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketCommand=Lo.$Command=void 0;var rme=x(),ome=k(),MD=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return MD.Command}});var sme=w(),DD=q(),vh=class e extends MD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ome.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,rme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[sme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,DD.se_DeleteBucketCommand)(t,n)}deserialize(t,n){return(0,DD.de_DeleteBucketCommand)(t,n)}};Lo.DeleteBucketCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketCorsCommand=jo.$Command=void 0;var ime=x(),ame=k(),LD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return LD.Command}});var cme=w(),FD=q(),xh=class e extends LD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ame.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ime.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[cme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,FD.se_DeleteBucketCorsCommand)(t,n)}deserialize(t,n){return(0,FD.de_DeleteBucketCorsCommand)(t,n)}};jo.DeleteBucketCorsCommand=xh});var Oh=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketEncryptionCommand=Uo.$Command=void 0;var dme=x(),lme=k(),UD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return UD.Command}});var ume=w(),jD=q(),Ah=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ume.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,jD.se_DeleteBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,jD.de_DeleteBucketEncryptionCommand)(t,n)}};Uo.DeleteBucketEncryptionCommand=Ah});var Ih=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketIntelligentTieringConfigurationCommand=zo.$Command=void 0;var mme=x(),pme=k(),GD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return GD.Command}});var fme=w(),zD=q(),Nh=class e extends GD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[fme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,zD.se_DeleteBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,zD.de_DeleteBucketIntelligentTieringConfigurationCommand)(t,n)}};zo.DeleteBucketIntelligentTieringConfigurationCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketInventoryConfigurationCommand=Go.$Command=void 0;var yme=x(),gme=k(),$D=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return $D.Command}});var hme=w(),HD=q(),Rh=class e extends $D.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,HD.se_DeleteBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,HD.de_DeleteBucketInventoryConfigurationCommand)(t,n)}};Go.DeleteBucketInventoryConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketLifecycleCommand=Ho.$Command=void 0;var _me=x(),Cme=k(),VD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return VD.Command}});var Sme=w(),KD=q(),Bh=class e extends VD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_me.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,KD.se_DeleteBucketLifecycleCommand)(t,n)}deserialize(t,n){return(0,KD.de_DeleteBucketLifecycleCommand)(t,n)}};Ho.DeleteBucketLifecycleCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketMetricsConfigurationCommand=$o.$Command=void 0;var bme=x(),Eme=k(),WD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return WD.Command}});var Pme=w(),XD=q(),Dh=class e extends WD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Eme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Pme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XD.se_DeleteBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,XD.de_DeleteBucketMetricsConfigurationCommand)(t,n)}};$o.DeleteBucketMetricsConfigurationCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketOwnershipControlsCommand=Ko.$Command=void 0;var vme=x(),wme=k(),JD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return JD.Command}});var xme=w(),YD=q(),Fh=class e extends JD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YD.se_DeleteBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,YD.de_DeleteBucketOwnershipControlsCommand)(t,n)}};Ko.DeleteBucketOwnershipControlsCommand=Fh});var Uh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketPolicyCommand=Vo.$Command=void 0;var kme=x(),Ame=k(),ZD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return ZD.Command}});var Ome=w(),QD=q(),jh=class e extends ZD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ame.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ome.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QD.se_DeleteBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,QD.de_DeleteBucketPolicyCommand)(t,n)}};Vo.DeleteBucketPolicyCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketReplicationCommand=Xo.$Command=void 0;var Nme=x(),Ime=k(),t1=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return t1.Command}});var Rme=w(),e1=q(),zh=class e extends t1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ime.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Rme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,e1.se_DeleteBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,e1.de_DeleteBucketReplicationCommand)(t,n)}};Xo.DeleteBucketReplicationCommand=zh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteBucketTaggingCommand=Wo.$Command=void 0;var Tme=x(),Bme=k(),r1=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return r1.Command}});var qme=w(),n1=q(),Hh=class e extends r1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Bme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[qme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,n1.se_DeleteBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,n1.de_DeleteBucketTaggingCommand)(t,n)}};Wo.DeleteBucketTaggingCommand=Hh});var Vh=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.DeleteBucketWebsiteCommand=Yo.$Command=void 0;var Dme=x(),Mme=k(),s1=b();Object.defineProperty(Yo,"$Command",{enumerable:!0,get:function(){return s1.Command}});var Fme=w(),o1=q(),Kh=class e extends s1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,o1.se_DeleteBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,o1.de_DeleteBucketWebsiteCommand)(t,n)}};Yo.DeleteBucketWebsiteCommand=Kh});var Wh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DeleteObjectCommand=Jo.$Command=void 0;var Lme=x(),jme=k(),a1=b();Object.defineProperty(Jo,"$Command",{enumerable:!0,get:function(){return a1.Command}});var Ume=w(),i1=q(),Xh=class e extends a1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jme.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lme.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ume.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,i1.se_DeleteObjectCommand)(t,n)}deserialize(t,n){return(0,i1.de_DeleteObjectCommand)(t,n)}};Jo.DeleteObjectCommand=Xh});var Qo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var zme;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(zme=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var Gme;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Gme=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Yh=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.PRIORITY_ORDER_ALGORITHMS=Zo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Qo();Zo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Zo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var d1=m(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.getChecksumAlgorithmForRequest=void 0;var Hme=Qo(),c1=Yh(),$me=(e,{requestChecksumRequired:t,requestAlgorithmMember:n})=>{if(!n||!e[n])return t?Hme.ChecksumAlgorithm.MD5:void 0;let r=e[n];if(!c1.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${c1.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};hm.getChecksumAlgorithmForRequest=$me});var Jh=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumLocationName=void 0;var Kme=Qo(),Vme=e=>e===Kme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;_m.getChecksumLocationName=Vme});var l1=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.hasHeader=void 0;var Xme=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(n===r.toLowerCase())return!0;return!1};Cm.hasHeader=Xme});var bm=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isStreaming=void 0;var Wme=sc(),Yme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,Wme.isArrayBuffer)(e);Sm.isStreaming=Yme});var t_={};Ni(t_,{__assign:()=>Zh,__asyncDelegator:()=>dpe,__asyncGenerator:()=>cpe,__asyncValues:()=>lpe,__await:()=>Ua,__awaiter:()=>npe,__classPrivateFieldGet:()=>fpe,__classPrivateFieldSet:()=>ype,__createBinding:()=>ope,__decorate:()=>Zme,__exportStar:()=>spe,__extends:()=>Jme,__generator:()=>rpe,__importDefault:()=>ppe,__importStar:()=>mpe,__makeTemplateObject:()=>upe,__metadata:()=>tpe,__param:()=>epe,__read:()=>u1,__rest:()=>Qme,__spread:()=>ipe,__spreadArrays:()=>ape,__values:()=>e_});function Jme(e,t){Qh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Qme(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function epe(e,t){return function(n,r){t(n,r,e)}}function tpe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function npe(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,t||[])).next())})}function rpe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u1(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function ipe(){for(var e=[],t=0;t1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Ua?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function dpe(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(a){return(n=!n)?{value:Ua(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function lpe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof e_=="function"?e_(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function upe(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mpe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function ppe(e){return e&&e.__esModule?e:{default:e}}function fpe(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function ype(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}var Qh,Zh,n_=je(()=>{Qh=function(e,t){return Qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Qh(e,t)};Zh=function(){return Zh=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.AwsCrc32c=void 0;var m1=(n_(),J(t_)),r_=Ra(),p1=o_(),gpe=function(){function e(){this.crc32c=new p1.Crc32c}return e.prototype.update=function(t){(0,r_.isEmptyData)(t)||this.crc32c.update((0,r_.convertToBuffer)(t))},e.prototype.digest=function(){return m1.__awaiter(this,void 0,void 0,function(){return m1.__generator(this,function(t){return[2,(0,r_.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new p1.Crc32c},e}();Em.AwsCrc32c=gpe});var o_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var hpe=(n_(),J(t_)),_pe=Ra();function Cpe(e){return new y1().update(e).digest()}rr.crc32c=Cpe;var y1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var o=hpe.__values(t),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^bpe[(this.checksum^a)&255]}}catch(i){n={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=y1;var Spe=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],bpe=(0,_pe.uint32ArrayFrom)(Spe),Epe=f1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return Epe.AwsCrc32c}})});var s_=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.selectChecksumAlgorithmFunction=void 0;var Ppe=Ta(),vpe=o_(),za=Qo(),wpe=(e,t)=>({[za.ChecksumAlgorithm.MD5]:t.md5,[za.ChecksumAlgorithm.CRC32]:Ppe.AwsCrc32,[za.ChecksumAlgorithm.CRC32C]:vpe.AwsCrc32c,[za.ChecksumAlgorithm.SHA1]:t.sha1,[za.ChecksumAlgorithm.SHA256]:t.sha256})[e];Pm.selectChecksumAlgorithmFunction=wpe});var i_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.stringHasher=void 0;var xpe=st(),kpe=(e,t)=>{let n=new e;return n.update((0,xpe.toUint8Array)(t||"")),n.digest()};vm.stringHasher=kpe});var a_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.flexibleChecksumsMiddleware=void 0;var Ape=Ne(),Ope=d1(),Npe=Jh(),Ipe=l1(),Rpe=bm(),Tpe=s_(),Bpe=i_(),qpe=(e,t)=>n=>async r=>{if(!Ape.HttpRequest.isInstance(r.request))return n(r);let{request:o}=r,{body:s,headers:a}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:c,requestAlgorithmMember:y}=t,g=(0,Ope.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:c,requestAlgorithmMember:y}),C=s,P=a;if(g){let v=(0,Npe.getChecksumLocationName)(g),G=(0,Tpe.selectChecksumAlgorithmFunction)(g,e);if((0,Rpe.isStreaming)(s)){let{getAwsChunkedEncodingStream:Y,bodyLengthChecker:Le}=e;C=Y(s,{base64Encoder:i,bodyLengthChecker:Le,checksumLocationName:v,checksumAlgorithmFn:G,streamHasher:u}),P={...a,"content-encoding":a["content-encoding"]?`${a["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":a["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":v},delete P["content-length"]}else if(!(0,Ipe.hasHeader)(v,a)){let Y=await(0,Bpe.stringHasher)(G,s);P={...a,[v]:i(Y)}}}return await n({...r,request:{...o,headers:P,body:C}})};wm.flexibleChecksumsMiddleware=qpe});var g1=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.createReadStreamOnBuffer=void 0;var Dpe=require("stream");function Mpe(e){let t=new Dpe.Transform;return t.push(e),t.push(null),t}xm.createReadStreamOnBuffer=Mpe});var h1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.getChecksum=void 0;var Fpe=bm(),Lpe=i_(),jpe=async(e,{streamHasher:t,checksumAlgorithmFn:n,base64Encoder:r})=>{let o=(0,Fpe.isStreaming)(e)?t(n,e):(0,Lpe.stringHasher)(n,e);return r(await o)};km.getChecksum=jpe});var C1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksumAlgorithmListForResponse=void 0;var _1=Yh(),Upe=(e=[])=>{let t=[];for(let n of _1.PRIORITY_ORDER_ALGORITHMS)!e.includes(n)||!_1.CLIENT_SUPPORTED_ALGORITHMS.includes(n)||t.push(n);return t};Am.getChecksumAlgorithmListForResponse=Upe});var S1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.validateChecksumFromResponse=void 0;var zpe=h1(),Gpe=C1(),Hpe=Jh(),$pe=s_(),Kpe=async(e,{config:t,responseAlgorithms:n})=>{let r=(0,Gpe.getChecksumAlgorithmListForResponse)(n),{body:o,headers:s}=e;for(let a of r){let i=(0,Hpe.getChecksumLocationName)(a),u=s[i];if(u){let l=(0,$pe.selectChecksumAlgorithmFunction)(a,t),{streamHasher:c,base64Encoder:y}=t,g=await(0,zpe.getChecksum)(o,{streamHasher:c,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Om.validateChecksumFromResponse=Kpe});var E1=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.flexibleChecksumsResponseMiddleware=es.flexibleChecksumsResponseMiddlewareOptions=void 0;var Vpe=Ne(),Xpe=bm(),b1=g1(),Wpe=S1();es.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Ype=(e,t)=>n=>async r=>{if(!Vpe.HttpRequest.isInstance(r.request))return n(r);let o=r.input,s=await n(r),a=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=t;if(u&&o[u]==="ENABLED"){let c=(0,Xpe.isStreaming)(a.body);c&&(i=await e.streamCollector(a.body),a.body=(0,b1.createReadStreamOnBuffer)(i)),await(0,Wpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),c&&i&&(a.body=(0,b1.createReadStreamOnBuffer)(i))}return s};es.flexibleChecksumsResponseMiddleware=Ype});var v1=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.getFlexibleChecksumsPlugin=br.flexibleChecksumsMiddlewareOptions=void 0;var Jpe=a_(),P1=E1();br.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Qpe=(e,t)=>({applyToStack:n=>{n.add((0,Jpe.flexibleChecksumsMiddleware)(e,t),br.flexibleChecksumsMiddlewareOptions),n.addRelativeTo((0,P1.flexibleChecksumsResponseMiddleware)(e,t),P1.flexibleChecksumsResponseMiddlewareOptions)}});br.getFlexibleChecksumsPlugin=Qpe});var be=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var c_=(ne(),J(te));c_.__exportStar(Qo(),Ga);c_.__exportStar(a_(),Ga);c_.__exportStar(v1(),Ga)});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeleteObjectsCommand=ts.$Command=void 0;var Zpe=be(),efe=x(),tfe=k(),x1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return x1.Command}});var nfe=w(),w1=q(),d_=class e extends x1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,efe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zpe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,w1.se_DeleteObjectsCommand)(t,n)}deserialize(t,n){return(0,w1.de_DeleteObjectsCommand)(t,n)}};ts.DeleteObjectsCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DeleteObjectTaggingCommand=ns.$Command=void 0;var rfe=x(),ofe=k(),A1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return A1.Command}});var sfe=w(),k1=q(),u_=class e extends A1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ofe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,rfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,k1.se_DeleteObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,k1.de_DeleteObjectTaggingCommand)(t,n)}};ns.DeleteObjectTaggingCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.DeletePublicAccessBlockCommand=rs.$Command=void 0;var ife=x(),afe=k(),N1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return N1.Command}});var cfe=w(),O1=q(),p_=class e extends N1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,afe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ife.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[cfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,O1.se_DeletePublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,O1.de_DeletePublicAccessBlockCommand)(t,n)}};rs.DeletePublicAccessBlockCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAccelerateConfigurationCommand=os.$Command=void 0;var dfe=x(),lfe=k(),R1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return R1.Command}});var ufe=w(),I1=q(),y_=class e extends R1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,I1.se_GetBucketAccelerateConfigurationCommand)(t,n)}deserialize(t,n){return(0,I1.de_GetBucketAccelerateConfigurationCommand)(t,n)}};os.GetBucketAccelerateConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketAclCommand=ss.$Command=void 0;var mfe=x(),pfe=k(),B1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return B1.Command}});var ffe=w(),T1=q(),h_=class e extends B1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,T1.se_GetBucketAclCommand)(t,n)}deserialize(t,n){return(0,T1.de_GetBucketAclCommand)(t,n)}};ss.GetBucketAclCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketAnalyticsConfigurationCommand=is.$Command=void 0;var yfe=x(),gfe=k(),D1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return D1.Command}});var hfe=w(),q1=q(),C_=class e extends D1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,q1.se_GetBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,q1.de_GetBucketAnalyticsConfigurationCommand)(t,n)}};is.GetBucketAnalyticsConfigurationCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketCorsCommand=as.$Command=void 0;var _fe=x(),Cfe=k(),F1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return F1.Command}});var Sfe=w(),M1=q(),b_=class e extends F1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_fe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,M1.se_GetBucketCorsCommand)(t,n)}deserialize(t,n){return(0,M1.de_GetBucketCorsCommand)(t,n)}};as.GetBucketCorsCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketEncryptionCommand=cs.$Command=void 0;var bfe=x(),Efe=k(),j1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return j1.Command}});var Pfe=w(),vfe=Je(),L1=q(),P_=class e extends j1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Efe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:vfe.GetBucketEncryptionOutputFilterSensitiveLog,[Pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,L1.se_GetBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,L1.de_GetBucketEncryptionCommand)(t,n)}};cs.GetBucketEncryptionCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketIntelligentTieringConfigurationCommand=ds.$Command=void 0;var wfe=x(),xfe=k(),z1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return z1.Command}});var kfe=w(),U1=q(),w_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,xfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,wfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,U1.se_GetBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,U1.de_GetBucketIntelligentTieringConfigurationCommand)(t,n)}};ds.GetBucketIntelligentTieringConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketInventoryConfigurationCommand=ls.$Command=void 0;var Afe=x(),Ofe=k(),H1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return H1.Command}});var Nfe=w(),Ife=Je(),G1=q(),k_=class e extends H1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ofe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Afe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:Ife.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[Nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,G1.se_GetBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,G1.de_GetBucketInventoryConfigurationCommand)(t,n)}};ls.GetBucketInventoryConfigurationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLifecycleConfigurationCommand=us.$Command=void 0;var Rfe=x(),Tfe=k(),K1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return K1.Command}});var Bfe=w(),$1=q(),O_=class e extends K1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Tfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Bfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,$1.se_GetBucketLifecycleConfigurationCommand)(t,n)}deserialize(t,n){return(0,$1.de_GetBucketLifecycleConfigurationCommand)(t,n)}};us.GetBucketLifecycleConfigurationCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketLocationCommand=ms.$Command=void 0;var qfe=x(),Dfe=k(),X1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return X1.Command}});var Mfe=w(),V1=q(),I_=class e extends X1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Dfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,qfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Mfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,V1.se_GetBucketLocationCommand)(t,n)}deserialize(t,n){return(0,V1.de_GetBucketLocationCommand)(t,n)}};ms.GetBucketLocationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketLoggingCommand=ps.$Command=void 0;var Ffe=x(),Lfe=k(),Y1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return Y1.Command}});var jfe=w(),W1=q(),T_=class e extends Y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Lfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ffe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[jfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,W1.se_GetBucketLoggingCommand)(t,n)}deserialize(t,n){return(0,W1.de_GetBucketLoggingCommand)(t,n)}};ps.GetBucketLoggingCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketMetricsConfigurationCommand=fs.$Command=void 0;var Ufe=x(),zfe=k(),Q1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return Q1.Command}});var Gfe=w(),J1=q(),q_=class e extends Q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,zfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ufe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Gfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,J1.se_GetBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,J1.de_GetBucketMetricsConfigurationCommand)(t,n)}};fs.GetBucketMetricsConfigurationCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketNotificationConfigurationCommand=ys.$Command=void 0;var Hfe=x(),$fe=k(),eM=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return eM.Command}});var Kfe=w(),Z1=q(),M_=class e extends eM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$fe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,Z1.se_GetBucketNotificationConfigurationCommand)(t,n)}deserialize(t,n){return(0,Z1.de_GetBucketNotificationConfigurationCommand)(t,n)}};ys.GetBucketNotificationConfigurationCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketOwnershipControlsCommand=gs.$Command=void 0;var Vfe=x(),Xfe=k(),nM=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return nM.Command}});var Wfe=w(),tM=q(),L_=class e extends nM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,tM.se_GetBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,tM.de_GetBucketOwnershipControlsCommand)(t,n)}};gs.GetBucketOwnershipControlsCommand=L_});var z_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketPolicyCommand=hs.$Command=void 0;var Yfe=x(),Jfe=k(),oM=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return oM.Command}});var Qfe=w(),rM=q(),U_=class e extends oM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Jfe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Qfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,rM.se_GetBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,rM.de_GetBucketPolicyCommand)(t,n)}};hs.GetBucketPolicyCommand=U_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketPolicyStatusCommand=_s.$Command=void 0;var Zfe=x(),eye=k(),iM=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return iM.Command}});var tye=w(),sM=q(),G_=class e extends iM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,eye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zfe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[tye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,sM.se_GetBucketPolicyStatusCommand)(t,n)}deserialize(t,n){return(0,sM.de_GetBucketPolicyStatusCommand)(t,n)}};_s.GetBucketPolicyStatusCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketReplicationCommand=Cs.$Command=void 0;var nye=x(),rye=k(),cM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return cM.Command}});var oye=w(),aM=q(),$_=class e extends cM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,rye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,nye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[oye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aM.se_GetBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,aM.de_GetBucketReplicationCommand)(t,n)}};Cs.GetBucketReplicationCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketRequestPaymentCommand=Ss.$Command=void 0;var sye=x(),iye=k(),lM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return lM.Command}});var aye=w(),dM=q(),V_=class e extends lM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,iye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,sye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,dM.se_GetBucketRequestPaymentCommand)(t,n)}deserialize(t,n){return(0,dM.de_GetBucketRequestPaymentCommand)(t,n)}};Ss.GetBucketRequestPaymentCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketTaggingCommand=bs.$Command=void 0;var cye=x(),dye=k(),mM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var lye=w(),uM=q(),W_=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,dye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[lye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,uM.se_GetBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,uM.de_GetBucketTaggingCommand)(t,n)}};bs.GetBucketTaggingCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetBucketVersioningCommand=Es.$Command=void 0;var uye=x(),mye=k(),fM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return fM.Command}});var pye=w(),pM=q(),J_=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,mye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,uye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pM.se_GetBucketVersioningCommand)(t,n)}deserialize(t,n){return(0,pM.de_GetBucketVersioningCommand)(t,n)}};Es.GetBucketVersioningCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetBucketWebsiteCommand=Ps.$Command=void 0;var fye=x(),yye=k(),gM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return gM.Command}});var gye=w(),yM=q(),Z_=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,fye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[gye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yM.se_GetBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,yM.de_GetBucketWebsiteCommand)(t,n)}};Ps.GetBucketWebsiteCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectAclCommand=vs.$Command=void 0;var hye=x(),_ye=k(),_M=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return _M.Command}});var Cye=w(),hM=q(),tC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,_ye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,hye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Cye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,hM.se_GetObjectAclCommand)(t,n)}deserialize(t,n){return(0,hM.de_GetObjectAclCommand)(t,n)}};vs.GetObjectAclCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectAttributesCommand=ws.$Command=void 0;var Sye=bt(),bye=x(),Eye=k(),SM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return SM.Command}});var Pye=w(),vye=Je(),CM=q(),rC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Eye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Sye.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:vye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,CM.se_GetObjectAttributesCommand)(t,n)}deserialize(t,n){return(0,CM.de_GetObjectAttributesCommand)(t,n)}};ws.GetObjectAttributesCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectCommand=xs.$Command=void 0;var wye=be(),xye=bt(),kye=x(),Aye=k(),PM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return PM.Command}});var Oye=w(),bM=Je(),EM=q(),sC=class e extends PM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Aye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xye.getSsecPlugin)(n)),this.middlewareStack.use((0,wye.getFlexibleChecksumsPlugin)(n,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:bM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:bM.GetObjectOutputFilterSensitiveLog,[Oye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,EM.se_GetObjectCommand)(t,n)}deserialize(t,n){return(0,EM.de_GetObjectCommand)(t,n)}};xs.GetObjectCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectLegalHoldCommand=ks.$Command=void 0;var Nye=x(),Iye=k(),wM=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return wM.Command}});var Rye=w(),vM=q(),aC=class e extends wM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Iye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,vM.se_GetObjectLegalHoldCommand)(t,n)}deserialize(t,n){return(0,vM.de_GetObjectLegalHoldCommand)(t,n)}};ks.GetObjectLegalHoldCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectLockConfigurationCommand=As.$Command=void 0;var Tye=x(),Bye=k(),kM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return kM.Command}});var qye=w(),xM=q(),dC=class e extends kM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Bye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,xM.se_GetObjectLockConfigurationCommand)(t,n)}deserialize(t,n){return(0,xM.de_GetObjectLockConfigurationCommand)(t,n)}};As.GetObjectLockConfigurationCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectRetentionCommand=Os.$Command=void 0;var Dye=x(),Mye=k(),OM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return OM.Command}});var Fye=w(),AM=q(),uC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,AM.se_GetObjectRetentionCommand)(t,n)}deserialize(t,n){return(0,AM.de_GetObjectRetentionCommand)(t,n)}};Os.GetObjectRetentionCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetObjectTaggingCommand=Ns.$Command=void 0;var Lye=x(),jye=k(),IM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Uye=w(),NM=q(),pC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Uye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,NM.se_GetObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,NM.de_GetObjectTaggingCommand)(t,n)}};Ns.GetObjectTaggingCommand=pC});var gC=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.GetObjectTorrentCommand=Is.$Command=void 0;var zye=x(),Gye=k(),TM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return TM.Command}});var Hye=w(),$ye=Je(),RM=q(),yC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Gye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,zye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:$ye.GetObjectTorrentOutputFilterSensitiveLog,[Hye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,RM.se_GetObjectTorrentCommand)(t,n)}deserialize(t,n){return(0,RM.de_GetObjectTorrentCommand)(t,n)}};Is.GetObjectTorrentCommand=yC});var _C=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.GetPublicAccessBlockCommand=Rs.$Command=void 0;var Kye=x(),Vye=k(),qM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Xye=w(),BM=q(),hC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Vye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Xye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,BM.se_GetPublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,BM.de_GetPublicAccessBlockCommand)(t,n)}};Rs.GetPublicAccessBlockCommand=hC});var Ha=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.HeadBucketCommand=Ts.$Command=void 0;var Wye=x(),Yye=k(),MM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return MM.Command}});var Jye=w(),DM=q(),CC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Yye.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wye.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Jye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,DM.se_HeadBucketCommand)(t,n)}deserialize(t,n){return(0,DM.de_HeadBucketCommand)(t,n)}};Ts.HeadBucketCommand=CC});var $a=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.HeadObjectCommand=Bs.$Command=void 0;var Qye=bt(),Zye=x(),ege=k(),jM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return jM.Command}});var tge=w(),FM=Je(),LM=q(),SC=class e extends jM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ege.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zye.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qye.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:FM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:FM.HeadObjectOutputFilterSensitiveLog,[tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,LM.se_HeadObjectCommand)(t,n)}deserialize(t,n){return(0,LM.de_HeadObjectCommand)(t,n)}};Bs.HeadObjectCommand=SC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketAnalyticsConfigurationsCommand=qs.$Command=void 0;var nge=x(),rge=k(),zM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var oge=w(),UM=q(),bC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,rge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,nge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,UM.se_ListBucketAnalyticsConfigurationsCommand)(t,n)}deserialize(t,n){return(0,UM.de_ListBucketAnalyticsConfigurationsCommand)(t,n)}};qs.ListBucketAnalyticsConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketIntelligentTieringConfigurationsCommand=Ds.$Command=void 0;var sge=x(),ige=k(),HM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return HM.Command}});var age=w(),GM=q(),PC=class e extends HM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ige.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,sge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,GM.se_ListBucketIntelligentTieringConfigurationsCommand)(t,n)}deserialize(t,n){return(0,GM.de_ListBucketIntelligentTieringConfigurationsCommand)(t,n)}};Ds.ListBucketIntelligentTieringConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketInventoryConfigurationsCommand=Ms.$Command=void 0;var cge=x(),dge=k(),KM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return KM.Command}});var lge=w(),uge=Je(),$M=q(),wC=class e extends KM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,dge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:uge.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,$M.se_ListBucketInventoryConfigurationsCommand)(t,n)}deserialize(t,n){return(0,$M.de_ListBucketInventoryConfigurationsCommand)(t,n)}};Ms.ListBucketInventoryConfigurationsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListBucketMetricsConfigurationsCommand=Fs.$Command=void 0;var mge=x(),pge=k(),XM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return XM.Command}});var fge=w(),VM=q(),kC=class e extends XM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,mge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[fge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,VM.se_ListBucketMetricsConfigurationsCommand)(t,n)}deserialize(t,n){return(0,VM.de_ListBucketMetricsConfigurationsCommand)(t,n)}};Fs.ListBucketMetricsConfigurationsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListBucketsCommand=Ls.$Command=void 0;var yge=x(),gge=k(),YM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return YM.Command}});var hge=w(),WM=q(),OC=class e extends YM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,yge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,WM.se_ListBucketsCommand)(t,n)}deserialize(t,n){return(0,WM.de_ListBucketsCommand)(t,n)}};Ls.ListBucketsCommand=OC});var RC=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListMultipartUploadsCommand=js.$Command=void 0;var _ge=x(),Cge=k(),QM=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return QM.Command}});var Sge=w(),JM=q(),IC=class e extends QM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Cge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,_ge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Sge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,JM.se_ListMultipartUploadsCommand)(t,n)}deserialize(t,n){return(0,JM.de_ListMultipartUploadsCommand)(t,n)}};js.ListMultipartUploadsCommand=IC});var BC=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListObjectsCommand=Us.$Command=void 0;var bge=x(),Ege=k(),eF=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return eF.Command}});var Pge=w(),ZM=q(),TC=class e extends eF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ege.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,bge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Pge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,ZM.se_ListObjectsCommand)(t,n)}deserialize(t,n){return(0,ZM.de_ListObjectsCommand)(t,n)}};Us.ListObjectsCommand=TC});var Nm=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectsV2Command=zs.$Command=void 0;var vge=x(),wge=k(),nF=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return nF.Command}});var xge=w(),tF=q(),qC=class e extends nF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,vge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,tF.se_ListObjectsV2Command)(t,n)}deserialize(t,n){return(0,tF.de_ListObjectsV2Command)(t,n)}};zs.ListObjectsV2Command=qC});var MC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.ListObjectVersionsCommand=Gs.$Command=void 0;var kge=x(),Age=k(),oF=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return oF.Command}});var Oge=w(),rF=q(),DC=class e extends oF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Age.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,kge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,rF.se_ListObjectVersionsCommand)(t,n)}deserialize(t,n){return(0,rF.de_ListObjectVersionsCommand)(t,n)}};Gs.ListObjectVersionsCommand=DC});var Im=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.ListPartsCommand=Hs.$Command=void 0;var Nge=bt(),Ige=x(),Rge=k(),iF=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return iF.Command}});var Tge=w(),Bge=Je(),sF=q(),FC=class e extends iF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ige.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nge.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Bge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,sF.se_ListPartsCommand)(t,n)}deserialize(t,n){return(0,sF.de_ListPartsCommand)(t,n)}};Hs.ListPartsCommand=FC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAccelerateConfigurationCommand=$s.$Command=void 0;var qge=be(),Dge=x(),Mge=k(),cF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return cF.Command}});var Fge=w(),aF=q(),LC=class e extends cF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Mge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,qge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aF.se_PutBucketAccelerateConfigurationCommand)(t,n)}deserialize(t,n){return(0,aF.de_PutBucketAccelerateConfigurationCommand)(t,n)}};$s.PutBucketAccelerateConfigurationCommand=LC});var zC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketAclCommand=Ks.$Command=void 0;var Lge=be(),jge=x(),Uge=k(),lF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return lF.Command}});var zge=w(),dF=q(),UC=class e extends lF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Uge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,jge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,dF.se_PutBucketAclCommand)(t,n)}deserialize(t,n){return(0,dF.de_PutBucketAclCommand)(t,n)}};Ks.PutBucketAclCommand=UC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketAnalyticsConfigurationCommand=Vs.$Command=void 0;var Gge=x(),Hge=k(),mF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return mF.Command}});var $ge=w(),uF=q(),GC=class e extends mF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Hge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gge.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[$ge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,uF.se_PutBucketAnalyticsConfigurationCommand)(t,n)}deserialize(t,n){return(0,uF.de_PutBucketAnalyticsConfigurationCommand)(t,n)}};Vs.PutBucketAnalyticsConfigurationCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketCorsCommand=Xs.$Command=void 0;var Kge=be(),Vge=x(),Xge=k(),fF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return fF.Command}});var Wge=w(),pF=q(),$C=class e extends fF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Wge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pF.se_PutBucketCorsCommand)(t,n)}deserialize(t,n){return(0,pF.de_PutBucketCorsCommand)(t,n)}};Xs.PutBucketCorsCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketEncryptionCommand=Ws.$Command=void 0;var Yge=be(),Jge=x(),Qge=k(),gF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return gF.Command}});var Zge=w(),ehe=Je(),yF=q(),VC=class e extends gF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Qge.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jge.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yge.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:ehe.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yF.se_PutBucketEncryptionCommand)(t,n)}deserialize(t,n){return(0,yF.de_PutBucketEncryptionCommand)(t,n)}};Ws.PutBucketEncryptionCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketIntelligentTieringConfigurationCommand=Ys.$Command=void 0;var the=x(),nhe=k(),_F=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return _F.Command}});var rhe=w(),hF=q(),WC=class e extends _F.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,nhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,the.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[rhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,hF.se_PutBucketIntelligentTieringConfigurationCommand)(t,n)}deserialize(t,n){return(0,hF.de_PutBucketIntelligentTieringConfigurationCommand)(t,n)}};Ys.PutBucketIntelligentTieringConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketInventoryConfigurationCommand=Js.$Command=void 0;var ohe=x(),she=k(),SF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return SF.Command}});var ihe=w(),ahe=Je(),CF=q(),JC=class e extends SF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,she.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ohe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:ahe.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[ihe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,CF.se_PutBucketInventoryConfigurationCommand)(t,n)}deserialize(t,n){return(0,CF.de_PutBucketInventoryConfigurationCommand)(t,n)}};Js.PutBucketInventoryConfigurationCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketLifecycleConfigurationCommand=Qs.$Command=void 0;var che=be(),dhe=x(),lhe=k(),EF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return EF.Command}});var uhe=w(),bF=q(),ZC=class e extends EF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,dhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,che.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,bF.se_PutBucketLifecycleConfigurationCommand)(t,n)}deserialize(t,n){return(0,bF.de_PutBucketLifecycleConfigurationCommand)(t,n)}};Qs.PutBucketLifecycleConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketLoggingCommand=Zs.$Command=void 0;var mhe=be(),phe=x(),fhe=k(),vF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return vF.Command}});var yhe=w(),PF=q(),tS=class e extends vF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,phe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[yhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,PF.se_PutBucketLoggingCommand)(t,n)}deserialize(t,n){return(0,PF.de_PutBucketLoggingCommand)(t,n)}};Zs.PutBucketLoggingCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketMetricsConfigurationCommand=ei.$Command=void 0;var ghe=x(),hhe=k(),xF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return xF.Command}});var _he=w(),wF=q(),rS=class e extends xF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,hhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,ghe.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[_he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,wF.se_PutBucketMetricsConfigurationCommand)(t,n)}deserialize(t,n){return(0,wF.de_PutBucketMetricsConfigurationCommand)(t,n)}};ei.PutBucketMetricsConfigurationCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketNotificationConfigurationCommand=ti.$Command=void 0;var Che=x(),She=k(),AF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return AF.Command}});var bhe=w(),kF=q(),sS=class e extends AF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,She.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Che.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[bhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,kF.se_PutBucketNotificationConfigurationCommand)(t,n)}deserialize(t,n){return(0,kF.de_PutBucketNotificationConfigurationCommand)(t,n)}};ti.PutBucketNotificationConfigurationCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketOwnershipControlsCommand=ni.$Command=void 0;var Ehe=be(),Phe=x(),vhe=k(),NF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return NF.Command}});var whe=w(),OF=q(),aS=class e extends NF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,vhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Phe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ehe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,OF.se_PutBucketOwnershipControlsCommand)(t,n)}deserialize(t,n){return(0,OF.de_PutBucketOwnershipControlsCommand)(t,n)}};ni.PutBucketOwnershipControlsCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketPolicyCommand=ri.$Command=void 0;var xhe=be(),khe=x(),Ahe=k(),RF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return RF.Command}});var Ohe=w(),IF=q(),dS=class e extends RF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Ahe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,khe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,IF.se_PutBucketPolicyCommand)(t,n)}deserialize(t,n){return(0,IF.de_PutBucketPolicyCommand)(t,n)}};ri.PutBucketPolicyCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketReplicationCommand=oi.$Command=void 0;var Nhe=be(),Ihe=x(),Rhe=k(),BF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return BF.Command}});var The=w(),TF=q(),uS=class e extends BF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Rhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ihe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[The.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,TF.se_PutBucketReplicationCommand)(t,n)}deserialize(t,n){return(0,TF.de_PutBucketReplicationCommand)(t,n)}};oi.PutBucketReplicationCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketRequestPaymentCommand=si.$Command=void 0;var Bhe=be(),qhe=x(),Dhe=k(),DF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return DF.Command}});var Mhe=w(),qF=q(),pS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Dhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,qhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Mhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,qF.se_PutBucketRequestPaymentCommand)(t,n)}deserialize(t,n){return(0,qF.de_PutBucketRequestPaymentCommand)(t,n)}};si.PutBucketRequestPaymentCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketTaggingCommand=ii.$Command=void 0;var Fhe=be(),Lhe=x(),jhe=k(),FF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Uhe=w(),MF=q(),yS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Fhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,MF.se_PutBucketTaggingCommand)(t,n)}deserialize(t,n){return(0,MF.de_PutBucketTaggingCommand)(t,n)}};ii.PutBucketTaggingCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutBucketVersioningCommand=ai.$Command=void 0;var zhe=be(),Ghe=x(),Hhe=k(),jF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return jF.Command}});var $he=w(),LF=q(),hS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Hhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ghe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,zhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[$he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,LF.se_PutBucketVersioningCommand)(t,n)}deserialize(t,n){return(0,LF.de_PutBucketVersioningCommand)(t,n)}};ai.PutBucketVersioningCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutBucketWebsiteCommand=ci.$Command=void 0;var Khe=be(),Vhe=x(),Xhe=k(),zF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return zF.Command}});var Whe=w(),UF=q(),CS=class e extends zF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Khe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,UF.se_PutBucketWebsiteCommand)(t,n)}deserialize(t,n){return(0,UF.de_PutBucketWebsiteCommand)(t,n)}};ci.PutBucketWebsiteCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectAclCommand=di.$Command=void 0;var Yhe=be(),Jhe=x(),Qhe=k(),HF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return HF.Command}});var Zhe=w(),GF=q(),bS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Qhe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jhe.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yhe.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Zhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,GF.se_PutObjectAclCommand)(t,n)}deserialize(t,n){return(0,GF.de_PutObjectAclCommand)(t,n)}};di.PutObjectAclCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectCommand=li.$Command=void 0;var e_e=be(),t_e=Ir(),n_e=bt(),r_e=x(),o_e=k(),VF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return VF.Command}});var s_e=w(),$F=Je(),KF=q(),PS=class e extends VF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,r_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,t_e.getCheckContentLengthHeaderPlugin)(n)),this.middlewareStack.use((0,n_e.getSsecPlugin)(n)),this.middlewareStack.use((0,e_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:$F.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:$F.PutObjectOutputFilterSensitiveLog,[s_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,KF.se_PutObjectCommand)(t,n)}deserialize(t,n){return(0,KF.de_PutObjectCommand)(t,n)}};li.PutObjectCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectLegalHoldCommand=ui.$Command=void 0;var i_e=be(),a_e=x(),c_e=k(),WF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return WF.Command}});var d_e=w(),XF=q(),wS=class e extends WF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,a_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,i_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[d_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,XF.se_PutObjectLegalHoldCommand)(t,n)}deserialize(t,n){return(0,XF.de_PutObjectLegalHoldCommand)(t,n)}};ui.PutObjectLegalHoldCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectLockConfigurationCommand=mi.$Command=void 0;var l_e=be(),u_e=x(),m_e=k(),JF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var p_e=w(),YF=q(),kS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,u_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,l_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[p_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,YF.se_PutObjectLockConfigurationCommand)(t,n)}deserialize(t,n){return(0,YF.de_PutObjectLockConfigurationCommand)(t,n)}};mi.PutObjectLockConfigurationCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutObjectRetentionCommand=pi.$Command=void 0;var f_e=be(),y_e=x(),g_e=k(),ZF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return ZF.Command}});var h_e=w(),QF=q(),OS=class e extends ZF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,y_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,f_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[h_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,QF.se_PutObjectRetentionCommand)(t,n)}deserialize(t,n){return(0,QF.de_PutObjectRetentionCommand)(t,n)}};pi.PutObjectRetentionCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PutObjectTaggingCommand=fi.$Command=void 0;var __e=be(),C_e=x(),S_e=k(),tL=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return tL.Command}});var b_e=w(),eL=q(),IS=class e extends tL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,S_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,C_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,__e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[b_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,eL.se_PutObjectTaggingCommand)(t,n)}deserialize(t,n){return(0,eL.de_PutObjectTaggingCommand)(t,n)}};fi.PutObjectTaggingCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.PutPublicAccessBlockCommand=yi.$Command=void 0;var E_e=be(),P_e=x(),v_e=k(),rL=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var w_e=w(),nL=q(),TS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,P_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,E_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[w_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,nL.se_PutPublicAccessBlockCommand)(t,n)}deserialize(t,n){return(0,nL.de_PutPublicAccessBlockCommand)(t,n)}};yi.PutPublicAccessBlockCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.RestoreObjectCommand=gi.$Command=void 0;var x_e=be(),k_e=x(),A_e=k(),sL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return sL.Command}});var O_e=w(),N_e=Zn(),oL=q(),qS=class e extends sL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,A_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,k_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,x_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:N_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[O_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,oL.se_RestoreObjectCommand)(t,n)}deserialize(t,n){return(0,oL.de_RestoreObjectCommand)(t,n)}};gi.RestoreObjectCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SelectObjectContentCommand=hi.$Command=void 0;var I_e=bt(),R_e=x(),T_e=k(),cL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return cL.Command}});var B_e=w(),iL=Zn(),aL=q(),MS=class e extends cL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,R_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,I_e.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:iL.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:iL.SelectObjectContentOutputFilterSensitiveLog,[B_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,aL.se_SelectObjectContentCommand)(t,n)}deserialize(t,n){return(0,aL.de_SelectObjectContentCommand)(t,n)}};hi.SelectObjectContentCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.UploadPartCommand=_i.$Command=void 0;var q_e=be(),D_e=bt(),M_e=x(),F_e=k(),uL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return uL.Command}});var L_e=w(),dL=Zn(),lL=q(),LS=class e extends uL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,F_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,M_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,D_e.getSsecPlugin)(n)),this.middlewareStack.use((0,q_e.getFlexibleChecksumsPlugin)(n,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:dL.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:dL.UploadPartOutputFilterSensitiveLog,[L_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,lL.se_UploadPartCommand)(t,n)}deserialize(t,n){return(0,lL.de_UploadPartCommand)(t,n)}};_i.UploadPartCommand=LS});var zS=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.UploadPartCopyCommand=Ci.$Command=void 0;var j_e=Ir(),U_e=bt(),z_e=x(),G_e=k(),fL=b();Object.defineProperty(Ci,"$Command",{enumerable:!0,get:function(){return fL.Command}});var H_e=w(),mL=Zn(),pL=q(),US=class e extends fL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,z_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,j_e.getThrow200ExceptionsPlugin)(n)),this.middlewareStack.use((0,U_e.getSsecPlugin)(n));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:mL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:mL.UploadPartCopyOutputFilterSensitiveLog,[H_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,pL.se_UploadPartCopyCommand)(t,n)}deserialize(t,n){return(0,pL.de_UploadPartCopyCommand)(t,n)}};Ci.UploadPartCopyCommand=US});var HS=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.WriteGetObjectResponseCommand=Si.$Command=void 0;var $_e=x(),K_e=k(),gL=b();Object.defineProperty(Si,"$Command",{enumerable:!0,get:function(){return gL.Command}});var V_e=w(),X_e=Zn(),yL=q(),GS=class e extends gL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K_e.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,$_e.getEndpointPlugin)(n,e.getEndpointParameterInstructions()));let o=t.concat(this.middlewareStack),{logger:s}=n,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:X_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[V_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=n;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(t,n){return(0,yL.se_WriteGetObjectResponseCommand)(t,n)}deserialize(t,n){return(0,yL.de_WriteGetObjectResponseCommand)(t,n)}};Si.WriteGetObjectResponseCommand=GS});var hL=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.S3=void 0;var W_e=b(),Y_e=ph(),J_e=yh(),Q_e=hh(),Z_e=Ch(),eCe=bh(),tCe=Ph(),nCe=wh(),rCe=kh(),oCe=Oh(),sCe=Ih(),iCe=Th(),aCe=qh(),cCe=Mh(),dCe=Lh(),lCe=Uh(),uCe=Gh(),mCe=$h(),pCe=Vh(),fCe=Wh(),yCe=l_(),gCe=m_(),hCe=f_(),_Ce=g_(),CCe=__(),SCe=S_(),bCe=E_(),ECe=v_(),PCe=x_(),vCe=A_(),wCe=N_(),xCe=R_(),kCe=B_(),ACe=D_(),OCe=F_(),NCe=j_(),ICe=z_(),RCe=H_(),TCe=K_(),BCe=X_(),qCe=Y_(),DCe=Q_(),MCe=eC(),FCe=nC(),LCe=oC(),jCe=iC(),UCe=cC(),zCe=lC(),GCe=mC(),HCe=fC(),$Ce=gC(),KCe=_C(),VCe=Ha(),XCe=$a(),WCe=EC(),YCe=vC(),JCe=xC(),QCe=AC(),ZCe=NC(),eSe=RC(),tSe=BC(),nSe=Nm(),rSe=MC(),oSe=Im(),sSe=jC(),iSe=zC(),aSe=HC(),cSe=KC(),dSe=XC(),lSe=YC(),uSe=QC(),mSe=eS(),pSe=nS(),fSe=oS(),ySe=iS(),gSe=cS(),hSe=lS(),_Se=mS(),CSe=fS(),SSe=gS(),bSe=_S(),ESe=SS(),PSe=ES(),vSe=vS(),wSe=xS(),xSe=AS(),kSe=NS(),ASe=RS(),OSe=BS(),NSe=DS(),ISe=FS(),RSe=jS(),TSe=zS(),BSe=HS(),qSe=Fa(),DSe={AbortMultipartUploadCommand:Y_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:J_e.CompleteMultipartUploadCommand,CopyObjectCommand:Q_e.CopyObjectCommand,CreateBucketCommand:Z_e.CreateBucketCommand,CreateMultipartUploadCommand:eCe.CreateMultipartUploadCommand,DeleteBucketCommand:nCe.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:tCe.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:rCe.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:oCe.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:sCe.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:iCe.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:aCe.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:cCe.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:dCe.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:lCe.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:uCe.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:mCe.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:pCe.DeleteBucketWebsiteCommand,DeleteObjectCommand:fCe.DeleteObjectCommand,DeleteObjectsCommand:yCe.DeleteObjectsCommand,DeleteObjectTaggingCommand:gCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:hCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:_Ce.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:CCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:SCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:bCe.GetBucketCorsCommand,GetBucketEncryptionCommand:ECe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:PCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:vCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:wCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:xCe.GetBucketLocationCommand,GetBucketLoggingCommand:kCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:ACe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:OCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:NCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:ICe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:RCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:TCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:BCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:qCe.GetBucketTaggingCommand,GetBucketVersioningCommand:DCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:MCe.GetBucketWebsiteCommand,GetObjectCommand:jCe.GetObjectCommand,GetObjectAclCommand:FCe.GetObjectAclCommand,GetObjectAttributesCommand:LCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:UCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:zCe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:GCe.GetObjectRetentionCommand,GetObjectTaggingCommand:HCe.GetObjectTaggingCommand,GetObjectTorrentCommand:$Ce.GetObjectTorrentCommand,GetPublicAccessBlockCommand:KCe.GetPublicAccessBlockCommand,HeadBucketCommand:VCe.HeadBucketCommand,HeadObjectCommand:XCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:WCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:YCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:JCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:QCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:ZCe.ListBucketsCommand,ListMultipartUploadsCommand:eSe.ListMultipartUploadsCommand,ListObjectsCommand:tSe.ListObjectsCommand,ListObjectsV2Command:nSe.ListObjectsV2Command,ListObjectVersionsCommand:rSe.ListObjectVersionsCommand,ListPartsCommand:oSe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:sSe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:iSe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:aSe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:cSe.PutBucketCorsCommand,PutBucketEncryptionCommand:dSe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:lSe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:uSe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:mSe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:pSe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:fSe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:ySe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:gSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:hSe.PutBucketPolicyCommand,PutBucketReplicationCommand:_Se.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:CSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:SSe.PutBucketTaggingCommand,PutBucketVersioningCommand:bSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:ESe.PutBucketWebsiteCommand,PutObjectCommand:vSe.PutObjectCommand,PutObjectAclCommand:PSe.PutObjectAclCommand,PutObjectLegalHoldCommand:wSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:xSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:kSe.PutObjectRetentionCommand,PutObjectTaggingCommand:ASe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:OSe.PutPublicAccessBlockCommand,RestoreObjectCommand:NSe.RestoreObjectCommand,SelectObjectContentCommand:ISe.SelectObjectContentCommand,UploadPartCommand:RSe.UploadPartCommand,UploadPartCopyCommand:TSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:BSe.WriteGetObjectResponseCommand},Rm=class extends qSe.S3Client{};Tm.S3=Rm;(0,W_e.createAggregatedClient)(DSe,Rm)});var _L=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(ne(),J(te));L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(Uh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(Vh(),T);L.__exportStar(Wh(),T);L.__exportStar(m_(),T);L.__exportStar(l_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(z_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(gC(),T);L.__exportStar(_C(),T);L.__exportStar(Ha(),T);L.__exportStar($a(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(NC(),T);L.__exportStar(RC(),T);L.__exportStar(MC(),T);L.__exportStar(BC(),T);L.__exportStar(Nm(),T);L.__exportStar(Im(),T);L.__exportStar(jC(),T);L.__exportStar(zC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T);L.__exportStar(zS(),T);L.__exportStar(HS(),T)});var SL=m(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0})});var bL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.paginateListObjectsV2=void 0;var MSe=Nm(),FSe=Fa(),LSe=async(e,t,...n)=>await e.send(new MSe.ListObjectsV2Command(t),...n);async function*jSe(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.ContinuationToken=r,t.MaxKeys=e.pageSize,e.client instanceof FSe.S3Client)s=await LSe(e.client,t,...n);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Bm.paginateListObjectsV2=jSe});var EL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListParts=void 0;var USe=Im(),zSe=Fa(),GSe=async(e,t,...n)=>await e.send(new USe.ListPartsCommand(t),...n);async function*HSe(e,t,...n){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(t.PartNumberMarker=r,t.MaxParts=e.pageSize,e.client instanceof zSe.S3Client)s=await GSe(e.client,t,...n);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}qm.paginateListParts=HSe});var PL=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var $S=(ne(),J(te));$S.__exportStar(SL(),Ka);$S.__exportStar(bL(),Ka);$S.__exportStar(EL(),Ka)});var Va=m((EOe,AL)=>{var Dm=Object.defineProperty,$Se=Object.getOwnPropertyDescriptor,KSe=Object.getOwnPropertyNames,VSe=Object.prototype.hasOwnProperty,or=(e,t)=>Dm(e,"name",{value:t,configurable:!0}),XSe=(e,t)=>{for(var n in t)Dm(e,n,{get:t[n],enumerable:!0})},WSe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of KSe(t))!VSe.call(e,o)&&o!==n&&Dm(e,o,{get:()=>t[o],enumerable:!(r=$Se(t,o))||r.enumerable});return e},YSe=e=>WSe(Dm({},"__esModule",{value:!0}),e),wL={};XSe(wL,{WaiterState:()=>kL,checkExceptions:()=>QSe,createWaiter:()=>rbe,waiterServiceDefaults:()=>xL});AL.exports=YSe(wL);var JSe=or(e=>new Promise(t=>setTimeout(t,e*1e3)),"sleep"),xL={minDelay:2,maxDelay:120},kL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(kL||{}),QSe=or(e=>{if(e.state==="ABORTED"){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state==="TIMEOUT"){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),ZSe=or((e,t,n,r)=>{if(r>n)return t;let o=e*2**(r-1);return ebe(e,o)},"exponentialBackoffWithJitter"),ebe=or((e,t)=>e+Math.random()*(t-e),"randomInRange"),tbe=or(async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:o,abortSignal:s},a,i)=>{var u;let{state:l,reason:c}=await i(o,a);if(l!=="RETRY")return{state:l,reason:c};let y=1,g=Date.now()+n*1e3,C=Math.log(t/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let P=ZSe(e,t,C,y);if(Date.now()+P*1e3>g)return{state:"TIMEOUT"};await JSe(P);let{state:A,reason:v}=await i(o,a);if(A!=="RETRY")return{state:A,reason:v};y+=1}},"runPolling"),nbe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(t=>{e.onabort=()=>t({state:"ABORTED"})}),"abortTimeout"),rbe=or(async(e,t,n)=>{let r={...xL,...e};nbe(r);let o=[tbe(r,t,n)];return e.abortController&&o.push(vL(e.abortController.signal)),e.abortSignal&&o.push(vL(e.abortSignal)),Promise.race(o)},"createWaiter")});var NL=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.waitUntilBucketExists=Ei.waitForBucketExists=void 0;var bi=Va(),obe=Ha(),OL=async(e,t)=>{let n;try{return n=await e.send(new obe.HeadBucketCommand(t)),{state:bi.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:bi.WaiterState.RETRY,reason:n}}return{state:bi.WaiterState.RETRY,reason:n}},sbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,bi.createWaiter)({...n,...e},t,OL)};Ei.waitForBucketExists=sbe;var ibe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,bi.createWaiter)({...n,...e},t,OL);return(0,bi.checkExceptions)(r)};Ei.waitUntilBucketExists=ibe});var RL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilBucketNotExists=Pi.waitForBucketNotExists=void 0;var Xa=Va(),abe=Ha(),IL=async(e,t)=>{let n;try{n=await e.send(new abe.HeadBucketCommand(t))}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:Xa.WaiterState.SUCCESS,reason:n}}return{state:Xa.WaiterState.RETRY,reason:n}},cbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...n,...e},t,IL)};Pi.waitForBucketNotExists=cbe;var dbe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...n,...e},t,IL);return(0,Xa.checkExceptions)(r)};Pi.waitUntilBucketNotExists=dbe});var BL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.waitUntilObjectExists=wi.waitForObjectExists=void 0;var vi=Va(),lbe=$a(),TL=async(e,t)=>{let n;try{return n=await e.send(new lbe.HeadObjectCommand(t)),{state:vi.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:vi.WaiterState.RETRY,reason:n}}return{state:vi.WaiterState.RETRY,reason:n}},ube=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,vi.createWaiter)({...n,...e},t,TL)};wi.waitForObjectExists=ube;var mbe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,vi.createWaiter)({...n,...e},t,TL);return(0,vi.checkExceptions)(r)};wi.waitUntilObjectExists=mbe});var DL=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.waitUntilObjectNotExists=xi.waitForObjectNotExists=void 0;var Wa=Va(),pbe=$a(),qL=async(e,t)=>{let n;try{n=await e.send(new pbe.HeadObjectCommand(t))}catch(r){if(n=r,r.name&&r.name=="NotFound")return{state:Wa.WaiterState.SUCCESS,reason:n}}return{state:Wa.WaiterState.RETRY,reason:n}},fbe=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,Wa.createWaiter)({...n,...e},t,qL)};xi.waitForObjectNotExists=fbe;var ybe=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,Wa.createWaiter)({...n,...e},t,qL);return(0,Wa.checkExceptions)(r)};xi.waitUntilObjectNotExists=ybe});var ML=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Mm=(ne(),J(te));Mm.__exportStar(NL(),ki);Mm.__exportStar(RL(),ki);Mm.__exportStar(BL(),ki);Mm.__exportStar(DL(),ki)});var LL=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var FL=(ne(),J(te));FL.__exportStar(Je(),Fm);FL.__exportStar(Zn(),Fm)});var jL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var Ai=(ne(),J(te));Ai.__exportStar(Fa(),Qt);Ai.__exportStar(hL(),Qt);Ai.__exportStar(_L(),Qt);Ai.__exportStar(PL(),Qt);Ai.__exportStar(ML(),Qt);Ai.__exportStar(LL(),Qt);var gbe=La();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return gbe.S3ServiceException}})});var Cbe={};Ni(Cbe,{handler:()=>_be});module.exports=J(Cbe);var UL=Er(jL()),zL=Er(require("delay")),hbe=new UL.S3;async function _be(){console.log(hbe),await(0,zL.default)(5)}0&&(module.exports={handler}); /*! Bundled license information: tslib/tslib.es6.js: diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/.yarn-integrity b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/.yarn-integrity similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/.yarn-integrity rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/.yarn-integrity diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/index.d.ts similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/index.d.ts rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/index.d.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/index.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/index.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/license b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/license similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/license rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/license diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/readme.md b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/readme.md similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/node_modules/delay/readme.md rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/node_modules/delay/readme.md diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/yarn.lock similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7/yarn.lock rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8/yarn.lock diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json index 2699447ebd3dc..1c71ec3edab15 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7": { + "7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8": { "source": { - "path": "asset.965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7", + "path": "asset.7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7.zip", + "objectKey": "7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "0256748b34fe724b3f321f0d460e6a853cb81d9c69c5233325c68438f6a36c40": { + "d87f96877234890fa2a4f4a0f114d9191ac3731b48681e593d346ce2a8128b12": { "source": { "path": "cdk-integ-lambda-nodejs-latest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "0256748b34fe724b3f321f0d460e6a853cb81d9c69c5233325c68438f6a36c40.json", + "objectKey": "d87f96877234890fa2a4f4a0f114d9191ac3731b48681e593d346ce2a8128b12.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json index c649d15499e9c..32ed0d18cb92a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json @@ -38,7 +38,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7.zip" + "S3Key": "7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8.zip" }, "Environment": { "Variables": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json index e90f6a909a3ef..a16cfed8c77f4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json @@ -18,7 +18,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0256748b34fe724b3f321f0d460e6a853cb81d9c69c5233325c68438f6a36c40.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d87f96877234890fa2a4f4a0f114d9191ac3731b48681e593d346ce2a8128b12.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -84,7 +84,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c2fe281e058ea480def02a361e0682b20073691f58e0b7c6e020fbcb5500ce85.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a58da03bc543b60eed2114f6ccbd66fd45d0e260f5389699ba6261189779aa74.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json index 4daa21e4b6be2..4aaeb0f63b861 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json @@ -105,7 +105,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "965224955600e6822d85d934a24a912edd776b1fb4dc2d2bd455fd31fc18efe7.zip" + "s3Key": "7aa59677ec09d9c17c51bdf9dfbd382212fd362b64889aaf130f48a1c4a405c8.zip" }, "environment": { "variables": {