sst 2.25.4 → 2.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ import { toCdkSize } from "./util/size.js";
28
28
  export class NextjsSite extends SsrSite {
29
29
  constructor(scope, id, props) {
30
30
  super(scope, id, {
31
- buildCommand: "npx --yes open-next@2.0.5 build",
31
+ buildCommand: "npx --yes open-next@2.1.5 build",
32
32
  ...props,
33
33
  });
34
34
  this.deferredTaskCallbacks.push(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.25.4",
4
+ "version": "2.25.6",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -75,7 +75,7 @@ ${i}
75
75
  ${t}
76
76
  ${(0,nT.toHex)(r)}`}getCanonicalPath({path:i}){if(this.uriEscapePath){let t=[];for(let r of i.split("/"))r?.length!==0&&r!=="."&&(r===".."?t.pop():t.push(r));let n=`${i?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&i?.endsWith("/")?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return i}async getSignature(i,t,n,s){let r=await this.createStringToSign(i,t,s),a=new this.sha256(await n);return a.update((0,BH.toUint8Array)(r)),(0,nT.toHex)(await a.digest())}getSigningKey(i,t,n,s){return(0,sT.getSigningKey)(this.sha256,i,n,t,s||this.service)}validateResolvedCredentials(i){if(typeof i!="object"||typeof i.accessKeyId!="string"||typeof i.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};oT.SignatureV4=JH;var rT=e=>{let i=(0,Lci.iso8601)(e).replace(/[\-:]/g,"");return{longDate:i,shortDate:i.slice(0,8)}},aSe=e=>Object.keys(e).sort().join(";")});var dSe=m(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.prepareRequest=mn.moveHeadersToQuery=mn.getPayloadHash=mn.getCanonicalQuery=mn.getCanonicalHeaders=void 0;var lSe=(Se(),le(ye));lSe.__exportStar(cSe(),mn);var qci=qH();Object.defineProperty(mn,"getCanonicalHeaders",{enumerable:!0,get:function(){return qci.getCanonicalHeaders}});var zci=FH();Object.defineProperty(mn,"getCanonicalQuery",{enumerable:!0,get:function(){return zci.getCanonicalQuery}});var Fci=NH();Object.defineProperty(mn,"getPayloadHash",{enumerable:!0,get:function(){return Fci.getPayloadHash}});var Nci=MH();Object.defineProperty(mn,"moveHeadersToQuery",{enumerable:!0,get:function(){return Nci.moveHeadersToQuery}});var Dci=OH();Object.defineProperty(mn,"prepareRequest",{enumerable:!0,get:function(){return Dci.prepareRequest}});lSe.__exportStar(kH(),mn)});var uSe=m(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MAX_PRESIGNED_TTL=Me.KEY_TYPE_IDENTIFIER=Me.MAX_CACHE_SIZE=Me.UNSIGNED_PAYLOAD=Me.EVENT_ALGORITHM_IDENTIFIER=Me.ALGORITHM_IDENTIFIER_V4A=Me.ALGORITHM_IDENTIFIER=Me.UNSIGNABLE_PATTERNS=Me.SEC_HEADER_PATTERN=Me.PROXY_HEADER_PATTERN=Me.ALWAYS_UNSIGNABLE_HEADERS=Me.HOST_HEADER=Me.TOKEN_HEADER=Me.SHA256_HEADER=Me.SIGNATURE_HEADER=Me.GENERATED_HEADERS=Me.DATE_HEADER=Me.AMZ_DATE_HEADER=Me.AUTH_HEADER=Me.REGION_SET_PARAM=Me.TOKEN_QUERY_PARAM=Me.SIGNATURE_QUERY_PARAM=Me.EXPIRES_QUERY_PARAM=Me.SIGNED_HEADERS_QUERY_PARAM=Me.AMZ_DATE_QUERY_PARAM=Me.CREDENTIAL_QUERY_PARAM=Me.ALGORITHM_QUERY_PARAM=void 0;Me.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";Me.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";Me.AMZ_DATE_QUERY_PARAM="X-Amz-Date";Me.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";Me.EXPIRES_QUERY_PARAM="X-Amz-Expires";Me.SIGNATURE_QUERY_PARAM="X-Amz-Signature";Me.TOKEN_QUERY_PARAM="X-Amz-Security-Token";Me.REGION_SET_PARAM="X-Amz-Region-Set";Me.AUTH_HEADER="authorization";Me.AMZ_DATE_HEADER=Me.AMZ_DATE_QUERY_PARAM.toLowerCase();Me.DATE_HEADER="date";Me.GENERATED_HEADERS=[Me.AUTH_HEADER,Me.AMZ_DATE_HEADER,Me.DATE_HEADER];Me.SIGNATURE_HEADER=Me.SIGNATURE_QUERY_PARAM.toLowerCase();Me.SHA256_HEADER="x-amz-content-sha256";Me.TOKEN_HEADER=Me.TOKEN_QUERY_PARAM.toLowerCase();Me.HOST_HEADER="host";Me.ALWAYS_UNSIGNABLE_HEADERS={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};Me.PROXY_HEADER_PATTERN=/^proxy-/;Me.SEC_HEADER_PATTERN=/^sec-/;Me.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];Me.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";Me.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";Me.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";Me.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";Me.MAX_CACHE_SIZE=50;Me.KEY_TYPE_IDENTIFIER="aws4_request";Me.MAX_PRESIGNED_TTL=60*60*24*7});var mSe=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.deleteHeader=Qo.getHeaderValue=Qo.hasHeader=void 0;function Mci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))if(e===t.toLowerCase())return!0;return!1}Qo.hasHeader=Mci;function Oci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))if(e===t.toLowerCase())return i[t]}Qo.getHeaderValue=Oci;function Bci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))e===t.toLowerCase()&&delete i[t]}Qo.deleteHeader=Bci});var fSe=m(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.CrtSignerV4=void 0;var Uci=Hye(),tr=dSe(),pSe=AH(),An=zJ(),hSe=uSe(),Jci=mSe();function jH(e){(0,Jci.deleteHeader)(hSe.SHA256_HEADER,e.headers);let i=Object.entries(e.headers),t=new An.http.HttpHeaders(i),n=(0,tr.getCanonicalQuery)(e);return new An.http.HttpRequest(e.method,e.path+"?"+n,t)}var GH=class{constructor({credentials:i,region:t,service:n,sha256:s,applyChecksum:r=!0,uriEscapePath:a=!0,signingAlgorithm:o=An.auth.AwsSigningAlgorithm.SigV4}){this.service=n,this.sha256=s,this.uriEscapePath=a,this.signingAlgorithm=o,this.applyChecksum=r,this.regionProvider=(0,pSe.normalizeProvider)(t),this.credentialProvider=(0,pSe.normalizeProvider)(i),An.io.enable_logging(An.io.LogLevel.ERROR)}async options2crtConfigure({signingDate:i=new Date,signableHeaders:t,unsignableHeaders:n,signingRegion:s,signingService:r}={},a,o,c){let d=await this.credentialProvider(),u=s??await this.regionProvider(),_=r??this.service;if(t?.has("x-amzn-trace-id")||t?.has("user-agent"))throw new Error("internal check (x-amzn-trace-id, user-agent) is not supported to be included to sign with CRT.");let y=Gci(n,t);return{algorithm:this.signingAlgorithm,signature_type:a?An.auth.AwsSignatureType.HttpRequestViaHeaders:An.auth.AwsSignatureType.HttpRequestViaQueryParams,provider:jci(d),region:u,service:_,date:new Date(i),header_blacklist:y,use_double_uri_encode:this.uriEscapePath,signed_body_value:o,signed_body_header:this.applyChecksum&&a?An.auth.AwsSignedBodyHeaderType.XAmzContentSha256:An.auth.AwsSignedBodyHeaderType.None,expiration_in_seconds:c}}async presign(i,t={}){if(t.expiresIn&&t.expiresIn>hSe.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let n=(0,tr.moveHeadersToQuery)((0,tr.prepareRequest)(i)),s=await this.signRequest(n,await this.options2crtConfigure(t,!1,await(0,tr.getPayloadHash)(i,this.sha256),t.expiresIn?t.expiresIn:3600));return n.query=this.getQueryParam(s.path),n}async sign(i,t){let n=(0,tr.prepareRequest)(i),s=await this.signRequest(n,await this.options2crtConfigure(t,!0,await(0,tr.getPayloadHash)(i,this.sha256)));return n.headers=s.headers._flatten().reduce((r,[a,o])=>({...r,[a]:o}),{}),n}getQueryParam(i){let t=i.search(/\?/),n=i.search(/\#/),s=n==-1?void 0:n,r={};if(t==-1)return r;let a=i.slice(t+1,s);return(0,Uci.parseQueryString)(a)}async signRequest(i,t){let n=jH(i);try{return await An.auth.aws_sign_request(n,t)}catch(s){throw new Error(s)}}async verifySigv4aSigning(i,t,n,s,r,a={}){let o=(0,tr.prepareRequest)(i),c=jH(o),d=await(0,tr.getPayloadHash)(i,this.sha256),u=await this.options2crtConfigure(a,!0,d);return An.auth.aws_verify_sigv4a_signing(c,u,n,t,s,r)}async verifySigv4aPreSigning(i,t,n,s,r,a={}){if(typeof t!="string")return!1;let o=(0,tr.prepareRequest)(i),c=jH(o),d=await this.options2crtConfigure(a,!1,await(0,tr.getPayloadHash)(i,this.sha256),a.expiresIn?a.expiresIn:3600);return An.auth.aws_verify_sigv4a_signing(c,d,n,t,s,r)}};aT.CrtSignerV4=GH;function jci(e){return An.auth.AwsCredentialsProvider.newStatic(e.accessKeyId,e.secretAccessKey,e.sessionToken)}function Gci(e,i){if(!e)return[];if(!i)return[...e];let t=new Set([...e]);for(let n=i.values(),s=null;s=n.next().value;)t.has(s)&&t.delete(s);return[...t]}});var gSe=m(VH=>{"use strict";Object.defineProperty(VH,"__esModule",{value:!0});var Vci=(Se(),le(ye));Vci.__exportStar(fSe(),VH)});var wSe=m(cT=>{"use strict";Object.defineProperty(cT,"__esModule",{value:!0});cT.SignatureV4MultiRegion=void 0;var Hci=hB(),HH=class{constructor(i){this.sigv4Signer=new Hci.SignatureV4(i),this.signerOptions=i}async sign(i,t={}){if(t.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(i,t)}return this.sigv4Signer.sign(i,t)}async presign(i,t={}){if(t.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(i,t)}return this.sigv4Signer.presign(i,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let i;try{if(i=typeof se=="function"&&gSe().CrtSignerV4,typeof i!="function")throw new Error}catch(t){throw t.message=`${t.message}
77
77
  Please check if you have installed "@aws-sdk/signature-v4-crt" package explicitly.
78
- For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new i({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};cT.SignatureV4MultiRegion=HH});var _Se=m($H=>{"use strict";Object.defineProperty($H,"__esModule",{value:!0});var $ci=(Se(),le(ye));$ci.__exportStar(wSe(),$H)});var Ove=m(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.ruleSet=void 0;var f$="required",P="type",X="rules",H="conditions",B="fn",U="argv",Y="ref",Ai="assign",be="url",Pe="properties",Xe="authSchemes",Ye="signingRegion",We="signingName",Ke="disableDoubleEncoding",xe="headers",ySe=!1,ir=!0,W="tree",bn="isSet",_m="substring",Pve="hardwareType",xve="regionPrefix",SSe="abbaSuffix",p$="outpostId",Cm="aws.partition",Le="stringEquals",Ka="isValidHostLabel",ni="not",Re="error",Tve="parseURL",g$="s3-outposts",ee="endpoint",Ae="booleanEquals",Rve="aws.parseArn",et="s3",vSe="aws.isVirtualHostableS3Bucket",ei="getAttr",He="name",XH="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",Ive="https://{Bucket}.s3.{partitionResult#dnsSuffix}",kve="bucketArn",Lve="arnType",hT="",w$="s3-object-lambda",qve="accesspoint",_$="accessPointName",ESe="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",CSe="mrapPartition",ASe="outpostType",bSe="arnPrefix",Ya="{url#scheme}://{url#authority}{url#path}",zve="https://s3.{partitionResult#dnsSuffix}",WH={[f$]:!1,[P]:"String"},ym={[f$]:!0,default:!1,[P]:"Boolean"},lT={[f$]:!1,[P]:"Boolean"},Fve={[B]:bn,[U]:[{[Y]:"Bucket"}]},nr={[Y]:"Bucket"},PSe={[Y]:Pve},xSe={[H]:[{[B]:ni,[U]:[{[B]:bn,[U]:[{[Y]:"Endpoint"}]}]}],[Re]:"Expected a endpoint to be specified but no endpoint was found",[P]:Re},tt={[B]:ni,[U]:[{[B]:bn,[U]:[{[Y]:"Endpoint"}]}]},pt={[B]:bn,[U]:[{[Y]:"Endpoint"}]},Rt={[B]:Tve,[U]:[{[Y]:"Endpoint"}],[Ai]:"url"},dT={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:g$,[Ke]:!0}]},gi={},TSe={[Y]:"ForcePathStyle"},RSe={[H]:[{[B]:"uriEncode",[U]:[nr],[Ai]:"uri_encoded_bucket"}],[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},pt],[Re]:"Cannot set dual-stack in combination with a custom endpoint.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Cm,[U]:[{[Y]:"Region"}],[Ai]:"partitionResult"}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"Accelerate"},!1]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[ee]:{[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]}]},{[Re]:"Path-style addressing cannot be used with S3 Accelerate",[P]:Re}]}]},{[Re]:"A valid partition could not be determined",[P]:Re}]}]},Mt={[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},_i={[B]:Ae,[U]:[{[Y]:"Accelerate"},!1]},Wt={[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},St={[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},Ji={[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]},Gi={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},ji={[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]},Pt={[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},ft={[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},Xa={[Re]:"A valid partition could not be determined",[P]:Re},KH={[H]:[Wt,{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},Xci={[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]},us={[B]:Ae,[U]:[{[Y]:"Accelerate"},!0]},ISe={[H]:[Mt,Wt,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},kSe={[be]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},LSe={[H]:[Pt,Wt,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},qSe={[be]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},zSe={[H]:[Mt,ft,us,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},FSe={[be]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},NSe={[H]:[Mt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},DSe={[be]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},MSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},OSe={[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},y$={[Y]:"url"},BSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[y$,"isIp"]},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},USe={[B]:Ae,[U]:[{[B]:ei,[U]:[y$,"isIp"]},!1]},YH={[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:Gi,[xe]:{}},h$={[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:Gi,[xe]:{}},JSe={[ee]:h$,[P]:ee},jSe={[H]:[Pt,ft,us,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},QH={[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},GSe={[H]:[Pt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ive,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},VSe={[be]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},uT={[Re]:"Invalid region: region was not a valid DNS name.",[P]:Re},pn={[Y]:kve},Nve={[Y]:Lve},ZH={[B]:ei,[U]:[pn,"service"]},S$={[Y]:_$},HSe={[H]:[Mt],[Re]:"S3 Object Lambda does not support Dual-stack",[P]:Re},$Se={[H]:[us],[Re]:"S3 Object Lambda does not support S3 Accelerate",[P]:Re},XSe={[H]:[{[B]:bn,[U]:[{[Y]:"DisableAccessPoints"}]},{[B]:Ae,[U]:[{[Y]:"DisableAccessPoints"},!0]}],[Re]:"Access points are not supported for this operation",[P]:Re},e$={[H]:[{[B]:bn,[U]:[{[Y]:"UseArnRegion"}]},{[B]:Ae,[U]:[{[Y]:"UseArnRegion"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[pn,"region"]},"{Region}"]}]}],[Re]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[P]:Re},v$={[B]:ei,[U]:[{[Y]:"bucketPartition"},He]},Dve={[B]:ei,[U]:[pn,"accountId"]},WSe={[H]:[Wt,{[B]:Le,[U]:[v$,"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},t$={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:w$,[Ke]:!0}]},KSe={[Re]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[P]:Re},i$={[Re]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[P]:Re},n$={[Re]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[P]:Re},s$={[Re]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[P]:Re},YSe={[Re]:"Could not load partition for ARN region `{bucketArn#region}`",[P]:Re},QSe={[Re]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[P]:Re},ZSe={[Re]:"Invalid ARN: bucket ARN is missing a region",[P]:Re},eve={[Re]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[P]:Re},Sm={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:et,[Ke]:!0}]},tve={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:g$,[Ke]:!0}]},ive={[Y]:"UseObjectLambdaEndpoint"},r$={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:w$,[Ke]:!0}]},nve={[H]:[Wt,Mt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},Mve={[ee]:{[be]:Ya,[Pe]:Gi,[xe]:{}},[P]:ee},vm={[be]:Ya,[Pe]:Gi,[xe]:{}},sve={[H]:[Wt,Mt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},rve={[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ove={[H]:[Wt,Pt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},ave={[H]:[Wt,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},cve={[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},lve={[H]:[ft,Mt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},dve={[H]:[ft,Mt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},uve={[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},mve={[H]:[ft,Pt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},pve={[H]:[ft,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:zve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},hve={[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},pT=[{[Y]:"Region"}],Wci=[nr],fve=[{[B]:Ka,[U]:[{[Y]:p$},!1]}],gve=[{[B]:Le,[U]:[{[Y]:xve},"beta"]}],Kci=[{[Y]:"Endpoint"}],Em=[pt,Rt],wve=[Fve],_ve=[{[B]:Rve,[U]:[nr]}],Yci=[Mt,pt],Wa=[{[B]:Cm,[U]:pT,[Ai]:"partitionResult"}],Ol=[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],yve=[{[B]:Ka,[U]:[{[Y]:"Region"},!1]}],o$=[{[B]:Le,[U]:[Nve,qve]}],Sve=[{[B]:ei,[U]:[pn,"resourceId[1]"],[Ai]:_$},{[B]:ni,[U]:[{[B]:Le,[U]:[S$,hT]}]}],Qci=[pn,"resourceId[1]"],vve=[Mt],a$=[us],c$=[{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[pn,"region"]},hT]}]}],Eve=[{[B]:ni,[U]:[{[B]:bn,[U]:[{[B]:ei,[U]:[pn,"resourceId[2]"]}]}]}],Zci=[pn,"resourceId[2]"],l$=[{[B]:Cm,[U]:[{[B]:ei,[U]:[pn,"region"]}],[Ai]:"bucketPartition"}],Cve=[{[B]:Le,[U]:[v$,{[B]:ei,[U]:[{[Y]:"partitionResult"},He]}]}],d$=[{[B]:Ka,[U]:[{[B]:ei,[U]:[pn,"region"]},!0]}],u$=[{[B]:Ka,[U]:[Dve,!1]}],Ave=[{[B]:Ka,[U]:[S$,!1]}],mT=[Wt],bve=[{[B]:Ka,[U]:[{[Y]:"Region"},!0]}],m$=[Mve],eli={version:"1.0",parameters:{Bucket:WH,Region:WH,UseFIPS:ym,UseDualStack:ym,Endpoint:WH,ForcePathStyle:lT,Accelerate:ym,UseGlobalEndpoint:ym,UseObjectLambdaEndpoint:lT,DisableAccessPoints:lT,DisableMultiRegionAccessPoints:ym,UseArnRegion:lT},[X]:[{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:pT}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[Fve,{[B]:_m,[U]:[nr,49,50,ir],[Ai]:Pve},{[B]:_m,[U]:[nr,8,12,ir],[Ai]:xve},{[B]:_m,[U]:[nr,0,7,ir],[Ai]:SSe},{[B]:_m,[U]:[nr,32,49,ir],[Ai]:p$},{[B]:Cm,[U]:pT,[Ai]:"regionPartition"},{[B]:Le,[U]:[{[Y]:SSe},"--op-s3"]}],[P]:W,[X]:[{[H]:fve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[PSe,"e"]}],[P]:W,[X]:[{[H]:gve,[P]:W,[X]:[xSe,{[H]:Em,endpoint:{[be]:"https://{Bucket}.ec2.{url#authority}",[Pe]:dT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:dT,[xe]:gi},[P]:ee}]},{[H]:[{[B]:Le,[U]:[PSe,"o"]}],[P]:W,[X]:[{[H]:gve,[P]:W,[X]:[xSe,{[H]:Em,endpoint:{[be]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Pe]:dT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:dT,[xe]:gi},[P]:ee}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[P]:Re}]}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[P]:Re}]},{[H]:wve,[P]:W,[X]:[{[H]:[pt,{[B]:ni,[U]:[{[B]:bn,[U]:[{[B]:Tve,[U]:Kci}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:[TSe]},{[B]:Ae,[U]:[TSe,ir]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:_ve,error:"Path-style addressing cannot be used with ARN buckets",[P]:Re},RSe]}]},{[H]:[{[B]:vSe,[U]:[nr,ySe]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,[P]:W,[X]:[{[P]:W,[X]:[KH,{[P]:W,[X]:[{[H]:[us,Wt],error:"Accelerate cannot be used with FIPS",[P]:Re},{[P]:W,[X]:[{[H]:[us,Xci],error:"S3 Accelerate cannot be used in this region",[P]:Re},{[P]:W,[X]:[{[H]:[pt,Mt],error:XH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,Wt],error:XH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,us],error:XH,[P]:Re},{[P]:W,[X]:[ISe,ISe,{[H]:[Mt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:kSe,[P]:ee}]},{[H]:[Mt,Wt,_i,tt,St,ji],endpoint:kSe,[P]:ee},LSe,LSe,{[H]:[Pt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:qSe,[P]:ee}]},{[H]:[Pt,Wt,_i,tt,St,ji],endpoint:qSe,[P]:ee},zSe,zSe,{[H]:[Mt,ft,us,tt,St,Ji],[P]:W,[X]:[{endpoint:FSe,[P]:ee}]},{[H]:[Mt,ft,us,tt,St,ji],endpoint:FSe,[P]:ee},NSe,NSe,{[H]:[Mt,ft,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:DSe,[P]:ee}]},{[H]:[Mt,ft,_i,tt,St,ji],endpoint:DSe,[P]:ee},MSe,BSe,MSe,BSe,{[H]:[Pt,ft,_i,pt,Rt,OSe,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:YH,[P]:ee},{endpoint:YH,[P]:ee}]},{[H]:[Pt,ft,_i,pt,Rt,USe,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:h$,[P]:ee},JSe]},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,ji],endpoint:YH,[P]:ee},{[H]:[Pt,ft,_i,pt,Rt,USe,St,ji],endpoint:h$,[P]:ee},jSe,jSe,{[H]:[Pt,ft,us,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:QH,[P]:ee},{endpoint:QH,[P]:ee}]},{[H]:[Pt,ft,us,tt,St,ji],endpoint:QH,[P]:ee},GSe,GSe,{[H]:[Pt,ft,_i,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:{[be]:Ive,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:VSe,[P]:ee}]},{[H]:[Pt,ft,_i,tt,St,ji],endpoint:VSe,[P]:ee}]}]}]}]}]}]}]}]},uT]}]},Xa]},{[H]:[pt,Rt,{[B]:Le,[U]:[{[B]:ei,[U]:[y$,"scheme"]},"http"]},{[B]:vSe,[U]:[nr,ir]},ft,Pt,_i],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,[P]:W,[X]:[JSe]},uT]}]},Xa]},{[H]:[{[B]:Rve,[U]:Wci,[Ai]:kve}],[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[pn,"resourceId[0]"],[Ai]:Lve},{[B]:ni,[U]:[{[B]:Le,[U]:[Nve,hT]}]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ZH,w$]}],[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[XSe,{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[Dve,hT]}],error:"Invalid ARN: Missing account id",[P]:Re},{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Ave,[P]:W,[X]:[{[P]:W,[X]:[WSe,{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:ESe,[Pe]:t$,[xe]:gi},[P]:ee},{[H]:mT,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:t$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:t$,[xe]:gi},[P]:ee}]}]}]},KSe]}]},i$]}]}]},n$]}]},s$]}]},Xa]}]},YSe]}]}]},QSe]}]}]},ZSe]}]}]}]},eve]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[P]:Re}]},{[H]:o$,[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[XSe,{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[v$,"{partitionResult#name}"]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ZH,et]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Ave,[P]:W,[X]:[{[P]:W,[X]:[{[H]:a$,error:"Access Points do not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[WSe,{[P]:W,[X]:[{[H]:Yci,error:"DualStack cannot be combined with a Host override (PrivateLink)",[P]:Re},{[P]:W,[X]:[{[H]:[Wt,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[Wt,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Pt,pt,Rt],endpoint:{[be]:ESe,[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee}]}]}]}]}]},KSe]}]},i$]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[P]:Re}]}]},n$]}]},s$]}]},Xa]}]},YSe]}]}]},QSe]}]}]},ZSe]}]},{[P]:W,[X]:[{[H]:[{[B]:Ka,[U]:[S$,ir]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,error:"S3 MRAP does not support dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:mT,error:"S3 MRAP does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:a$,error:"S3 MRAP does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"DisableMultiRegionAccessPoints"},ir]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Cm,[U]:pT,[Ai]:CSe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:CSe},He]},{[B]:ei,[U]:[pn,"partition"]}]}],[P]:W,[X]:[{endpoint:{[be]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Pe]:{[Xe]:[{name:"sigv4a",signingRegionSet:["*"],[We]:et,[Ke]:ir}]},[xe]:gi},[P]:ee}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[P]:Re}]}]},{error:"{Region} was not a valid region",[P]:Re}]}]}]}]}]}]},{error:"Invalid Access Point Name",[P]:Re}]}]}]},eve]},{[H]:[{[B]:Le,[U]:[ZH,g$]}],[P]:W,[X]:[{[H]:vve,error:"S3 Outposts does not support Dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:mT,error:"S3 Outposts does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:a$,error:"S3 Outposts does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:[{[B]:ei,[U]:[pn,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Qci,[Ai]:p$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:fve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Zci,[Ai]:ASe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[pn,"resourceId[3]"],[Ai]:_$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:ASe},qve]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Pe]:tve,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:tve,[xe]:gi},[P]:ee}]}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[P]:Re}]}]},{error:"Invalid ARN: expected an access point name",[P]:Re}]}]},{error:"Invalid ARN: Expected a 4-component resource",[P]:Re}]}]},i$]}]},n$]}]},s$]}]},Xa]}]},{error:"Could not load partition for ARN region {bucketArn#region}",[P]:Re}]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[P]:Re}]}]},{error:"Invalid ARN: The Outpost Id was not set",[P]:Re}]}]}]}]}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[P]:Re}]}]},{error:"Invalid ARN: No ARN type specified",[P]:Re}]},{[H]:[{[B]:_m,[U]:[nr,0,4,ySe],[Ai]:bSe},{[B]:Le,[U]:[{[Y]:bSe},"arn:"]},{[B]:ni,[U]:[{[B]:bn,[U]:_ve}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[P]:Re},RSe]}]},{[H]:[{[B]:bn,[U]:[ive]},{[B]:Ae,[U]:[ive,ir]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:bve,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[$Se,{[P]:W,[X]:[KH,{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:Ya,[Pe]:r$,[xe]:gi},[P]:ee},{[H]:mT,endpoint:{[be]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:r$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Pe]:r$,[xe]:gi},[P]:ee}]}]}]}]}]},uT]}]},Xa]},{[H]:[{[B]:ni,[U]:wve}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:bve,[P]:W,[X]:[{[P]:W,[X]:[KH,{[P]:W,[X]:[nve,nve,{[H]:[Wt,Mt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[Wt,Mt,pt,Rt,St,ji],endpoint:vm,[P]:ee},sve,sve,{[H]:[Wt,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:rve,[P]:ee}]},{[H]:[Wt,Mt,tt,St,ji],endpoint:rve,[P]:ee},ove,ove,{[H]:[Wt,Pt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[Wt,Pt,pt,Rt,St,ji],endpoint:vm,[P]:ee},ave,ave,{[H]:[Wt,Pt,tt,St,Ji],[P]:W,[X]:[{endpoint:cve,[P]:ee}]},{[H]:[Wt,Pt,tt,St,ji],endpoint:cve,[P]:ee},lve,lve,{[H]:[ft,Mt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[ft,Mt,pt,Rt,St,ji],endpoint:vm,[P]:ee},dve,dve,{[H]:[ft,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:uve,[P]:ee}]},{[H]:[ft,Mt,tt,St,ji],endpoint:uve,[P]:ee},mve,mve,{[H]:[ft,Pt,pt,Rt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:vm,[P]:ee},Mve]},{[H]:[ft,Pt,pt,Rt,St,ji],endpoint:vm,[P]:ee},pve,pve,{[H]:[ft,Pt,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:{[be]:zve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:hve,[P]:ee}]},{[H]:[ft,Pt,tt,St,ji],endpoint:hve,[P]:ee}]}]}]},uT]}]},Xa]}]}]},{error:"A region must be set when sending requests to S3.",[P]:Re}]}]};fT.ruleSet=eli});var Bve=m(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.defaultEndpointResolver=void 0;var tli=pl(),ili=Ove(),nli=(e,i={})=>(0,tli.resolveEndpoint)(ili.ruleSet,{endpointParams:e,logger:i.logger});gT.defaultEndpointResolver=nli});var jve=m(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.getRuntimeConfig=void 0;var sli=_Se(),rli=S(),oli=so(),Uve=ul(),Jve=Un(),ali=Bve(),cli=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Uve.fromBase64,base64Encoder:e?.base64Encoder??Uve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ali.defaultEndpointResolver,logger:e?.logger??new rli.NoOpLogger,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??sli.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??oli.parseUrl,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??Jve.fromUtf8,utf8Encoder:e?.utf8Encoder??Jve.toUtf8});wT.getRuntimeConfig=cli});var $ve=m(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.getRuntimeConfig=void 0;var lli=(Se(),le(ye)),dli=lli.__importDefault(cye()),uli=tG(),_T=Mn(),mli=FA(),pli=xye(),E$=Kc(),hli=kye(),fli=Bye(),Gve=ns(),Bl=Cr(),Vve=La(),gli=Yc(),wli=_n(),Hve=Vye(),_li=dl(),yli=jve(),Sli=S(),vli=fl(),Eli=S(),Cli=e=>{(0,Eli.emitWarningIfUnsupportedVersion)(process.version);let i=(0,vli.resolveDefaultsModeConfig)(e),t=()=>i().then(Sli.loadConfigsForDefaultMode),n=(0,yli.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:i,bodyLengthChecker:e?.bodyLengthChecker??gli.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,uli.decorateDefaultCredentialProvider)(mli.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,_li.defaultUserAgent)({serviceId:n.serviceId,clientVersion:dli.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??pli.eventStreamSerdeProvider,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??Hve.getAwsChunkedEncodingStream,maxAttempts:e?.maxAttempts??(0,Bl.loadConfig)(Gve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:e?.md5??E$.Hash.bind(null,"md5"),region:e?.region??(0,Bl.loadConfig)(_T.NODE_REGION_CONFIG_OPTIONS,_T.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new Vve.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Bl.loadConfig)({...Gve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||wli.DEFAULT_RETRY_MODE}),sdkStreamMixin:e?.sdkStreamMixin??Hve.sdkStreamMixin,sha1:e?.sha1??E$.Hash.bind(null,"sha1"),sha256:e?.sha256??E$.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Vve.streamCollector,streamHasher:e?.streamHasher??hli.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,Bl.loadConfig)(fli.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:e?.useDualstackEndpoint??(0,Bl.loadConfig)(_T.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Bl.loadConfig)(_T.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};yT.getRuntimeConfig=Cli});var Am=m(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.S3Client=void 0;var Ali=Mn(),bli=sye(),Pli=kc(),xli=C(),Tli=oye(),Xve=Lc(),Rli=qc(),Ili=zc(),Wve=ns(),Kve=Rl(),Yve=bs(),Qve=Vc(),kli=S(),Lli=aye(),qli=$ve(),C$=class extends kli.Client{constructor(i){let t=(0,qli.getRuntimeConfig)(i),n=(0,Lli.resolveClientEndpointParameters)(t),s=(0,Ali.resolveRegionConfig)(n),r=(0,xli.resolveEndpointConfig)(s),a=(0,Wve.resolveRetryConfig)(r),o=(0,Xve.resolveHostHeaderConfig)(a),c=(0,Yve.resolveAwsAuthConfig)(o),d=(0,Kve.resolveS3Config)(c),u=(0,Qve.resolveUserAgentConfig)(d),_=(0,bli.resolveEventStreamSerdeConfig)(u);super(_),this.config=_,this.middlewareStack.use((0,Wve.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Pli.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Xve.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rli.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Ili.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Yve.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Kve.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Tli.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,Qve.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ST.S3Client=C$});var ET=m(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.S3=void 0;var zli=bG(),Fli=TG(),Nli=IG(),Dli=LG(),Mli=zG(),Oli=NG(),Bli=MG(),Uli=BG(),Jli=JG(),jli=GG(),Gli=HG(),Vli=XG(),Hli=KG(),$li=QG(),Xli=e2(),Wli=i2(),Kli=s2(),Yli=o2(),Qli=c2(),Zli=C2(),edi=b2(),tdi=x2(),idi=R2(),ndi=k2(),sdi=q2(),rdi=F2(),odi=D2(),adi=O2(),cdi=U2(),ldi=j2(),ddi=V2(),udi=$2(),mdi=W2(),pdi=Y2(),hdi=Z2(),fdi=t3(),gdi=n3(),wdi=r3(),_di=a3(),ydi=l3(),Sdi=u3(),vdi=p3(),Edi=f3(),Cdi=w3(),Adi=y3(),bdi=v3(),Pdi=C3(),xdi=b3(),Tdi=x3(),Rdi=R3(),Idi=k3(),kdi=pm(),Ldi=hm(),qdi=F3(),zdi=D3(),Fdi=O3(),Ndi=U3(),Ddi=j3(),Mdi=V3(),Odi=$3(),Bdi=LP(),Udi=K3(),Jdi=FP(),jdi=Z3(),Gdi=tV(),Vdi=nV(),Hdi=rV(),$di=aV(),Xdi=lV(),Wdi=uV(),Kdi=pV(),Ydi=fV(),Qdi=wV(),Zdi=yV(),eui=vV(),tui=CV(),iui=bV(),nui=xV(),sui=RV(),rui=kV(),oui=qV(),aui=FV(),cui=DV(),lui=OV(),dui=UV(),uui=jV(),mui=VV(),pui=$V(),hui=WV(),fui=YV(),gui=ZV(),wui=tH(),_ui=nH(),yui=Am(),A$=class extends yui.S3Client{abortMultipartUpload(i,t,n){let s=new zli.AbortMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}completeMultipartUpload(i,t,n){let s=new Fli.CompleteMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}copyObject(i,t,n){let s=new Nli.CopyObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}createBucket(i,t,n){let s=new Dli.CreateBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}createMultipartUpload(i,t,n){let s=new Mli.CreateMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucket(i,t,n){let s=new Bli.DeleteBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketAnalyticsConfiguration(i,t,n){let s=new Oli.DeleteBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketCors(i,t,n){let s=new Uli.DeleteBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketEncryption(i,t,n){let s=new Jli.DeleteBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketIntelligentTieringConfiguration(i,t,n){let s=new jli.DeleteBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketInventoryConfiguration(i,t,n){let s=new Gli.DeleteBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketLifecycle(i,t,n){let s=new Vli.DeleteBucketLifecycleCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketMetricsConfiguration(i,t,n){let s=new Hli.DeleteBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketOwnershipControls(i,t,n){let s=new $li.DeleteBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketPolicy(i,t,n){let s=new Xli.DeleteBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketReplication(i,t,n){let s=new Wli.DeleteBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketTagging(i,t,n){let s=new Kli.DeleteBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketWebsite(i,t,n){let s=new Yli.DeleteBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObject(i,t,n){let s=new Qli.DeleteObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObjects(i,t,n){let s=new Zli.DeleteObjectsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObjectTagging(i,t,n){let s=new edi.DeleteObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deletePublicAccessBlock(i,t,n){let s=new tdi.DeletePublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAccelerateConfiguration(i,t,n){let s=new idi.GetBucketAccelerateConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAcl(i,t,n){let s=new ndi.GetBucketAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAnalyticsConfiguration(i,t,n){let s=new sdi.GetBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketCors(i,t,n){let s=new rdi.GetBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketEncryption(i,t,n){let s=new odi.GetBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketIntelligentTieringConfiguration(i,t,n){let s=new adi.GetBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketInventoryConfiguration(i,t,n){let s=new cdi.GetBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLifecycleConfiguration(i,t,n){let s=new ldi.GetBucketLifecycleConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLocation(i,t,n){let s=new ddi.GetBucketLocationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLogging(i,t,n){let s=new udi.GetBucketLoggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketMetricsConfiguration(i,t,n){let s=new mdi.GetBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketNotificationConfiguration(i,t,n){let s=new pdi.GetBucketNotificationConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketOwnershipControls(i,t,n){let s=new hdi.GetBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketPolicy(i,t,n){let s=new fdi.GetBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketPolicyStatus(i,t,n){let s=new gdi.GetBucketPolicyStatusCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketReplication(i,t,n){let s=new wdi.GetBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketRequestPayment(i,t,n){let s=new _di.GetBucketRequestPaymentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketTagging(i,t,n){let s=new ydi.GetBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketVersioning(i,t,n){let s=new Sdi.GetBucketVersioningCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketWebsite(i,t,n){let s=new vdi.GetBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObject(i,t,n){let s=new Adi.GetObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectAcl(i,t,n){let s=new Edi.GetObjectAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectAttributes(i,t,n){let s=new Cdi.GetObjectAttributesCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectLegalHold(i,t,n){let s=new bdi.GetObjectLegalHoldCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectLockConfiguration(i,t,n){let s=new Pdi.GetObjectLockConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectRetention(i,t,n){let s=new xdi.GetObjectRetentionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectTagging(i,t,n){let s=new Tdi.GetObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectTorrent(i,t,n){let s=new Rdi.GetObjectTorrentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getPublicAccessBlock(i,t,n){let s=new Idi.GetPublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}headBucket(i,t,n){let s=new kdi.HeadBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}headObject(i,t,n){let s=new Ldi.HeadObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketAnalyticsConfigurations(i,t,n){let s=new qdi.ListBucketAnalyticsConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketIntelligentTieringConfigurations(i,t,n){let s=new zdi.ListBucketIntelligentTieringConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketInventoryConfigurations(i,t,n){let s=new Fdi.ListBucketInventoryConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketMetricsConfigurations(i,t,n){let s=new Ndi.ListBucketMetricsConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBuckets(i,t,n){let s=new Ddi.ListBucketsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listMultipartUploads(i,t,n){let s=new Mdi.ListMultipartUploadsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjects(i,t,n){let s=new Odi.ListObjectsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjectsV2(i,t,n){let s=new Bdi.ListObjectsV2Command(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjectVersions(i,t,n){let s=new Udi.ListObjectVersionsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listParts(i,t,n){let s=new Jdi.ListPartsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAccelerateConfiguration(i,t,n){let s=new jdi.PutBucketAccelerateConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAcl(i,t,n){let s=new Gdi.PutBucketAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAnalyticsConfiguration(i,t,n){let s=new Vdi.PutBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketCors(i,t,n){let s=new Hdi.PutBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketEncryption(i,t,n){let s=new $di.PutBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketIntelligentTieringConfiguration(i,t,n){let s=new Xdi.PutBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketInventoryConfiguration(i,t,n){let s=new Wdi.PutBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketLifecycleConfiguration(i,t,n){let s=new Kdi.PutBucketLifecycleConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketLogging(i,t,n){let s=new Ydi.PutBucketLoggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketMetricsConfiguration(i,t,n){let s=new Qdi.PutBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketNotificationConfiguration(i,t,n){let s=new Zdi.PutBucketNotificationConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketOwnershipControls(i,t,n){let s=new eui.PutBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketPolicy(i,t,n){let s=new tui.PutBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketReplication(i,t,n){let s=new iui.PutBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketRequestPayment(i,t,n){let s=new nui.PutBucketRequestPaymentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketTagging(i,t,n){let s=new sui.PutBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketVersioning(i,t,n){let s=new rui.PutBucketVersioningCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketWebsite(i,t,n){let s=new oui.PutBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObject(i,t,n){let s=new cui.PutObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectAcl(i,t,n){let s=new aui.PutObjectAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectLegalHold(i,t,n){let s=new lui.PutObjectLegalHoldCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectLockConfiguration(i,t,n){let s=new dui.PutObjectLockConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectRetention(i,t,n){let s=new uui.PutObjectRetentionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectTagging(i,t,n){let s=new mui.PutObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putPublicAccessBlock(i,t,n){let s=new pui.PutPublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}restoreObject(i,t,n){let s=new hui.RestoreObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}selectObjectContent(i,t,n){let s=new fui.SelectObjectContentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}uploadPart(i,t,n){let s=new gui.UploadPartCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}uploadPartCopy(i,t,n){let s=new wui.UploadPartCopyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}writeGetObjectResponse(i,t,n){let s=new _ui.WriteGetObjectResponseCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}};vT.S3=A$});var Zve=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var we=(Se(),le(ye));we.__exportStar(bG(),de);we.__exportStar(TG(),de);we.__exportStar(IG(),de);we.__exportStar(LG(),de);we.__exportStar(zG(),de);we.__exportStar(NG(),de);we.__exportStar(MG(),de);we.__exportStar(BG(),de);we.__exportStar(JG(),de);we.__exportStar(GG(),de);we.__exportStar(HG(),de);we.__exportStar(XG(),de);we.__exportStar(KG(),de);we.__exportStar(QG(),de);we.__exportStar(e2(),de);we.__exportStar(i2(),de);we.__exportStar(s2(),de);we.__exportStar(o2(),de);we.__exportStar(c2(),de);we.__exportStar(b2(),de);we.__exportStar(C2(),de);we.__exportStar(x2(),de);we.__exportStar(R2(),de);we.__exportStar(k2(),de);we.__exportStar(q2(),de);we.__exportStar(F2(),de);we.__exportStar(D2(),de);we.__exportStar(O2(),de);we.__exportStar(U2(),de);we.__exportStar(j2(),de);we.__exportStar(V2(),de);we.__exportStar($2(),de);we.__exportStar(W2(),de);we.__exportStar(Y2(),de);we.__exportStar(Z2(),de);we.__exportStar(t3(),de);we.__exportStar(n3(),de);we.__exportStar(r3(),de);we.__exportStar(a3(),de);we.__exportStar(l3(),de);we.__exportStar(u3(),de);we.__exportStar(p3(),de);we.__exportStar(f3(),de);we.__exportStar(w3(),de);we.__exportStar(y3(),de);we.__exportStar(v3(),de);we.__exportStar(C3(),de);we.__exportStar(b3(),de);we.__exportStar(x3(),de);we.__exportStar(R3(),de);we.__exportStar(k3(),de);we.__exportStar(pm(),de);we.__exportStar(hm(),de);we.__exportStar(F3(),de);we.__exportStar(D3(),de);we.__exportStar(O3(),de);we.__exportStar(U3(),de);we.__exportStar(j3(),de);we.__exportStar(V3(),de);we.__exportStar(K3(),de);we.__exportStar($3(),de);we.__exportStar(LP(),de);we.__exportStar(FP(),de);we.__exportStar(Z3(),de);we.__exportStar(tV(),de);we.__exportStar(nV(),de);we.__exportStar(rV(),de);we.__exportStar(aV(),de);we.__exportStar(lV(),de);we.__exportStar(uV(),de);we.__exportStar(pV(),de);we.__exportStar(fV(),de);we.__exportStar(wV(),de);we.__exportStar(yV(),de);we.__exportStar(vV(),de);we.__exportStar(CV(),de);we.__exportStar(bV(),de);we.__exportStar(xV(),de);we.__exportStar(RV(),de);we.__exportStar(kV(),de);we.__exportStar(qV(),de);we.__exportStar(FV(),de);we.__exportStar(DV(),de);we.__exportStar(OV(),de);we.__exportStar(UV(),de);we.__exportStar(jV(),de);we.__exportStar(VV(),de);we.__exportStar($V(),de);we.__exportStar(WV(),de);we.__exportStar(YV(),de);we.__exportStar(ZV(),de);we.__exportStar(tH(),de);we.__exportStar(nH(),de)});var tEe=m(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});var eEe=(Se(),le(ye));eEe.__exportStar(ve(),CT);eEe.__exportStar(ds(),CT)});var nEe=m(iEe=>{"use strict";Object.defineProperty(iEe,"__esModule",{value:!0})});var sEe=m(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.paginateListObjectsV2=void 0;var Sui=LP(),vui=ET(),Eui=Am(),Cui=async(e,i,...t)=>await e.send(new Sui.ListObjectsV2Command(i),...t),Aui=async(e,i,...t)=>await e.listObjectsV2(i,...t);async function*bui(e,i,...t){let n=e.startingToken||void 0,s=!0,r;for(;s;){if(i.ContinuationToken=n,i.MaxKeys=e.pageSize,e.client instanceof vui.S3)r=await Aui(e.client,i,...t);else if(e.client instanceof Eui.S3Client)r=await Cui(e.client,i,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield r;let a=n;n=r.NextContinuationToken,s=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}AT.paginateListObjectsV2=bui});var rEe=m(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.paginateListParts=void 0;var Pui=FP(),xui=ET(),Tui=Am(),Rui=async(e,i,...t)=>await e.send(new Pui.ListPartsCommand(i),...t),Iui=async(e,i,...t)=>await e.listParts(i,...t);async function*kui(e,i,...t){let n=e.startingToken||void 0,s=!0,r;for(;s;){if(i.PartNumberMarker=n,i.MaxParts=e.pageSize,e.client instanceof xui.S3)r=await Iui(e.client,i,...t);else if(e.client instanceof Tui.S3Client)r=await Rui(e.client,i,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield r;let a=n;n=r.NextPartNumberMarker,s=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}bT.paginateListParts=kui});var oEe=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var b$=(Se(),le(ye));b$.__exportStar(nEe(),bm);b$.__exportStar(sEe(),bm);b$.__exportStar(rEe(),bm)});var P$=m(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.sleep=void 0;var Lui=e=>new Promise(i=>setTimeout(i,e*1e3));PT.sleep=Lui});var TT=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.checkExceptions=Br.WaiterState=Br.waiterServiceDefaults=void 0;Br.waiterServiceDefaults={minDelay:2,maxDelay:120};var xT;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(xT=Br.WaiterState||(Br.WaiterState={}));var qui=e=>{if(e.state===xT.ABORTED){let i=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw i.name="AbortError",i}else if(e.state===xT.TIMEOUT){let i=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw i.name="TimeoutError",i}else if(e.state!==xT.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Br.checkExceptions=qui});var aEe=m(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.runPolling=void 0;var zui=P$(),RT=TT(),Fui=(e,i,t,n)=>{if(n>t)return i;let s=e*2**(n-1);return Nui(e,s)},Nui=(e,i)=>e+Math.random()*(i-e),Dui=async({minDelay:e,maxDelay:i,maxWaitTime:t,abortController:n,client:s,abortSignal:r},a,o)=>{var c;let{state:d,reason:u}=await o(s,a);if(d!==RT.WaiterState.RETRY)return{state:d,reason:u};let _=1,y=Date.now()+t*1e3,b=Math.log(i/e)/Math.log(2)+1;for(;;){if(!((c=n?.signal)===null||c===void 0)&&c.aborted||r?.aborted)return{state:RT.WaiterState.ABORTED};let k=Fui(e,i,b,_);if(Date.now()+k*1e3>y)return{state:RT.WaiterState.TIMEOUT};await(0,zui.sleep)(k);let{state:j,reason:$}=await o(s,a);if(j!==RT.WaiterState.RETRY)return{state:j,reason:$};_+=1}};IT.runPolling=Dui});var cEe=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.validateWaiterOptions=void 0;var Mui=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.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};kT.validateWaiterOptions=Mui});var dEe=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});var lEe=(Se(),le(ye));lEe.__exportStar(P$(),LT);lEe.__exportStar(cEe(),LT)});var pEe=m(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.createWaiter=void 0;var Oui=aEe(),Bui=dEe(),mEe=TT(),uEe=async e=>new Promise(i=>{e.onabort=()=>i({state:mEe.WaiterState.ABORTED})}),Uui=async(e,i,t)=>{let n={...mEe.waiterServiceDefaults,...e};(0,Bui.validateWaiterOptions)(n);let s=[(0,Oui.runPolling)(n,i,t)];return e.abortController&&s.push(uEe(e.abortController.signal)),e.abortSignal&&s.push(uEe(e.abortSignal)),Promise.race(s)};qT.createWaiter=Uui});var Pm=m(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});var hEe=(Se(),le(ye));hEe.__exportStar(pEe(),zT);hEe.__exportStar(TT(),zT)});var gEe=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.waitUntilBucketExists=Jl.waitForBucketExists=void 0;var Ul=Pm(),Jui=pm(),fEe=async(e,i)=>{let t;try{return t=await e.send(new Jui.HeadBucketCommand(i)),{state:Ul.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Ul.WaiterState.RETRY,reason:t}}return{state:Ul.WaiterState.RETRY,reason:t}},jui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Ul.createWaiter)({...t,...e},i,fEe)};Jl.waitForBucketExists=jui;var Gui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Ul.createWaiter)({...t,...e},i,fEe);return(0,Ul.checkExceptions)(n)};Jl.waitUntilBucketExists=Gui});var _Ee=m(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.waitUntilBucketNotExists=jl.waitForBucketNotExists=void 0;var xm=Pm(),Vui=pm(),wEe=async(e,i)=>{let t;try{t=await e.send(new Vui.HeadBucketCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:xm.WaiterState.SUCCESS,reason:t}}return{state:xm.WaiterState.RETRY,reason:t}},Hui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,xm.createWaiter)({...t,...e},i,wEe)};jl.waitForBucketNotExists=Hui;var $ui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,xm.createWaiter)({...t,...e},i,wEe);return(0,xm.checkExceptions)(n)};jl.waitUntilBucketNotExists=$ui});var SEe=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.waitUntilObjectExists=Vl.waitForObjectExists=void 0;var Gl=Pm(),Xui=hm(),yEe=async(e,i)=>{let t;try{return t=await e.send(new Xui.HeadObjectCommand(i)),{state:Gl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Gl.WaiterState.RETRY,reason:t}}return{state:Gl.WaiterState.RETRY,reason:t}},Wui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Gl.createWaiter)({...t,...e},i,yEe)};Vl.waitForObjectExists=Wui;var Kui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Gl.createWaiter)({...t,...e},i,yEe);return(0,Gl.checkExceptions)(n)};Vl.waitUntilObjectExists=Kui});var EEe=m(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.waitUntilObjectNotExists=Hl.waitForObjectNotExists=void 0;var Tm=Pm(),Yui=hm(),vEe=async(e,i)=>{let t;try{t=await e.send(new Yui.HeadObjectCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Tm.WaiterState.SUCCESS,reason:t}}return{state:Tm.WaiterState.RETRY,reason:t}},Qui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Tm.createWaiter)({...t,...e},i,vEe)};Hl.waitForObjectNotExists=Qui;var Zui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Tm.createWaiter)({...t,...e},i,vEe);return(0,Tm.checkExceptions)(n)};Hl.waitUntilObjectNotExists=Zui});var CEe=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var FT=(Se(),le(ye));FT.__exportStar(gEe(),$l);FT.__exportStar(_Ee(),$l);FT.__exportStar(SEe(),$l);FT.__exportStar(EEe(),$l)});var AEe=m(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.S3ServiceException=void 0;var Xl=(Se(),le(ye));Xl.__exportStar(ET(),sr);Xl.__exportStar(Am(),sr);Xl.__exportStar(Zve(),sr);Xl.__exportStar(tEe(),sr);Xl.__exportStar(oEe(),sr);Xl.__exportStar(CEe(),sr);var emi=sm();Object.defineProperty(sr,"S3ServiceException",{enumerable:!0,get:function(){return emi.S3ServiceException}})});var PEe=JT(WK(),1),DT=JT(Bhe(),1),Wl=JT(AEe(),1);import tmi from"crypto";var bEe=new Wl.S3Client({}),imi=new DT.IoTClient({}),nmi=await imi.send(new DT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),smi=nmi.endpointAddress,NT=tmi.randomBytes(16).toString("hex"),xEe=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,rmi={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},TEe=Object.fromEntries(Object.entries(process.env).filter(([e,i])=>rmi[e]!==!0)),Rm=new PEe.default.device({protocol:"wss",debug:!0,host:smi,region:TEe.AWS_REGION});Rm.on("error",console.log);Rm.on("connect",console.log);Rm.subscribe(`${xEe}/events/${NT}`,{qos:1});var x$=new Map,T$;Rm.on("message",async(e,i)=>{let t=JSON.parse(i.toString());console.log("Got fragment",t.id,t.index);let n=x$.get(t.id);if(n||(n=new Map,x$.set(t.id,n)),n.set(t.index,t),n.size===t.count){console.log("Got all fragments",t.id),x$.delete(t.id);let s=[...n.values()].sort((a,o)=>a.index-o.index).map(a=>a.data).join(""),r=JSON.parse(s);if(r.type==="pointer"){console.log("Got pointer",r.properties);let o=await(await bEe.send(new Wl.GetObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}))).Body.transformToString();T$(JSON.parse(o)),await bEe.send(new Wl.DeleteObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}));return}T$(r)}});async function M1i(e,i){let t=await new Promise(n=>{let s=setTimeout(()=>{n({type:"function.timeout"})},5e3);T$=r=>{r.type==="function.ack"&&r.properties.workerID===NT&&clearTimeout(s),["function.success","function.error"].includes(r.type)&&r.properties.workerID===NT&&(clearTimeout(s),n(r))};for(let r of omi({type:"function.invoked",properties:{workerID:NT,requestID:i.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:i.getRemainingTimeInMillis(),event:e,context:i,env:TEe}}))Rm.publish(`${xEe}/events`,JSON.stringify(r),{qos:1})});if(console.log("Got result",t.type),t.type==="function.timeout")return{statusCode:500,body:"This function is in live debug mode but did not get a response from your machine. If you do have an `sst dev` session running and this is the first time you have ever run SST in this AWS account, it can take 10 minutes for AWS to provision the underlying infrastructure. Check back shortly."};if(t.type==="function.success")return t.properties.body;if(t.type==="function.error"){let n=new Error(t.properties.errorMessage);throw n.stack=t.properties.trace.join(`
78
+ For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new i({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};cT.SignatureV4MultiRegion=HH});var _Se=m($H=>{"use strict";Object.defineProperty($H,"__esModule",{value:!0});var $ci=(Se(),le(ye));$ci.__exportStar(wSe(),$H)});var Ove=m(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.ruleSet=void 0;var f$="required",P="type",X="rules",H="conditions",B="fn",U="argv",Y="ref",Ai="assign",be="url",Pe="properties",Xe="authSchemes",Ye="signingRegion",We="signingName",Ke="disableDoubleEncoding",xe="headers",ySe=!1,ir=!0,W="tree",bn="isSet",_m="substring",Pve="hardwareType",xve="regionPrefix",SSe="abbaSuffix",p$="outpostId",Cm="aws.partition",Le="stringEquals",Ka="isValidHostLabel",ni="not",Re="error",Tve="parseURL",g$="s3-outposts",ee="endpoint",Ae="booleanEquals",Rve="aws.parseArn",et="s3",vSe="aws.isVirtualHostableS3Bucket",ei="getAttr",He="name",XH="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",Ive="https://{Bucket}.s3.{partitionResult#dnsSuffix}",kve="bucketArn",Lve="arnType",hT="",w$="s3-object-lambda",qve="accesspoint",_$="accessPointName",ESe="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",CSe="mrapPartition",ASe="outpostType",bSe="arnPrefix",Ya="{url#scheme}://{url#authority}{url#path}",zve="https://s3.{partitionResult#dnsSuffix}",WH={[f$]:!1,[P]:"String"},ym={[f$]:!0,default:!1,[P]:"Boolean"},lT={[f$]:!1,[P]:"Boolean"},Fve={[B]:bn,[U]:[{[Y]:"Bucket"}]},nr={[Y]:"Bucket"},PSe={[Y]:Pve},xSe={[H]:[{[B]:ni,[U]:[{[B]:bn,[U]:[{[Y]:"Endpoint"}]}]}],[Re]:"Expected a endpoint to be specified but no endpoint was found",[P]:Re},tt={[B]:ni,[U]:[{[B]:bn,[U]:[{[Y]:"Endpoint"}]}]},pt={[B]:bn,[U]:[{[Y]:"Endpoint"}]},Rt={[B]:Tve,[U]:[{[Y]:"Endpoint"}],[Ai]:"url"},dT={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:g$,[Ke]:!0}]},gi={},TSe={[Y]:"ForcePathStyle"},RSe={[H]:[{[B]:"uriEncode",[U]:[nr],[Ai]:"uri_encoded_bucket"}],[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},pt],[Re]:"Cannot set dual-stack in combination with a custom endpoint.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Cm,[U]:[{[Y]:"Region"}],[Ai]:"partitionResult"}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"Accelerate"},!1]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[ee]:{[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},pt,Rt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]}],[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],[ee]:{[be]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},{[ee]:{[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]},{[H]:[{[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},tt,{[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},{[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]}],[ee]:{[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee}]}]},{[Re]:"Path-style addressing cannot be used with S3 Accelerate",[P]:Re}]}]},{[Re]:"A valid partition could not be determined",[P]:Re}]}]},Mt={[B]:Ae,[U]:[{[Y]:"UseDualStack"},!0]},_i={[B]:Ae,[U]:[{[Y]:"Accelerate"},!1]},Wt={[B]:Ae,[U]:[{[Y]:"UseFIPS"},!0]},St={[B]:ni,[U]:[{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}]},Ji={[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!0]},Gi={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:et,[Ke]:!0}]},ji={[B]:Ae,[U]:[{[Y]:"UseGlobalEndpoint"},!1]},Pt={[B]:Ae,[U]:[{[Y]:"UseDualStack"},!1]},ft={[B]:Ae,[U]:[{[Y]:"UseFIPS"},!1]},Xa={[Re]:"A valid partition could not be determined",[P]:Re},KH={[H]:[Wt,{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},Xci={[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]},us={[B]:Ae,[U]:[{[Y]:"Accelerate"},!0]},ISe={[H]:[Mt,Wt,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},kSe={[be]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},LSe={[H]:[Pt,Wt,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},qSe={[be]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},zSe={[H]:[Mt,ft,us,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},FSe={[be]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},NSe={[H]:[Mt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},DSe={[be]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},MSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},OSe={[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},y$={[Y]:"url"},BSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[y$,"isIp"]},!1]},{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},USe={[B]:Ae,[U]:[{[B]:ei,[U]:[y$,"isIp"]},!1]},YH={[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:Gi,[xe]:{}},h$={[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:Gi,[xe]:{}},JSe={[ee]:h$,[P]:ee},jSe={[H]:[Pt,ft,us,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},QH={[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},GSe={[H]:[Pt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ive,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},VSe={[be]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},uT={[Re]:"Invalid region: region was not a valid DNS name.",[P]:Re},pn={[Y]:kve},Nve={[Y]:Lve},ZH={[B]:ei,[U]:[pn,"service"]},S$={[Y]:_$},HSe={[H]:[Mt],[Re]:"S3 Object Lambda does not support Dual-stack",[P]:Re},$Se={[H]:[us],[Re]:"S3 Object Lambda does not support S3 Accelerate",[P]:Re},XSe={[H]:[{[B]:bn,[U]:[{[Y]:"DisableAccessPoints"}]},{[B]:Ae,[U]:[{[Y]:"DisableAccessPoints"},!0]}],[Re]:"Access points are not supported for this operation",[P]:Re},e$={[H]:[{[B]:bn,[U]:[{[Y]:"UseArnRegion"}]},{[B]:Ae,[U]:[{[Y]:"UseArnRegion"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[pn,"region"]},"{Region}"]}]}],[Re]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[P]:Re},v$={[B]:ei,[U]:[{[Y]:"bucketPartition"},He]},Dve={[B]:ei,[U]:[pn,"accountId"]},WSe={[H]:[Wt,{[B]:Le,[U]:[v$,"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},t$={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:w$,[Ke]:!0}]},KSe={[Re]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[P]:Re},i$={[Re]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[P]:Re},n$={[Re]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[P]:Re},s$={[Re]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[P]:Re},YSe={[Re]:"Could not load partition for ARN region `{bucketArn#region}`",[P]:Re},QSe={[Re]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[P]:Re},ZSe={[Re]:"Invalid ARN: bucket ARN is missing a region",[P]:Re},eve={[Re]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[P]:Re},Sm={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:et,[Ke]:!0}]},tve={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:g$,[Ke]:!0}]},ive={[Y]:"UseObjectLambdaEndpoint"},r$={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:w$,[Ke]:!0}]},nve={[H]:[Wt,Mt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},Mve={[ee]:{[be]:Ya,[Pe]:Gi,[xe]:{}},[P]:ee},vm={[be]:Ya,[Pe]:Gi,[xe]:{}},sve={[H]:[Wt,Mt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},rve={[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ove={[H]:[Wt,Pt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},ave={[H]:[Wt,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},cve={[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},lve={[H]:[ft,Mt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},dve={[H]:[ft,Mt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},uve={[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},mve={[H]:[ft,Pt,pt,Rt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Ya,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},pve={[H]:[ft,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:zve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},hve={[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},pT=[{[Y]:"Region"}],Wci=[nr],fve=[{[B]:Ka,[U]:[{[Y]:p$},!1]}],gve=[{[B]:Le,[U]:[{[Y]:xve},"beta"]}],Kci=[{[Y]:"Endpoint"}],Em=[pt,Rt],wve=[Fve],_ve=[{[B]:Rve,[U]:[nr]}],Yci=[Mt,pt],Wa=[{[B]:Cm,[U]:pT,[Ai]:"partitionResult"}],Ol=[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],yve=[{[B]:Ka,[U]:[{[Y]:"Region"},!1]}],o$=[{[B]:Le,[U]:[Nve,qve]}],Sve=[{[B]:ei,[U]:[pn,"resourceId[1]"],[Ai]:_$},{[B]:ni,[U]:[{[B]:Le,[U]:[S$,hT]}]}],Qci=[pn,"resourceId[1]"],vve=[Mt],a$=[us],c$=[{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[pn,"region"]},hT]}]}],Eve=[{[B]:ni,[U]:[{[B]:bn,[U]:[{[B]:ei,[U]:[pn,"resourceId[2]"]}]}]}],Zci=[pn,"resourceId[2]"],l$=[{[B]:Cm,[U]:[{[B]:ei,[U]:[pn,"region"]}],[Ai]:"bucketPartition"}],Cve=[{[B]:Le,[U]:[v$,{[B]:ei,[U]:[{[Y]:"partitionResult"},He]}]}],d$=[{[B]:Ka,[U]:[{[B]:ei,[U]:[pn,"region"]},!0]}],u$=[{[B]:Ka,[U]:[Dve,!1]}],Ave=[{[B]:Ka,[U]:[S$,!1]}],mT=[Wt],bve=[{[B]:Ka,[U]:[{[Y]:"Region"},!0]}],m$=[Mve],eli={version:"1.0",parameters:{Bucket:WH,Region:WH,UseFIPS:ym,UseDualStack:ym,Endpoint:WH,ForcePathStyle:lT,Accelerate:ym,UseGlobalEndpoint:ym,UseObjectLambdaEndpoint:lT,DisableAccessPoints:lT,DisableMultiRegionAccessPoints:ym,UseArnRegion:lT},[X]:[{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:pT}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[Fve,{[B]:_m,[U]:[nr,49,50,ir],[Ai]:Pve},{[B]:_m,[U]:[nr,8,12,ir],[Ai]:xve},{[B]:_m,[U]:[nr,0,7,ir],[Ai]:SSe},{[B]:_m,[U]:[nr,32,49,ir],[Ai]:p$},{[B]:Cm,[U]:pT,[Ai]:"regionPartition"},{[B]:Le,[U]:[{[Y]:SSe},"--op-s3"]}],[P]:W,[X]:[{[H]:fve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[PSe,"e"]}],[P]:W,[X]:[{[H]:gve,[P]:W,[X]:[xSe,{[H]:Em,endpoint:{[be]:"https://{Bucket}.ec2.{url#authority}",[Pe]:dT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:dT,[xe]:gi},[P]:ee}]},{[H]:[{[B]:Le,[U]:[PSe,"o"]}],[P]:W,[X]:[{[H]:gve,[P]:W,[X]:[xSe,{[H]:Em,endpoint:{[be]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Pe]:dT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:dT,[xe]:gi},[P]:ee}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[P]:Re}]}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[P]:Re}]},{[H]:wve,[P]:W,[X]:[{[H]:[pt,{[B]:ni,[U]:[{[B]:bn,[U]:[{[B]:Tve,[U]:Kci}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:[TSe]},{[B]:Ae,[U]:[TSe,ir]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:_ve,error:"Path-style addressing cannot be used with ARN buckets",[P]:Re},RSe]}]},{[H]:[{[B]:vSe,[U]:[nr,ySe]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,[P]:W,[X]:[{[P]:W,[X]:[KH,{[P]:W,[X]:[{[H]:[us,Wt],error:"Accelerate cannot be used with FIPS",[P]:Re},{[P]:W,[X]:[{[H]:[us,Xci],error:"S3 Accelerate cannot be used in this region",[P]:Re},{[P]:W,[X]:[{[H]:[pt,Mt],error:XH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,Wt],error:XH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,us],error:XH,[P]:Re},{[P]:W,[X]:[ISe,ISe,{[H]:[Mt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:kSe,[P]:ee}]},{[H]:[Mt,Wt,_i,tt,St,ji],endpoint:kSe,[P]:ee},LSe,LSe,{[H]:[Pt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:qSe,[P]:ee}]},{[H]:[Pt,Wt,_i,tt,St,ji],endpoint:qSe,[P]:ee},zSe,zSe,{[H]:[Mt,ft,us,tt,St,Ji],[P]:W,[X]:[{endpoint:FSe,[P]:ee}]},{[H]:[Mt,ft,us,tt,St,ji],endpoint:FSe,[P]:ee},NSe,NSe,{[H]:[Mt,ft,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:DSe,[P]:ee}]},{[H]:[Mt,ft,_i,tt,St,ji],endpoint:DSe,[P]:ee},MSe,BSe,MSe,BSe,{[H]:[Pt,ft,_i,pt,Rt,OSe,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:YH,[P]:ee},{endpoint:YH,[P]:ee}]},{[H]:[Pt,ft,_i,pt,Rt,USe,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:h$,[P]:ee},JSe]},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,ji],endpoint:YH,[P]:ee},{[H]:[Pt,ft,_i,pt,Rt,USe,St,ji],endpoint:h$,[P]:ee},jSe,jSe,{[H]:[Pt,ft,us,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:QH,[P]:ee},{endpoint:QH,[P]:ee}]},{[H]:[Pt,ft,us,tt,St,ji],endpoint:QH,[P]:ee},GSe,GSe,{[H]:[Pt,ft,_i,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:{[be]:Ive,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:VSe,[P]:ee}]},{[H]:[Pt,ft,_i,tt,St,ji],endpoint:VSe,[P]:ee}]}]}]}]}]}]}]}]},uT]}]},Xa]},{[H]:[pt,Rt,{[B]:Le,[U]:[{[B]:ei,[U]:[y$,"scheme"]},"http"]},{[B]:vSe,[U]:[nr,ir]},ft,Pt,_i],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,[P]:W,[X]:[JSe]},uT]}]},Xa]},{[H]:[{[B]:Rve,[U]:Wci,[Ai]:kve}],[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[pn,"resourceId[0]"],[Ai]:Lve},{[B]:ni,[U]:[{[B]:Le,[U]:[Nve,hT]}]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ZH,w$]}],[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[XSe,{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[Dve,hT]}],error:"Invalid ARN: Missing account id",[P]:Re},{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Ave,[P]:W,[X]:[{[P]:W,[X]:[WSe,{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:ESe,[Pe]:t$,[xe]:gi},[P]:ee},{[H]:mT,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:t$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:t$,[xe]:gi},[P]:ee}]}]}]},KSe]}]},i$]}]}]},n$]}]},s$]}]},Xa]}]},YSe]}]}]},QSe]}]}]},ZSe]}]}]}]},eve]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[P]:Re}]},{[H]:o$,[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[XSe,{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[v$,"{partitionResult#name}"]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ZH,et]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Ave,[P]:W,[X]:[{[P]:W,[X]:[{[H]:a$,error:"Access Points do not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[WSe,{[P]:W,[X]:[{[H]:Yci,error:"DualStack cannot be combined with a Host override (PrivateLink)",[P]:Re},{[P]:W,[X]:[{[H]:[Wt,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[Wt,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Pt,pt,Rt],endpoint:{[be]:ESe,[Pe]:Sm,[xe]:gi},[P]:ee},{[H]:[ft,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:Sm,[xe]:gi},[P]:ee}]}]}]}]}]},KSe]}]},i$]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[P]:Re}]}]},n$]}]},s$]}]},Xa]}]},YSe]}]}]},QSe]}]}]},ZSe]}]},{[P]:W,[X]:[{[H]:[{[B]:Ka,[U]:[S$,ir]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,error:"S3 MRAP does not support dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:mT,error:"S3 MRAP does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:a$,error:"S3 MRAP does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"DisableMultiRegionAccessPoints"},ir]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Cm,[U]:pT,[Ai]:CSe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:CSe},He]},{[B]:ei,[U]:[pn,"partition"]}]}],[P]:W,[X]:[{endpoint:{[be]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Pe]:{[Xe]:[{name:"sigv4a",signingRegionSet:["*"],[We]:et,[Ke]:ir}]},[xe]:gi},[P]:ee}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[P]:Re}]}]},{error:"{Region} was not a valid region",[P]:Re}]}]}]}]}]}]},{error:"Invalid Access Point Name",[P]:Re}]}]}]},eve]},{[H]:[{[B]:Le,[U]:[ZH,g$]}],[P]:W,[X]:[{[H]:vve,error:"S3 Outposts does not support Dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:mT,error:"S3 Outposts does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:a$,error:"S3 Outposts does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:bn,[U]:[{[B]:ei,[U]:[pn,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Qci,[Ai]:p$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:fve,[P]:W,[X]:[{[P]:W,[X]:[e$,{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:d$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:u$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Zci,[Ai]:ASe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[pn,"resourceId[3]"],[Ai]:_$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:ASe},qve]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Pe]:tve,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:tve,[xe]:gi},[P]:ee}]}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[P]:Re}]}]},{error:"Invalid ARN: expected an access point name",[P]:Re}]}]},{error:"Invalid ARN: Expected a 4-component resource",[P]:Re}]}]},i$]}]},n$]}]},s$]}]},Xa]}]},{error:"Could not load partition for ARN region {bucketArn#region}",[P]:Re}]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[P]:Re}]}]},{error:"Invalid ARN: The Outpost Id was not set",[P]:Re}]}]}]}]}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[P]:Re}]}]},{error:"Invalid ARN: No ARN type specified",[P]:Re}]},{[H]:[{[B]:_m,[U]:[nr,0,4,ySe],[Ai]:bSe},{[B]:Le,[U]:[{[Y]:bSe},"arn:"]},{[B]:ni,[U]:[{[B]:bn,[U]:_ve}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[P]:Re},RSe]}]},{[H]:[{[B]:bn,[U]:[ive]},{[B]:Ae,[U]:[ive,ir]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:bve,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[$Se,{[P]:W,[X]:[KH,{[P]:W,[X]:[{[H]:Em,endpoint:{[be]:Ya,[Pe]:r$,[xe]:gi},[P]:ee},{[H]:mT,endpoint:{[be]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:r$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Pe]:r$,[xe]:gi},[P]:ee}]}]}]}]}]},uT]}]},Xa]},{[H]:[{[B]:ni,[U]:wve}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:bve,[P]:W,[X]:[{[P]:W,[X]:[KH,{[P]:W,[X]:[nve,nve,{[H]:[Wt,Mt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[Wt,Mt,pt,Rt,St,ji],endpoint:vm,[P]:ee},sve,sve,{[H]:[Wt,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:rve,[P]:ee}]},{[H]:[Wt,Mt,tt,St,ji],endpoint:rve,[P]:ee},ove,ove,{[H]:[Wt,Pt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[Wt,Pt,pt,Rt,St,ji],endpoint:vm,[P]:ee},ave,ave,{[H]:[Wt,Pt,tt,St,Ji],[P]:W,[X]:[{endpoint:cve,[P]:ee}]},{[H]:[Wt,Pt,tt,St,ji],endpoint:cve,[P]:ee},lve,lve,{[H]:[ft,Mt,pt,Rt,St,Ji],[P]:W,[X]:m$},{[H]:[ft,Mt,pt,Rt,St,ji],endpoint:vm,[P]:ee},dve,dve,{[H]:[ft,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:uve,[P]:ee}]},{[H]:[ft,Mt,tt,St,ji],endpoint:uve,[P]:ee},mve,mve,{[H]:[ft,Pt,pt,Rt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:vm,[P]:ee},Mve]},{[H]:[ft,Pt,pt,Rt,St,ji],endpoint:vm,[P]:ee},pve,pve,{[H]:[ft,Pt,tt,St,Ji],[P]:W,[X]:[{[H]:Ol,endpoint:{[be]:zve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:hve,[P]:ee}]},{[H]:[ft,Pt,tt,St,ji],endpoint:hve,[P]:ee}]}]}]},uT]}]},Xa]}]}]},{error:"A region must be set when sending requests to S3.",[P]:Re}]}]};fT.ruleSet=eli});var Bve=m(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.defaultEndpointResolver=void 0;var tli=pl(),ili=Ove(),nli=(e,i={})=>(0,tli.resolveEndpoint)(ili.ruleSet,{endpointParams:e,logger:i.logger});gT.defaultEndpointResolver=nli});var jve=m(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.getRuntimeConfig=void 0;var sli=_Se(),rli=S(),oli=so(),Uve=ul(),Jve=Un(),ali=Bve(),cli=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Uve.fromBase64,base64Encoder:e?.base64Encoder??Uve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ali.defaultEndpointResolver,logger:e?.logger??new rli.NoOpLogger,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??sli.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??oli.parseUrl,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??Jve.fromUtf8,utf8Encoder:e?.utf8Encoder??Jve.toUtf8});wT.getRuntimeConfig=cli});var $ve=m(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.getRuntimeConfig=void 0;var lli=(Se(),le(ye)),dli=lli.__importDefault(cye()),uli=tG(),_T=Mn(),mli=FA(),pli=xye(),E$=Kc(),hli=kye(),fli=Bye(),Gve=ns(),Bl=Cr(),Vve=La(),gli=Yc(),wli=_n(),Hve=Vye(),_li=dl(),yli=jve(),Sli=S(),vli=fl(),Eli=S(),Cli=e=>{(0,Eli.emitWarningIfUnsupportedVersion)(process.version);let i=(0,vli.resolveDefaultsModeConfig)(e),t=()=>i().then(Sli.loadConfigsForDefaultMode),n=(0,yli.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:i,bodyLengthChecker:e?.bodyLengthChecker??gli.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,uli.decorateDefaultCredentialProvider)(mli.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,_li.defaultUserAgent)({serviceId:n.serviceId,clientVersion:dli.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??pli.eventStreamSerdeProvider,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??Hve.getAwsChunkedEncodingStream,maxAttempts:e?.maxAttempts??(0,Bl.loadConfig)(Gve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:e?.md5??E$.Hash.bind(null,"md5"),region:e?.region??(0,Bl.loadConfig)(_T.NODE_REGION_CONFIG_OPTIONS,_T.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new Vve.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Bl.loadConfig)({...Gve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||wli.DEFAULT_RETRY_MODE}),sdkStreamMixin:e?.sdkStreamMixin??Hve.sdkStreamMixin,sha1:e?.sha1??E$.Hash.bind(null,"sha1"),sha256:e?.sha256??E$.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Vve.streamCollector,streamHasher:e?.streamHasher??hli.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,Bl.loadConfig)(fli.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:e?.useDualstackEndpoint??(0,Bl.loadConfig)(_T.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Bl.loadConfig)(_T.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};yT.getRuntimeConfig=Cli});var Am=m(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.S3Client=void 0;var Ali=Mn(),bli=sye(),Pli=kc(),xli=C(),Tli=oye(),Xve=Lc(),Rli=qc(),Ili=zc(),Wve=ns(),Kve=Rl(),Yve=bs(),Qve=Vc(),kli=S(),Lli=aye(),qli=$ve(),C$=class extends kli.Client{constructor(i){let t=(0,qli.getRuntimeConfig)(i),n=(0,Lli.resolveClientEndpointParameters)(t),s=(0,Ali.resolveRegionConfig)(n),r=(0,xli.resolveEndpointConfig)(s),a=(0,Wve.resolveRetryConfig)(r),o=(0,Xve.resolveHostHeaderConfig)(a),c=(0,Yve.resolveAwsAuthConfig)(o),d=(0,Kve.resolveS3Config)(c),u=(0,Qve.resolveUserAgentConfig)(d),_=(0,bli.resolveEventStreamSerdeConfig)(u);super(_),this.config=_,this.middlewareStack.use((0,Wve.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Pli.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Xve.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rli.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Ili.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Yve.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Kve.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Tli.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,Qve.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ST.S3Client=C$});var ET=m(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.S3=void 0;var zli=bG(),Fli=TG(),Nli=IG(),Dli=LG(),Mli=zG(),Oli=NG(),Bli=MG(),Uli=BG(),Jli=JG(),jli=GG(),Gli=HG(),Vli=XG(),Hli=KG(),$li=QG(),Xli=e2(),Wli=i2(),Kli=s2(),Yli=o2(),Qli=c2(),Zli=C2(),edi=b2(),tdi=x2(),idi=R2(),ndi=k2(),sdi=q2(),rdi=F2(),odi=D2(),adi=O2(),cdi=U2(),ldi=j2(),ddi=V2(),udi=$2(),mdi=W2(),pdi=Y2(),hdi=Z2(),fdi=t3(),gdi=n3(),wdi=r3(),_di=a3(),ydi=l3(),Sdi=u3(),vdi=p3(),Edi=f3(),Cdi=w3(),Adi=y3(),bdi=v3(),Pdi=C3(),xdi=b3(),Tdi=x3(),Rdi=R3(),Idi=k3(),kdi=pm(),Ldi=hm(),qdi=F3(),zdi=D3(),Fdi=O3(),Ndi=U3(),Ddi=j3(),Mdi=V3(),Odi=$3(),Bdi=LP(),Udi=K3(),Jdi=FP(),jdi=Z3(),Gdi=tV(),Vdi=nV(),Hdi=rV(),$di=aV(),Xdi=lV(),Wdi=uV(),Kdi=pV(),Ydi=fV(),Qdi=wV(),Zdi=yV(),eui=vV(),tui=CV(),iui=bV(),nui=xV(),sui=RV(),rui=kV(),oui=qV(),aui=FV(),cui=DV(),lui=OV(),dui=UV(),uui=jV(),mui=VV(),pui=$V(),hui=WV(),fui=YV(),gui=ZV(),wui=tH(),_ui=nH(),yui=Am(),A$=class extends yui.S3Client{abortMultipartUpload(i,t,n){let s=new zli.AbortMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}completeMultipartUpload(i,t,n){let s=new Fli.CompleteMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}copyObject(i,t,n){let s=new Nli.CopyObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}createBucket(i,t,n){let s=new Dli.CreateBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}createMultipartUpload(i,t,n){let s=new Mli.CreateMultipartUploadCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucket(i,t,n){let s=new Bli.DeleteBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketAnalyticsConfiguration(i,t,n){let s=new Oli.DeleteBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketCors(i,t,n){let s=new Uli.DeleteBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketEncryption(i,t,n){let s=new Jli.DeleteBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketIntelligentTieringConfiguration(i,t,n){let s=new jli.DeleteBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketInventoryConfiguration(i,t,n){let s=new Gli.DeleteBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketLifecycle(i,t,n){let s=new Vli.DeleteBucketLifecycleCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketMetricsConfiguration(i,t,n){let s=new Hli.DeleteBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketOwnershipControls(i,t,n){let s=new $li.DeleteBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketPolicy(i,t,n){let s=new Xli.DeleteBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketReplication(i,t,n){let s=new Wli.DeleteBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketTagging(i,t,n){let s=new Kli.DeleteBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteBucketWebsite(i,t,n){let s=new Yli.DeleteBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObject(i,t,n){let s=new Qli.DeleteObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObjects(i,t,n){let s=new Zli.DeleteObjectsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deleteObjectTagging(i,t,n){let s=new edi.DeleteObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}deletePublicAccessBlock(i,t,n){let s=new tdi.DeletePublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAccelerateConfiguration(i,t,n){let s=new idi.GetBucketAccelerateConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAcl(i,t,n){let s=new ndi.GetBucketAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketAnalyticsConfiguration(i,t,n){let s=new sdi.GetBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketCors(i,t,n){let s=new rdi.GetBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketEncryption(i,t,n){let s=new odi.GetBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketIntelligentTieringConfiguration(i,t,n){let s=new adi.GetBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketInventoryConfiguration(i,t,n){let s=new cdi.GetBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLifecycleConfiguration(i,t,n){let s=new ldi.GetBucketLifecycleConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLocation(i,t,n){let s=new ddi.GetBucketLocationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketLogging(i,t,n){let s=new udi.GetBucketLoggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketMetricsConfiguration(i,t,n){let s=new mdi.GetBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketNotificationConfiguration(i,t,n){let s=new pdi.GetBucketNotificationConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketOwnershipControls(i,t,n){let s=new hdi.GetBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketPolicy(i,t,n){let s=new fdi.GetBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketPolicyStatus(i,t,n){let s=new gdi.GetBucketPolicyStatusCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketReplication(i,t,n){let s=new wdi.GetBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketRequestPayment(i,t,n){let s=new _di.GetBucketRequestPaymentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketTagging(i,t,n){let s=new ydi.GetBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketVersioning(i,t,n){let s=new Sdi.GetBucketVersioningCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getBucketWebsite(i,t,n){let s=new vdi.GetBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObject(i,t,n){let s=new Adi.GetObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectAcl(i,t,n){let s=new Edi.GetObjectAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectAttributes(i,t,n){let s=new Cdi.GetObjectAttributesCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectLegalHold(i,t,n){let s=new bdi.GetObjectLegalHoldCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectLockConfiguration(i,t,n){let s=new Pdi.GetObjectLockConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectRetention(i,t,n){let s=new xdi.GetObjectRetentionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectTagging(i,t,n){let s=new Tdi.GetObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getObjectTorrent(i,t,n){let s=new Rdi.GetObjectTorrentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}getPublicAccessBlock(i,t,n){let s=new Idi.GetPublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}headBucket(i,t,n){let s=new kdi.HeadBucketCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}headObject(i,t,n){let s=new Ldi.HeadObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketAnalyticsConfigurations(i,t,n){let s=new qdi.ListBucketAnalyticsConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketIntelligentTieringConfigurations(i,t,n){let s=new zdi.ListBucketIntelligentTieringConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketInventoryConfigurations(i,t,n){let s=new Fdi.ListBucketInventoryConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBucketMetricsConfigurations(i,t,n){let s=new Ndi.ListBucketMetricsConfigurationsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listBuckets(i,t,n){let s=new Ddi.ListBucketsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listMultipartUploads(i,t,n){let s=new Mdi.ListMultipartUploadsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjects(i,t,n){let s=new Odi.ListObjectsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjectsV2(i,t,n){let s=new Bdi.ListObjectsV2Command(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listObjectVersions(i,t,n){let s=new Udi.ListObjectVersionsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}listParts(i,t,n){let s=new Jdi.ListPartsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAccelerateConfiguration(i,t,n){let s=new jdi.PutBucketAccelerateConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAcl(i,t,n){let s=new Gdi.PutBucketAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketAnalyticsConfiguration(i,t,n){let s=new Vdi.PutBucketAnalyticsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketCors(i,t,n){let s=new Hdi.PutBucketCorsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketEncryption(i,t,n){let s=new $di.PutBucketEncryptionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketIntelligentTieringConfiguration(i,t,n){let s=new Xdi.PutBucketIntelligentTieringConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketInventoryConfiguration(i,t,n){let s=new Wdi.PutBucketInventoryConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketLifecycleConfiguration(i,t,n){let s=new Kdi.PutBucketLifecycleConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketLogging(i,t,n){let s=new Ydi.PutBucketLoggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketMetricsConfiguration(i,t,n){let s=new Qdi.PutBucketMetricsConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketNotificationConfiguration(i,t,n){let s=new Zdi.PutBucketNotificationConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketOwnershipControls(i,t,n){let s=new eui.PutBucketOwnershipControlsCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketPolicy(i,t,n){let s=new tui.PutBucketPolicyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketReplication(i,t,n){let s=new iui.PutBucketReplicationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketRequestPayment(i,t,n){let s=new nui.PutBucketRequestPaymentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketTagging(i,t,n){let s=new sui.PutBucketTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketVersioning(i,t,n){let s=new rui.PutBucketVersioningCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putBucketWebsite(i,t,n){let s=new oui.PutBucketWebsiteCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObject(i,t,n){let s=new cui.PutObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectAcl(i,t,n){let s=new aui.PutObjectAclCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectLegalHold(i,t,n){let s=new lui.PutObjectLegalHoldCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectLockConfiguration(i,t,n){let s=new dui.PutObjectLockConfigurationCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectRetention(i,t,n){let s=new uui.PutObjectRetentionCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putObjectTagging(i,t,n){let s=new mui.PutObjectTaggingCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}putPublicAccessBlock(i,t,n){let s=new pui.PutPublicAccessBlockCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}restoreObject(i,t,n){let s=new hui.RestoreObjectCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}selectObjectContent(i,t,n){let s=new fui.SelectObjectContentCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}uploadPart(i,t,n){let s=new gui.UploadPartCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}uploadPartCopy(i,t,n){let s=new wui.UploadPartCopyCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}writeGetObjectResponse(i,t,n){let s=new _ui.WriteGetObjectResponseCommand(i);if(typeof t=="function")this.send(s,t);else if(typeof n=="function"){if(typeof t!="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(s,t||{},n)}else return this.send(s,t)}};vT.S3=A$});var Zve=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var we=(Se(),le(ye));we.__exportStar(bG(),de);we.__exportStar(TG(),de);we.__exportStar(IG(),de);we.__exportStar(LG(),de);we.__exportStar(zG(),de);we.__exportStar(NG(),de);we.__exportStar(MG(),de);we.__exportStar(BG(),de);we.__exportStar(JG(),de);we.__exportStar(GG(),de);we.__exportStar(HG(),de);we.__exportStar(XG(),de);we.__exportStar(KG(),de);we.__exportStar(QG(),de);we.__exportStar(e2(),de);we.__exportStar(i2(),de);we.__exportStar(s2(),de);we.__exportStar(o2(),de);we.__exportStar(c2(),de);we.__exportStar(b2(),de);we.__exportStar(C2(),de);we.__exportStar(x2(),de);we.__exportStar(R2(),de);we.__exportStar(k2(),de);we.__exportStar(q2(),de);we.__exportStar(F2(),de);we.__exportStar(D2(),de);we.__exportStar(O2(),de);we.__exportStar(U2(),de);we.__exportStar(j2(),de);we.__exportStar(V2(),de);we.__exportStar($2(),de);we.__exportStar(W2(),de);we.__exportStar(Y2(),de);we.__exportStar(Z2(),de);we.__exportStar(t3(),de);we.__exportStar(n3(),de);we.__exportStar(r3(),de);we.__exportStar(a3(),de);we.__exportStar(l3(),de);we.__exportStar(u3(),de);we.__exportStar(p3(),de);we.__exportStar(f3(),de);we.__exportStar(w3(),de);we.__exportStar(y3(),de);we.__exportStar(v3(),de);we.__exportStar(C3(),de);we.__exportStar(b3(),de);we.__exportStar(x3(),de);we.__exportStar(R3(),de);we.__exportStar(k3(),de);we.__exportStar(pm(),de);we.__exportStar(hm(),de);we.__exportStar(F3(),de);we.__exportStar(D3(),de);we.__exportStar(O3(),de);we.__exportStar(U3(),de);we.__exportStar(j3(),de);we.__exportStar(V3(),de);we.__exportStar(K3(),de);we.__exportStar($3(),de);we.__exportStar(LP(),de);we.__exportStar(FP(),de);we.__exportStar(Z3(),de);we.__exportStar(tV(),de);we.__exportStar(nV(),de);we.__exportStar(rV(),de);we.__exportStar(aV(),de);we.__exportStar(lV(),de);we.__exportStar(uV(),de);we.__exportStar(pV(),de);we.__exportStar(fV(),de);we.__exportStar(wV(),de);we.__exportStar(yV(),de);we.__exportStar(vV(),de);we.__exportStar(CV(),de);we.__exportStar(bV(),de);we.__exportStar(xV(),de);we.__exportStar(RV(),de);we.__exportStar(kV(),de);we.__exportStar(qV(),de);we.__exportStar(FV(),de);we.__exportStar(DV(),de);we.__exportStar(OV(),de);we.__exportStar(UV(),de);we.__exportStar(jV(),de);we.__exportStar(VV(),de);we.__exportStar($V(),de);we.__exportStar(WV(),de);we.__exportStar(YV(),de);we.__exportStar(ZV(),de);we.__exportStar(tH(),de);we.__exportStar(nH(),de)});var tEe=m(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});var eEe=(Se(),le(ye));eEe.__exportStar(ve(),CT);eEe.__exportStar(ds(),CT)});var nEe=m(iEe=>{"use strict";Object.defineProperty(iEe,"__esModule",{value:!0})});var sEe=m(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.paginateListObjectsV2=void 0;var Sui=LP(),vui=ET(),Eui=Am(),Cui=async(e,i,...t)=>await e.send(new Sui.ListObjectsV2Command(i),...t),Aui=async(e,i,...t)=>await e.listObjectsV2(i,...t);async function*bui(e,i,...t){let n=e.startingToken||void 0,s=!0,r;for(;s;){if(i.ContinuationToken=n,i.MaxKeys=e.pageSize,e.client instanceof vui.S3)r=await Aui(e.client,i,...t);else if(e.client instanceof Eui.S3Client)r=await Cui(e.client,i,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield r;let a=n;n=r.NextContinuationToken,s=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}AT.paginateListObjectsV2=bui});var rEe=m(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.paginateListParts=void 0;var Pui=FP(),xui=ET(),Tui=Am(),Rui=async(e,i,...t)=>await e.send(new Pui.ListPartsCommand(i),...t),Iui=async(e,i,...t)=>await e.listParts(i,...t);async function*kui(e,i,...t){let n=e.startingToken||void 0,s=!0,r;for(;s;){if(i.PartNumberMarker=n,i.MaxParts=e.pageSize,e.client instanceof xui.S3)r=await Iui(e.client,i,...t);else if(e.client instanceof Tui.S3Client)r=await Rui(e.client,i,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield r;let a=n;n=r.NextPartNumberMarker,s=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}bT.paginateListParts=kui});var oEe=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var b$=(Se(),le(ye));b$.__exportStar(nEe(),bm);b$.__exportStar(sEe(),bm);b$.__exportStar(rEe(),bm)});var P$=m(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.sleep=void 0;var Lui=e=>new Promise(i=>setTimeout(i,e*1e3));PT.sleep=Lui});var TT=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.checkExceptions=Br.WaiterState=Br.waiterServiceDefaults=void 0;Br.waiterServiceDefaults={minDelay:2,maxDelay:120};var xT;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(xT=Br.WaiterState||(Br.WaiterState={}));var qui=e=>{if(e.state===xT.ABORTED){let i=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw i.name="AbortError",i}else if(e.state===xT.TIMEOUT){let i=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw i.name="TimeoutError",i}else if(e.state!==xT.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Br.checkExceptions=qui});var aEe=m(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.runPolling=void 0;var zui=P$(),RT=TT(),Fui=(e,i,t,n)=>{if(n>t)return i;let s=e*2**(n-1);return Nui(e,s)},Nui=(e,i)=>e+Math.random()*(i-e),Dui=async({minDelay:e,maxDelay:i,maxWaitTime:t,abortController:n,client:s,abortSignal:r},a,o)=>{var c;let{state:d,reason:u}=await o(s,a);if(d!==RT.WaiterState.RETRY)return{state:d,reason:u};let _=1,y=Date.now()+t*1e3,b=Math.log(i/e)/Math.log(2)+1;for(;;){if(!((c=n?.signal)===null||c===void 0)&&c.aborted||r?.aborted)return{state:RT.WaiterState.ABORTED};let k=Fui(e,i,b,_);if(Date.now()+k*1e3>y)return{state:RT.WaiterState.TIMEOUT};await(0,zui.sleep)(k);let{state:j,reason:$}=await o(s,a);if(j!==RT.WaiterState.RETRY)return{state:j,reason:$};_+=1}};IT.runPolling=Dui});var cEe=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.validateWaiterOptions=void 0;var Mui=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.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};kT.validateWaiterOptions=Mui});var dEe=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});var lEe=(Se(),le(ye));lEe.__exportStar(P$(),LT);lEe.__exportStar(cEe(),LT)});var pEe=m(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.createWaiter=void 0;var Oui=aEe(),Bui=dEe(),mEe=TT(),uEe=async e=>new Promise(i=>{e.onabort=()=>i({state:mEe.WaiterState.ABORTED})}),Uui=async(e,i,t)=>{let n={...mEe.waiterServiceDefaults,...e};(0,Bui.validateWaiterOptions)(n);let s=[(0,Oui.runPolling)(n,i,t)];return e.abortController&&s.push(uEe(e.abortController.signal)),e.abortSignal&&s.push(uEe(e.abortSignal)),Promise.race(s)};qT.createWaiter=Uui});var Pm=m(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});var hEe=(Se(),le(ye));hEe.__exportStar(pEe(),zT);hEe.__exportStar(TT(),zT)});var gEe=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.waitUntilBucketExists=Jl.waitForBucketExists=void 0;var Ul=Pm(),Jui=pm(),fEe=async(e,i)=>{let t;try{return t=await e.send(new Jui.HeadBucketCommand(i)),{state:Ul.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Ul.WaiterState.RETRY,reason:t}}return{state:Ul.WaiterState.RETRY,reason:t}},jui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Ul.createWaiter)({...t,...e},i,fEe)};Jl.waitForBucketExists=jui;var Gui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Ul.createWaiter)({...t,...e},i,fEe);return(0,Ul.checkExceptions)(n)};Jl.waitUntilBucketExists=Gui});var _Ee=m(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.waitUntilBucketNotExists=jl.waitForBucketNotExists=void 0;var xm=Pm(),Vui=pm(),wEe=async(e,i)=>{let t;try{t=await e.send(new Vui.HeadBucketCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:xm.WaiterState.SUCCESS,reason:t}}return{state:xm.WaiterState.RETRY,reason:t}},Hui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,xm.createWaiter)({...t,...e},i,wEe)};jl.waitForBucketNotExists=Hui;var $ui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,xm.createWaiter)({...t,...e},i,wEe);return(0,xm.checkExceptions)(n)};jl.waitUntilBucketNotExists=$ui});var SEe=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.waitUntilObjectExists=Vl.waitForObjectExists=void 0;var Gl=Pm(),Xui=hm(),yEe=async(e,i)=>{let t;try{return t=await e.send(new Xui.HeadObjectCommand(i)),{state:Gl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Gl.WaiterState.RETRY,reason:t}}return{state:Gl.WaiterState.RETRY,reason:t}},Wui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Gl.createWaiter)({...t,...e},i,yEe)};Vl.waitForObjectExists=Wui;var Kui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Gl.createWaiter)({...t,...e},i,yEe);return(0,Gl.checkExceptions)(n)};Vl.waitUntilObjectExists=Kui});var EEe=m(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.waitUntilObjectNotExists=Hl.waitForObjectNotExists=void 0;var Tm=Pm(),Yui=hm(),vEe=async(e,i)=>{let t;try{t=await e.send(new Yui.HeadObjectCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Tm.WaiterState.SUCCESS,reason:t}}return{state:Tm.WaiterState.RETRY,reason:t}},Qui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Tm.createWaiter)({...t,...e},i,vEe)};Hl.waitForObjectNotExists=Qui;var Zui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Tm.createWaiter)({...t,...e},i,vEe);return(0,Tm.checkExceptions)(n)};Hl.waitUntilObjectNotExists=Zui});var CEe=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var FT=(Se(),le(ye));FT.__exportStar(gEe(),$l);FT.__exportStar(_Ee(),$l);FT.__exportStar(SEe(),$l);FT.__exportStar(EEe(),$l)});var AEe=m(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.S3ServiceException=void 0;var Xl=(Se(),le(ye));Xl.__exportStar(ET(),sr);Xl.__exportStar(Am(),sr);Xl.__exportStar(Zve(),sr);Xl.__exportStar(tEe(),sr);Xl.__exportStar(oEe(),sr);Xl.__exportStar(CEe(),sr);var emi=sm();Object.defineProperty(sr,"S3ServiceException",{enumerable:!0,get:function(){return emi.S3ServiceException}})});var PEe=JT(WK(),1),DT=JT(Bhe(),1),Wl=JT(AEe(),1);import tmi from"crypto";var bEe=new Wl.S3Client({}),imi=new DT.IoTClient({}),nmi=await imi.send(new DT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),smi=nmi.endpointAddress,NT=tmi.randomBytes(16).toString("hex"),xEe=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,rmi={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},TEe=Object.fromEntries(Object.entries(process.env).filter(([e,i])=>rmi[e]!==!0)),Rm=new PEe.default.device({protocol:"wss",debug:!0,host:smi,region:TEe.AWS_REGION});Rm.on("error",console.log);Rm.on("connect",console.log);Rm.subscribe(`${xEe}/events/${NT}`,{qos:1});var x$=new Map,T$;Rm.on("message",async(e,i)=>{let t=JSON.parse(i.toString());console.log("Got fragment",t.id,t.index);let n=x$.get(t.id);if(n||(n=new Map,x$.set(t.id,n)),n.set(t.index,t),n.size===t.count){console.log("Got all fragments",t.id),x$.delete(t.id);let s=[...n.values()].sort((a,o)=>a.index-o.index).map(a=>a.data).join(""),r=JSON.parse(s);if(r.type==="pointer"){console.log("Got pointer",r.properties);let o=await(await bEe.send(new Wl.GetObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}))).Body.transformToString();T$(JSON.parse(o)),await bEe.send(new Wl.DeleteObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}));return}T$(r)}});async function M1i(e,i){let t=await new Promise(n=>{let s=setTimeout(()=>{n({type:"function.timeout"})},5e3);T$=r=>{r.type==="function.ack"&&r.properties.workerID===NT&&clearTimeout(s),["function.success","function.error"].includes(r.type)&&r.properties.workerID===NT&&(clearTimeout(s),n(r))};for(let r of omi({type:"function.invoked",properties:{workerID:NT,requestID:i.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:i.getRemainingTimeInMillis(),event:e,context:i,env:TEe}}))Rm.publish(`${xEe}/events`,JSON.stringify(r),{qos:1})});if(console.log("Got result",t.type),t.type==="function.timeout")return{statusCode:500,body:"This function is in live debug mode but did not get a response from your machine. If you do have an `sst dev` session running and this is the first time you have ever run SST in this AWS account, it can take 10 minutes for AWS to provision the underlying infrastructure. Check back shortly."};if(t.type==="function.success")return t.properties.body;if(t.type==="function.error"){let n=new Error(t.properties.errorMessage);throw n.stack=t.properties.trace?.join(`
79
79
  `),n}}function omi(e){let t=JSON.stringify(e).match(/.{1,100000}/g);if(!t)return[];let n=Math.random().toString();return t.map((s,r)=>({id:n,index:r,count:t?.length,data:s}))}export{M1i as handler};
80
80
  /*! Bundled license information:
81
81