sst 2.21.1 → 2.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -75,7 +75,7 @@ ${i}
|
|
|
75
75
|
${t}
|
|
76
76
|
${(0,iT.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,MH.toUint8Array)(r)),(0,iT.toHex)(await a.digest())}getSigningKey(i,t,n,s){return(0,nT.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")}};rT.SignatureV4=BH;var sT=e=>{let i=(0,xci.iso8601)(e).replace(/[\-:]/g,"");return{longDate:i,shortDate:i.slice(0,8)}},rSe=e=>Object.keys(e).sort().join(";")});var cSe=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.prepareRequest=un.moveHeadersToQuery=un.getPayloadHash=un.getCanonicalQuery=un.getCanonicalHeaders=void 0;var aSe=(Se(),le(ye));aSe.__exportStar(oSe(),un);var Tci=kH();Object.defineProperty(un,"getCanonicalHeaders",{enumerable:!0,get:function(){return Tci.getCanonicalHeaders}});var Rci=qH();Object.defineProperty(un,"getCanonicalQuery",{enumerable:!0,get:function(){return Rci.getCanonicalQuery}});var Ici=zH();Object.defineProperty(un,"getPayloadHash",{enumerable:!0,get:function(){return Ici.getPayloadHash}});var kci=NH();Object.defineProperty(un,"moveHeadersToQuery",{enumerable:!0,get:function(){return kci.moveHeadersToQuery}});var Lci=DH();Object.defineProperty(un,"prepareRequest",{enumerable:!0,get:function(){return Lci.prepareRequest}});aSe.__exportStar(RH(),un)});var lSe=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 dSe=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.deleteHeader=Qo.getHeaderValue=Qo.hasHeader=void 0;function qci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))if(e===t.toLowerCase())return!0;return!1}Qo.hasHeader=qci;function zci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))if(e===t.toLowerCase())return i[t]}Qo.getHeaderValue=zci;function Fci(e,i){e=e.toLowerCase();for(let t of Object.keys(i))e===t.toLowerCase()&&delete i[t]}Qo.deleteHeader=Fci});var pSe=m(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.CrtSignerV4=void 0;var Nci=Gye(),er=cSe(),uSe=EH(),Cn=LJ(),mSe=lSe(),Dci=dSe();function UH(e){(0,Dci.deleteHeader)(mSe.SHA256_HEADER,e.headers);let i=Object.entries(e.headers),t=new Cn.http.HttpHeaders(i),n=(0,er.getCanonicalQuery)(e);return new Cn.http.HttpRequest(e.method,e.path+"?"+n,t)}var JH=class{constructor({credentials:i,region:t,service:n,sha256:s,applyChecksum:r=!0,uriEscapePath:a=!0,signingAlgorithm:o=Cn.auth.AwsSigningAlgorithm.SigV4}){this.service=n,this.sha256=s,this.uriEscapePath=a,this.signingAlgorithm=o,this.applyChecksum=r,this.regionProvider=(0,uSe.normalizeProvider)(t),this.credentialProvider=(0,uSe.normalizeProvider)(i),Cn.io.enable_logging(Cn.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=Oci(n,t);return{algorithm:this.signingAlgorithm,signature_type:a?Cn.auth.AwsSignatureType.HttpRequestViaHeaders:Cn.auth.AwsSignatureType.HttpRequestViaQueryParams,provider:Mci(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?Cn.auth.AwsSignedBodyHeaderType.XAmzContentSha256:Cn.auth.AwsSignedBodyHeaderType.None,expiration_in_seconds:c}}async presign(i,t={}){if(t.expiresIn&&t.expiresIn>mSe.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,er.moveHeadersToQuery)((0,er.prepareRequest)(i)),s=await this.signRequest(n,await this.options2crtConfigure(t,!1,await(0,er.getPayloadHash)(i,this.sha256),t.expiresIn?t.expiresIn:3600));return n.query=this.getQueryParam(s.path),n}async sign(i,t){let n=(0,er.prepareRequest)(i),s=await this.signRequest(n,await this.options2crtConfigure(t,!0,await(0,er.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,Nci.parseQueryString)(a)}async signRequest(i,t){let n=UH(i);try{return await Cn.auth.aws_sign_request(n,t)}catch(s){throw new Error(s)}}async verifySigv4aSigning(i,t,n,s,r,a={}){let o=(0,er.prepareRequest)(i),c=UH(o),d=await(0,er.getPayloadHash)(i,this.sha256),u=await this.options2crtConfigure(a,!0,d);return Cn.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,er.prepareRequest)(i),c=UH(o),d=await this.options2crtConfigure(a,!1,await(0,er.getPayloadHash)(i,this.sha256),a.expiresIn?a.expiresIn:3600);return Cn.auth.aws_verify_sigv4a_signing(c,d,n,t,s,r)}};oT.CrtSignerV4=JH;function Mci(e){return Cn.auth.AwsCredentialsProvider.newStatic(e.accessKeyId,e.secretAccessKey,e.sessionToken)}function Oci(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 hSe=m(jH=>{"use strict";Object.defineProperty(jH,"__esModule",{value:!0});var Bci=(Se(),le(ye));Bci.__exportStar(pSe(),jH)});var fSe=m(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.SignatureV4MultiRegion=void 0;var Uci=pB(),GH=class{constructor(i){this.sigv4Signer=new Uci.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"&&hSe().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}};aT.SignatureV4MultiRegion=GH});var gSe=m(VH=>{"use strict";Object.defineProperty(VH,"__esModule",{value:!0});var Jci=(Se(),le(ye));Jci.__exportStar(fSe(),VH)});var Dve=m(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.ruleSet=void 0;var p$="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",wSe=!1,tr=!0,W="tree",An="isSet",wm="substring",Ave="hardwareType",bve="regionPrefix",_Se="abbaSuffix",u$="outpostId",Em="aws.partition",Le="stringEquals",Ka="isValidHostLabel",ni="not",Re="error",Pve="parseURL",h$="s3-outposts",ee="endpoint",Ae="booleanEquals",xve="aws.parseArn",et="s3",ySe="aws.isVirtualHostableS3Bucket",ei="getAttr",He="name",HH="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",Tve="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Rve="bucketArn",Ive="arnType",pT="",f$="s3-object-lambda",kve="accesspoint",g$="accessPointName",SSe="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",vSe="mrapPartition",ESe="outpostType",CSe="arnPrefix",Ya="{url#scheme}://{url#authority}{url#path}",Lve="https://s3.{partitionResult#dnsSuffix}",$H={[p$]:!1,[P]:"String"},_m={[p$]:!0,default:!1,[P]:"Boolean"},cT={[p$]:!1,[P]:"Boolean"},qve={[B]:An,[U]:[{[Y]:"Bucket"}]},ir={[Y]:"Bucket"},ASe={[Y]:Ave},bSe={[H]:[{[B]:ni,[U]:[{[B]:An,[U]:[{[Y]:"Endpoint"}]}]}],[Re]:"Expected a endpoint to be specified but no endpoint was found",[P]:Re},tt={[B]:ni,[U]:[{[B]:An,[U]:[{[Y]:"Endpoint"}]}]},pt={[B]:An,[U]:[{[Y]:"Endpoint"}]},Rt={[B]:Pve,[U]:[{[Y]:"Endpoint"}],[Ai]:"url"},lT={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:h$,[Ke]:!0}]},gi={},PSe={[Y]:"ForcePathStyle"},xSe={[H]:[{[B]:"uriEncode",[U]:[ir],[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]:Em,[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},XH={[H]:[Wt,{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},jci={[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]},ds={[B]:Ae,[U]:[{[Y]:"Accelerate"},!0]},TSe={[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},RSe={[be]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ISe={[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},kSe={[be]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},LSe={[H]:[Mt,ft,ds,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},qSe={[be]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},zSe={[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},FSe={[be]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},NSe={[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},DSe={[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},w$={[Y]:"url"},MSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[w$,"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},OSe={[B]:Ae,[U]:[{[B]:ei,[U]:[w$,"isIp"]},!1]},WH={[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:Gi,[xe]:{}},m$={[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:Gi,[xe]:{}},BSe={[ee]:m$,[P]:ee},USe={[H]:[Pt,ft,ds,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},KH={[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},JSe={[H]:[Pt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Tve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},jSe={[be]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},dT={[Re]:"Invalid region: region was not a valid DNS name.",[P]:Re},mn={[Y]:Rve},zve={[Y]:Ive},YH={[B]:ei,[U]:[mn,"service"]},_$={[Y]:g$},GSe={[H]:[Mt],[Re]:"S3 Object Lambda does not support Dual-stack",[P]:Re},VSe={[H]:[ds],[Re]:"S3 Object Lambda does not support S3 Accelerate",[P]:Re},HSe={[H]:[{[B]:An,[U]:[{[Y]:"DisableAccessPoints"}]},{[B]:Ae,[U]:[{[Y]:"DisableAccessPoints"},!0]}],[Re]:"Access points are not supported for this operation",[P]:Re},QH={[H]:[{[B]:An,[U]:[{[Y]:"UseArnRegion"}]},{[B]:Ae,[U]:[{[Y]:"UseArnRegion"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[mn,"region"]},"{Region}"]}]}],[Re]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[P]:Re},y$={[B]:ei,[U]:[{[Y]:"bucketPartition"},He]},Fve={[B]:ei,[U]:[mn,"accountId"]},$Se={[H]:[Wt,{[B]:Le,[U]:[y$,"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},ZH={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:f$,[Ke]:!0}]},XSe={[Re]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[P]:Re},e$={[Re]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[P]:Re},t$={[Re]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[P]:Re},i$={[Re]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[P]:Re},WSe={[Re]:"Could not load partition for ARN region `{bucketArn#region}`",[P]:Re},KSe={[Re]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[P]:Re},YSe={[Re]:"Invalid ARN: bucket ARN is missing a region",[P]:Re},QSe={[Re]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[P]:Re},ym={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:et,[Ke]:!0}]},ZSe={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:h$,[Ke]:!0}]},eve={[Y]:"UseObjectLambdaEndpoint"},n$={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:f$,[Ke]:!0}]},tve={[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},Nve={[ee]:{[be]:Ya,[Pe]:Gi,[xe]:{}},[P]:ee},Sm={[be]:Ya,[Pe]:Gi,[xe]:{}},ive={[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},nve={[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},sve={[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},rve={[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},ove={[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ave={[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},cve={[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},lve={[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},dve={[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},uve={[H]:[ft,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Lve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},mve={[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},mT=[{[Y]:"Region"}],Gci=[ir],pve=[{[B]:Ka,[U]:[{[Y]:u$},!1]}],hve=[{[B]:Le,[U]:[{[Y]:bve},"beta"]}],Vci=[{[Y]:"Endpoint"}],vm=[pt,Rt],fve=[qve],gve=[{[B]:xve,[U]:[ir]}],Hci=[Mt,pt],Wa=[{[B]:Em,[U]:mT,[Ai]:"partitionResult"}],Ml=[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],wve=[{[B]:Ka,[U]:[{[Y]:"Region"},!1]}],s$=[{[B]:Le,[U]:[zve,kve]}],_ve=[{[B]:ei,[U]:[mn,"resourceId[1]"],[Ai]:g$},{[B]:ni,[U]:[{[B]:Le,[U]:[_$,pT]}]}],$ci=[mn,"resourceId[1]"],yve=[Mt],r$=[ds],o$=[{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[mn,"region"]},pT]}]}],Sve=[{[B]:ni,[U]:[{[B]:An,[U]:[{[B]:ei,[U]:[mn,"resourceId[2]"]}]}]}],Xci=[mn,"resourceId[2]"],a$=[{[B]:Em,[U]:[{[B]:ei,[U]:[mn,"region"]}],[Ai]:"bucketPartition"}],vve=[{[B]:Le,[U]:[y$,{[B]:ei,[U]:[{[Y]:"partitionResult"},He]}]}],c$=[{[B]:Ka,[U]:[{[B]:ei,[U]:[mn,"region"]},!0]}],l$=[{[B]:Ka,[U]:[Fve,!1]}],Eve=[{[B]:Ka,[U]:[_$,!1]}],uT=[Wt],Cve=[{[B]:Ka,[U]:[{[Y]:"Region"},!0]}],d$=[Nve],Wci={version:"1.0",parameters:{Bucket:$H,Region:$H,UseFIPS:_m,UseDualStack:_m,Endpoint:$H,ForcePathStyle:cT,Accelerate:_m,UseGlobalEndpoint:_m,UseObjectLambdaEndpoint:cT,DisableAccessPoints:cT,DisableMultiRegionAccessPoints:_m,UseArnRegion:cT},[X]:[{[P]:W,[X]:[{[H]:[{[B]:An,[U]:mT}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[qve,{[B]:wm,[U]:[ir,49,50,tr],[Ai]:Ave},{[B]:wm,[U]:[ir,8,12,tr],[Ai]:bve},{[B]:wm,[U]:[ir,0,7,tr],[Ai]:_Se},{[B]:wm,[U]:[ir,32,49,tr],[Ai]:u$},{[B]:Em,[U]:mT,[Ai]:"regionPartition"},{[B]:Le,[U]:[{[Y]:_Se},"--op-s3"]}],[P]:W,[X]:[{[H]:pve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ASe,"e"]}],[P]:W,[X]:[{[H]:hve,[P]:W,[X]:[bSe,{[H]:vm,endpoint:{[be]:"https://{Bucket}.ec2.{url#authority}",[Pe]:lT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:lT,[xe]:gi},[P]:ee}]},{[H]:[{[B]:Le,[U]:[ASe,"o"]}],[P]:W,[X]:[{[H]:hve,[P]:W,[X]:[bSe,{[H]:vm,endpoint:{[be]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Pe]:lT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:lT,[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]:fve,[P]:W,[X]:[{[H]:[pt,{[B]:ni,[U]:[{[B]:An,[U]:[{[B]:Pve,[U]:Vci}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:An,[U]:[PSe]},{[B]:Ae,[U]:[PSe,tr]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:gve,error:"Path-style addressing cannot be used with ARN buckets",[P]:Re},xSe]}]},{[H]:[{[B]:ySe,[U]:[ir,wSe]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:wve,[P]:W,[X]:[{[P]:W,[X]:[XH,{[P]:W,[X]:[{[H]:[ds,Wt],error:"Accelerate cannot be used with FIPS",[P]:Re},{[P]:W,[X]:[{[H]:[ds,jci],error:"S3 Accelerate cannot be used in this region",[P]:Re},{[P]:W,[X]:[{[H]:[pt,Mt],error:HH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,Wt],error:HH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,ds],error:HH,[P]:Re},{[P]:W,[X]:[TSe,TSe,{[H]:[Mt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:RSe,[P]:ee}]},{[H]:[Mt,Wt,_i,tt,St,ji],endpoint:RSe,[P]:ee},ISe,ISe,{[H]:[Pt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:kSe,[P]:ee}]},{[H]:[Pt,Wt,_i,tt,St,ji],endpoint:kSe,[P]:ee},LSe,LSe,{[H]:[Mt,ft,ds,tt,St,Ji],[P]:W,[X]:[{endpoint:qSe,[P]:ee}]},{[H]:[Mt,ft,ds,tt,St,ji],endpoint:qSe,[P]:ee},zSe,zSe,{[H]:[Mt,ft,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:FSe,[P]:ee}]},{[H]:[Mt,ft,_i,tt,St,ji],endpoint:FSe,[P]:ee},NSe,MSe,NSe,MSe,{[H]:[Pt,ft,_i,pt,Rt,DSe,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:WH,[P]:ee},{endpoint:WH,[P]:ee}]},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:m$,[P]:ee},BSe]},{[H]:[Pt,ft,_i,pt,Rt,DSe,St,ji],endpoint:WH,[P]:ee},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,ji],endpoint:m$,[P]:ee},USe,USe,{[H]:[Pt,ft,ds,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:KH,[P]:ee},{endpoint:KH,[P]:ee}]},{[H]:[Pt,ft,ds,tt,St,ji],endpoint:KH,[P]:ee},JSe,JSe,{[H]:[Pt,ft,_i,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:{[be]:Tve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:jSe,[P]:ee}]},{[H]:[Pt,ft,_i,tt,St,ji],endpoint:jSe,[P]:ee}]}]}]}]}]}]}]}]},dT]}]},Xa]},{[H]:[pt,Rt,{[B]:Le,[U]:[{[B]:ei,[U]:[w$,"scheme"]},"http"]},{[B]:ySe,[U]:[ir,tr]},ft,Pt,_i],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:wve,[P]:W,[X]:[BSe]},dT]}]},Xa]},{[H]:[{[B]:xve,[U]:Gci,[Ai]:Rve}],[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[mn,"resourceId[0]"],[Ai]:Ive},{[B]:ni,[U]:[{[B]:Le,[U]:[zve,pT]}]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[YH,f$]}],[P]:W,[X]:[{[H]:s$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:_ve,[P]:W,[X]:[{[P]:W,[X]:[GSe,{[P]:W,[X]:[VSe,{[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[Fve,pT]}],error:"Invalid ARN: Missing account id",[P]:Re},{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:SSe,[Pe]:ZH,[xe]:gi},[P]:ee},{[H]:uT,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZH,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZH,[xe]:gi},[P]:ee}]}]}]},XSe]}]},e$]}]}]},t$]}]},i$]}]},Xa]}]},WSe]}]}]},KSe]}]}]},YSe]}]}]}]},QSe]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[P]:Re}]},{[H]:s$,[P]:W,[X]:[{[H]:_ve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[H]:s$,[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[y$,"{partitionResult#name}"]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[YH,et]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:r$,error:"Access Points do not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:Hci,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]:ym,[xe]:gi},[P]:ee},{[H]:[Wt,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Pt,pt,Rt],endpoint:{[be]:SSe,[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee}]}]}]}]}]},XSe]}]},e$]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[P]:Re}]}]},t$]}]},i$]}]},Xa]}]},WSe]}]}]},KSe]}]}]},YSe]}]},{[P]:W,[X]:[{[H]:[{[B]:Ka,[U]:[_$,tr]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,error:"S3 MRAP does not support dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:uT,error:"S3 MRAP does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:r$,error:"S3 MRAP does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"DisableMultiRegionAccessPoints"},tr]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Em,[U]:mT,[Ai]:vSe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:vSe},He]},{[B]:ei,[U]:[mn,"partition"]}]}],[P]:W,[X]:[{endpoint:{[be]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Pe]:{[Xe]:[{name:"sigv4a",signingRegionSet:["*"],[We]:et,[Ke]:tr}]},[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}]}]}]},QSe]},{[H]:[{[B]:Le,[U]:[YH,h$]}],[P]:W,[X]:[{[H]:yve,error:"S3 Outposts does not support Dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:uT,error:"S3 Outposts does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:r$,error:"S3 Outposts does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:An,[U]:[{[B]:ei,[U]:[mn,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:$ci,[Ai]:u$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:pve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Xci,[Ai]:ESe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[mn,"resourceId[3]"],[Ai]:g$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:ESe},kve]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Pe]:ZSe,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZSe,[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}]}]},e$]}]},t$]}]},i$]}]},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]:wm,[U]:[ir,0,4,wSe],[Ai]:CSe},{[B]:Le,[U]:[{[Y]:CSe},"arn:"]},{[B]:ni,[U]:[{[B]:An,[U]:gve}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[P]:Re},xSe]}]},{[H]:[{[B]:An,[U]:[eve]},{[B]:Ae,[U]:[eve,tr]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[GSe,{[P]:W,[X]:[VSe,{[P]:W,[X]:[XH,{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:Ya,[Pe]:n$,[xe]:gi},[P]:ee},{[H]:uT,endpoint:{[be]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:n$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Pe]:n$,[xe]:gi},[P]:ee}]}]}]}]}]},dT]}]},Xa]},{[H]:[{[B]:ni,[U]:fve}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[XH,{[P]:W,[X]:[tve,tve,{[H]:[Wt,Mt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[Wt,Mt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},ive,ive,{[H]:[Wt,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:nve,[P]:ee}]},{[H]:[Wt,Mt,tt,St,ji],endpoint:nve,[P]:ee},sve,sve,{[H]:[Wt,Pt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[Wt,Pt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},rve,rve,{[H]:[Wt,Pt,tt,St,Ji],[P]:W,[X]:[{endpoint:ove,[P]:ee}]},{[H]:[Wt,Pt,tt,St,ji],endpoint:ove,[P]:ee},ave,ave,{[H]:[ft,Mt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[ft,Mt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},cve,cve,{[H]:[ft,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:lve,[P]:ee}]},{[H]:[ft,Mt,tt,St,ji],endpoint:lve,[P]:ee},dve,dve,{[H]:[ft,Pt,pt,Rt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:Sm,[P]:ee},Nve]},{[H]:[ft,Pt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},uve,uve,{[H]:[ft,Pt,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:{[be]:Lve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:mve,[P]:ee}]},{[H]:[ft,Pt,tt,St,ji],endpoint:mve,[P]:ee}]}]}]},dT]}]},Xa]}]}]},{error:"A region must be set when sending requests to S3.",[P]:Re}]}]};hT.ruleSet=Wci});var Mve=m(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.defaultEndpointResolver=void 0;var Kci=ml(),Yci=Dve(),Qci=(e,i={})=>(0,Kci.resolveEndpoint)(Yci.ruleSet,{endpointParams:e,logger:i.logger});fT.defaultEndpointResolver=Qci});var Uve=m(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.getRuntimeConfig=void 0;var Zci=gSe(),eli=S(),tli=so(),Ove=dl(),Bve=Bn(),ili=Mve(),nli=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ove.fromBase64,base64Encoder:e?.base64Encoder??Ove.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ili.defaultEndpointResolver,logger:e?.logger??new eli.NoOpLogger,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??Zci.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??tli.parseUrl,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??Bve.fromUtf8,utf8Encoder:e?.utf8Encoder??Bve.toUtf8});gT.getRuntimeConfig=nli});var Vve=m(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.getRuntimeConfig=void 0;var sli=(Se(),le(ye)),rli=sli.__importDefault(oye()),oli=Zj(),wT=Dn(),ali=zA(),cli=bye(),S$=Kc(),lli=Rye(),dli=Mye(),Jve=is(),Ol=Er(),jve=La(),uli=Yc(),mli=wn(),Gve=jye(),pli=ll(),hli=Uve(),fli=S(),gli=hl(),wli=S(),_li=e=>{(0,wli.emitWarningIfUnsupportedVersion)(process.version);let i=(0,gli.resolveDefaultsModeConfig)(e),t=()=>i().then(fli.loadConfigsForDefaultMode),n=(0,hli.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:i,bodyLengthChecker:e?.bodyLengthChecker??uli.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,oli.decorateDefaultCredentialProvider)(ali.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,pli.defaultUserAgent)({serviceId:n.serviceId,clientVersion:rli.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??cli.eventStreamSerdeProvider,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??Gve.getAwsChunkedEncodingStream,maxAttempts:e?.maxAttempts??(0,Ol.loadConfig)(Jve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:e?.md5??S$.Hash.bind(null,"md5"),region:e?.region??(0,Ol.loadConfig)(wT.NODE_REGION_CONFIG_OPTIONS,wT.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new jve.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Ol.loadConfig)({...Jve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||mli.DEFAULT_RETRY_MODE}),sdkStreamMixin:e?.sdkStreamMixin??Gve.sdkStreamMixin,sha1:e?.sha1??S$.Hash.bind(null,"sha1"),sha256:e?.sha256??S$.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??jve.streamCollector,streamHasher:e?.streamHasher??lli.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,Ol.loadConfig)(dli.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:e?.useDualstackEndpoint??(0,Ol.loadConfig)(wT.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Ol.loadConfig)(wT.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};_T.getRuntimeConfig=_li});var Cm=m(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.S3Client=void 0;var yli=Dn(),Sli=iye(),vli=kc(),Eli=C(),Cli=sye(),Hve=Lc(),Ali=qc(),bli=zc(),$ve=is(),Xve=Tl(),Wve=As(),Kve=Vc(),Pli=S(),xli=rye(),Tli=Vve(),v$=class extends Pli.Client{constructor(i){let t=(0,Tli.getRuntimeConfig)(i),n=(0,xli.resolveClientEndpointParameters)(t),s=(0,yli.resolveRegionConfig)(n),r=(0,Eli.resolveEndpointConfig)(s),a=(0,$ve.resolveRetryConfig)(r),o=(0,Hve.resolveHostHeaderConfig)(a),c=(0,Wve.resolveAwsAuthConfig)(o),d=(0,Xve.resolveS3Config)(c),u=(0,Kve.resolveUserAgentConfig)(d),_=(0,Sli.resolveEventStreamSerdeConfig)(u);super(_),this.config=_,this.middlewareStack.use((0,$ve.getRetryPlugin)(this.config)),this.middlewareStack.use((0,vli.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Hve.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ali.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,bli.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Wve.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Xve.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Cli.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,Kve.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yT.S3Client=v$});var vT=m(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.S3=void 0;var Rli=CG(),Ili=PG(),kli=TG(),Lli=IG(),qli=LG(),zli=zG(),Fli=NG(),Nli=MG(),Dli=BG(),Mli=JG(),Oli=GG(),Bli=HG(),Uli=XG(),Jli=KG(),jli=QG(),Gli=e2(),Vli=i2(),Hli=s2(),$li=o2(),Xli=v2(),Wli=C2(),Kli=b2(),Yli=x2(),Qli=R2(),Zli=k2(),edi=q2(),tdi=F2(),idi=D2(),ndi=O2(),sdi=U2(),rdi=j2(),odi=V2(),adi=$2(),cdi=W2(),ldi=Y2(),ddi=Z2(),udi=t3(),mdi=n3(),pdi=r3(),hdi=a3(),fdi=l3(),gdi=u3(),wdi=p3(),_di=f3(),ydi=w3(),Sdi=y3(),vdi=v3(),Edi=C3(),Cdi=b3(),Adi=x3(),bdi=R3(),Pdi=mm(),xdi=pm(),Tdi=q3(),Rdi=F3(),Idi=D3(),kdi=O3(),Ldi=U3(),qdi=j3(),zdi=V3(),Fdi=kP(),Ndi=X3(),Ddi=zP(),Mdi=Y3(),Odi=Z3(),Bdi=tV(),Udi=nV(),Jdi=rV(),jdi=aV(),Gdi=lV(),Vdi=uV(),Hdi=pV(),$di=fV(),Xdi=wV(),Wdi=yV(),Kdi=vV(),Ydi=CV(),Qdi=bV(),Zdi=xV(),eui=RV(),tui=kV(),iui=qV(),nui=FV(),sui=DV(),rui=OV(),oui=UV(),aui=jV(),cui=VV(),lui=$V(),dui=WV(),uui=YV(),mui=ZV(),pui=tH(),hui=Cm(),E$=class extends hui.S3Client{abortMultipartUpload(i,t,n){let s=new Rli.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 Ili.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 kli.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 Lli.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 qli.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 Fli.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 zli.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 Nli.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 Dli.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 Mli.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 Oli.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 Bli.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 Uli.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 Jli.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 jli.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 Gli.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 Vli.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 Hli.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 $li.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 Xli.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 Wli.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 Kli.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 Yli.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 Qli.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 Zli.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 edi.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 tdi.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 idi.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 ndi.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 sdi.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 rdi.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 odi.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 adi.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 cdi.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 ldi.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 ddi.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 udi.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 mdi.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 pdi.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 hdi.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 fdi.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 gdi.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 ydi.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 wdi.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 _di.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 Sdi.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 vdi.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 Edi.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 Cdi.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 Adi.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 bdi.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 Pdi.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 xdi.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 Tdi.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 Rdi.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 Idi.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 kdi.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 Ldi.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 qdi.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 zdi.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 Fdi.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 Ndi.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 Ddi.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 Mdi.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 Odi.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 Bdi.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 Udi.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 Jdi.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 jdi.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 Gdi.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 Vdi.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 Hdi.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 $di.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 Xdi.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 Wdi.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 Kdi.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 Ydi.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 Qdi.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 Zdi.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 eui.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 tui.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 nui.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 iui.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 sui.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 rui.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 oui.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 aui.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 cui.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 lui.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 dui.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 uui.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 mui.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 pui.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)}};ST.S3=E$});var Yve=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var we=(Se(),le(ye));we.__exportStar(CG(),de);we.__exportStar(PG(),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(v2(),de);we.__exportStar(b2(),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(mm(),de);we.__exportStar(pm(),de);we.__exportStar(q3(),de);we.__exportStar(F3(),de);we.__exportStar(D3(),de);we.__exportStar(O3(),de);we.__exportStar(U3(),de);we.__exportStar(j3(),de);we.__exportStar(X3(),de);we.__exportStar(V3(),de);we.__exportStar(kP(),de);we.__exportStar(zP(),de);we.__exportStar(Y3(),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)});var Zve=m(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});var Qve=(Se(),le(ye));Qve.__exportStar(ve(),ET);Qve.__exportStar(ls(),ET)});var tEe=m(eEe=>{"use strict";Object.defineProperty(eEe,"__esModule",{value:!0})});var iEe=m(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.paginateListObjectsV2=void 0;var fui=kP(),gui=vT(),wui=Cm(),_ui=async(e,i,...t)=>await e.send(new fui.ListObjectsV2Command(i),...t),yui=async(e,i,...t)=>await e.listObjectsV2(i,...t);async function*Sui(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 gui.S3)r=await yui(e.client,i,...t);else if(e.client instanceof wui.S3Client)r=await _ui(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}CT.paginateListObjectsV2=Sui});var nEe=m(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.paginateListParts=void 0;var vui=zP(),Eui=vT(),Cui=Cm(),Aui=async(e,i,...t)=>await e.send(new vui.ListPartsCommand(i),...t),bui=async(e,i,...t)=>await e.listParts(i,...t);async function*Pui(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 Eui.S3)r=await bui(e.client,i,...t);else if(e.client instanceof Cui.S3Client)r=await Aui(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}AT.paginateListParts=Pui});var sEe=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var C$=(Se(),le(ye));C$.__exportStar(tEe(),Am);C$.__exportStar(iEe(),Am);C$.__exportStar(nEe(),Am)});var A$=m(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.sleep=void 0;var xui=e=>new Promise(i=>setTimeout(i,e*1e3));bT.sleep=xui});var xT=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 PT;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(PT=Br.WaiterState||(Br.WaiterState={}));var Tui=e=>{if(e.state===PT.ABORTED){let i=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw i.name="AbortError",i}else if(e.state===PT.TIMEOUT){let i=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw i.name="TimeoutError",i}else if(e.state!==PT.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Br.checkExceptions=Tui});var rEe=m(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.runPolling=void 0;var Rui=A$(),TT=xT(),Iui=(e,i,t,n)=>{if(n>t)return i;let s=e*2**(n-1);return kui(e,s)},kui=(e,i)=>e+Math.random()*(i-e),Lui=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!==TT.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:TT.WaiterState.ABORTED};let k=Iui(e,i,b,_);if(Date.now()+k*1e3>y)return{state:TT.WaiterState.TIMEOUT};await(0,Rui.sleep)(k);let{state:j,reason:$}=await o(s,a);if(j!==TT.WaiterState.RETRY)return{state:j,reason:$};_+=1}};RT.runPolling=Lui});var oEe=m(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.validateWaiterOptions=void 0;var qui=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`)};IT.validateWaiterOptions=qui});var cEe=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});var aEe=(Se(),le(ye));aEe.__exportStar(A$(),kT);aEe.__exportStar(oEe(),kT)});var uEe=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.createWaiter=void 0;var zui=rEe(),Fui=cEe(),dEe=xT(),lEe=async e=>new Promise(i=>{e.onabort=()=>i({state:dEe.WaiterState.ABORTED})}),Nui=async(e,i,t)=>{let n={...dEe.waiterServiceDefaults,...e};(0,Fui.validateWaiterOptions)(n);let s=[(0,zui.runPolling)(n,i,t)];return e.abortController&&s.push(lEe(e.abortController.signal)),e.abortSignal&&s.push(lEe(e.abortSignal)),Promise.race(s)};LT.createWaiter=Nui});var bm=m(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});var mEe=(Se(),le(ye));mEe.__exportStar(uEe(),qT);mEe.__exportStar(xT(),qT)});var hEe=m(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.waitUntilBucketExists=Ul.waitForBucketExists=void 0;var Bl=bm(),Dui=mm(),pEe=async(e,i)=>{let t;try{return t=await e.send(new Dui.HeadBucketCommand(i)),{state:Bl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Bl.WaiterState.RETRY,reason:t}}return{state:Bl.WaiterState.RETRY,reason:t}},Mui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Bl.createWaiter)({...t,...e},i,pEe)};Ul.waitForBucketExists=Mui;var Oui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Bl.createWaiter)({...t,...e},i,pEe);return(0,Bl.checkExceptions)(n)};Ul.waitUntilBucketExists=Oui});var gEe=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.waitUntilBucketNotExists=Jl.waitForBucketNotExists=void 0;var Pm=bm(),Bui=mm(),fEe=async(e,i)=>{let t;try{t=await e.send(new Bui.HeadBucketCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Pm.WaiterState.SUCCESS,reason:t}}return{state:Pm.WaiterState.RETRY,reason:t}},Uui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Pm.createWaiter)({...t,...e},i,fEe)};Jl.waitForBucketNotExists=Uui;var Jui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Pm.createWaiter)({...t,...e},i,fEe);return(0,Pm.checkExceptions)(n)};Jl.waitUntilBucketNotExists=Jui});var _Ee=m(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.waitUntilObjectExists=Gl.waitForObjectExists=void 0;var jl=bm(),jui=pm(),wEe=async(e,i)=>{let t;try{return t=await e.send(new jui.HeadObjectCommand(i)),{state:jl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:jl.WaiterState.RETRY,reason:t}}return{state:jl.WaiterState.RETRY,reason:t}},Gui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,jl.createWaiter)({...t,...e},i,wEe)};Gl.waitForObjectExists=Gui;var Vui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,jl.createWaiter)({...t,...e},i,wEe);return(0,jl.checkExceptions)(n)};Gl.waitUntilObjectExists=Vui});var SEe=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.waitUntilObjectNotExists=Vl.waitForObjectNotExists=void 0;var xm=bm(),Hui=pm(),yEe=async(e,i)=>{let t;try{t=await e.send(new Hui.HeadObjectCommand(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}},$ui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,xm.createWaiter)({...t,...e},i,yEe)};Vl.waitForObjectNotExists=$ui;var Xui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,xm.createWaiter)({...t,...e},i,yEe);return(0,xm.checkExceptions)(n)};Vl.waitUntilObjectNotExists=Xui});var vEe=m(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var zT=(Se(),le(ye));zT.__exportStar(hEe(),Hl);zT.__exportStar(gEe(),Hl);zT.__exportStar(_Ee(),Hl);zT.__exportStar(SEe(),Hl)});var EEe=m(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.S3ServiceException=void 0;var $l=(Se(),le(ye));$l.__exportStar(vT(),nr);$l.__exportStar(Cm(),nr);$l.__exportStar(Yve(),nr);$l.__exportStar(Zve(),nr);$l.__exportStar(sEe(),nr);$l.__exportStar(vEe(),nr);var Wui=nm();Object.defineProperty(nr,"S3ServiceException",{enumerable:!0,get:function(){return Wui.S3ServiceException}})});var AEe=UT($K(),1),NT=UT(Mhe(),1),Xl=UT(EEe(),1);import Kui from"crypto";var CEe=new Xl.S3Client({}),Yui=new NT.IoTClient({}),Qui=await Yui.send(new NT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),Zui=Qui.endpointAddress,FT=Kui.randomBytes(16).toString("hex"),bEe=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,emi={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},PEe=Object.fromEntries(Object.entries(process.env).filter(([e,i])=>emi[e]!==!0)),Tm=new AEe.default.device({protocol:"wss",debug:!0,host:Zui,region:PEe.AWS_REGION});Tm.on("error",console.log);Tm.on("connect",console.log);Tm.subscribe(`${bEe}/events/${FT}`,{qos:1});var b$=new Map,P$;Tm.on("message",async(e,i)=>{let t=JSON.parse(i.toString());console.log("Got fragment",t.id,t.index);let n=b$.get(t.id);if(n||(n=new Map,b$.set(t.id,n)),n.set(t.index,t),n.size===t.count){console.log("Got all fragments",t.id),b$.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 CEe.send(new Xl.GetObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}))).Body.transformToString();P$(JSON.parse(o)),await CEe.send(new Xl.DeleteObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}));return}P$(r)}});async function q1i(e,i){let t=await new Promise(n=>{let s=setTimeout(()=>{n({type:"function.timeout"})},5e3);P$=r=>{r.type==="function.ack"&&r.properties.workerID===FT&&clearTimeout(s),["function.success","function.error"].includes(r.type)&&r.properties.workerID===FT&&(clearTimeout(s),n(r))};for(let r of tmi({type:"function.invoked",properties:{workerID:FT,requestID:i.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:i.getRemainingTimeInMillis(),event:e,context:i,env:PEe}}))Tm.publish(`${bEe}/events`,JSON.stringify(r),{qos:1},console.log)});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}};aT.SignatureV4MultiRegion=GH});var gSe=m(VH=>{"use strict";Object.defineProperty(VH,"__esModule",{value:!0});var Jci=(Se(),le(ye));Jci.__exportStar(fSe(),VH)});var Dve=m(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT.ruleSet=void 0;var p$="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",wSe=!1,tr=!0,W="tree",An="isSet",wm="substring",Ave="hardwareType",bve="regionPrefix",_Se="abbaSuffix",u$="outpostId",Em="aws.partition",Le="stringEquals",Ka="isValidHostLabel",ni="not",Re="error",Pve="parseURL",h$="s3-outposts",ee="endpoint",Ae="booleanEquals",xve="aws.parseArn",et="s3",ySe="aws.isVirtualHostableS3Bucket",ei="getAttr",He="name",HH="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",Tve="https://{Bucket}.s3.{partitionResult#dnsSuffix}",Rve="bucketArn",Ive="arnType",pT="",f$="s3-object-lambda",kve="accesspoint",g$="accessPointName",SSe="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",vSe="mrapPartition",ESe="outpostType",CSe="arnPrefix",Ya="{url#scheme}://{url#authority}{url#path}",Lve="https://s3.{partitionResult#dnsSuffix}",$H={[p$]:!1,[P]:"String"},_m={[p$]:!0,default:!1,[P]:"Boolean"},cT={[p$]:!1,[P]:"Boolean"},qve={[B]:An,[U]:[{[Y]:"Bucket"}]},ir={[Y]:"Bucket"},ASe={[Y]:Ave},bSe={[H]:[{[B]:ni,[U]:[{[B]:An,[U]:[{[Y]:"Endpoint"}]}]}],[Re]:"Expected a endpoint to be specified but no endpoint was found",[P]:Re},tt={[B]:ni,[U]:[{[B]:An,[U]:[{[Y]:"Endpoint"}]}]},pt={[B]:An,[U]:[{[Y]:"Endpoint"}]},Rt={[B]:Pve,[U]:[{[Y]:"Endpoint"}],[Ai]:"url"},lT={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:h$,[Ke]:!0}]},gi={},PSe={[Y]:"ForcePathStyle"},xSe={[H]:[{[B]:"uriEncode",[U]:[ir],[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]:Em,[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},XH={[H]:[Wt,{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},jci={[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:"partitionResult"},He]},"aws-cn"]},ds={[B]:Ae,[U]:[{[Y]:"Accelerate"},!0]},TSe={[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},RSe={[be]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ISe={[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},kSe={[be]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},LSe={[H]:[Mt,ft,ds,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},qSe={[be]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},zSe={[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},FSe={[be]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},NSe={[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},DSe={[B]:Ae,[U]:[{[B]:ei,[U]:[{[Y]:"url"},"isIp"]},!0]},w$={[Y]:"url"},MSe={[H]:[Pt,ft,_i,pt,Rt,{[B]:Ae,[U]:[{[B]:ei,[U]:[w$,"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},OSe={[B]:Ae,[U]:[{[B]:ei,[U]:[w$,"isIp"]},!1]},WH={[be]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[Pe]:Gi,[xe]:{}},m$={[be]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[Pe]:Gi,[xe]:{}},BSe={[ee]:m$,[P]:ee},USe={[H]:[Pt,ft,ds,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},KH={[be]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},JSe={[H]:[Pt,ft,_i,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Tve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},jSe={[be]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},dT={[Re]:"Invalid region: region was not a valid DNS name.",[P]:Re},mn={[Y]:Rve},zve={[Y]:Ive},YH={[B]:ei,[U]:[mn,"service"]},_$={[Y]:g$},GSe={[H]:[Mt],[Re]:"S3 Object Lambda does not support Dual-stack",[P]:Re},VSe={[H]:[ds],[Re]:"S3 Object Lambda does not support S3 Accelerate",[P]:Re},HSe={[H]:[{[B]:An,[U]:[{[Y]:"DisableAccessPoints"}]},{[B]:Ae,[U]:[{[Y]:"DisableAccessPoints"},!0]}],[Re]:"Access points are not supported for this operation",[P]:Re},QH={[H]:[{[B]:An,[U]:[{[Y]:"UseArnRegion"}]},{[B]:Ae,[U]:[{[Y]:"UseArnRegion"},!1]},{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[mn,"region"]},"{Region}"]}]}],[Re]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[P]:Re},y$={[B]:ei,[U]:[{[Y]:"bucketPartition"},He]},Fve={[B]:ei,[U]:[mn,"accountId"]},$Se={[H]:[Wt,{[B]:Le,[U]:[y$,"aws-cn"]}],[Re]:"Partition does not support FIPS",[P]:Re},ZH={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:f$,[Ke]:!0}]},XSe={[Re]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[P]:Re},e$={[Re]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[P]:Re},t$={[Re]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[P]:Re},i$={[Re]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[P]:Re},WSe={[Re]:"Could not load partition for ARN region `{bucketArn#region}`",[P]:Re},KSe={[Re]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[P]:Re},YSe={[Re]:"Invalid ARN: bucket ARN is missing a region",[P]:Re},QSe={[Re]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[P]:Re},ym={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:et,[Ke]:!0}]},ZSe={[Xe]:[{[He]:"sigv4",[Ye]:"{bucketArn#region}",[We]:h$,[Ke]:!0}]},eve={[Y]:"UseObjectLambdaEndpoint"},n$={[Xe]:[{[He]:"sigv4",[Ye]:"{Region}",[We]:f$,[Ke]:!0}]},tve={[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},Nve={[ee]:{[be]:Ya,[Pe]:Gi,[xe]:{}},[P]:ee},Sm={[be]:Ya,[Pe]:Gi,[xe]:{}},ive={[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},nve={[be]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},sve={[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},rve={[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},ove={[be]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},ave={[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},cve={[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},lve={[be]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},dve={[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},uve={[H]:[ft,Pt,tt,{[B]:Le,[U]:[{[Y]:"Region"},"aws-global"]}],[ee]:{[be]:Lve,[Pe]:{[Xe]:[{[He]:"sigv4",[Ye]:"us-east-1",[We]:et,[Ke]:!0}]},[xe]:{}},[P]:ee},mve={[be]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Pe]:Gi,[xe]:{}},mT=[{[Y]:"Region"}],Gci=[ir],pve=[{[B]:Ka,[U]:[{[Y]:u$},!1]}],hve=[{[B]:Le,[U]:[{[Y]:bve},"beta"]}],Vci=[{[Y]:"Endpoint"}],vm=[pt,Rt],fve=[qve],gve=[{[B]:xve,[U]:[ir]}],Hci=[Mt,pt],Wa=[{[B]:Em,[U]:mT,[Ai]:"partitionResult"}],Ml=[{[B]:Le,[U]:[{[Y]:"Region"},"us-east-1"]}],wve=[{[B]:Ka,[U]:[{[Y]:"Region"},!1]}],s$=[{[B]:Le,[U]:[zve,kve]}],_ve=[{[B]:ei,[U]:[mn,"resourceId[1]"],[Ai]:g$},{[B]:ni,[U]:[{[B]:Le,[U]:[_$,pT]}]}],$ci=[mn,"resourceId[1]"],yve=[Mt],r$=[ds],o$=[{[B]:ni,[U]:[{[B]:Le,[U]:[{[B]:ei,[U]:[mn,"region"]},pT]}]}],Sve=[{[B]:ni,[U]:[{[B]:An,[U]:[{[B]:ei,[U]:[mn,"resourceId[2]"]}]}]}],Xci=[mn,"resourceId[2]"],a$=[{[B]:Em,[U]:[{[B]:ei,[U]:[mn,"region"]}],[Ai]:"bucketPartition"}],vve=[{[B]:Le,[U]:[y$,{[B]:ei,[U]:[{[Y]:"partitionResult"},He]}]}],c$=[{[B]:Ka,[U]:[{[B]:ei,[U]:[mn,"region"]},!0]}],l$=[{[B]:Ka,[U]:[Fve,!1]}],Eve=[{[B]:Ka,[U]:[_$,!1]}],uT=[Wt],Cve=[{[B]:Ka,[U]:[{[Y]:"Region"},!0]}],d$=[Nve],Wci={version:"1.0",parameters:{Bucket:$H,Region:$H,UseFIPS:_m,UseDualStack:_m,Endpoint:$H,ForcePathStyle:cT,Accelerate:_m,UseGlobalEndpoint:_m,UseObjectLambdaEndpoint:cT,DisableAccessPoints:cT,DisableMultiRegionAccessPoints:_m,UseArnRegion:cT},[X]:[{[P]:W,[X]:[{[H]:[{[B]:An,[U]:mT}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[qve,{[B]:wm,[U]:[ir,49,50,tr],[Ai]:Ave},{[B]:wm,[U]:[ir,8,12,tr],[Ai]:bve},{[B]:wm,[U]:[ir,0,7,tr],[Ai]:_Se},{[B]:wm,[U]:[ir,32,49,tr],[Ai]:u$},{[B]:Em,[U]:mT,[Ai]:"regionPartition"},{[B]:Le,[U]:[{[Y]:_Se},"--op-s3"]}],[P]:W,[X]:[{[H]:pve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[ASe,"e"]}],[P]:W,[X]:[{[H]:hve,[P]:W,[X]:[bSe,{[H]:vm,endpoint:{[be]:"https://{Bucket}.ec2.{url#authority}",[Pe]:lT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:lT,[xe]:gi},[P]:ee}]},{[H]:[{[B]:Le,[U]:[ASe,"o"]}],[P]:W,[X]:[{[H]:hve,[P]:W,[X]:[bSe,{[H]:vm,endpoint:{[be]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Pe]:lT,[xe]:gi},[P]:ee}]},{endpoint:{[be]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Pe]:lT,[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]:fve,[P]:W,[X]:[{[H]:[pt,{[B]:ni,[U]:[{[B]:An,[U]:[{[B]:Pve,[U]:Vci}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:An,[U]:[PSe]},{[B]:Ae,[U]:[PSe,tr]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:gve,error:"Path-style addressing cannot be used with ARN buckets",[P]:Re},xSe]}]},{[H]:[{[B]:ySe,[U]:[ir,wSe]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:wve,[P]:W,[X]:[{[P]:W,[X]:[XH,{[P]:W,[X]:[{[H]:[ds,Wt],error:"Accelerate cannot be used with FIPS",[P]:Re},{[P]:W,[X]:[{[H]:[ds,jci],error:"S3 Accelerate cannot be used in this region",[P]:Re},{[P]:W,[X]:[{[H]:[pt,Mt],error:HH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,Wt],error:HH,[P]:Re},{[P]:W,[X]:[{[H]:[pt,ds],error:HH,[P]:Re},{[P]:W,[X]:[TSe,TSe,{[H]:[Mt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:RSe,[P]:ee}]},{[H]:[Mt,Wt,_i,tt,St,ji],endpoint:RSe,[P]:ee},ISe,ISe,{[H]:[Pt,Wt,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:kSe,[P]:ee}]},{[H]:[Pt,Wt,_i,tt,St,ji],endpoint:kSe,[P]:ee},LSe,LSe,{[H]:[Mt,ft,ds,tt,St,Ji],[P]:W,[X]:[{endpoint:qSe,[P]:ee}]},{[H]:[Mt,ft,ds,tt,St,ji],endpoint:qSe,[P]:ee},zSe,zSe,{[H]:[Mt,ft,_i,tt,St,Ji],[P]:W,[X]:[{endpoint:FSe,[P]:ee}]},{[H]:[Mt,ft,_i,tt,St,ji],endpoint:FSe,[P]:ee},NSe,MSe,NSe,MSe,{[H]:[Pt,ft,_i,pt,Rt,DSe,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:WH,[P]:ee},{endpoint:WH,[P]:ee}]},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:m$,[P]:ee},BSe]},{[H]:[Pt,ft,_i,pt,Rt,DSe,St,ji],endpoint:WH,[P]:ee},{[H]:[Pt,ft,_i,pt,Rt,OSe,St,ji],endpoint:m$,[P]:ee},USe,USe,{[H]:[Pt,ft,ds,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:KH,[P]:ee},{endpoint:KH,[P]:ee}]},{[H]:[Pt,ft,ds,tt,St,ji],endpoint:KH,[P]:ee},JSe,JSe,{[H]:[Pt,ft,_i,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:{[be]:Tve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:jSe,[P]:ee}]},{[H]:[Pt,ft,_i,tt,St,ji],endpoint:jSe,[P]:ee}]}]}]}]}]}]}]}]},dT]}]},Xa]},{[H]:[pt,Rt,{[B]:Le,[U]:[{[B]:ei,[U]:[w$,"scheme"]},"http"]},{[B]:ySe,[U]:[ir,tr]},ft,Pt,_i],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:wve,[P]:W,[X]:[BSe]},dT]}]},Xa]},{[H]:[{[B]:xve,[U]:Gci,[Ai]:Rve}],[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[mn,"resourceId[0]"],[Ai]:Ive},{[B]:ni,[U]:[{[B]:Le,[U]:[zve,pT]}]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[YH,f$]}],[P]:W,[X]:[{[H]:s$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:_ve,[P]:W,[X]:[{[P]:W,[X]:[GSe,{[P]:W,[X]:[VSe,{[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[Fve,pT]}],error:"Invalid ARN: Missing account id",[P]:Re},{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:SSe,[Pe]:ZH,[xe]:gi},[P]:ee},{[H]:uT,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZH,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZH,[xe]:gi},[P]:ee}]}]}]},XSe]}]},e$]}]}]},t$]}]},i$]}]},Xa]}]},WSe]}]}]},KSe]}]}]},YSe]}]}]}]},QSe]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[P]:Re}]},{[H]:s$,[P]:W,[X]:[{[H]:_ve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[H]:s$,[P]:W,[X]:[{[H]:o$,[P]:W,[X]:[{[P]:W,[X]:[HSe,{[P]:W,[X]:[{[H]:Sve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[y$,"{partitionResult#name}"]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[YH,et]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Eve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:r$,error:"Access Points do not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[$Se,{[P]:W,[X]:[{[H]:Hci,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]:ym,[xe]:gi},[P]:ee},{[H]:[Wt,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Mt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Pt,pt,Rt],endpoint:{[be]:SSe,[Pe]:ym,[xe]:gi},[P]:ee},{[H]:[ft,Pt],endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ym,[xe]:gi},[P]:ee}]}]}]}]}]},XSe]}]},e$]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[P]:Re}]}]},t$]}]},i$]}]},Xa]}]},WSe]}]}]},KSe]}]}]},YSe]}]},{[P]:W,[X]:[{[H]:[{[B]:Ka,[U]:[_$,tr]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:yve,error:"S3 MRAP does not support dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:uT,error:"S3 MRAP does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:r$,error:"S3 MRAP does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Ae,[U]:[{[Y]:"DisableMultiRegionAccessPoints"},tr]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:Em,[U]:mT,[Ai]:vSe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[B]:ei,[U]:[{[Y]:vSe},He]},{[B]:ei,[U]:[mn,"partition"]}]}],[P]:W,[X]:[{endpoint:{[be]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Pe]:{[Xe]:[{name:"sigv4a",signingRegionSet:["*"],[We]:et,[Ke]:tr}]},[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}]}]}]},QSe]},{[H]:[{[B]:Le,[U]:[YH,h$]}],[P]:W,[X]:[{[H]:yve,error:"S3 Outposts does not support Dual-stack",[P]:Re},{[P]:W,[X]:[{[H]:uT,error:"S3 Outposts does not support FIPS",[P]:Re},{[P]:W,[X]:[{[H]:r$,error:"S3 Outposts does not support S3 Accelerate",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:An,[U]:[{[B]:ei,[U]:[mn,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[P]:Re},{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:$ci,[Ai]:u$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:pve,[P]:W,[X]:[{[P]:W,[X]:[QH,{[P]:W,[X]:[{[H]:a$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:vve,[P]:W,[X]:[{[P]:W,[X]:[{[H]:c$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:l$,[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:Xci,[Ai]:ESe}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:ei,[U]:[mn,"resourceId[3]"],[Ai]:g$}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:[{[B]:Le,[U]:[{[Y]:ESe},kve]}],[P]:W,[X]:[{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Pe]:ZSe,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Pe]:ZSe,[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}]}]},e$]}]},t$]}]},i$]}]},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]:wm,[U]:[ir,0,4,wSe],[Ai]:CSe},{[B]:Le,[U]:[{[Y]:CSe},"arn:"]},{[B]:ni,[U]:[{[B]:An,[U]:gve}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[P]:Re},xSe]}]},{[H]:[{[B]:An,[U]:[eve]},{[B]:Ae,[U]:[eve,tr]}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[GSe,{[P]:W,[X]:[VSe,{[P]:W,[X]:[XH,{[P]:W,[X]:[{[H]:vm,endpoint:{[be]:Ya,[Pe]:n$,[xe]:gi},[P]:ee},{[H]:uT,endpoint:{[be]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Pe]:n$,[xe]:gi},[P]:ee},{endpoint:{[be]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Pe]:n$,[xe]:gi},[P]:ee}]}]}]}]}]},dT]}]},Xa]},{[H]:[{[B]:ni,[U]:fve}],[P]:W,[X]:[{[H]:Wa,[P]:W,[X]:[{[P]:W,[X]:[{[H]:Cve,[P]:W,[X]:[{[P]:W,[X]:[XH,{[P]:W,[X]:[tve,tve,{[H]:[Wt,Mt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[Wt,Mt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},ive,ive,{[H]:[Wt,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:nve,[P]:ee}]},{[H]:[Wt,Mt,tt,St,ji],endpoint:nve,[P]:ee},sve,sve,{[H]:[Wt,Pt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[Wt,Pt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},rve,rve,{[H]:[Wt,Pt,tt,St,Ji],[P]:W,[X]:[{endpoint:ove,[P]:ee}]},{[H]:[Wt,Pt,tt,St,ji],endpoint:ove,[P]:ee},ave,ave,{[H]:[ft,Mt,pt,Rt,St,Ji],[P]:W,[X]:d$},{[H]:[ft,Mt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},cve,cve,{[H]:[ft,Mt,tt,St,Ji],[P]:W,[X]:[{endpoint:lve,[P]:ee}]},{[H]:[ft,Mt,tt,St,ji],endpoint:lve,[P]:ee},dve,dve,{[H]:[ft,Pt,pt,Rt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:Sm,[P]:ee},Nve]},{[H]:[ft,Pt,pt,Rt,St,ji],endpoint:Sm,[P]:ee},uve,uve,{[H]:[ft,Pt,tt,St,Ji],[P]:W,[X]:[{[H]:Ml,endpoint:{[be]:Lve,[Pe]:Gi,[xe]:gi},[P]:ee},{endpoint:mve,[P]:ee}]},{[H]:[ft,Pt,tt,St,ji],endpoint:mve,[P]:ee}]}]}]},dT]}]},Xa]}]}]},{error:"A region must be set when sending requests to S3.",[P]:Re}]}]};hT.ruleSet=Wci});var Mve=m(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.defaultEndpointResolver=void 0;var Kci=ml(),Yci=Dve(),Qci=(e,i={})=>(0,Kci.resolveEndpoint)(Yci.ruleSet,{endpointParams:e,logger:i.logger});fT.defaultEndpointResolver=Qci});var Uve=m(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.getRuntimeConfig=void 0;var Zci=gSe(),eli=S(),tli=so(),Ove=dl(),Bve=Bn(),ili=Mve(),nli=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??Ove.fromBase64,base64Encoder:e?.base64Encoder??Ove.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ili.defaultEndpointResolver,logger:e?.logger??new eli.NoOpLogger,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??Zci.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??tli.parseUrl,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??Bve.fromUtf8,utf8Encoder:e?.utf8Encoder??Bve.toUtf8});gT.getRuntimeConfig=nli});var Vve=m(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.getRuntimeConfig=void 0;var sli=(Se(),le(ye)),rli=sli.__importDefault(oye()),oli=Zj(),wT=Dn(),ali=zA(),cli=bye(),S$=Kc(),lli=Rye(),dli=Mye(),Jve=is(),Ol=Er(),jve=La(),uli=Yc(),mli=wn(),Gve=jye(),pli=ll(),hli=Uve(),fli=S(),gli=hl(),wli=S(),_li=e=>{(0,wli.emitWarningIfUnsupportedVersion)(process.version);let i=(0,gli.resolveDefaultsModeConfig)(e),t=()=>i().then(fli.loadConfigsForDefaultMode),n=(0,hli.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:i,bodyLengthChecker:e?.bodyLengthChecker??uli.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,oli.decorateDefaultCredentialProvider)(ali.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,pli.defaultUserAgent)({serviceId:n.serviceId,clientVersion:rli.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??cli.eventStreamSerdeProvider,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??Gve.getAwsChunkedEncodingStream,maxAttempts:e?.maxAttempts??(0,Ol.loadConfig)(Jve.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:e?.md5??S$.Hash.bind(null,"md5"),region:e?.region??(0,Ol.loadConfig)(wT.NODE_REGION_CONFIG_OPTIONS,wT.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new jve.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Ol.loadConfig)({...Jve.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||mli.DEFAULT_RETRY_MODE}),sdkStreamMixin:e?.sdkStreamMixin??Gve.sdkStreamMixin,sha1:e?.sha1??S$.Hash.bind(null,"sha1"),sha256:e?.sha256??S$.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??jve.streamCollector,streamHasher:e?.streamHasher??lli.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,Ol.loadConfig)(dli.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:e?.useDualstackEndpoint??(0,Ol.loadConfig)(wT.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Ol.loadConfig)(wT.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};_T.getRuntimeConfig=_li});var Cm=m(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.S3Client=void 0;var yli=Dn(),Sli=iye(),vli=kc(),Eli=C(),Cli=sye(),Hve=Lc(),Ali=qc(),bli=zc(),$ve=is(),Xve=Tl(),Wve=As(),Kve=Vc(),Pli=S(),xli=rye(),Tli=Vve(),v$=class extends Pli.Client{constructor(i){let t=(0,Tli.getRuntimeConfig)(i),n=(0,xli.resolveClientEndpointParameters)(t),s=(0,yli.resolveRegionConfig)(n),r=(0,Eli.resolveEndpointConfig)(s),a=(0,$ve.resolveRetryConfig)(r),o=(0,Hve.resolveHostHeaderConfig)(a),c=(0,Wve.resolveAwsAuthConfig)(o),d=(0,Xve.resolveS3Config)(c),u=(0,Kve.resolveUserAgentConfig)(d),_=(0,Sli.resolveEventStreamSerdeConfig)(u);super(_),this.config=_,this.middlewareStack.use((0,$ve.getRetryPlugin)(this.config)),this.middlewareStack.use((0,vli.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Hve.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ali.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,bli.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Wve.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Xve.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Cli.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,Kve.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yT.S3Client=v$});var vT=m(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.S3=void 0;var Rli=CG(),Ili=PG(),kli=TG(),Lli=IG(),qli=LG(),zli=zG(),Fli=NG(),Nli=MG(),Dli=BG(),Mli=JG(),Oli=GG(),Bli=HG(),Uli=XG(),Jli=KG(),jli=QG(),Gli=e2(),Vli=i2(),Hli=s2(),$li=o2(),Xli=v2(),Wli=C2(),Kli=b2(),Yli=x2(),Qli=R2(),Zli=k2(),edi=q2(),tdi=F2(),idi=D2(),ndi=O2(),sdi=U2(),rdi=j2(),odi=V2(),adi=$2(),cdi=W2(),ldi=Y2(),ddi=Z2(),udi=t3(),mdi=n3(),pdi=r3(),hdi=a3(),fdi=l3(),gdi=u3(),wdi=p3(),_di=f3(),ydi=w3(),Sdi=y3(),vdi=v3(),Edi=C3(),Cdi=b3(),Adi=x3(),bdi=R3(),Pdi=mm(),xdi=pm(),Tdi=q3(),Rdi=F3(),Idi=D3(),kdi=O3(),Ldi=U3(),qdi=j3(),zdi=V3(),Fdi=kP(),Ndi=X3(),Ddi=zP(),Mdi=Y3(),Odi=Z3(),Bdi=tV(),Udi=nV(),Jdi=rV(),jdi=aV(),Gdi=lV(),Vdi=uV(),Hdi=pV(),$di=fV(),Xdi=wV(),Wdi=yV(),Kdi=vV(),Ydi=CV(),Qdi=bV(),Zdi=xV(),eui=RV(),tui=kV(),iui=qV(),nui=FV(),sui=DV(),rui=OV(),oui=UV(),aui=jV(),cui=VV(),lui=$V(),dui=WV(),uui=YV(),mui=ZV(),pui=tH(),hui=Cm(),E$=class extends hui.S3Client{abortMultipartUpload(i,t,n){let s=new Rli.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 Ili.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 kli.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 Lli.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 qli.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 Fli.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 zli.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 Nli.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 Dli.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 Mli.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 Oli.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 Bli.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 Uli.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 Jli.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 jli.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 Gli.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 Vli.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 Hli.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 $li.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 Xli.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 Wli.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 Kli.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 Yli.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 Qli.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 Zli.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 edi.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 tdi.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 idi.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 ndi.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 sdi.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 rdi.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 odi.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 adi.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 cdi.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 ldi.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 ddi.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 udi.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 mdi.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 pdi.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 hdi.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 fdi.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 gdi.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 ydi.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 wdi.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 _di.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 Sdi.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 vdi.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 Edi.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 Cdi.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 Adi.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 bdi.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 Pdi.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 xdi.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 Tdi.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 Rdi.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 Idi.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 kdi.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 Ldi.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 qdi.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 zdi.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 Fdi.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 Ndi.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 Ddi.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 Mdi.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 Odi.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 Bdi.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 Udi.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 Jdi.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 jdi.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 Gdi.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 Vdi.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 Hdi.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 $di.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 Xdi.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 Wdi.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 Kdi.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 Ydi.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 Qdi.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 Zdi.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 eui.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 tui.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 nui.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 iui.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 sui.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 rui.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 oui.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 aui.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 cui.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 lui.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 dui.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 uui.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 mui.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 pui.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)}};ST.S3=E$});var Yve=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var we=(Se(),le(ye));we.__exportStar(CG(),de);we.__exportStar(PG(),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(v2(),de);we.__exportStar(b2(),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(mm(),de);we.__exportStar(pm(),de);we.__exportStar(q3(),de);we.__exportStar(F3(),de);we.__exportStar(D3(),de);we.__exportStar(O3(),de);we.__exportStar(U3(),de);we.__exportStar(j3(),de);we.__exportStar(X3(),de);we.__exportStar(V3(),de);we.__exportStar(kP(),de);we.__exportStar(zP(),de);we.__exportStar(Y3(),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)});var Zve=m(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});var Qve=(Se(),le(ye));Qve.__exportStar(ve(),ET);Qve.__exportStar(ls(),ET)});var tEe=m(eEe=>{"use strict";Object.defineProperty(eEe,"__esModule",{value:!0})});var iEe=m(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.paginateListObjectsV2=void 0;var fui=kP(),gui=vT(),wui=Cm(),_ui=async(e,i,...t)=>await e.send(new fui.ListObjectsV2Command(i),...t),yui=async(e,i,...t)=>await e.listObjectsV2(i,...t);async function*Sui(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 gui.S3)r=await yui(e.client,i,...t);else if(e.client instanceof wui.S3Client)r=await _ui(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}CT.paginateListObjectsV2=Sui});var nEe=m(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.paginateListParts=void 0;var vui=zP(),Eui=vT(),Cui=Cm(),Aui=async(e,i,...t)=>await e.send(new vui.ListPartsCommand(i),...t),bui=async(e,i,...t)=>await e.listParts(i,...t);async function*Pui(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 Eui.S3)r=await bui(e.client,i,...t);else if(e.client instanceof Cui.S3Client)r=await Aui(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}AT.paginateListParts=Pui});var sEe=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var C$=(Se(),le(ye));C$.__exportStar(tEe(),Am);C$.__exportStar(iEe(),Am);C$.__exportStar(nEe(),Am)});var A$=m(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.sleep=void 0;var xui=e=>new Promise(i=>setTimeout(i,e*1e3));bT.sleep=xui});var xT=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 PT;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(PT=Br.WaiterState||(Br.WaiterState={}));var Tui=e=>{if(e.state===PT.ABORTED){let i=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw i.name="AbortError",i}else if(e.state===PT.TIMEOUT){let i=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw i.name="TimeoutError",i}else if(e.state!==PT.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Br.checkExceptions=Tui});var rEe=m(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.runPolling=void 0;var Rui=A$(),TT=xT(),Iui=(e,i,t,n)=>{if(n>t)return i;let s=e*2**(n-1);return kui(e,s)},kui=(e,i)=>e+Math.random()*(i-e),Lui=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!==TT.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:TT.WaiterState.ABORTED};let k=Iui(e,i,b,_);if(Date.now()+k*1e3>y)return{state:TT.WaiterState.TIMEOUT};await(0,Rui.sleep)(k);let{state:j,reason:$}=await o(s,a);if(j!==TT.WaiterState.RETRY)return{state:j,reason:$};_+=1}};RT.runPolling=Lui});var oEe=m(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.validateWaiterOptions=void 0;var qui=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`)};IT.validateWaiterOptions=qui});var cEe=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});var aEe=(Se(),le(ye));aEe.__exportStar(A$(),kT);aEe.__exportStar(oEe(),kT)});var uEe=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.createWaiter=void 0;var zui=rEe(),Fui=cEe(),dEe=xT(),lEe=async e=>new Promise(i=>{e.onabort=()=>i({state:dEe.WaiterState.ABORTED})}),Nui=async(e,i,t)=>{let n={...dEe.waiterServiceDefaults,...e};(0,Fui.validateWaiterOptions)(n);let s=[(0,zui.runPolling)(n,i,t)];return e.abortController&&s.push(lEe(e.abortController.signal)),e.abortSignal&&s.push(lEe(e.abortSignal)),Promise.race(s)};LT.createWaiter=Nui});var bm=m(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});var mEe=(Se(),le(ye));mEe.__exportStar(uEe(),qT);mEe.__exportStar(xT(),qT)});var hEe=m(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.waitUntilBucketExists=Ul.waitForBucketExists=void 0;var Bl=bm(),Dui=mm(),pEe=async(e,i)=>{let t;try{return t=await e.send(new Dui.HeadBucketCommand(i)),{state:Bl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Bl.WaiterState.RETRY,reason:t}}return{state:Bl.WaiterState.RETRY,reason:t}},Mui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Bl.createWaiter)({...t,...e},i,pEe)};Ul.waitForBucketExists=Mui;var Oui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Bl.createWaiter)({...t,...e},i,pEe);return(0,Bl.checkExceptions)(n)};Ul.waitUntilBucketExists=Oui});var gEe=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.waitUntilBucketNotExists=Jl.waitForBucketNotExists=void 0;var Pm=bm(),Bui=mm(),fEe=async(e,i)=>{let t;try{t=await e.send(new Bui.HeadBucketCommand(i))}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:Pm.WaiterState.SUCCESS,reason:t}}return{state:Pm.WaiterState.RETRY,reason:t}},Uui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,Pm.createWaiter)({...t,...e},i,fEe)};Jl.waitForBucketNotExists=Uui;var Jui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,Pm.createWaiter)({...t,...e},i,fEe);return(0,Pm.checkExceptions)(n)};Jl.waitUntilBucketNotExists=Jui});var _Ee=m(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.waitUntilObjectExists=Gl.waitForObjectExists=void 0;var jl=bm(),jui=pm(),wEe=async(e,i)=>{let t;try{return t=await e.send(new jui.HeadObjectCommand(i)),{state:jl.WaiterState.SUCCESS,reason:t}}catch(n){if(t=n,n.name&&n.name=="NotFound")return{state:jl.WaiterState.RETRY,reason:t}}return{state:jl.WaiterState.RETRY,reason:t}},Gui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,jl.createWaiter)({...t,...e},i,wEe)};Gl.waitForObjectExists=Gui;var Vui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,jl.createWaiter)({...t,...e},i,wEe);return(0,jl.checkExceptions)(n)};Gl.waitUntilObjectExists=Vui});var SEe=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.waitUntilObjectNotExists=Vl.waitForObjectNotExists=void 0;var xm=bm(),Hui=pm(),yEe=async(e,i)=>{let t;try{t=await e.send(new Hui.HeadObjectCommand(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}},$ui=async(e,i)=>{let t={minDelay:5,maxDelay:120};return(0,xm.createWaiter)({...t,...e},i,yEe)};Vl.waitForObjectNotExists=$ui;var Xui=async(e,i)=>{let t={minDelay:5,maxDelay:120},n=await(0,xm.createWaiter)({...t,...e},i,yEe);return(0,xm.checkExceptions)(n)};Vl.waitUntilObjectNotExists=Xui});var vEe=m(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var zT=(Se(),le(ye));zT.__exportStar(hEe(),Hl);zT.__exportStar(gEe(),Hl);zT.__exportStar(_Ee(),Hl);zT.__exportStar(SEe(),Hl)});var EEe=m(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.S3ServiceException=void 0;var $l=(Se(),le(ye));$l.__exportStar(vT(),nr);$l.__exportStar(Cm(),nr);$l.__exportStar(Yve(),nr);$l.__exportStar(Zve(),nr);$l.__exportStar(sEe(),nr);$l.__exportStar(vEe(),nr);var Wui=nm();Object.defineProperty(nr,"S3ServiceException",{enumerable:!0,get:function(){return Wui.S3ServiceException}})});var AEe=UT($K(),1),NT=UT(Mhe(),1),Xl=UT(EEe(),1);import Kui from"crypto";var CEe=new Xl.S3Client({}),Yui=new NT.IoTClient({}),Qui=await Yui.send(new NT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),Zui=Qui.endpointAddress,FT=Kui.randomBytes(16).toString("hex"),bEe=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,emi={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},PEe=Object.fromEntries(Object.entries(process.env).filter(([e,i])=>emi[e]!==!0)),Tm=new AEe.default.device({protocol:"wss",debug:!0,host:Zui,region:PEe.AWS_REGION});Tm.on("error",console.log);Tm.on("connect",console.log);Tm.subscribe(`${bEe}/events/${FT}`,{qos:1});var b$=new Map,P$;Tm.on("message",async(e,i)=>{let t=JSON.parse(i.toString());console.log("Got fragment",t.id,t.index);let n=b$.get(t.id);if(n||(n=new Map,b$.set(t.id,n)),n.set(t.index,t),n.size===t.count){console.log("Got all fragments",t.id),b$.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 CEe.send(new Xl.GetObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}))).Body.transformToString();P$(JSON.parse(o)),await CEe.send(new Xl.DeleteObjectCommand({Key:r.properties.key,Bucket:r.properties.bucket}));return}P$(r)}});async function q1i(e,i){let t=await new Promise(n=>{let s=setTimeout(()=>{n({type:"function.timeout"})},5e3);P$=r=>{r.type==="function.ack"&&r.properties.workerID===FT&&clearTimeout(s),["function.success","function.error"].includes(r.type)&&r.properties.workerID===FT&&(clearTimeout(s),n(r))};for(let r of tmi({type:"function.invoked",properties:{workerID:FT,requestID:i.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:i.getRemainingTimeInMillis(),event:e,context:i,env:PEe}}))Tm.publish(`${bEe}/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 tmi(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{q1i as handler};
|
|
80
80
|
/*! Bundled license information:
|
|
81
81
|
|