@stacksjs/dns 0.64.3 → 0.64.4
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/dist/index.js +11 -11
- package/dist/index.js.map +3 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var vk=Object.create;var{getPrototypeOf:jk,defineProperty:RF,getOwnPropertyNames:dk}=Object;var Ok=Object.prototype.hasOwnProperty;var u=(r,f,s)=>{s=r!=null?vk(jk(r)):{};const w=f||!r||!r.__esModule?RF(s,"default",{value:r,enumerable:!0}):s;for(let h of dk(r))if(!Ok.call(w,h))RF(w,h,{get:()=>r[h],enumerable:!0});return w};var v=(r,f)=>()=>(f||r((f={exports:{}}).exports,f),f.exports);var Sf=(r,f)=>{for(var s in f)RF(r,s,{get:f[s],enumerable:!0,configurable:!0,set:(w)=>f[s]=()=>w})};var G=(r,f)=>()=>(r&&(f=r(r=0)),f);var Pf=(r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},Xf=(r)=>{return{httpHandler:r.httpHandler()}};var _C=()=>{};var Is=v((Vu,rL)=>{var{defineProperty:$E,getOwnPropertyDescriptor:ck,getOwnPropertyNames:bk}=Object,gk=Object.prototype.hasOwnProperty,EE=(r,f)=>$E(r,"name",{value:f,configurable:!0}),_k=(r,f)=>{for(var s in f)$E(r,s,{get:f[s],enumerable:!0})},xk=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of bk(f))if(!gk.call(r,h)&&h!==s)$E(r,h,{get:()=>f[h],enumerable:!(w=ck(f,h))||w.enumerable})}return r},ek=(r)=>xk($E({},"__esModule",{value:!0}),r),xC={};_k(xC,{AlgorithmId:()=>aC,EndpointURLScheme:()=>oC,FieldPosition:()=>pC,HttpApiKeyAuthLocation:()=>nC,HttpAuthLocation:()=>eC,IniSectionType:()=>uC,RequestHandlerProtocol:()=>tC,SMITHY_CONTEXT_KEY:()=>uk,getDefaultClientConfiguration:()=>ak,resolveDefaultRuntimeConfig:()=>pk});rL.exports=ek(xC);var eC=((r)=>{return r.HEADER="header",r.QUERY="query",r})(eC||{}),nC=((r)=>{return r.HEADER="header",r.QUERY="query",r})(nC||{}),oC=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(oC||{}),aC=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(aC||{}),nk=EE((r)=>{const f=[];if(r.sha256!==void 0)f.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)f.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),ok=EE((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),ak=EE((r)=>{return{...nk(r)}},"getDefaultClientConfiguration"),pk=EE((r)=>{return{...ok(r)}},"resolveDefaultRuntimeConfig"),pC=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})(pC||{}),uk="__smithy_context",uC=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(uC||{}),tC=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(tC||{})});var tk;var sL=G(()=>{tk=u(Is(),1)});var fL=()=>{};function rD(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}class Qr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){const f=new Qr({...r,headers:{...r.headers}});if(f.query)f.query=rD(f.query);return f}static isInstance(r){if(!r)return!1;const f=r;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return Qr.clone(this)}}class y0{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;const f=r;return typeof f.statusCode==="number"&&typeof f.headers==="object"}}var wL=()=>{};var ir=G(()=>{_C();sL();fL();wL()});function Yf(r){return r}var sD=(r)=>(f)=>async(s)=>{if(!Qr.isInstance(s.request))return f(s);const{request:w}=s,{handlerProtocol:h=""}=r.requestHandler.metadata||{};if(h.indexOf("h2")>=0&&!w.headers[":authority"])delete w.headers.host,w.headers[":authority"]=w.hostname+(w.port?":"+w.port:"");else if(!w.headers.host){let $=w.hostname;if(w.port!=null)$+=`:${w.port}`;w.headers.host=$}return f(s)},fD,Kf=(r)=>({applyToStack:(f)=>{f.add(sD(r),fD)}});var aw=G(()=>{ir();fD={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var wD=()=>(r,f)=>async(s)=>{try{const w=await r(s),{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,C=F??f.inputFilterSensitiveLog,L=U??f.outputFilterSensitiveLog,{$metadata:z,...S}=w.output;return E?.info?.({clientName:h,commandName:$,input:C(s.input),output:L(S),metadata:z}),w}catch(w){const{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F}=I,U=F??f.inputFilterSensitiveLog;throw E?.error?.({clientName:h,commandName:$,input:U(s.input),error:w,metadata:w.$metadata}),w}},hD,Zf=(r)=>({applyToStack:(f)=>{f.add(wD(),hD)}});var hL=G(()=>{hD={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var pw=G(()=>{hL()});var $L="X-Amzn-Trace-Id",$D="AWS_LAMBDA_FUNCTION_NAME",ED="_X_AMZN_TRACE_ID",ID=(r)=>(f)=>async(s)=>{const{request:w}=s;if(!Qr.isInstance(w)||r.runtime!=="node"||w.headers.hasOwnProperty($L))return f(s);const h=process.env[$D],$=process.env[ED],E=(I)=>typeof I==="string"&&I.length>0;if(E(h)&&E($))w.headers[$L]=$;return f({...s,request:w})},FD,lf=(r)=>({applyToStack:(f)=>{f.add(ID(r),FD)}});var uw=G(()=>{ir();FD={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});function Jf(r){return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent}}var UD,I1=(r)=>UD.test(r)||r.startsWith("[")&&r.endsWith("]");var WF=G(()=>{UD=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$")});var TD,F1=(r,f=!1)=>{if(!f)return TD.test(r);const s=r.split(".");for(let w of s)if(!F1(w))return!1;return!0};var zF=G(()=>{TD=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var ur;var IE=G(()=>{ur={}});var T0="endpoints";function Zs(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Zs(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Zs).join(", ")})`;return JSON.stringify(r,null,2)}var U1=()=>{};var Wr;var EL=G(()=>{Wr=class Wr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var IL=()=>{};var FL=()=>{};var UL=()=>{};var TL=()=>{};var GL=()=>{};var CL=()=>{};var ls=G(()=>{EL();IL();FL();UL();TL();GL();CL()});var LL=(r,f)=>r===f;var AL=(r)=>{const f=r.split("."),s=[];for(let w of f){const h=w.indexOf("[");if(h!==-1){if(w.indexOf("]")!==w.length-1)throw new Wr(`Path: '${r}' does not end with ']'`);const $=w.slice(h+1,-1);if(Number.isNaN(parseInt($)))throw new Wr(`Invalid array index: '${$}' in path: '${r}'`);if(h!==0)s.push(w.slice(0,h));s.push($)}else s.push(w)}return s};var RL=G(()=>{ls()});var FE=(r,f)=>AL(f).reduce((s,w)=>{if(typeof s!=="object")throw new Wr(`Index '${w}' in '${f}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(s))return s[parseInt(w)];return s[w]},r);var WL=G(()=>{ls();RL()});var zL=(r)=>r!=null;var SL=(r)=>!r;var UE,SF,PL=(r)=>{const f=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){const{hostname:z,port:S,protocol:Z="",path:D="",query:B={}}=r,Q=new URL(`${Z}//${z}${S?`:${S}`:""}${D}`);return Q.search=Object.entries(B).map(([i,x])=>`${i}=${x}`).join("&"),Q}return new URL(r)}catch(z){return null}})();if(!f)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;const s=f.href,{host:w,hostname:h,pathname:$,protocol:E,search:I}=f;if(I)return null;const F=E.slice(0,-1);if(!Object.values(UE.EndpointURLScheme).includes(F))return null;const U=I1(h),C=s.includes(`${w}:${SF[F]}`)||typeof r==="string"&&r.includes(`${w}:${SF[F]}`),L=`${w}${C?`:${SF[F]}`:""}`;return{scheme:F,authority:L,path:$,normalizedPath:$.endsWith("/")?$:`${$}/`,isIp:U}};var XL=G(()=>{UE=u(Is(),1);WF();SF={[UE.EndpointURLScheme.HTTP]:80,[UE.EndpointURLScheme.HTTPS]:443}});var YL=(r,f)=>r===f;var KL=(r,f,s,w)=>{if(f>=s||r.length<s)return null;if(!w)return r.substring(f,s);return r.substring(r.length-s,r.length-f)};var ZL=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`);var PF=G(()=>{WL();zF();XL()});var lL;var JL=G(()=>{PF();lL={booleanEquals:LL,getAttr:FE,isSet:zL,isValidHostLabel:F1,not:SL,parseURL:PL,stringEquals:YL,substring:KL,uriEncode:ZL}});var TE=(r,f)=>{const s=[],w={...f.endpointParams,...f.referenceRecord};let h=0;while(h<r.length){const $=r.indexOf("{",h);if($===-1){s.push(r.slice(h));break}s.push(r.slice(h,$));const E=r.indexOf("}",$);if(E===-1){s.push(r.slice($));break}if(r[$+1]==="{"&&r[E+1]==="}")s.push(r.slice($+1,E)),h=E+2;const I=r.substring($+1,E);if(I.includes("#")){const[F,U]=I.split("#");s.push(FE(w[F],U))}else s.push(w[I]);h=E+1}return s.join("")};var XF=G(()=>{PF()});var QL=({ref:r},f)=>{return{...f.endpointParams,...f.referenceRecord}[r]};var m0=(r,f,s)=>{if(typeof r==="string")return TE(r,s);else if(r.fn)return GE(r,s);else if(r.ref)return QL(r,s);throw new Wr(`'${f}': ${String(r)} is not a string, function or reference.`)};var T1=G(()=>{ls();YF();XF()});var GE=({fn:r,argv:f},s)=>{const w=f.map(($)=>["boolean","number"].includes(typeof $)?$:m0($,"arg",s)),h=r.split(".");if(h[0]in ur&&h[1]!=null)return ur[h[0]][h[1]](...w);return lL[r](...w)};var YF=G(()=>{IE();JL();T1()});var ML=({assign:r,...f},s)=>{if(r&&r in s.referenceRecord)throw new Wr(`'${r}' is already defined in Reference Record.`);const w=GE(f,s);return s.logger?.debug?.(`${T0} evaluateCondition: ${Zs(f)} = ${Zs(w)}`),{result:w===""?!0:!!w,...r!=null&&{toAssign:{name:r,value:w}}}};var BL=G(()=>{U1();ls();YF()});var tw=(r=[],f)=>{const s={};for(let w of r){const{result:h,toAssign:$}=ML(w,{...f,referenceRecord:{...f.referenceRecord,...s}});if(!h)return{result:h};if($)s[$.name]=$.value,f.logger?.debug?.(`${T0} assign: ${$.name} := ${Zs($.value)}`)}return{result:!0,referenceRecord:s}};var CE=G(()=>{U1();BL()});var HL=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:h.map(($)=>{const E=m0($,"Header value entry",f);if(typeof E!=="string")throw new Wr(`Header '${w}' value '${E}' is not a string`);return E})}),{});var VL=G(()=>{ls();T1()});var KF=(r,f)=>{if(Array.isArray(r))return r.map((s)=>KF(s,f));switch(typeof r){case"string":return TE(r,f);case"object":if(r===null)throw new Wr(`Unexpected endpoint property: ${r}`);return LE(r,f);case"boolean":return r;default:throw new Wr(`Unexpected endpoint property type: ${typeof r}`)}};var kL=G(()=>{ls();XF();ZF()});var LE=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:KF(h,f)}),{});var ZF=G(()=>{kL()});var DL=(r,f)=>{const s=m0(r,"Endpoint URL",f);if(typeof s==="string")try{return new URL(s)}catch(w){throw console.error(`Failed to construct URL with ${s}`,w),w}throw new Wr(`Endpoint URL must be a string, got ${typeof s}`)};var iL=G(()=>{ls();T1()});var yL=(r,f)=>{const{conditions:s,endpoint:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;const E={...f,referenceRecord:{...f.referenceRecord,...$}},{url:I,properties:F,headers:U}=w;return f.logger?.debug?.(`${T0} Resolving endpoint from template: ${Zs(w)}`),{...U!=null&&{headers:HL(U,E)},...F!=null&&{properties:LE(F,E)},url:DL(I,E)}};var mL=G(()=>{U1();CE();VL();ZF();iL()});var NL=(r,f)=>{const{conditions:s,error:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;throw new Wr(m0(w,"Error",{...f,referenceRecord:{...f.referenceRecord,...$}}))};var qL=G(()=>{ls();CE();T1()});var vL=(r,f)=>{const{conditions:s,rules:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;return AE(w,{...f,referenceRecord:{...f.referenceRecord,...$}})};var jL=G(()=>{CE();lF()});var AE=(r,f)=>{for(let s of r)if(s.type==="endpoint"){const w=yL(s,f);if(w)return w}else if(s.type==="error")NL(s,f);else if(s.type==="tree"){const w=vL(s,f);if(w)return w}else throw new Wr(`Unknown endpoint rule: ${s}`);throw new Wr("Rules evaluation failed")};var lF=G(()=>{ls();mL();qL();jL()});var dL=G(()=>{IE();lF()});var ps=(r,f)=>{const{endpointParams:s,logger:w}=f,{parameters:h,rules:$}=r;f.logger?.debug?.(`${T0} Initial EndpointParams: ${Zs(s)}`);const E=Object.entries(h).filter(([,U])=>U.default!=null).map(([U,C])=>[U,C.default]);if(E.length>0)for(let[U,C]of E)s[U]=s[U]??C;const I=Object.entries(h).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(s[U]==null)throw new Wr(`Missing required parameter: '${U}'`);const F=AE($,{endpointParams:s,logger:w,referenceRecord:{}});if(f.endpointParams?.Endpoint)try{const U=new URL(f.endpointParams.Endpoint),{protocol:C,port:L}=U;F.url.protocol=C,F.url.port=L}catch(U){}return f.logger?.debug?.(`${T0} Resolved endpoint: ${Zs(F)}`),F};var OL=G(()=>{U1();ls();dL()});var us=G(()=>{WF();zF();IE();OL();ls()});var JF=G(()=>{us()});var QF=(r,f=!1)=>{if(f){for(let s of r.split("."))if(!QF(s))return!1;return!0}if(!F1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if(I1(r))return!1;return!0};var cL=G(()=>{us();JF()});var bL=(r)=>{const f=r.split(":");if(f.length<6)return null;const[s,w,h,$,E,...I]=f;if(s!=="arn"||w===""||h===""||I.join(":")==="")return null;const F=I.map((U)=>U.split("/")).flat();return{partition:w,service:h,region:$,accountId:E,resourceId:F}};var _L;var gL=G(()=>{_L={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var CD,LD="",xL=(r)=>{const{partitions:f}=CD;for(let w of f){const{regions:h,outputs:$}=w;for(let[E,I]of Object.entries(h))if(E===r)return{...$,...I}}for(let w of f){const{regionRegex:h,outputs:$}=w;if(new RegExp(h).test(r))return{...$}}const s=f.find((w)=>w.id==="aws");if(!s)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...s.outputs}},eL=()=>LD;var MF=G(()=>{gL();CD=_L});var ts;var nL=G(()=>{us();cL();MF();ts={isVirtualHostableS3Bucket:QF,parseArn:bL,partition:xL};ur.aws=ts});var oL=G(()=>{us()});var aL=G(()=>{us()});var pL=()=>{};var uL=()=>{};var tL=()=>{};var r8=()=>{};var s8=()=>{};var f8=G(()=>{aL();pL();uL();tL();r8();s8()});var Ww=G(()=>{nL();MF();JF();oL();f8()});var BF="user-agent",RE="x-amz-user-agent",HF=" ",WE="/",w8,h8,VF="-";var $8=G(()=>{w8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,h8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});var AD=(r)=>(f,s)=>async(w)=>{const{request:h}=w;if(!Qr.isInstance(h))return f(w);const{headers:$}=h,E=s?.userAgent?.map(kF)||[],I=(await r.defaultUserAgentProvider()).map(kF),F=r?.customUserAgent?.map(kF)||[],U=eL(),C=(U?[U]:[]).concat([...I,...E,...F]).join(HF),L=[...I.filter((z)=>z.startsWith("aws-sdk-")),...F].join(HF);if(r.runtime!=="browser"){if(L)$[RE]=$[RE]?`${$[BF]} ${L}`:L;$[BF]=C}else $[RE]=C;return f({...w,request:h})},kF=(r)=>{const f=r[0].split(WE).map((E)=>E.replace(w8,VF)).join(WE),s=r[1]?.replace(h8,VF),w=f.indexOf(WE),h=f.substring(0,w);let $=f.substring(w+1);if(h==="api")$=$.toLowerCase();return[h,$,s].filter((E)=>E&&E.length>0).reduce((E,I,F)=>{switch(F){case 0:return I;case 1:return`${E}/${I}`;default:return`${E}#${I}`}},"")},RD,Qf=(r)=>({applyToStack:(f)=>{f.add(AD(r),RD)}});var E8=G(()=>{Ww();ir();$8();RD={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var rh=G(()=>{E8()});var sh=(r,f,s)=>{if(!(f in r))return;if(r[f]==="true")return!0;if(r[f]==="false")return!1;throw new Error(`Cannot load ${s} "${f}". Expected "true" or "false", got ${r[f]}.`)};var N0;var I8=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(N0||(N0={}))});var DF=G(()=>{I8()});var WD="AWS_USE_DUALSTACK_ENDPOINT",zD="use_dualstack_endpoint",Mf;var F8=G(()=>{DF();Mf={environmentVariableSelector:(r)=>sh(r,WD,N0.ENV),configFileSelector:(r)=>sh(r,zD,N0.CONFIG),default:!1}});var SD="AWS_USE_FIPS_ENDPOINT",PD="use_fips_endpoint",Bf;var U8=G(()=>{DF();Bf={environmentVariableSelector:(r)=>sh(r,SD,N0.ENV),configFileSelector:(r)=>sh(r,PD,N0.CONFIG),default:!1}});var iF,Js=(r)=>r[iF.SMITHY_CONTEXT_KEY]||(r[iF.SMITHY_CONTEXT_KEY]={});var T8=G(()=>{iF=u(Is(),1)});var yr=(r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f};var rf=G(()=>{T8()});var G8=G(()=>{rf()});var C8=G(()=>{rf()});var L8=G(()=>{F8();U8();G8();C8()});var Qs,Hf;var A8=G(()=>{Qs={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},Hf={preferredFile:"credentials"}});var zE=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var yF=(r)=>zE(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var R8=()=>{};var Vf=(r)=>{const{region:f,useFipsEndpoint:s}=r;if(!f)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof f==="string")return yF(f);const w=await f();return yF(w)},useFipsEndpoint:async()=>{const w=typeof f==="string"?f:await f();if(zE(w))return!0;return typeof s!=="function"?Promise.resolve(!!s):s()}}};var W8=G(()=>{R8()});var z8=G(()=>{A8();W8()});var S8=()=>{};var P8=()=>{};var X8=()=>{};var Y8=G(()=>{S8();P8();X8()});var Ms=G(()=>{L8();z8();Y8()});var G1=v((jfr,J8)=>{var{defineProperty:SE,getOwnPropertyDescriptor:XD,getOwnPropertyNames:YD}=Object,KD=Object.prototype.hasOwnProperty,Z8=(r,f)=>SE(r,"name",{value:f,configurable:!0}),ZD=(r,f)=>{for(var s in f)SE(r,s,{get:f[s],enumerable:!0})},lD=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of YD(f))if(!KD.call(r,h)&&h!==s)SE(r,h,{get:()=>f[h],enumerable:!(w=XD(f,h))||w.enumerable})}return r},JD=(r)=>lD(SE({},"__esModule",{value:!0}),r),l8={};ZD(l8,{getSmithyContext:()=>QD,normalizeProvider:()=>MD});J8.exports=JD(l8);var K8=Is(),QD=Z8((r)=>r[K8.SMITHY_CONTEXT_KEY]||(r[K8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),MD=Z8((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider")});var mF=v((dfr,V8)=>{var{defineProperty:PE,getOwnPropertyDescriptor:BD,getOwnPropertyNames:HD}=Object,VD=Object.prototype.hasOwnProperty,zw=(r,f)=>PE(r,"name",{value:f,configurable:!0}),kD=(r,f)=>{for(var s in f)PE(r,s,{get:f[s],enumerable:!0})},DD=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of HD(f))if(!VD.call(r,h)&&h!==s)PE(r,h,{get:()=>f[h],enumerable:!(w=BD(f,h))||w.enumerable})}return r},iD=(r)=>DD(PE({},"__esModule",{value:!0}),r),Q8={};kD(Q8,{CredentialsProviderError:()=>yD,ProviderError:()=>XE,TokenProviderError:()=>mD,chain:()=>ND,fromStatic:()=>qD,memoize:()=>vD});V8.exports=iD(Q8);var M8=class r extends Error{constructor(f,s=!0){var w;let h,$=!0;if(typeof s==="boolean")h=void 0,$=s;else if(s!=null&&typeof s==="object")h=s.logger,$=s.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,r.prototype),(w=h==null?void 0:h.debug)==null||w.call(h,`@smithy/property-provider ${$?"->":"(!)"} ${f}`)}static from(f,s=!0){return Object.assign(new this(f.message,s),f)}};zw(M8,"ProviderError");var XE=M8,B8=class r extends XE{constructor(f,s=!0){super(f,s);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};zw(B8,"CredentialsProviderError");var yD=B8,H8=class r extends XE{constructor(f,s=!0){super(f,s);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};zw(H8,"TokenProviderError");var mD=H8,ND=zw((...r)=>async()=>{if(r.length===0)throw new XE("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w==null?void 0:w.tryNextLink)continue;throw w}throw f},"chain"),qD=zw((r)=>()=>Promise.resolve(r),"fromStatic"),vD=zw((r,f,s)=>{let w,h,$,E=!1;const I=zw(async()=>{if(!h)h=r();try{w=await h,$=!0,E=!1}finally{h=void 0}return w},"coalesceProvider");if(f===void 0)return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();return w};return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();if(E)return w;if(s&&!s(w))return E=!0,w;if(f(w))return await I(),w;return w}},"memoize")});var fh=v((k8)=>{Object.defineProperty(k8,"__esModule",{value:!0});k8.getHomeDir=void 0;var jD=import.meta.require("os"),dD=import.meta.require("path"),NF={},OD=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},cD=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${dD.sep}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=OD();if(!NF[h])NF[h]=jD.homedir();return NF[h]};k8.getHomeDir=cD});var qF=v((i8)=>{Object.defineProperty(i8,"__esModule",{value:!0});i8.getSSOTokenFilepath=void 0;var bD=import.meta.require("crypto"),gD=import.meta.require("path"),_D=fh(),xD=(r)=>{const s=bD.createHash("sha1").update(r).digest("hex");return gD.join(_D.getHomeDir(),".aws","sso","cache",`${s}.json`)};i8.getSSOTokenFilepath=xD});var q8=v((m8)=>{Object.defineProperty(m8,"__esModule",{value:!0});m8.getSSOTokenFromFile=void 0;var eD=import.meta.require("fs"),nD=qF(),{readFile:oD}=eD.promises,aD=async(r)=>{const f=nD.getSSOTokenFilepath(r),s=await oD(f,"utf8");return JSON.parse(s)};m8.getSSOTokenFromFile=aD});var jF=v((v8)=>{Object.defineProperty(v8,"__esModule",{value:!0});v8.slurpFile=void 0;var pD=import.meta.require("fs"),{readFile:uD}=pD.promises,vF={},tD=(r,f)=>{if(!vF[r]||(f===null||f===void 0?void 0:f.ignoreCache))vF[r]=uD(r,"utf8");return vF[r]};v8.slurpFile=tD});var bF=v((_fr,L1)=>{var{defineProperty:ZE,getOwnPropertyDescriptor:ri,getOwnPropertyNames:si}=Object,fi=Object.prototype.hasOwnProperty,Bs=(r,f)=>ZE(r,"name",{value:f,configurable:!0}),wi=(r,f)=>{for(var s in f)ZE(r,s,{get:f[s],enumerable:!0})},dF=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of si(f))if(!fi.call(r,h)&&h!==s)ZE(r,h,{get:()=>f[h],enumerable:!(w=ri(f,h))||w.enumerable})}return r},cF=(r,f,s)=>(dF(r,f,"default"),s&&dF(s,f,"default")),hi=(r)=>dF(ZE({},"__esModule",{value:!0}),r),C1={};wi(C1,{CONFIG_PREFIX_SEPARATOR:()=>Sw,DEFAULT_PROFILE:()=>b8,ENV_PROFILE:()=>c8,getProfileName:()=>$i,loadSharedConfigFiles:()=>_8,loadSsoSessionData:()=>Si,parseKnownFiles:()=>Xi});L1.exports=hi(C1);cF(C1,fh(),L1.exports);var c8="AWS_PROFILE",b8="default",$i=Bs((r)=>r.profile||process.env[c8]||b8,"getProfileName");cF(C1,qF(),L1.exports);cF(C1,q8(),L1.exports);var YE=Is(),Ei=Bs((r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Sw);if(s===-1)return!1;return Object.values(YE.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Sw),$=s.substring(0,h)===YE.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}}),"getConfigData"),KE=import.meta.require("path"),Ii=fh(),Fi="AWS_CONFIG_FILE",g8=Bs(()=>process.env[Fi]||KE.join(Ii.getHomeDir(),".aws","config"),"getConfigFilepath"),Ui=fh(),Ti="AWS_SHARED_CREDENTIALS_FILE",Gi=Bs(()=>process.env[Ti]||KE.join(Ui.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),Ci=fh(),Li=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Ai=["__proto__","profile __proto__"],OF=Bs((r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=Li.exec(I);if(F){const[,U,,C]=F;if(Object.values(YE.IniSectionType).includes(U))s=[U,C].join(Sw)}else s=I;if(Ai.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Sw):F;f[s][C]=U}}}}return f},"parseIni"),d8=jF(),O8=Bs(()=>({}),"swallowError"),Sw=".",_8=Bs(async(r={})=>{const{filepath:f=Gi(),configFilepath:s=g8()}=r,w=Ci.getHomeDir();let $=f;if(f.startsWith("~/"))$=KE.join(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=KE.join(w,s.slice(2));const I=await Promise.all([d8.slurpFile(E,{ignoreCache:r.ignoreCache}).then(OF).then(Ei).catch(O8),d8.slurpFile($,{ignoreCache:r.ignoreCache}).then(OF).catch(O8)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),Ri=Bs((r)=>Object.entries(r).filter(([f])=>f.startsWith(YE.IniSectionType.SSO_SESSION+Sw)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Sw)+1)]:w}),{}),"getSsoSessionData"),Wi=jF(),zi=Bs(()=>({}),"swallowError"),Si=Bs(async(r={})=>Wi.slurpFile(r.configFilepath??g8()).then(OF).then(Ri).catch(zi),"loadSsoSessionData"),Pi=Bs((...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f},"mergeConfigFiles"),Xi=Bs(async(r)=>{const f=await _8(r);return Pi(f.configFile,f.credentialsFile)},"parseKnownFiles")});var o8=v((xfr,n8)=>{function gF(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var{defineProperty:lE,getOwnPropertyDescriptor:Yi,getOwnPropertyNames:Ki}=Object,Zi=Object.prototype.hasOwnProperty,wh=(r,f)=>lE(r,"name",{value:f,configurable:!0}),li=(r,f)=>{for(var s in f)lE(r,s,{get:f[s],enumerable:!0})},Ji=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ki(f))if(!Zi.call(r,h)&&h!==s)lE(r,h,{get:()=>f[h],enumerable:!(w=Yi(f,h))||w.enumerable})}return r},Qi=(r)=>Ji(lE({},"__esModule",{value:!0}),r),e8={};li(e8,{loadConfig:()=>ki});n8.exports=Qi(e8);var A1=mF();wh(gF,"getSelectorName");var Mi=wh((r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new A1.CredentialsProviderError(s.message||`Not found in ENV: ${gF(r.toString())}`,{logger:f})}},"fromEnv"),x8=bF(),Bi=wh((r,{preferredFile:f="config",...s}={})=>async()=>{const w=x8.getProfileName(s),{configFile:h,credentialsFile:$}=await x8.loadSharedConfigFiles(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new A1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${gF(r.toString())}`,{logger:s.logger})}},"fromSharedConfigFiles"),Hi=wh((r)=>typeof r==="function","isFunction"),Vi=wh((r)=>Hi(r)?async()=>await r():A1.fromStatic(r),"fromStatic"),ki=wh(({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>A1.memoize(A1.chain(Mi(r),Bi(f,w),Vi(s))),"loadConfig")});var sA=v((t8)=>{Object.defineProperty(t8,"__esModule",{value:!0});t8.getEndpointUrlConfig=void 0;var a8=bF(),p8="AWS_ENDPOINT_URL",u8="endpoint_url",Di=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[p8,...s].join("_")];if(w)return w;const h=f[p8];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(a8.CONFIG_PREFIX_SEPARATOR)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),u8].join(a8.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}const w=f[u8];if(w)return w;return},default:void 0});t8.getEndpointUrlConfig=Di});var hA=v((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.getEndpointFromConfig=void 0;var ii=o8(),yi=sA(),mi=async(r)=>ii.loadConfig(yi.getEndpointUrlConfig(r))();fA.getEndpointFromConfig=mi});var FA=v((ofr,IA)=>{function EA(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var{defineProperty:JE,getOwnPropertyDescriptor:Ni,getOwnPropertyNames:qi}=Object,vi=Object.prototype.hasOwnProperty,ji=(r,f)=>JE(r,"name",{value:f,configurable:!0}),di=(r,f)=>{for(var s in f)JE(r,s,{get:f[s],enumerable:!0})},Oi=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of qi(f))if(!vi.call(r,h)&&h!==s)JE(r,h,{get:()=>f[h],enumerable:!(w=Ni(f,h))||w.enumerable})}return r},ci=(r)=>Oi(JE({},"__esModule",{value:!0}),r),$A={};di($A,{parseQueryString:()=>EA});IA.exports=ci($A);ji(EA,"parseQueryString")});var CA=v((afr,GA)=>{var{defineProperty:QE,getOwnPropertyDescriptor:bi,getOwnPropertyNames:gi}=Object,_i=Object.prototype.hasOwnProperty,xi=(r,f)=>QE(r,"name",{value:f,configurable:!0}),ei=(r,f)=>{for(var s in f)QE(r,s,{get:f[s],enumerable:!0})},ni=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of gi(f))if(!_i.call(r,h)&&h!==s)QE(r,h,{get:()=>f[h],enumerable:!(w=bi(f,h))||w.enumerable})}return r},oi=(r)=>ni(QE({},"__esModule",{value:!0}),r),UA={};ei(UA,{parseUrl:()=>TA});GA.exports=oi(UA);var ai=FA(),TA=xi((r)=>{if(typeof r==="string")return TA(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:$}=r;let E;if($)E=ai.parseQueryString($);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:E}},"parseUrl")});var xF=v((pfr,PA)=>{function SA(r,f,s){return{applyToStack:(w)=>{w.add(AA(r,s),WA),w.add(RA(r,f),zA)}}}var{defineProperty:ME,getOwnPropertyDescriptor:pi,getOwnPropertyNames:ui}=Object,ti=Object.prototype.hasOwnProperty,_F=(r,f)=>ME(r,"name",{value:f,configurable:!0}),ry=(r,f)=>{for(var s in f)ME(r,s,{get:f[s],enumerable:!0})},sy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ui(f))if(!ti.call(r,h)&&h!==s)ME(r,h,{get:()=>f[h],enumerable:!(w=pi(f,h))||w.enumerable})}return r},fy=(r)=>sy(ME({},"__esModule",{value:!0}),r),LA={};ry(LA,{deserializerMiddleware:()=>AA,deserializerMiddlewareOption:()=>WA,getSerdePlugin:()=>SA,serializerMiddleware:()=>RA,serializerMiddlewareOption:()=>zA});PA.exports=fy(LA);var AA=_F((r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}},"deserializerMiddleware"),RA=_F((r,f)=>(s,w)=>async(h)=>{var $;const E=(($=w.endpointV2)==null?void 0:$.url)&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const I=await f(h.input,{...r,endpoint:E});return s({...h,request:I})},"serializerMiddleware"),WA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},zA={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};_F(SA,"getSerdePlugin")});var MA=v((ufr,QA)=>{var{defineProperty:HE,getOwnPropertyDescriptor:wy,getOwnPropertyNames:hy}=Object,$y=Object.prototype.hasOwnProperty,sf=(r,f)=>HE(r,"name",{value:f,configurable:!0}),Ey=(r,f)=>{for(var s in f)HE(r,s,{get:f[s],enumerable:!0})},Iy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of hy(f))if(!$y.call(r,h)&&h!==s)HE(r,h,{get:()=>f[h],enumerable:!(w=wy(f,h))||w.enumerable})}return r},Fy=(r)=>Iy(HE({},"__esModule",{value:!0}),r),YA={};Ey(YA,{endpointMiddleware:()=>lA,endpointMiddlewareOptions:()=>JA,getEndpointFromInstructions:()=>KA,getEndpointPlugin:()=>Sy,resolveEndpointConfig:()=>Py,resolveParams:()=>ZA,toEndpointV1:()=>eF});QA.exports=Fy(YA);var Uy=sf(async(r)=>{const f=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Ay(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Ly(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),Ty=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Gy=/(\d+\.){3}\d+/,Cy=/\.\./,Ly=sf((r)=>Ty.test(r)&&!Gy.test(r)&&!Cy.test(r),"isDnsCompatibleBucketName"),Ay=sf((r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E},"isArnBucketName"),Ry=sf((r,f,s)=>{const w=sf(async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h},"configProvider");if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.credentialScope)??(h==null?void 0:h.CredentialScope)};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.accountId)??(h==null?void 0:h.AccountId)};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w},"createConfigValueProvider"),Wy=hA(),XA=CA(),eF=sf((r)=>{if(typeof r==="object"){if("url"in r)return XA.parseUrl(r.url);return r}return XA.parseUrl(r)},"toEndpointV1"),KA=sf(async(r,f,s,w)=>{if(!s.endpoint){const E=await Wy.getEndpointFromConfig(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(eF(E))}const h=await ZA(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},"getEndpointFromInstructions"),ZA=sf(async(r,f,s)=>{var w;const h={},$=((w=f==null?void 0:f.getEndpointParameterInstructions)==null?void 0:w.call(f))||{};for(let[E,I]of Object.entries($))switch(I.type){case"staticContextParams":h[E]=I.value;break;case"contextParams":h[E]=r[I.name];break;case"clientContextParams":case"builtInParams":h[E]=await Ry(I.name,E,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys($).length===0)Object.assign(h,s);if(String(s.serviceId).toLowerCase()==="s3")await Uy(h);return h},"resolveParams"),BE=G1(),lA=sf(({config:r,instructions:f})=>{return(s,w)=>async(h)=>{var $,E,I;const F=await KA(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=F,w.authSchemes=($=F.properties)==null?void 0:$.authSchemes;const U=(E=w.authSchemes)==null?void 0:E[0];if(U){w.signing_region=U.signingRegion,w.signing_service=U.signingName;const C=BE.getSmithyContext(w),L=(I=C==null?void 0:C.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return s({...h})}},"endpointMiddleware"),zy=xF(),JA={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:zy.serializerMiddlewareOption.name},Sy=sf((r,f)=>({applyToStack:(s)=>{s.addRelativeTo(lA({config:r,instructions:f}),JA)}}),"getEndpointPlugin"),Py=sf((r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>eF(await BE.normalizeProvider(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:BE.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:BE.normalizeProvider(r.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var G0=v((tfr,NA)=>{function iA(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}function mA(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}var{defineProperty:VE,getOwnPropertyDescriptor:Xy,getOwnPropertyNames:Yy}=Object,Ky=Object.prototype.hasOwnProperty,q0=(r,f)=>VE(r,"name",{value:f,configurable:!0}),Zy=(r,f)=>{for(var s in f)VE(r,s,{get:f[s],enumerable:!0})},ly=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Yy(f))if(!Ky.call(r,h)&&h!==s)VE(r,h,{get:()=>f[h],enumerable:!(w=Xy(f,h))||w.enumerable})}return r},Jy=(r)=>ly(VE({},"__esModule",{value:!0}),r),BA={};Zy(BA,{Field:()=>By,Fields:()=>Hy,HttpRequest:()=>Vy,HttpResponse:()=>ky,IHttpRequest:()=>HA.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Qy,isValidHostname:()=>mA,resolveHttpHandlerRuntimeConfig:()=>My});NA.exports=Jy(BA);var Qy=q0((r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),My=q0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),HA=Is(),VA=class r{constructor({name:f,kind:s=HA.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=s,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((s)=>s!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}};q0(VA,"Field");var By=VA,kA=class r{constructor({fields:f=[],encoding:s="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=s}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((s)=>s.kind===f)}};q0(kA,"Fields");var Hy=kA,DA=class r{constructor(f){this.method=f.method||"GET",this.hostname=f.hostname||"localhost",this.port=f.port,this.query=f.query||{},this.headers=f.headers||{},this.body=f.body,this.protocol=f.protocol?f.protocol.slice(-1)!==":"?`${f.protocol}:`:f.protocol:"https:",this.path=f.path?f.path.charAt(0)!=="/"?`/${f.path}`:f.path:"/",this.username=f.username,this.password=f.password,this.fragment=f.fragment}static clone(f){const s=new r({...f,headers:{...f.headers}});if(s.query)s.query=iA(s.query);return s}static isInstance(f){if(!f)return!1;const s=f;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return r.clone(this)}};q0(DA,"HttpRequest");var Vy=DA;q0(iA,"cloneQuery");var yA=class r{constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;const s=f;return typeof s.statusCode==="number"&&typeof s.headers==="object"}};q0(yA,"HttpResponse");var ky=yA;q0(mA,"isValidHostname")});var nF=v((qA)=>{function iy(r){return r&&r.__esModule?r:{default:r}}function yy(){if(kE>DE.length-16)Dy.default.randomFillSync(DE),kE=0;return DE.slice(kE,kE+=16)}Object.defineProperty(qA,"__esModule",{value:!0});qA.default=yy;var Dy=iy(import.meta.require("crypto")),DE=new Uint8Array(256),kE=DE.length});var dA=v((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.default=void 0;var Ny=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;vA.default=Ny});var R1=v((OA)=>{function vy(r){return r&&r.__esModule?r:{default:r}}function jy(r){return typeof r==="string"&&qy.default.test(r)}Object.defineProperty(OA,"__esModule",{value:!0});OA.default=void 0;var qy=vy(dA()),dy=jy;OA.default=dy});var W1=v((gA)=>{function cy(r){return r&&r.__esModule?r:{default:r}}function bA(r,f=0){return dr[r[f+0]]+dr[r[f+1]]+dr[r[f+2]]+dr[r[f+3]]+"-"+dr[r[f+4]]+dr[r[f+5]]+"-"+dr[r[f+6]]+dr[r[f+7]]+"-"+dr[r[f+8]]+dr[r[f+9]]+"-"+dr[r[f+10]]+dr[r[f+11]]+dr[r[f+12]]+dr[r[f+13]]+dr[r[f+14]]+dr[r[f+15]]}function by(r,f=0){const s=bA(r,f);if(!Oy.default(s))throw TypeError("Stringified UUID is invalid");return s}Object.defineProperty(gA,"__esModule",{value:!0});gA.default=void 0;gA.unsafeStringify=bA;var Oy=cy(R1()),dr=[];for(let r=0;r<256;++r)dr.push((r+256).toString(16).slice(1));var gy=by;gA.default=gy});var oA=v((eA)=>{function ny(r){return r&&r.__esModule?r:{default:r}}function oy(r,f,s){let w=f&&s||0;const h=f||new Array(16);r=r||{};let $=r.node||xA,E=r.clockseq!==void 0?r.clockseq:oF;if($==null||E==null){const z=r.random||(r.rng||xy.default)();if($==null)$=xA=[z[0]|1,z[1],z[2],z[3],z[4],z[5]];if(E==null)E=oF=(z[6]<<8|z[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:pF+1;const U=I-aF+(F-pF)/1e4;if(U<0&&r.clockseq===void 0)E=E+1&16383;if((U<0||I>aF)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");aF=I,pF=F,oF=E,I+=12219292800000;const C=((I&268435455)*1e4+F)%4294967296;h[w++]=C>>>24&255,h[w++]=C>>>16&255,h[w++]=C>>>8&255,h[w++]=C&255;const L=I/4294967296*1e4&268435455;h[w++]=L>>>8&255,h[w++]=L&255,h[w++]=L>>>24&15|16,h[w++]=L>>>16&255,h[w++]=E>>>8|128,h[w++]=E&255;for(let z=0;z<6;++z)h[w+z]=$[z];return f||ey.unsafeStringify(h)}Object.defineProperty(eA,"__esModule",{value:!0});eA.default=void 0;var xy=ny(nF()),ey=W1(),xA,oF,aF=0,pF=0,ay=oy;eA.default=ay});var uF=v((aA)=>{function uy(r){return r&&r.__esModule?r:{default:r}}function ty(r){if(!py.default(r))throw TypeError("Invalid UUID");let f;const s=new Uint8Array(16);return s[0]=(f=parseInt(r.slice(0,8),16))>>>24,s[1]=f>>>16&255,s[2]=f>>>8&255,s[3]=f&255,s[4]=(f=parseInt(r.slice(9,13),16))>>>8,s[5]=f&255,s[6]=(f=parseInt(r.slice(14,18),16))>>>8,s[7]=f&255,s[8]=(f=parseInt(r.slice(19,23),16))>>>8,s[9]=f&255,s[10]=(f=parseInt(r.slice(24,36),16))/1099511627776&255,s[11]=f/4294967296&255,s[12]=f>>>24&255,s[13]=f>>>16&255,s[14]=f>>>8&255,s[15]=f&255,s}Object.defineProperty(aA,"__esModule",{value:!0});aA.default=void 0;var py=uy(R1()),rm=ty;aA.default=rm});var tF=v((rR)=>{function wm(r){return r&&r.__esModule?r:{default:r}}function hm(r){r=unescape(encodeURIComponent(r));const f=[];for(let s=0;s<r.length;++s)f.push(r.charCodeAt(s));return f}function $m(r,f,s){function w(h,$,E,I){var F;if(typeof h==="string")h=hm(h);if(typeof $==="string")$=fm.default($);if(((F=$)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+h.length);if(U.set($),U.set(h,$.length),U=s(U),U[6]=U[6]&15|f,U[8]=U[8]&63|128,E){I=I||0;for(let C=0;C<16;++C)E[I+C]=U[C];return E}return sm.unsafeStringify(U)}try{w.name=r}catch(h){}return w.DNS=uA,w.URL=tA,w}Object.defineProperty(rR,"__esModule",{value:!0});rR.URL=rR.DNS=void 0;rR.default=$m;var sm=W1(),fm=wm(uF()),uA="6ba7b810-9dad-11d1-80b4-00c04fd430c8";rR.DNS=uA;var tA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";rR.URL=tA});var hR=v((fR)=>{function Um(r){return r&&r.__esModule?r:{default:r}}function Tm(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Fm.default.createHash("md5").update(r).digest()}Object.defineProperty(fR,"__esModule",{value:!0});fR.default=void 0;var Fm=Um(import.meta.require("crypto")),Gm=Tm;fR.default=Gm});var FR=v((ER)=>{function $R(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(ER,"__esModule",{value:!0});ER.default=void 0;var Cm=$R(tF()),Lm=$R(hR()),Am=Cm.default("v3",48,Lm.default),Rm=Am;ER.default=Rm});var GR=v((UR)=>{function zm(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(UR,"__esModule",{value:!0});UR.default=void 0;var Wm=zm(import.meta.require("crypto")),Sm={randomUUID:Wm.default.randomUUID};UR.default=Sm});var WR=v((AR)=>{function LR(r){return r&&r.__esModule?r:{default:r}}function Ym(r,f,s){if(CR.default.randomUUID&&!f&&!r)return CR.default.randomUUID();r=r||{};const w=r.random||(r.rng||Pm.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,f){s=s||0;for(let h=0;h<16;++h)f[s+h]=w[h];return f}return Xm.unsafeStringify(w)}Object.defineProperty(AR,"__esModule",{value:!0});AR.default=void 0;var CR=LR(GR()),Pm=LR(nF()),Xm=W1(),Km=Ym;AR.default=Km});var PR=v((zR)=>{function lm(r){return r&&r.__esModule?r:{default:r}}function Jm(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Zm.default.createHash("sha1").update(r).digest()}Object.defineProperty(zR,"__esModule",{value:!0});zR.default=void 0;var Zm=lm(import.meta.require("crypto")),Qm=Jm;zR.default=Qm});var ZR=v((YR)=>{function XR(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(YR,"__esModule",{value:!0});YR.default=void 0;var Mm=XR(tF()),Bm=XR(PR()),Hm=Mm.default("v5",80,Bm.default),Vm=Hm;YR.default=Vm});var QR=v((lR)=>{Object.defineProperty(lR,"__esModule",{value:!0});lR.default=void 0;var km="00000000-0000-0000-0000-000000000000";lR.default=km});var HR=v((MR)=>{function im(r){return r&&r.__esModule?r:{default:r}}function ym(r){if(!Dm.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}Object.defineProperty(MR,"__esModule",{value:!0});MR.default=void 0;var Dm=im(R1()),mm=ym;MR.default=mm});var rU=v((ff)=>{function C0(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(ff,"__esModule",{value:!0});Object.defineProperty(ff,"NIL",{enumerable:!0,get:function(){return dm.default}});Object.defineProperty(ff,"parse",{enumerable:!0,get:function(){return gm.default}});Object.defineProperty(ff,"stringify",{enumerable:!0,get:function(){return bm.default}});Object.defineProperty(ff,"v1",{enumerable:!0,get:function(){return Nm.default}});Object.defineProperty(ff,"v3",{enumerable:!0,get:function(){return qm.default}});Object.defineProperty(ff,"v4",{enumerable:!0,get:function(){return vm.default}});Object.defineProperty(ff,"v5",{enumerable:!0,get:function(){return jm.default}});Object.defineProperty(ff,"validate",{enumerable:!0,get:function(){return cm.default}});Object.defineProperty(ff,"version",{enumerable:!0,get:function(){return Om.default}});var Nm=C0(oA()),qm=C0(FR()),vm=C0(WR()),jm=C0(ZR()),dm=C0(QR()),Om=C0(HR()),cm=C0(R1()),bm=C0(W1()),gm=C0(uF())});var sU=v((W0r,iR)=>{var{defineProperty:iE,getOwnPropertyDescriptor:_m,getOwnPropertyNames:xm}=Object,em=Object.prototype.hasOwnProperty,hh=(r,f)=>iE(r,"name",{value:f,configurable:!0}),nm=(r,f)=>{for(var s in f)iE(r,s,{get:f[s],enumerable:!0})},om=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xm(f))if(!em.call(r,h)&&h!==s)iE(r,h,{get:()=>f[h],enumerable:!(w=_m(f,h))||w.enumerable})}return r},am=(r)=>om(iE({},"__esModule",{value:!0}),r),VR={};nm(VR,{isClockSkewCorrectedError:()=>kR,isClockSkewError:()=>wN,isRetryableByTrait:()=>fN,isServerError:()=>$N,isThrottlingError:()=>hN,isTransientError:()=>DR});iR.exports=am(VR);var pm=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],um=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],tm=["TimeoutError","RequestTimeout","RequestTimeoutException"],rN=[500,502,503,504],sN=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],fN=hh((r)=>r.$retryable!==void 0,"isRetryableByTrait"),wN=hh((r)=>pm.includes(r.name),"isClockSkewError"),kR=hh((r)=>{var f;return(f=r.$metadata)==null?void 0:f.clockSkewCorrected},"isClockSkewCorrectedError"),hN=hh((r)=>{var f,s;return((f=r.$metadata)==null?void 0:f.httpStatusCode)===429||um.includes(r.name)||((s=r.$retryable)==null?void 0:s.throttling)==!0},"isThrottlingError"),DR=hh((r)=>{var f;return kR(r)||tm.includes(r.name)||sN.includes((r==null?void 0:r.code)||"")||rN.includes(((f=r.$metadata)==null?void 0:f.httpStatusCode)||0)},"isTransientError"),$N=hh((r)=>{var f;if(((f=r.$metadata)==null?void 0:f.httpStatusCode)!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!DR(r))return!0;return!1}return!1},"isServerError")});var eR=v((z0r,xR)=>{var{defineProperty:yE,getOwnPropertyDescriptor:EN,getOwnPropertyNames:IN}=Object,FN=Object.prototype.hasOwnProperty,wf=(r,f)=>yE(r,"name",{value:f,configurable:!0}),UN=(r,f)=>{for(var s in f)yE(r,s,{get:f[s],enumerable:!0})},TN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of IN(f))if(!FN.call(r,h)&&h!==s)yE(r,h,{get:()=>f[h],enumerable:!(w=EN(f,h))||w.enumerable})}return r},GN=(r)=>TN(yE({},"__esModule",{value:!0}),r),mR={};UN(mR,{AdaptiveRetryStrategy:()=>zN,ConfiguredRetryStrategy:()=>SN,DEFAULT_MAX_ATTEMPTS:()=>fU,DEFAULT_RETRY_DELAY_BASE:()=>z1,DEFAULT_RETRY_MODE:()=>CN,DefaultRateLimiter:()=>vR,INITIAL_RETRY_TOKENS:()=>wU,INVOCATION_ID_HEADER:()=>AN,MAXIMUM_RETRY_DELAY:()=>hU,NO_RETRY_INCREMENT:()=>cR,REQUEST_HEADER:()=>RN,RETRY_COST:()=>dR,RETRY_MODES:()=>NR,StandardRetryStrategy:()=>$U,THROTTLING_RETRY_DELAY_BASE:()=>jR,TIMEOUT_RETRY_COST:()=>OR});xR.exports=GN(mR);var NR=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(NR||{}),fU=3,CN="standard",LN=sU(),qR=class r{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(f==null?void 0:f.beta)??0.7,this.minCapacity=(f==null?void 0:f.minCapacity)??1,this.minFillRate=(f==null?void 0:f.minFillRate)??0.5,this.scaleConstant=(f==null?void 0:f.scaleConstant)??0.4,this.smooth=(f==null?void 0:f.smooth)??0.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const s=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,s))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const s=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=f}updateClientSendingRate(f){let s;if(this.updateMeasuredRate(),LN.isThrottlingError(f)){const h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),s=Math.floor(f*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){const w=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(f){return parseFloat(f.toFixed(8))}};wf(qR,"DefaultRateLimiter");var vR=qR,z1=100,hU=20000,jR=500,wU=500,dR=5,OR=10,cR=1,AN="amz-sdk-invocation-id",RN="amz-sdk-request",WN=wf(()=>{let r=z1;return{computeNextBackoffDelay:wf((w)=>{return Math.floor(Math.min(hU,Math.random()*2**w*r))},"computeNextBackoffDelay"),setDelayBase:wf((w)=>{r=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),yR=wf(({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:wf(()=>f,"getRetryCount"),getRetryDelay:wf(()=>Math.min(hU,r),"getRetryDelay"),getRetryCost:wf(()=>s,"getRetryCost")}},"createDefaultRetryToken"),bR=class r{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=wU,this.retryBackoffStrategy=WN(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return yR({retryDelay:z1,retryCount:0})}async refreshRetryTokenForRetry(f,s){const w=await this.getMaxAttempts();if(this.shouldRetry(f,s,w)){const h=s.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?jR:z1);const $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),E=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,$):$,I=this.getCapacityCost(h);return this.capacity-=I,yR({retryDelay:E,retryCount:f.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(wU,this.capacity+(f.getRetryCost()??cR))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${fU}`),fU}}shouldRetry(f,s,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(f){return f==="TRANSIENT"?OR:dR}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}};wf(bR,"StandardRetryStrategy");var $U=bR,gR=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode="adaptive";const{rateLimiter:w}=s??{};this.rateLimiter=w??new vR,this.standardRetryStrategy=new $U(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(f,s)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}};wf(gR,"AdaptiveRetryStrategy");var zN=gR,_R=class r extends $U{constructor(f,s=z1){super(typeof f==="function"?f:async()=>f);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s}async refreshRetryTokenForRetry(f,s){const w=await super.refreshRetryTokenForRetry(f,s);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};wf(_R,"ConfiguredRetryStrategy");var SN=_R});var uR=v((S0r,pR)=>{var{defineProperty:mE,getOwnPropertyDescriptor:PN,getOwnPropertyNames:XN}=Object,YN=Object.prototype.hasOwnProperty,Hs=(r,f)=>mE(r,"name",{value:f,configurable:!0}),KN=(r,f)=>{for(var s in f)mE(r,s,{get:f[s],enumerable:!0})},ZN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of XN(f))if(!YN.call(r,h)&&h!==s)mE(r,h,{get:()=>f[h],enumerable:!(w=PN(f,h))||w.enumerable})}return r},lN=(r)=>ZN(mE({},"__esModule",{value:!0}),r),aR={};KN(aR,{constructStack:()=>EU});pR.exports=lN(aR);var Pw=Hs((r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},"getAllAliases"),v0=Hs((r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},"getMiddlewareNameWithAliases"),EU=Hs(()=>{let r=[],f=[],s=!1;const w=new Set,h=Hs((L)=>L.sort((z,S)=>nR[S.step]-nR[z.step]||oR[S.priority||"normal"]-oR[z.priority||"normal"]),"sort"),$=Hs((L)=>{let z=!1;const S=Hs((Z)=>{const D=Pw(Z.name,Z.aliases);if(D.includes(L)){z=!0;for(let B of D)w.delete(B);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByName"),E=Hs((L)=>{let z=!1;const S=Hs((Z)=>{if(Z.middleware===L){z=!0;for(let D of Pw(Z.name,Z.aliases))w.delete(D);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByReference"),I=Hs((L)=>{var z;return r.forEach((S)=>{L.add(S.middleware,{...S})}),f.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),(z=L.identifyOnResolve)==null||z.call(L,C.identifyOnResolve()),L},"cloneTo"),F=Hs((L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},"expandRelativeMiddlewareList"),U=Hs((L=!1)=>{const z=[],S=[],Z={};return r.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Pw(Q.name,Q.aliases))Z[i]=Q;z.push(Q)}),f.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Pw(Q.name,Q.aliases))Z[i]=Q;S.push(Q)}),S.forEach((B)=>{if(B.toMiddleware){const Q=Z[B.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${B.toMiddleware} is not found when adding ${v0(B.name,B.aliases)} middleware ${B.relation} ${B.toMiddleware}`)}if(B.relation==="after")Q.after.push(B);if(B.relation==="before")Q.before.push(B)}}),h(z).map(F).reduce((B,Q)=>{return B.push(...Q),B},[])},"getMiddlewareList"),C={add:(L,z={})=>{const{name:S,override:Z,aliases:D}=z,B={step:"initialize",priority:"normal",middleware:L,...z},Q=Pw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${v0(S,D)}'`);for(let i of Q){const x=r.findIndex((hr)=>{var kr;return hr.name===i||((kr=hr.aliases)==null?void 0:kr.some((Rw)=>Rw===i))});if(x===-1)continue;const e=r[x];if(e.step!==B.step||B.priority!==e.priority)throw new Error(`"${v0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${v0(S,D)}" middleware with ${B.priority} priority in ${B.step} step.`);r.splice(x,1)}}for(let i of Q)w.add(i)}r.push(B)},addRelativeTo:(L,z)=>{const{name:S,override:Z,aliases:D}=z,B={middleware:L,...z},Q=Pw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${v0(S,D)}'`);for(let i of Q){const x=f.findIndex((hr)=>{var kr;return hr.name===i||((kr=hr.aliases)==null?void 0:kr.some((Rw)=>Rw===i))});if(x===-1)continue;const e=f[x];if(e.toMiddleware!==B.toMiddleware||e.relation!==B.relation)throw new Error(`"${v0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${v0(S,D)}" middleware ${B.relation} "${B.toMiddleware}" middleware.`);f.splice(x,1)}}for(let i of Q)w.add(i)}f.push(B)},clone:()=>I(EU()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let z=!1;const S=Hs((Z)=>{const{tags:D,name:B,aliases:Q}=Z;if(D&&D.includes(L)){const i=Pw(B,Q);for(let x of i)w.delete(x);return z=!0,!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{var z;const S=I(EU());return S.use(L),S.identifyOnResolve(s||S.identifyOnResolve()||(((z=L.identifyOnResolve)==null?void 0:z.call(L))??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return v0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((Z)=>Z.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},"constructStack"),nR={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},oR={high:3,normal:2,low:1}});var IU=v((P0r,rW)=>{var{defineProperty:NE,getOwnPropertyDescriptor:JN,getOwnPropertyNames:QN}=Object,MN=Object.prototype.hasOwnProperty,BN=(r,f)=>NE(r,"name",{value:f,configurable:!0}),HN=(r,f)=>{for(var s in f)NE(r,s,{get:f[s],enumerable:!0})},VN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of QN(f))if(!MN.call(r,h)&&h!==s)NE(r,h,{get:()=>f[h],enumerable:!(w=JN(f,h))||w.enumerable})}return r},kN=(r)=>VN(NE({},"__esModule",{value:!0}),r),tR={};HN(tR,{isArrayBuffer:()=>DN});rW.exports=kN(tR);var DN=BN((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var S1=v((X0r,wW)=>{var{defineProperty:qE,getOwnPropertyDescriptor:iN,getOwnPropertyNames:yN}=Object,mN=Object.prototype.hasOwnProperty,sW=(r,f)=>qE(r,"name",{value:f,configurable:!0}),NN=(r,f)=>{for(var s in f)qE(r,s,{get:f[s],enumerable:!0})},qN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of yN(f))if(!mN.call(r,h)&&h!==s)qE(r,h,{get:()=>f[h],enumerable:!(w=iN(f,h))||w.enumerable})}return r},vN=(r)=>qN(qE({},"__esModule",{value:!0}),r),fW={};NN(fW,{fromArrayBuffer:()=>dN,fromString:()=>ON});wW.exports=vN(fW);var jN=IU(),FU=import.meta.require("buffer"),dN=sW((r,f=0,s=r.byteLength-f)=>{if(!jN.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return FU.Buffer.from(r,f,s)},"fromArrayBuffer"),ON=sW((r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?FU.Buffer.from(r,f):FU.Buffer.from(r)},"fromString")});var EW=v((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.fromBase64=void 0;var cN=S1(),bN=/^[A-Za-z0-9+/]*={0,2}$/,gN=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!bN.exec(r))throw new TypeError("Invalid base64 string.");const f=cN.fromString(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};hW.fromBase64=gN});var j0=v((K0r,TW)=>{var{defineProperty:vE,getOwnPropertyDescriptor:_N,getOwnPropertyNames:xN}=Object,eN=Object.prototype.hasOwnProperty,UU=(r,f)=>vE(r,"name",{value:f,configurable:!0}),nN=(r,f)=>{for(var s in f)vE(r,s,{get:f[s],enumerable:!0})},oN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xN(f))if(!eN.call(r,h)&&h!==s)vE(r,h,{get:()=>f[h],enumerable:!(w=_N(f,h))||w.enumerable})}return r},aN=(r)=>oN(vE({},"__esModule",{value:!0}),r),IW={};nN(IW,{fromUtf8:()=>UW,toUint8Array:()=>pN,toUtf8:()=>uN});TW.exports=aN(IW);var FW=S1(),UW=UU((r)=>{const f=FW.fromString(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pN=UU((r)=>{if(typeof r==="string")return UW(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),uN=UU((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return FW.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var LW=v((GW)=>{Object.defineProperty(GW,"__esModule",{value:!0});GW.toBase64=void 0;var tN=S1(),rq=j0(),sq=(r)=>{let f;if(typeof r==="string")f=rq.fromUtf8(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return tN.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("base64")};GW.toBase64=sq});var dE=v((l0r,jE)=>{var{defineProperty:AW,getOwnPropertyDescriptor:fq,getOwnPropertyNames:wq}=Object,hq=Object.prototype.hasOwnProperty,TU=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of wq(f))if(!hq.call(r,h)&&h!==s)AW(r,h,{get:()=>f[h],enumerable:!(w=fq(f,h))||w.enumerable})}return r},RW=(r,f,s)=>(TU(r,f,"default"),s&&TU(s,f,"default")),$q=(r)=>TU(AW({},"__esModule",{value:!0}),r),GU={};jE.exports=$q(GU);RW(GU,EW(),jE.exports);RW(GU,LW(),jE.exports)});var SW=v((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.getAwsChunkedEncodingStream=void 0;var Eq=import.meta.require("stream"),Iq=(r,f)=>{const{base64Encoder:s,bodyLengthChecker:w,checksumAlgorithmFn:h,checksumLocationName:$,streamHasher:E}=f,I=s!==void 0&&h!==void 0&&$!==void 0&&E!==void 0,F=I?E(h,r):void 0,U=new Eq.Readable({read:()=>{}});return r.on("data",(C)=>{const L=w(C)||0;U.push(`${L.toString(16)}\r\n`),U.push(C),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){const C=s(await F);U.push(`${$}:${C}\r\n`),U.push("\r\n")}U.push(null)}),U};WW.getAwsChunkedEncodingStream=Iq});var LU=v((Q0r,YW)=>{var{defineProperty:OE,getOwnPropertyDescriptor:Fq,getOwnPropertyNames:Uq}=Object,Tq=Object.prototype.hasOwnProperty,CU=(r,f)=>OE(r,"name",{value:f,configurable:!0}),Gq=(r,f)=>{for(var s in f)OE(r,s,{get:f[s],enumerable:!0})},Cq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Uq(f))if(!Tq.call(r,h)&&h!==s)OE(r,h,{get:()=>f[h],enumerable:!(w=Fq(f,h))||w.enumerable})}return r},Lq=(r)=>Cq(OE({},"__esModule",{value:!0}),r),PW={};Gq(PW,{escapeUri:()=>XW,escapeUriPath:()=>Rq});YW.exports=Lq(PW);var XW=CU((r)=>encodeURIComponent(r).replace(/[!'()*]/g,Aq),"escapeUri"),Aq=CU((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Rq=CU((r)=>r.split("/").map(XW).join("/"),"escapeUriPath")});var RU=v((M0r,lW)=>{function ZW(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=AU.escapeUri(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${AU.escapeUri(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${AU.escapeUri(w)}`;f.push(h)}}return f.join("&")}var{defineProperty:cE,getOwnPropertyDescriptor:Wq,getOwnPropertyNames:zq}=Object,Sq=Object.prototype.hasOwnProperty,Pq=(r,f)=>cE(r,"name",{value:f,configurable:!0}),Xq=(r,f)=>{for(var s in f)cE(r,s,{get:f[s],enumerable:!0})},Yq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of zq(f))if(!Sq.call(r,h)&&h!==s)cE(r,h,{get:()=>f[h],enumerable:!(w=Wq(f,h))||w.enumerable})}return r},Kq=(r)=>Yq(cE({},"__esModule",{value:!0}),r),KW={};Xq(KW,{buildQueryString:()=>ZW});lW.exports=Kq(KW);var AU=LU();Pq(ZW,"buildQueryString")});var OW=v((B0r,dW)=>{async function SU(r,f,s=JW){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(JW,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)iW(r,f.body)}function iW(r,f){if(f instanceof DW.Readable){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}async function jW(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var{create:Zq,defineProperty:P1,getOwnPropertyDescriptor:lq,getOwnPropertyNames:Jq,getPrototypeOf:Qq}=Object,Mq=Object.prototype.hasOwnProperty,Jr=(r,f)=>P1(r,"name",{value:f,configurable:!0}),Bq=(r,f)=>{for(var s in f)P1(r,s,{get:f[s],enumerable:!0})},MW=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Jq(f))if(!Mq.call(r,h)&&h!==s)P1(r,h,{get:()=>f[h],enumerable:!(w=lq(f,h))||w.enumerable})}return r},Hq=(r,f,s)=>(s=r!=null?Zq(Qq(r)):{},MW(f||!r||!r.__esModule?P1(s,"default",{value:r,enumerable:!0}):s,r)),Vq=(r)=>MW(P1({},"__esModule",{value:!0}),r),BW={};Bq(BW,{DEFAULT_REQUEST_TIMEOUT:()=>mq,NodeHttp2Handler:()=>dq,NodeHttpHandler:()=>Nq,streamCollector:()=>cq});dW.exports=Vq(BW);var HW=G0(),VW=RU(),WU=import.meta.require("http"),zU=import.meta.require("https"),kq=["ECONNRESET","EPIPE","ETIMEDOUT"],kW=Jr((r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f},"getTransformedHeaders"),Dq=Jr((r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})},"setConnectionTimeout"),iq=Jr((r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})},"setSocketKeepAlive"),yq=Jr((r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),DW=import.meta.require("stream"),JW=1000;Jr(SU,"writeRequestBody");Jr(iW,"writeBody");var mq=0,yW=class r{constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(this.resolveDefaultConfig(h))}).catch(w);else s(this.resolveDefaultConfig(f))})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}static checkSocketUsage(f,s,w=console){var h,$,E;const{sockets:I,requests:F,maxSockets:U}=f;if(typeof U!=="number"||U===1/0)return s;const C=15000;if(Date.now()-C<s)return s;if(I&&F)for(let L in I){const z=((h=I[L])==null?void 0:h.length)??0,S=(($=F[L])==null?void 0:$.length)??0;if(z>=U&&S>=2*U)return(E=w==null?void 0:w.warn)==null||E.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${z} and ${S} additional requests are enqueued.
|
|
2
|
+
var fk=Object.create;var{getPrototypeOf:wk,defineProperty:XF,getOwnPropertyNames:hk}=Object;var $k=Object.prototype.hasOwnProperty;var i=(r,f,s)=>{s=r!=null?fk(wk(r)):{};const w=f||!r||!r.__esModule?XF(s,"default",{value:r,enumerable:!0}):s;for(let h of hk(r))if(!$k.call(w,h))XF(w,h,{get:()=>r[h],enumerable:!0});return w};var j=(r,f)=>()=>(f||r((f={exports:{}}).exports,f),f.exports);var Af=(r,f)=>{for(var s in f)XF(r,s,{get:f[s],enumerable:!0,configurable:!0,set:(w)=>f[s]=()=>w})};var G=(r,f)=>()=>(r&&(f=r(r=0)),f);var Wf=(r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},zf=(r)=>{return{httpHandler:r.httpHandler()}};var tC=()=>{};var $s=j((nu,F8)=>{var{defineProperty:fE,getOwnPropertyDescriptor:Ek,getOwnPropertyNames:Ik}=Object,Fk=Object.prototype.hasOwnProperty,wE=(r,f)=>fE(r,"name",{value:f,configurable:!0}),Uk=(r,f)=>{for(var s in f)fE(r,s,{get:f[s],enumerable:!0})},Tk=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ik(f))if(!Fk.call(r,h)&&h!==s)fE(r,h,{get:()=>f[h],enumerable:!(w=Ek(f,h))||w.enumerable})}return r},Gk=(r)=>Tk(fE({},"__esModule",{value:!0}),r),r8={};Uk(r8,{AlgorithmId:()=>h8,EndpointURLScheme:()=>w8,FieldPosition:()=>$8,HttpApiKeyAuthLocation:()=>f8,HttpAuthLocation:()=>s8,IniSectionType:()=>E8,RequestHandlerProtocol:()=>I8,SMITHY_CONTEXT_KEY:()=>zk,getDefaultClientConfiguration:()=>Ak,resolveDefaultRuntimeConfig:()=>Wk});F8.exports=Gk(r8);var s8=((r)=>{return r.HEADER="header",r.QUERY="query",r})(s8||{}),f8=((r)=>{return r.HEADER="header",r.QUERY="query",r})(f8||{}),w8=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(w8||{}),h8=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(h8||{}),Ck=wE((r)=>{const f=[];if(r.sha256!==void 0)f.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)f.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),Lk=wE((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),Ak=wE((r)=>{return{...Ck(r)}},"getDefaultClientConfiguration"),Wk=wE((r)=>{return{...Lk(r)}},"resolveDefaultRuntimeConfig"),$8=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})($8||{}),zk="__smithy_context",E8=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(E8||{}),I8=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(I8||{})});var Rk;var U8=G(()=>{Rk=i($s(),1)});var T8=()=>{};function Sk(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}class Qr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){const f=new Qr({...r,headers:{...r.headers}});if(f.query)f.query=Sk(f.query);return f}static isInstance(r){if(!r)return!1;const f=r;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return Qr.clone(this)}}class V0{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;const f=r;return typeof f.statusCode==="number"&&typeof f.headers==="object"}}var G8=()=>{};var kr=G(()=>{tC();U8();T8();G8()});function Rf(r){return r}var Pk=(r)=>(f)=>async(s)=>{if(!Qr.isInstance(s.request))return f(s);const{request:w}=s,{handlerProtocol:h=""}=r.requestHandler.metadata||{};if(h.indexOf("h2")>=0&&!w.headers[":authority"])delete w.headers.host,w.headers[":authority"]=w.hostname+(w.port?":"+w.port:"");else if(!w.headers.host){let $=w.hostname;if(w.port!=null)$+=`:${w.port}`;w.headers.host=$}return f(s)},Xk,Sf=(r)=>({applyToStack:(f)=>{f.add(Pk(r),Xk)}});var _w=G(()=>{kr();Xk={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var Yk=()=>(r,f)=>async(s)=>{try{const w=await r(s),{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,C=F??f.inputFilterSensitiveLog,L=U??f.outputFilterSensitiveLog,{$metadata:R,...S}=w.output;return E?.info?.({clientName:h,commandName:$,input:C(s.input),output:L(S),metadata:R}),w}catch(w){const{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F}=I,U=F??f.inputFilterSensitiveLog;throw E?.error?.({clientName:h,commandName:$,input:U(s.input),error:w,metadata:w.$metadata}),w}},Kk,Pf=(r)=>({applyToStack:(f)=>{f.add(Yk(),Kk)}});var C8=G(()=>{Kk={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var xw=G(()=>{C8()});var L8="X-Amzn-Trace-Id",Zk="AWS_LAMBDA_FUNCTION_NAME",Jk="_X_AMZN_TRACE_ID",Qk=(r)=>(f)=>async(s)=>{const{request:w}=s;if(!Qr.isInstance(w)||r.runtime!=="node"||w.headers.hasOwnProperty(L8))return f(s);const h=process.env[Zk],$=process.env[Jk],E=(I)=>typeof I==="string"&&I.length>0;if(E(h)&&E($))w.headers[L8]=$;return f({...s,request:w})},Mk,Xf=(r)=>({applyToStack:(f)=>{f.add(Qk(r),Mk)}});var ew=G(()=>{kr();Mk={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});function Yf(r){return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent}}var Bk,$1=(r)=>Bk.test(r)||r.startsWith("[")&&r.endsWith("]");var YF=G(()=>{Bk=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$")});var lk,E1=(r,f=!1)=>{if(!f)return lk.test(r);const s=r.split(".");for(let w of s)if(!E1(w))return!1;return!0};var KF=G(()=>{lk=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var ar;var hE=G(()=>{ar={}});var E0="endpoints";function Xs(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Xs(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Xs).join(", ")})`;return JSON.stringify(r,null,2)}var I1=()=>{};var Wr;var A8=G(()=>{Wr=class Wr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var W8=()=>{};var z8=()=>{};var R8=()=>{};var S8=()=>{};var P8=()=>{};var X8=()=>{};var Ys=G(()=>{A8();W8();z8();R8();S8();P8();X8()});var Y8=(r,f)=>r===f;var K8=(r)=>{const f=r.split("."),s=[];for(let w of f){const h=w.indexOf("[");if(h!==-1){if(w.indexOf("]")!==w.length-1)throw new Wr(`Path: '${r}' does not end with ']'`);const $=w.slice(h+1,-1);if(Number.isNaN(parseInt($)))throw new Wr(`Invalid array index: '${$}' in path: '${r}'`);if(h!==0)s.push(w.slice(0,h));s.push($)}else s.push(w)}return s};var Z8=G(()=>{Ys()});var $E=(r,f)=>K8(f).reduce((s,w)=>{if(typeof s!=="object")throw new Wr(`Index '${w}' in '${f}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(s))return s[parseInt(w)];return s[w]},r);var J8=G(()=>{Ys();Z8()});var Q8=(r)=>r!=null;var M8=(r)=>!r;var EE,ZF,B8=(r)=>{const f=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){const{hostname:R,port:S,protocol:K="",path:k="",query:l={}}=r,M=new URL(`${K}//${R}${S?`:${S}`:""}${k}`);return M.search=Object.entries(l).map(([N,x])=>`${N}=${x}`).join("&"),M}return new URL(r)}catch(R){return null}})();if(!f)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;const s=f.href,{host:w,hostname:h,pathname:$,protocol:E,search:I}=f;if(I)return null;const F=E.slice(0,-1);if(!Object.values(EE.EndpointURLScheme).includes(F))return null;const U=$1(h),C=s.includes(`${w}:${ZF[F]}`)||typeof r==="string"&&r.includes(`${w}:${ZF[F]}`),L=`${w}${C?`:${ZF[F]}`:""}`;return{scheme:F,authority:L,path:$,normalizedPath:$.endsWith("/")?$:`${$}/`,isIp:U}};var l8=G(()=>{EE=i($s(),1);YF();ZF={[EE.EndpointURLScheme.HTTP]:80,[EE.EndpointURLScheme.HTTPS]:443}});var H8=(r,f)=>r===f;var V8=(r,f,s,w)=>{if(f>=s||r.length<s)return null;if(!w)return r.substring(f,s);return r.substring(r.length-s,r.length-f)};var D8=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`);var JF=G(()=>{J8();KF();l8()});var k8;var N8=G(()=>{JF();k8={booleanEquals:Y8,getAttr:$E,isSet:Q8,isValidHostLabel:E1,not:M8,parseURL:B8,stringEquals:H8,substring:V8,uriEncode:D8}});var IE=(r,f)=>{const s=[],w={...f.endpointParams,...f.referenceRecord};let h=0;while(h<r.length){const $=r.indexOf("{",h);if($===-1){s.push(r.slice(h));break}s.push(r.slice(h,$));const E=r.indexOf("}",$);if(E===-1){s.push(r.slice($));break}if(r[$+1]==="{"&&r[E+1]==="}")s.push(r.slice($+1,E)),h=E+2;const I=r.substring($+1,E);if(I.includes("#")){const[F,U]=I.split("#");s.push($E(w[F],U))}else s.push(w[I]);h=E+1}return s.join("")};var QF=G(()=>{JF()});var y8=({ref:r},f)=>{return{...f.endpointParams,...f.referenceRecord}[r]};var D0=(r,f,s)=>{if(typeof r==="string")return IE(r,s);else if(r.fn)return FE(r,s);else if(r.ref)return y8(r,s);throw new Wr(`'${f}': ${String(r)} is not a string, function or reference.`)};var F1=G(()=>{Ys();MF();QF()});var FE=({fn:r,argv:f},s)=>{const w=f.map(($)=>["boolean","number"].includes(typeof $)?$:D0($,"arg",s)),h=r.split(".");if(h[0]in ar&&h[1]!=null)return ar[h[0]][h[1]](...w);return k8[r](...w)};var MF=G(()=>{hE();N8();F1()});var q8=({assign:r,...f},s)=>{if(r&&r in s.referenceRecord)throw new Wr(`'${r}' is already defined in Reference Record.`);const w=FE(f,s);return s.logger?.debug?.(`${E0} evaluateCondition: ${Xs(f)} = ${Xs(w)}`),{result:w===""?!0:!!w,...r!=null&&{toAssign:{name:r,value:w}}}};var m8=G(()=>{I1();Ys();MF()});var nw=(r=[],f)=>{const s={};for(let w of r){const{result:h,toAssign:$}=q8(w,{...f,referenceRecord:{...f.referenceRecord,...s}});if(!h)return{result:h};if($)s[$.name]=$.value,f.logger?.debug?.(`${E0} assign: ${$.name} := ${Xs($.value)}`)}return{result:!0,referenceRecord:s}};var UE=G(()=>{I1();m8()});var i8=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:h.map(($)=>{const E=D0($,"Header value entry",f);if(typeof E!=="string")throw new Wr(`Header '${w}' value '${E}' is not a string`);return E})}),{});var v8=G(()=>{Ys();F1()});var BF=(r,f)=>{if(Array.isArray(r))return r.map((s)=>BF(s,f));switch(typeof r){case"string":return IE(r,f);case"object":if(r===null)throw new Wr(`Unexpected endpoint property: ${r}`);return TE(r,f);case"boolean":return r;default:throw new Wr(`Unexpected endpoint property type: ${typeof r}`)}};var j8=G(()=>{Ys();QF();lF()});var TE=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:BF(h,f)}),{});var lF=G(()=>{j8()});var d8=(r,f)=>{const s=D0(r,"Endpoint URL",f);if(typeof s==="string")try{return new URL(s)}catch(w){throw console.error(`Failed to construct URL with ${s}`,w),w}throw new Wr(`Endpoint URL must be a string, got ${typeof s}`)};var O8=G(()=>{Ys();F1()});var c8=(r,f)=>{const{conditions:s,endpoint:w}=r,{result:h,referenceRecord:$}=nw(s,f);if(!h)return;const E={...f,referenceRecord:{...f.referenceRecord,...$}},{url:I,properties:F,headers:U}=w;return f.logger?.debug?.(`${E0} Resolving endpoint from template: ${Xs(w)}`),{...U!=null&&{headers:i8(U,E)},...F!=null&&{properties:TE(F,E)},url:d8(I,E)}};var b8=G(()=>{I1();UE();v8();lF();O8()});var g8=(r,f)=>{const{conditions:s,error:w}=r,{result:h,referenceRecord:$}=nw(s,f);if(!h)return;throw new Wr(D0(w,"Error",{...f,referenceRecord:{...f.referenceRecord,...$}}))};var _8=G(()=>{Ys();UE();F1()});var x8=(r,f)=>{const{conditions:s,rules:w}=r,{result:h,referenceRecord:$}=nw(s,f);if(!h)return;return GE(w,{...f,referenceRecord:{...f.referenceRecord,...$}})};var e8=G(()=>{UE();HF()});var GE=(r,f)=>{for(let s of r)if(s.type==="endpoint"){const w=c8(s,f);if(w)return w}else if(s.type==="error")g8(s,f);else if(s.type==="tree"){const w=x8(s,f);if(w)return w}else throw new Wr(`Unknown endpoint rule: ${s}`);throw new Wr("Rules evaluation failed")};var HF=G(()=>{Ys();b8();_8();e8()});var n8=G(()=>{hE();HF()});var es=(r,f)=>{const{endpointParams:s,logger:w}=f,{parameters:h,rules:$}=r;f.logger?.debug?.(`${E0} Initial EndpointParams: ${Xs(s)}`);const E=Object.entries(h).filter(([,U])=>U.default!=null).map(([U,C])=>[U,C.default]);if(E.length>0)for(let[U,C]of E)s[U]=s[U]??C;const I=Object.entries(h).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(s[U]==null)throw new Wr(`Missing required parameter: '${U}'`);const F=GE($,{endpointParams:s,logger:w,referenceRecord:{}});if(f.endpointParams?.Endpoint)try{const U=new URL(f.endpointParams.Endpoint),{protocol:C,port:L}=U;F.url.protocol=C,F.url.port=L}catch(U){}return f.logger?.debug?.(`${E0} Resolved endpoint: ${Xs(F)}`),F};var o8=G(()=>{I1();Ys();n8()});var ns=G(()=>{YF();KF();hE();o8();Ys()});var VF=G(()=>{ns()});var DF=(r,f=!1)=>{if(f){for(let s of r.split("."))if(!DF(s))return!1;return!0}if(!E1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if($1(r))return!1;return!0};var a8=G(()=>{ns();VF()});var p8=(r)=>{const f=r.split(":");if(f.length<6)return null;const[s,w,h,$,E,...I]=f;if(s!=="arn"||w===""||h===""||I.join(":")==="")return null;const F=I.map((U)=>U.split("/")).flat();return{partition:w,service:h,region:$,accountId:E,resourceId:F}};var t8;var u8=G(()=>{t8={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Vk,Dk="",rL=(r)=>{const{partitions:f}=Vk;for(let w of f){const{regions:h,outputs:$}=w;for(let[E,I]of Object.entries(h))if(E===r)return{...$,...I}}for(let w of f){const{regionRegex:h,outputs:$}=w;if(new RegExp(h).test(r))return{...$}}const s=f.find((w)=>w.id==="aws");if(!s)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...s.outputs}},sL=()=>Dk;var kF=G(()=>{u8();Vk=t8});var os;var fL=G(()=>{ns();a8();kF();os={isVirtualHostableS3Bucket:DF,parseArn:p8,partition:rL};ar.aws=os});var wL=G(()=>{ns()});var hL=G(()=>{ns()});var $L=()=>{};var EL=()=>{};var IL=()=>{};var FL=()=>{};var UL=()=>{};var TL=G(()=>{hL();$L();EL();IL();FL();UL()});var Cw=G(()=>{fL();kF();VF();wL();TL()});var NF="user-agent",CE="x-amz-user-agent",yF=" ",LE="/",GL,CL,qF="-";var LL=G(()=>{GL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,CL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});var kk=(r)=>(f,s)=>async(w)=>{const{request:h}=w;if(!Qr.isInstance(h))return f(w);const{headers:$}=h,E=s?.userAgent?.map(mF)||[],I=(await r.defaultUserAgentProvider()).map(mF),F=r?.customUserAgent?.map(mF)||[],U=sL(),C=(U?[U]:[]).concat([...I,...E,...F]).join(yF),L=[...I.filter((R)=>R.startsWith("aws-sdk-")),...F].join(yF);if(r.runtime!=="browser"){if(L)$[CE]=$[CE]?`${$[NF]} ${L}`:L;$[NF]=C}else $[CE]=C;return f({...w,request:h})},mF=(r)=>{const f=r[0].split(LE).map((E)=>E.replace(GL,qF)).join(LE),s=r[1]?.replace(CL,qF),w=f.indexOf(LE),h=f.substring(0,w);let $=f.substring(w+1);if(h==="api")$=$.toLowerCase();return[h,$,s].filter((E)=>E&&E.length>0).reduce((E,I,F)=>{switch(F){case 0:return I;case 1:return`${E}/${I}`;default:return`${E}#${I}`}},"")},Nk,Kf=(r)=>({applyToStack:(f)=>{f.add(kk(r),Nk)}});var AL=G(()=>{Cw();kr();LL();Nk={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var ow=G(()=>{AL()});var aw=(r,f,s)=>{if(!(f in r))return;if(r[f]==="true")return!0;if(r[f]==="false")return!1;throw new Error(`Cannot load ${s} "${f}". Expected "true" or "false", got ${r[f]}.`)};var k0;var WL=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(k0||(k0={}))});var iF=G(()=>{WL()});var yk="AWS_USE_DUALSTACK_ENDPOINT",qk="use_dualstack_endpoint",Zf;var zL=G(()=>{iF();Zf={environmentVariableSelector:(r)=>aw(r,yk,k0.ENV),configFileSelector:(r)=>aw(r,qk,k0.CONFIG),default:!1}});var mk="AWS_USE_FIPS_ENDPOINT",ik="use_fips_endpoint",Jf;var RL=G(()=>{iF();Jf={environmentVariableSelector:(r)=>aw(r,mk,k0.ENV),configFileSelector:(r)=>aw(r,ik,k0.CONFIG),default:!1}});var vF,Ks=(r)=>r[vF.SMITHY_CONTEXT_KEY]||(r[vF.SMITHY_CONTEXT_KEY]={});var SL=G(()=>{vF=i($s(),1)});var Nr=(r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f};var as=G(()=>{SL()});var PL=G(()=>{as()});var XL=G(()=>{as()});var YL=G(()=>{zL();RL();PL();XL()});var Zs,Qf;var KL=G(()=>{Zs={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},Qf={preferredFile:"credentials"}});var AE=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var jF=(r)=>AE(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var ZL=()=>{};var Mf=(r)=>{const{region:f,useFipsEndpoint:s}=r;if(!f)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof f==="string")return jF(f);const w=await f();return jF(w)},useFipsEndpoint:async()=>{const w=typeof f==="string"?f:await f();if(AE(w))return!0;return typeof s!=="function"?Promise.resolve(!!s):s()}}};var JL=G(()=>{ZL()});var QL=G(()=>{KL();JL()});var ML=()=>{};var BL=()=>{};var lL=()=>{};var HL=G(()=>{ML();BL();lL()});var Js=G(()=>{YL();QL();HL()});var U1=j((w0r,NL)=>{var{defineProperty:WE,getOwnPropertyDescriptor:vk,getOwnPropertyNames:jk}=Object,dk=Object.prototype.hasOwnProperty,DL=(r,f)=>WE(r,"name",{value:f,configurable:!0}),Ok=(r,f)=>{for(var s in f)WE(r,s,{get:f[s],enumerable:!0})},ck=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of jk(f))if(!dk.call(r,h)&&h!==s)WE(r,h,{get:()=>f[h],enumerable:!(w=vk(f,h))||w.enumerable})}return r},bk=(r)=>ck(WE({},"__esModule",{value:!0}),r),kL={};Ok(kL,{getSmithyContext:()=>gk,normalizeProvider:()=>_k});NL.exports=bk(kL);var VL=$s(),gk=DL((r)=>r[VL.SMITHY_CONTEXT_KEY]||(r[VL.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),_k=DL((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider")});var Cr=j((h0r,vL)=>{var{defineProperty:zE,getOwnPropertyDescriptor:xk,getOwnPropertyNames:ek}=Object,nk=Object.prototype.hasOwnProperty,Lw=(r,f)=>zE(r,"name",{value:f,configurable:!0}),ok=(r,f)=>{for(var s in f)zE(r,s,{get:f[s],enumerable:!0})},ak=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ek(f))if(!nk.call(r,h)&&h!==s)zE(r,h,{get:()=>f[h],enumerable:!(w=xk(f,h))||w.enumerable})}return r},pk=(r)=>ak(zE({},"__esModule",{value:!0}),r),yL={};ok(yL,{CredentialsProviderError:()=>uk,ProviderError:()=>RE,TokenProviderError:()=>tk,chain:()=>rN,fromStatic:()=>sN,memoize:()=>fN});vL.exports=pk(yL);var qL=class r extends Error{constructor(f,s=!0){var w;let h,$=!0;if(typeof s==="boolean")h=void 0,$=s;else if(s!=null&&typeof s==="object")h=s.logger,$=s.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,r.prototype),(w=h==null?void 0:h.debug)==null||w.call(h,`@smithy/property-provider ${$?"->":"(!)"} ${f}`)}static from(f,s=!0){return Object.assign(new this(f.message,s),f)}};Lw(qL,"ProviderError");var RE=qL,mL=class r extends RE{constructor(f,s=!0){super(f,s);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};Lw(mL,"CredentialsProviderError");var uk=mL,iL=class r extends RE{constructor(f,s=!0){super(f,s);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};Lw(iL,"TokenProviderError");var tk=iL,rN=Lw((...r)=>async()=>{if(r.length===0)throw new RE("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w==null?void 0:w.tryNextLink)continue;throw w}throw f},"chain"),sN=Lw((r)=>()=>Promise.resolve(r),"fromStatic"),fN=Lw((r,f,s)=>{let w,h,$,E=!1;const I=Lw(async()=>{if(!h)h=r();try{w=await h,$=!0,E=!1}finally{h=void 0}return w},"coalesceProvider");if(f===void 0)return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();return w};return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();if(E)return w;if(s&&!s(w))return E=!0,w;if(f(w))return await I(),w;return w}},"memoize")});var pw=j((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.getHomeDir=void 0;var wN=import.meta.require("os"),hN=import.meta.require("path"),dF={},$N=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},EN=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${hN.sep}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=$N();if(!dF[h])dF[h]=wN.homedir();return dF[h]};jL.getHomeDir=EN});var OF=j((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.getSSOTokenFilepath=void 0;var IN=import.meta.require("crypto"),FN=import.meta.require("path"),UN=pw(),TN=(r)=>{const s=IN.createHash("sha1").update(r).digest("hex");return FN.join(UN.getHomeDir(),".aws","sso","cache",`${s}.json`)};OL.getSSOTokenFilepath=TN});var _L=j((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.getSSOTokenFromFile=void 0;var GN=import.meta.require("fs"),CN=OF(),{readFile:LN}=GN.promises,AN=async(r)=>{const f=CN.getSSOTokenFilepath(r),s=await LN(f,"utf8");return JSON.parse(s)};bL.getSSOTokenFromFile=AN});var bF=j((xL)=>{Object.defineProperty(xL,"__esModule",{value:!0});xL.slurpFile=void 0;var WN=import.meta.require("fs"),{readFile:zN}=WN.promises,cF={},RN=(r,f)=>{if(!cF[r]||(f===null||f===void 0?void 0:f.ignoreCache))cF[r]=zN(r,"utf8");return cF[r]};xL.slurpFile=RN});var eF=j((U0r,G1)=>{var{defineProperty:XE,getOwnPropertyDescriptor:SN,getOwnPropertyNames:PN}=Object,XN=Object.prototype.hasOwnProperty,Qs=(r,f)=>XE(r,"name",{value:f,configurable:!0}),YN=(r,f)=>{for(var s in f)XE(r,s,{get:f[s],enumerable:!0})},gF=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of PN(f))if(!XN.call(r,h)&&h!==s)XE(r,h,{get:()=>f[h],enumerable:!(w=SN(f,h))||w.enumerable})}return r},xF=(r,f,s)=>(gF(r,f,"default"),s&&gF(s,f,"default")),KN=(r)=>gF(XE({},"__esModule",{value:!0}),r),T1={};YN(T1,{CONFIG_PREFIX_SEPARATOR:()=>Aw,DEFAULT_PROFILE:()=>pL,ENV_PROFILE:()=>aL,getProfileName:()=>ZN,loadSharedConfigFiles:()=>tL,loadSsoSessionData:()=>mN,parseKnownFiles:()=>vN});G1.exports=KN(T1);xF(T1,pw(),G1.exports);var aL="AWS_PROFILE",pL="default",ZN=Qs((r)=>r.profile||process.env[aL]||pL,"getProfileName");xF(T1,OF(),G1.exports);xF(T1,_L(),G1.exports);var SE=$s(),JN=Qs((r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Aw);if(s===-1)return!1;return Object.values(SE.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Aw),$=s.substring(0,h)===SE.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}}),"getConfigData"),PE=import.meta.require("path"),QN=pw(),MN="AWS_CONFIG_FILE",uL=Qs(()=>process.env[MN]||PE.join(QN.getHomeDir(),".aws","config"),"getConfigFilepath"),BN=pw(),lN="AWS_SHARED_CREDENTIALS_FILE",HN=Qs(()=>process.env[lN]||PE.join(BN.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),VN=pw(),DN=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,kN=["__proto__","profile __proto__"],_F=Qs((r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=DN.exec(I);if(F){const[,U,,C]=F;if(Object.values(SE.IniSectionType).includes(U))s=[U,C].join(Aw)}else s=I;if(kN.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Aw):F;f[s][C]=U}}}}return f},"parseIni"),nL=bF(),oL=Qs(()=>({}),"swallowError"),Aw=".",tL=Qs(async(r={})=>{const{filepath:f=HN(),configFilepath:s=uL()}=r,w=VN.getHomeDir();let $=f;if(f.startsWith("~/"))$=PE.join(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=PE.join(w,s.slice(2));const I=await Promise.all([nL.slurpFile(E,{ignoreCache:r.ignoreCache}).then(_F).then(JN).catch(oL),nL.slurpFile($,{ignoreCache:r.ignoreCache}).then(_F).catch(oL)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),NN=Qs((r)=>Object.entries(r).filter(([f])=>f.startsWith(SE.IniSectionType.SSO_SESSION+Aw)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Aw)+1)]:w}),{}),"getSsoSessionData"),yN=bF(),qN=Qs(()=>({}),"swallowError"),mN=Qs(async(r={})=>yN.slurpFile(r.configFilepath??uL()).then(_F).then(NN).catch(qN),"loadSsoSessionData"),iN=Qs((...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f},"mergeConfigFiles"),vN=Qs(async(r)=>{const f=await tL(r);return iN(f.configFile,f.credentialsFile)},"parseKnownFiles")});var wA=j((T0r,fA)=>{function nF(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var{defineProperty:YE,getOwnPropertyDescriptor:jN,getOwnPropertyNames:dN}=Object,ON=Object.prototype.hasOwnProperty,uw=(r,f)=>YE(r,"name",{value:f,configurable:!0}),cN=(r,f)=>{for(var s in f)YE(r,s,{get:f[s],enumerable:!0})},bN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of dN(f))if(!ON.call(r,h)&&h!==s)YE(r,h,{get:()=>f[h],enumerable:!(w=jN(f,h))||w.enumerable})}return r},gN=(r)=>bN(YE({},"__esModule",{value:!0}),r),sA={};cN(sA,{loadConfig:()=>oN});fA.exports=gN(sA);var C1=Cr();uw(nF,"getSelectorName");var _N=uw((r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new C1.CredentialsProviderError(s.message||`Not found in ENV: ${nF(r.toString())}`,{logger:f})}},"fromEnv"),rA=eF(),xN=uw((r,{preferredFile:f="config",...s}={})=>async()=>{const w=rA.getProfileName(s),{configFile:h,credentialsFile:$}=await rA.loadSharedConfigFiles(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new C1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${nF(r.toString())}`,{logger:s.logger})}},"fromSharedConfigFiles"),eN=uw((r)=>typeof r==="function","isFunction"),nN=uw((r)=>eN(r)?async()=>await r():C1.fromStatic(r),"fromStatic"),oN=uw(({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>C1.memoize(C1.chain(_N(r),xN(f,w),nN(s))),"loadConfig")});var UA=j((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.getEndpointUrlConfig=void 0;var hA=eF(),$A="AWS_ENDPOINT_URL",EA="endpoint_url",aN=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[$A,...s].join("_")];if(w)return w;const h=f[$A];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(hA.CONFIG_PREFIX_SEPARATOR)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),EA].join(hA.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}const w=f[EA];if(w)return w;return},default:void 0});IA.getEndpointUrlConfig=aN});var CA=j((TA)=>{Object.defineProperty(TA,"__esModule",{value:!0});TA.getEndpointFromConfig=void 0;var pN=wA(),uN=UA(),tN=async(r)=>pN.loadConfig(uN.getEndpointUrlConfig(r))();TA.getEndpointFromConfig=tN});var zA=j((L0r,WA)=>{function AA(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var{defineProperty:KE,getOwnPropertyDescriptor:ry,getOwnPropertyNames:sy}=Object,fy=Object.prototype.hasOwnProperty,wy=(r,f)=>KE(r,"name",{value:f,configurable:!0}),hy=(r,f)=>{for(var s in f)KE(r,s,{get:f[s],enumerable:!0})},$y=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of sy(f))if(!fy.call(r,h)&&h!==s)KE(r,h,{get:()=>f[h],enumerable:!(w=ry(f,h))||w.enumerable})}return r},Ey=(r)=>$y(KE({},"__esModule",{value:!0}),r),LA={};hy(LA,{parseQueryString:()=>AA});WA.exports=Ey(LA);wy(AA,"parseQueryString")});var I0=j((A0r,PA)=>{var{defineProperty:ZE,getOwnPropertyDescriptor:Iy,getOwnPropertyNames:Fy}=Object,Uy=Object.prototype.hasOwnProperty,Ty=(r,f)=>ZE(r,"name",{value:f,configurable:!0}),Gy=(r,f)=>{for(var s in f)ZE(r,s,{get:f[s],enumerable:!0})},Cy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Fy(f))if(!Uy.call(r,h)&&h!==s)ZE(r,h,{get:()=>f[h],enumerable:!(w=Iy(f,h))||w.enumerable})}return r},Ly=(r)=>Cy(ZE({},"__esModule",{value:!0}),r),RA={};Gy(RA,{parseUrl:()=>SA});PA.exports=Ly(RA);var Ay=zA(),SA=Ty((r)=>{if(typeof r==="string")return SA(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:$}=r;let E;if($)E=Ay.parseQueryString($);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:E}},"parseUrl")});var aF=j((W0r,MA)=>{function QA(r,f,s){return{applyToStack:(w)=>{w.add(YA(r,s),ZA),w.add(KA(r,f),JA)}}}var{defineProperty:JE,getOwnPropertyDescriptor:Wy,getOwnPropertyNames:zy}=Object,Ry=Object.prototype.hasOwnProperty,oF=(r,f)=>JE(r,"name",{value:f,configurable:!0}),Sy=(r,f)=>{for(var s in f)JE(r,s,{get:f[s],enumerable:!0})},Py=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of zy(f))if(!Ry.call(r,h)&&h!==s)JE(r,h,{get:()=>f[h],enumerable:!(w=Wy(f,h))||w.enumerable})}return r},Xy=(r)=>Py(JE({},"__esModule",{value:!0}),r),XA={};Sy(XA,{deserializerMiddleware:()=>YA,deserializerMiddlewareOption:()=>ZA,getSerdePlugin:()=>QA,serializerMiddleware:()=>KA,serializerMiddlewareOption:()=>JA});MA.exports=Xy(XA);var YA=oF((r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}},"deserializerMiddleware"),KA=oF((r,f)=>(s,w)=>async(h)=>{var $;const E=(($=w.endpointV2)==null?void 0:$.url)&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const I=await f(h.input,{...r,endpoint:E});return s({...h,request:I})},"serializerMiddleware"),ZA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},JA={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};oF(QA,"getSerdePlugin")});var yA=j((z0r,NA)=>{var{defineProperty:ME,getOwnPropertyDescriptor:Yy,getOwnPropertyNames:Ky}=Object,Zy=Object.prototype.hasOwnProperty,ps=(r,f)=>ME(r,"name",{value:f,configurable:!0}),Jy=(r,f)=>{for(var s in f)ME(r,s,{get:f[s],enumerable:!0})},Qy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ky(f))if(!Zy.call(r,h)&&h!==s)ME(r,h,{get:()=>f[h],enumerable:!(w=Yy(f,h))||w.enumerable})}return r},My=(r)=>Qy(ME({},"__esModule",{value:!0}),r),lA={};Jy(lA,{endpointMiddleware:()=>DA,endpointMiddlewareOptions:()=>kA,getEndpointFromInstructions:()=>HA,getEndpointPlugin:()=>my,resolveEndpointConfig:()=>iy,resolveParams:()=>VA,toEndpointV1:()=>pF});NA.exports=My(lA);var By=ps(async(r)=>{const f=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(ky(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Dy(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),ly=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Hy=/(\d+\.){3}\d+/,Vy=/\.\./,Dy=ps((r)=>ly.test(r)&&!Hy.test(r)&&!Vy.test(r),"isDnsCompatibleBucketName"),ky=ps((r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E},"isArnBucketName"),Ny=ps((r,f,s)=>{const w=ps(async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h},"configProvider");if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.credentialScope)??(h==null?void 0:h.CredentialScope)};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.accountId)??(h==null?void 0:h.AccountId)};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w},"createConfigValueProvider"),yy=CA(),BA=I0(),pF=ps((r)=>{if(typeof r==="object"){if("url"in r)return BA.parseUrl(r.url);return r}return BA.parseUrl(r)},"toEndpointV1"),HA=ps(async(r,f,s,w)=>{if(!s.endpoint){const E=await yy.getEndpointFromConfig(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(pF(E))}const h=await VA(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},"getEndpointFromInstructions"),VA=ps(async(r,f,s)=>{var w;const h={},$=((w=f==null?void 0:f.getEndpointParameterInstructions)==null?void 0:w.call(f))||{};for(let[E,I]of Object.entries($))switch(I.type){case"staticContextParams":h[E]=I.value;break;case"contextParams":h[E]=r[I.name];break;case"clientContextParams":case"builtInParams":h[E]=await Ny(I.name,E,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys($).length===0)Object.assign(h,s);if(String(s.serviceId).toLowerCase()==="s3")await By(h);return h},"resolveParams"),QE=U1(),DA=ps(({config:r,instructions:f})=>{return(s,w)=>async(h)=>{var $,E,I;const F=await HA(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=F,w.authSchemes=($=F.properties)==null?void 0:$.authSchemes;const U=(E=w.authSchemes)==null?void 0:E[0];if(U){w.signing_region=U.signingRegion,w.signing_service=U.signingName;const C=QE.getSmithyContext(w),L=(I=C==null?void 0:C.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return s({...h})}},"endpointMiddleware"),qy=aF(),kA={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:qy.serializerMiddlewareOption.name},my=ps((r,f)=>({applyToStack:(s)=>{s.addRelativeTo(DA({config:r,instructions:f}),kA)}}),"getEndpointPlugin"),iy=ps((r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>pF(await QE.normalizeProvider(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:QE.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:QE.normalizeProvider(r.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var F0=j((R0r,bA)=>{function dA(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}function cA(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}var{defineProperty:BE,getOwnPropertyDescriptor:vy,getOwnPropertyNames:jy}=Object,dy=Object.prototype.hasOwnProperty,N0=(r,f)=>BE(r,"name",{value:f,configurable:!0}),Oy=(r,f)=>{for(var s in f)BE(r,s,{get:f[s],enumerable:!0})},cy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of jy(f))if(!dy.call(r,h)&&h!==s)BE(r,h,{get:()=>f[h],enumerable:!(w=vy(f,h))||w.enumerable})}return r},by=(r)=>cy(BE({},"__esModule",{value:!0}),r),qA={};Oy(qA,{Field:()=>xy,Fields:()=>ey,HttpRequest:()=>ny,HttpResponse:()=>oy,IHttpRequest:()=>mA.HttpRequest,getHttpHandlerExtensionConfiguration:()=>gy,isValidHostname:()=>cA,resolveHttpHandlerRuntimeConfig:()=>_y});bA.exports=by(qA);var gy=N0((r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),_y=N0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),mA=$s(),iA=class r{constructor({name:f,kind:s=mA.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=s,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((s)=>s!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}};N0(iA,"Field");var xy=iA,vA=class r{constructor({fields:f=[],encoding:s="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=s}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((s)=>s.kind===f)}};N0(vA,"Fields");var ey=vA,jA=class r{constructor(f){this.method=f.method||"GET",this.hostname=f.hostname||"localhost",this.port=f.port,this.query=f.query||{},this.headers=f.headers||{},this.body=f.body,this.protocol=f.protocol?f.protocol.slice(-1)!==":"?`${f.protocol}:`:f.protocol:"https:",this.path=f.path?f.path.charAt(0)!=="/"?`/${f.path}`:f.path:"/",this.username=f.username,this.password=f.password,this.fragment=f.fragment}static clone(f){const s=new r({...f,headers:{...f.headers}});if(s.query)s.query=dA(s.query);return s}static isInstance(f){if(!f)return!1;const s=f;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return r.clone(this)}};N0(jA,"HttpRequest");var ny=jA;N0(dA,"cloneQuery");var OA=class r{constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;const s=f;return typeof s.statusCode==="number"&&typeof s.headers==="object"}};N0(OA,"HttpResponse");var oy=OA;N0(cA,"isValidHostname")});var uF=j((gA)=>{function py(r){return r&&r.__esModule?r:{default:r}}function uy(){if(lE>HE.length-16)ay.default.randomFillSync(HE),lE=0;return HE.slice(lE,lE+=16)}Object.defineProperty(gA,"__esModule",{value:!0});gA.default=uy;var ay=py(import.meta.require("crypto")),HE=new Uint8Array(256),lE=HE.length});var eA=j((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.default=void 0;var rq=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;_A.default=rq});var L1=j((nA)=>{function fq(r){return r&&r.__esModule?r:{default:r}}function wq(r){return typeof r==="string"&&sq.default.test(r)}Object.defineProperty(nA,"__esModule",{value:!0});nA.default=void 0;var sq=fq(eA()),hq=wq;nA.default=hq});var A1=j((pA)=>{function Eq(r){return r&&r.__esModule?r:{default:r}}function aA(r,f=0){return jr[r[f+0]]+jr[r[f+1]]+jr[r[f+2]]+jr[r[f+3]]+"-"+jr[r[f+4]]+jr[r[f+5]]+"-"+jr[r[f+6]]+jr[r[f+7]]+"-"+jr[r[f+8]]+jr[r[f+9]]+"-"+jr[r[f+10]]+jr[r[f+11]]+jr[r[f+12]]+jr[r[f+13]]+jr[r[f+14]]+jr[r[f+15]]}function Iq(r,f=0){const s=aA(r,f);if(!$q.default(s))throw TypeError("Stringified UUID is invalid");return s}Object.defineProperty(pA,"__esModule",{value:!0});pA.default=void 0;pA.unsafeStringify=aA;var $q=Eq(L1()),jr=[];for(let r=0;r<256;++r)jr.push((r+256).toString(16).slice(1));var Fq=Iq;pA.default=Fq});var fW=j((rW)=>{function Cq(r){return r&&r.__esModule?r:{default:r}}function Lq(r,f,s){let w=f&&s||0;const h=f||new Array(16);r=r||{};let $=r.node||tA,E=r.clockseq!==void 0?r.clockseq:tF;if($==null||E==null){const R=r.random||(r.rng||Tq.default)();if($==null)$=tA=[R[0]|1,R[1],R[2],R[3],R[4],R[5]];if(E==null)E=tF=(R[6]<<8|R[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:s5+1;const U=I-r5+(F-s5)/1e4;if(U<0&&r.clockseq===void 0)E=E+1&16383;if((U<0||I>r5)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r5=I,s5=F,tF=E,I+=12219292800000;const C=((I&268435455)*1e4+F)%4294967296;h[w++]=C>>>24&255,h[w++]=C>>>16&255,h[w++]=C>>>8&255,h[w++]=C&255;const L=I/4294967296*1e4&268435455;h[w++]=L>>>8&255,h[w++]=L&255,h[w++]=L>>>24&15|16,h[w++]=L>>>16&255,h[w++]=E>>>8|128,h[w++]=E&255;for(let R=0;R<6;++R)h[w+R]=$[R];return f||Gq.unsafeStringify(h)}Object.defineProperty(rW,"__esModule",{value:!0});rW.default=void 0;var Tq=Cq(uF()),Gq=A1(),tA,tF,r5=0,s5=0,Aq=Lq;rW.default=Aq});var f5=j((wW)=>{function zq(r){return r&&r.__esModule?r:{default:r}}function Rq(r){if(!Wq.default(r))throw TypeError("Invalid UUID");let f;const s=new Uint8Array(16);return s[0]=(f=parseInt(r.slice(0,8),16))>>>24,s[1]=f>>>16&255,s[2]=f>>>8&255,s[3]=f&255,s[4]=(f=parseInt(r.slice(9,13),16))>>>8,s[5]=f&255,s[6]=(f=parseInt(r.slice(14,18),16))>>>8,s[7]=f&255,s[8]=(f=parseInt(r.slice(19,23),16))>>>8,s[9]=f&255,s[10]=(f=parseInt(r.slice(24,36),16))/1099511627776&255,s[11]=f/4294967296&255,s[12]=f>>>24&255,s[13]=f>>>16&255,s[14]=f>>>8&255,s[15]=f&255,s}Object.defineProperty(wW,"__esModule",{value:!0});wW.default=void 0;var Wq=zq(L1()),Sq=Rq;wW.default=Sq});var w5=j((IW)=>{function Yq(r){return r&&r.__esModule?r:{default:r}}function Kq(r){r=unescape(encodeURIComponent(r));const f=[];for(let s=0;s<r.length;++s)f.push(r.charCodeAt(s));return f}function Zq(r,f,s){function w(h,$,E,I){var F;if(typeof h==="string")h=Kq(h);if(typeof $==="string")$=Xq.default($);if(((F=$)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+h.length);if(U.set($),U.set(h,$.length),U=s(U),U[6]=U[6]&15|f,U[8]=U[8]&63|128,E){I=I||0;for(let C=0;C<16;++C)E[I+C]=U[C];return E}return Pq.unsafeStringify(U)}try{w.name=r}catch(h){}return w.DNS=$W,w.URL=EW,w}Object.defineProperty(IW,"__esModule",{value:!0});IW.URL=IW.DNS=void 0;IW.default=Zq;var Pq=A1(),Xq=Yq(f5()),$W="6ba7b810-9dad-11d1-80b4-00c04fd430c8";IW.DNS=$W;var EW="6ba7b811-9dad-11d1-80b4-00c04fd430c8";IW.URL=EW});var GW=j((UW)=>{function Bq(r){return r&&r.__esModule?r:{default:r}}function lq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Mq.default.createHash("md5").update(r).digest()}Object.defineProperty(UW,"__esModule",{value:!0});UW.default=void 0;var Mq=Bq(import.meta.require("crypto")),Hq=lq;UW.default=Hq});var WW=j((LW)=>{function CW(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(LW,"__esModule",{value:!0});LW.default=void 0;var Vq=CW(w5()),Dq=CW(GW()),kq=Vq.default("v3",48,Dq.default),Nq=kq;LW.default=Nq});var SW=j((zW)=>{function qq(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(zW,"__esModule",{value:!0});zW.default=void 0;var yq=qq(import.meta.require("crypto")),mq={randomUUID:yq.default.randomUUID};zW.default=mq});var ZW=j((YW)=>{function XW(r){return r&&r.__esModule?r:{default:r}}function jq(r,f,s){if(PW.default.randomUUID&&!f&&!r)return PW.default.randomUUID();r=r||{};const w=r.random||(r.rng||iq.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,f){s=s||0;for(let h=0;h<16;++h)f[s+h]=w[h];return f}return vq.unsafeStringify(w)}Object.defineProperty(YW,"__esModule",{value:!0});YW.default=void 0;var PW=XW(SW()),iq=XW(uF()),vq=A1(),dq=jq;YW.default=dq});var MW=j((JW)=>{function cq(r){return r&&r.__esModule?r:{default:r}}function bq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Oq.default.createHash("sha1").update(r).digest()}Object.defineProperty(JW,"__esModule",{value:!0});JW.default=void 0;var Oq=cq(import.meta.require("crypto")),gq=bq;JW.default=gq});var VW=j((lW)=>{function BW(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(lW,"__esModule",{value:!0});lW.default=void 0;var _q=BW(w5()),xq=BW(MW()),eq=_q.default("v5",80,xq.default),nq=eq;lW.default=nq});var NW=j((DW)=>{Object.defineProperty(DW,"__esModule",{value:!0});DW.default=void 0;var oq="00000000-0000-0000-0000-000000000000";DW.default=oq});var mW=j((yW)=>{function pq(r){return r&&r.__esModule?r:{default:r}}function uq(r){if(!aq.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}Object.defineProperty(yW,"__esModule",{value:!0});yW.default=void 0;var aq=pq(L1()),tq=uq;yW.default=tq});var h5=j((us)=>{function U0(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(us,"__esModule",{value:!0});Object.defineProperty(us,"NIL",{enumerable:!0,get:function(){return hm.default}});Object.defineProperty(us,"parse",{enumerable:!0,get:function(){return Fm.default}});Object.defineProperty(us,"stringify",{enumerable:!0,get:function(){return Im.default}});Object.defineProperty(us,"v1",{enumerable:!0,get:function(){return rm.default}});Object.defineProperty(us,"v3",{enumerable:!0,get:function(){return sm.default}});Object.defineProperty(us,"v4",{enumerable:!0,get:function(){return fm.default}});Object.defineProperty(us,"v5",{enumerable:!0,get:function(){return wm.default}});Object.defineProperty(us,"validate",{enumerable:!0,get:function(){return Em.default}});Object.defineProperty(us,"version",{enumerable:!0,get:function(){return $m.default}});var rm=U0(fW()),sm=U0(WW()),fm=U0(ZW()),wm=U0(VW()),hm=U0(NW()),$m=U0(mW()),Em=U0(L1()),Im=U0(A1()),Fm=U0(f5())});var $5=j((y0r,dW)=>{var{defineProperty:VE,getOwnPropertyDescriptor:Um,getOwnPropertyNames:Tm}=Object,Gm=Object.prototype.hasOwnProperty,tw=(r,f)=>VE(r,"name",{value:f,configurable:!0}),Cm=(r,f)=>{for(var s in f)VE(r,s,{get:f[s],enumerable:!0})},Lm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Tm(f))if(!Gm.call(r,h)&&h!==s)VE(r,h,{get:()=>f[h],enumerable:!(w=Um(f,h))||w.enumerable})}return r},Am=(r)=>Lm(VE({},"__esModule",{value:!0}),r),iW={};Cm(iW,{isClockSkewCorrectedError:()=>vW,isClockSkewError:()=>Ym,isRetryableByTrait:()=>Xm,isServerError:()=>Zm,isThrottlingError:()=>Km,isTransientError:()=>jW});dW.exports=Am(iW);var Wm=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],zm=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Rm=["TimeoutError","RequestTimeout","RequestTimeoutException"],Sm=[500,502,503,504],Pm=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Xm=tw((r)=>r.$retryable!==void 0,"isRetryableByTrait"),Ym=tw((r)=>Wm.includes(r.name),"isClockSkewError"),vW=tw((r)=>{var f;return(f=r.$metadata)==null?void 0:f.clockSkewCorrected},"isClockSkewCorrectedError"),Km=tw((r)=>{var f,s;return((f=r.$metadata)==null?void 0:f.httpStatusCode)===429||zm.includes(r.name)||((s=r.$retryable)==null?void 0:s.throttling)==!0},"isThrottlingError"),jW=tw((r)=>{var f;return vW(r)||Rm.includes(r.name)||Pm.includes((r==null?void 0:r.code)||"")||Sm.includes(((f=r.$metadata)==null?void 0:f.httpStatusCode)||0)},"isTransientError"),Zm=tw((r)=>{var f;if(((f=r.$metadata)==null?void 0:f.httpStatusCode)!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!jW(r))return!0;return!1}return!1},"isServerError")});var rz=j((q0r,tW)=>{var{defineProperty:DE,getOwnPropertyDescriptor:Jm,getOwnPropertyNames:Qm}=Object,Mm=Object.prototype.hasOwnProperty,ts=(r,f)=>DE(r,"name",{value:f,configurable:!0}),Bm=(r,f)=>{for(var s in f)DE(r,s,{get:f[s],enumerable:!0})},lm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Qm(f))if(!Mm.call(r,h)&&h!==s)DE(r,h,{get:()=>f[h],enumerable:!(w=Jm(f,h))||w.enumerable})}return r},Hm=(r)=>lm(DE({},"__esModule",{value:!0}),r),cW={};Bm(cW,{AdaptiveRetryStrategy:()=>qm,ConfiguredRetryStrategy:()=>mm,DEFAULT_MAX_ATTEMPTS:()=>E5,DEFAULT_RETRY_DELAY_BASE:()=>W1,DEFAULT_RETRY_MODE:()=>Vm,DefaultRateLimiter:()=>_W,INITIAL_RETRY_TOKENS:()=>I5,INVOCATION_ID_HEADER:()=>km,MAXIMUM_RETRY_DELAY:()=>F5,NO_RETRY_INCREMENT:()=>oW,REQUEST_HEADER:()=>Nm,RETRY_COST:()=>eW,RETRY_MODES:()=>bW,StandardRetryStrategy:()=>U5,THROTTLING_RETRY_DELAY_BASE:()=>xW,TIMEOUT_RETRY_COST:()=>nW});tW.exports=Hm(cW);var bW=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(bW||{}),E5=3,Vm="standard",Dm=$5(),gW=class r{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(f==null?void 0:f.beta)??0.7,this.minCapacity=(f==null?void 0:f.minCapacity)??1,this.minFillRate=(f==null?void 0:f.minFillRate)??0.5,this.scaleConstant=(f==null?void 0:f.scaleConstant)??0.4,this.smooth=(f==null?void 0:f.smooth)??0.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const s=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,s))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const s=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=f}updateClientSendingRate(f){let s;if(this.updateMeasuredRate(),Dm.isThrottlingError(f)){const h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),s=Math.floor(f*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){const w=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(f){return parseFloat(f.toFixed(8))}};ts(gW,"DefaultRateLimiter");var _W=gW,W1=100,F5=20000,xW=500,I5=500,eW=5,nW=10,oW=1,km="amz-sdk-invocation-id",Nm="amz-sdk-request",ym=ts(()=>{let r=W1;return{computeNextBackoffDelay:ts((w)=>{return Math.floor(Math.min(F5,Math.random()*2**w*r))},"computeNextBackoffDelay"),setDelayBase:ts((w)=>{r=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),OW=ts(({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:ts(()=>f,"getRetryCount"),getRetryDelay:ts(()=>Math.min(F5,r),"getRetryDelay"),getRetryCost:ts(()=>s,"getRetryCost")}},"createDefaultRetryToken"),aW=class r{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=I5,this.retryBackoffStrategy=ym(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return OW({retryDelay:W1,retryCount:0})}async refreshRetryTokenForRetry(f,s){const w=await this.getMaxAttempts();if(this.shouldRetry(f,s,w)){const h=s.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?xW:W1);const $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),E=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,$):$,I=this.getCapacityCost(h);return this.capacity-=I,OW({retryDelay:E,retryCount:f.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(I5,this.capacity+(f.getRetryCost()??oW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${E5}`),E5}}shouldRetry(f,s,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(f){return f==="TRANSIENT"?nW:eW}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}};ts(aW,"StandardRetryStrategy");var U5=aW,pW=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode="adaptive";const{rateLimiter:w}=s??{};this.rateLimiter=w??new _W,this.standardRetryStrategy=new U5(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(f,s)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}};ts(pW,"AdaptiveRetryStrategy");var qm=pW,uW=class r extends U5{constructor(f,s=W1){super(typeof f==="function"?f:async()=>f);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s}async refreshRetryTokenForRetry(f,s){const w=await super.refreshRetryTokenForRetry(f,s);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};ts(uW,"ConfiguredRetryStrategy");var mm=uW});var $z=j((m0r,hz)=>{var{defineProperty:kE,getOwnPropertyDescriptor:im,getOwnPropertyNames:vm}=Object,jm=Object.prototype.hasOwnProperty,Ms=(r,f)=>kE(r,"name",{value:f,configurable:!0}),dm=(r,f)=>{for(var s in f)kE(r,s,{get:f[s],enumerable:!0})},Om=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of vm(f))if(!jm.call(r,h)&&h!==s)kE(r,h,{get:()=>f[h],enumerable:!(w=im(f,h))||w.enumerable})}return r},cm=(r)=>Om(kE({},"__esModule",{value:!0}),r),wz={};dm(wz,{constructStack:()=>T5});hz.exports=cm(wz);var Ww=Ms((r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},"getAllAliases"),y0=Ms((r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},"getMiddlewareNameWithAliases"),T5=Ms(()=>{let r=[],f=[],s=!1;const w=new Set,h=Ms((L)=>L.sort((R,S)=>sz[S.step]-sz[R.step]||fz[S.priority||"normal"]-fz[R.priority||"normal"]),"sort"),$=Ms((L)=>{let R=!1;const S=Ms((K)=>{const k=Ww(K.name,K.aliases);if(k.includes(L)){R=!0;for(let l of k)w.delete(l);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),R},"removeByName"),E=Ms((L)=>{let R=!1;const S=Ms((K)=>{if(K.middleware===L){R=!0;for(let k of Ww(K.name,K.aliases))w.delete(k);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),R},"removeByReference"),I=Ms((L)=>{var R;return r.forEach((S)=>{L.add(S.middleware,{...S})}),f.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),(R=L.identifyOnResolve)==null||R.call(L,C.identifyOnResolve()),L},"cloneTo"),F=Ms((L)=>{const R=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)R.push(S);else R.push(...F(S))}),R.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)R.push(S);else R.push(...F(S))}),R},"expandRelativeMiddlewareList"),U=Ms((L=!1)=>{const R=[],S=[],K={};return r.forEach((l)=>{const M={...l,before:[],after:[]};for(let N of Ww(M.name,M.aliases))K[N]=M;R.push(M)}),f.forEach((l)=>{const M={...l,before:[],after:[]};for(let N of Ww(M.name,M.aliases))K[N]=M;S.push(M)}),S.forEach((l)=>{if(l.toMiddleware){const M=K[l.toMiddleware];if(M===void 0){if(L)return;throw new Error(`${l.toMiddleware} is not found when adding ${y0(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")M.after.push(l);if(l.relation==="before")M.before.push(l)}}),h(R).map(F).reduce((l,M)=>{return l.push(...M),l},[])},"getMiddlewareList"),C={add:(L,R={})=>{const{name:S,override:K,aliases:k}=R,l={step:"initialize",priority:"normal",middleware:L,...R},M=Ww(S,k);if(M.length>0){if(M.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${y0(S,k)}'`);for(let N of M){const x=r.findIndex((wr)=>{var Vr;return wr.name===N||((Vr=wr.aliases)==null?void 0:Vr.some((Gw)=>Gw===N))});if(x===-1)continue;const e=r[x];if(e.step!==l.step||l.priority!==e.priority)throw new Error(`"${y0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${y0(S,k)}" middleware with ${l.priority} priority in ${l.step} step.`);r.splice(x,1)}}for(let N of M)w.add(N)}r.push(l)},addRelativeTo:(L,R)=>{const{name:S,override:K,aliases:k}=R,l={middleware:L,...R},M=Ww(S,k);if(M.length>0){if(M.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${y0(S,k)}'`);for(let N of M){const x=f.findIndex((wr)=>{var Vr;return wr.name===N||((Vr=wr.aliases)==null?void 0:Vr.some((Gw)=>Gw===N))});if(x===-1)continue;const e=f[x];if(e.toMiddleware!==l.toMiddleware||e.relation!==l.relation)throw new Error(`"${y0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${y0(S,k)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);f.splice(x,1)}}for(let N of M)w.add(N)}f.push(l)},clone:()=>I(T5()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let R=!1;const S=Ms((K)=>{const{tags:k,name:l,aliases:M}=K;if(k&&k.includes(L)){const N=Ww(l,M);for(let x of N)w.delete(x);return R=!0,!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),R},concat:(L)=>{var R;const S=I(T5());return S.use(L),S.identifyOnResolve(s||S.identifyOnResolve()||(((R=L.identifyOnResolve)==null?void 0:R.call(L))??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const R=L.step??L.relation+" "+L.toMiddleware;return y0(L.name,L.aliases)+" - "+R})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,R)=>{for(let S of U().map((K)=>K.middleware).reverse())L=S(L,R);if(s)console.log(C.identify());return L}};return C},"constructStack"),sz={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},fz={high:3,normal:2,low:1}});var G5=j((i0r,Iz)=>{var{defineProperty:NE,getOwnPropertyDescriptor:bm,getOwnPropertyNames:gm}=Object,_m=Object.prototype.hasOwnProperty,xm=(r,f)=>NE(r,"name",{value:f,configurable:!0}),em=(r,f)=>{for(var s in f)NE(r,s,{get:f[s],enumerable:!0})},nm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of gm(f))if(!_m.call(r,h)&&h!==s)NE(r,h,{get:()=>f[h],enumerable:!(w=bm(f,h))||w.enumerable})}return r},om=(r)=>nm(NE({},"__esModule",{value:!0}),r),Ez={};em(Ez,{isArrayBuffer:()=>am});Iz.exports=om(Ez);var am=xm((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var z1=j((v0r,Tz)=>{var{defineProperty:yE,getOwnPropertyDescriptor:pm,getOwnPropertyNames:um}=Object,tm=Object.prototype.hasOwnProperty,Fz=(r,f)=>yE(r,"name",{value:f,configurable:!0}),ri=(r,f)=>{for(var s in f)yE(r,s,{get:f[s],enumerable:!0})},si=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of um(f))if(!tm.call(r,h)&&h!==s)yE(r,h,{get:()=>f[h],enumerable:!(w=pm(f,h))||w.enumerable})}return r},fi=(r)=>si(yE({},"__esModule",{value:!0}),r),Uz={};ri(Uz,{fromArrayBuffer:()=>hi,fromString:()=>$i});Tz.exports=fi(Uz);var wi=G5(),C5=import.meta.require("buffer"),hi=Fz((r,f=0,s=r.byteLength-f)=>{if(!wi.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return C5.Buffer.from(r,f,s)},"fromArrayBuffer"),$i=Fz((r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?C5.Buffer.from(r,f):C5.Buffer.from(r)},"fromString")});var Lz=j((Gz)=>{Object.defineProperty(Gz,"__esModule",{value:!0});Gz.fromBase64=void 0;var Ei=z1(),Ii=/^[A-Za-z0-9+/]*={0,2}$/,Fi=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Ii.exec(r))throw new TypeError("Invalid base64 string.");const f=Ei.fromString(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};Gz.fromBase64=Fi});var q0=j((d0r,Rz)=>{var{defineProperty:qE,getOwnPropertyDescriptor:Ui,getOwnPropertyNames:Ti}=Object,Gi=Object.prototype.hasOwnProperty,L5=(r,f)=>qE(r,"name",{value:f,configurable:!0}),Ci=(r,f)=>{for(var s in f)qE(r,s,{get:f[s],enumerable:!0})},Li=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ti(f))if(!Gi.call(r,h)&&h!==s)qE(r,h,{get:()=>f[h],enumerable:!(w=Ui(f,h))||w.enumerable})}return r},Ai=(r)=>Li(qE({},"__esModule",{value:!0}),r),Az={};Ci(Az,{fromUtf8:()=>zz,toUint8Array:()=>Wi,toUtf8:()=>zi});Rz.exports=Ai(Az);var Wz=z1(),zz=L5((r)=>{const f=Wz.fromString(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Wi=L5((r)=>{if(typeof r==="string")return zz(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),zi=L5((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Wz.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var Xz=j((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.toBase64=void 0;var Ri=z1(),Si=q0(),Pi=(r)=>{let f;if(typeof r==="string")f=Si.fromUtf8(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ri.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("base64")};Sz.toBase64=Pi});var iE=j((c0r,mE)=>{var{defineProperty:Yz,getOwnPropertyDescriptor:Xi,getOwnPropertyNames:Yi}=Object,Ki=Object.prototype.hasOwnProperty,A5=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Yi(f))if(!Ki.call(r,h)&&h!==s)Yz(r,h,{get:()=>f[h],enumerable:!(w=Xi(f,h))||w.enumerable})}return r},Kz=(r,f,s)=>(A5(r,f,"default"),s&&A5(s,f,"default")),Zi=(r)=>A5(Yz({},"__esModule",{value:!0}),r),W5={};mE.exports=Zi(W5);Kz(W5,Lz(),mE.exports);Kz(W5,Xz(),mE.exports)});var Qz=j((Zz)=>{Object.defineProperty(Zz,"__esModule",{value:!0});Zz.getAwsChunkedEncodingStream=void 0;var Ji=import.meta.require("stream"),Qi=(r,f)=>{const{base64Encoder:s,bodyLengthChecker:w,checksumAlgorithmFn:h,checksumLocationName:$,streamHasher:E}=f,I=s!==void 0&&h!==void 0&&$!==void 0&&E!==void 0,F=I?E(h,r):void 0,U=new Ji.Readable({read:()=>{}});return r.on("data",(C)=>{const L=w(C)||0;U.push(`${L.toString(16)}\r\n`),U.push(C),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){const C=s(await F);U.push(`${$}:${C}\r\n`),U.push("\r\n")}U.push(null)}),U};Zz.getAwsChunkedEncodingStream=Qi});var jE=j((g0r,lz)=>{var{defineProperty:vE,getOwnPropertyDescriptor:Mi,getOwnPropertyNames:Bi}=Object,li=Object.prototype.hasOwnProperty,z5=(r,f)=>vE(r,"name",{value:f,configurable:!0}),Hi=(r,f)=>{for(var s in f)vE(r,s,{get:f[s],enumerable:!0})},Vi=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Bi(f))if(!li.call(r,h)&&h!==s)vE(r,h,{get:()=>f[h],enumerable:!(w=Mi(f,h))||w.enumerable})}return r},Di=(r)=>Vi(vE({},"__esModule",{value:!0}),r),Mz={};Hi(Mz,{escapeUri:()=>Bz,escapeUriPath:()=>Ni});lz.exports=Di(Mz);var Bz=z5((r)=>encodeURIComponent(r).replace(/[!'()*]/g,ki),"escapeUri"),ki=z5((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Ni=z5((r)=>r.split("/").map(Bz).join("/"),"escapeUriPath")});var S5=j((_0r,Dz)=>{function Vz(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=R5.escapeUri(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${R5.escapeUri(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${R5.escapeUri(w)}`;f.push(h)}}return f.join("&")}var{defineProperty:dE,getOwnPropertyDescriptor:yi,getOwnPropertyNames:qi}=Object,mi=Object.prototype.hasOwnProperty,ii=(r,f)=>dE(r,"name",{value:f,configurable:!0}),vi=(r,f)=>{for(var s in f)dE(r,s,{get:f[s],enumerable:!0})},ji=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of qi(f))if(!mi.call(r,h)&&h!==s)dE(r,h,{get:()=>f[h],enumerable:!(w=yi(f,h))||w.enumerable})}return r},di=(r)=>ji(dE({},"__esModule",{value:!0}),r),Hz={};vi(Hz,{buildQueryString:()=>Vz});Dz.exports=di(Hz);var R5=jE();ii(Vz,"buildQueryString")});var nz=j((x0r,ez)=>{async function Y5(r,f,s=kz){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(kz,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)dz(r,f.body)}function dz(r,f){if(f instanceof jz.Readable){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}async function xz(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var{create:Oi,defineProperty:R1,getOwnPropertyDescriptor:ci,getOwnPropertyNames:bi,getPrototypeOf:gi}=Object,_i=Object.prototype.hasOwnProperty,Jr=(r,f)=>R1(r,"name",{value:f,configurable:!0}),xi=(r,f)=>{for(var s in f)R1(r,s,{get:f[s],enumerable:!0})},yz=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of bi(f))if(!_i.call(r,h)&&h!==s)R1(r,h,{get:()=>f[h],enumerable:!(w=ci(f,h))||w.enumerable})}return r},ei=(r,f,s)=>(s=r!=null?Oi(gi(r)):{},yz(f||!r||!r.__esModule?R1(s,"default",{value:r,enumerable:!0}):s,r)),ni=(r)=>yz(R1({},"__esModule",{value:!0}),r),qz={};xi(qz,{DEFAULT_REQUEST_TIMEOUT:()=>ti,NodeHttp2Handler:()=>hv,NodeHttpHandler:()=>rv,streamCollector:()=>Ev});ez.exports=ni(qz);var mz=F0(),iz=S5(),P5=import.meta.require("http"),X5=import.meta.require("https"),oi=["ECONNRESET","EPIPE","ETIMEDOUT"],vz=Jr((r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f},"getTransformedHeaders"),ai=Jr((r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})},"setConnectionTimeout"),pi=Jr((r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})},"setSocketKeepAlive"),ui=Jr((r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),jz=import.meta.require("stream"),kz=1000;Jr(Y5,"writeRequestBody");Jr(dz,"writeBody");var ti=0,Oz=class r{constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(this.resolveDefaultConfig(h))}).catch(w);else s(this.resolveDefaultConfig(f))})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}static checkSocketUsage(f,s,w=console){var h,$,E;const{sockets:I,requests:F,maxSockets:U}=f;if(typeof U!=="number"||U===1/0)return s;const C=15000;if(Date.now()-C<s)return s;if(I&&F)for(let L in I){const R=((h=I[L])==null?void 0:h.length)??0,S=(($=F[L])==null?void 0:$.length)??0;if(R>=U&&S>=2*U)return(E=w==null?void 0:w.warn)==null||E.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${R} and ${S} additional requests are enqueued.
|
|
3
3
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
4
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}resolveDefaultConfig(f){const{requestTimeout:s,connectionTimeout:w,socketTimeout:h,httpAgent:$,httpsAgent:E}=f||{};return{connectionTimeout:w,requestTimeout:s??h,httpAgent:(()=>{if($ instanceof WU.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new WU.Agent({keepAlive:!0,maxSockets:50,...$})})(),httpsAgent:(()=>{if(E instanceof zU.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new zU.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){var f,s,w,h;(s=(f=this.config)==null?void 0:f.httpAgent)==null||s.destroy(),(h=(w=this.config)==null?void 0:w.httpsAgent)==null||h.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;let w;return new Promise((h,$)=>{let E=void 0;const I=Jr(async(i)=>{await E,clearTimeout(w),h(i)},"resolve"),F=Jr(async(i)=>{await E,clearTimeout(w),$(i)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s==null?void 0:s.aborted){const i=new Error("Request aborted");i.name="AbortError",F(i);return}const U=f.protocol==="https:",C=U?this.config.httpsAgent:this.config.httpAgent;w=setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const L=VW.buildQueryString(f.query||{});let z=void 0;if(f.username!=null||f.password!=null){const i=f.username??"",x=f.password??"";z=`${i}:${x}`}let S=f.path;if(L)S+=`?${L}`;if(f.fragment)S+=`#${f.fragment}`;const Z={headers:f.headers,host:f.hostname,method:f.method,path:S,port:f.port,agent:C,auth:z},B=(U?zU.request:WU.request)(Z,(i)=>{const x=new HW.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:kW(i.headers),body:i});I({response:x})});if(B.on("error",(i)=>{if(kq.includes(i.code))F(Object.assign(i,{name:"TimeoutError"}));else F(i)}),Dq(B,F,this.config.connectionTimeout),yq(B,F,this.config.requestTimeout),s){const i=Jr(()=>{B.destroy();const x=new Error("Request aborted");x.name="AbortError",F(x)},"onAbort");if(typeof s.addEventListener==="function"){const x=s;x.addEventListener("abort",i,{once:!0}),B.once("close",()=>x.removeEventListener("abort",i))}else s.onabort=i}const Q=Z.agent;if(typeof Q==="object"&&"keepAlive"in Q)iq(B,{keepAlive:Q.keepAlive,keepAliveMsecs:Q.keepAliveMsecs});E=SU(B,f,this.config.requestTimeout).catch((i)=>{return clearTimeout(w),$(i)})})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}};Jr(yW,"NodeHttpHandler");var Nq=yW,QW=import.meta.require("http2"),qq=Hq(import.meta.require("http2")),mW=class r{constructor(f){this.sessions=[],this.sessions=f??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((s)=>s!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let s of this.sessions)if(s===f){if(!s.destroyed)s.destroy()}}};Jr(mW,"NodeHttp2ConnectionPool");var vq=mW,NW=class r{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(f,s){const w=this.getUrlString(f),h=this.sessionCache.get(w);if(h){const F=h.poll();if(F&&!this.config.disableConcurrency)return F}const $=qq.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();const E=Jr(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",E),$.on("error",E),$.on("frameError",E),$.on("close",()=>this.deleteSession(w,$)),s.requestTimeout)$.setTimeout(s.requestTimeout,E);const I=this.sessionCache.get(w)||new vq;return I.offerLast($),this.sessionCache.set(w,I),$}deleteSession(f,s){const w=this.sessionCache.get(f);if(!w)return;if(!w.contains(s))return;w.remove(s),this.sessionCache.set(f,w)}release(f,s){var w;const h=this.getUrlString(f);(w=this.sessionCache.get(h))==null||w.offerLast(s)}destroy(){for(let[f,s]of this.sessionCache){for(let w of s){if(!w.destroyed)w.destroy();s.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}};Jr(NW,"NodeHttp2ConnectionManager");var jq=NW,qW=class r{constructor(f){this.metadata={handlerProtocol:"h2"},this.connectionManager=new jq({}),this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(h||{})}).catch(w);else s(f||{})})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}destroy(){this.connectionManager.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:h}=this.config;return new Promise(($,E)=>{var I;let F=!1,U=void 0;const C=Jr(async(lr)=>{await U,$(lr)},"resolve"),L=Jr(async(lr)=>{await U,E(lr)},"reject");if(s==null?void 0:s.aborted){F=!0;const lr=new Error("Request aborted");lr.name="AbortError",L(lr);return}const{hostname:z,method:S,port:Z,protocol:D,query:B}=f;let Q="";if(f.username!=null||f.password!=null){const lr=f.username??"",as=f.password??"";Q=`${lr}:${as}@`}const i=`${D}//${Q}${z}${Z?`:${Z}`:""}`,x={destination:new URL(i)},e=this.connectionManager.lease(x,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:h||!1}),hr=Jr((lr)=>{if(h)this.destroySession(e);F=!0,L(lr)},"rejectWithDestroy"),kr=VW.buildQueryString(B||{});let Rw=f.path;if(kr)Rw+=`?${kr}`;if(f.fragment)Rw+=`#${f.fragment}`;const Ks=e.request({...f.headers,[QW.constants.HTTP2_HEADER_PATH]:Rw,[QW.constants.HTTP2_HEADER_METHOD]:S});if(e.ref(),Ks.on("response",(lr)=>{const as=new HW.HttpResponse({statusCode:lr[":status"]||-1,headers:kW(lr),body:Ks});if(F=!0,C({response:as}),h)e.close(),this.connectionManager.deleteSession(i,e)}),w)Ks.setTimeout(w,()=>{Ks.close();const lr=new Error(`Stream timed out because of no activity for ${w} ms`);lr.name="TimeoutError",hr(lr)});if(s){const lr=Jr(()=>{Ks.close();const as=new Error("Request aborted");as.name="AbortError",hr(as)},"onAbort");if(typeof s.addEventListener==="function"){const as=s;as.addEventListener("abort",lr,{once:!0}),Ks.once("close",()=>as.removeEventListener("abort",lr))}else s.onabort=lr}Ks.on("frameError",(lr,as,qk)=>{hr(new Error(`Frame type id ${lr} in stream id ${qk} has failed with code ${as}.`))}),Ks.on("error",hr),Ks.on("aborted",()=>{hr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Ks.rstCode}.`))}),Ks.on("close",()=>{if(e.unref(),h)e.destroy();if(!F)hr(new Error("Unexpected error: http2 request did not get a response"))}),U=SU(Ks,f,w)})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}destroySession(f){if(!f.destroyed)f.destroy()}};Jr(qW,"NodeHttp2Handler");var dq=qW,vW=class r extends DW.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,s,w){this.bufferedBytes.push(f),w()}};Jr(vW,"Collector");var Oq=vW,cq=Jr((r)=>{if(bq(r))return jW(r);return new Promise((f,s)=>{const w=new Oq;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},"streamCollector"),bq=Jr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");Jr(jW,"collectReadableStream")});var aW=v((H0r,oW)=>{function gW(r=0){return new Promise((f,s)=>{if(r)setTimeout(()=>{const w=new Error(`Request did not complete within ${r} ms`);w.name="TimeoutError",s(w)},r)})}async function xW(r){const f=await nW(r),s=uq.fromBase64(f);return new Uint8Array(s)}async function eW(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function nW(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var{defineProperty:gE,getOwnPropertyDescriptor:gq,getOwnPropertyNames:_q}=Object,xq=Object.prototype.hasOwnProperty,L0=(r,f)=>gE(r,"name",{value:f,configurable:!0}),eq=(r,f)=>{for(var s in f)gE(r,s,{get:f[s],enumerable:!0})},nq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of _q(f))if(!xq.call(r,h)&&h!==s)gE(r,h,{get:()=>f[h],enumerable:!(w=gq(f,h))||w.enumerable})}return r},oq=(r)=>nq(gE({},"__esModule",{value:!0}),r),bW={};eq(bW,{FetchHttpHandler:()=>pq,keepAliveSupport:()=>bE,streamCollector:()=>tq});oW.exports=oq(bW);var cW=G0(),aq=RU();L0(gW,"requestTimeout");var bE={supported:void 0},_W=class r{static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}constructor(f){if(typeof f==="function")this.configProvider=f().then((s)=>s||{});else this.config=f??{},this.configProvider=Promise.resolve(this.config);if(bE.supported===void 0)bE.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;const w=this.config.requestTimeout,h=this.config.keepAlive===!0,$=this.config.credentials;if(s==null?void 0:s.aborted){const Q=new Error("Request aborted");return Q.name="AbortError",Promise.reject(Q)}let E=f.path;const I=aq.buildQueryString(f.query||{});if(I)E+=`?${I}`;if(f.fragment)E+=`#${f.fragment}`;let F="";if(f.username!=null||f.password!=null){const Q=f.username??"",i=f.password??"";F=`${Q}:${i}@`}const{port:U,method:C}=f,L=`${f.protocol}//${F}${f.hostname}${U?`:${U}`:""}${E}`,z=C==="GET"||C==="HEAD"?void 0:f.body,S={body:z,headers:new Headers(f.headers),method:C,credentials:$};if(z)S.duplex="half";if(typeof AbortController!=="undefined")S.signal=s;if(bE.supported)S.keepalive=h;let Z=L0(()=>{},"removeSignalEventListener");const D=new Request(L,S),B=[fetch(D).then((Q)=>{const i=Q.headers,x={};for(let hr of i.entries())x[hr[0]]=hr[1];if(Q.body==null)return Q.blob().then((hr)=>({response:new cW.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:hr})}));return{response:new cW.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:Q.body})}}),gW(w)];if(s)B.push(new Promise((Q,i)=>{const x=L0(()=>{const e=new Error("Request aborted");e.name="AbortError",i(e)},"onAbort");if(typeof s.addEventListener==="function"){const e=s;e.addEventListener("abort",x,{once:!0}),Z=L0(()=>e.removeEventListener("abort",x),"removeSignalEventListener")}else s.onabort=x}));return Promise.race(B).finally(Z)}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[f]=s,w})}httpHandlerConfigs(){return this.config??{}}};L0(_W,"FetchHttpHandler");var pq=_W,uq=dE(),tq=L0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return xW(r);return eW(r)},"streamCollector");L0(xW,"collectBlob");L0(eW,"collectStream");L0(nW,"readToBase64")});var xE=v((V0r,fz)=>{function rz(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const f=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2){const w=r.slice(s,s+2).toLowerCase();if(w in PU)f[s/2]=PU[w];else throw new Error(`Cannot decode unrecognized sequence ${w} as hexadecimal`)}return f}function sz(r){let f="";for(let s=0;s<r.byteLength;s++)f+=tW[r[s]];return f}var{defineProperty:_E,getOwnPropertyDescriptor:rv,getOwnPropertyNames:sv}=Object,fv=Object.prototype.hasOwnProperty,pW=(r,f)=>_E(r,"name",{value:f,configurable:!0}),wv=(r,f)=>{for(var s in f)_E(r,s,{get:f[s],enumerable:!0})},hv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of sv(f))if(!fv.call(r,h)&&h!==s)_E(r,h,{get:()=>f[h],enumerable:!(w=rv(f,h))||w.enumerable})}return r},$v=(r)=>hv(_E({},"__esModule",{value:!0}),r),uW={};wv(uW,{fromHex:()=>rz,toHex:()=>sz});fz.exports=$v(uW);var tW={},PU={};for(let r=0;r<256;r++){let f=r.toString(16).toLowerCase();if(f.length===1)f=`0${f}`;tW[r]=f,PU[f]=r}pW(rz,"fromHex");pW(sz,"toHex")});var X1=v((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.isReadableStream=void 0;var Ev=(r)=>{var f;return typeof ReadableStream==="function"&&(((f=r===null||r===void 0?void 0:r.constructor)===null||f===void 0?void 0:f.name)===ReadableStream.name||r instanceof ReadableStream)};wz.isReadableStream=Ev});var Tz=v((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.sdkStreamMixin=void 0;var Iv=aW(),Fv=dE(),Uv=xE(),Tv=j0(),$z=X1(),Ez="The stream has already been transformed.",Gv=(r)=>{var f,s;if(!Iz(r)&&!$z.isReadableStream(r)){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(Ez);return w=!0,await Iv.streamCollector(r)},$=(E)=>{if(typeof E.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return E.stream()};return Object.assign(r,{transformToByteArray:h,transformToString:async(E)=>{const I=await h();if(E==="base64")return Fv.toBase64(I);else if(E==="hex")return Uv.toHex(I);else if(E===void 0||E==="utf8"||E==="utf-8")return Tv.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error(Ez);if(w=!0,Iz(r))return $(r);else if($z.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};Fz.sdkStreamMixin=Gv;var Iz=(r)=>typeof Blob==="function"&&r instanceof Blob});var Az=v((Cz)=>{Object.defineProperty(Cz,"__esModule",{value:!0});Cz.sdkStreamMixin=void 0;var Cv=OW(),Lv=S1(),XU=import.meta.require("stream"),Av=import.meta.require("util"),Rv=Tz(),Gz="The stream has already been transformed.",Wv=(r)=>{var f,s;if(!(r instanceof XU.Readable))try{return Rv.sdkStreamMixin(r)}catch($){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(Gz);return w=!0,await Cv.streamCollector(r)};return Object.assign(r,{transformToByteArray:h,transformToString:async($)=>{const E=await h();if($===void 0||Buffer.isEncoding($))return Lv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString($);else return new Av.TextDecoder($).decode(E)},transformToWebStream:()=>{if(w)throw new Error(Gz);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof XU.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return w=!0,XU.Readable.toWeb(r)}})};Cz.sdkStreamMixin=Wv});var zz=v((Rz)=>{async function zv(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}Object.defineProperty(Rz,"__esModule",{value:!0});Rz.splitStream=void 0;Rz.splitStream=zv});var Yz=v((Pz)=>{async function Xv(r){if(Pv.isReadableStream(r))return Sv.splitStream(r);const f=new Sz.PassThrough,s=new Sz.PassThrough;return r.pipe(f),r.pipe(s),[f,s]}Object.defineProperty(Pz,"__esModule",{value:!0});Pz.splitStream=void 0;var Sz=import.meta.require("stream"),Sv=zz(),Pv=X1();Pz.splitStream=Xv});var lz=v((Kz)=>{async function Yv(r,f){var s;let w=0;const h=[],$=r.getReader();let E=!1;while(!E){const{done:U,value:C}=await $.read();if(C)h.push(C),w+=(s=C===null||C===void 0?void 0:C.byteLength)!==null&&s!==void 0?s:0;if(w>=f)break;E=U}$.releaseLock();const I=new Uint8Array(Math.min(f,w));let F=0;for(let U of h){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}Object.defineProperty(Kz,"__esModule",{value:!0});Kz.headStream=void 0;Kz.headStream=Yv});var Bz=v((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.headStream=void 0;var Kv=import.meta.require("stream"),Zv=lz(),lv=X1(),Jv=(r,f)=>{if(lv.isReadableStream(r))return Zv.headStream(r,f);return new Promise((s,w)=>{const h=new Jz;h.limit=f,r.pipe(h),r.on("error",($)=>{h.end(),w($)}),h.on("error",w),h.on("finish",function(){const $=new Uint8Array(Buffer.concat(this.buffers));s($)})})};Qz.headStream=Jv;class Jz extends Kv.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,f,s){var w;if(this.buffers.push(r),this.bytesBuffered+=(w=r.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const h=this.bytesBuffered-this.limit,$=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=$.subarray(0,$.byteLength-h),this.emit("finish")}s()}}});var yz=v((v0r,Yw)=>{function kz(r,f="utf-8"){if(f==="base64")return Hz.toBase64(r);return Vz.toUtf8(r)}function Dz(r,f){if(f==="base64")return KU.mutate(Hz.fromBase64(r));return KU.mutate(Vz.fromUtf8(r))}var{defineProperty:eE,getOwnPropertyDescriptor:Qv,getOwnPropertyNames:Mv}=Object,Bv=Object.prototype.hasOwnProperty,ZU=(r,f)=>eE(r,"name",{value:f,configurable:!0}),Hv=(r,f)=>{for(var s in f)eE(r,s,{get:f[s],enumerable:!0})},YU=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Mv(f))if(!Bv.call(r,h)&&h!==s)eE(r,h,{get:()=>f[h],enumerable:!(w=Qv(f,h))||w.enumerable})}return r},Y1=(r,f,s)=>(YU(r,f,"default"),s&&YU(s,f,"default")),Vv=(r)=>YU(eE({},"__esModule",{value:!0}),r),Xw={};Hv(Xw,{Uint8ArrayBlobAdapter:()=>KU});Yw.exports=Vv(Xw);var Hz=dE(),Vz=j0();ZU(kz,"transformToString");ZU(Dz,"transformFromString");var iz=class r extends Uint8Array{static fromString(f,s="utf-8"){switch(typeof f){case"string":return Dz(f,s);default:throw new Error(`Unsupported conversion from ${typeof f} to Uint8ArrayBlobAdapter.`)}}static mutate(f){return Object.setPrototypeOf(f,r.prototype),f}transformToString(f="utf-8"){return kz(this,f)}};ZU(iz,"Uint8ArrayBlobAdapter");var KU=iz;Y1(Xw,SW(),Yw.exports);Y1(Xw,Az(),Yw.exports);Y1(Xw,Yz(),Yw.exports);Y1(Xw,Bz(),Yw.exports);Y1(Xw,X1(),Yw.exports)});var Fh=v((j0r,wS)=>{function nz(r){const f=r.getUTCFullYear(),s=r.getUTCMonth(),w=r.getUTCDay(),h=r.getUTCDate(),$=r.getUTCHours(),E=r.getUTCMinutes(),I=r.getUTCSeconds(),F=h<10?`0${h}`:`${h}`,U=$<10?`0${$}`:`${$}`,C=E<10?`0${E}`:`${E}`,L=I<10?`0${I}`:`${I}`;return`${hj[w]}, ${F} ${yU[s]} ${f} ${U}:${C}:${L} GMT`}function aE(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}function mU(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,qj(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}sS(w,null,$,E)}return w}function fS(r,f,s){if(s<=0||!Number.isInteger(s))throw new Error("Invalid number of delimiters ("+s+") for splitEvery.");const w=r.split(f);if(s===1)return w;const h=[];let $="";for(let E=0;E<w.length;E++){if($==="")$=w[E];else $+=f+w[E];if((E+1)%s===0)h.push($),$=""}if($!=="")h.push($);return h}var{defineProperty:pE,getOwnPropertyDescriptor:kv,getOwnPropertyNames:Dv}=Object,iv=Object.prototype.hasOwnProperty,q=(r,f)=>pE(r,"name",{value:f,configurable:!0}),yv=(r,f)=>{for(var s in f)pE(r,s,{get:f[s],enumerable:!0})},mv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Dv(f))if(!iv.call(r,h)&&h!==s)pE(r,h,{get:()=>f[h],enumerable:!(w=kv(f,h))||w.enumerable})}return r},Nv=(r)=>mv(pE({},"__esModule",{value:!0}),r),Nz={};yv(Nz,{Client:()=>vv,Command:()=>Oz,LazyJsonString:()=>yj,NoOpLogger:()=>qv,SENSITIVE_STRING:()=>Ov,ServiceException:()=>Kj,StringWrapper:()=>Q1,_json:()=>VU,collectBody:()=>jv,convertMap:()=>mj,createAggregatedClient:()=>cv,dateToUtcString:()=>nz,decorateServiceException:()=>az,emitWarningIfUnsupportedVersion:()=>Qj,expectBoolean:()=>gv,expectByte:()=>HU,expectFloat32:()=>nE,expectInt:()=>xv,expectInt32:()=>MU,expectLong:()=>l1,expectNonNull:()=>nv,expectNumber:()=>Z1,expectObject:()=>bz,expectShort:()=>BU,expectString:()=>ov,expectUnion:()=>av,extendedEncodeURIComponent:()=>aE,getArrayIfSingleItem:()=>ij,getDefaultClientConfiguration:()=>kj,getDefaultExtensionConfiguration:()=>uz,getValueFromTextNode:()=>tz,handleFloat:()=>tv,limitedParseDouble:()=>iU,limitedParseFloat:()=>rj,limitedParseFloat32:()=>sj,loadConfigsForDefaultMode:()=>Jj,logger:()=>J1,map:()=>mU,parseBoolean:()=>bv,parseEpochTimestamp:()=>Lj,parseRfc3339DateTime:()=>Ej,parseRfc3339DateTimeWithOffset:()=>Fj,parseRfc7231DateTime:()=>Cj,resolveDefaultRuntimeConfig:()=>Dj,resolvedPath:()=>dj,serializeDateTime:()=>cj,serializeFloat:()=>Oj,splitEvery:()=>fS,strictParseByte:()=>ez,strictParseDouble:()=>DU,strictParseFloat:()=>pv,strictParseFloat32:()=>gz,strictParseInt:()=>fj,strictParseInt32:()=>wj,strictParseLong:()=>xz,strictParseShort:()=>$h,take:()=>Nj,throwDefaultError:()=>pz,withBaseException:()=>Zj});wS.exports=Nv(Nz);var qz=class r{trace(){}debug(){}info(){}warn(){}error(){}};q(qz,"NoOpLogger");var qv=qz,vz=uR(),jz=class r{constructor(f){this.middlewareStack=vz.constructStack(),this.config=f}send(f,s,w){const h=typeof s!=="function"?s:void 0,$=typeof s==="function"?s:w,E=f.resolveMiddleware(this.middlewareStack,this.config,h);if($)E(f).then((I)=>$(null,I.output),(I)=>$(I)).catch(()=>{});else return E(f).then((I)=>I.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};q(jz,"Client");var vv=jz,lU=yz(),jv=q(async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return lU.Uint8ArrayBlobAdapter.mutate(r);if(!r)return lU.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const s=f.streamCollector(r);return lU.Uint8ArrayBlobAdapter.mutate(await s)},"collectBody"),QU=Is(),dz=class r{constructor(){this.middlewareStack=vz.constructStack()}static classBuilder(){return new dv}resolveMiddlewareWithContext(f,s,w,{middlewareFn:h,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:C,CommandCtor:L}){for(let B of h.bind(this)(L,f,s,w))this.middlewareStack.use(B);const z=f.concat(this.middlewareStack),{logger:S}=s,Z={logger:S,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[QU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...C},{requestHandler:D}=s;return z.resolve((B)=>D.handle(B.request,w||{}),Z)}};q(dz,"Command");var Oz=dz,cz=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,s,w={}){return this._smithyContext={service:f,operation:s,...w},this}c(f={}){return this._additionalContext=f,this}n(f,s){return this._clientName=f,this._commandName=s,this}f(f=(w)=>w,s=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=s,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){var f;const s=this;let w;return w=(f=class extends Oz{constructor(...[h]){super();this.serialize=s._serializer,this.deserialize=s._deserializer,this.input=h??{},s._init(this)}static getEndpointParameterInstructions(){return s._ep}resolveMiddleware(h,$,E){return this.resolveMiddlewareWithContext(h,$,E,{CommandCtor:w,middlewareFn:s._middlewareFn,clientName:s._clientName,commandName:s._commandName,inputFilterSensitiveLog:s._inputFilterSensitiveLog,outputFilterSensitiveLog:s._outputFilterSensitiveLog,smithyContext:s._smithyContext,additionalContext:s._additionalContext})}},q(f,"CommandRef"),f)}};q(cz,"ClassBuilder");var dv=cz,Ov="***SensitiveInformation***",cv=q((r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=q(async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}},"createAggregatedClient"),bv=q((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),gv=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)J1.warn(oE(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")J1.warn(oE(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),Z1=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))J1.warn(oE(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),_v=Math.ceil(340282346638528860000000000000000000000),nE=q((r)=>{const f=Z1(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>_v)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},"expectFloat32"),l1=q((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),xv=l1,MU=q((r)=>kU(r,32),"expectInt32"),BU=q((r)=>kU(r,16),"expectShort"),HU=q((r)=>kU(r,8),"expectByte"),kU=q((r,f)=>{const s=l1(r);if(s!==void 0&&ev(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},"expectSizedInt"),ev=q((r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),nv=q((r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),bz=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},"expectObject"),ov=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return J1.warn(oE(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),av=q((r)=>{if(r===null||r===void 0)return;const f=bz(r),s=Object.entries(f).filter(([,w])=>w!=null).map(([w])=>w);if(s.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(s.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${s} were not null.`);return f},"expectUnion"),DU=q((r)=>{if(typeof r=="string")return Z1(Ih(r));return Z1(r)},"strictParseDouble"),pv=DU,gz=q((r)=>{if(typeof r=="string")return nE(Ih(r));return nE(r)},"strictParseFloat32"),uv=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ih=q((r)=>{const f=r.match(uv);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),iU=q((r)=>{if(typeof r=="string")return _z(r);return Z1(r)},"limitedParseDouble"),tv=iU,rj=iU,sj=q((r)=>{if(typeof r=="string")return _z(r);return nE(r)},"limitedParseFloat32"),_z=q((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),xz=q((r)=>{if(typeof r==="string")return l1(Ih(r));return l1(r)},"strictParseLong"),fj=xz,wj=q((r)=>{if(typeof r==="string")return MU(Ih(r));return MU(r)},"strictParseInt32"),$h=q((r)=>{if(typeof r==="string")return BU(Ih(r));return BU(r)},"strictParseShort"),ez=q((r)=>{if(typeof r==="string")return HU(Ih(r));return HU(r)},"strictParseByte"),oE=q((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),J1={warn:console.warn},hj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];q(nz,"dateToUtcString");var $j=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ej=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=$j.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=$h(Eh(w)),L=kf(h,"month",1,12),z=kf($,"day",1,31);return K1(C,L,z,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),Ij=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Fj=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=Ij.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=$h(Eh(w)),z=kf(h,"month",1,12),S=kf($,"day",1,31),Z=K1(L,z,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")Z.setTime(Z.getTime()-Yj(C));return Z},"parseRfc3339DateTimeWithOffset"),Uj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Tj=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Gj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Cj=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let f=Uj.exec(r);if(f){const[s,w,h,$,E,I,F,U]=f;return K1($h(Eh($)),JU(h),kf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})}if(f=Tj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return Wj(K1(Aj($),JU(h),kf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(f=Gj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return K1($h(Eh(U)),JU(w),kf(h.trimLeft(),"day",1,31),{hours:$,minutes:E,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Lj=q((r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=DU(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},"parseEpochTimestamp"),K1=q((r,f,s,w)=>{const h=f-1;return Sj(r,h,s),new Date(Date.UTC(r,h,s,kf(w.hours,"hour",0,23),kf(w.minutes,"minute",0,59),kf(w.seconds,"seconds",0,60),Xj(w.fractionalMilliseconds)))},"buildDate"),Aj=q((r)=>{const f=new Date().getUTCFullYear(),s=Math.floor(f/100)*100+$h(Eh(r));if(s<f)return s+100;return s},"parseTwoDigitYear"),Rj=1576800000000,Wj=q((r)=>{if(r.getTime()-new Date().getTime()>Rj)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),JU=q((r)=>{const f=yU.indexOf(r);if(f<0)throw new TypeError(`Invalid month: ${r}`);return f+1},"parseMonthByShortName"),zj=[31,28,31,30,31,30,31,31,30,31,30,31],Sj=q((r,f,s)=>{let w=zj[f];if(f===1&&Pj(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${yU[f]} in ${r}: ${s}`)},"validateDayOfMonth"),Pj=q((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),kf=q((r,f,s,w)=>{const h=ez(Eh(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},"parseDateValue"),Xj=q((r)=>{if(r===null||r===void 0)return 0;return gz("0."+r)*1000},"parseMilliseconds"),Yj=q((r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},"parseOffsetToMilliseconds"),Eh=q((r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)},"stripLeadingZeroes"),oz=class r extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,r.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}};q(oz,"ServiceException");var Kj=oz,az=q((r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r},"decorateServiceException"),pz=q(({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=lj(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:(f==null?void 0:f.code)||(f==null?void 0:f.Code)||w||$||"UnknownError",$fault:"client",$metadata:h});throw az(E,f)},"throwDefaultError"),Zj=q((r)=>{return({output:f,parsedBody:s,errorCode:w})=>{pz({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},"withBaseException"),lj=q((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),Jj=q((r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),mz=!1,Qj=q((r)=>{if(r&&!mz&&parseInt(r.substring(1,r.indexOf(".")))<16)mz=!0},"emitWarningIfUnsupportedVersion"),Mj=q((r)=>{const f=[];for(let s in QU.AlgorithmId){const w=QU.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),Bj=q((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),Hj=q((r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},"getRetryConfiguration"),Vj=q((r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f},"resolveRetryRuntimeConfig"),uz=q((r)=>{return{...Mj(r),...Hj(r)}},"getDefaultExtensionConfiguration"),kj=uz,Dj=q((r)=>{return{...Bj(r),...Vj(r)}},"resolveDefaultRuntimeConfig");q(aE,"extendedEncodeURIComponent");var ij=q((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),tz=q((r)=>{for(let s in r)if(r.hasOwnProperty(s)&&r[s]["#text"]!==void 0)r[s]=r[s]["#text"];else if(typeof r[s]==="object"&&r[s]!==null)r[s]=tz(r[s]);return r},"getValueFromTextNode"),Q1=q(function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s},"StringWrapper");Q1.prototype=Object.create(String.prototype,{constructor:{value:Q1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Q1,String);var rS=class r extends Q1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(f){if(f instanceof r)return f;else if(f instanceof String||typeof f==="string")return new r(f);return new r(JSON.stringify(f))}};q(rS,"LazyJsonString");var yj=rS;q(mU,"map");var mj=q((r)=>{const f={};for(let[s,w]of Object.entries(r||{}))f[s]=[,w];return f},"convertMap"),Nj=q((r,f)=>{const s={};for(let w in f)sS(s,r,f,w);return s},"take"),qj=q((r,f,s)=>{return mU(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},"mapWithFilter"),sS=q((r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=vj,F=jj,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},"applyInstruction"),vj=q((r)=>r!=null,"nonNullish"),jj=q((r)=>r,"pass"),dj=q((r,f,s,w,h,$)=>{if(f!=null&&f[s]!==void 0){const E=w();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+s+".");r=r.replace(h,$?E.split("/").map((I)=>aE(I)).join("/"):aE(E))}else throw new Error("No value provided for input HTTP label: "+s+".");return r},"resolvedPath"),Oj=q((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),cj=q((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),VU=q((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(VU);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=VU(r[s])}return f}return r},"_json");q(fS,"splitEvery")});var ES=v((hS)=>{Object.defineProperty(hS,"__esModule",{value:!0});hS.isStreamingPayload=void 0;var bj=import.meta.require("stream"),gj=(r)=>(r===null||r===void 0?void 0:r.body)instanceof bj.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;hS.isStreamingPayload=gj});var lS=v((c0r,ZS)=>{var{defineProperty:uE,getOwnPropertyDescriptor:_j,getOwnPropertyNames:xj}=Object,ej=Object.prototype.hasOwnProperty,Dr=(r,f)=>uE(r,"name",{value:f,configurable:!0}),nj=(r,f)=>{for(var s in f)uE(r,s,{get:f[s],enumerable:!0})},oj=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xj(f))if(!ej.call(r,h)&&h!==s)uE(r,h,{get:()=>f[h],enumerable:!(w=_j(f,h))||w.enumerable})}return r},aj=(r)=>oj(uE({},"__esModule",{value:!0}),r),FS={};nj(FS,{AdaptiveRetryStrategy:()=>tj,CONFIG_MAX_ATTEMPTS:()=>qU,CONFIG_RETRY_MODE:()=>zS,ENV_MAX_ATTEMPTS:()=>NU,ENV_RETRY_MODE:()=>WS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>rd,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>fd,StandardRetryStrategy:()=>AS,defaultDelayDecider:()=>TS,defaultRetryDecider:()=>GS,getOmitRetryHeadersPlugin:()=>wd,getRetryAfterHint:()=>KS,getRetryPlugin:()=>Ud,omitRetryHeadersMiddleware:()=>SS,omitRetryHeadersMiddlewareOptions:()=>PS,resolveRetryConfig:()=>sd,retryMiddleware:()=>XS,retryMiddlewareOptions:()=>YS});ZS.exports=aj(FS);var Uh=G0(),US=rU(),Kr=eR(),pj=Dr((r,f)=>{const s=r,w=(f==null?void 0:f.noRetryIncrement)??Kr.NO_RETRY_INCREMENT,h=(f==null?void 0:f.retryCost)??Kr.RETRY_COST,$=(f==null?void 0:f.timeoutRetryCost)??Kr.TIMEOUT_RETRY_COST;let E=r;const I=Dr((L)=>L.name==="TimeoutError"?$:h,"getCapacityAmount"),F=Dr((L)=>I(L)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:Dr((L)=>{if(!F(L))throw new Error("No retry token available");const z=I(L);return E-=z,z},"retrieveRetryTokens"),releaseRetryTokens:Dr((L)=>{E+=L??w,E=Math.min(E,s)},"releaseRetryTokens")})},"getDefaultRetryQuota"),TS=Dr((r,f)=>Math.floor(Math.min(Kr.MAXIMUM_RETRY_DELAY,Math.random()*2**f*r)),"defaultDelayDecider"),d0=sU(),GS=Dr((r)=>{if(!r)return!1;return d0.isRetryableByTrait(r)||d0.isClockSkewError(r)||d0.isThrottlingError(r)||d0.isTransientError(r)},"defaultRetryDecider"),CS=Dr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),LS=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode=Kr.RETRY_MODES.STANDARD,this.retryDecider=(s==null?void 0:s.retryDecider)??GS,this.delayDecider=(s==null?void 0:s.delayDecider)??TS,this.retryQuota=(s==null?void 0:s.retryQuota)??pj(Kr.INITIAL_RETRY_TOKENS)}shouldRetry(f,s,w){return s<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(s){f=Kr.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,s,w){let h,$=0,E=0;const I=await this.getMaxAttempts(),{request:F}=s;if(Uh.HttpRequest.isInstance(F))F.headers[Kr.INVOCATION_ID_HEADER]=US.v4();while(!0)try{if(Uh.HttpRequest.isInstance(F))F.headers[Kr.REQUEST_HEADER]=`attempt=${$+1}; max=${I}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:U,output:C}=await f(s);if(w==null?void 0:w.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(h),C.$metadata.attempts=$+1,C.$metadata.totalRetryDelay=E,{response:U,output:C}}catch(U){const C=CS(U);if($++,this.shouldRetry(C,$,I)){h=this.retryQuota.retrieveRetryTokens(C);const L=this.delayDecider(d0.isThrottlingError(C)?Kr.THROTTLING_RETRY_DELAY_BASE:Kr.DEFAULT_RETRY_DELAY_BASE,$),z=uj(C.$response),S=Math.max(z||0,L);E+=S,await new Promise((Z)=>setTimeout(Z,S));continue}if(!C.$metadata)C.$metadata={};throw C.$metadata.attempts=$,C.$metadata.totalRetryDelay=E,C}}};Dr(LS,"StandardRetryStrategy");var AS=LS,uj=Dr((r)=>{if(!Uh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return w*1000;return new Date(s).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),RS=class r extends AS{constructor(f,s){const{rateLimiter:w,...h}=s??{};super(f,h);this.rateLimiter=w??new Kr.DefaultRateLimiter,this.mode=Kr.RETRY_MODES.ADAPTIVE}async retry(f,s){return super.retry(f,s,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};Dr(RS,"AdaptiveRetryStrategy");var tj=RS,IS=G1(),NU="AWS_MAX_ATTEMPTS",qU="max_attempts",rd={environmentVariableSelector:(r)=>{const f=r[NU];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${NU} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[qU];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${qU} mast be a number, got "${f}"`);return s},default:Kr.DEFAULT_MAX_ATTEMPTS},sd=Dr((r)=>{const{retryStrategy:f}=r,s=IS.normalizeProvider(r.maxAttempts??Kr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await IS.normalizeProvider(r.retryMode)()===Kr.RETRY_MODES.ADAPTIVE)return new Kr.AdaptiveRetryStrategy(s);return new Kr.StandardRetryStrategy(s)}}},"resolveRetryConfig"),WS="AWS_RETRY_MODE",zS="retry_mode",fd={environmentVariableSelector:(r)=>r[WS],configFileSelector:(r)=>r[zS],default:Kr.DEFAULT_RETRY_MODE},SS=Dr(()=>(r)=>async(f)=>{const{request:s}=f;if(Uh.HttpRequest.isInstance(s))delete s.headers[Kr.INVOCATION_ID_HEADER],delete s.headers[Kr.REQUEST_HEADER];return r(f)},"omitRetryHeadersMiddleware"),PS={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},wd=Dr((r)=>({applyToStack:(f)=>{f.addRelativeTo(SS(),PS)}}),"getOmitRetryHeadersPlugin"),hd=Fh(),$d=ES(),XS=Dr((r)=>(f,s)=>async(w)=>{var h;let $=await r.retryStrategy();const E=await r.maxAttempts();if(Ed($)){$=$;let I=await $.acquireInitialRetryToken(s.partition_id),F=new Error,U=0,C=0;const{request:L}=w,z=Uh.HttpRequest.isInstance(L);if(z)L.headers[Kr.INVOCATION_ID_HEADER]=US.v4();while(!0)try{if(z)L.headers[Kr.REQUEST_HEADER]=`attempt=${U+1}; max=${E}`;const{response:S,output:Z}=await f(w);return $.recordSuccess(I),Z.$metadata.attempts=U+1,Z.$metadata.totalRetryDelay=C,{response:S,output:Z}}catch(S){const Z=Id(S);if(F=CS(S),z&&$d.isStreamingPayload(L))throw(h=s.logger instanceof hd.NoOpLogger?console:s.logger)==null||h.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await $.refreshRetryTokenForRetry(I,Z)}catch(B){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=C,F}U=I.getRetryCount();const D=I.getRetryDelay();C+=D,await new Promise((B)=>setTimeout(B,D))}}else{if($=$,$==null?void 0:$.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(f,w)}},"retryMiddleware"),Ed=Dr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),Id=Dr((r)=>{const f={error:r,errorType:Fd(r)},s=KS(r.$response);if(s)f.retryAfterHint=s;return f},"getRetryErrorInfo"),Fd=Dr((r)=>{if(d0.isThrottlingError(r))return"THROTTLING";if(d0.isTransientError(r))return"TRANSIENT";if(d0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),YS={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Ud=Dr((r)=>({applyToStack:(f)=>{f.add(XS(r),YS)}}),"getRetryPlugin"),KS=Dr((r)=>{if(!Uh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)},"getRetryAfterHint")});var Or=v((b0r,bS)=>{function MS(r){const f=new Map;for(let s of r)f.set(s.schemeId,s);return f}function jS(r,f){return new OS(r,f)}function cS(r,f,s,w,h){return zr(async function*$(E,I,...F){let U=E.startingToken||void 0,C=!0,L;while(C){if(I[s]=U,h)I[h]=I[h]??E.pageSize;if(E.client instanceof r)L=await id(f,E.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;const z=U;U=yd(L,w),C=!!(U&&(!E.stopOnSameToken||U!==z))}return},"paginateOperation")}var{defineProperty:r3,getOwnPropertyDescriptor:Td,getOwnPropertyNames:Gd}=Object,Cd=Object.prototype.hasOwnProperty,zr=(r,f)=>r3(r,"name",{value:f,configurable:!0}),Ld=(r,f)=>{for(var s in f)r3(r,s,{get:f[s],enumerable:!0})},Ad=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Gd(f))if(!Cd.call(r,h)&&h!==s)r3(r,h,{get:()=>f[h],enumerable:!(w=Td(f,h))||w.enumerable})}return r},Rd=(r)=>Ad(r3({},"__esModule",{value:!0}),r),JS={};Ld(JS,{DefaultIdentityProviderConfig:()=>ld,EXPIRATION_MS:()=>qS,HttpApiKeyAuthSigner:()=>Jd,HttpBearerAuthSigner:()=>Qd,NoAuthSigner:()=>Md,RequestBuilder:()=>OS,createIsIdentityExpiredFunction:()=>NS,createPaginator:()=>cS,doesIdentityRequireRefresh:()=>vS,getHttpAuthSchemeEndpointRuleSetPlugin:()=>zd,getHttpAuthSchemePlugin:()=>Pd,getHttpSigningPlugin:()=>Zd,getSmithyContext:()=>Vd,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>BS,httpAuthSchemeMiddleware:()=>vU,httpAuthSchemeMiddlewareOptions:()=>HS,httpSigningMiddleware:()=>VS,httpSigningMiddlewareOptions:()=>kS,isIdentityExpired:()=>Bd,memoizeIdentityProvider:()=>Hd,normalizeProvider:()=>kd,requestBuilder:()=>jS});bS.exports=Rd(JS);var QS=G1();zr(MS,"convertHttpAuthSchemesToMap");var vU=zr((r,f)=>(s,w)=>async(h)=>{var $;const E=r.httpAuthSchemeProvider(await f.httpAuthSchemeParametersProvider(r,w,h.input)),I=MS(r.httpAuthSchemes),F=QS.getSmithyContext(w),U=[];for(let C of E){const L=I.get(C.schemeId);if(!L){U.push(`HttpAuthScheme \`${C.schemeId}\` was not enabled for this service.`);continue}const z=L.identityProvider(await f.identityProviderConfigProvider(r));if(!z){U.push(`HttpAuthScheme \`${C.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:S={},signingProperties:Z={}}=(($=C.propertiesExtractor)==null?void 0:$.call(C,r,w))||{};C.identityProperties=Object.assign(C.identityProperties||{},S),C.signingProperties=Object.assign(C.signingProperties||{},Z),F.selectedHttpAuthScheme={httpAuthOption:C,identity:await z(C.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return s(h)},"httpAuthSchemeMiddleware"),Wd=MA(),BS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Wd.endpointMiddlewareOptions.name},zd=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(vU(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),BS)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Sd=xF(),HS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Sd.serializerMiddlewareOption.name},Pd=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(vU(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),HS)}}),"getHttpAuthSchemePlugin"),s3=G0(),Xd=zr((r)=>(f)=>{throw f},"defaultErrorHandler"),Yd=zr((r,f)=>{},"defaultSuccessHandler"),VS=zr((r)=>(f,s)=>async(w)=>{if(!s3.HttpRequest.isInstance(w.request))return f(w);const $=QS.getSmithyContext(s).selectedHttpAuthScheme;if(!$)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:E={}},identity:I,signer:F}=$,U=await f({...w,request:await F.sign(w.request,I,E)}).catch((F.errorHandler||Xd)(E));return(F.successHandler||Yd)(U.response,E),U},"httpSigningMiddleware"),Kd=lS(),kS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:Kd.retryMiddlewareOptions.name},Zd=zr((r)=>({applyToStack:(f)=>{f.addRelativeTo(VS(r),kS)}}),"getHttpSigningPlugin"),DS=class r{constructor(f){this.authSchemes=new Map;for(let[s,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(s,w)}getIdentityProvider(f){return this.authSchemes.get(f)}};zr(DS,"DefaultIdentityProviderConfig");var ld=DS,tE=Is(),iS=class r{async sign(f,s,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const h=s3.HttpRequest.clone(f);if(w.in===tE.HttpApiKeyAuthLocation.QUERY)h.query[w.name]=s.apiKey;else if(w.in===tE.HttpApiKeyAuthLocation.HEADER)h.headers[w.name]=w.scheme?`${w.scheme} ${s.apiKey}`:s.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return h}};zr(iS,"HttpApiKeyAuthSigner");var Jd=iS,yS=class r{async sign(f,s,w){const h=s3.HttpRequest.clone(f);if(!s.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return h.headers.Authorization=`Bearer ${s.token}`,h}};zr(yS,"HttpBearerAuthSigner");var Qd=yS,mS=class r{async sign(f,s,w){return f}};zr(mS,"NoAuthSigner");var Md=mS,NS=zr((r)=>(f)=>vS(f)&&f.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),qS=300000,Bd=NS(qS),vS=zr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),Hd=zr((r,f,s)=>{if(r===void 0)return;const w=typeof r!=="function"?async()=>Promise.resolve(r):r;let h,$,E,I=!1;const F=zr(async(U)=>{if(!$)$=w(U);try{h=await $,E=!0,I=!1}finally{$=void 0}return h},"coalesceProvider");if(f===void 0)return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);return h};return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);if(I)return h;if(!s(h))return I=!0,h;if(f(h))return await F(U),h;return h}},"memoizeIdentityProvider"),Vd=zr((r)=>r[tE.SMITHY_CONTEXT_KEY]||(r[tE.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),kd=zr((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider"),Dd=Fh();zr(jS,"requestBuilder");var dS=class r{constructor(f,s){this.input=f,this.context=s,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:f,protocol:s="https",port:w,path:h}=await this.context.endpoint();this.path=h;for(let $ of this.resolvePathStack)$(this.path);return new s3.HttpRequest({protocol:s,hostname:this.hostname||f,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(f){return this.hostname=f,this}bp(f){return this.resolvePathStack.push((s)=>{this.path=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+f}),this}p(f,s,w,h){return this.resolvePathStack.push(($)=>{this.path=Dd.resolvedPath($,this.input,f,s,w,h)}),this}h(f){return this.headers=f,this}q(f){return this.query=f,this}b(f){return this.body=f,this}m(f){return this.method=f,this}};zr(dS,"RequestBuilder");var OS=dS,id=zr(async(r,f,s,...w)=>{return await f.send(new r(s),...w)},"makePagedClientRequest");zr(cS,"createPaginator");var yd=zr((r,f)=>{let s=r;const w=f.split(".");for(let h of w){if(!s||typeof s!=="object")return;s=s[h]}return s},"get")});function md(r){return(f)=>async(s)=>{const w=s.request;if(Qr.isInstance(w)){const{body:h,headers:$}=w;if(h&&Object.keys($).map((E)=>E.toLowerCase()).indexOf(gS)===-1)try{const E=r(h);w.headers={...w.headers,[gS]:String(E)}}catch(E){}}return f({...s,request:w})}}var gS="content-length",Nd,Df=(r)=>({applyToStack:(f)=>{f.add(md(r.bodyLengthChecker),Nd)}});var Th=G(()=>{ir();Nd={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var _S=async(r)=>{const f=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Od(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!dd(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},qd,vd,jd,dd=(r)=>qd.test(r)&&!vd.test(r)&&!jd.test(r),Od=(r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E};var xS=G(()=>{qd=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,vd=/(\d+\.){3}\d+/,jd=/\.\./});var eS=G(()=>{xS()});var nS=(r,f,s)=>{const w=async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h};if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.credentialScope??h?.CredentialScope};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.accountId??h?.AccountId};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w};var Vs;var M1=G(()=>{Vs=class Vs extends Error{constructor(r,f=!0){let s,w=!0;if(typeof f==="boolean")s=void 0,w=f;else if(f!=null&&typeof f==="object")s=f.logger,w=f.tryNextLink??!0;super(r);this.name="ProviderError",this.tryNextLink=w,Object.setPrototypeOf(this,Vs.prototype),s?.debug?.(`@smithy/property-provider ${w?"->":"(!)"} ${r}`)}static from(r,f=!0){return Object.assign(new this(r.message,f),r)}}});var _;var oS=G(()=>{M1();_=class _ extends Vs{constructor(r,f=!0){super(r,f);this.name="CredentialsProviderError",Object.setPrototypeOf(this,_.prototype)}}});var Fs;var aS=G(()=>{M1();Fs=class Fs extends Vs{constructor(r,f=!0){super(r,f);this.name="TokenProviderError",Object.setPrototypeOf(this,Fs.prototype)}}});var A0=(...r)=>async()=>{if(r.length===0)throw new Vs("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w?.tryNextLink)continue;throw w}throw f};var pS=G(()=>{M1()});var uS=(r)=>()=>Promise.resolve(r);var Kw=(r,f,s)=>{let w,h,$,E=!1;const I=async()=>{if(!h)h=r();try{w=await h,$=!0,E=!1}finally{h=void 0}return w};if(f===void 0)return async(F)=>{if(!$||F?.forceRefresh)w=await I();return w};return async(F)=>{if(!$||F?.forceRefresh)w=await I();if(E)return w;if(s&&!s(w))return E=!0,w;if(f(w))return await I(),w;return w}};var Lr=G(()=>{oS();M1();aS();pS()});function f3(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var tS=(r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new _(s.message||`Not found in ENV: ${f3(r.toString())}`,{logger:f})}};var rP=G(()=>{Lr()});import{homedir as cd}from"os";import{sep as bd}from"path";var jU,gd=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},O0=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${bd}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=gd();if(!jU[h])jU[h]=cd();return jU[h]};var Gh=G(()=>{jU={}});var sP="AWS_PROFILE",ks=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as _d}from"crypto";import{join as xd}from"path";var w3=(r)=>{const s=_d("sha1").update(r).digest("hex");return xd(O0(),".aws","sso","cache",`${s}.json`)};var dU=G(()=>{Gh()});import{promises as ed}from"fs";var nd,h3=async(r)=>{const f=w3(r),s=await nd(f,"utf8");return JSON.parse(s)};var fP=G(()=>{dU();({readFile:nd}=ed)});var OU,wP=(r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Ds);if(s===-1)return!1;return Object.values(OU.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Ds),$=s.substring(0,h)===OU.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}});var hP=G(()=>{OU=u(Is(),1);Ch()});import{join as od}from"path";var ad="AWS_CONFIG_FILE",$3=()=>process.env[ad]||od(O0(),".aws","config");var cU=G(()=>{Gh()});import{join as pd}from"path";var ud="AWS_SHARED_CREDENTIALS_FILE",$P=()=>process.env[ud]||pd(O0(),".aws","credentials");var EP=G(()=>{Gh()});var IP,td,rO,B1=(r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=td.exec(I);if(F){const[,U,,C]=F;if(Object.values(IP.IniSectionType).includes(U))s=[U,C].join(Ds)}else s=I;if(rO.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Ds):F;f[s][C]=U}}}}return f};var bU=G(()=>{IP=u(Is(),1);Ch();td=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,rO=["__proto__","profile __proto__"]});import{promises as sO}from"fs";var fO,gU,H1=(r,f)=>{if(!gU[r]||f?.ignoreCache)gU[r]=fO(r,"utf8");return gU[r]};var _U=G(()=>{({readFile:fO}=sO),gU={}});import{join as FP}from"path";var UP=()=>({}),Ds=".",E3=async(r={})=>{const{filepath:f=$P(),configFilepath:s=$3()}=r,w=O0();let $=f;if(f.startsWith("~/"))$=FP(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=FP(w,s.slice(2));const I=await Promise.all([H1(E,{ignoreCache:r.ignoreCache}).then(B1).then(wP).catch(UP),H1($,{ignoreCache:r.ignoreCache}).then(B1).catch(UP)]);return{configFile:I[0],credentialsFile:I[1]}};var Ch=G(()=>{hP();cU();EP();Gh();bU();_U()});var TP,GP=(r)=>Object.entries(r).filter(([f])=>f.startsWith(TP.IniSectionType.SSO_SESSION+Ds)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Ds)+1)]:w}),{});var CP=G(()=>{TP=u(Is(),1);Ch()});var wO=()=>({}),I3=async(r={})=>H1(r.configFilepath??$3()).then(B1).then(GP).catch(wO);var LP=G(()=>{cU();CP();bU();_U()});var AP=(...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f};var c0=async(r)=>{const f=await E3(r);return AP(f.configFile,f.credentialsFile)};var RP=G(()=>{Ch()});var WP=()=>{};var hf=G(()=>{Gh();dU();fP();Ch();LP();RP();WP()});var zP=(r,{preferredFile:f="config",...s}={})=>async()=>{const w=ks(s),{configFile:h,credentialsFile:$}=await E3(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new _(U.message||`Not found in config files w/ profile [${w}]: ${f3(r.toString())}`,{logger:s.logger})}};var SP=G(()=>{Lr();hf()});var hO=(r)=>typeof r==="function",PP=(r)=>hO(r)?async()=>await r():uS(r);var XP=G(()=>{Lr()});var t=({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>Kw(A0(tS(r),zP(f,w),PP(s)));var YP=G(()=>{Lr();rP();SP();XP()});var $f=G(()=>{YP()});var KP="AWS_ENDPOINT_URL",ZP="endpoint_url",lP=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[KP,...s].join("_")];if(w)return w;const h=f[KP];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(Ds)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),ZP].join(Ds)];if(E)return E}}const w=f[ZP];if(w)return w;return},default:void 0});var JP=G(()=>{hf()});var QP=async(r)=>t(lP(r))();var MP=G(()=>{$f();JP()});function BP(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var gr=(r)=>{if(typeof r==="string")return gr(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:$}=r;let E;if($)E=BP($);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:E}};var b0=()=>{};var F3=(r)=>{if(typeof r==="object"){if("url"in r)return gr(r.url);return r}return gr(r)};var U3=G(()=>{b0()});var HP=async(r,f,s,w)=>{if(!s.endpoint){const E=await QP(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(F3(E))}const h=await $O(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},$O=async(r,f,s)=>{const w={},h=f?.getEndpointParameterInstructions?.()||{};for(let[$,E]of Object.entries(h))switch(E.type){case"staticContextParams":w[$]=E.value;break;case"contextParams":w[$]=r[E.name];break;case"clientContextParams":case"builtInParams":w[$]=await nS(E.name,$,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(h).length===0)Object.assign(w,s);if(String(s.serviceId).toLowerCase()==="s3")await _S(w);return w};var xU=G(()=>{eS();MP();U3()});var VP=G(()=>{xU();U3()});var kP=({config:r,instructions:f})=>{return(s,w)=>async(h)=>{const $=await HP(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=$,w.authSchemes=$.properties?.authSchemes;const E=w.authSchemes?.[0];if(E){w.signing_region=E.signingRegion,w.signing_service=E.signingName;const F=Js(w)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return s({...h})}};var eU=G(()=>{rf();xU()});var DP=(r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}};var iP=(r,f)=>(s,w)=>async(h)=>{const $=w.endpointV2?.url&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");const E=await f(h.input,{...r,endpoint:$});return s({...h,request:E})};function R(r,f,s){return{applyToStack:(w)=>{w.add(DP(r,s),EO),w.add(iP(r,f),nU)}}}var EO,nU;var yP=G(()=>{EO={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},nU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var H=G(()=>{yP()});var IO,W=(r,f)=>({applyToStack:(s)=>{s.addRelativeTo(kP({config:r,instructions:f}),IO)}});var mP=G(()=>{H();eU();IO={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:nU.name}});var yf=(r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>F3(await yr(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:yr(r.useDualstackEndpoint??!1),useFipsEndpoint:yr(r.useFipsEndpoint??!1)}};var NP=G(()=>{rf();U3()});var qP=()=>{};var M=G(()=>{VP();eU();mP();NP();qP()});var is,Zw=3,ys;var T3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(is||(is={}));ys=is.STANDARD});var vP,jP,dP,OP;var cP=G(()=>{vP=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],jP=["TimeoutError","RequestTimeout","RequestTimeoutException"],dP=[500,502,503,504],OP=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var FO=(r)=>r.$metadata?.clockSkewCorrected,Lh=(r)=>r.$metadata?.httpStatusCode===429||vP.includes(r.name)||r.$retryable?.throttling==!0,G3=(r)=>FO(r)||jP.includes(r.name)||OP.includes(r?.code||"")||dP.includes(r.$metadata?.httpStatusCode||0),bP=(r)=>{if(r.$metadata?.httpStatusCode!==void 0){const f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!G3(r))return!0;return!1}return!1};var V1=G(()=>{cP()});class C3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){const f=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>setTimeout(s,f))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const f=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=r}updateClientSendingRate(r){let f;if(this.updateMeasuredRate(),Lh(r)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const s=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds(),f=Math.floor(r*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const s=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(r){return parseFloat(r.toFixed(8))}}var oU=G(()=>{V1()});var lw=100,k1=20000,aU=500,L3=500,pU=5,uU=10,tU=1,A3="amz-sdk-invocation-id",R3="amz-sdk-request";var gP=()=>{let r=lw;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(k1,Math.random()*2**w*r))},setDelayBase:(w)=>{r=w}}};var _P=()=>{};var r5=({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:()=>f,getRetryDelay:()=>Math.min(k1,r),getRetryCost:()=>s}};var xP=()=>{};class Ah{constructor(r){this.maxAttempts=r,this.mode=is.STANDARD,this.capacity=L3,this.retryBackoffStrategy=gP(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return r5({retryDelay:lw,retryCount:0})}async refreshRetryTokenForRetry(r,f){const s=await this.getMaxAttempts();if(this.shouldRetry(r,f,s)){const w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?aU:lw);const h=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),$=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,h):h,E=this.getCapacityCost(w);return this.capacity-=E,r5({retryDelay:$,retryCount:r.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(L3,this.capacity+(r.getRetryCost()??tU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${Zw}`),Zw}}shouldRetry(r,f,s){return r.getRetryCount()+1<s&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(r){return r==="TRANSIENT"?uU:pU}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var W3=G(()=>{T3();_P();xP()});class s5{constructor(r,f){this.maxAttemptsProvider=r,this.mode=is.ADAPTIVE;const{rateLimiter:s}=f??{};this.rateLimiter=s??new C3,this.standardRetryStrategy=new Ah(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(r,f)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var eP=G(()=>{T3();oU();W3()});var nP=G(()=>{W3()});var oP=()=>{};var Rs=G(()=>{eP();nP();oU();W3();T3();oP()});var mf,x1r,e1r,aP,n1r,o1r,a1r,p1r,u1r,t1r;var pP=G(()=>{mf=u(rU(),1),x1r=mf.default.v1,e1r=mf.default.v3,aP=mf.default.v4,n1r=mf.default.v5,o1r=mf.default.NIL,a1r=mf.default.version,p1r=mf.default.validate,u1r=mf.default.stringify,t1r=mf.default.parse});var uP=G(()=>{Rs()});var f5=G(()=>{Rs()});var w5=G(()=>{V1()});var h5=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var $5=G(()=>{ir();V1();Rs();uP();f5();w5()});var tP=G(()=>{Rs();$5()});var rX="AWS_MAX_ATTEMPTS",sX="max_attempts",Nf,qf=(r)=>{const{retryStrategy:f}=r,s=yr(r.maxAttempts??Zw);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await yr(r.retryMode)()===is.ADAPTIVE)return new s5(s);return new Ah(s)}}},UO="AWS_RETRY_MODE",TO="retry_mode",vf;var fX=G(()=>{rf();Rs();Nf={environmentVariableSelector:(r)=>{const f=r[rX];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${rX} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[sX];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${sX} mast be a number, got "${f}"`);return s},default:Zw},vf={environmentVariableSelector:(r)=>r[UO],configFileSelector:(r)=>r[TO],default:ys}});var wX=G(()=>{ir();Rs()});class Ws{trace(){}debug(){}info(){}warn(){}error(){}}var Jw=(r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},g0=(r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},Rh=()=>{let r=[],f=[],s=!1;const w=new Set,h=(L)=>L.sort((z,S)=>hX[S.step]-hX[z.step]||$X[S.priority||"normal"]-$X[z.priority||"normal"]),$=(L)=>{let z=!1;const S=(Z)=>{const D=Jw(Z.name,Z.aliases);if(D.includes(L)){z=!0;for(let B of D)w.delete(B);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},E=(L)=>{let z=!1;const S=(Z)=>{if(Z.middleware===L){z=!0;for(let D of Jw(Z.name,Z.aliases))w.delete(D);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},I=(L)=>{return r.forEach((z)=>{L.add(z.middleware,{...z})}),f.forEach((z)=>{L.addRelativeTo(z.middleware,{...z})}),L.identifyOnResolve?.(C.identifyOnResolve()),L},F=(L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},U=(L=!1)=>{const z=[],S=[],Z={};return r.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Jw(Q.name,Q.aliases))Z[i]=Q;z.push(Q)}),f.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Jw(Q.name,Q.aliases))Z[i]=Q;S.push(Q)}),S.forEach((B)=>{if(B.toMiddleware){const Q=Z[B.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${B.toMiddleware} is not found when adding ${g0(B.name,B.aliases)} middleware ${B.relation} ${B.toMiddleware}`)}if(B.relation==="after")Q.after.push(B);if(B.relation==="before")Q.before.push(B)}}),h(z).map(F).reduce((B,Q)=>{return B.push(...Q),B},[])},C={add:(L,z={})=>{const{name:S,override:Z,aliases:D}=z,B={step:"initialize",priority:"normal",middleware:L,...z},Q=Jw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${g0(S,D)}'`);for(let i of Q){const x=r.findIndex((hr)=>hr.name===i||hr.aliases?.some((kr)=>kr===i));if(x===-1)continue;const e=r[x];if(e.step!==B.step||B.priority!==e.priority)throw new Error(`"${g0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${g0(S,D)}" middleware with ${B.priority} priority in ${B.step} step.`);r.splice(x,1)}}for(let i of Q)w.add(i)}r.push(B)},addRelativeTo:(L,z)=>{const{name:S,override:Z,aliases:D}=z,B={middleware:L,...z},Q=Jw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${g0(S,D)}'`);for(let i of Q){const x=f.findIndex((hr)=>hr.name===i||hr.aliases?.some((kr)=>kr===i));if(x===-1)continue;const e=f[x];if(e.toMiddleware!==B.toMiddleware||e.relation!==B.relation)throw new Error(`"${g0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${g0(S,D)}" middleware ${B.relation} "${B.toMiddleware}" middleware.`);f.splice(x,1)}}for(let i of Q)w.add(i)}f.push(B)},clone:()=>I(Rh()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let z=!1;const S=(Z)=>{const{tags:D,name:B,aliases:Q}=Z;if(D&&D.includes(L)){const i=Jw(B,Q);for(let x of i)w.delete(x);return z=!0,!1}return!0};return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{const z=I(Rh());return z.use(L),z.identifyOnResolve(s||z.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),z},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return g0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((Z)=>Z.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},hX,$X;var EX=G(()=>{hX={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},$X={high:3,normal:2,low:1}});var E5=G(()=>{EX()});class zs{constructor(r){this.middlewareStack=Rh(),this.config=r}send(r,f,s){const w=typeof f!=="function"?f:void 0,h=typeof f==="function"?f:s,$=r.resolveMiddleware(this.middlewareStack,this.config,w);if(h)$(r).then((E)=>h(null,E.output),(E)=>h(E)).catch(()=>{});else return $(r).then((E)=>E.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var IX=G(()=>{E5()});var FX=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as I5}from"buffer";var R0=(r,f=0,s=r.byteLength-f)=>{if(!FX(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return I5.from(r,f,s)},Wh=(r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?I5.from(r,f):I5.from(r)};var Qw=()=>{};var GO,Us=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!GO.exec(r))throw new TypeError("Invalid base64 string.");const f=Wh(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};var UX=G(()=>{Qw();GO=/^[A-Za-z0-9+/]*={0,2}$/});var _r=(r)=>{const f=Wh(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var F5=G(()=>{Qw()});var TX=(r)=>{if(typeof r==="string")return _r(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var GX=G(()=>{F5()});var Ts=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return R0(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var CX=G(()=>{Qw()});var jf=G(()=>{F5();GX();CX()});var Gs=(r)=>{let f;if(typeof r==="string")f=_r(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return R0(f.buffer,f.byteOffset,f.byteLength).toString("base64")};var LX=G(()=>{Qw();jf()});var W0=G(()=>{UX();LX()});function AX(r,f="utf-8"){if(f==="base64")return Gs(r);return Ts(r)}function RX(r,f){if(f==="base64")return z0.mutate(Us(r));return z0.mutate(_r(r))}var WX=G(()=>{W0();jf();U5()});var z0;var U5=G(()=>{WX();z0=class z0 extends Uint8Array{static fromString(r,f="utf-8"){switch(typeof r){case"string":return RX(r,f);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){return Object.setPrototypeOf(r,z0.prototype),r}transformToString(r="utf-8"){return AX(this,r)}}});var zX=()=>{};var D1=(r)=>encodeURIComponent(r).replace(/[!'()*]/g,CO),CO=(r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;var SX=()=>{};var PX=G(()=>{SX()});function z3(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=D1(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${D1(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${D1(w)}`;f.push(h)}}return f.join("&")}var S3=G(()=>{PX()});var XX;var YX=G(()=>{XX=["ECONNRESET","EPIPE","ETIMEDOUT"]});var T5=(r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f};var G5=()=>{};var KX=(r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})};var ZX=(r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})};var lX=(r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})};import{Readable as LO}from"stream";async function C5(r,f,s=JX){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(JX,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)AO(r,f.body)}function AO(r,f){if(f instanceof LO){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}var JX=1000;var L5=()=>{};import{Agent as QX,request as RO}from"http";import{Agent as MX,request as WO}from"https";class tr{static create(r){if(typeof r?.handle==="function")return r;return new tr(r)}static checkSocketUsage(r,f,s=console){const{sockets:w,requests:h,maxSockets:$}=r;if(typeof $!=="number"||$===1/0)return f;const E=15000;if(Date.now()-E<f)return f;if(w&&h)for(let I in w){const F=w[I]?.length??0,U=h[I]?.length??0;if(F>=$&&U>=2*$)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
|
|
4
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}resolveDefaultConfig(f){const{requestTimeout:s,connectionTimeout:w,socketTimeout:h,httpAgent:$,httpsAgent:E}=f||{};return{connectionTimeout:w,requestTimeout:s??h,httpAgent:(()=>{if($ instanceof P5.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new P5.Agent({keepAlive:!0,maxSockets:50,...$})})(),httpsAgent:(()=>{if(E instanceof X5.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new X5.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){var f,s,w,h;(s=(f=this.config)==null?void 0:f.httpAgent)==null||s.destroy(),(h=(w=this.config)==null?void 0:w.httpsAgent)==null||h.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;let w;return new Promise((h,$)=>{let E=void 0;const I=Jr(async(N)=>{await E,clearTimeout(w),h(N)},"resolve"),F=Jr(async(N)=>{await E,clearTimeout(w),$(N)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s==null?void 0:s.aborted){const N=new Error("Request aborted");N.name="AbortError",F(N);return}const U=f.protocol==="https:",C=U?this.config.httpsAgent:this.config.httpAgent;w=setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const L=iz.buildQueryString(f.query||{});let R=void 0;if(f.username!=null||f.password!=null){const N=f.username??"",x=f.password??"";R=`${N}:${x}`}let S=f.path;if(L)S+=`?${L}`;if(f.fragment)S+=`#${f.fragment}`;const K={headers:f.headers,host:f.hostname,method:f.method,path:S,port:f.port,agent:C,auth:R},l=(U?X5.request:P5.request)(K,(N)=>{const x=new mz.HttpResponse({statusCode:N.statusCode||-1,reason:N.statusMessage,headers:vz(N.headers),body:N});I({response:x})});if(l.on("error",(N)=>{if(oi.includes(N.code))F(Object.assign(N,{name:"TimeoutError"}));else F(N)}),ai(l,F,this.config.connectionTimeout),ui(l,F,this.config.requestTimeout),s){const N=Jr(()=>{l.destroy();const x=new Error("Request aborted");x.name="AbortError",F(x)},"onAbort");if(typeof s.addEventListener==="function"){const x=s;x.addEventListener("abort",N,{once:!0}),l.once("close",()=>x.removeEventListener("abort",N))}else s.onabort=N}const M=K.agent;if(typeof M==="object"&&"keepAlive"in M)pi(l,{keepAlive:M.keepAlive,keepAliveMsecs:M.keepAliveMsecs});E=Y5(l,f,this.config.requestTimeout).catch((N)=>{return clearTimeout(w),$(N)})})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}};Jr(Oz,"NodeHttpHandler");var rv=Oz,Nz=import.meta.require("http2"),sv=ei(import.meta.require("http2")),cz=class r{constructor(f){this.sessions=[],this.sessions=f??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((s)=>s!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let s of this.sessions)if(s===f){if(!s.destroyed)s.destroy()}}};Jr(cz,"NodeHttp2ConnectionPool");var fv=cz,bz=class r{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(f,s){const w=this.getUrlString(f),h=this.sessionCache.get(w);if(h){const F=h.poll();if(F&&!this.config.disableConcurrency)return F}const $=sv.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();const E=Jr(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",E),$.on("error",E),$.on("frameError",E),$.on("close",()=>this.deleteSession(w,$)),s.requestTimeout)$.setTimeout(s.requestTimeout,E);const I=this.sessionCache.get(w)||new fv;return I.offerLast($),this.sessionCache.set(w,I),$}deleteSession(f,s){const w=this.sessionCache.get(f);if(!w)return;if(!w.contains(s))return;w.remove(s),this.sessionCache.set(f,w)}release(f,s){var w;const h=this.getUrlString(f);(w=this.sessionCache.get(h))==null||w.offerLast(s)}destroy(){for(let[f,s]of this.sessionCache){for(let w of s){if(!w.destroyed)w.destroy();s.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}};Jr(bz,"NodeHttp2ConnectionManager");var wv=bz,gz=class r{constructor(f){this.metadata={handlerProtocol:"h2"},this.connectionManager=new wv({}),this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(h||{})}).catch(w);else s(f||{})})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}destroy(){this.connectionManager.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:h}=this.config;return new Promise(($,E)=>{var I;let F=!1,U=void 0;const C=Jr(async(Zr)=>{await U,$(Zr)},"resolve"),L=Jr(async(Zr)=>{await U,E(Zr)},"reject");if(s==null?void 0:s.aborted){F=!0;const Zr=new Error("Request aborted");Zr.name="AbortError",L(Zr);return}const{hostname:R,method:S,port:K,protocol:k,query:l}=f;let M="";if(f.username!=null||f.password!=null){const Zr=f.username??"",xs=f.password??"";M=`${Zr}:${xs}@`}const N=`${k}//${M}${R}${K?`:${K}`:""}`,x={destination:new URL(N)},e=this.connectionManager.lease(x,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:h||!1}),wr=Jr((Zr)=>{if(h)this.destroySession(e);F=!0,L(Zr)},"rejectWithDestroy"),Vr=iz.buildQueryString(l||{});let Gw=f.path;if(Vr)Gw+=`?${Vr}`;if(f.fragment)Gw+=`#${f.fragment}`;const Ps=e.request({...f.headers,[Nz.constants.HTTP2_HEADER_PATH]:Gw,[Nz.constants.HTTP2_HEADER_METHOD]:S});if(e.ref(),Ps.on("response",(Zr)=>{const xs=new mz.HttpResponse({statusCode:Zr[":status"]||-1,headers:vz(Zr),body:Ps});if(F=!0,C({response:xs}),h)e.close(),this.connectionManager.deleteSession(N,e)}),w)Ps.setTimeout(w,()=>{Ps.close();const Zr=new Error(`Stream timed out because of no activity for ${w} ms`);Zr.name="TimeoutError",wr(Zr)});if(s){const Zr=Jr(()=>{Ps.close();const xs=new Error("Request aborted");xs.name="AbortError",wr(xs)},"onAbort");if(typeof s.addEventListener==="function"){const xs=s;xs.addEventListener("abort",Zr,{once:!0}),Ps.once("close",()=>xs.removeEventListener("abort",Zr))}else s.onabort=Zr}Ps.on("frameError",(Zr,xs,sk)=>{wr(new Error(`Frame type id ${Zr} in stream id ${sk} has failed with code ${xs}.`))}),Ps.on("error",wr),Ps.on("aborted",()=>{wr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Ps.rstCode}.`))}),Ps.on("close",()=>{if(e.unref(),h)e.destroy();if(!F)wr(new Error("Unexpected error: http2 request did not get a response"))}),U=Y5(Ps,f,w)})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}destroySession(f){if(!f.destroyed)f.destroy()}};Jr(gz,"NodeHttp2Handler");var hv=gz,_z=class r extends jz.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,s,w){this.bufferedBytes.push(f),w()}};Jr(_z,"Collector");var $v=_z,Ev=Jr((r)=>{if(Iv(r))return xz(r);return new Promise((f,s)=>{const w=new $v;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},"streamCollector"),Iv=Jr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");Jr(xz,"collectReadableStream")});var wR=j((e0r,fR)=>{function pz(r=0){return new Promise((f,s)=>{if(r)setTimeout(()=>{const w=new Error(`Request did not complete within ${r} ms`);w.name="TimeoutError",s(w)},r)})}async function tz(r){const f=await sR(r),s=zv.fromBase64(f);return new Uint8Array(s)}async function rR(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function sR(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var{defineProperty:cE,getOwnPropertyDescriptor:Fv,getOwnPropertyNames:Uv}=Object,Tv=Object.prototype.hasOwnProperty,T0=(r,f)=>cE(r,"name",{value:f,configurable:!0}),Gv=(r,f)=>{for(var s in f)cE(r,s,{get:f[s],enumerable:!0})},Cv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Uv(f))if(!Tv.call(r,h)&&h!==s)cE(r,h,{get:()=>f[h],enumerable:!(w=Fv(f,h))||w.enumerable})}return r},Lv=(r)=>Cv(cE({},"__esModule",{value:!0}),r),az={};Gv(az,{FetchHttpHandler:()=>Wv,keepAliveSupport:()=>OE,streamCollector:()=>Rv});fR.exports=Lv(az);var oz=F0(),Av=S5();T0(pz,"requestTimeout");var OE={supported:void 0},uz=class r{static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}constructor(f){if(typeof f==="function")this.configProvider=f().then((s)=>s||{});else this.config=f??{},this.configProvider=Promise.resolve(this.config);if(OE.supported===void 0)OE.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;const w=this.config.requestTimeout,h=this.config.keepAlive===!0,$=this.config.credentials;if(s==null?void 0:s.aborted){const M=new Error("Request aborted");return M.name="AbortError",Promise.reject(M)}let E=f.path;const I=Av.buildQueryString(f.query||{});if(I)E+=`?${I}`;if(f.fragment)E+=`#${f.fragment}`;let F="";if(f.username!=null||f.password!=null){const M=f.username??"",N=f.password??"";F=`${M}:${N}@`}const{port:U,method:C}=f,L=`${f.protocol}//${F}${f.hostname}${U?`:${U}`:""}${E}`,R=C==="GET"||C==="HEAD"?void 0:f.body,S={body:R,headers:new Headers(f.headers),method:C,credentials:$};if(R)S.duplex="half";if(typeof AbortController!=="undefined")S.signal=s;if(OE.supported)S.keepalive=h;let K=T0(()=>{},"removeSignalEventListener");const k=new Request(L,S),l=[fetch(k).then((M)=>{const N=M.headers,x={};for(let wr of N.entries())x[wr[0]]=wr[1];if(M.body==null)return M.blob().then((wr)=>({response:new oz.HttpResponse({headers:x,reason:M.statusText,statusCode:M.status,body:wr})}));return{response:new oz.HttpResponse({headers:x,reason:M.statusText,statusCode:M.status,body:M.body})}}),pz(w)];if(s)l.push(new Promise((M,N)=>{const x=T0(()=>{const e=new Error("Request aborted");e.name="AbortError",N(e)},"onAbort");if(typeof s.addEventListener==="function"){const e=s;e.addEventListener("abort",x,{once:!0}),K=T0(()=>e.removeEventListener("abort",x),"removeSignalEventListener")}else s.onabort=x}));return Promise.race(l).finally(K)}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[f]=s,w})}httpHandlerConfigs(){return this.config??{}}};T0(uz,"FetchHttpHandler");var Wv=uz,zv=iE(),Rv=T0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return tz(r);return rR(r)},"streamCollector");T0(tz,"collectBlob");T0(rR,"collectStream");T0(sR,"readToBase64")});var gE=j((n0r,UR)=>{function IR(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const f=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2){const w=r.slice(s,s+2).toLowerCase();if(w in K5)f[s/2]=K5[w];else throw new Error(`Cannot decode unrecognized sequence ${w} as hexadecimal`)}return f}function FR(r){let f="";for(let s=0;s<r.byteLength;s++)f+=ER[r[s]];return f}var{defineProperty:bE,getOwnPropertyDescriptor:Sv,getOwnPropertyNames:Pv}=Object,Xv=Object.prototype.hasOwnProperty,hR=(r,f)=>bE(r,"name",{value:f,configurable:!0}),Yv=(r,f)=>{for(var s in f)bE(r,s,{get:f[s],enumerable:!0})},Kv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Pv(f))if(!Xv.call(r,h)&&h!==s)bE(r,h,{get:()=>f[h],enumerable:!(w=Sv(f,h))||w.enumerable})}return r},Zv=(r)=>Kv(bE({},"__esModule",{value:!0}),r),$R={};Yv($R,{fromHex:()=>IR,toHex:()=>FR});UR.exports=Zv($R);var ER={},K5={};for(let r=0;r<256;r++){let f=r.toString(16).toLowerCase();if(f.length===1)f=`0${f}`;ER[r]=f,K5[f]=r}hR(IR,"fromHex");hR(FR,"toHex")});var S1=j((TR)=>{Object.defineProperty(TR,"__esModule",{value:!0});TR.isReadableStream=void 0;var Jv=(r)=>{var f;return typeof ReadableStream==="function"&&(((f=r===null||r===void 0?void 0:r.constructor)===null||f===void 0?void 0:f.name)===ReadableStream.name||r instanceof ReadableStream)};TR.isReadableStream=Jv});var RR=j((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});WR.sdkStreamMixin=void 0;var Qv=wR(),Mv=iE(),Bv=gE(),lv=q0(),CR=S1(),LR="The stream has already been transformed.",Hv=(r)=>{var f,s;if(!AR(r)&&!CR.isReadableStream(r)){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(LR);return w=!0,await Qv.streamCollector(r)},$=(E)=>{if(typeof E.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return E.stream()};return Object.assign(r,{transformToByteArray:h,transformToString:async(E)=>{const I=await h();if(E==="base64")return Mv.toBase64(I);else if(E==="hex")return Bv.toHex(I);else if(E===void 0||E==="utf8"||E==="utf-8")return lv.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error(LR);if(w=!0,AR(r))return $(r);else if(CR.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};WR.sdkStreamMixin=Hv;var AR=(r)=>typeof Blob==="function"&&r instanceof Blob});var YR=j((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});PR.sdkStreamMixin=void 0;var Vv=nz(),Dv=z1(),Z5=import.meta.require("stream"),kv=import.meta.require("util"),Nv=RR(),SR="The stream has already been transformed.",yv=(r)=>{var f,s;if(!(r instanceof Z5.Readable))try{return Nv.sdkStreamMixin(r)}catch($){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(SR);return w=!0,await Vv.streamCollector(r)};return Object.assign(r,{transformToByteArray:h,transformToString:async($)=>{const E=await h();if($===void 0||Buffer.isEncoding($))return Dv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString($);else return new kv.TextDecoder($).decode(E)},transformToWebStream:()=>{if(w)throw new Error(SR);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Z5.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return w=!0,Z5.Readable.toWeb(r)}})};PR.sdkStreamMixin=yv});var JR=j((KR)=>{async function qv(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}Object.defineProperty(KR,"__esModule",{value:!0});KR.splitStream=void 0;KR.splitStream=qv});var lR=j((MR)=>{async function vv(r){if(iv.isReadableStream(r))return mv.splitStream(r);const f=new QR.PassThrough,s=new QR.PassThrough;return r.pipe(f),r.pipe(s),[f,s]}Object.defineProperty(MR,"__esModule",{value:!0});MR.splitStream=void 0;var QR=import.meta.require("stream"),mv=JR(),iv=S1();MR.splitStream=vv});var DR=j((HR)=>{async function jv(r,f){var s;let w=0;const h=[],$=r.getReader();let E=!1;while(!E){const{done:U,value:C}=await $.read();if(C)h.push(C),w+=(s=C===null||C===void 0?void 0:C.byteLength)!==null&&s!==void 0?s:0;if(w>=f)break;E=U}$.releaseLock();const I=new Uint8Array(Math.min(f,w));let F=0;for(let U of h){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}Object.defineProperty(HR,"__esModule",{value:!0});HR.headStream=void 0;HR.headStream=jv});var qR=j((NR)=>{Object.defineProperty(NR,"__esModule",{value:!0});NR.headStream=void 0;var dv=import.meta.require("stream"),Ov=DR(),cv=S1(),bv=(r,f)=>{if(cv.isReadableStream(r))return Ov.headStream(r,f);return new Promise((s,w)=>{const h=new kR;h.limit=f,r.pipe(h),r.on("error",($)=>{h.end(),w($)}),h.on("error",w),h.on("finish",function(){const $=new Uint8Array(Buffer.concat(this.buffers));s($)})})};NR.headStream=bv;class kR extends dv.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,f,s){var w;if(this.buffers.push(r),this.bytesBuffered+=(w=r.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const h=this.bytesBuffered-this.limit,$=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=$.subarray(0,$.byteLength-h),this.emit("finish")}s()}}});var OR=j((fwr,Rw)=>{function vR(r,f="utf-8"){if(f==="base64")return mR.toBase64(r);return iR.toUtf8(r)}function jR(r,f){if(f==="base64")return Q5.mutate(mR.fromBase64(r));return Q5.mutate(iR.fromUtf8(r))}var{defineProperty:_E,getOwnPropertyDescriptor:gv,getOwnPropertyNames:_v}=Object,xv=Object.prototype.hasOwnProperty,M5=(r,f)=>_E(r,"name",{value:f,configurable:!0}),ev=(r,f)=>{for(var s in f)_E(r,s,{get:f[s],enumerable:!0})},J5=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of _v(f))if(!xv.call(r,h)&&h!==s)_E(r,h,{get:()=>f[h],enumerable:!(w=gv(f,h))||w.enumerable})}return r},P1=(r,f,s)=>(J5(r,f,"default"),s&&J5(s,f,"default")),nv=(r)=>J5(_E({},"__esModule",{value:!0}),r),zw={};ev(zw,{Uint8ArrayBlobAdapter:()=>Q5});Rw.exports=nv(zw);var mR=iE(),iR=q0();M5(vR,"transformToString");M5(jR,"transformFromString");var dR=class r extends Uint8Array{static fromString(f,s="utf-8"){switch(typeof f){case"string":return jR(f,s);default:throw new Error(`Unsupported conversion from ${typeof f} to Uint8ArrayBlobAdapter.`)}}static mutate(f){return Object.setPrototypeOf(f,r.prototype),f}transformToString(f="utf-8"){return vR(this,f)}};M5(dR,"Uint8ArrayBlobAdapter");var Q5=dR;P1(zw,Qz(),Rw.exports);P1(zw,YR(),Rw.exports);P1(zw,lR(),Rw.exports);P1(zw,qR(),Rw.exports);P1(zw,S1(),Rw.exports)});var wh=j((wwr,TS)=>{function sS(r){const f=r.getUTCFullYear(),s=r.getUTCMonth(),w=r.getUTCDay(),h=r.getUTCDate(),$=r.getUTCHours(),E=r.getUTCMinutes(),I=r.getUTCSeconds(),F=h<10?`0${h}`:`${h}`,U=$<10?`0${$}`:`${$}`,C=E<10?`0${E}`:`${E}`,L=I<10?`0${I}`:`${I}`;return`${Kj[w]}, ${F} ${i5[s]} ${f} ${U}:${C}:${L} GMT`}function nE(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}function v5(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,sd(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}FS(w,null,$,E)}return w}function US(r,f,s){if(s<=0||!Number.isInteger(s))throw new Error("Invalid number of delimiters ("+s+") for splitEvery.");const w=r.split(f);if(s===1)return w;const h=[];let $="";for(let E=0;E<w.length;E++){if($==="")$=w[E];else $+=f+w[E];if((E+1)%s===0)h.push($),$=""}if($!=="")h.push($);return h}var{defineProperty:oE,getOwnPropertyDescriptor:ov,getOwnPropertyNames:av}=Object,pv=Object.prototype.hasOwnProperty,v=(r,f)=>oE(r,"name",{value:f,configurable:!0}),uv=(r,f)=>{for(var s in f)oE(r,s,{get:f[s],enumerable:!0})},tv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of av(f))if(!pv.call(r,h)&&h!==s)oE(r,h,{get:()=>f[h],enumerable:!(w=ov(f,h))||w.enumerable})}return r},rj=(r)=>tv(oE({},"__esModule",{value:!0}),r),bR={};uv(bR,{Client:()=>fj,Command:()=>nR,LazyJsonString:()=>uj,NoOpLogger:()=>sj,SENSITIVE_STRING:()=>$j,ServiceException:()=>dj,StringWrapper:()=>J1,_json:()=>N5,collectBody:()=>wj,convertMap:()=>tj,createAggregatedClient:()=>Ej,dateToUtcString:()=>sS,decorateServiceException:()=>wS,emitWarningIfUnsupportedVersion:()=>gj,expectBoolean:()=>Fj,expectByte:()=>k5,expectFloat32:()=>xE,expectInt:()=>Tj,expectInt32:()=>V5,expectLong:()=>K1,expectNonNull:()=>Cj,expectNumber:()=>Y1,expectObject:()=>aR,expectShort:()=>D5,expectString:()=>Lj,expectUnion:()=>Aj,extendedEncodeURIComponent:()=>nE,getArrayIfSingleItem:()=>pj,getDefaultClientConfiguration:()=>oj,getDefaultExtensionConfiguration:()=>$S,getValueFromTextNode:()=>ES,handleFloat:()=>Rj,limitedParseDouble:()=>m5,limitedParseFloat:()=>Sj,limitedParseFloat32:()=>Pj,loadConfigsForDefaultMode:()=>bj,logger:()=>Z1,map:()=>v5,parseBoolean:()=>Ij,parseEpochTimestamp:()=>Dj,parseRfc3339DateTime:()=>Jj,parseRfc3339DateTimeWithOffset:()=>Mj,parseRfc7231DateTime:()=>Vj,resolveDefaultRuntimeConfig:()=>aj,resolvedPath:()=>hd,serializeDateTime:()=>Ed,serializeFloat:()=>$d,splitEvery:()=>US,strictParseByte:()=>rS,strictParseDouble:()=>q5,strictParseFloat:()=>Wj,strictParseFloat32:()=>pR,strictParseInt:()=>Xj,strictParseInt32:()=>Yj,strictParseLong:()=>tR,strictParseShort:()=>rh,take:()=>rd,throwDefaultError:()=>hS,withBaseException:()=>Oj});TS.exports=rj(bR);var gR=class r{trace(){}debug(){}info(){}warn(){}error(){}};v(gR,"NoOpLogger");var sj=gR,_R=$z(),xR=class r{constructor(f){this.middlewareStack=_R.constructStack(),this.config=f}send(f,s,w){const h=typeof s!=="function"?s:void 0,$=typeof s==="function"?s:w,E=f.resolveMiddleware(this.middlewareStack,this.config,h);if($)E(f).then((I)=>$(null,I.output),(I)=>$(I)).catch(()=>{});else return E(f).then((I)=>I.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};v(xR,"Client");var fj=xR,B5=OR(),wj=v(async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return B5.Uint8ArrayBlobAdapter.mutate(r);if(!r)return B5.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const s=f.streamCollector(r);return B5.Uint8ArrayBlobAdapter.mutate(await s)},"collectBody"),H5=$s(),eR=class r{constructor(){this.middlewareStack=_R.constructStack()}static classBuilder(){return new hj}resolveMiddlewareWithContext(f,s,w,{middlewareFn:h,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:C,CommandCtor:L}){for(let l of h.bind(this)(L,f,s,w))this.middlewareStack.use(l);const R=f.concat(this.middlewareStack),{logger:S}=s,K={logger:S,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[H5.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...C},{requestHandler:k}=s;return R.resolve((l)=>k.handle(l.request,w||{}),K)}};v(eR,"Command");var nR=eR,oR=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,s,w={}){return this._smithyContext={service:f,operation:s,...w},this}c(f={}){return this._additionalContext=f,this}n(f,s){return this._clientName=f,this._commandName=s,this}f(f=(w)=>w,s=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=s,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){var f;const s=this;let w;return w=(f=class extends nR{constructor(...[h]){super();this.serialize=s._serializer,this.deserialize=s._deserializer,this.input=h??{},s._init(this)}static getEndpointParameterInstructions(){return s._ep}resolveMiddleware(h,$,E){return this.resolveMiddlewareWithContext(h,$,E,{CommandCtor:w,middlewareFn:s._middlewareFn,clientName:s._clientName,commandName:s._commandName,inputFilterSensitiveLog:s._inputFilterSensitiveLog,outputFilterSensitiveLog:s._outputFilterSensitiveLog,smithyContext:s._smithyContext,additionalContext:s._additionalContext})}},v(f,"CommandRef"),f)}};v(oR,"ClassBuilder");var hj=oR,$j="***SensitiveInformation***",Ej=v((r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=v(async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}},"createAggregatedClient"),Ij=v((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),Fj=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)Z1.warn(eE(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")Z1.warn(eE(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),Y1=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))Z1.warn(eE(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),Uj=Math.ceil(340282346638528860000000000000000000000),xE=v((r)=>{const f=Y1(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>Uj)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},"expectFloat32"),K1=v((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),Tj=K1,V5=v((r)=>y5(r,32),"expectInt32"),D5=v((r)=>y5(r,16),"expectShort"),k5=v((r)=>y5(r,8),"expectByte"),y5=v((r,f)=>{const s=K1(r);if(s!==void 0&&Gj(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},"expectSizedInt"),Gj=v((r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),Cj=v((r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),aR=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},"expectObject"),Lj=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return Z1.warn(eE(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),Aj=v((r)=>{if(r===null||r===void 0)return;const f=aR(r),s=Object.entries(f).filter(([,w])=>w!=null).map(([w])=>w);if(s.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(s.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${s} were not null.`);return f},"expectUnion"),q5=v((r)=>{if(typeof r=="string")return Y1(fh(r));return Y1(r)},"strictParseDouble"),Wj=q5,pR=v((r)=>{if(typeof r=="string")return xE(fh(r));return xE(r)},"strictParseFloat32"),zj=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,fh=v((r)=>{const f=r.match(zj);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),m5=v((r)=>{if(typeof r=="string")return uR(r);return Y1(r)},"limitedParseDouble"),Rj=m5,Sj=m5,Pj=v((r)=>{if(typeof r=="string")return uR(r);return xE(r)},"limitedParseFloat32"),uR=v((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),tR=v((r)=>{if(typeof r==="string")return K1(fh(r));return K1(r)},"strictParseLong"),Xj=tR,Yj=v((r)=>{if(typeof r==="string")return V5(fh(r));return V5(r)},"strictParseInt32"),rh=v((r)=>{if(typeof r==="string")return D5(fh(r));return D5(r)},"strictParseShort"),rS=v((r)=>{if(typeof r==="string")return k5(fh(r));return k5(r)},"strictParseByte"),eE=v((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),Z1={warn:console.warn},Kj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v(sS,"dateToUtcString");var Zj=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Jj=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=Zj.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=rh(sh(w)),L=Bf(h,"month",1,12),R=Bf($,"day",1,31);return X1(C,L,R,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),Qj=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Mj=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=Qj.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=rh(sh(w)),R=Bf(h,"month",1,12),S=Bf($,"day",1,31),K=X1(L,R,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")K.setTime(K.getTime()-jj(C));return K},"parseRfc3339DateTimeWithOffset"),Bj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),lj=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Hj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Vj=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let f=Bj.exec(r);if(f){const[s,w,h,$,E,I,F,U]=f;return X1(rh(sh($)),l5(h),Bf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})}if(f=lj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return yj(X1(kj($),l5(h),Bf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(f=Hj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return X1(rh(sh(U)),l5(w),Bf(h.trimLeft(),"day",1,31),{hours:$,minutes:E,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Dj=v((r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=q5(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},"parseEpochTimestamp"),X1=v((r,f,s,w)=>{const h=f-1;return mj(r,h,s),new Date(Date.UTC(r,h,s,Bf(w.hours,"hour",0,23),Bf(w.minutes,"minute",0,59),Bf(w.seconds,"seconds",0,60),vj(w.fractionalMilliseconds)))},"buildDate"),kj=v((r)=>{const f=new Date().getUTCFullYear(),s=Math.floor(f/100)*100+rh(sh(r));if(s<f)return s+100;return s},"parseTwoDigitYear"),Nj=1576800000000,yj=v((r)=>{if(r.getTime()-new Date().getTime()>Nj)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),l5=v((r)=>{const f=i5.indexOf(r);if(f<0)throw new TypeError(`Invalid month: ${r}`);return f+1},"parseMonthByShortName"),qj=[31,28,31,30,31,30,31,31,30,31,30,31],mj=v((r,f,s)=>{let w=qj[f];if(f===1&&ij(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${i5[f]} in ${r}: ${s}`)},"validateDayOfMonth"),ij=v((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),Bf=v((r,f,s,w)=>{const h=rS(sh(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},"parseDateValue"),vj=v((r)=>{if(r===null||r===void 0)return 0;return pR("0."+r)*1000},"parseMilliseconds"),jj=v((r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},"parseOffsetToMilliseconds"),sh=v((r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)},"stripLeadingZeroes"),fS=class r extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,r.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}};v(fS,"ServiceException");var dj=fS,wS=v((r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r},"decorateServiceException"),hS=v(({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=cj(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:(f==null?void 0:f.code)||(f==null?void 0:f.Code)||w||$||"UnknownError",$fault:"client",$metadata:h});throw wS(E,f)},"throwDefaultError"),Oj=v((r)=>{return({output:f,parsedBody:s,errorCode:w})=>{hS({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},"withBaseException"),cj=v((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),bj=v((r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),cR=!1,gj=v((r)=>{if(r&&!cR&&parseInt(r.substring(1,r.indexOf(".")))<16)cR=!0},"emitWarningIfUnsupportedVersion"),_j=v((r)=>{const f=[];for(let s in H5.AlgorithmId){const w=H5.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),xj=v((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),ej=v((r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},"getRetryConfiguration"),nj=v((r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f},"resolveRetryRuntimeConfig"),$S=v((r)=>{return{..._j(r),...ej(r)}},"getDefaultExtensionConfiguration"),oj=$S,aj=v((r)=>{return{...xj(r),...nj(r)}},"resolveDefaultRuntimeConfig");v(nE,"extendedEncodeURIComponent");var pj=v((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),ES=v((r)=>{for(let s in r)if(r.hasOwnProperty(s)&&r[s]["#text"]!==void 0)r[s]=r[s]["#text"];else if(typeof r[s]==="object"&&r[s]!==null)r[s]=ES(r[s]);return r},"getValueFromTextNode"),J1=v(function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s},"StringWrapper");J1.prototype=Object.create(String.prototype,{constructor:{value:J1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(J1,String);var IS=class r extends J1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(f){if(f instanceof r)return f;else if(f instanceof String||typeof f==="string")return new r(f);return new r(JSON.stringify(f))}};v(IS,"LazyJsonString");var uj=IS;v(v5,"map");var tj=v((r)=>{const f={};for(let[s,w]of Object.entries(r||{}))f[s]=[,w];return f},"convertMap"),rd=v((r,f)=>{const s={};for(let w in f)FS(s,r,f,w);return s},"take"),sd=v((r,f,s)=>{return v5(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},"mapWithFilter"),FS=v((r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=fd,F=wd,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},"applyInstruction"),fd=v((r)=>r!=null,"nonNullish"),wd=v((r)=>r,"pass"),hd=v((r,f,s,w,h,$)=>{if(f!=null&&f[s]!==void 0){const E=w();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+s+".");r=r.replace(h,$?E.split("/").map((I)=>nE(I)).join("/"):nE(E))}else throw new Error("No value provided for input HTTP label: "+s+".");return r},"resolvedPath"),$d=v((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),Ed=v((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),N5=v((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(N5);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=N5(r[s])}return f}return r},"_json");v(US,"splitEvery")});var LS=j((GS)=>{Object.defineProperty(GS,"__esModule",{value:!0});GS.isStreamingPayload=void 0;var Id=import.meta.require("stream"),Fd=(r)=>(r===null||r===void 0?void 0:r.body)instanceof Id.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;GS.isStreamingPayload=Fd});var DS=j((Ewr,VS)=>{var{defineProperty:aE,getOwnPropertyDescriptor:Ud,getOwnPropertyNames:Td}=Object,Gd=Object.prototype.hasOwnProperty,Dr=(r,f)=>aE(r,"name",{value:f,configurable:!0}),Cd=(r,f)=>{for(var s in f)aE(r,s,{get:f[s],enumerable:!0})},Ld=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Td(f))if(!Gd.call(r,h)&&h!==s)aE(r,h,{get:()=>f[h],enumerable:!(w=Ud(f,h))||w.enumerable})}return r},Ad=(r)=>Ld(aE({},"__esModule",{value:!0}),r),WS={};Cd(WS,{AdaptiveRetryStrategy:()=>Rd,CONFIG_MAX_ATTEMPTS:()=>d5,CONFIG_RETRY_MODE:()=>JS,ENV_MAX_ATTEMPTS:()=>j5,ENV_RETRY_MODE:()=>ZS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Sd,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Xd,StandardRetryStrategy:()=>YS,defaultDelayDecider:()=>RS,defaultRetryDecider:()=>SS,getOmitRetryHeadersPlugin:()=>Yd,getRetryAfterHint:()=>HS,getRetryPlugin:()=>Bd,omitRetryHeadersMiddleware:()=>QS,omitRetryHeadersMiddlewareOptions:()=>MS,resolveRetryConfig:()=>Pd,retryMiddleware:()=>BS,retryMiddlewareOptions:()=>lS});VS.exports=Ad(WS);var hh=F0(),zS=h5(),Yr=rz(),Wd=Dr((r,f)=>{const s=r,w=(f==null?void 0:f.noRetryIncrement)??Yr.NO_RETRY_INCREMENT,h=(f==null?void 0:f.retryCost)??Yr.RETRY_COST,$=(f==null?void 0:f.timeoutRetryCost)??Yr.TIMEOUT_RETRY_COST;let E=r;const I=Dr((L)=>L.name==="TimeoutError"?$:h,"getCapacityAmount"),F=Dr((L)=>I(L)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:Dr((L)=>{if(!F(L))throw new Error("No retry token available");const R=I(L);return E-=R,R},"retrieveRetryTokens"),releaseRetryTokens:Dr((L)=>{E+=L??w,E=Math.min(E,s)},"releaseRetryTokens")})},"getDefaultRetryQuota"),RS=Dr((r,f)=>Math.floor(Math.min(Yr.MAXIMUM_RETRY_DELAY,Math.random()*2**f*r)),"defaultDelayDecider"),m0=$5(),SS=Dr((r)=>{if(!r)return!1;return m0.isRetryableByTrait(r)||m0.isClockSkewError(r)||m0.isThrottlingError(r)||m0.isTransientError(r)},"defaultRetryDecider"),PS=Dr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),XS=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode=Yr.RETRY_MODES.STANDARD,this.retryDecider=(s==null?void 0:s.retryDecider)??SS,this.delayDecider=(s==null?void 0:s.delayDecider)??RS,this.retryQuota=(s==null?void 0:s.retryQuota)??Wd(Yr.INITIAL_RETRY_TOKENS)}shouldRetry(f,s,w){return s<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(s){f=Yr.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,s,w){let h,$=0,E=0;const I=await this.getMaxAttempts(),{request:F}=s;if(hh.HttpRequest.isInstance(F))F.headers[Yr.INVOCATION_ID_HEADER]=zS.v4();while(!0)try{if(hh.HttpRequest.isInstance(F))F.headers[Yr.REQUEST_HEADER]=`attempt=${$+1}; max=${I}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:U,output:C}=await f(s);if(w==null?void 0:w.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(h),C.$metadata.attempts=$+1,C.$metadata.totalRetryDelay=E,{response:U,output:C}}catch(U){const C=PS(U);if($++,this.shouldRetry(C,$,I)){h=this.retryQuota.retrieveRetryTokens(C);const L=this.delayDecider(m0.isThrottlingError(C)?Yr.THROTTLING_RETRY_DELAY_BASE:Yr.DEFAULT_RETRY_DELAY_BASE,$),R=zd(C.$response),S=Math.max(R||0,L);E+=S,await new Promise((K)=>setTimeout(K,S));continue}if(!C.$metadata)C.$metadata={};throw C.$metadata.attempts=$,C.$metadata.totalRetryDelay=E,C}}};Dr(XS,"StandardRetryStrategy");var YS=XS,zd=Dr((r)=>{if(!hh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return w*1000;return new Date(s).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),KS=class r extends YS{constructor(f,s){const{rateLimiter:w,...h}=s??{};super(f,h);this.rateLimiter=w??new Yr.DefaultRateLimiter,this.mode=Yr.RETRY_MODES.ADAPTIVE}async retry(f,s){return super.retry(f,s,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};Dr(KS,"AdaptiveRetryStrategy");var Rd=KS,AS=U1(),j5="AWS_MAX_ATTEMPTS",d5="max_attempts",Sd={environmentVariableSelector:(r)=>{const f=r[j5];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${j5} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[d5];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${d5} mast be a number, got "${f}"`);return s},default:Yr.DEFAULT_MAX_ATTEMPTS},Pd=Dr((r)=>{const{retryStrategy:f}=r,s=AS.normalizeProvider(r.maxAttempts??Yr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await AS.normalizeProvider(r.retryMode)()===Yr.RETRY_MODES.ADAPTIVE)return new Yr.AdaptiveRetryStrategy(s);return new Yr.StandardRetryStrategy(s)}}},"resolveRetryConfig"),ZS="AWS_RETRY_MODE",JS="retry_mode",Xd={environmentVariableSelector:(r)=>r[ZS],configFileSelector:(r)=>r[JS],default:Yr.DEFAULT_RETRY_MODE},QS=Dr(()=>(r)=>async(f)=>{const{request:s}=f;if(hh.HttpRequest.isInstance(s))delete s.headers[Yr.INVOCATION_ID_HEADER],delete s.headers[Yr.REQUEST_HEADER];return r(f)},"omitRetryHeadersMiddleware"),MS={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Yd=Dr((r)=>({applyToStack:(f)=>{f.addRelativeTo(QS(),MS)}}),"getOmitRetryHeadersPlugin"),Kd=wh(),Zd=LS(),BS=Dr((r)=>(f,s)=>async(w)=>{var h;let $=await r.retryStrategy();const E=await r.maxAttempts();if(Jd($)){$=$;let I=await $.acquireInitialRetryToken(s.partition_id),F=new Error,U=0,C=0;const{request:L}=w,R=hh.HttpRequest.isInstance(L);if(R)L.headers[Yr.INVOCATION_ID_HEADER]=zS.v4();while(!0)try{if(R)L.headers[Yr.REQUEST_HEADER]=`attempt=${U+1}; max=${E}`;const{response:S,output:K}=await f(w);return $.recordSuccess(I),K.$metadata.attempts=U+1,K.$metadata.totalRetryDelay=C,{response:S,output:K}}catch(S){const K=Qd(S);if(F=PS(S),R&&Zd.isStreamingPayload(L))throw(h=s.logger instanceof Kd.NoOpLogger?console:s.logger)==null||h.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await $.refreshRetryTokenForRetry(I,K)}catch(l){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=C,F}U=I.getRetryCount();const k=I.getRetryDelay();C+=k,await new Promise((l)=>setTimeout(l,k))}}else{if($=$,$==null?void 0:$.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(f,w)}},"retryMiddleware"),Jd=Dr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),Qd=Dr((r)=>{const f={error:r,errorType:Md(r)},s=HS(r.$response);if(s)f.retryAfterHint=s;return f},"getRetryErrorInfo"),Md=Dr((r)=>{if(m0.isThrottlingError(r))return"THROTTLING";if(m0.isTransientError(r))return"TRANSIENT";if(m0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),lS={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Bd=Dr((r)=>({applyToStack:(f)=>{f.add(BS(r),lS)}}),"getRetryPlugin"),HS=Dr((r)=>{if(!hh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)},"getRetryAfterHint")});var dr=j((Iwr,aS)=>{function yS(r){const f=new Map;for(let s of r)f.set(s.schemeId,s);return f}function xS(r,f){return new nS(r,f)}function oS(r,f,s,w,h){return zr(async function*$(E,I,...F){let U=E.startingToken||void 0,C=!0,L;while(C){if(I[s]=U,h)I[h]=I[h]??E.pageSize;if(E.client instanceof r)L=await pd(f,E.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;const R=U;U=ud(L,w),C=!!(U&&(!E.stopOnSameToken||U!==R))}return},"paginateOperation")}var{defineProperty:uE,getOwnPropertyDescriptor:ld,getOwnPropertyNames:Hd}=Object,Vd=Object.prototype.hasOwnProperty,zr=(r,f)=>uE(r,"name",{value:f,configurable:!0}),Dd=(r,f)=>{for(var s in f)uE(r,s,{get:f[s],enumerable:!0})},kd=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Hd(f))if(!Vd.call(r,h)&&h!==s)uE(r,h,{get:()=>f[h],enumerable:!(w=ld(f,h))||w.enumerable})}return r},Nd=(r)=>kd(uE({},"__esModule",{value:!0}),r),kS={};Dd(kS,{DefaultIdentityProviderConfig:()=>cd,EXPIRATION_MS:()=>gS,HttpApiKeyAuthSigner:()=>bd,HttpBearerAuthSigner:()=>gd,NoAuthSigner:()=>_d,RequestBuilder:()=>nS,createIsIdentityExpiredFunction:()=>bS,createPaginator:()=>oS,doesIdentityRequireRefresh:()=>_S,getHttpAuthSchemeEndpointRuleSetPlugin:()=>qd,getHttpAuthSchemePlugin:()=>id,getHttpSigningPlugin:()=>Od,getSmithyContext:()=>nd,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>qS,httpAuthSchemeMiddleware:()=>O5,httpAuthSchemeMiddlewareOptions:()=>mS,httpSigningMiddleware:()=>iS,httpSigningMiddlewareOptions:()=>vS,isIdentityExpired:()=>xd,memoizeIdentityProvider:()=>ed,normalizeProvider:()=>od,requestBuilder:()=>xS});aS.exports=Nd(kS);var NS=U1();zr(yS,"convertHttpAuthSchemesToMap");var O5=zr((r,f)=>(s,w)=>async(h)=>{var $;const E=r.httpAuthSchemeProvider(await f.httpAuthSchemeParametersProvider(r,w,h.input)),I=yS(r.httpAuthSchemes),F=NS.getSmithyContext(w),U=[];for(let C of E){const L=I.get(C.schemeId);if(!L){U.push(`HttpAuthScheme \`${C.schemeId}\` was not enabled for this service.`);continue}const R=L.identityProvider(await f.identityProviderConfigProvider(r));if(!R){U.push(`HttpAuthScheme \`${C.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:S={},signingProperties:K={}}=(($=C.propertiesExtractor)==null?void 0:$.call(C,r,w))||{};C.identityProperties=Object.assign(C.identityProperties||{},S),C.signingProperties=Object.assign(C.signingProperties||{},K),F.selectedHttpAuthScheme={httpAuthOption:C,identity:await R(C.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return s(h)},"httpAuthSchemeMiddleware"),yd=yA(),qS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:yd.endpointMiddlewareOptions.name},qd=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(O5(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),qS)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),md=aF(),mS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:md.serializerMiddlewareOption.name},id=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(O5(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),mS)}}),"getHttpAuthSchemePlugin"),tE=F0(),vd=zr((r)=>(f)=>{throw f},"defaultErrorHandler"),jd=zr((r,f)=>{},"defaultSuccessHandler"),iS=zr((r)=>(f,s)=>async(w)=>{if(!tE.HttpRequest.isInstance(w.request))return f(w);const $=NS.getSmithyContext(s).selectedHttpAuthScheme;if(!$)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:E={}},identity:I,signer:F}=$,U=await f({...w,request:await F.sign(w.request,I,E)}).catch((F.errorHandler||vd)(E));return(F.successHandler||jd)(U.response,E),U},"httpSigningMiddleware"),dd=DS(),vS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:dd.retryMiddlewareOptions.name},Od=zr((r)=>({applyToStack:(f)=>{f.addRelativeTo(iS(r),vS)}}),"getHttpSigningPlugin"),jS=class r{constructor(f){this.authSchemes=new Map;for(let[s,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(s,w)}getIdentityProvider(f){return this.authSchemes.get(f)}};zr(jS,"DefaultIdentityProviderConfig");var cd=jS,pE=$s(),dS=class r{async sign(f,s,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const h=tE.HttpRequest.clone(f);if(w.in===pE.HttpApiKeyAuthLocation.QUERY)h.query[w.name]=s.apiKey;else if(w.in===pE.HttpApiKeyAuthLocation.HEADER)h.headers[w.name]=w.scheme?`${w.scheme} ${s.apiKey}`:s.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return h}};zr(dS,"HttpApiKeyAuthSigner");var bd=dS,OS=class r{async sign(f,s,w){const h=tE.HttpRequest.clone(f);if(!s.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return h.headers.Authorization=`Bearer ${s.token}`,h}};zr(OS,"HttpBearerAuthSigner");var gd=OS,cS=class r{async sign(f,s,w){return f}};zr(cS,"NoAuthSigner");var _d=cS,bS=zr((r)=>(f)=>_S(f)&&f.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),gS=300000,xd=bS(gS),_S=zr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),ed=zr((r,f,s)=>{if(r===void 0)return;const w=typeof r!=="function"?async()=>Promise.resolve(r):r;let h,$,E,I=!1;const F=zr(async(U)=>{if(!$)$=w(U);try{h=await $,E=!0,I=!1}finally{$=void 0}return h},"coalesceProvider");if(f===void 0)return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);return h};return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);if(I)return h;if(!s(h))return I=!0,h;if(f(h))return await F(U),h;return h}},"memoizeIdentityProvider"),nd=zr((r)=>r[pE.SMITHY_CONTEXT_KEY]||(r[pE.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),od=zr((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider"),ad=wh();zr(xS,"requestBuilder");var eS=class r{constructor(f,s){this.input=f,this.context=s,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:f,protocol:s="https",port:w,path:h}=await this.context.endpoint();this.path=h;for(let $ of this.resolvePathStack)$(this.path);return new tE.HttpRequest({protocol:s,hostname:this.hostname||f,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(f){return this.hostname=f,this}bp(f){return this.resolvePathStack.push((s)=>{this.path=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+f}),this}p(f,s,w,h){return this.resolvePathStack.push(($)=>{this.path=ad.resolvedPath($,this.input,f,s,w,h)}),this}h(f){return this.headers=f,this}q(f){return this.query=f,this}b(f){return this.body=f,this}m(f){return this.method=f,this}};zr(eS,"RequestBuilder");var nS=eS,pd=zr(async(r,f,s,...w)=>{return await f.send(new r(s),...w)},"makePagedClientRequest");zr(oS,"createPaginator");var ud=zr((r,f)=>{let s=r;const w=f.split(".");for(let h of w){if(!s||typeof s!=="object")return;s=s[h]}return s},"get")});function td(r){return(f)=>async(s)=>{const w=s.request;if(Qr.isInstance(w)){const{body:h,headers:$}=w;if(h&&Object.keys($).map((E)=>E.toLowerCase()).indexOf(pS)===-1)try{const E=r(h);w.headers={...w.headers,[pS]:String(E)}}catch(E){}}return f({...s,request:w})}}var pS="content-length",rO,lf=(r)=>({applyToStack:(f)=>{f.add(td(r.bodyLengthChecker),rO)}});var $h=G(()=>{kr();rO={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var uS=async(r)=>{const f=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if($O(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!hO(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},sO,fO,wO,hO=(r)=>sO.test(r)&&!fO.test(r)&&!wO.test(r),$O=(r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E};var tS=G(()=>{sO=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,fO=/(\d+\.){3}\d+/,wO=/\.\./});var rP=G(()=>{tS()});var sP=(r,f,s)=>{const w=async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h};if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.credentialScope??h?.CredentialScope};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.accountId??h?.AccountId};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w};function r3(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var fP,wP=(r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new fP.CredentialsProviderError(s.message||`Not found in ENV: ${r3(r.toString())}`,{logger:f})}};var hP=G(()=>{fP=i(Cr(),1)});import{homedir as EO}from"os";import{sep as IO}from"path";var c5,FO=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},i0=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${IO}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=FO();if(!c5[h])c5[h]=EO();return c5[h]};var Eh=G(()=>{c5={}});var $P="AWS_PROFILE",Bs=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as UO}from"crypto";import{join as TO}from"path";var s3=(r)=>{const s=UO("sha1").update(r).digest("hex");return TO(i0(),".aws","sso","cache",`${s}.json`)};var b5=G(()=>{Eh()});import{promises as GO}from"fs";var CO,f3=async(r)=>{const f=s3(r),s=await CO(f,"utf8");return JSON.parse(s)};var EP=G(()=>{b5();({readFile:CO}=GO)});var g5,IP=(r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(ls);if(s===-1)return!1;return Object.values(g5.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(ls),$=s.substring(0,h)===g5.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}});var FP=G(()=>{g5=i($s(),1);Ih()});import{join as LO}from"path";var AO="AWS_CONFIG_FILE",w3=()=>process.env[AO]||LO(i0(),".aws","config");var _5=G(()=>{Eh()});import{join as WO}from"path";var zO="AWS_SHARED_CREDENTIALS_FILE",UP=()=>process.env[zO]||WO(i0(),".aws","credentials");var TP=G(()=>{Eh()});var GP,RO,SO,Q1=(r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=RO.exec(I);if(F){const[,U,,C]=F;if(Object.values(GP.IniSectionType).includes(U))s=[U,C].join(ls)}else s=I;if(SO.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(ls):F;f[s][C]=U}}}}return f};var x5=G(()=>{GP=i($s(),1);Ih();RO=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,SO=["__proto__","profile __proto__"]});import{promises as PO}from"fs";var XO,e5,M1=(r,f)=>{if(!e5[r]||f?.ignoreCache)e5[r]=XO(r,"utf8");return e5[r]};var n5=G(()=>{({readFile:XO}=PO),e5={}});import{join as CP}from"path";var LP=()=>({}),ls=".",h3=async(r={})=>{const{filepath:f=UP(),configFilepath:s=w3()}=r,w=i0();let $=f;if(f.startsWith("~/"))$=CP(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=CP(w,s.slice(2));const I=await Promise.all([M1(E,{ignoreCache:r.ignoreCache}).then(Q1).then(IP).catch(LP),M1($,{ignoreCache:r.ignoreCache}).then(Q1).catch(LP)]);return{configFile:I[0],credentialsFile:I[1]}};var Ih=G(()=>{FP();_5();TP();Eh();x5();n5()});var AP,WP=(r)=>Object.entries(r).filter(([f])=>f.startsWith(AP.IniSectionType.SSO_SESSION+ls)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(ls)+1)]:w}),{});var zP=G(()=>{AP=i($s(),1);Ih()});var YO=()=>({}),$3=async(r={})=>M1(r.configFilepath??w3()).then(Q1).then(WP).catch(YO);var RP=G(()=>{_5();zP();x5();n5()});var SP=(...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f};var v0=async(r)=>{const f=await h3(r);return SP(f.configFile,f.credentialsFile)};var PP=G(()=>{Ih()});var XP=()=>{};var rf=G(()=>{Eh();b5();EP();Ih();RP();PP();XP()});var YP,KP=(r,{preferredFile:f="config",...s}={})=>async()=>{const w=Bs(s),{configFile:h,credentialsFile:$}=await h3(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new YP.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${r3(r.toString())}`,{logger:s.logger})}};var ZP=G(()=>{YP=i(Cr(),1);rf()});var JP,KO=(r)=>typeof r==="function",QP=(r)=>KO(r)?async()=>await r():JP.fromStatic(r);var MP=G(()=>{JP=i(Cr(),1)});var E3,u=({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>E3.memoize(E3.chain(wP(r),KP(f,w),QP(s)));var BP=G(()=>{E3=i(Cr(),1);hP();ZP();MP()});var sf=G(()=>{BP()});var lP="AWS_ENDPOINT_URL",HP="endpoint_url",VP=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[lP,...s].join("_")];if(w)return w;const h=f[lP];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(ls)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),HP].join(ls)];if(E)return E}}const w=f[HP];if(w)return w;return},default:void 0});var DP=G(()=>{rf()});var kP=async(r)=>u(VP(r))();var NP=G(()=>{sf();DP()});var o5,I3=(r)=>{if(typeof r==="object"){if("url"in r)return o5.parseUrl(r.url);return r}return o5.parseUrl(r)};var F3=G(()=>{o5=i(I0(),1)});var yP=async(r,f,s,w)=>{if(!s.endpoint){const E=await kP(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(I3(E))}const h=await ZO(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},ZO=async(r,f,s)=>{const w={},h=f?.getEndpointParameterInstructions?.()||{};for(let[$,E]of Object.entries(h))switch(E.type){case"staticContextParams":w[$]=E.value;break;case"contextParams":w[$]=r[E.name];break;case"clientContextParams":case"builtInParams":w[$]=await sP(E.name,$,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(h).length===0)Object.assign(w,s);if(String(s.serviceId).toLowerCase()==="s3")await uS(w);return w};var a5=G(()=>{rP();NP();F3()});var qP=G(()=>{a5();F3()});var mP=({config:r,instructions:f})=>{return(s,w)=>async(h)=>{const $=await yP(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=$,w.authSchemes=$.properties?.authSchemes;const E=w.authSchemes?.[0];if(E){w.signing_region=E.signingRegion,w.signing_service=E.signingName;const F=Ks(w)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return s({...h})}};var p5=G(()=>{as();a5()});var iP=(r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}};var vP=(r,f)=>(s,w)=>async(h)=>{const $=w.endpointV2?.url&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");const E=await f(h.input,{...r,endpoint:$});return s({...h,request:E})};function W(r,f,s){return{applyToStack:(w)=>{w.add(iP(r,s),JO),w.add(vP(r,f),u5)}}}var JO,u5;var jP=G(()=>{JO={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},u5={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var H=G(()=>{jP()});var QO,z=(r,f)=>({applyToStack:(s)=>{s.addRelativeTo(mP({config:r,instructions:f}),QO)}});var dP=G(()=>{H();p5();QO={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:u5.name}});var Hf=(r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>I3(await Nr(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:Nr(r.useDualstackEndpoint??!1),useFipsEndpoint:Nr(r.useFipsEndpoint??!1)}};var OP=G(()=>{as();F3()});var cP=()=>{};var B=G(()=>{qP();p5();dP();OP();cP()});var Hs,Sw=3,Vs;var U3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(Hs||(Hs={}));Vs=Hs.STANDARD});var bP,gP,_P,xP;var eP=G(()=>{bP=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],gP=["TimeoutError","RequestTimeout","RequestTimeoutException"],_P=[500,502,503,504],xP=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var MO=(r)=>r.$metadata?.clockSkewCorrected,Fh=(r)=>r.$metadata?.httpStatusCode===429||bP.includes(r.name)||r.$retryable?.throttling==!0,T3=(r)=>MO(r)||gP.includes(r.name)||xP.includes(r?.code||"")||_P.includes(r.$metadata?.httpStatusCode||0),nP=(r)=>{if(r.$metadata?.httpStatusCode!==void 0){const f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!T3(r))return!0;return!1}return!1};var B1=G(()=>{eP()});class G3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){const f=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>setTimeout(s,f))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const f=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=r}updateClientSendingRate(r){let f;if(this.updateMeasuredRate(),Fh(r)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const s=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds(),f=Math.floor(r*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const s=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(r){return parseFloat(r.toFixed(8))}}var t5=G(()=>{B1()});var Pw=100,l1=20000,rU=500,C3=500,sU=5,fU=10,wU=1,L3="amz-sdk-invocation-id",A3="amz-sdk-request";var oP=()=>{let r=Pw;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(l1,Math.random()*2**w*r))},setDelayBase:(w)=>{r=w}}};var aP=()=>{};var hU=({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:()=>f,getRetryDelay:()=>Math.min(l1,r),getRetryCost:()=>s}};var pP=()=>{};class Uh{constructor(r){this.maxAttempts=r,this.mode=Hs.STANDARD,this.capacity=C3,this.retryBackoffStrategy=oP(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return hU({retryDelay:Pw,retryCount:0})}async refreshRetryTokenForRetry(r,f){const s=await this.getMaxAttempts();if(this.shouldRetry(r,f,s)){const w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?rU:Pw);const h=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),$=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,h):h,E=this.getCapacityCost(w);return this.capacity-=E,hU({retryDelay:$,retryCount:r.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(C3,this.capacity+(r.getRetryCost()??wU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${Sw}`),Sw}}shouldRetry(r,f,s){return r.getRetryCount()+1<s&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(r){return r==="TRANSIENT"?fU:sU}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var W3=G(()=>{U3();aP();pP()});class $U{constructor(r,f){this.maxAttemptsProvider=r,this.mode=Hs.ADAPTIVE;const{rateLimiter:s}=f??{};this.rateLimiter=s??new G3,this.standardRetryStrategy=new Uh(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(r,f)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var uP=G(()=>{U3();t5();W3()});var tP=G(()=>{W3()});var rX=()=>{};var Cs=G(()=>{uP();tP();t5();W3();U3();rX()});var Vf,d1r,O1r,sX,c1r,b1r,g1r,_1r,x1r,e1r;var fX=G(()=>{Vf=i(h5(),1),d1r=Vf.default.v1,O1r=Vf.default.v3,sX=Vf.default.v4,c1r=Vf.default.v5,b1r=Vf.default.NIL,g1r=Vf.default.version,_1r=Vf.default.validate,x1r=Vf.default.stringify,e1r=Vf.default.parse});var wX=G(()=>{Cs()});var EU=G(()=>{Cs()});var IU=G(()=>{B1()});var FU=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var UU=G(()=>{kr();B1();Cs();wX();EU();IU()});var hX=G(()=>{Cs();UU()});var $X="AWS_MAX_ATTEMPTS",EX="max_attempts",Df,kf=(r)=>{const{retryStrategy:f}=r,s=Nr(r.maxAttempts??Sw);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await Nr(r.retryMode)()===Hs.ADAPTIVE)return new $U(s);return new Uh(s)}}},BO="AWS_RETRY_MODE",lO="retry_mode",Nf;var IX=G(()=>{as();Cs();Df={environmentVariableSelector:(r)=>{const f=r[$X];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${$X} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[EX];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${EX} mast be a number, got "${f}"`);return s},default:Sw},Nf={environmentVariableSelector:(r)=>r[BO],configFileSelector:(r)=>r[lO],default:Vs}});var FX=G(()=>{kr();Cs()});class Ls{trace(){}debug(){}info(){}warn(){}error(){}}var Xw=(r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},j0=(r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},Th=()=>{let r=[],f=[],s=!1;const w=new Set,h=(L)=>L.sort((R,S)=>UX[S.step]-UX[R.step]||TX[S.priority||"normal"]-TX[R.priority||"normal"]),$=(L)=>{let R=!1;const S=(K)=>{const k=Xw(K.name,K.aliases);if(k.includes(L)){R=!0;for(let l of k)w.delete(l);return!1}return!0};return r=r.filter(S),f=f.filter(S),R},E=(L)=>{let R=!1;const S=(K)=>{if(K.middleware===L){R=!0;for(let k of Xw(K.name,K.aliases))w.delete(k);return!1}return!0};return r=r.filter(S),f=f.filter(S),R},I=(L)=>{return r.forEach((R)=>{L.add(R.middleware,{...R})}),f.forEach((R)=>{L.addRelativeTo(R.middleware,{...R})}),L.identifyOnResolve?.(C.identifyOnResolve()),L},F=(L)=>{const R=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)R.push(S);else R.push(...F(S))}),R.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)R.push(S);else R.push(...F(S))}),R},U=(L=!1)=>{const R=[],S=[],K={};return r.forEach((l)=>{const M={...l,before:[],after:[]};for(let N of Xw(M.name,M.aliases))K[N]=M;R.push(M)}),f.forEach((l)=>{const M={...l,before:[],after:[]};for(let N of Xw(M.name,M.aliases))K[N]=M;S.push(M)}),S.forEach((l)=>{if(l.toMiddleware){const M=K[l.toMiddleware];if(M===void 0){if(L)return;throw new Error(`${l.toMiddleware} is not found when adding ${j0(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")M.after.push(l);if(l.relation==="before")M.before.push(l)}}),h(R).map(F).reduce((l,M)=>{return l.push(...M),l},[])},C={add:(L,R={})=>{const{name:S,override:K,aliases:k}=R,l={step:"initialize",priority:"normal",middleware:L,...R},M=Xw(S,k);if(M.length>0){if(M.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${j0(S,k)}'`);for(let N of M){const x=r.findIndex((wr)=>wr.name===N||wr.aliases?.some((Vr)=>Vr===N));if(x===-1)continue;const e=r[x];if(e.step!==l.step||l.priority!==e.priority)throw new Error(`"${j0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${j0(S,k)}" middleware with ${l.priority} priority in ${l.step} step.`);r.splice(x,1)}}for(let N of M)w.add(N)}r.push(l)},addRelativeTo:(L,R)=>{const{name:S,override:K,aliases:k}=R,l={middleware:L,...R},M=Xw(S,k);if(M.length>0){if(M.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${j0(S,k)}'`);for(let N of M){const x=f.findIndex((wr)=>wr.name===N||wr.aliases?.some((Vr)=>Vr===N));if(x===-1)continue;const e=f[x];if(e.toMiddleware!==l.toMiddleware||e.relation!==l.relation)throw new Error(`"${j0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${j0(S,k)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);f.splice(x,1)}}for(let N of M)w.add(N)}f.push(l)},clone:()=>I(Th()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let R=!1;const S=(K)=>{const{tags:k,name:l,aliases:M}=K;if(k&&k.includes(L)){const N=Xw(l,M);for(let x of N)w.delete(x);return R=!0,!1}return!0};return r=r.filter(S),f=f.filter(S),R},concat:(L)=>{const R=I(Th());return R.use(L),R.identifyOnResolve(s||R.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),R},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const R=L.step??L.relation+" "+L.toMiddleware;return j0(L.name,L.aliases)+" - "+R})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,R)=>{for(let S of U().map((K)=>K.middleware).reverse())L=S(L,R);if(s)console.log(C.identify());return L}};return C},UX,TX;var GX=G(()=>{UX={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},TX={high:3,normal:2,low:1}});var TU=G(()=>{GX()});class As{constructor(r){this.middlewareStack=Th(),this.config=r}send(r,f,s){const w=typeof f!=="function"?f:void 0,h=typeof f==="function"?f:s,$=r.resolveMiddleware(this.middlewareStack,this.config,w);if(h)$(r).then((E)=>h(null,E.output),(E)=>h(E)).catch(()=>{});else return $(r).then((E)=>E.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var CX=G(()=>{TU()});var LX=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as GU}from"buffer";var G0=(r,f=0,s=r.byteLength-f)=>{if(!LX(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return GU.from(r,f,s)},Gh=(r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?GU.from(r,f):GU.from(r)};var Yw=()=>{};var HO,Es=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!HO.exec(r))throw new TypeError("Invalid base64 string.");const f=Gh(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};var AX=G(()=>{Yw();HO=/^[A-Za-z0-9+/]*={0,2}$/});var br=(r)=>{const f=Gh(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var CU=G(()=>{Yw()});var WX=(r)=>{if(typeof r==="string")return br(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var zX=G(()=>{CU()});var Is=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return G0(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var RX=G(()=>{Yw()});var yf=G(()=>{CU();zX();RX()});var Fs=(r)=>{let f;if(typeof r==="string")f=br(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return G0(f.buffer,f.byteOffset,f.byteLength).toString("base64")};var SX=G(()=>{Yw();yf()});var C0=G(()=>{AX();SX()});function PX(r,f="utf-8"){if(f==="base64")return Fs(r);return Is(r)}function XX(r,f){if(f==="base64")return L0.mutate(Es(r));return L0.mutate(br(r))}var YX=G(()=>{C0();yf();LU()});var L0;var LU=G(()=>{YX();L0=class L0 extends Uint8Array{static fromString(r,f="utf-8"){switch(typeof r){case"string":return XX(r,f);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){return Object.setPrototypeOf(r,L0.prototype),r}transformToString(r="utf-8"){return PX(this,r)}}});var KX=()=>{};function R3(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=z3.escapeUri(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${z3.escapeUri(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${z3.escapeUri(w)}`;f.push(h)}}return f.join("&")}var z3;var S3=G(()=>{z3=i(jE(),1)});var ZX;var JX=G(()=>{ZX=["ECONNRESET","EPIPE","ETIMEDOUT"]});var AU=(r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f};var WU=()=>{};var QX=(r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})};var MX=(r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})};var BX=(r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})};import{Readable as VO}from"stream";async function zU(r,f,s=lX){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(lX,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)DO(r,f.body)}function DO(r,f){if(f instanceof VO){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}var lX=1000;var RU=()=>{};import{Agent as HX,request as kO}from"http";import{Agent as VX,request as NO}from"https";class pr{static create(r){if(typeof r?.handle==="function")return r;return new pr(r)}static checkSocketUsage(r,f,s=console){const{sockets:w,requests:h,maxSockets:$}=r;if(typeof $!=="number"||$===1/0)return f;const E=15000;if(Date.now()-E<f)return f;if(w&&h)for(let I in w){const F=w[I]?.length??0,U=h[I]?.length??0;if(F>=$&&U>=2*$)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
|
|
5
5
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
6
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,s)=>{if(typeof r==="function")r().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(s);else f(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){const{requestTimeout:f,connectionTimeout:s,socketTimeout:w,httpAgent:h,httpsAgent:$}=r||{};return{connectionTimeout:s,requestTimeout:f??w,httpAgent:(()=>{if(h instanceof QX||typeof h?.destroy==="function")return h;return new QX({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if($ instanceof MX||typeof $?.destroy==="function")return $;return new MX({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let s;return new Promise((w,h)=>{let $=void 0;const E=async(Q)=>{await $,clearTimeout(s),w(Q)},I=async(Q)=>{await $,clearTimeout(s),h(Q)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f?.aborted){const Q=new Error("Request aborted");Q.name="AbortError",I(Q);return}const F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;s=setTimeout(()=>{this.socketWarningTimestamp=tr.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const C=z3(r.query||{});let L=void 0;if(r.username!=null||r.password!=null){const Q=r.username??"",i=r.password??"";L=`${Q}:${i}`}let z=r.path;if(C)z+=`?${C}`;if(r.fragment)z+=`#${r.fragment}`;const S={headers:r.headers,host:r.hostname,method:r.method,path:z,port:r.port,agent:U,auth:L},D=(F?WO:RO)(S,(Q)=>{const i=new y0({statusCode:Q.statusCode||-1,reason:Q.statusMessage,headers:T5(Q.headers),body:Q});E({response:i})});if(D.on("error",(Q)=>{if(XX.includes(Q.code))I(Object.assign(Q,{name:"TimeoutError"}));else I(Q)}),KX(D,I,this.config.connectionTimeout),lX(D,I,this.config.requestTimeout),f){const Q=()=>{D.destroy();const i=new Error("Request aborted");i.name="AbortError",I(i)};if(typeof f.addEventListener==="function"){const i=f;i.addEventListener("abort",Q,{once:!0}),D.once("close",()=>i.removeEventListener("abort",Q))}else f.onabort=Q}const B=S.agent;if(typeof B==="object"&&"keepAlive"in B)ZX(D,{keepAlive:B.keepAlive,keepAliveMsecs:B.keepAliveMsecs});$=C5(D,r,this.config.requestTimeout).catch((Q)=>{return clearTimeout(s),h(Q)})})}updateHttpClientConfig(r,f){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[r]:f}})}httpHandlerConfigs(){return this.config??{}}}var BX=G(()=>{ir();S3();YX();G5();L5()});var HX=()=>{};var VX=G(()=>{HX()});var kX=G(()=>{ir();S3();G5();VX();L5()});import{Writable as zO}from"stream";var A5;var DX=G(()=>{A5=class A5 extends zO{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,f,s){this.bufferedBytes.push(r),s()}}});async function PO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var ms=(r)=>{if(SO(r))return PO(r);return new Promise((f,s)=>{const w=new A5;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},SO=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var iX=G(()=>{DX()});var _0=G(()=>{BX();kX();iX()});var yX=G(()=>{ir();S3()});async function XO(r){const f=await KO(r),s=Us(f);return new Uint8Array(s)}async function YO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function KO(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var mX=(r)=>{if(typeof Blob==="function"&&r instanceof Blob)return XO(r);return YO(r)};var NX=G(()=>{W0()});var qX=G(()=>{yX();NX()});var i1=(r)=>typeof ReadableStream==="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var dX,vX="The stream has already been transformed.",OX=(r)=>{if(!jX(r)&&!i1(r)){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(vX);return f=!0,await mX(r)},w=(h)=>{if(typeof h.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return h.stream()};return Object.assign(r,{transformToByteArray:s,transformToString:async(h)=>{const $=await s();if(h==="base64")return Gs($);else if(h==="hex")return dX.toHex($);else if(h===void 0||h==="utf8"||h==="utf-8")return Ts($);else if(typeof TextDecoder==="function")return new TextDecoder(h).decode($);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(f)throw new Error(vX);if(f=!0,jX(r))return w(r);else if(i1(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},jX=(r)=>typeof Blob==="function"&&r instanceof Blob;var cX=G(()=>{qX();W0();dX=u(xE(),1);jf()});import{Readable as R5}from"stream";import{TextDecoder as ZO}from"util";var bX="The stream has already been transformed.",gX=(r)=>{if(!(r instanceof R5))try{return OX(r)}catch(w){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(bX);return f=!0,await ms(r)};return Object.assign(r,{transformToByteArray:s,transformToString:async(w)=>{const h=await s();if(w===void 0||Buffer.isEncoding(w))return R0(h.buffer,h.byteOffset,h.byteLength).toString(w);else return new ZO(w).decode(h)},transformToWebStream:()=>{if(f)throw new Error(bX);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof R5.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return f=!0,R5.toWeb(r)}})};var _X=G(()=>{_0();Qw();cX()});var xX=()=>{};var eX=()=>{};var W5=G(()=>{U5();zX();_X();xX();eX()});var xr=async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return z0.mutate(r);if(!r)return z0.mutate(new Uint8Array);const s=f.streamCollector(r);return z0.mutate(await s)};var nX=G(()=>{W5()});class A{constructor(){this.middlewareStack=Rh()}static classBuilder(){return new aX}resolveMiddlewareWithContext(r,f,s,{middlewareFn:w,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:C}){for(let D of w.bind(this)(C,r,f,s))this.middlewareStack.use(D);const L=r.concat(this.middlewareStack),{logger:z}=f,S={logger:z,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,[oX.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:Z}=f;return L.resolve((D)=>Z.handle(D.request,s||{}),S)}}class aX{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,f,s={}){return this._smithyContext={service:r,operation:f,...s},this}c(r={}){return this._additionalContext=r,this}n(r,f){return this._clientName=r,this._commandName=f,this}f(r=(s)=>s,f=(s)=>s){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=f,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){const r=this;let f;return f=class extends A{static getEndpointParameterInstructions(){return r._ep}constructor(...[s]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=s??{},r._init(this)}resolveMiddleware(s,w,h){return this.resolveMiddlewareWithContext(s,w,h,{CommandCtor:f,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var oX;var pX=G(()=>{E5();oX=u(Is(),1)});var o="***SensitiveInformation***";var df=(r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}};var mr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},x0=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},Cs=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))X3.warn(P3(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},lO,uX=(r)=>{const f=Cs(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>lO)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},zh=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},Mw=(r)=>z5(r,32),tX=(r)=>z5(r,16),rY=(r)=>z5(r,8),z5=(r,f)=>{const s=zh(r);if(s!==void 0&&JO(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},JO=(r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},d=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return X3.warn(P3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},S5=(r)=>{if(typeof r=="string")return Cs(Sh(r));return Cs(r)},sY,fY=(r)=>{if(typeof r=="string")return uX(Sh(r));return uX(r)},QO,Sh=(r)=>{const f=r.match(QO);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},P5=(r)=>{if(typeof r=="string")return MO(r);return Cs(r)},MO=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},er=(r)=>{if(typeof r==="string")return zh(Sh(r));return zh(r)},$r=(r)=>{if(typeof r==="string")return Mw(Sh(r));return Mw(r)},X5=(r)=>{if(typeof r==="string")return tX(Sh(r));return tX(r)},wY=(r)=>{if(typeof r==="string")return rY(Sh(r));return rY(r)},P3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},X3;var Y5=G(()=>{lO=Math.ceil(340282346638528860000000000000000000000),sY=S5,QO=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,X3={warn:console.warn}});var BO,HO,hY=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=HO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=X5(K5(w)),L=Bw(h,"month",1,12),z=Bw($,"day",1,31);return $Y(C,L,z,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},VO,Hw=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=VO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=X5(K5(w)),z=Bw(h,"month",1,12),S=Bw($,"day",1,31),Z=$Y(L,z,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")Z.setTime(Z.getTime()-mO(C));return Z},u3r,t3r,rIr,Of=(r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=S5(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},$Y=(r,f,s,w)=>{const h=f-1;return DO(r,h,s),new Date(Date.UTC(r,h,s,Bw(w.hours,"hour",0,23),Bw(w.minutes,"minute",0,59),Bw(w.seconds,"seconds",0,60),yO(w.fractionalMilliseconds)))},kO,DO=(r,f,s)=>{let w=kO[f];if(f===1&&iO(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${BO[f]} in ${r}: ${s}`)},iO=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},Bw=(r,f,s,w)=>{const h=wY(K5(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},yO=(r)=>{if(r===null||r===void 0)return 0;return fY("0."+r)*1000},mO=(r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},K5=(r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)};var EY=G(()=>{Y5();BO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],HO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),VO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),u3r=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),t3r=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),rIr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),kO=[31,28,31,30,31,30,31,31,30,31,30,31]});var Ns,k=(r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r};var Z5=G(()=>{Ns=class Ns extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,Ns.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var NO=({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=qO(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:f?.code||f?.Code||w||$||"UnknownError",$fault:"client",$metadata:h});throw k(E,f)},cf=(r)=>{return({output:f,parsedBody:s,errorCode:w})=>{NO({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},qO=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var IY=G(()=>{Z5()});var bf=(r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var FY=!1,gf=(r)=>{if(r&&!FY&&parseInt(r.substring(1,r.indexOf(".")))<16)FY=!0};var l5,UY=(r)=>{const f=[];for(let s in l5.AlgorithmId){const w=l5.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},TY=(r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f};var GY=G(()=>{l5=u(Is(),1)});var CY=(r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},LY=(r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f};var _f=(r)=>{return{...UY(r),...CY(r)}},xf=(r)=>{return{...TY(r),...LY(r)}};var AY=G(()=>{GY()});var RY=G(()=>{AY()});function Y3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}var Cr=(r)=>Array.isArray(r)?r:[r];var J5=function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s};var WY=G(()=>{J5.prototype=Object.create(String.prototype,{constructor:{value:J5,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(J5,String)});function P(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,vO(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}zY(w,null,$,E)}return w}var p=(r,f)=>{const s={};for(let w in f)zY(s,r,f,w);return s},vO=(r,f,s)=>{return P(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},zY=(r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=jO,F=dO,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},jO=(r)=>r!=null,dO=(r)=>r;var SY=()=>{};var PY=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var m=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(m);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=m(r[s])}return f}return r};var Y=G(()=>{IX();nX();pX();EY();IY();RY();Z5();WY();Y5();SY()});import{Readable as OO}from"stream";var XY=(r)=>r?.body instanceof OO||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var YY=()=>{};var cO=(r)=>(f,s)=>async(w)=>{let h=await r.retryStrategy();const $=await r.maxAttempts();if(bO(h)){h=h;let E=await h.acquireInitialRetryToken(s.partition_id),I=new Error,F=0,U=0;const{request:C}=w,L=Qr.isInstance(C);if(L)C.headers[A3]=aP();while(!0)try{if(L)C.headers[R3]=`attempt=${F+1}; max=${$}`;const{response:z,output:S}=await f(w);return h.recordSuccess(E),S.$metadata.attempts=F+1,S.$metadata.totalRetryDelay=U,{response:z,output:S}}catch(z){const S=gO(z);if(I=h5(z),L&&XY(C))throw(s.logger instanceof Ws?console:s.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{E=await h.refreshRetryTokenForRetry(E,S)}catch(D){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=E.getRetryCount();const Z=E.getRetryDelay();U+=Z,await new Promise((D)=>setTimeout(D,Z))}}else{if(h=h,h?.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",h.mode]];return h.retry(f,w)}},bO=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",gO=(r)=>{const f={error:r,errorType:_O(r)},s=eO(r.$response);if(s)f.retryAfterHint=s;return f},_O=(r)=>{if(Lh(r))return"THROTTLING";if(G3(r))return"TRANSIENT";if(bP(r))return"SERVER_ERROR";return"CLIENT_ERROR"},xO,ef=(r)=>({applyToStack:(f)=>{f.add(cO(r),xO)}}),eO=(r)=>{if(!y0.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)};var KY=G(()=>{ir();V1();Y();Rs();pP();YY();xO={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ef=G(()=>{tP();$5();fX();f5();wX();w5();KY()});var aY=v((G2r,l3)=>{var ZY,lY,JY,QY,MY,BY,HY,VY,kY,DY,iY,yY,mY,K3,Q5,NY,qY,vY,Ph,jY,dY,OY,cY,bY,gY,_Y,xY,eY,Z3,nY,oY;(function(r){var f=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(w){r(s(f,s(w)))});else if(typeof l3==="object"&&typeof G2r==="object")r(s(f,s(G2r)));else r(s(f));function s(w,h){if(w!==f)if(typeof Object.create==="function")Object.defineProperty(w,"__esModule",{value:!0});else w.__esModule=!0;return function($,E){return w[$]=h?h($,E):E}}})(function(r){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,$){h.__proto__=$}||function(h,$){for(var E in $)if(Object.prototype.hasOwnProperty.call($,E))h[E]=$[E]};ZY=function(h,$){if(typeof $!=="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");f(h,$);function E(){this.constructor=h}h.prototype=$===null?Object.create($):(E.prototype=$.prototype,new E)},lY=Object.assign||function(h){for(var $,E=1,I=arguments.length;E<I;E++){$=arguments[E];for(var F in $)if(Object.prototype.hasOwnProperty.call($,F))h[F]=$[F]}return h},JY=function(h,$){var E={};for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)&&$.indexOf(I)<0)E[I]=h[I];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(h);F<I.length;F++)if($.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(h,I[F]))E[I[F]]=h[I[F]]}return E},QY=function(h,$,E,I){var F=arguments.length,U=F<3?$:I===null?I=Object.getOwnPropertyDescriptor($,E):I,C;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(h,$,E,I);else for(var L=h.length-1;L>=0;L--)if(C=h[L])U=(F<3?C(U):F>3?C($,E,U):C($,E))||U;return F>3&&U&&Object.defineProperty($,E,U),U},MY=function(h,$){return function(E,I){$(E,I,h)}},BY=function(h,$,E,I,F,U){function C(hr){if(hr!==void 0&&typeof hr!=="function")throw new TypeError("Function expected");return hr}var L=I.kind,z=L==="getter"?"get":L==="setter"?"set":"value",S=!$&&h?I.static?h:h.prototype:null,Z=$||(S?Object.getOwnPropertyDescriptor(S,I.name):{}),D,B=!1;for(var Q=E.length-1;Q>=0;Q--){var i={};for(var x in I)i[x]=x==="access"?{}:I[x];for(var x in I.access)i.access[x]=I.access[x];i.addInitializer=function(hr){if(B)throw new TypeError("Cannot add initializers after decoration has completed");U.push(C(hr||null))};var e=E[Q](L==="accessor"?{get:Z.get,set:Z.set}:Z[z],i);if(L==="accessor"){if(e===void 0)continue;if(e===null||typeof e!=="object")throw new TypeError("Object expected");if(D=C(e.get))Z.get=D;if(D=C(e.set))Z.set=D;if(D=C(e.init))F.unshift(D)}else if(D=C(e))if(L==="field")F.unshift(D);else Z[z]=D}if(S)Object.defineProperty(S,I.name,Z);B=!0},HY=function(h,$,E){var I=arguments.length>2;for(var F=0;F<$.length;F++)E=I?$[F].call(h,E):$[F].call(h);return I?E:void 0},VY=function(h){return typeof h==="symbol"?h:"".concat(h)},kY=function(h,$,E){if(typeof $==="symbol")$=$.description?"[".concat($.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:E?"".concat(E," ",$):$})},DY=function(h,$){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,$)},iY=function(h,$,E,I){function F(U){return U instanceof E?U:new E(function(C){C(U)})}return new(E||(E=Promise))(function(U,C){function L(Z){try{S(I.next(Z))}catch(D){C(D)}}function z(Z){try{S(I.throw(Z))}catch(D){C(D)}}function S(Z){Z.done?U(Z.value):F(Z.value).then(L,z)}S((I=I.apply(h,$||[])).next())})},yY=function(h,$){var E={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,C;return C={next:L(0),throw:L(1),return:L(2)},typeof Symbol==="function"&&(C[Symbol.iterator]=function(){return this}),C;function L(S){return function(Z){return z([S,Z])}}function z(S){if(I)throw new TypeError("Generator is already executing.");while(C&&(C=0,S[0]&&(E=0)),E)try{if(I=1,F&&(U=S[0]&2?F.return:S[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,S[1])).done)return U;if(F=0,U)S=[S[0]&2,U.value];switch(S[0]){case 0:case 1:U=S;break;case 4:return E.label++,{value:S[1],done:!1};case 5:E.label++,F=S[1],S=[0];continue;case 7:S=E.ops.pop(),E.trys.pop();continue;default:if((U=E.trys,!(U=U.length>0&&U[U.length-1]))&&(S[0]===6||S[0]===2)){E=0;continue}if(S[0]===3&&(!U||S[1]>U[0]&&S[1]<U[3])){E.label=S[1];break}if(S[0]===6&&E.label<U[1]){E.label=U[1],U=S;break}if(U&&E.label<U[2]){E.label=U[2],E.ops.push(S);break}if(U[2])E.ops.pop();E.trys.pop();continue}S=$.call(h,E)}catch(Z){S=[6,Z],F=0}finally{I=U=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},mY=function(h,$){for(var E in h)if(E!=="default"&&!Object.prototype.hasOwnProperty.call($,E))Z3($,h,E)},Z3=Object.create?function(h,$,E,I){if(I===void 0)I=E;var F=Object.getOwnPropertyDescriptor($,E);if(!F||("get"in F?!$.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return $[E]}};Object.defineProperty(h,I,F)}:function(h,$,E,I){if(I===void 0)I=E;h[I]=$[E]},K3=function(h){var $=typeof Symbol==="function"&&Symbol.iterator,E=$&&h[$],I=0;if(E)return E.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&I>=h.length)h=void 0;return{value:h&&h[I++],done:!h}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},Q5=function(h,$){var E=typeof Symbol==="function"&&h[Symbol.iterator];if(!E)return h;var I=E.call(h),F,U=[],C;try{while(($===void 0||$-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){C={error:L}}finally{try{if(F&&!F.done&&(E=I.return))E.call(I)}finally{if(C)throw C.error}}return U},NY=function(){for(var h=[],$=0;$<arguments.length;$++)h=h.concat(Q5(arguments[$]));return h},qY=function(){for(var h=0,$=0,E=arguments.length;$<E;$++)h+=arguments[$].length;for(var I=Array(h),F=0,$=0;$<E;$++)for(var U=arguments[$],C=0,L=U.length;C<L;C++,F++)I[F]=U[C];return I},vY=function(h,$,E){if(E||arguments.length===2){for(var I=0,F=$.length,U;I<F;I++)if(U||!(I in $)){if(!U)U=Array.prototype.slice.call($,0,I);U[I]=$[I]}}return h.concat(U||Array.prototype.slice.call($))},Ph=function(h){return this instanceof Ph?(this.v=h,this):new Ph(h)},jY=function(h,$,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=E.apply(h,$||[]),F,U=[];return F={},L("next"),L("throw"),L("return",C),F[Symbol.asyncIterator]=function(){return this},F;function C(Q){return function(i){return Promise.resolve(i).then(Q,D)}}function L(Q,i){if(I[Q]){if(F[Q]=function(x){return new Promise(function(e,hr){U.push([Q,x,e,hr])>1||z(Q,x)})},i)F[Q]=i(F[Q])}}function z(Q,i){try{S(I[Q](i))}catch(x){B(U[0][3],x)}}function S(Q){Q.value instanceof Ph?Promise.resolve(Q.value.v).then(Z,D):B(U[0][2],Q)}function Z(Q){z("next",Q)}function D(Q){z("throw",Q)}function B(Q,i){if(Q(i),U.shift(),U.length)z(U[0][0],U[0][1])}},dY=function(h){var $,E;return $={},I("next"),I("throw",function(F){throw F}),I("return"),$[Symbol.iterator]=function(){return this},$;function I(F,U){$[F]=h[F]?function(C){return(E=!E)?{value:Ph(h[F](C)),done:!1}:U?U(C):C}:U}},OY=function(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=h[Symbol.asyncIterator],E;return $?$.call(h):(h=typeof K3==="function"?K3(h):h[Symbol.iterator](),E={},I("next"),I("throw"),I("return"),E[Symbol.asyncIterator]=function(){return this},E);function I(U){E[U]=h[U]&&function(C){return new Promise(function(L,z){C=h[U](C),F(L,z,C.done,C.value)})}}function F(U,C,L,z){Promise.resolve(z).then(function(S){U({value:S,done:L})},C)}},cY=function(h,$){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:$});else h.raw=$;return h};var s=Object.create?function(h,$){Object.defineProperty(h,"default",{enumerable:!0,value:$})}:function(h,$){h.default=$};bY=function(h){if(h&&h.__esModule)return h;var $={};if(h!=null){for(var E in h)if(E!=="default"&&Object.prototype.hasOwnProperty.call(h,E))Z3($,h,E)}return s($,h),$},gY=function(h){return h&&h.__esModule?h:{default:h}},_Y=function(h,$,E,I){if(E==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof $==="function"?h!==$||!I:!$.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?I:E==="a"?I.call(h):I?I.value:$.get(h)},xY=function(h,$,E,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof $==="function"?h!==$||!F:!$.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(h,E):F?F.value=E:$.set(h,E),E},eY=function(h,$){if($===null||typeof $!=="object"&&typeof $!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?$===h:h.has($)},nY=function(h,$,E){if($!==null&&$!==void 0){if(typeof $!=="object"&&typeof $!=="function")throw new TypeError("Object expected.");var I,F;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=$[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=$[Symbol.dispose],E)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};h.stack.push({value:$,dispose:I,async:E})}else if(E)h.stack.push({async:!0});return $};var w=typeof SuppressedError==="function"?SuppressedError:function(h,$,E){var I=new Error(E);return I.name="SuppressedError",I.error=h,I.suppressed=$,I};oY=function(h){function $(I){h.error=h.hasError?new w(I,h.error,"An error was suppressed during disposal."):I,h.hasError=!0}function E(){while(h.stack.length){var I=h.stack.pop();try{var F=I.dispose&&I.dispose.call(I.value);if(I.async)return Promise.resolve(F).then(E,function(U){return $(U),E()})}catch(U){$(U)}}if(h.hasError)throw h.error}return E()},r("__extends",ZY),r("__assign",lY),r("__rest",JY),r("__decorate",QY),r("__param",MY),r("__esDecorate",BY),r("__runInitializers",HY),r("__propKey",VY),r("__setFunctionName",kY),r("__metadata",DY),r("__awaiter",iY),r("__generator",yY),r("__exportStar",mY),r("__createBinding",Z3),r("__values",K3),r("__read",Q5),r("__spread",NY),r("__spreadArrays",qY),r("__spreadArray",vY),r("__await",Ph),r("__asyncGenerator",jY),r("__asyncDelegator",dY),r("__asyncValues",OY),r("__makeTemplateObject",cY),r("__importStar",bY),r("__importDefault",gY),r("__classPrivateFieldGet",_Y),r("__classPrivateFieldSet",xY),r("__classPrivateFieldIn",eY),r("__addDisposableResource",nY),r("__disposeResources",oY)})});var rK=v((C2r,tY)=>{var{defineProperty:J3,getOwnPropertyDescriptor:nO,getOwnPropertyNames:oO}=Object,aO=Object.prototype.hasOwnProperty,pO=(r,f)=>J3(r,"name",{value:f,configurable:!0}),uO=(r,f)=>{for(var s in f)J3(r,s,{get:f[s],enumerable:!0})},tO=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of oO(f))if(!aO.call(r,h)&&h!==s)J3(r,h,{get:()=>f[h],enumerable:!(w=nO(f,h))||w.enumerable})}return r},rc=(r)=>tO(J3({},"__esModule",{value:!0}),r),uY={};uO(uY,{emitWarningIfUnsupportedVersion:()=>sc});tY.exports=rc(uY);var pY=!1,sc=pO((r)=>{if(r&&!pY&&parseInt(r.substring(1,r.indexOf(".")))<18)pY=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
6
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,s)=>{if(typeof r==="function")r().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(s);else f(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){const{requestTimeout:f,connectionTimeout:s,socketTimeout:w,httpAgent:h,httpsAgent:$}=r||{};return{connectionTimeout:s,requestTimeout:f??w,httpAgent:(()=>{if(h instanceof HX||typeof h?.destroy==="function")return h;return new HX({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if($ instanceof VX||typeof $?.destroy==="function")return $;return new VX({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let s;return new Promise((w,h)=>{let $=void 0;const E=async(M)=>{await $,clearTimeout(s),w(M)},I=async(M)=>{await $,clearTimeout(s),h(M)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f?.aborted){const M=new Error("Request aborted");M.name="AbortError",I(M);return}const F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;s=setTimeout(()=>{this.socketWarningTimestamp=pr.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const C=R3(r.query||{});let L=void 0;if(r.username!=null||r.password!=null){const M=r.username??"",N=r.password??"";L=`${M}:${N}`}let R=r.path;if(C)R+=`?${C}`;if(r.fragment)R+=`#${r.fragment}`;const S={headers:r.headers,host:r.hostname,method:r.method,path:R,port:r.port,agent:U,auth:L},k=(F?NO:kO)(S,(M)=>{const N=new V0({statusCode:M.statusCode||-1,reason:M.statusMessage,headers:AU(M.headers),body:M});E({response:N})});if(k.on("error",(M)=>{if(ZX.includes(M.code))I(Object.assign(M,{name:"TimeoutError"}));else I(M)}),QX(k,I,this.config.connectionTimeout),BX(k,I,this.config.requestTimeout),f){const M=()=>{k.destroy();const N=new Error("Request aborted");N.name="AbortError",I(N)};if(typeof f.addEventListener==="function"){const N=f;N.addEventListener("abort",M,{once:!0}),k.once("close",()=>N.removeEventListener("abort",M))}else f.onabort=M}const l=S.agent;if(typeof l==="object"&&"keepAlive"in l)MX(k,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs});$=zU(k,r,this.config.requestTimeout).catch((M)=>{return clearTimeout(s),h(M)})})}updateHttpClientConfig(r,f){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[r]:f}})}httpHandlerConfigs(){return this.config??{}}}var DX=G(()=>{kr();S3();JX();WU();RU()});var kX=()=>{};var NX=G(()=>{kX()});var yX=G(()=>{kr();S3();WU();NX();RU()});import{Writable as yO}from"stream";var SU;var qX=G(()=>{SU=class SU extends yO{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,f,s){this.bufferedBytes.push(r),s()}}});async function mO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var Ds=(r)=>{if(qO(r))return mO(r);return new Promise((f,s)=>{const w=new SU;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},qO=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var mX=G(()=>{qX()});var d0=G(()=>{DX();yX();mX()});var iX=G(()=>{kr();S3()});async function iO(r){const f=await jO(r),s=Es(f);return new Uint8Array(s)}async function vO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function jO(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var vX=(r)=>{if(typeof Blob==="function"&&r instanceof Blob)return iO(r);return vO(r)};var jX=G(()=>{C0()});var dX=G(()=>{iX();jX()});var H1=(r)=>typeof ReadableStream==="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var bX,OX="The stream has already been transformed.",gX=(r)=>{if(!cX(r)&&!H1(r)){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(OX);return f=!0,await vX(r)},w=(h)=>{if(typeof h.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return h.stream()};return Object.assign(r,{transformToByteArray:s,transformToString:async(h)=>{const $=await s();if(h==="base64")return Fs($);else if(h==="hex")return bX.toHex($);else if(h===void 0||h==="utf8"||h==="utf-8")return Is($);else if(typeof TextDecoder==="function")return new TextDecoder(h).decode($);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(f)throw new Error(OX);if(f=!0,cX(r))return w(r);else if(H1(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},cX=(r)=>typeof Blob==="function"&&r instanceof Blob;var _X=G(()=>{dX();C0();bX=i(gE(),1);yf()});import{Readable as PU}from"stream";import{TextDecoder as dO}from"util";var xX="The stream has already been transformed.",eX=(r)=>{if(!(r instanceof PU))try{return gX(r)}catch(w){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(xX);return f=!0,await Ds(r)};return Object.assign(r,{transformToByteArray:s,transformToString:async(w)=>{const h=await s();if(w===void 0||Buffer.isEncoding(w))return G0(h.buffer,h.byteOffset,h.byteLength).toString(w);else return new dO(w).decode(h)},transformToWebStream:()=>{if(f)throw new Error(xX);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof PU.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return f=!0,PU.toWeb(r)}})};var nX=G(()=>{d0();Yw();_X()});var oX=()=>{};var aX=()=>{};var XU=G(()=>{LU();KX();nX();oX();aX()});var gr=async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return L0.mutate(r);if(!r)return L0.mutate(new Uint8Array);const s=f.streamCollector(r);return L0.mutate(await s)};var pX=G(()=>{XU()});class A{constructor(){this.middlewareStack=Th()}static classBuilder(){return new tX}resolveMiddlewareWithContext(r,f,s,{middlewareFn:w,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:C}){for(let k of w.bind(this)(C,r,f,s))this.middlewareStack.use(k);const L=r.concat(this.middlewareStack),{logger:R}=f,S={logger:R,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,[uX.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:K}=f;return L.resolve((k)=>K.handle(k.request,s||{}),S)}}class tX{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,f,s={}){return this._smithyContext={service:r,operation:f,...s},this}c(r={}){return this._additionalContext=r,this}n(r,f){return this._clientName=r,this._commandName=f,this}f(r=(s)=>s,f=(s)=>s){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=f,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){const r=this;let f;return f=class extends A{static getEndpointParameterInstructions(){return r._ep}constructor(...[s]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=s??{},r._init(this)}resolveMiddleware(s,w,h){return this.resolveMiddlewareWithContext(s,w,h,{CommandCtor:f,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var uX;var rY=G(()=>{TU();uX=i($s(),1)});var o="***SensitiveInformation***";var qf=(r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}};var yr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},O0=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},Us=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))X3.warn(P3(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},OO,sY=(r)=>{const f=Us(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>OO)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},Ch=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},Kw=(r)=>YU(r,32),fY=(r)=>YU(r,16),wY=(r)=>YU(r,8),YU=(r,f)=>{const s=Ch(r);if(s!==void 0&&cO(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},cO=(r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},O=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return X3.warn(P3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},KU=(r)=>{if(typeof r=="string")return Us(Lh(r));return Us(r)},hY,$Y=(r)=>{if(typeof r=="string")return sY(Lh(r));return sY(r)},bO,Lh=(r)=>{const f=r.match(bO);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},ZU=(r)=>{if(typeof r=="string")return gO(r);return Us(r)},gO=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},_r=(r)=>{if(typeof r==="string")return Ch(Lh(r));return Ch(r)},hr=(r)=>{if(typeof r==="string")return Kw(Lh(r));return Kw(r)},JU=(r)=>{if(typeof r==="string")return fY(Lh(r));return fY(r)},EY=(r)=>{if(typeof r==="string")return wY(Lh(r));return wY(r)},P3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},X3;var QU=G(()=>{OO=Math.ceil(340282346638528860000000000000000000000),hY=KU,bO=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,X3={warn:console.warn}});var _O,xO,IY=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=xO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=JU(MU(w)),L=Zw(h,"month",1,12),R=Zw($,"day",1,31);return FY(C,L,R,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},eO,Jw=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=eO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=JU(MU(w)),R=Zw(h,"month",1,12),S=Zw($,"day",1,31),K=FY(L,R,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")K.setTime(K.getTime()-uO(C));return K},j3r,d3r,O3r,mf=(r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=KU(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},FY=(r,f,s,w)=>{const h=f-1;return oO(r,h,s),new Date(Date.UTC(r,h,s,Zw(w.hours,"hour",0,23),Zw(w.minutes,"minute",0,59),Zw(w.seconds,"seconds",0,60),pO(w.fractionalMilliseconds)))},nO,oO=(r,f,s)=>{let w=nO[f];if(f===1&&aO(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${_O[f]} in ${r}: ${s}`)},aO=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},Zw=(r,f,s,w)=>{const h=EY(MU(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},pO=(r)=>{if(r===null||r===void 0)return 0;return $Y("0."+r)*1000},uO=(r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},MU=(r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)};var UY=G(()=>{QU();_O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),eO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),j3r=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),d3r=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),O3r=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),nO=[31,28,31,30,31,30,31,31,30,31,30,31]});var ks,D=(r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r};var BU=G(()=>{ks=class ks extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,ks.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var tO=({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=rc(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:f?.code||f?.Code||w||$||"UnknownError",$fault:"client",$metadata:h});throw D(E,f)},vf=(r)=>{return({output:f,parsedBody:s,errorCode:w})=>{tO({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},rc=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var TY=G(()=>{BU()});var jf=(r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var GY=!1,df=(r)=>{if(r&&!GY&&parseInt(r.substring(1,r.indexOf(".")))<16)GY=!0};var lU,CY=(r)=>{const f=[];for(let s in lU.AlgorithmId){const w=lU.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},LY=(r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f};var AY=G(()=>{lU=i($s(),1)});var WY=(r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},zY=(r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f};var Of=(r)=>{return{...CY(r),...WY(r)}},cf=(r)=>{return{...LY(r),...zY(r)}};var RY=G(()=>{AY()});var SY=G(()=>{RY()});function Y3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}var Gr=(r)=>Array.isArray(r)?r:[r];var HU=function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s};var PY=G(()=>{HU.prototype=Object.create(String.prototype,{constructor:{value:HU,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(HU,String)});function P(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,sc(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}XY(w,null,$,E)}return w}var p=(r,f)=>{const s={};for(let w in f)XY(s,r,f,w);return s},sc=(r,f,s)=>{return P(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},XY=(r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=fc,F=wc,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},fc=(r)=>r!=null,wc=(r)=>r;var YY=()=>{};var KY=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var q=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(q);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=q(r[s])}return f}return r};var Y=G(()=>{CX();pX();rY();UY();TY();SY();BU();PY();QU();YY()});import{Readable as hc}from"stream";var ZY=(r)=>r?.body instanceof hc||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var JY=()=>{};var $c=(r)=>(f,s)=>async(w)=>{let h=await r.retryStrategy();const $=await r.maxAttempts();if(Ec(h)){h=h;let E=await h.acquireInitialRetryToken(s.partition_id),I=new Error,F=0,U=0;const{request:C}=w,L=Qr.isInstance(C);if(L)C.headers[L3]=sX();while(!0)try{if(L)C.headers[A3]=`attempt=${F+1}; max=${$}`;const{response:R,output:S}=await f(w);return h.recordSuccess(E),S.$metadata.attempts=F+1,S.$metadata.totalRetryDelay=U,{response:R,output:S}}catch(R){const S=Ic(R);if(I=FU(R),L&&ZY(C))throw(s.logger instanceof Ls?console:s.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{E=await h.refreshRetryTokenForRetry(E,S)}catch(k){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=E.getRetryCount();const K=E.getRetryDelay();U+=K,await new Promise((k)=>setTimeout(k,K))}}else{if(h=h,h?.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",h.mode]];return h.retry(f,w)}},Ec=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",Ic=(r)=>{const f={error:r,errorType:Fc(r)},s=Tc(r.$response);if(s)f.retryAfterHint=s;return f},Fc=(r)=>{if(Fh(r))return"THROTTLING";if(T3(r))return"TRANSIENT";if(nP(r))return"SERVER_ERROR";return"CLIENT_ERROR"},Uc,bf=(r)=>({applyToStack:(f)=>{f.add($c(r),Uc)}}),Tc=(r)=>{if(!V0.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)};var QY=G(()=>{kr();B1();Y();Cs();fX();JY();Uc={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var ff=G(()=>{hX();UU();IX();EU();FX();IU();QY()});var tY=j((uIr,J3)=>{var MY,BY,lY,HY,VY,DY,kY,NY,yY,qY,mY,iY,vY,K3,VU,jY,dY,OY,Ah,cY,bY,gY,_Y,xY,eY,nY,oY,aY,Z3,pY,uY;(function(r){var f=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(w){r(s(f,s(w)))});else if(typeof J3==="object"&&typeof uIr==="object")r(s(f,s(uIr)));else r(s(f));function s(w,h){if(w!==f)if(typeof Object.create==="function")Object.defineProperty(w,"__esModule",{value:!0});else w.__esModule=!0;return function($,E){return w[$]=h?h($,E):E}}})(function(r){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,$){h.__proto__=$}||function(h,$){for(var E in $)if(Object.prototype.hasOwnProperty.call($,E))h[E]=$[E]};MY=function(h,$){if(typeof $!=="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");f(h,$);function E(){this.constructor=h}h.prototype=$===null?Object.create($):(E.prototype=$.prototype,new E)},BY=Object.assign||function(h){for(var $,E=1,I=arguments.length;E<I;E++){$=arguments[E];for(var F in $)if(Object.prototype.hasOwnProperty.call($,F))h[F]=$[F]}return h},lY=function(h,$){var E={};for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)&&$.indexOf(I)<0)E[I]=h[I];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(h);F<I.length;F++)if($.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(h,I[F]))E[I[F]]=h[I[F]]}return E},HY=function(h,$,E,I){var F=arguments.length,U=F<3?$:I===null?I=Object.getOwnPropertyDescriptor($,E):I,C;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(h,$,E,I);else for(var L=h.length-1;L>=0;L--)if(C=h[L])U=(F<3?C(U):F>3?C($,E,U):C($,E))||U;return F>3&&U&&Object.defineProperty($,E,U),U},VY=function(h,$){return function(E,I){$(E,I,h)}},DY=function(h,$,E,I,F,U){function C(wr){if(wr!==void 0&&typeof wr!=="function")throw new TypeError("Function expected");return wr}var L=I.kind,R=L==="getter"?"get":L==="setter"?"set":"value",S=!$&&h?I.static?h:h.prototype:null,K=$||(S?Object.getOwnPropertyDescriptor(S,I.name):{}),k,l=!1;for(var M=E.length-1;M>=0;M--){var N={};for(var x in I)N[x]=x==="access"?{}:I[x];for(var x in I.access)N.access[x]=I.access[x];N.addInitializer=function(wr){if(l)throw new TypeError("Cannot add initializers after decoration has completed");U.push(C(wr||null))};var e=E[M](L==="accessor"?{get:K.get,set:K.set}:K[R],N);if(L==="accessor"){if(e===void 0)continue;if(e===null||typeof e!=="object")throw new TypeError("Object expected");if(k=C(e.get))K.get=k;if(k=C(e.set))K.set=k;if(k=C(e.init))F.unshift(k)}else if(k=C(e))if(L==="field")F.unshift(k);else K[R]=k}if(S)Object.defineProperty(S,I.name,K);l=!0},kY=function(h,$,E){var I=arguments.length>2;for(var F=0;F<$.length;F++)E=I?$[F].call(h,E):$[F].call(h);return I?E:void 0},NY=function(h){return typeof h==="symbol"?h:"".concat(h)},yY=function(h,$,E){if(typeof $==="symbol")$=$.description?"[".concat($.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:E?"".concat(E," ",$):$})},qY=function(h,$){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,$)},mY=function(h,$,E,I){function F(U){return U instanceof E?U:new E(function(C){C(U)})}return new(E||(E=Promise))(function(U,C){function L(K){try{S(I.next(K))}catch(k){C(k)}}function R(K){try{S(I.throw(K))}catch(k){C(k)}}function S(K){K.done?U(K.value):F(K.value).then(L,R)}S((I=I.apply(h,$||[])).next())})},iY=function(h,$){var E={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,C;return C={next:L(0),throw:L(1),return:L(2)},typeof Symbol==="function"&&(C[Symbol.iterator]=function(){return this}),C;function L(S){return function(K){return R([S,K])}}function R(S){if(I)throw new TypeError("Generator is already executing.");while(C&&(C=0,S[0]&&(E=0)),E)try{if(I=1,F&&(U=S[0]&2?F.return:S[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,S[1])).done)return U;if(F=0,U)S=[S[0]&2,U.value];switch(S[0]){case 0:case 1:U=S;break;case 4:return E.label++,{value:S[1],done:!1};case 5:E.label++,F=S[1],S=[0];continue;case 7:S=E.ops.pop(),E.trys.pop();continue;default:if((U=E.trys,!(U=U.length>0&&U[U.length-1]))&&(S[0]===6||S[0]===2)){E=0;continue}if(S[0]===3&&(!U||S[1]>U[0]&&S[1]<U[3])){E.label=S[1];break}if(S[0]===6&&E.label<U[1]){E.label=U[1],U=S;break}if(U&&E.label<U[2]){E.label=U[2],E.ops.push(S);break}if(U[2])E.ops.pop();E.trys.pop();continue}S=$.call(h,E)}catch(K){S=[6,K],F=0}finally{I=U=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},vY=function(h,$){for(var E in h)if(E!=="default"&&!Object.prototype.hasOwnProperty.call($,E))Z3($,h,E)},Z3=Object.create?function(h,$,E,I){if(I===void 0)I=E;var F=Object.getOwnPropertyDescriptor($,E);if(!F||("get"in F?!$.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return $[E]}};Object.defineProperty(h,I,F)}:function(h,$,E,I){if(I===void 0)I=E;h[I]=$[E]},K3=function(h){var $=typeof Symbol==="function"&&Symbol.iterator,E=$&&h[$],I=0;if(E)return E.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&I>=h.length)h=void 0;return{value:h&&h[I++],done:!h}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},VU=function(h,$){var E=typeof Symbol==="function"&&h[Symbol.iterator];if(!E)return h;var I=E.call(h),F,U=[],C;try{while(($===void 0||$-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){C={error:L}}finally{try{if(F&&!F.done&&(E=I.return))E.call(I)}finally{if(C)throw C.error}}return U},jY=function(){for(var h=[],$=0;$<arguments.length;$++)h=h.concat(VU(arguments[$]));return h},dY=function(){for(var h=0,$=0,E=arguments.length;$<E;$++)h+=arguments[$].length;for(var I=Array(h),F=0,$=0;$<E;$++)for(var U=arguments[$],C=0,L=U.length;C<L;C++,F++)I[F]=U[C];return I},OY=function(h,$,E){if(E||arguments.length===2){for(var I=0,F=$.length,U;I<F;I++)if(U||!(I in $)){if(!U)U=Array.prototype.slice.call($,0,I);U[I]=$[I]}}return h.concat(U||Array.prototype.slice.call($))},Ah=function(h){return this instanceof Ah?(this.v=h,this):new Ah(h)},cY=function(h,$,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=E.apply(h,$||[]),F,U=[];return F={},L("next"),L("throw"),L("return",C),F[Symbol.asyncIterator]=function(){return this},F;function C(M){return function(N){return Promise.resolve(N).then(M,k)}}function L(M,N){if(I[M]){if(F[M]=function(x){return new Promise(function(e,wr){U.push([M,x,e,wr])>1||R(M,x)})},N)F[M]=N(F[M])}}function R(M,N){try{S(I[M](N))}catch(x){l(U[0][3],x)}}function S(M){M.value instanceof Ah?Promise.resolve(M.value.v).then(K,k):l(U[0][2],M)}function K(M){R("next",M)}function k(M){R("throw",M)}function l(M,N){if(M(N),U.shift(),U.length)R(U[0][0],U[0][1])}},bY=function(h){var $,E;return $={},I("next"),I("throw",function(F){throw F}),I("return"),$[Symbol.iterator]=function(){return this},$;function I(F,U){$[F]=h[F]?function(C){return(E=!E)?{value:Ah(h[F](C)),done:!1}:U?U(C):C}:U}},gY=function(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=h[Symbol.asyncIterator],E;return $?$.call(h):(h=typeof K3==="function"?K3(h):h[Symbol.iterator](),E={},I("next"),I("throw"),I("return"),E[Symbol.asyncIterator]=function(){return this},E);function I(U){E[U]=h[U]&&function(C){return new Promise(function(L,R){C=h[U](C),F(L,R,C.done,C.value)})}}function F(U,C,L,R){Promise.resolve(R).then(function(S){U({value:S,done:L})},C)}},_Y=function(h,$){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:$});else h.raw=$;return h};var s=Object.create?function(h,$){Object.defineProperty(h,"default",{enumerable:!0,value:$})}:function(h,$){h.default=$};xY=function(h){if(h&&h.__esModule)return h;var $={};if(h!=null){for(var E in h)if(E!=="default"&&Object.prototype.hasOwnProperty.call(h,E))Z3($,h,E)}return s($,h),$},eY=function(h){return h&&h.__esModule?h:{default:h}},nY=function(h,$,E,I){if(E==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof $==="function"?h!==$||!I:!$.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?I:E==="a"?I.call(h):I?I.value:$.get(h)},oY=function(h,$,E,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof $==="function"?h!==$||!F:!$.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(h,E):F?F.value=E:$.set(h,E),E},aY=function(h,$){if($===null||typeof $!=="object"&&typeof $!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?$===h:h.has($)},pY=function(h,$,E){if($!==null&&$!==void 0){if(typeof $!=="object"&&typeof $!=="function")throw new TypeError("Object expected.");var I,F;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=$[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=$[Symbol.dispose],E)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};h.stack.push({value:$,dispose:I,async:E})}else if(E)h.stack.push({async:!0});return $};var w=typeof SuppressedError==="function"?SuppressedError:function(h,$,E){var I=new Error(E);return I.name="SuppressedError",I.error=h,I.suppressed=$,I};uY=function(h){function $(I){h.error=h.hasError?new w(I,h.error,"An error was suppressed during disposal."):I,h.hasError=!0}function E(){while(h.stack.length){var I=h.stack.pop();try{var F=I.dispose&&I.dispose.call(I.value);if(I.async)return Promise.resolve(F).then(E,function(U){return $(U),E()})}catch(U){$(U)}}if(h.hasError)throw h.error}return E()},r("__extends",MY),r("__assign",BY),r("__rest",lY),r("__decorate",HY),r("__param",VY),r("__esDecorate",DY),r("__runInitializers",kY),r("__propKey",NY),r("__setFunctionName",yY),r("__metadata",qY),r("__awaiter",mY),r("__generator",iY),r("__exportStar",vY),r("__createBinding",Z3),r("__values",K3),r("__read",VU),r("__spread",jY),r("__spreadArrays",dY),r("__spreadArray",OY),r("__await",Ah),r("__asyncGenerator",cY),r("__asyncDelegator",bY),r("__asyncValues",gY),r("__makeTemplateObject",_Y),r("__importStar",xY),r("__importDefault",eY),r("__classPrivateFieldGet",nY),r("__classPrivateFieldSet",oY),r("__classPrivateFieldIn",aY),r("__addDisposableResource",pY),r("__disposeResources",uY)})});var wK=j((tIr,fK)=>{var{defineProperty:Q3,getOwnPropertyDescriptor:Gc,getOwnPropertyNames:Cc}=Object,Lc=Object.prototype.hasOwnProperty,Ac=(r,f)=>Q3(r,"name",{value:f,configurable:!0}),Wc=(r,f)=>{for(var s in f)Q3(r,s,{get:f[s],enumerable:!0})},zc=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Cc(f))if(!Lc.call(r,h)&&h!==s)Q3(r,h,{get:()=>f[h],enumerable:!(w=Gc(f,h))||w.enumerable})}return r},Rc=(r)=>zc(Q3({},"__esModule",{value:!0}),r),sK={};Wc(sK,{emitWarningIfUnsupportedVersion:()=>Sc});fK.exports=Rc(sK);var rK=!1,Sc=Ac((r)=>{if(r&&!rK&&parseInt(r.substring(1,r.indexOf(".")))<18)rK=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
7
7
|
no longer support Node.js 16.x on January 6, 2025.
|
|
8
8
|
|
|
9
9
|
To continue receiving updates to AWS services, bug fixes, and security
|
|
10
10
|
updates please upgrade to a supported Node.js LTS version.
|
|
11
11
|
|
|
12
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var
|
|
12
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var ZK=j((r2r,KK)=>{function qU(r){for(let f=0;f<8;f++)r[f]^=255;for(let f=7;f>-1;f--)if(r[f]++,r[f]!==0)break}var{defineProperty:V3,getOwnPropertyDescriptor:Pc,getOwnPropertyNames:Xc}=Object,Yc=Object.prototype.hasOwnProperty,qr=(r,f)=>V3(r,"name",{value:f,configurable:!0}),Kc=(r,f)=>{for(var s in f)V3(r,s,{get:f[s],enumerable:!0})},Zc=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Xc(f))if(!Yc.call(r,h)&&h!==s)V3(r,h,{get:()=>f[h],enumerable:!(w=Pc(f,h))||w.enumerable})}return r},Jc=(r)=>Zc(V3({},"__esModule",{value:!0}),r),FK={};Kc(FK,{SignatureV4:()=>ac,clearCredentialCache:()=>Oc,createScope:()=>l3,getCanonicalHeaders:()=>yU,getCanonicalQuery:()=>zK,getPayloadHash:()=>H3,getSigningKey:()=>WK,moveHeadersToQuery:()=>XK,prepareRequest:()=>mU});KK.exports=Jc(FK);var hK=U1(),DU=q0(),Qc="X-Amz-Algorithm",Mc="X-Amz-Credential",UK="X-Amz-Date",Bc="X-Amz-SignedHeaders",lc="X-Amz-Expires",TK="X-Amz-Signature",GK="X-Amz-Security-Token",CK="authorization",LK=UK.toLowerCase(),Hc="date",Vc=[CK,LK,Hc],Dc=TK.toLowerCase(),NU="x-amz-content-sha256",kc=GK.toLowerCase(),Nc={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},yc=/^proxy-/,qc=/^sec-/,kU="AWS4-HMAC-SHA256",mc="AWS4-HMAC-SHA256-PAYLOAD",ic="UNSIGNED-PAYLOAD",vc=50,AK="aws4_request",jc=604800,c0=gE(),dc=q0(),Wh={},B3=[],l3=qr((r,f,s)=>`${r}/${f}/${s}/${AK}`,"createScope"),WK=qr(async(r,f,s,w,h)=>{const $=await $K(r,f.secretAccessKey,f.accessKeyId),E=`${s}:${w}:${h}:${c0.toHex($)}:${f.sessionToken}`;if(E in Wh)return Wh[E];B3.push(E);while(B3.length>vc)delete Wh[B3.shift()];let I=`AWS4${f.secretAccessKey}`;for(let F of[s,w,h,AK])I=await $K(r,I,F);return Wh[E]=I},"getSigningKey"),Oc=qr(()=>{B3.length=0,Object.keys(Wh).forEach((r)=>{delete Wh[r]})},"clearCredentialCache"),$K=qr((r,f,s)=>{const w=new r(f);return w.update(dc.toUint8Array(s)),w.digest()},"hmac"),yU=qr(({headers:r},f,s)=>{const w={};for(let h of Object.keys(r).sort()){if(r[h]==null)continue;const $=h.toLowerCase();if($ in Nc||(f==null?void 0:f.has($))||yc.test($)||qc.test($)){if(!s||s&&!s.has($))continue}w[$]=r[h].trim().replace(/\s+/g," ")}return w},"getCanonicalHeaders"),V1=jE(),zK=qr(({query:r={}})=>{const f=[],s={};for(let w of Object.keys(r).sort()){if(w.toLowerCase()===Dc)continue;f.push(w);const h=r[w];if(typeof h==="string")s[w]=`${V1.escapeUri(w)}=${V1.escapeUri(h)}`;else if(Array.isArray(h))s[w]=h.slice(0).reduce(($,E)=>$.concat([`${V1.escapeUri(w)}=${V1.escapeUri(E)}`]),[]).sort().join("&")}return f.map((w)=>s[w]).filter((w)=>w).join("&")},"getCanonicalQuery"),cc=G5(),bc=q0(),H3=qr(async({headers:r,body:f},s)=>{for(let w of Object.keys(r))if(w.toLowerCase()===NU)return r[w];if(f==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof f==="string"||ArrayBuffer.isView(f)||cc.isArrayBuffer(f)){const w=new s;return w.update(bc.toUint8Array(f)),c0.toHex(await w.digest())}return ic},"getPayloadHash"),EK=q0(),RK=class r{format(f){const s=[];for(let $ of Object.keys(f)){const E=EK.fromUtf8($);s.push(Uint8Array.from([E.byteLength]),E,this.formatHeaderValue(f[$]))}const w=new Uint8Array(s.reduce(($,E)=>$+E.byteLength,0));let h=0;for(let $ of s)w.set($,h),h+=$.byteLength;return w}formatHeaderValue(f){switch(f.type){case"boolean":return Uint8Array.from([f.value?0:1]);case"byte":return Uint8Array.from([2,f.value]);case"short":const s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,f.value,!1),new Uint8Array(s.buffer);case"integer":const w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,f.value,!1),new Uint8Array(w.buffer);case"long":const h=new Uint8Array(9);return h[0]=5,h.set(f.value.bytes,1),h;case"binary":const $=new DataView(new ArrayBuffer(3+f.value.byteLength));$.setUint8(0,6),$.setUint16(1,f.value.byteLength,!1);const E=new Uint8Array($.buffer);return E.set(f.value,3),E;case"string":const I=EK.fromUtf8(f.value),F=new DataView(new ArrayBuffer(3+I.byteLength));F.setUint8(0,7),F.setUint16(1,I.byteLength,!1);const U=new Uint8Array(F.buffer);return U.set(I,3),U;case"timestamp":const C=new Uint8Array(9);return C[0]=8,C.set(xc.fromNumber(f.value.valueOf()).bytes,1),C;case"uuid":if(!_c.test(f.value))throw new Error(`Invalid UUID received: ${f.value}`);const L=new Uint8Array(17);return L[0]=9,L.set(c0.fromHex(f.value.replace(/\-/g,"")),1),L}}};qr(RK,"HeaderFormatter");var gc=RK,_c=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,SK=class r{constructor(f){if(this.bytes=f,f.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(f){if(f>9223372036854776000||f<-9223372036854776000)throw new Error(`${f} is too large (or, if negative, too small) to represent as an Int64`);const s=new Uint8Array(8);for(let w=7,h=Math.abs(Math.round(f));w>-1&&h>0;w--,h/=256)s[w]=h;if(f<0)qU(s);return new r(s)}valueOf(){const f=this.bytes.slice(0),s=f[0]&128;if(s)qU(f);return parseInt(c0.toHex(f),16)*(s?-1:1)}toString(){return String(this.valueOf())}};qr(SK,"Int64");var xc=SK;qr(qU,"negate");var ec=qr((r,f)=>{r=r.toLowerCase();for(let s of Object.keys(f))if(r===s.toLowerCase())return!0;return!1},"hasHeader"),PK=F0(),XK=qr((r,f={})=>{var s;const{headers:w,query:h={}}=PK.HttpRequest.clone(r);for(let $ of Object.keys(w)){const E=$.toLowerCase();if(E.slice(0,6)==="x-amz-"&&!((s=f.unhoistableHeaders)==null?void 0:s.has(E)))h[$]=w[$],delete w[$]}return{...r,headers:w,query:h}},"moveHeadersToQuery"),mU=qr((r)=>{r=PK.HttpRequest.clone(r);for(let f of Object.keys(r.headers))if(Vc.indexOf(f.toLowerCase())>-1)delete r.headers[f];return r},"prepareRequest"),nc=qr((r)=>oc(r).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),oc=qr((r)=>{if(typeof r==="number")return new Date(r*1000);if(typeof r==="string"){if(Number(r))return new Date(Number(r)*1000);return new Date(r)}return r},"toDate"),YK=class r{constructor({applyChecksum:f,credentials:s,region:w,service:h,sha256:$,uriEscapePath:E=!0}){this.headerFormatter=new gc,this.service=h,this.sha256=$,this.uriEscapePath=E,this.applyChecksum=typeof f==="boolean"?f:!0,this.regionProvider=hK.normalizeProvider(w),this.credentialProvider=hK.normalizeProvider(s)}async presign(f,s={}){const{signingDate:w=new Date,expiresIn:h=3600,unsignableHeaders:$,unhoistableHeaders:E,signableHeaders:I,signingRegion:F,signingService:U}=s,C=await this.credentialProvider();this.validateResolvedCredentials(C);const L=F??await this.regionProvider(),{longDate:R,shortDate:S}=M3(w);if(h>jc)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const K=l3(S,L,U??this.service),k=XK(mU(f),{unhoistableHeaders:E});if(C.sessionToken)k.query[GK]=C.sessionToken;k.query[Qc]=kU,k.query[Mc]=`${C.accessKeyId}/${K}`,k.query[UK]=R,k.query[lc]=h.toString(10);const l=yU(k,$,I);return k.query[Bc]=IK(l),k.query[TK]=await this.getSignature(R,K,this.getSigningKey(C,L,S,U),this.createCanonicalRequest(k,l,await H3(f,this.sha256))),k}async sign(f,s){if(typeof f==="string")return this.signString(f,s);else if(f.headers&&f.payload)return this.signEvent(f,s);else if(f.message)return this.signMessage(f,s);else return this.signRequest(f,s)}async signEvent({headers:f,payload:s},{signingDate:w=new Date,priorSignature:h,signingRegion:$,signingService:E}){const I=$??await this.regionProvider(),{shortDate:F,longDate:U}=M3(w),C=l3(F,I,E??this.service),L=await H3({headers:{},body:s},this.sha256),R=new this.sha256;R.update(f);const S=c0.toHex(await R.digest()),K=[mc,U,C,h,S,L].join("\n");return this.signString(K,{signingDate:w,signingRegion:I,signingService:E})}async signMessage(f,{signingDate:s=new Date,signingRegion:w,signingService:h}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:s,signingRegion:w,signingService:h,priorSignature:f.priorSignature}).then((E)=>{return{message:f.message,signature:E}})}async signString(f,{signingDate:s=new Date,signingRegion:w,signingService:h}={}){const $=await this.credentialProvider();this.validateResolvedCredentials($);const E=w??await this.regionProvider(),{shortDate:I}=M3(s),F=new this.sha256(await this.getSigningKey($,E,I,h));return F.update(DU.toUint8Array(f)),c0.toHex(await F.digest())}async signRequest(f,{signingDate:s=new Date,signableHeaders:w,unsignableHeaders:h,signingRegion:$,signingService:E}={}){const I=await this.credentialProvider();this.validateResolvedCredentials(I);const F=$??await this.regionProvider(),U=mU(f),{longDate:C,shortDate:L}=M3(s),R=l3(L,F,E??this.service);if(U.headers[LK]=C,I.sessionToken)U.headers[kc]=I.sessionToken;const S=await H3(U,this.sha256);if(!ec(NU,U.headers)&&this.applyChecksum)U.headers[NU]=S;const K=yU(U,h,w),k=await this.getSignature(C,R,this.getSigningKey(I,F,L,E),this.createCanonicalRequest(U,K,S));return U.headers[CK]=`${kU} Credential=${I.accessKeyId}/${R}, SignedHeaders=${IK(K)}, Signature=${k}`,U}createCanonicalRequest(f,s,w){const h=Object.keys(s).sort();return`${f.method}
|
|
13
13
|
${this.getCanonicalPath(f)}
|
|
14
|
-
${
|
|
14
|
+
${zK(f)}
|
|
15
15
|
${h.map(($)=>`${$}:${s[$]}`).join("\n")}
|
|
16
16
|
|
|
17
17
|
${h.join(";")}
|
|
18
|
-
${w}`}async createStringToSign(f,s,w){const h=new this.sha256;h.update(
|
|
18
|
+
${w}`}async createStringToSign(f,s,w){const h=new this.sha256;h.update(DU.toUint8Array(w));const $=await h.digest();return`${kU}
|
|
19
19
|
${f}
|
|
20
20
|
${s}
|
|
21
|
-
${e0.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){const s=[];for(let $ of f.split("/")){if(($==null?void 0:$.length)===0)continue;if($===".")continue;if($==="..")s.pop();else s.push($)}const w=`${(f==null?void 0:f.startsWith("/"))?"/":""}${s.join("/")}${s.length>0&&(f==null?void 0:f.endsWith("/"))?"/":""}`;return y1.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,s,w,h){const $=await this.createStringToSign(f,s,h),E=new this.sha256(await w);return E.update(M5.toUint8Array($)),e0.toHex(await E.digest())}getSigningKey(f,s,w,h){return CK(this.sha256,f,w,s,h||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};Nr(SK,"SignatureV4");var ic=SK,Q3=Nr((r)=>{const f=kc(r).replace(/[\-:]/g,"");return{longDate:f,shortDate:f.slice(0,8)}},"formatDate"),hK=Nr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var VK=v((A2r,HK)=>{var{defineProperty:k3,getOwnPropertyDescriptor:yc,getOwnPropertyNames:mc}=Object,Nc=Object.prototype.hasOwnProperty,Ss=(r,f)=>k3(r,"name",{value:f,configurable:!0}),qc=(r,f)=>{for(var s in f)k3(r,s,{get:f[s],enumerable:!0})},vc=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of mc(f))if(!Nc.call(r,h)&&h!==s)k3(r,h,{get:()=>f[h],enumerable:!(w=yc(f,h))||w.enumerable})}return r},jc=(r)=>vc(k3({},"__esModule",{value:!0}),r),JK={};qc(JK,{AWSSDKSigV4Signer:()=>bc,AwsSdkSigV4ASigner:()=>_c,AwsSdkSigV4Signer:()=>m5,NODE_SIGV4A_CONFIG_OPTIONS:()=>nc,resolveAWSSDKSigV4Config:()=>oc,resolveAwsSdkSigV4AConfig:()=>ec,resolveAwsSdkSigV4Config:()=>BK,validateSigningProperties:()=>y5});HK.exports=jc(JK);var dc=G0(),Oc=G0(),YK=Ss((r)=>{var f,s;return Oc.HttpResponse.isInstance(r)?((f=r.headers)==null?void 0:f.date)??((s=r.headers)==null?void 0:s.Date):void 0},"getDateHeader"),i5=Ss((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),cc=Ss((r,f)=>Math.abs(i5(f).getTime()-r)>=300000,"isClockSkewed"),KK=Ss((r,f)=>{const s=Date.parse(r);if(cc(s,f))return s-Date.now();return f},"getUpdatedSystemClockOffset"),m1=Ss((r,f)=>{if(!f)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return f},"throwSigningPropertyError"),y5=Ss(async(r)=>{var f,s,w;const h=m1("context",r.context),$=m1("config",r.config),E=(w=(s=(f=h.endpointV2)==null?void 0:f.properties)==null?void 0:s.authSchemes)==null?void 0:w[0],F=await m1("signer",$.signer)(E),U=r==null?void 0:r.signingRegion,C=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:$,signer:F,signingRegion:U,signingRegionSet:C,signingName:L}},"validateSigningProperties"),QK=class r{async sign(f,s,w){var h;if(!dc.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const $=await y5(w),{config:E,signer:I}=$;let{signingRegion:F,signingName:U}=$;const C=w.context;if(((h=C==null?void 0:C.authSchemes)==null?void 0:h.length)??0>1){const[z,S]=C.authSchemes;if((z==null?void 0:z.name)==="sigv4a"&&(S==null?void 0:S.name)==="sigv4")F=(S==null?void 0:S.signingRegion)??F,U=(S==null?void 0:S.signingName)??U}return await I.sign(f,{signingDate:i5(E.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(f){return(s)=>{const w=s.ServerTime??YK(s.$response);if(w){const h=m1("config",f.config),$=h.systemClockOffset;if(h.systemClockOffset=KK(w,h.systemClockOffset),h.systemClockOffset!==$&&s.$metadata)s.$metadata.clockSkewCorrected=!0}throw s}}successHandler(f,s){const w=YK(f);if(w){const h=m1("config",s.config);h.systemClockOffset=KK(w,h.systemClockOffset)}}};Ss(QK,"AwsSdkSigV4Signer");var m5=QK,bc=m5,gc=G0(),MK=class r extends m5{async sign(f,s,w){var h;if(!gc.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:$,signer:E,signingRegion:I,signingRegionSet:F,signingName:U}=await y5(w),L=(await((h=$.sigv4aSigningRegionSet)==null?void 0:h.call($))??F??[I]).join(",");return await E.sign(f,{signingDate:i5($.systemClockOffset),signingRegion:L,signingService:U})}};Ss(MK,"AwsSdkSigV4ASigner");var _c=MK,xc=Or(),ZK=mF(),ec=Ss((r)=>{return r.sigv4aSigningRegionSet=xc.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),nc={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((f)=>f.trim());throw new ZK.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((f)=>f.trim());throw new ZK.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Vw=Or(),lK=XK(),BK=Ss((r)=>{let f;if(r.credentials)f=Vw.memoizeIdentityProvider(r.credentials,Vw.isIdentityExpired,Vw.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Vw.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Ss(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:s=!0,systemClockOffset:w=r.systemClockOffset||0,sha256:h}=r;let $;if(r.signer)$=Vw.normalizeProvider(r.signer);else if(r.regionInfoProvider)$=Ss(()=>Vw.normalizeProvider(r.region)().then(async(E)=>[await r.regionInfoProvider(E,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},E]).then(([E,I])=>{const{signingRegion:F,signingService:U}=E;r.signingRegion=r.signingRegion||F||I,r.signingName=r.signingName||U||r.serviceId;const C={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||lK.SignatureV4)(C)}),"signer");else $=Ss(async(E)=>{E=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Vw.normalizeProvider(r.region)(),properties:{}},E);const{signingRegion:I,signingName:F}=E;r.signingRegion=r.signingRegion||I,r.signingName=r.signingName||F||r.serviceId;const U={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||lK.SignatureV4)(U)},"signer");return{...r,systemClockOffset:w,signingEscapePath:s,credentials:f,signer:$}},"resolveAwsSdkSigV4Config"),oc=BK});var D3=v((rb)=>{var ac=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",kK="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+ac+"]*",pc=new RegExp("^"+kK+"$"),uc=function(r,f){const s=[];let w=f.exec(r);while(w){const h=[];h.startIndex=f.lastIndex-w[0].length;const $=w.length;for(let E=0;E<$;E++)h.push(w[E]);s.push(h),w=f.exec(r)}return s},tc=function(r){const f=pc.exec(r);return!(f===null||typeof f==="undefined")};rb.isExist=function(r){return typeof r!=="undefined"};rb.isEmptyObject=function(r){return Object.keys(r).length===0};rb.merge=function(r,f,s){if(f){const w=Object.keys(f),h=w.length;for(let $=0;$<h;$++)if(s==="strict")r[w[$]]=[f[w[$]]];else r[w[$]]=f[w[$]]}};rb.getValue=function(r){if(rb.isExist(r))return r;else return""};rb.isName=tc;rb.getAllMatches=uc;rb.nameRegexp=kK});var q5=v((Wb)=>{function iK(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function yK(r,f){const s=f;for(;f<r.length;f++)if(r[f]=="?"||r[f]==" "){const w=r.substr(s,f-s);if(f>5&&w==="xml")return Mr("InvalidXml","XML declaration allowed only at the start of the document.",rs(r,f));else if(r[f]=="?"&&r[f+1]==">"){f++;break}else continue}return f}function mK(r,f){if(r.length>f+5&&r[f+1]==="-"&&r[f+2]==="-"){for(f+=3;f<r.length;f++)if(r[f]==="-"&&r[f+1]==="-"&&r[f+2]===">"){f+=2;break}}else if(r.length>f+8&&r[f+1]==="D"&&r[f+2]==="O"&&r[f+3]==="C"&&r[f+4]==="T"&&r[f+5]==="Y"&&r[f+6]==="P"&&r[f+7]==="E"){let s=1;for(f+=8;f<r.length;f++)if(r[f]==="<")s++;else if(r[f]===">"){if(s--,s===0)break}}else if(r.length>f+9&&r[f+1]==="["&&r[f+2]==="C"&&r[f+3]==="D"&&r[f+4]==="A"&&r[f+5]==="T"&&r[f+6]==="A"&&r[f+7]==="["){for(f+=8;f<r.length;f++)if(r[f]==="]"&&r[f+1]==="]"&&r[f+2]===">"){f+=2;break}}return f}function Tb(r,f){let s="",w="",h=!1;for(;f<r.length;f++){if(r[f]===Fb||r[f]===Ub)if(w==="")w=r[f];else if(w!==r[f]);else w="";else if(r[f]===">"){if(w===""){h=!0;break}}s+=r[f]}if(w!=="")return!1;return{value:s,index:f,tagClosed:h}}function NK(r,f){const s=N5.getAllMatches(r,Gb),w={};for(let h=0;h<s.length;h++){if(s[h][1].length===0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' has no space in starting.",N1(s[h]));else if(s[h][3]!==void 0&&s[h][4]===void 0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' is without value.",N1(s[h]));else if(s[h][3]===void 0&&!f.allowBooleanAttributes)return Mr("InvalidAttr","boolean attribute '"+s[h][2]+"' is not allowed.",N1(s[h]));const $=s[h][2];if(!Ab($))return Mr("InvalidAttr","Attribute '"+$+"' is an invalid name.",N1(s[h]));if(!w.hasOwnProperty($))w[$]=1;else return Mr("InvalidAttr","Attribute '"+$+"' is repeated.",N1(s[h]))}return!0}function Cb(r,f){let s=/\d/;if(r[f]==="x")f++,s=/[\da-fA-F]/;for(;f<r.length;f++){if(r[f]===";")return f;if(!r[f].match(s))break}return-1}function Lb(r,f){if(f++,r[f]===";")return-1;if(r[f]==="#")return f++,Cb(r,f);let s=0;for(;f<r.length;f++,s++){if(r[f].match(/\w/)&&s<20)continue;if(r[f]===";")break;return-1}return f}function Mr(r,f,s){return{err:{code:r,msg:f,line:s.line||s,col:s.col}}}function Ab(r){return N5.isName(r)}function Rb(r){return N5.isName(r)}function rs(r,f){const s=r.substring(0,f).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function N1(r){return r.startIndex+r[1].length}var N5=D3(),Ib={allowBooleanAttributes:!1,unpairedTags:[]};Wb.validate=function(r,f){f=Object.assign({},Ib,f);const s=[];let w=!1,h=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let $=0;$<r.length;$++)if(r[$]==="<"&&r[$+1]==="?"){if($+=2,$=yK(r,$),$.err)return $}else if(r[$]==="<"){let E=$;if($++,r[$]==="!"){$=mK(r,$);continue}else{let I=!1;if(r[$]==="/")I=!0,$++;let F="";for(;$<r.length&&r[$]!==">"&&r[$]!==" "&&r[$]!=="\t"&&r[$]!=="\n"&&r[$]!=="\r";$++)F+=r[$];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),$--;if(!Rb(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Mr("InvalidTag",L,rs(r,$))}const U=Tb(r,$);if(U===!1)return Mr("InvalidAttr","Attributes for '"+F+"' have open quote.",rs(r,$));let C=U.value;if($=U.index,C[C.length-1]==="/"){const L=$-C.length;C=C.substring(0,C.length-1);const z=NK(C,f);if(z===!0)w=!0;else return Mr(z.err.code,z.err.msg,rs(r,L+z.err.line))}else if(I)if(!U.tagClosed)return Mr("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",rs(r,$));else if(C.trim().length>0)return Mr("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",rs(r,E));else if(s.length===0)return Mr("InvalidTag","Closing tag '"+F+"' has not been opened.",rs(r,E));else{const L=s.pop();if(F!==L.tagName){let z=rs(r,L.tagStartPos);return Mr("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+F+"'.",rs(r,E))}if(s.length==0)h=!0}else{const L=NK(C,f);if(L!==!0)return Mr(L.err.code,L.err.msg,rs(r,$-C.length+L.err.line));if(h===!0)return Mr("InvalidXml","Multiple possible root nodes found.",rs(r,$));else if(f.unpairedTags.indexOf(F)!==-1);else s.push({tagName:F,tagStartPos:E});w=!0}for($++;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="!"){$++,$=mK(r,$);continue}else if(r[$+1]==="?"){if($=yK(r,++$),$.err)return $}else break;else if(r[$]==="&"){const L=Lb(r,$);if(L==-1)return Mr("InvalidChar","char '&' is not expected.",rs(r,$));$=L}else if(h===!0&&!iK(r[$]))return Mr("InvalidXml","Extra text at the end",rs(r,$));if(r[$]==="<")$--}}else{if(iK(r[$]))continue;return Mr("InvalidChar","char '"+r[$]+"' is not expected.",rs(r,$))}if(!w)return Mr("InvalidXml","Start tag expected.",1);else if(s.length==1)return Mr("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",rs(r,s[0].tagStartPos));else if(s.length>0)return Mr("InvalidXml","Invalid '"+JSON.stringify(s.map(($)=>$.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var Fb='"',Ub="'",Gb=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var vK=v((Pb)=>{var qK={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,f,s){return r}},Sb=function(r){return Object.assign({},qK,r)};Pb.buildOptions=Sb;Pb.defaultOptions=qK});var OK=v((S2r,dK)=>{class jK{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,f){if(r==="__proto__")r="#__proto__";this.child.push({[r]:f})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}dK.exports=jK});var bK=v((P2r,cK)=>{function Zb(r,f){const s={};if(r[f+3]==="O"&&r[f+4]==="C"&&r[f+5]==="T"&&r[f+6]==="Y"&&r[f+7]==="P"&&r[f+8]==="E"){f=f+9;let w=1,h=!1,$=!1,E="";for(;f<r.length;f++)if(r[f]==="<"&&!$){if(h&&Qb(r,f)){if(f+=7,[entityName,val,f]=lb(r,f+1),val.indexOf("&")===-1)s[Vb(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(h&&Mb(r,f))f+=8;else if(h&&Bb(r,f))f+=8;else if(h&&Hb(r,f))f+=9;else if(Jb)$=!0;else throw new Error("Invalid DOCTYPE");w++,E=""}else if(r[f]===">"){if($){if(r[f-1]==="-"&&r[f-2]==="-")$=!1,w--}else w--;if(w===0)break}else if(r[f]==="[")h=!0;else E+=r[f];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:s,i:f}}function lb(r,f){let s="";for(;f<r.length&&(r[f]!=="'"&&r[f]!=='"');f++)s+=r[f];if(s=s.trim(),s.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=r[f++];let h="";for(;f<r.length&&r[f]!==w;f++)h+=r[f];return[s,h,f]}function Jb(r,f){if(r[f+1]==="!"&&r[f+2]==="-"&&r[f+3]==="-")return!0;return!1}function Qb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="N"&&r[f+4]==="T"&&r[f+5]==="I"&&r[f+6]==="T"&&r[f+7]==="Y")return!0;return!1}function Mb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="L"&&r[f+4]==="E"&&r[f+5]==="M"&&r[f+6]==="E"&&r[f+7]==="N"&&r[f+8]==="T")return!0;return!1}function Bb(r,f){if(r[f+1]==="!"&&r[f+2]==="A"&&r[f+3]==="T"&&r[f+4]==="T"&&r[f+5]==="L"&&r[f+6]==="I"&&r[f+7]==="S"&&r[f+8]==="T")return!0;return!1}function Hb(r,f){if(r[f+1]==="!"&&r[f+2]==="N"&&r[f+3]==="O"&&r[f+4]==="T"&&r[f+5]==="A"&&r[f+6]==="T"&&r[f+7]==="I"&&r[f+8]==="O"&&r[f+9]==="N")return!0;return!1}function Vb(r){if(Kb.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}var Kb=D3();cK.exports=Zb});var _K=v((X2r,gK)=>{function yb(r,f={}){if(f=Object.assign({},ib,f),!r||typeof r!=="string")return r;let s=r.trim();if(f.skipLike!==void 0&&f.skipLike.test(s))return r;else if(f.hex&&kb.test(s))return Number.parseInt(s,16);else{const w=Db.exec(s);if(w){const h=w[1],$=w[2];let E=mb(w[3]);const I=w[4]||w[6];if(!f.leadingZeros&&$.length>0&&h&&s[2]!==".")return r;else if(!f.leadingZeros&&$.length>0&&!h&&s[1]!==".")return r;else{const F=Number(s),U=""+F;if(U.search(/[eE]/)!==-1)if(f.eNotation)return F;else return r;else if(I)if(f.eNotation)return F;else return r;else if(s.indexOf(".")!==-1)if(U==="0"&&E==="")return F;else if(U===E)return F;else if(h&&U==="-"+E)return F;else return r;if($)if(E===U)return F;else if(h+E===U)return F;else return r;if(s===U)return F;else if(s===h+U)return F;return r}}else return r}}function mb(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}var kb=/^[-+]?0x[a-fA-F0-9]+$/,Db=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var ib={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};gK.exports=yb});var oK=v((Y2r,nK)=>{function vb(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:r[w]}}}function jb(r,f,s,w,h,$,E){if(r!==void 0){if(this.options.trimValues&&!w)r=r.trim();if(r.length>0){if(!E)r=this.replaceEntitiesValue(r);const I=this.options.tagValueProcessor(f,r,s,h,$);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return j5(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return j5(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function db(r){if(this.options.removeNSPrefix){const f=r.split(":"),s=r.charAt(0)==="/"?"/":"";if(f[0]==="xmlns")return"";if(f.length===2)r=s+f[1]}return r}function cb(r,f,s){if(!this.options.ignoreAttributes&&typeof r==="string"){const w=xK.getAllMatches(r,Ob),h=w.length,$={};for(let E=0;E<h;E++){const I=this.resolveNameSpace(w[E][1]);let F=w[E][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const C=this.options.attributeValueProcessor(I,F,f);if(C===null||C===void 0)$[U]=F;else if(typeof C!==typeof F||C!==F)$[U]=C;else $[U]=j5(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)$[U]=!0}}if(!Object.keys($).length)return;if(this.options.attributesGroupName){const E={};return E[this.options.attributesGroupName]=$,E}return $}}function gb(r,f,s){const w=this.options.updateTag(f.tagname,s,f[":@"]);if(w===!1);else if(typeof w==="string")f.tagname=w,r.addChild(f);else r.addChild(f)}function xb(r,f,s,w){if(r){if(w===void 0)w=Object.keys(f.child).length===0;if(r=this.parseTextData(r,f.tagname,s,!1,f[":@"]?Object.keys(f[":@"]).length!==0:!1,w),r!==void 0&&r!=="")f.add(this.options.textNodeName,r);r=""}return r}function eb(r,f,s){const w="*."+s;for(let h in r){const $=r[h];if(w===$||f===$)return!0}return!1}function nb(r,f,s=">"){let w,h="";for(let $=f;$<r.length;$++){let E=r[$];if(w){if(E===w)w=""}else if(E==='"'||E==="'")w=E;else if(E===s[0])if(s[1]){if(r[$+1]===s[1])return{data:h,index:$}}else return{data:h,index:$};else if(E==="\t")E=" ";h+=E}}function kw(r,f,s,w){const h=r.indexOf(f,s);if(h===-1)throw new Error(w);else return h+f.length-1}function v5(r,f,s,w=">"){const h=nb(r,f+1,w);if(!h)return;let $=h.data;const E=h.index,I=$.search(/\s/);let F=$,U=!0;if(I!==-1)F=$.substring(0,I),$=$.substring(I+1).trimStart();const C=F;if(s){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==h.data.substr(L+1)}return{tagName:F,tagExp:$,closeIndex:E,attrExpPresent:U,rawTagName:C}}function ob(r,f,s){const w=s;let h=1;for(;s<r.length;s++)if(r[s]==="<")if(r[s+1]==="/"){const $=kw(r,">",s,`${f} is not closed`);if(r.substring(s+2,$).trim()===f){if(h--,h===0)return{tagContent:r.substring(w,s),i:$}}s=$}else if(r[s+1]==="?")s=kw(r,"?>",s+1,"StopNode is not closed.");else if(r.substr(s+1,3)==="!--")s=kw(r,"-->",s+3,"StopNode is not closed.");else if(r.substr(s+1,2)==="![")s=kw(r,"]]>",s,"StopNode is not closed.")-2;else{const $=v5(r,s,">");if($){if(($&&$.tagName)===f&&$.tagExp[$.tagExp.length-1]!=="/")h++;s=$.closeIndex}}}function j5(r,f,s){if(f&&typeof r==="string"){const w=r.trim();if(w==="true")return!0;else if(w==="false")return!1;else return qb(r,s)}else if(xK.isExist(r))return r;else return""}var xK=D3(),q1=OK(),Nb=bK(),qb=_K();class eK{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,16))}},this.addExternalEntities=vb,this.parseXml=bb,this.parseTextData=jb,this.resolveNameSpace=db,this.buildAttributesMap=cb,this.isItStopNode=eb,this.replaceEntitiesValue=_b,this.readStopNodeData=ob,this.saveTextToParentTag=xb,this.addChild=gb}}var Ob=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),bb=function(r){r=r.replace(/\r\n?/g,"\n");const f=new q1("!xml");let s=f,w="",h="";for(let $=0;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="/"){const I=kw(r,">",$,"Closing Tag is not closed.");let F=r.substring($+2,I).trim();if(this.options.removeNSPrefix){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(s)w=this.saveTextToParentTag(w,s,h);const U=h.substring(h.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let C=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)C=h.lastIndexOf(".",h.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=h.lastIndexOf(".");h=h.substring(0,C),s=this.tagsNodeStack.pop(),w="",$=I}else if(r[$+1]==="?"){let I=v5(r,$,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,s,h),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const F=new q1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,h,I.tagName);this.addChild(s,F,h)}$=I.closeIndex+1}else if(r.substr($+1,3)==="!--"){const I=kw(r,"-->",$+4,"Comment is not closed.");if(this.options.commentPropName){const F=r.substring($+4,I-2);w=this.saveTextToParentTag(w,s,h),s.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}$=I}else if(r.substr($+1,2)==="!D"){const I=Nb(r,$);this.docTypeEntities=I.entities,$=I.i}else if(r.substr($+1,2)==="!["){const I=kw(r,"]]>",$,"CDATA is not closed.")-2,F=r.substring($+9,I);w=this.saveTextToParentTag(w,s,h);let U=this.parseTextData(F,s.tagname,h,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)s.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else s.add(this.options.textNodeName,U);$=I+2}else{let I=v5(r,$,this.options.removeNSPrefix),F=I.tagName;const U=I.rawTagName;let{tagExp:C,attrExpPresent:L,closeIndex:z}=I;if(this.options.transformTagName)F=this.options.transformTagName(F);if(s&&w){if(s.tagname!=="!xml")w=this.saveTextToParentTag(w,s,h,!1)}const S=s;if(S&&this.options.unpairedTags.indexOf(S.tagname)!==-1)s=this.tagsNodeStack.pop(),h=h.substring(0,h.lastIndexOf("."));if(F!==f.tagname)h+=h?"."+F:F;if(this.isItStopNode(this.options.stopNodes,h,F)){let Z="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);$=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)$=I.closeIndex;else{const B=this.readStopNodeData(r,U,z+1);if(!B)throw new Error(`Unexpected end of ${U}`);$=B.i,Z=B.tagContent}const D=new q1(F);if(F!==C&&L)D[":@"]=this.buildAttributesMap(C,h,F);if(Z)Z=this.parseTextData(Z,F,h,!0,L,!0,!0);h=h.substr(0,h.lastIndexOf(".")),D.add(this.options.textNodeName,Z),this.addChild(s,D,h)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const Z=new q1(F);if(F!==C&&L)Z[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,Z,h),h=h.substr(0,h.lastIndexOf("."))}else{const Z=new q1(F);if(this.tagsNodeStack.push(s),F!==C&&L)Z[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,Z,h),s=Z}w="",$=z}}else w+=r[$];return f.child},_b=function(r){if(this.options.processEntities){for(let f in this.docTypeEntities){const s=this.docTypeEntities[f];r=r.replace(s.regx,s.val)}for(let f in this.lastEntities){const s=this.lastEntities[f];r=r.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let f in this.htmlEntities){const s=this.htmlEntities[f];r=r.replace(s.regex,s.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};nK.exports=eK});var pK=v((rg)=>{function ab(r,f){return aK(r,f)}function aK(r,f,s){let w;const h={};for(let $=0;$<r.length;$++){const E=r[$],I=pb(E);let F="";if(s===void 0)F=I;else F=s+"."+I;if(I===f.textNodeName)if(w===void 0)w=E[I];else w+=""+E[I];else if(I===void 0)continue;else if(E[I]){let U=aK(E[I],f,F);const C=tb(U,f);if(E[":@"])ub(U,E[":@"],F,f);else if(Object.keys(U).length===1&&U[f.textNodeName]!==void 0&&!f.alwaysCreateTextNode)U=U[f.textNodeName];else if(Object.keys(U).length===0)if(f.alwaysCreateTextNode)U[f.textNodeName]="";else U="";if(h[I]!==void 0&&h.hasOwnProperty(I)){if(!Array.isArray(h[I]))h[I]=[h[I]];h[I].push(U)}else if(f.isArray(I,F,C))h[I]=[U];else h[I]=U}}if(typeof w==="string"){if(w.length>0)h[f.textNodeName]=w}else if(w!==void 0)h[f.textNodeName]=w;return h}function pb(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(w!==":@")return w}}function ub(r,f,s,w){if(f){const h=Object.keys(f),$=h.length;for(let E=0;E<$;E++){const I=h[E];if(w.isArray(I,s+"."+I,!0,!0))r[I]=[f[I]];else r[I]=f[I]}}}function tb(r,f){const{textNodeName:s}=f,w=Object.keys(r).length;if(w===0)return!0;if(w===1&&(r[s]||typeof r[s]==="boolean"||r[s]===0))return!0;return!1}rg.prettify=ab});var rZ=v((Z2r,tK)=>{var{buildOptions:fg}=vK(),wg=oK(),{prettify:hg}=pK(),$g=q5();class uK{constructor(r){this.externalEntities={},this.options=fg(r)}parse(r,f){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(f){if(f===!0)f={};const h=$g.validate(r,f);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const s=new wg(this.options);s.addExternalEntities(this.externalEntities);const w=s.parseXml(r);if(this.options.preserveOrder||w===void 0)return w;else return hg(w,this.options)}addEntity(r,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(f==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=f}}tK.exports=uK});var $Z=v((l2r,hZ)=>{function Eg(r,f){let s="";if(f.format&&f.indentBy.length>0)s="\n";return fZ(r,f,"",s)}function fZ(r,f,s,w){let h="",$=!1;for(let E=0;E<r.length;E++){const I=r[E],F=Ig(I);if(F===void 0)continue;let U="";if(s.length===0)U=F;else U=`${s}.${F}`;if(F===f.textNodeName){let Z=I[F];if(!Fg(U,f))Z=f.tagValueProcessor(F,Z),Z=wZ(Z,f);if($)h+=w;h+=Z,$=!1;continue}else if(F===f.cdataPropName){if($)h+=w;h+=`<![CDATA[${I[F][0][f.textNodeName]}]]>`,$=!1;continue}else if(F===f.commentPropName){h+=w+`<!--${I[F][0][f.textNodeName]}-->`,$=!0;continue}else if(F[0]==="?"){const Z=sZ(I[":@"],f),D=F==="?xml"?"":w;let B=I[F][0][f.textNodeName];B=B.length!==0?" "+B:"",h+=D+`<${F}${B}${Z}?>`,$=!0;continue}let C=w;if(C!=="")C+=f.indentBy;const L=sZ(I[":@"],f),z=w+`<${F}${L}`,S=fZ(I[F],f,U,C);if(f.unpairedTags.indexOf(F)!==-1)if(f.suppressUnpairedNode)h+=z+">";else h+=z+"/>";else if((!S||S.length===0)&&f.suppressEmptyNode)h+=z+"/>";else if(S&&S.endsWith(">"))h+=z+`>${S}${w}</${F}>`;else{if(h+=z+">",S&&w!==""&&(S.includes("/>")||S.includes("</")))h+=w+f.indentBy+S+w;else h+=S;h+=`</${F}>`}$=!0}return h}function Ig(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(!r.hasOwnProperty(w))continue;if(w!==":@")return w}}function sZ(r,f){let s="";if(r&&!f.ignoreAttributes)for(let w in r){if(!r.hasOwnProperty(w))continue;let h=f.attributeValueProcessor(w,r[w]);if(h=wZ(h,f),h===!0&&f.suppressBooleanAttributes)s+=` ${w.substr(f.attributeNamePrefix.length)}`;else s+=` ${w.substr(f.attributeNamePrefix.length)}="${h}"`}return s}function Fg(r,f){r=r.substr(0,r.length-f.textNodeName.length-1);let s=r.substr(r.lastIndexOf(".")+1);for(let w in f.stopNodes)if(f.stopNodes[w]===r||f.stopNodes[w]==="*."+s)return!0;return!1}function wZ(r,f){if(r&&r.length>0&&f.processEntities)for(let s=0;s<f.entities.length;s++){const w=f.entities[s];r=r.replace(w.regex,w.val)}return r}hZ.exports=Eg});var IZ=v((J2r,EZ)=>{function n0(r){if(this.options=Object.assign({},Tg,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Lg;if(this.processTextOrObjNode=Gg,this.options.format)this.indentate=Cg,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function Gg(r,f,s){const w=this.j2x(r,s+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],f,w.attrStr,s);else return this.buildObjectNode(w.val,f,w.attrStr,s)}function Cg(r){return this.options.indentBy.repeat(r)}function Lg(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}var Ug=$Z(),Tg={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};n0.prototype.build=function(r){if(this.options.preserveOrder)return Ug(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};n0.prototype.j2x=function(r,f){let s="",w="";for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;if(typeof r[h]==="undefined"){if(this.isAttribute(h))w+=""}else if(r[h]===null)if(this.isAttribute(h))w+="";else if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(r[h]instanceof Date)w+=this.buildTextValNode(r[h],h,"",f);else if(typeof r[h]!=="object"){const $=this.isAttribute(h);if($)s+=this.buildAttrPairStr($,""+r[h]);else if(h===this.options.textNodeName){let E=this.options.tagValueProcessor(h,""+r[h]);w+=this.replaceEntitiesValue(E)}else w+=this.buildTextValNode(r[h],h,"",f)}else if(Array.isArray(r[h])){const $=r[h].length;let E="",I="";for(let F=0;F<$;F++){const U=r[h][F];if(typeof U==="undefined");else if(U===null)if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){const C=this.j2x(U,f+1);if(E+=C.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=C.attrStr}else E+=this.processTextOrObjNode(U,h,f);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,U);C=this.replaceEntitiesValue(C),E+=C}else E+=this.buildTextValNode(U,h,"",f)}if(this.options.oneListGroup)E=this.buildObjectNode(E,h,I,f);w+=E}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const $=Object.keys(r[h]),E=$.length;for(let I=0;I<E;I++)s+=this.buildAttrPairStr($[I],""+r[h][$[I]])}else w+=this.processTextOrObjNode(r[h],h,f)}return{attrStr:s,val:w}};n0.prototype.buildAttrPairStr=function(r,f){if(f=this.options.attributeValueProcessor(r,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true")return" "+r;else return" "+r+'="'+f+'"'};n0.prototype.buildObjectNode=function(r,f,s,w){if(r==="")if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else{let h="</"+f+this.tagEndChar,$="";if(f[0]==="?")$="?",h="";if((s||s==="")&&r.indexOf("<")===-1)return this.indentate(w)+"<"+f+s+$+">"+r+h;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName&&$.length===0)return this.indentate(w)+`<!--${r}-->`+this.newLine;else return this.indentate(w)+"<"+f+s+$+this.tagEndChar+r+this.indentate(w)+h}};n0.prototype.closeTag=function(r){let f="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)f="/"}else if(this.options.suppressEmptyNode)f="/";else f=`></${r}`;return f};n0.prototype.buildTextValNode=function(r,f,s,w){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(w)+`<!--${r}-->`+this.newLine;else if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else{let h=this.options.tagValueProcessor(f,r);if(h=this.replaceEntitiesValue(h),h==="")return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else return this.indentate(w)+"<"+f+s+">"+h+"</"+f+this.tagEndChar}};n0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const s=this.options.entities[f];r=r.replace(s.regex,s.val)}return r};EZ.exports=n0});var UZ=v((Q2r,FZ)=>{var Ag=q5(),Rg=rZ(),Wg=IZ();FZ.exports={XMLParser:Rg,XMLValidator:Ag,XMLBuilder:Wg}});var RZ=v((M2r,AZ)=>{var{defineProperty:i3,getOwnPropertyDescriptor:zg,getOwnPropertyNames:Sg}=Object,Pg=Object.prototype.hasOwnProperty,Ps=(r,f)=>i3(r,"name",{value:f,configurable:!0}),Xg=(r,f)=>{for(var s in f)i3(r,s,{get:f[s],enumerable:!0})},Yg=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Sg(f))if(!Pg.call(r,h)&&h!==s)i3(r,h,{get:()=>f[h],enumerable:!(w=zg(f,h))||w.enumerable})}return r},Kg=(r)=>Yg(i3({},"__esModule",{value:!0}),r),TZ={};Xg(TZ,{_toBool:()=>lg,_toNum:()=>Jg,_toStr:()=>Zg,awsExpectUnion:()=>Mg,loadRestJsonErrorCode:()=>Vg,loadRestXmlErrorCode:()=>yg,parseJsonBody:()=>CZ,parseJsonErrorBody:()=>Hg,parseXmlBody:()=>LZ,parseXmlErrorBody:()=>ig});AZ.exports=Kg(TZ);var Zg=Ps((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){const f=new Error(`Received number ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}if(typeof r==="boolean"){const f=new Error(`Received boolean ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}return r},"_toStr"),lg=Ps((r)=>{if(r==null)return r;if(typeof r==="string"){const f=r.toLowerCase();if(r!==""&&f!=="false"&&f!=="true"){const s=new Error(`Received string "${r}" where a boolean was expected.`);s.name="Warning",console.warn(s)}return r!==""&&f!=="false"}return r},"_toBool"),Jg=Ps((r)=>{if(r==null)return r;if(typeof r==="string"){const f=Number(r);if(f.toString()!==r){const s=new Error(`Received string "${r}" where a number was expected.`);return s.name="Warning",console.warn(s),r}return f}return r},"_toNum"),Qg=Fh(),Mg=Ps((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return Qg.expectUnion(r)},"awsExpectUnion"),Bg=Fh(),GZ=Ps((r,f)=>Bg.collectBody(r,f).then((s)=>f.utf8Encoder(s)),"collectBodyString"),CZ=Ps((r,f)=>GZ(r,f).then((s)=>{if(s.length)try{return JSON.parse(s)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:s});throw w}return{}}),"parseJsonBody"),Hg=Ps(async(r,f)=>{const s=await CZ(r,f);return s.message=s.message??s.Message,s},"parseJsonErrorBody"),Vg=Ps((r,f)=>{const s=Ps(($,E)=>Object.keys($).find((I)=>I.toLowerCase()===E.toLowerCase()),"findKey"),w=Ps(($)=>{let E=$;if(typeof E==="number")E=E.toString();if(E.indexOf(",")>=0)E=E.split(",")[0];if(E.indexOf(":")>=0)E=E.split(":")[0];if(E.indexOf("#")>=0)E=E.split("#")[1];return E},"sanitizeErrorCode"),h=s(r.headers,"x-amzn-errortype");if(h!==void 0)return w(r.headers[h]);if(f.code!==void 0)return w(f.code);if(f.__type!==void 0)return w(f.__type)},"loadRestJsonErrorCode"),kg=Fh(),Dg=UZ(),LZ=Ps((r,f)=>GZ(r,f).then((s)=>{if(s.length){const w=new Dg.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let h;try{h=w.parse(s,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:s});throw F}const $="#text",E=Object.keys(h)[0],I=h[E];if(I[$])I[E]=I[$],delete I[$];return kg.getValueFromTextNode(I)}return{}}),"parseXmlBody"),ig=Ps(async(r,f)=>{const s=await LZ(r,f);if(s.Error)s.Error.message=s.Error.message??s.Error.Message;return s},"parseXmlErrorBody"),yg=Ps((r,f)=>{var s;if(((s=f==null?void 0:f.Error)==null?void 0:s.Code)!==void 0)return f.Error.Code;if((f==null?void 0:f.Code)!==void 0)return f.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Br=v((v1)=>{Object.defineProperty(v1,"__esModule",{value:!0});var d5=aY();d5.__exportStar(rK(),v1);d5.__exportStar(VK(),v1);d5.__exportStar(RZ(),v1)});var y3="AWS_ACCESS_KEY_ID",m3="AWS_SECRET_ACCESS_KEY",KZ="AWS_SESSION_TOKEN",ZZ="AWS_CREDENTIAL_EXPIRATION",lZ="AWS_CREDENTIAL_SCOPE",JZ="AWS_ACCOUNT_ID",O5=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const f=process.env[y3],s=process.env[m3],w=process.env[KZ],h=process.env[ZZ],$=process.env[lZ],E=process.env[JZ];if(f&&s)return{accessKeyId:f,secretAccessKey:s,...w&&{sessionToken:w},...h&&{expiration:new Date(h)},...$&&{credentialScope:$},...E&&{accountId:E}};throw new _("Unable to find environment variable credentials.",{logger:r?.logger})};var QZ=G(()=>{Lr()});var MZ={};Sf(MZ,{fromEnv:()=>O5,ENV_SESSION:()=>KZ,ENV_SECRET:()=>m3,ENV_KEY:()=>y3,ENV_EXPIRATION:()=>ZZ,ENV_CREDENTIAL_SCOPE:()=>lZ,ENV_ACCOUNT_ID:()=>JZ});var c5=G(()=>{QZ()});import{Buffer as qg}from"buffer";import{request as vg}from"http";function o0(r){return new Promise((f,s)=>{const w=vg({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});w.on("error",(h)=>{s(Object.assign(new Vs("Unable to connect to instance metadata service"),h)),w.destroy()}),w.on("timeout",()=>{s(new Vs("TimeoutError from instance metadata service")),w.destroy()}),w.on("response",(h)=>{const{statusCode:$=400}=h;if($<200||300<=$)s(Object.assign(new Vs("Error response received from instance metadata service"),{statusCode:$})),w.destroy();const E=[];h.on("data",(I)=>{E.push(I)}),h.on("end",()=>{f(qg.concat(E)),w.destroy()})}),w.end()})}var N3=G(()=>{Lr()});var q3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",v3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var jg=1000,dg=0,j1=({maxRetries:r=0,timeout:f=1000})=>({maxRetries:r,timeout:f});var d1=(r,f)=>{let s=r();for(let w=0;w<f;w++)s=s.catch(r);return s};import{parse as Og}from"url";var j3="AWS_CONTAINER_CREDENTIALS_FULL_URI",d3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b5="AWS_CONTAINER_AUTHORIZATION_TOKEN",cg=(r={})=>{const{timeout:f,maxRetries:s}=j1(r);return()=>d1(async()=>{const w=await eg({logger:r.logger}),h=JSON.parse(await bg(f,w));if(!q3(h))throw new _("Invalid response received from instance metadata service.",{logger:r.logger});return v3(h)},s)},bg=async(r,f)=>{if(process.env[b5])f.headers={...f.headers,Authorization:process.env[b5]};return(await o0({...f,timeout:r})).toString()},gg="169.254.170.2",_g,xg,eg=async({logger:r})=>{if(process.env[d3])return{hostname:gg,path:process.env[d3]};if(process.env[j3]){const f=Og(process.env[j3]);if(!f.hostname||!(f.hostname in _g))throw new _(`${f.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!f.protocol||!(f.protocol in xg))throw new _(`${f.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...f,port:f.port?parseInt(f.port,10):void 0}}throw new _(`The container metadata credential provider cannot be used unless the ${d3} or ${j3} environment variable is set`,{tryNextLink:!1,logger:r})};var BZ=G(()=>{Lr();N3();_g={localhost:!0,"127.0.0.1":!0},xg={"http:":!0,"https:":!0}});var O3;var HZ=G(()=>{Lr();O3=class O3 extends _{constructor(r,f=!0){super(r,f);this.tryNextLink=f,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,O3.prototype)}}});var Dw;var g5=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Dw||(Dw={}))});var VZ;var kZ=G(()=>{VZ={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var a0;var _5=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(a0||(a0={}))});var ng="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",og="ec2_metadata_service_endpoint_mode",DZ;var iZ=G(()=>{_5();DZ={environmentVariableSelector:(r)=>r[ng],configFileSelector:(r)=>r[og],default:a0.IPv4}});var c3=async()=>gr(await ag()||await pg()),ag=async()=>t(VZ)(),pg=async()=>{const r=await t(DZ)();switch(r){case a0.IPv4:return Dw.IPv4;case a0.IPv6:return Dw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(a0)}`)}};var x5=G(()=>{$f();b0();g5();kZ();_5();iZ()});var e5=(r,f)=>{const s=300+Math.floor(Math.random()*300),w=new Date(Date.now()+s*1000);f.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(w)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const h=r.originalExpiration??r.expiration;return{...r,...h?{originalExpiration:h}:{},expiration:w}};var yZ=(r,f={})=>{const s=f?.logger||console;let w;return async()=>{let h;try{if(h=await r(),h.expiration&&h.expiration.getTime()<Date.now())h=e5(h,s)}catch($){if(w)s.warn("Credential renew failed: ",$),h=e5(w,s);else throw $}return w=h,h}};var mZ=()=>{};var vZ="/latest/meta-data/iam/security-credentials/",ug="/latest/api/token",n5="AWS_EC2_METADATA_V1_DISABLED",NZ="ec2_metadata_v1_disabled",qZ="x-aws-ec2-metadata-token",tg=(r={})=>yZ(r_(r),{logger:r.logger}),r_=(r={})=>{let f=!1;const{logger:s,profile:w}=r,{timeout:h,maxRetries:$}=j1(r),E=async(I,F)=>{if(f||F.headers?.[qZ]==null){let L=!1,z=!1;const S=await t({environmentVariableSelector:(Z)=>{const D=Z[n5];if(z=!!D&&D!=="false",D===void 0)throw new _(`${n5} not set in env, checking config file next.`,{logger:r.logger});return z},configFileSelector:(Z)=>{const D=Z[NZ];return L=!!D&&D!=="false",L},default:!1},{profile:w})();if(r.ec2MetadataV1Disabled||S){const Z=[];if(r.ec2MetadataV1Disabled)Z.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)Z.push(`config file profile (${NZ})`);if(z)Z.push(`process environment variable (${n5})`);throw new O3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Z.join(", ")}].`)}}const C=(await d1(async()=>{let L;try{L=await f_(F)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)).trim();return d1(async()=>{let L;try{L=await w_(C,F,r)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)};return async()=>{const I=await c3();if(f)return s?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E($,{...I,timeout:h});else{let F;try{F=(await s_({...I,timeout:h})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))f=!0;return s?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E($,{...I,timeout:h})}return E($,{...I,headers:{[qZ]:F},timeout:h})}}},s_=async(r)=>o0({...r,path:ug,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),f_=async(r)=>(await o0({...r,path:vZ})).toString(),w_=async(r,f,s)=>{const w=JSON.parse((await o0({...f,path:vZ+r})).toString());if(!q3(w))throw new _("Invalid response received from instance metadata service.",{logger:s.logger});return v3(w)};var jZ=G(()=>{$f();Lr();HZ();N3();x5();mZ()});var dZ=()=>{};var O1={};Sf(O1,{providerConfigFromInit:()=>j1,httpRequest:()=>o0,getInstanceMetadataEndpoint:()=>c3,fromInstanceMetadata:()=>tg,fromContainerMetadata:()=>cg,Endpoint:()=>Dw,ENV_CMDS_RELATIVE_URI:()=>d3,ENV_CMDS_FULL_URI:()=>j3,ENV_CMDS_AUTH_TOKEN:()=>b5,DEFAULT_TIMEOUT:()=>jg,DEFAULT_MAX_RETRIES:()=>dg});var c1=G(()=>{BZ();jZ();dZ();N3();x5();g5()});var h_="169.254.170.2",$_="169.254.170.23",E_="[fd00:ec2::23]",OZ=(r,f)=>{if(r.protocol==="https:")return;if(r.hostname===h_||r.hostname===$_||r.hostname===E_)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;const s=r.hostname.split("."),w=(h)=>{const $=parseInt(h,10);return 0<=$&&$<=255};if(s[0]==="127"&&w(s[1])&&w(s[2])&&w(s[3])&&s.length===4)return}throw new _(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
21
|
+
${c0.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){const s=[];for(let $ of f.split("/")){if(($==null?void 0:$.length)===0)continue;if($===".")continue;if($==="..")s.pop();else s.push($)}const w=`${(f==null?void 0:f.startsWith("/"))?"/":""}${s.join("/")}${s.length>0&&(f==null?void 0:f.endsWith("/"))?"/":""}`;return V1.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,s,w,h){const $=await this.createStringToSign(f,s,h),E=new this.sha256(await w);return E.update(DU.toUint8Array($)),c0.toHex(await E.digest())}getSigningKey(f,s,w,h){return WK(this.sha256,f,w,s,h||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};qr(YK,"SignatureV4");var ac=YK,M3=qr((r)=>{const f=nc(r).replace(/[\-:]/g,"");return{longDate:f,shortDate:f.slice(0,8)}},"formatDate"),IK=qr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var NK=j((s2r,kK)=>{var{defineProperty:D3,getOwnPropertyDescriptor:pc,getOwnPropertyNames:uc}=Object,tc=Object.prototype.hasOwnProperty,Ws=(r,f)=>D3(r,"name",{value:f,configurable:!0}),rb=(r,f)=>{for(var s in f)D3(r,s,{get:f[s],enumerable:!0})},sb=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of uc(f))if(!tc.call(r,h)&&h!==s)D3(r,h,{get:()=>f[h],enumerable:!(w=pc(f,h))||w.enumerable})}return r},fb=(r)=>sb(D3({},"__esModule",{value:!0}),r),lK={};rb(lK,{AWSSDKSigV4Signer:()=>Eb,AwsSdkSigV4ASigner:()=>Fb,AwsSdkSigV4Signer:()=>jU,NODE_SIGV4A_CONFIG_OPTIONS:()=>Gb,resolveAWSSDKSigV4Config:()=>Cb,resolveAwsSdkSigV4AConfig:()=>Tb,resolveAwsSdkSigV4Config:()=>DK,validateSigningProperties:()=>vU});kK.exports=fb(lK);var wb=F0(),hb=F0(),JK=Ws((r)=>{var f,s;return hb.HttpResponse.isInstance(r)?((f=r.headers)==null?void 0:f.date)??((s=r.headers)==null?void 0:s.Date):void 0},"getDateHeader"),iU=Ws((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),$b=Ws((r,f)=>Math.abs(iU(f).getTime()-r)>=300000,"isClockSkewed"),QK=Ws((r,f)=>{const s=Date.parse(r);if($b(s,f))return s-Date.now();return f},"getUpdatedSystemClockOffset"),D1=Ws((r,f)=>{if(!f)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return f},"throwSigningPropertyError"),vU=Ws(async(r)=>{var f,s,w;const h=D1("context",r.context),$=D1("config",r.config),E=(w=(s=(f=h.endpointV2)==null?void 0:f.properties)==null?void 0:s.authSchemes)==null?void 0:w[0],F=await D1("signer",$.signer)(E),U=r==null?void 0:r.signingRegion,C=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:$,signer:F,signingRegion:U,signingRegionSet:C,signingName:L}},"validateSigningProperties"),HK=class r{async sign(f,s,w){var h;if(!wb.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const $=await vU(w),{config:E,signer:I}=$;let{signingRegion:F,signingName:U}=$;const C=w.context;if(((h=C==null?void 0:C.authSchemes)==null?void 0:h.length)??0>1){const[R,S]=C.authSchemes;if((R==null?void 0:R.name)==="sigv4a"&&(S==null?void 0:S.name)==="sigv4")F=(S==null?void 0:S.signingRegion)??F,U=(S==null?void 0:S.signingName)??U}return await I.sign(f,{signingDate:iU(E.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(f){return(s)=>{const w=s.ServerTime??JK(s.$response);if(w){const h=D1("config",f.config),$=h.systemClockOffset;if(h.systemClockOffset=QK(w,h.systemClockOffset),h.systemClockOffset!==$&&s.$metadata)s.$metadata.clockSkewCorrected=!0}throw s}}successHandler(f,s){const w=JK(f);if(w){const h=D1("config",s.config);h.systemClockOffset=QK(w,h.systemClockOffset)}}};Ws(HK,"AwsSdkSigV4Signer");var jU=HK,Eb=jU,Ib=F0(),VK=class r extends jU{async sign(f,s,w){var h;if(!Ib.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:$,signer:E,signingRegion:I,signingRegionSet:F,signingName:U}=await vU(w),L=(await((h=$.sigv4aSigningRegionSet)==null?void 0:h.call($))??F??[I]).join(",");return await E.sign(f,{signingDate:iU($.systemClockOffset),signingRegion:L,signingService:U})}};Ws(VK,"AwsSdkSigV4ASigner");var Fb=VK,Ub=dr(),MK=Cr(),Tb=Ws((r)=>{return r.sigv4aSigningRegionSet=Ub.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),Gb={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((f)=>f.trim());throw new MK.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((f)=>f.trim());throw new MK.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Qw=dr(),BK=ZK(),DK=Ws((r)=>{let f;if(r.credentials)f=Qw.memoizeIdentityProvider(r.credentials,Qw.isIdentityExpired,Qw.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Qw.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Ws(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:s=!0,systemClockOffset:w=r.systemClockOffset||0,sha256:h}=r;let $;if(r.signer)$=Qw.normalizeProvider(r.signer);else if(r.regionInfoProvider)$=Ws(()=>Qw.normalizeProvider(r.region)().then(async(E)=>[await r.regionInfoProvider(E,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},E]).then(([E,I])=>{const{signingRegion:F,signingService:U}=E;r.signingRegion=r.signingRegion||F||I,r.signingName=r.signingName||U||r.serviceId;const C={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||BK.SignatureV4)(C)}),"signer");else $=Ws(async(E)=>{E=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Qw.normalizeProvider(r.region)(),properties:{}},E);const{signingRegion:I,signingName:F}=E;r.signingRegion=r.signingRegion||I,r.signingName=r.signingName||F||r.serviceId;const U={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||BK.SignatureV4)(U)},"signer");return{...r,systemClockOffset:w,signingEscapePath:s,credentials:f,signer:$}},"resolveAwsSdkSigV4Config"),Cb=DK});var k3=j((Rb)=>{var Lb=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yK="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+Lb+"]*",Ab=new RegExp("^"+yK+"$"),Wb=function(r,f){const s=[];let w=f.exec(r);while(w){const h=[];h.startIndex=f.lastIndex-w[0].length;const $=w.length;for(let E=0;E<$;E++)h.push(w[E]);s.push(h),w=f.exec(r)}return s},zb=function(r){const f=Ab.exec(r);return!(f===null||typeof f==="undefined")};Rb.isExist=function(r){return typeof r!=="undefined"};Rb.isEmptyObject=function(r){return Object.keys(r).length===0};Rb.merge=function(r,f,s){if(f){const w=Object.keys(f),h=w.length;for(let $=0;$<h;$++)if(s==="strict")r[w[$]]=[f[w[$]]];else r[w[$]]=f[w[$]]}};Rb.getValue=function(r){if(Rb.isExist(r))return r;else return""};Rb.isName=zb;Rb.getAllMatches=Wb;Rb.nameRegexp=yK});var OU=j((Nb)=>{function mK(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function iK(r,f){const s=f;for(;f<r.length;f++)if(r[f]=="?"||r[f]==" "){const w=r.substr(s,f-s);if(f>5&&w==="xml")return Mr("InvalidXml","XML declaration allowed only at the start of the document.",ur(r,f));else if(r[f]=="?"&&r[f+1]==">"){f++;break}else continue}return f}function vK(r,f){if(r.length>f+5&&r[f+1]==="-"&&r[f+2]==="-"){for(f+=3;f<r.length;f++)if(r[f]==="-"&&r[f+1]==="-"&&r[f+2]===">"){f+=2;break}}else if(r.length>f+8&&r[f+1]==="D"&&r[f+2]==="O"&&r[f+3]==="C"&&r[f+4]==="T"&&r[f+5]==="Y"&&r[f+6]==="P"&&r[f+7]==="E"){let s=1;for(f+=8;f<r.length;f++)if(r[f]==="<")s++;else if(r[f]===">"){if(s--,s===0)break}}else if(r.length>f+9&&r[f+1]==="["&&r[f+2]==="C"&&r[f+3]==="D"&&r[f+4]==="A"&&r[f+5]==="T"&&r[f+6]==="A"&&r[f+7]==="["){for(f+=8;f<r.length;f++)if(r[f]==="]"&&r[f+1]==="]"&&r[f+2]===">"){f+=2;break}}return f}function Bb(r,f){let s="",w="",h=!1;for(;f<r.length;f++){if(r[f]===Qb||r[f]===Mb)if(w==="")w=r[f];else if(w!==r[f]);else w="";else if(r[f]===">"){if(w===""){h=!0;break}}s+=r[f]}if(w!=="")return!1;return{value:s,index:f,tagClosed:h}}function jK(r,f){const s=dU.getAllMatches(r,lb),w={};for(let h=0;h<s.length;h++){if(s[h][1].length===0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' has no space in starting.",k1(s[h]));else if(s[h][3]!==void 0&&s[h][4]===void 0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' is without value.",k1(s[h]));else if(s[h][3]===void 0&&!f.allowBooleanAttributes)return Mr("InvalidAttr","boolean attribute '"+s[h][2]+"' is not allowed.",k1(s[h]));const $=s[h][2];if(!Db($))return Mr("InvalidAttr","Attribute '"+$+"' is an invalid name.",k1(s[h]));if(!w.hasOwnProperty($))w[$]=1;else return Mr("InvalidAttr","Attribute '"+$+"' is repeated.",k1(s[h]))}return!0}function Hb(r,f){let s=/\d/;if(r[f]==="x")f++,s=/[\da-fA-F]/;for(;f<r.length;f++){if(r[f]===";")return f;if(!r[f].match(s))break}return-1}function Vb(r,f){if(f++,r[f]===";")return-1;if(r[f]==="#")return f++,Hb(r,f);let s=0;for(;f<r.length;f++,s++){if(r[f].match(/\w/)&&s<20)continue;if(r[f]===";")break;return-1}return f}function Mr(r,f,s){return{err:{code:r,msg:f,line:s.line||s,col:s.col}}}function Db(r){return dU.isName(r)}function kb(r){return dU.isName(r)}function ur(r,f){const s=r.substring(0,f).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function k1(r){return r.startIndex+r[1].length}var dU=k3(),Jb={allowBooleanAttributes:!1,unpairedTags:[]};Nb.validate=function(r,f){f=Object.assign({},Jb,f);const s=[];let w=!1,h=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let $=0;$<r.length;$++)if(r[$]==="<"&&r[$+1]==="?"){if($+=2,$=iK(r,$),$.err)return $}else if(r[$]==="<"){let E=$;if($++,r[$]==="!"){$=vK(r,$);continue}else{let I=!1;if(r[$]==="/")I=!0,$++;let F="";for(;$<r.length&&r[$]!==">"&&r[$]!==" "&&r[$]!=="\t"&&r[$]!=="\n"&&r[$]!=="\r";$++)F+=r[$];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),$--;if(!kb(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Mr("InvalidTag",L,ur(r,$))}const U=Bb(r,$);if(U===!1)return Mr("InvalidAttr","Attributes for '"+F+"' have open quote.",ur(r,$));let C=U.value;if($=U.index,C[C.length-1]==="/"){const L=$-C.length;C=C.substring(0,C.length-1);const R=jK(C,f);if(R===!0)w=!0;else return Mr(R.err.code,R.err.msg,ur(r,L+R.err.line))}else if(I)if(!U.tagClosed)return Mr("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",ur(r,$));else if(C.trim().length>0)return Mr("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",ur(r,E));else if(s.length===0)return Mr("InvalidTag","Closing tag '"+F+"' has not been opened.",ur(r,E));else{const L=s.pop();if(F!==L.tagName){let R=ur(r,L.tagStartPos);return Mr("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+R.line+", col "+R.col+") instead of closing tag '"+F+"'.",ur(r,E))}if(s.length==0)h=!0}else{const L=jK(C,f);if(L!==!0)return Mr(L.err.code,L.err.msg,ur(r,$-C.length+L.err.line));if(h===!0)return Mr("InvalidXml","Multiple possible root nodes found.",ur(r,$));else if(f.unpairedTags.indexOf(F)!==-1);else s.push({tagName:F,tagStartPos:E});w=!0}for($++;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="!"){$++,$=vK(r,$);continue}else if(r[$+1]==="?"){if($=iK(r,++$),$.err)return $}else break;else if(r[$]==="&"){const L=Vb(r,$);if(L==-1)return Mr("InvalidChar","char '&' is not expected.",ur(r,$));$=L}else if(h===!0&&!mK(r[$]))return Mr("InvalidXml","Extra text at the end",ur(r,$));if(r[$]==="<")$--}}else{if(mK(r[$]))continue;return Mr("InvalidChar","char '"+r[$]+"' is not expected.",ur(r,$))}if(!w)return Mr("InvalidXml","Start tag expected.",1);else if(s.length==1)return Mr("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",ur(r,s[0].tagStartPos));else if(s.length>0)return Mr("InvalidXml","Invalid '"+JSON.stringify(s.map(($)=>$.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var Qb='"',Mb="'",lb=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var OK=j((mb)=>{var dK={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,f,s){return r}},qb=function(r){return Object.assign({},dK,r)};mb.buildOptions=qb;mb.defaultOptions=dK});var gK=j(($2r,bK)=>{class cK{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,f){if(r==="__proto__")r="#__proto__";this.child.push({[r]:f})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}bK.exports=cK});var xK=j((E2r,_K)=>{function db(r,f){const s={};if(r[f+3]==="O"&&r[f+4]==="C"&&r[f+5]==="T"&&r[f+6]==="Y"&&r[f+7]==="P"&&r[f+8]==="E"){f=f+9;let w=1,h=!1,$=!1,E="";for(;f<r.length;f++)if(r[f]==="<"&&!$){if(h&&bb(r,f)){if(f+=7,[entityName,val,f]=Ob(r,f+1),val.indexOf("&")===-1)s[eb(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(h&&gb(r,f))f+=8;else if(h&&_b(r,f))f+=8;else if(h&&xb(r,f))f+=9;else if(cb)$=!0;else throw new Error("Invalid DOCTYPE");w++,E=""}else if(r[f]===">"){if($){if(r[f-1]==="-"&&r[f-2]==="-")$=!1,w--}else w--;if(w===0)break}else if(r[f]==="[")h=!0;else E+=r[f];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:s,i:f}}function Ob(r,f){let s="";for(;f<r.length&&(r[f]!=="'"&&r[f]!=='"');f++)s+=r[f];if(s=s.trim(),s.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=r[f++];let h="";for(;f<r.length&&r[f]!==w;f++)h+=r[f];return[s,h,f]}function cb(r,f){if(r[f+1]==="!"&&r[f+2]==="-"&&r[f+3]==="-")return!0;return!1}function bb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="N"&&r[f+4]==="T"&&r[f+5]==="I"&&r[f+6]==="T"&&r[f+7]==="Y")return!0;return!1}function gb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="L"&&r[f+4]==="E"&&r[f+5]==="M"&&r[f+6]==="E"&&r[f+7]==="N"&&r[f+8]==="T")return!0;return!1}function _b(r,f){if(r[f+1]==="!"&&r[f+2]==="A"&&r[f+3]==="T"&&r[f+4]==="T"&&r[f+5]==="L"&&r[f+6]==="I"&&r[f+7]==="S"&&r[f+8]==="T")return!0;return!1}function xb(r,f){if(r[f+1]==="!"&&r[f+2]==="N"&&r[f+3]==="O"&&r[f+4]==="T"&&r[f+5]==="A"&&r[f+6]==="T"&&r[f+7]==="I"&&r[f+8]==="O"&&r[f+9]==="N")return!0;return!1}function eb(r){if(jb.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}var jb=k3();_K.exports=db});var nK=j((I2r,eK)=>{function pb(r,f={}){if(f=Object.assign({},ab,f),!r||typeof r!=="string")return r;let s=r.trim();if(f.skipLike!==void 0&&f.skipLike.test(s))return r;else if(f.hex&&nb.test(s))return Number.parseInt(s,16);else{const w=ob.exec(s);if(w){const h=w[1],$=w[2];let E=ub(w[3]);const I=w[4]||w[6];if(!f.leadingZeros&&$.length>0&&h&&s[2]!==".")return r;else if(!f.leadingZeros&&$.length>0&&!h&&s[1]!==".")return r;else{const F=Number(s),U=""+F;if(U.search(/[eE]/)!==-1)if(f.eNotation)return F;else return r;else if(I)if(f.eNotation)return F;else return r;else if(s.indexOf(".")!==-1)if(U==="0"&&E==="")return F;else if(U===E)return F;else if(h&&U==="-"+E)return F;else return r;if($)if(E===U)return F;else if(h+E===U)return F;else return r;if(s===U)return F;else if(s===h+U)return F;return r}}else return r}}function ub(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}var nb=/^[-+]?0x[a-fA-F0-9]+$/,ob=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var ab={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};eK.exports=pb});var uK=j((F2r,pK)=>{function sg(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:r[w]}}}function fg(r,f,s,w,h,$,E){if(r!==void 0){if(this.options.trimValues&&!w)r=r.trim();if(r.length>0){if(!E)r=this.replaceEntitiesValue(r);const I=this.options.tagValueProcessor(f,r,s,h,$);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return bU(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return bU(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function wg(r){if(this.options.removeNSPrefix){const f=r.split(":"),s=r.charAt(0)==="/"?"/":"";if(f[0]==="xmlns")return"";if(f.length===2)r=s+f[1]}return r}function $g(r,f,s){if(!this.options.ignoreAttributes&&typeof r==="string"){const w=oK.getAllMatches(r,hg),h=w.length,$={};for(let E=0;E<h;E++){const I=this.resolveNameSpace(w[E][1]);let F=w[E][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const C=this.options.attributeValueProcessor(I,F,f);if(C===null||C===void 0)$[U]=F;else if(typeof C!==typeof F||C!==F)$[U]=C;else $[U]=bU(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)$[U]=!0}}if(!Object.keys($).length)return;if(this.options.attributesGroupName){const E={};return E[this.options.attributesGroupName]=$,E}return $}}function Ig(r,f,s){const w=this.options.updateTag(f.tagname,s,f[":@"]);if(w===!1);else if(typeof w==="string")f.tagname=w,r.addChild(f);else r.addChild(f)}function Ug(r,f,s,w){if(r){if(w===void 0)w=Object.keys(f.child).length===0;if(r=this.parseTextData(r,f.tagname,s,!1,f[":@"]?Object.keys(f[":@"]).length!==0:!1,w),r!==void 0&&r!=="")f.add(this.options.textNodeName,r);r=""}return r}function Tg(r,f,s){const w="*."+s;for(let h in r){const $=r[h];if(w===$||f===$)return!0}return!1}function Gg(r,f,s=">"){let w,h="";for(let $=f;$<r.length;$++){let E=r[$];if(w){if(E===w)w=""}else if(E==='"'||E==="'")w=E;else if(E===s[0])if(s[1]){if(r[$+1]===s[1])return{data:h,index:$}}else return{data:h,index:$};else if(E==="\t")E=" ";h+=E}}function Mw(r,f,s,w){const h=r.indexOf(f,s);if(h===-1)throw new Error(w);else return h+f.length-1}function cU(r,f,s,w=">"){const h=Gg(r,f+1,w);if(!h)return;let $=h.data;const E=h.index,I=$.search(/\s/);let F=$,U=!0;if(I!==-1)F=$.substring(0,I),$=$.substring(I+1).trimStart();const C=F;if(s){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==h.data.substr(L+1)}return{tagName:F,tagExp:$,closeIndex:E,attrExpPresent:U,rawTagName:C}}function Cg(r,f,s){const w=s;let h=1;for(;s<r.length;s++)if(r[s]==="<")if(r[s+1]==="/"){const $=Mw(r,">",s,`${f} is not closed`);if(r.substring(s+2,$).trim()===f){if(h--,h===0)return{tagContent:r.substring(w,s),i:$}}s=$}else if(r[s+1]==="?")s=Mw(r,"?>",s+1,"StopNode is not closed.");else if(r.substr(s+1,3)==="!--")s=Mw(r,"-->",s+3,"StopNode is not closed.");else if(r.substr(s+1,2)==="![")s=Mw(r,"]]>",s,"StopNode is not closed.")-2;else{const $=cU(r,s,">");if($){if(($&&$.tagName)===f&&$.tagExp[$.tagExp.length-1]!=="/")h++;s=$.closeIndex}}}function bU(r,f,s){if(f&&typeof r==="string"){const w=r.trim();if(w==="true")return!0;else if(w==="false")return!1;else return rg(r,s)}else if(oK.isExist(r))return r;else return""}var oK=k3(),N1=gK(),tb=xK(),rg=nK();class aK{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,16))}},this.addExternalEntities=sg,this.parseXml=Eg,this.parseTextData=fg,this.resolveNameSpace=wg,this.buildAttributesMap=$g,this.isItStopNode=Tg,this.replaceEntitiesValue=Fg,this.readStopNodeData=Cg,this.saveTextToParentTag=Ug,this.addChild=Ig}}var hg=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),Eg=function(r){r=r.replace(/\r\n?/g,"\n");const f=new N1("!xml");let s=f,w="",h="";for(let $=0;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="/"){const I=Mw(r,">",$,"Closing Tag is not closed.");let F=r.substring($+2,I).trim();if(this.options.removeNSPrefix){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(s)w=this.saveTextToParentTag(w,s,h);const U=h.substring(h.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let C=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)C=h.lastIndexOf(".",h.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=h.lastIndexOf(".");h=h.substring(0,C),s=this.tagsNodeStack.pop(),w="",$=I}else if(r[$+1]==="?"){let I=cU(r,$,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,s,h),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const F=new N1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,h,I.tagName);this.addChild(s,F,h)}$=I.closeIndex+1}else if(r.substr($+1,3)==="!--"){const I=Mw(r,"-->",$+4,"Comment is not closed.");if(this.options.commentPropName){const F=r.substring($+4,I-2);w=this.saveTextToParentTag(w,s,h),s.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}$=I}else if(r.substr($+1,2)==="!D"){const I=tb(r,$);this.docTypeEntities=I.entities,$=I.i}else if(r.substr($+1,2)==="!["){const I=Mw(r,"]]>",$,"CDATA is not closed.")-2,F=r.substring($+9,I);w=this.saveTextToParentTag(w,s,h);let U=this.parseTextData(F,s.tagname,h,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)s.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else s.add(this.options.textNodeName,U);$=I+2}else{let I=cU(r,$,this.options.removeNSPrefix),F=I.tagName;const U=I.rawTagName;let{tagExp:C,attrExpPresent:L,closeIndex:R}=I;if(this.options.transformTagName)F=this.options.transformTagName(F);if(s&&w){if(s.tagname!=="!xml")w=this.saveTextToParentTag(w,s,h,!1)}const S=s;if(S&&this.options.unpairedTags.indexOf(S.tagname)!==-1)s=this.tagsNodeStack.pop(),h=h.substring(0,h.lastIndexOf("."));if(F!==f.tagname)h+=h?"."+F:F;if(this.isItStopNode(this.options.stopNodes,h,F)){let K="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);$=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)$=I.closeIndex;else{const l=this.readStopNodeData(r,U,R+1);if(!l)throw new Error(`Unexpected end of ${U}`);$=l.i,K=l.tagContent}const k=new N1(F);if(F!==C&&L)k[":@"]=this.buildAttributesMap(C,h,F);if(K)K=this.parseTextData(K,F,h,!0,L,!0,!0);h=h.substr(0,h.lastIndexOf(".")),k.add(this.options.textNodeName,K),this.addChild(s,k,h)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const K=new N1(F);if(F!==C&&L)K[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,K,h),h=h.substr(0,h.lastIndexOf("."))}else{const K=new N1(F);if(this.tagsNodeStack.push(s),F!==C&&L)K[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,K,h),s=K}w="",$=R}}else w+=r[$];return f.child},Fg=function(r){if(this.options.processEntities){for(let f in this.docTypeEntities){const s=this.docTypeEntities[f];r=r.replace(s.regx,s.val)}for(let f in this.lastEntities){const s=this.lastEntities[f];r=r.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let f in this.htmlEntities){const s=this.htmlEntities[f];r=r.replace(s.regex,s.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};pK.exports=aK});var rZ=j((Rg)=>{function Lg(r,f){return tK(r,f)}function tK(r,f,s){let w;const h={};for(let $=0;$<r.length;$++){const E=r[$],I=Ag(E);let F="";if(s===void 0)F=I;else F=s+"."+I;if(I===f.textNodeName)if(w===void 0)w=E[I];else w+=""+E[I];else if(I===void 0)continue;else if(E[I]){let U=tK(E[I],f,F);const C=zg(U,f);if(E[":@"])Wg(U,E[":@"],F,f);else if(Object.keys(U).length===1&&U[f.textNodeName]!==void 0&&!f.alwaysCreateTextNode)U=U[f.textNodeName];else if(Object.keys(U).length===0)if(f.alwaysCreateTextNode)U[f.textNodeName]="";else U="";if(h[I]!==void 0&&h.hasOwnProperty(I)){if(!Array.isArray(h[I]))h[I]=[h[I]];h[I].push(U)}else if(f.isArray(I,F,C))h[I]=[U];else h[I]=U}}if(typeof w==="string"){if(w.length>0)h[f.textNodeName]=w}else if(w!==void 0)h[f.textNodeName]=w;return h}function Ag(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(w!==":@")return w}}function Wg(r,f,s,w){if(f){const h=Object.keys(f),$=h.length;for(let E=0;E<$;E++){const I=h[E];if(w.isArray(I,s+"."+I,!0,!0))r[I]=[f[I]];else r[I]=f[I]}}}function zg(r,f){const{textNodeName:s}=f,w=Object.keys(r).length;if(w===0)return!0;if(w===1&&(r[s]||typeof r[s]==="boolean"||r[s]===0))return!0;return!1}Rg.prettify=Lg});var wZ=j((T2r,fZ)=>{var{buildOptions:Pg}=OK(),Xg=uK(),{prettify:Yg}=rZ(),Kg=OU();class sZ{constructor(r){this.externalEntities={},this.options=Pg(r)}parse(r,f){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(f){if(f===!0)f={};const h=Kg.validate(r,f);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const s=new Xg(this.options);s.addExternalEntities(this.externalEntities);const w=s.parseXml(r);if(this.options.preserveOrder||w===void 0)return w;else return Yg(w,this.options)}addEntity(r,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(f==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=f}}fZ.exports=sZ});var FZ=j((G2r,IZ)=>{function Zg(r,f){let s="";if(f.format&&f.indentBy.length>0)s="\n";return $Z(r,f,"",s)}function $Z(r,f,s,w){let h="",$=!1;for(let E=0;E<r.length;E++){const I=r[E],F=Jg(I);if(F===void 0)continue;let U="";if(s.length===0)U=F;else U=`${s}.${F}`;if(F===f.textNodeName){let K=I[F];if(!Qg(U,f))K=f.tagValueProcessor(F,K),K=EZ(K,f);if($)h+=w;h+=K,$=!1;continue}else if(F===f.cdataPropName){if($)h+=w;h+=`<![CDATA[${I[F][0][f.textNodeName]}]]>`,$=!1;continue}else if(F===f.commentPropName){h+=w+`<!--${I[F][0][f.textNodeName]}-->`,$=!0;continue}else if(F[0]==="?"){const K=hZ(I[":@"],f),k=F==="?xml"?"":w;let l=I[F][0][f.textNodeName];l=l.length!==0?" "+l:"",h+=k+`<${F}${l}${K}?>`,$=!0;continue}let C=w;if(C!=="")C+=f.indentBy;const L=hZ(I[":@"],f),R=w+`<${F}${L}`,S=$Z(I[F],f,U,C);if(f.unpairedTags.indexOf(F)!==-1)if(f.suppressUnpairedNode)h+=R+">";else h+=R+"/>";else if((!S||S.length===0)&&f.suppressEmptyNode)h+=R+"/>";else if(S&&S.endsWith(">"))h+=R+`>${S}${w}</${F}>`;else{if(h+=R+">",S&&w!==""&&(S.includes("/>")||S.includes("</")))h+=w+f.indentBy+S+w;else h+=S;h+=`</${F}>`}$=!0}return h}function Jg(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(!r.hasOwnProperty(w))continue;if(w!==":@")return w}}function hZ(r,f){let s="";if(r&&!f.ignoreAttributes)for(let w in r){if(!r.hasOwnProperty(w))continue;let h=f.attributeValueProcessor(w,r[w]);if(h=EZ(h,f),h===!0&&f.suppressBooleanAttributes)s+=` ${w.substr(f.attributeNamePrefix.length)}`;else s+=` ${w.substr(f.attributeNamePrefix.length)}="${h}"`}return s}function Qg(r,f){r=r.substr(0,r.length-f.textNodeName.length-1);let s=r.substr(r.lastIndexOf(".")+1);for(let w in f.stopNodes)if(f.stopNodes[w]===r||f.stopNodes[w]==="*."+s)return!0;return!1}function EZ(r,f){if(r&&r.length>0&&f.processEntities)for(let s=0;s<f.entities.length;s++){const w=f.entities[s];r=r.replace(w.regex,w.val)}return r}IZ.exports=Zg});var TZ=j((C2r,UZ)=>{function b0(r){if(this.options=Object.assign({},Bg,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Vg;if(this.processTextOrObjNode=lg,this.options.format)this.indentate=Hg,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function lg(r,f,s){const w=this.j2x(r,s+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],f,w.attrStr,s);else return this.buildObjectNode(w.val,f,w.attrStr,s)}function Hg(r){return this.options.indentBy.repeat(r)}function Vg(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}var Mg=FZ(),Bg={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};b0.prototype.build=function(r){if(this.options.preserveOrder)return Mg(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};b0.prototype.j2x=function(r,f){let s="",w="";for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;if(typeof r[h]==="undefined"){if(this.isAttribute(h))w+=""}else if(r[h]===null)if(this.isAttribute(h))w+="";else if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(r[h]instanceof Date)w+=this.buildTextValNode(r[h],h,"",f);else if(typeof r[h]!=="object"){const $=this.isAttribute(h);if($)s+=this.buildAttrPairStr($,""+r[h]);else if(h===this.options.textNodeName){let E=this.options.tagValueProcessor(h,""+r[h]);w+=this.replaceEntitiesValue(E)}else w+=this.buildTextValNode(r[h],h,"",f)}else if(Array.isArray(r[h])){const $=r[h].length;let E="",I="";for(let F=0;F<$;F++){const U=r[h][F];if(typeof U==="undefined");else if(U===null)if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){const C=this.j2x(U,f+1);if(E+=C.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=C.attrStr}else E+=this.processTextOrObjNode(U,h,f);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,U);C=this.replaceEntitiesValue(C),E+=C}else E+=this.buildTextValNode(U,h,"",f)}if(this.options.oneListGroup)E=this.buildObjectNode(E,h,I,f);w+=E}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const $=Object.keys(r[h]),E=$.length;for(let I=0;I<E;I++)s+=this.buildAttrPairStr($[I],""+r[h][$[I]])}else w+=this.processTextOrObjNode(r[h],h,f)}return{attrStr:s,val:w}};b0.prototype.buildAttrPairStr=function(r,f){if(f=this.options.attributeValueProcessor(r,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true")return" "+r;else return" "+r+'="'+f+'"'};b0.prototype.buildObjectNode=function(r,f,s,w){if(r==="")if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else{let h="</"+f+this.tagEndChar,$="";if(f[0]==="?")$="?",h="";if((s||s==="")&&r.indexOf("<")===-1)return this.indentate(w)+"<"+f+s+$+">"+r+h;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName&&$.length===0)return this.indentate(w)+`<!--${r}-->`+this.newLine;else return this.indentate(w)+"<"+f+s+$+this.tagEndChar+r+this.indentate(w)+h}};b0.prototype.closeTag=function(r){let f="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)f="/"}else if(this.options.suppressEmptyNode)f="/";else f=`></${r}`;return f};b0.prototype.buildTextValNode=function(r,f,s,w){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(w)+`<!--${r}-->`+this.newLine;else if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else{let h=this.options.tagValueProcessor(f,r);if(h=this.replaceEntitiesValue(h),h==="")return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else return this.indentate(w)+"<"+f+s+">"+h+"</"+f+this.tagEndChar}};b0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const s=this.options.entities[f];r=r.replace(s.regex,s.val)}return r};UZ.exports=b0});var CZ=j((L2r,GZ)=>{var Dg=OU(),kg=wZ(),Ng=TZ();GZ.exports={XMLParser:kg,XMLValidator:Dg,XMLBuilder:Ng}});var SZ=j((A2r,RZ)=>{var{defineProperty:N3,getOwnPropertyDescriptor:yg,getOwnPropertyNames:qg}=Object,mg=Object.prototype.hasOwnProperty,zs=(r,f)=>N3(r,"name",{value:f,configurable:!0}),ig=(r,f)=>{for(var s in f)N3(r,s,{get:f[s],enumerable:!0})},vg=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of qg(f))if(!mg.call(r,h)&&h!==s)N3(r,h,{get:()=>f[h],enumerable:!(w=yg(f,h))||w.enumerable})}return r},jg=(r)=>vg(N3({},"__esModule",{value:!0}),r),LZ={};ig(LZ,{_toBool:()=>Og,_toNum:()=>cg,_toStr:()=>dg,awsExpectUnion:()=>gg,loadRestJsonErrorCode:()=>eg,loadRestXmlErrorCode:()=>pg,parseJsonBody:()=>WZ,parseJsonErrorBody:()=>xg,parseXmlBody:()=>zZ,parseXmlErrorBody:()=>ag});RZ.exports=jg(LZ);var dg=zs((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){const f=new Error(`Received number ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}if(typeof r==="boolean"){const f=new Error(`Received boolean ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}return r},"_toStr"),Og=zs((r)=>{if(r==null)return r;if(typeof r==="string"){const f=r.toLowerCase();if(r!==""&&f!=="false"&&f!=="true"){const s=new Error(`Received string "${r}" where a boolean was expected.`);s.name="Warning",console.warn(s)}return r!==""&&f!=="false"}return r},"_toBool"),cg=zs((r)=>{if(r==null)return r;if(typeof r==="string"){const f=Number(r);if(f.toString()!==r){const s=new Error(`Received string "${r}" where a number was expected.`);return s.name="Warning",console.warn(s),r}return f}return r},"_toNum"),bg=wh(),gg=zs((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return bg.expectUnion(r)},"awsExpectUnion"),_g=wh(),AZ=zs((r,f)=>_g.collectBody(r,f).then((s)=>f.utf8Encoder(s)),"collectBodyString"),WZ=zs((r,f)=>AZ(r,f).then((s)=>{if(s.length)try{return JSON.parse(s)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:s});throw w}return{}}),"parseJsonBody"),xg=zs(async(r,f)=>{const s=await WZ(r,f);return s.message=s.message??s.Message,s},"parseJsonErrorBody"),eg=zs((r,f)=>{const s=zs(($,E)=>Object.keys($).find((I)=>I.toLowerCase()===E.toLowerCase()),"findKey"),w=zs(($)=>{let E=$;if(typeof E==="number")E=E.toString();if(E.indexOf(",")>=0)E=E.split(",")[0];if(E.indexOf(":")>=0)E=E.split(":")[0];if(E.indexOf("#")>=0)E=E.split("#")[1];return E},"sanitizeErrorCode"),h=s(r.headers,"x-amzn-errortype");if(h!==void 0)return w(r.headers[h]);if(f.code!==void 0)return w(f.code);if(f.__type!==void 0)return w(f.__type)},"loadRestJsonErrorCode"),ng=wh(),og=CZ(),zZ=zs((r,f)=>AZ(r,f).then((s)=>{if(s.length){const w=new og.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let h;try{h=w.parse(s,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:s});throw F}const $="#text",E=Object.keys(h)[0],I=h[E];if(I[$])I[E]=I[$],delete I[$];return ng.getValueFromTextNode(I)}return{}}),"parseXmlBody"),ag=zs(async(r,f)=>{const s=await zZ(r,f);if(s.Error)s.Error.message=s.Error.message??s.Error.Message;return s},"parseXmlErrorBody"),pg=zs((r,f)=>{var s;if(((s=f==null?void 0:f.Error)==null?void 0:s.Code)!==void 0)return f.Error.Code;if((f==null?void 0:f.Code)!==void 0)return f.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Br=j((y1)=>{Object.defineProperty(y1,"__esModule",{value:!0});var gU=tY();gU.__exportStar(wK(),y1);gU.__exportStar(NK(),y1);gU.__exportStar(SZ(),y1)});var QZ,y3="AWS_ACCESS_KEY_ID",q3="AWS_SECRET_ACCESS_KEY",MZ="AWS_SESSION_TOKEN",BZ="AWS_CREDENTIAL_EXPIRATION",lZ="AWS_CREDENTIAL_SCOPE",HZ="AWS_ACCOUNT_ID",_U=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const f=process.env[y3],s=process.env[q3],w=process.env[MZ],h=process.env[BZ],$=process.env[lZ],E=process.env[HZ];if(f&&s)return{accessKeyId:f,secretAccessKey:s,...w&&{sessionToken:w},...h&&{expiration:new Date(h)},...$&&{credentialScope:$},...E&&{accountId:E}};throw new QZ.CredentialsProviderError("Unable to find environment variable credentials.",{logger:r?.logger})};var VZ=G(()=>{QZ=i(Cr(),1)});var DZ={};Af(DZ,{fromEnv:()=>_U,ENV_SESSION:()=>MZ,ENV_SECRET:()=>q3,ENV_KEY:()=>y3,ENV_EXPIRATION:()=>BZ,ENV_CREDENTIAL_SCOPE:()=>lZ,ENV_ACCOUNT_ID:()=>HZ});var xU=G(()=>{VZ()});import{Buffer as r_}from"buffer";import{request as s_}from"http";function g0(r){return new Promise((f,s)=>{const w=s_({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});w.on("error",(h)=>{s(Object.assign(new m3.ProviderError("Unable to connect to instance metadata service"),h)),w.destroy()}),w.on("timeout",()=>{s(new m3.ProviderError("TimeoutError from instance metadata service")),w.destroy()}),w.on("response",(h)=>{const{statusCode:$=400}=h;if($<200||300<=$)s(Object.assign(new m3.ProviderError("Error response received from instance metadata service"),{statusCode:$})),w.destroy();const E=[];h.on("data",(I)=>{E.push(I)}),h.on("end",()=>{f(r_.concat(E)),w.destroy()})}),w.end()})}var m3;var i3=G(()=>{m3=i(Cr(),1)});var v3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",j3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var f_=1000,w_=0,q1=({maxRetries:r=0,timeout:f=1000})=>({maxRetries:r,timeout:f});var m1=(r,f)=>{let s=r();for(let w=0;w<f;w++)s=s.catch(r);return s};import{parse as h_}from"url";var i1,d3="AWS_CONTAINER_CREDENTIALS_FULL_URI",O3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",eU="AWS_CONTAINER_AUTHORIZATION_TOKEN",$_=(r={})=>{const{timeout:f,maxRetries:s}=q1(r);return()=>m1(async()=>{const w=await T_({logger:r.logger}),h=JSON.parse(await E_(f,w));if(!v3(h))throw new i1.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return j3(h)},s)},E_=async(r,f)=>{if(process.env[eU])f.headers={...f.headers,Authorization:process.env[eU]};return(await g0({...f,timeout:r})).toString()},I_="169.254.170.2",F_,U_,T_=async({logger:r})=>{if(process.env[O3])return{hostname:I_,path:process.env[O3]};if(process.env[d3]){const f=h_(process.env[d3]);if(!f.hostname||!(f.hostname in F_))throw new i1.CredentialsProviderError(`${f.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!f.protocol||!(f.protocol in U_))throw new i1.CredentialsProviderError(`${f.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...f,port:f.port?parseInt(f.port,10):void 0}}throw new i1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${O3} or ${d3} environment variable is set`,{tryNextLink:!1,logger:r})};var kZ=G(()=>{i1=i(Cr(),1);i3();F_={localhost:!0,"127.0.0.1":!0},U_={"http:":!0,"https:":!0}});var NZ,c3;var yZ=G(()=>{NZ=i(Cr(),1);c3=class c3 extends NZ.CredentialsProviderError{constructor(r,f=!0){super(r,f);this.tryNextLink=f,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,c3.prototype)}}});var Bw;var nU=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Bw||(Bw={}))});var qZ;var mZ=G(()=>{qZ={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var _0;var oU=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(_0||(_0={}))});var G_="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",C_="ec2_metadata_service_endpoint_mode",iZ;var vZ=G(()=>{oU();iZ={environmentVariableSelector:(r)=>r[G_],configFileSelector:(r)=>r[C_],default:_0.IPv4}});var jZ,b3=async()=>jZ.parseUrl(await L_()||await A_()),L_=async()=>u(qZ)(),A_=async()=>{const r=await u(iZ)();switch(r){case _0.IPv4:return Bw.IPv4;case _0.IPv6:return Bw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(_0)}`)}};var aU=G(()=>{sf();jZ=i(I0(),1);nU();mZ();oU();vZ()});var pU=(r,f)=>{const s=300+Math.floor(Math.random()*300),w=new Date(Date.now()+s*1000);f.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(w)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const h=r.originalExpiration??r.expiration;return{...r,...h?{originalExpiration:h}:{},expiration:w}};var dZ=(r,f={})=>{const s=f?.logger||console;let w;return async()=>{let h;try{if(h=await r(),h.expiration&&h.expiration.getTime()<Date.now())h=pU(h,s)}catch($){if(w)s.warn("Credential renew failed: ",$),h=pU(w,s);else throw $}return w=h,h}};var OZ=()=>{};var tU,gZ="/latest/meta-data/iam/security-credentials/",W_="/latest/api/token",uU="AWS_EC2_METADATA_V1_DISABLED",cZ="ec2_metadata_v1_disabled",bZ="x-aws-ec2-metadata-token",z_=(r={})=>dZ(R_(r),{logger:r.logger}),R_=(r={})=>{let f=!1;const{logger:s,profile:w}=r,{timeout:h,maxRetries:$}=q1(r),E=async(I,F)=>{if(f||F.headers?.[bZ]==null){let L=!1,R=!1;const S=await u({environmentVariableSelector:(K)=>{const k=K[uU];if(R=!!k&&k!=="false",k===void 0)throw new tU.CredentialsProviderError(`${uU} not set in env, checking config file next.`,{logger:r.logger});return R},configFileSelector:(K)=>{const k=K[cZ];return L=!!k&&k!=="false",L},default:!1},{profile:w})();if(r.ec2MetadataV1Disabled||S){const K=[];if(r.ec2MetadataV1Disabled)K.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)K.push(`config file profile (${cZ})`);if(R)K.push(`process environment variable (${uU})`);throw new c3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${K.join(", ")}].`)}}const C=(await m1(async()=>{let L;try{L=await P_(F)}catch(R){if(R.statusCode===401)f=!1;throw R}return L},I)).trim();return m1(async()=>{let L;try{L=await X_(C,F,r)}catch(R){if(R.statusCode===401)f=!1;throw R}return L},I)};return async()=>{const I=await b3();if(f)return s?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E($,{...I,timeout:h});else{let F;try{F=(await S_({...I,timeout:h})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))f=!0;return s?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E($,{...I,timeout:h})}return E($,{...I,headers:{[bZ]:F},timeout:h})}}},S_=async(r)=>g0({...r,path:W_,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),P_=async(r)=>(await g0({...r,path:gZ})).toString(),X_=async(r,f,s)=>{const w=JSON.parse((await g0({...f,path:gZ+r})).toString());if(!v3(w))throw new tU.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:s.logger});return j3(w)};var _Z=G(()=>{sf();tU=i(Cr(),1);yZ();i3();aU();OZ()});var xZ=()=>{};var v1={};Af(v1,{providerConfigFromInit:()=>q1,httpRequest:()=>g0,getInstanceMetadataEndpoint:()=>b3,fromInstanceMetadata:()=>z_,fromContainerMetadata:()=>$_,Endpoint:()=>Bw,ENV_CMDS_RELATIVE_URI:()=>O3,ENV_CMDS_FULL_URI:()=>d3,ENV_CMDS_AUTH_TOKEN:()=>eU,DEFAULT_TIMEOUT:()=>f_,DEFAULT_MAX_RETRIES:()=>w_});var j1=G(()=>{kZ();_Z();xZ();i3();aU();nU()});var eZ,Y_="169.254.170.2",K_="169.254.170.23",Z_="[fd00:ec2::23]",nZ=(r,f)=>{if(r.protocol==="https:")return;if(r.hostname===Y_||r.hostname===K_||r.hostname===Z_)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;const s=r.hostname.split("."),w=(h)=>{const $=parseInt(h,10);return 0<=$&&$<=255};if(s[0]==="127"&&w(s[1])&&w(s[2])&&w(s[3])&&s.length===4)return}throw new eZ.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
22
22
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
23
23
|
- ECS container host 169.254.170.2
|
|
24
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:f})};var
|
|
25
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});const I=new URL(f);OZ(I,r.logger);const F=new tr({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return xZ(async()=>{const U=bZ(I);if(h)U.headers.Authorization=h;else if($)U.headers.Authorization=(await I_.readFile($)).toString();try{const C=await F.handle(U);return gZ(C.response)}catch(C){throw new _(String(C),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var nZ=G(()=>{_0();Lr();cZ();_Z()});var o5={};Sf(o5,{fromHttp:()=>eZ});var a5=G(()=>{nZ()});var L_="AWS_EC2_METADATA_DISABLED",oZ=async(r)=>{const{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:s,fromContainerMetadata:w,fromInstanceMetadata:h}=await Promise.resolve().then(() => (c1(),O1));if(process.env[s]||process.env[f]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:$}=await Promise.resolve().then(() => (a5(),o5));return A0($(r),w(r))}if(process.env[L_])return async()=>{throw new _("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),h(r)};var aZ=G(()=>{Lr()});var p5=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var pZ=300000,Yh="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function A_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function u5(r){return{schemeId:"smithy.api#noAuth"}}var uZ,tZ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},r7=(r)=>{const f=[];switch(r.operation){case"CreateToken":{f.push(u5(r));break}case"RegisterClient":{f.push(u5(r));break}case"StartDeviceAuthorization":{f.push(u5(r));break}default:f.push(A_(r))}return f},s7=(r)=>{return{...uZ.resolveAwsSdkSigV4Config(r)}};var t5=G(()=>{uZ=u(Br(),1);rf()});var f7=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},p0;var Kh=G(()=>{p0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var h7;var w7=G(()=>{h7={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.637.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var rT;var sT=G(()=>{rT={isCrtAvailable:!1}});var $7=()=>{if(rT.isCrtAvailable)return["md/crt-avail"];return null};var E7=G(()=>{sT()});import{platform as W_,release as z_}from"os";import{env as I7,versions as S_}from"process";var P_="AWS_SDK_UA_APP_ID",X_="sdk-ua-app-id",nf=({serviceId:r,clientVersion:f})=>{const s=[["aws-sdk-js",f],["ua","2.0"],[`os/${W_()}`,z_()],["lang/js"],["md/nodejs",`${S_.node}`]],w=$7();if(w)s.push(w);if(r)s.push([`api/${r}`,f]);if(I7.AWS_EXECUTION_ENV)s.push([`exec-env/${I7.AWS_EXECUTION_ENV}`]);const h=t({environmentVariableSelector:(E)=>E[P_],configFileSelector:(E)=>E[X_],default:void 0})();let $=void 0;return async()=>{if(!$){const E=await h;$=E?[...s,[`app/${E}`]]:[...s]}return $}};var Zh=G(()=>{$f();E7();sT()});import{Buffer as Y_}from"buffer";import{createHash as K_,createHmac as Z_}from"crypto";function F7(r,f){if(Y_.isBuffer(r))return r;if(typeof r==="string")return Wh(r,f);if(ArrayBuffer.isView(r))return R0(r.buffer,r.byteOffset,r.byteLength);return R0(r)}class If{constructor(r,f){this.algorithmIdentifier=r,this.secret=f,this.reset()}update(r,f){this.hash.update(TX(F7(r,f)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Z_(this.algorithmIdentifier,F7(this.secret)):K_(this.algorithmIdentifier)}}var lh=G(()=>{Qw();jf()});import{fstatSync as l_,lstatSync as J_}from"fs";var of=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return J_(r.path).size;else if(typeof r.fd==="number")return l_(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var U7=()=>{};var Jh=G(()=>{U7()});var T7,G7,C7,S7,P7,qs,L7,X7,A7,R7,W7,z7,Q_,Y7;var K7=G(()=>{T7={["required"]:!1,type:"String"},G7={["required"]:!0,default:!1,type:"Boolean"},C7={["ref"]:"Endpoint"},S7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},P7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},qs={},L7={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},X7={["ref"]:"PartitionResult"},A7={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[X7,"supportsDualStack"]}]},R7=[S7],W7=[P7],z7=[{["ref"]:"Region"}],Q_={version:"1.0",parameters:{Region:T7,UseDualStack:G7,UseFIPS:G7,Endpoint:T7},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[C7]}],rules:[{conditions:R7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:W7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:C7,properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:z7}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:z7,assign:"PartitionResult"}],rules:[{conditions:[S7,P7],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,L7]},A7],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:R7,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[L7,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[X7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:qs,headers:qs},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:W7,rules:[{conditions:[A7],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},Y7=Q_});var Z7=(r,f={})=>{return ps(Y7,{endpointParams:r,logger:f.logger})};var l7=G(()=>{Ww();us();K7();ur.aws=ts});var J7,Q7,M7=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??Z7,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??r7,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new J7.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q7.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var B7=G(()=>{J7=u(Br(),1),Q7=u(Or(),1);Y();b0();W0();jf();t5();l7()});var H7="AWS_EXECUTION_ENV",fT="AWS_REGION",wT="AWS_DEFAULT_REGION",V7="AWS_EC2_METADATA_DISABLED",k7,D7="/latest/meta-data/placement/region";var i7=G(()=>{k7=["in-region","cross-region","mobile","standard","legacy"]});var y7;var m7=G(()=>{y7={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var af=({region:r=t(Qs),defaultsMode:f=t(y7)}={})=>Kw(async()=>{const s=typeof f==="function"?await f():f;switch(s?.toLowerCase()){case"auto":return M_(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(s?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${k7.join(", ")}, got ${s}`)}}),M_=async(r)=>{if(r){const f=typeof r==="function"?await r():r,s=await B_();if(!s)return"standard";if(f===s)return"in-region";else return"cross-region"}return"standard"},B_=async()=>{if(process.env[H7]&&(process.env[fT]||process.env[wT]))return process.env[fT]??process.env[wT];if(!process.env[V7])try{const{getInstanceMetadataEndpoint:r,httpRequest:f}=await Promise.resolve().then(() => (c1(),O1)),s=await r();return(await f({...s,path:D7})).toString()}catch(r){}};var N7=G(()=>{Ms();$f();Lr();i7();m7()});var Qh=G(()=>{N7()});var q7,v7=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=M7(r);return q7.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:h7.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var j7=G(()=>{w7();q7=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();B7();Y();Qh();Y()});var pf=(r)=>{let f=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");const s=r.region;if(typeof s==="string")return s;return s()};return{setRegion(s){f=s},region(){return f}}},uf=(r)=>{return{region:r.region()}};var d7=()=>{};var O7=()=>{};var c7=G(()=>{O7()});var b7=G(()=>{d7();c7()});var Mh=G(()=>{b7()});var g7=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},_7=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var b3=(r)=>r,x7=(r,f)=>{const s={...b3(pf(r)),...b3(_f(r)),...b3(Pf(r)),...b3(g7(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),..._7(s)}};var e7=G(()=>{Mh();ir();Y()});var Bh,g3;var hT=G(()=>{aw();pw();uw();rh();Ms();Bh=u(Or(),1);Th();M();Ef();Y();t5();Kh();j7();e7();g3=class g3 extends zs{constructor(...[r]){const f=v7(r||{}),s=f7(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=s7(I),U=x7(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:tZ,identityProviderConfigProvider:async(C)=>new Bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Hr;var _3=G(()=>{Y();Hr=class Hr extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,Hr.prototype)}}});var g1,_1,x1,e1,n1,o1,a1,p1,u1,t1,r$,s$,f$,w$,$T=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),ET=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),IT=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),FT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),UT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),TT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}});var iw=G(()=>{Y();_3();g1=class g1 extends Hr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,g1.prototype),this.error=r.error,this.error_description=r.error_description}};_1=class _1 extends Hr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,_1.prototype),this.error=r.error,this.error_description=r.error_description}};x1=class x1 extends Hr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,x1.prototype),this.error=r.error,this.error_description=r.error_description}};e1=class e1 extends Hr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,e1.prototype),this.error=r.error,this.error_description=r.error_description}};n1=class n1 extends Hr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,n1.prototype),this.error=r.error,this.error_description=r.error_description}};o1=class o1 extends Hr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends Hr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends Hr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends Hr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description}};t1=class t1 extends Hr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description}};r$=class r$ extends Hr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,r$.prototype),this.error=r.error,this.error_description=r.error_description}};s$=class s$ extends Hr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,s$.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};f$=class f$ extends Hr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,f$.prototype),this.error=r.error,this.error_description=r.error_description}};w$=class w$ extends Hr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,w$.prototype),this.error=r.error,this.error_description=r.error_description}}});var P0,h$,n7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:($)=>m($)})),s.m("POST").h(w).b(h),s.build()},o7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");const h=P({[__]:[,"t"]});let $;return $=JSON.stringify(p(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(E)=>m(E),subjectToken:[],subjectTokenType:[]})),s.m("POST").h(w).q(h).b($),s.build()},a7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/client/register");let h;return h=JSON.stringify(p(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:($)=>m($),issuerUrl:[],redirectUris:($)=>m($),scopes:($)=>m($)})),s.m("POST").h(w).b(h),s.build()},p7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/device_authorization");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],startUrl:[]})),s.m("POST").h(w).b(h),s.build()},u7=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Mw,idToken:T,refreshToken:T,tokenType:T});return Object.assign(s,h),s},t7=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Mw,idToken:T,issuedTokenType:T,refreshToken:T,scope:m,tokenType:T});return Object.assign(s,h),s},rl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:zh,clientSecret:T,clientSecretExpiresAt:zh,tokenEndpoint:T});return Object.assign(s,h),s},sl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{deviceCode:T,expiresIn:Mw,interval:Mw,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(s,h),s},x3=async(r,f)=>{const s={...r,body:await P0.parseJsonErrorBody(r.body,f)},w=P0.loadRestJsonErrorCode(r,s.body);switch(w){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await k_(s,f);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await D_(s,f);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await i_(s,f);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await y_(s,f);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await m_(s,f);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await q_(s,f);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await j_(s,f);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await O_(s,f);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await c_(s,f);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await b_(s,f);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await g_(s,f);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await d_(s,f);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await N_(s,f);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await v_(s,f);default:const h=s.body;return V_({output:r,parsedBody:h,errorCode:w})}},V_,k_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new g1({$metadata:qr(r),...s});return k($,r.body)},D_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new _1({$metadata:qr(r),...s});return k($,r.body)},i_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new x1({$metadata:qr(r),...s});return k($,r.body)},y_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new e1({$metadata:qr(r),...s});return k($,r.body)},m_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new n1({$metadata:qr(r),...s});return k($,r.body)},N_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new f$({$metadata:qr(r),...s});return k($,r.body)},q_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new o1({$metadata:qr(r),...s});return k($,r.body)},v_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new w$({$metadata:qr(r),...s});return k($,r.body)},j_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new a1({$metadata:qr(r),...s});return k($,r.body)},d_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{endpoint:T,error:T,error_description:T,region:T});Object.assign(s,h);const $=new s$({$metadata:qr(r),...s});return k($,r.body)},O_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new p1({$metadata:qr(r),...s});return k($,r.body)},c_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new u1({$metadata:qr(r),...s});return k($,r.body)},b_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new t1({$metadata:qr(r),...s});return k($,r.body)},g_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new r$({$metadata:qr(r),...s});return k($,r.body)},qr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),__="aws_iam";var $$=G(()=>{P0=u(Br(),1),h$=u(Or(),1);Y();iw();_3();V_=cf(Hr)});var e3;var GT=G(()=>{M();H();Y();Kh();iw();$$();e3=class e3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($T,ET).ser(n7).de(u7).build(){}});var n3;var CT=G(()=>{M();H();Y();Kh();iw();$$();n3=class n3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(IT,FT).ser(o7).de(t7).build(){}});var o3;var LT=G(()=>{M();H();Y();Kh();iw();$$();o3=class o3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,UT).ser(a7).de(rl).build(){}});var a3;var AT=G(()=>{M();H();Y();Kh();iw();$$();a3=class a3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(TT,void 0).ser(p7).de(sl).build(){}});var x_,RT;var fl=G(()=>{Y();GT();CT();LT();AT();hT();x_={CreateTokenCommand:e3,CreateTokenWithIAMCommand:n3,RegisterClientCommand:o3,StartDeviceAuthorizationCommand:a3};RT=class RT extends g3{};df(x_,RT)});var wl=G(()=>{GT();CT();LT();AT()});var hl=G(()=>{iw()});var WT={};Sf(WT,{__Client:()=>zs,UnsupportedGrantTypeException:()=>r$,UnauthorizedClientException:()=>t1,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>TT,StartDeviceAuthorizationCommand:()=>a3,SlowDownException:()=>u1,SSOOIDCServiceException:()=>Hr,SSOOIDCClient:()=>g3,SSOOIDC:()=>RT,RegisterClientResponseFilterSensitiveLog:()=>UT,RegisterClientCommand:()=>o3,InvalidScopeException:()=>p1,InvalidRequestRegionException:()=>s$,InvalidRequestException:()=>a1,InvalidRedirectUriException:()=>w$,InvalidGrantException:()=>o1,InvalidClientMetadataException:()=>f$,InvalidClientException:()=>n1,InternalServerException:()=>e1,ExpiredTokenException:()=>x1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>FT,CreateTokenWithIAMRequestFilterSensitiveLog:()=>IT,CreateTokenWithIAMCommand:()=>n3,CreateTokenResponseFilterSensitiveLog:()=>ET,CreateTokenRequestFilterSensitiveLog:()=>$T,CreateTokenCommand:()=>e3,AuthorizationPendingException:()=>_1,AccessDeniedException:()=>g1,$Command:()=>A});var zT=G(()=>{hT();fl();wl();hl();_3()});var ST,$l=async(r)=>{const{SSOOIDCClient:f}=await Promise.resolve().then(() => (zT(),WT));if(ST[r])return ST[r];const s=new f({region:r});return ST[r]=s,s};var El=G(()=>{ST={}});var Il=async(r,f)=>{const{CreateTokenCommand:s}=await Promise.resolve().then(() => (zT(),WT));return(await $l(f)).send(new s({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var Fl=G(()=>{El()});var PT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new Fs(`Token is expired. ${Yh}`,!1)};var Ul=G(()=>{Lr()});var u0=(r,f,s=!1)=>{if(typeof f==="undefined")throw new Fs(`Value not present for '${r}' in SSO Token${s?". Cannot refresh":""}. ${Yh}`,!1)};var Tl=G(()=>{Lr()});import{promises as e_}from"fs";var n_,Gl=(r,f)=>{const s=w3(r),w=JSON.stringify(f,null,2);return n_(s,w)};var Cl=G(()=>{hf();({writeFile:n_}=e_)});var Ll,Al=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");const f=await c0(r),s=ks(r),w=f[s];if(!w)throw new Fs(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new Fs(`Profile '${s}' is missing required property 'sso_session'.`);const h=w.sso_session,E=(await I3(r))[h];if(!E)throw new Fs(`Sso session '${h}' could not be found in shared credentials file.`,!1);for(let S of["sso_start_url","sso_region"])if(!E[S])throw new Fs(`Sso session '${h}' is missing required property '${S}'.`,!1);const{sso_start_url:I,sso_region:F}=E;let U;try{U=await h3(h)}catch(S){throw new Fs(`The SSO session token associated with profile=${s} was not found or is invalid. ${Yh}`,!1)}u0("accessToken",U.accessToken),u0("expiresAt",U.expiresAt);const{accessToken:C,expiresAt:L}=U,z={token:C,expiration:new Date(L)};if(z.expiration.getTime()-Date.now()>pZ)return z;if(Date.now()-Ll.getTime()<30000)return PT(z),z;u0("clientId",U.clientId,!0),u0("clientSecret",U.clientSecret,!0),u0("refreshToken",U.refreshToken,!0);try{Ll.setTime(Date.now());const S=await Il(U,F);u0("accessToken",S.accessToken),u0("expiresIn",S.expiresIn);const Z=new Date(Date.now()+S.expiresIn*1000);try{await Gl(h,{...U,accessToken:S.accessToken,expiresAt:Z.toISOString(),refreshToken:S.refreshToken})}catch(D){}return{token:S.accessToken,expiration:Z}}catch(S){return PT(z),z}};var Rl=G(()=>{Lr();hf();Fl();Ul();Tl();Cl();Ll=new Date(0)});var Wl=G(()=>{Lr()});var zl=G(()=>{Lr()});var Sl=G(()=>{Rl();Wl();zl()});function o_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function p3(r){return{schemeId:"smithy.api#noAuth"}}var Pl,Xl=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Yl=(r)=>{const f=[];switch(r.operation){case"GetRoleCredentials":{f.push(p3(r));break}case"ListAccountRoles":{f.push(p3(r));break}case"ListAccounts":{f.push(p3(r));break}case"Logout":{f.push(p3(r));break}default:f.push(o_(r))}return f},Kl=(r)=>{return{...Pl.resolveAwsSdkSigV4Config(r)}};var XT=G(()=>{Pl=u(Br(),1);rf()});var Zl=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},t0;var Hh=G(()=>{t0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Jl;var ll=G(()=>{Jl={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var Ql,Ml,Bl,yl,ml,vs,Hl,Nl,Vl,kl,Dl,il,p_,ql;var vl=G(()=>{Ql={["required"]:!1,type:"String"},Ml={["required"]:!0,default:!1,type:"Boolean"},Bl={["ref"]:"Endpoint"},yl={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ml={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},vs={},Hl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Nl={["ref"]:"PartitionResult"},Vl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Nl,"supportsDualStack"]}]},kl=[yl],Dl=[ml],il=[{["ref"]:"Region"}],p_={version:"1.0",parameters:{Region:Ql,UseDualStack:Ml,UseFIPS:Ml,Endpoint:Ql},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Bl]}],rules:[{conditions:kl,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Dl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Bl,properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:il}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:il,assign:"PartitionResult"}],rules:[{conditions:[yl,ml],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Hl]},Vl],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:kl,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Hl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nl,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:vs,headers:vs},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Dl,rules:[{conditions:[Vl],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},ql=p_});var jl=(r,f={})=>{return ps(ql,{endpointParams:r,logger:f.logger})};var dl=G(()=>{Ww();us();vl();ur.aws=ts});var Ol,cl,bl=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??jl,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??Yl,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new Ol.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new cl.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var gl=G(()=>{Ol=u(Br(),1),cl=u(Or(),1);Y();b0();W0();jf();XT();dl()});var _l,xl=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=bl(r);return _l.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:Jl.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var el=G(()=>{ll();_l=u(Br(),1);Zh();Ms();lh();Ef();$f();_0();Jh();Rs();gl();Y();Qh();Y()});var nl=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},ol=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var u3=(r)=>r,al=(r,f)=>{const s={...u3(pf(r)),...u3(_f(r)),...u3(Pf(r)),...u3(nl(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...ol(s)}};var pl=G(()=>{Mh();ir();Y()});var Vh,X0;var E$=G(()=>{aw();pw();uw();rh();Ms();Vh=u(Or(),1);Th();M();Ef();Y();XT();Hh();el();pl();X0=class X0 extends zs{constructor(...[r]){const f=xl(r||{}),s=Zl(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=Kl(I),U=al(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Vh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Xl,identityProviderConfigProvider:async(C)=>new Vh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Vh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Y0;var YT=G(()=>{Y();Y0=class Y0 extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,Y0.prototype)}}});var t3,rI,sI,fI,ul=(r)=>({...r,...r.accessToken&&{accessToken:o}}),u_=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:o},...r.sessionToken&&{sessionToken:o}}),tl=(r)=>({...r,...r.roleCredentials&&{roleCredentials:u_(r.roleCredentials)}}),rJ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),sJ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),fJ=(r)=>({...r,...r.accessToken&&{accessToken:o}});var yw=G(()=>{Y();YT();t3=class t3 extends Y0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,t3.prototype)}};rI=class rI extends Y0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,rI.prototype)}};sI=class sI extends Y0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype)}};fI=class fI extends Y0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,fI.prototype)}}});var rw,I$,wJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/federation/credentials");const h=P({[$x]:[,y(r[hx],"roleName")],[CJ]:[,y(r[GJ],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},hJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/assignment/roles");const h=P({[WJ]:[,r[RJ]],[AJ]:[()=>r.maxResults!==void 0,()=>r[LJ].toString()],[CJ]:[,y(r[GJ],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$J=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/assignment/accounts");const h=P({[WJ]:[,r[RJ]],[AJ]:[()=>r.maxResults!==void 0,()=>r[LJ].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},EJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/logout");let h;return s.m("POST").h(w).b(h),s.build()},IJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{roleCredentials:m});return Object.assign(s,h),s},FJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{nextToken:T,roleList:m});return Object.assign(s,h),s},UJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{accountList:m,nextToken:T});return Object.assign(s,h),s},TJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)});return await xr(r.body,f),s},wI=async(r,f)=>{const s={...r,body:await rw.parseJsonErrorBody(r.body,f)},w=rw.loadRestJsonErrorCode(r,s.body);switch(w){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await rx(s,f);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await sx(s,f);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await fx(s,f);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await wx(s,f);default:const h=s.body;return t_({output:r,parsedBody:h,errorCode:w})}},t_,rx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new t3({$metadata:sw(r),...s});return k($,r.body)},sx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new rI({$metadata:sw(r),...s});return k($,r.body)},fx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new sI({$metadata:sw(r),...s});return k($,r.body)},wx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new fI({$metadata:sw(r),...s});return k($,r.body)},sw=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),hI=(r)=>r!==void 0&&r!==null&&r!==""&&(!Object.getOwnPropertyNames(r).includes("length")||r.length!=0)&&(!Object.getOwnPropertyNames(r).includes("size")||r.size!=0),GJ="accountId",$I="accessToken",CJ="account_id",LJ="maxResults",AJ="max_result",RJ="nextToken",WJ="next_token",hx="roleName",$x="role_name",EI="x-amz-sso_bearer_token";var F$=G(()=>{rw=u(Br(),1),I$=u(Or(),1);Y();yw();YT();t_=cf(Y0)});var U$;var KT=G(()=>{M();H();Y();Hh();yw();F$();U$=class U$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(ul,tl).ser(wJ).de(IJ).build(){}});var T$;var II=G(()=>{M();H();Y();Hh();yw();F$();T$=class T$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(rJ,void 0).ser(hJ).de(FJ).build(){}});var G$;var FI=G(()=>{M();H();Y();Hh();yw();F$();G$=class G$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(sJ,void 0).ser($J).de(UJ).build(){}});var ZT;var lT=G(()=>{M();H();Y();Hh();yw();F$();ZT=class ZT extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(fJ,void 0).ser(EJ).de(TJ).build(){}});var Ex,zJ;var SJ=G(()=>{Y();KT();II();FI();lT();E$();Ex={GetRoleCredentialsCommand:U$,ListAccountRolesCommand:T$,ListAccountsCommand:G$,LogoutCommand:ZT};zJ=class zJ extends X0{};df(Ex,zJ)});var PJ=G(()=>{KT();II();FI();lT()});var XJ=()=>{};var YJ,$4r;var KJ=G(()=>{YJ=u(Or(),1);II();E$();$4r=YJ.createPaginator(X0,T$,"nextToken","nextToken","maxResults")});var ZJ,U4r;var lJ=G(()=>{ZJ=u(Or(),1);FI();E$();U4r=ZJ.createPaginator(X0,G$,"nextToken","nextToken","maxResults")});var JJ=G(()=>{XJ();KJ();lJ()});var QJ=G(()=>{yw()});var MJ=G(()=>{E$();SJ();PJ();JJ();QJ()});var BJ={};Sf(BJ,{SSOClient:()=>X0,GetRoleCredentialsCommand:()=>U$});var HJ=G(()=>{MJ()});var C$=!1,JT=async({ssoStartUrl:r,ssoSession:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:$,clientConfig:E,profile:I,logger:F})=>{let U;const C="To refresh this SSO session run aws sso login with the corresponding profile.";if(f)try{const kr=await Al({profile:I})();U={accessToken:kr.token,expiresAt:new Date(kr.expiration).toISOString()}}catch(kr){throw new _(kr.message,{tryNextLink:C$,logger:F})}else try{U=await h3(r)}catch(kr){throw new _("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:C$,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new _("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:C$,logger:F});const{accessToken:L}=U,{SSOClient:z,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (HJ(),BJ)),Z=$||new z(Object.assign({},E??{},{region:E?.region??w}));let D;try{D=await Z.send(new S({accountId:s,roleName:h,accessToken:L}))}catch(kr){throw new _(kr,{tryNextLink:C$,logger:F})}const{roleCredentials:{accessKeyId:B,secretAccessKey:Q,sessionToken:i,expiration:x,credentialScope:e,accountId:hr}={}}=D;if(!B||!Q||!i||!x)throw new _("SSO returns an invalid temporary credential.",{tryNextLink:C$,logger:F});return{accessKeyId:B,secretAccessKey:Q,sessionToken:i,expiration:new Date(x),...e&&{credentialScope:e},...hr&&{accountId:hr}}};var VJ=G(()=>{Sl();Lr();hf()});var QT=(r,f)=>{const{sso_start_url:s,sso_account_id:w,sso_region:h,sso_role_name:$}=r;if(!s||!w||!h||!$)throw new _(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:f});return r};var MT=G(()=>{Lr()});var Ix=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r,{ssoClient:E}=r,I=ks(r);if(!f&&!s&&!w&&!h&&!$){const U=(await c0(r))[I];if(!U)throw new _(`Profile ${I} was not found.`,{logger:r.logger});if(!p5(U))throw new _(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){const B=(await I3(r))[U.sso_session],Q=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(w&&w!==B.sso_region)throw new _("Conflicting SSO region"+Q,{tryNextLink:!1,logger:r.logger});if(f&&f!==B.sso_start_url)throw new _("Conflicting SSO start_url"+Q,{tryNextLink:!1,logger:r.logger});U.sso_region=B.sso_region,U.sso_start_url=B.sso_start_url}const{sso_start_url:C,sso_account_id:L,sso_region:z,sso_role_name:S,sso_session:Z}=QT(U,r.logger);return JT({ssoStartUrl:C,ssoSession:Z,ssoAccountId:L,ssoRegion:z,ssoRoleName:S,ssoClient:E,clientConfig:r.clientConfig,profile:I})}else if(!f||!s||!w||!h)throw new _('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return JT({ssoStartUrl:f,ssoSession:$,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:r.clientConfig,profile:I})};var kJ=G(()=>{Lr();hf();VJ();MT()});var DJ=()=>{};var BT={};Sf(BT,{validateSsoProfile:()=>QT,isSsoProfile:()=>p5,fromSSO:()=>Ix});var HT=G(()=>{kJ();DJ();MT()});var iJ=(r,f,s)=>{const w={EcsContainer:async(h)=>{const{fromHttp:$}=await Promise.resolve().then(() => (a5(),o5)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (c1(),O1));return s?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),A0($(h??{}),E(h))},Ec2InstanceMetadata:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:$}=await Promise.resolve().then(() => (c1(),O1));return $(h)},Environment:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:$}=await Promise.resolve().then(() => (c5(),MZ));return $(h)}};if(r in w)return w[r];else throw new _(`Unsupported credential source in profile ${f}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:s})};var yJ=G(()=>{Lr()});function Fx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function mJ(r){return{schemeId:"smithy.api#noAuth"}}var NJ,qJ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},vJ=(r)=>{const f=[];switch(r.operation){case"AssumeRoleWithSAML":{f.push(mJ(r));break}case"AssumeRoleWithWebIdentity":{f.push(mJ(r));break}default:f.push(Fx(r))}return f},Ux=(r)=>({...r,stsClientCtor:K0}),jJ=(r)=>{const f=Ux(r);return{...NJ.resolveAwsSdkSigV4Config(f)}};var VT=G(()=>{NJ=u(Br(),1);rf();L$()});var dJ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},nr;var tf=G(()=>{nr={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var cJ;var OJ=G(()=>{cJ={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var bJ,kT,uJ,gJ,cr,_J,tJ,r9,or,Xs,xJ,s9,f9,eJ,w9,nJ,oJ,aJ,pJ,Gx,h9;var $9=G(()=>{bJ={["required"]:!1,["type"]:"String"},kT={["required"]:!0,default:!1,["type"]:"Boolean"},uJ={["ref"]:"Endpoint"},gJ={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},cr={["ref"]:"Region"},_J={["fn"]:"aws.partition",["argv"]:[cr],assign:"PartitionResult"},tJ={["ref"]:"UseFIPS"},r9={["ref"]:"UseDualStack"},or={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},Xs={},xJ={conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"aws-global"]}],["endpoint"]:or,["type"]:"endpoint"},s9={["fn"]:"booleanEquals",["argv"]:[tJ,!0]},f9={["fn"]:"booleanEquals",["argv"]:[r9,!0]},eJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},w9={["ref"]:"PartitionResult"},nJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[w9,"supportsDualStack"]}]},oJ=[{["fn"]:"isSet",["argv"]:[uJ]}],aJ=[s9],pJ=[f9],Gx={version:"1.0",parameters:{Region:bJ,UseDualStack:kT,UseFIPS:kT,Endpoint:bJ,UseGlobalEndpoint:kT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:oJ},gJ,_J,{["fn"]:"booleanEquals",["argv"]:[tJ,!1]},{["fn"]:"booleanEquals",["argv"]:[r9,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-northeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-south-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-2"]}],endpoint:or,["type"]:"endpoint"},xJ,{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ca-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-north-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-3"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"sa-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-2"]}],endpoint:or,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:oJ,rules:[{conditions:aJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:pJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:uJ,properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[gJ],rules:[{conditions:[_J],rules:[{conditions:[s9,f9],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,eJ]},nJ],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:aJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[eJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[w9,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Xs,headers:Xs},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:pJ,rules:[{conditions:[nJ],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},xJ,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},h9=Gx});var E9=(r,f={})=>{return ps(h9,{endpointParams:r,logger:f.logger})};var I9=G(()=>{Ww();us();$9();ur.aws=ts});var F9,U9,T9=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??E9,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??vJ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new F9.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U9.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var G9=G(()=>{F9=u(Br(),1),U9=u(Or(),1);Y();b0();W0();jf();VT();I9()});var UI,C9,L9=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=T9(r);return UI.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:cJ.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4")||(async($)=>await S0($?.__config||{})()),signer:new UI.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new C9.NoAuthSigner}],maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var A9=G(()=>{OJ();UI=u(Br(),1);b1();Zh();Ms();C9=u(Or(),1);lh();Ef();$f();_0();Jh();Rs();G9();Y();Qh();Y()});var R9=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},W9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var TI=(r)=>r,z9=(r,f)=>{const s={...TI(pf(r)),...TI(_f(r)),...TI(Pf(r)),...TI(R9(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...W9(s)}};var S9=G(()=>{Mh();ir();Y()});var kh,K0;var L$=G(()=>{aw();pw();uw();rh();Ms();kh=u(Or(),1);Th();M();Ef();Y();VT();tf();A9();S9();K0=class K0 extends zs{constructor(...[r]){const f=L9(r||{}),s=dJ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=jJ(I),U=z9(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(kh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:qJ,identityProviderConfigProvider:async(C)=>new kh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(kh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var ss;var GI=G(()=>{Y();ss=class ss extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,ss.prototype)}}});var A$,R$,W$,z$,S$,P$,X$,Y$,Dh=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:o}}),DT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),iT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),yT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),mT=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),NT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),qT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),vT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}});var fw=G(()=>{Y();GI();A$=class A$ extends ss{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,A$.prototype)}};R$=class R$ extends ss{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,R$.prototype)}};W$=class W$ extends ss{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,W$.prototype)}};z$=class z$ extends ss{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,z$.prototype)}};S$=class S$ extends ss{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,S$.prototype)}};P$=class P$ extends ss{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,P$.prototype)}};X$=class X$ extends ss{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,X$.prototype)}};Y$=class Y$ extends ss{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Y$.prototype)}}});var Ff,P9=async(r,f)=>{const s=$w;let w;return w=Uw({...Xx(r,f),[Iw]:px,[Fw]:Ew}),hw(f,s,"/",void 0,w)},X9=async(r,f)=>{const s=$w;let w;return w=Uw({...Yx(r,f),[Iw]:ux,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Y9=async(r,f)=>{const s=$w;let w;return w=Uw({...Kx(r,f),[Iw]:tx,[Fw]:Ew}),hw(f,s,"/",void 0,w)},K9=async(r,f)=>{const s=$w;let w;return w=Uw({...Zx(r,f),[Iw]:re,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Z9=async(r,f)=>{const s=$w;let w;return w=Uw({...lx(r,f),[Iw]:se,[Fw]:Ew}),hw(f,s,"/",void 0,w)},l9=async(r,f)=>{const s=$w;let w;return w=Uw({...Jx(r,f),[Iw]:fe,[Fw]:Ew}),hw(f,s,"/",void 0,w)},J9=async(r,f)=>{const s=$w;let w;return w=Uw({...Qx(r,f),[Iw]:we,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Q9=async(r,f)=>{const s=$w;let w;return w=Uw({...Mx(r,f),[Iw]:he,[Fw]:Ew}),hw(f,s,"/",void 0,w)},M9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=ix(s.AssumeRoleResult,f),{$metadata:ar(r),...w}},B9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=yx(s.AssumeRoleWithSAMLResult,f),{$metadata:ar(r),...w}},H9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=mx(s.AssumeRoleWithWebIdentityResult,f),{$metadata:ar(r),...w}},V9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=Nx(s.DecodeAuthorizationMessageResult,f),{$metadata:ar(r),...w}},k9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=jx(s.GetAccessKeyInfoResult,f),{$metadata:ar(r),...w}},D9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=dx(s.GetCallerIdentityResult,f),{$metadata:ar(r),...w}},i9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=Ox(s.GetFederationTokenResult,f),{$metadata:ar(r),...w}},y9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=cx(s.GetSessionTokenResult,f),{$metadata:ar(r),...w}},ww=async(r,f)=>{const s={...r,body:await Ff.parseXmlErrorBody(r.body,f)},w=$e(r,s.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Cx(s,f);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await zx(s,f);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Sx(s,f);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Px(s,f);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Ax(s,f);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Wx(s,f);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Lx(s,f);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Rx(s,f);default:const h=s.body;return ax({output:r,parsedBody:h.Error,errorCode:w})}},Cx=async(r,f)=>{const s=r.body,w=qx(s.Error,f),h=new A$({$metadata:ar(r),...w});return k(h,s)},Lx=async(r,f)=>{const s=r.body,w=bx(s.Error,f),h=new X$({$metadata:ar(r),...w});return k(h,s)},Ax=async(r,f)=>{const s=r.body,w=gx(s.Error,f),h=new S$({$metadata:ar(r),...w});return k(h,s)},Rx=async(r,f)=>{const s=r.body,w=_x(s.Error,f),h=new Y$({$metadata:ar(r),...w});return k(h,s)},Wx=async(r,f)=>{const s=r.body,w=xx(s.Error,f),h=new P$({$metadata:ar(r),...w});return k(h,s)},zx=async(r,f)=>{const s=r.body,w=ex(s.Error,f),h=new R$({$metadata:ar(r),...w});return k(h,s)},Sx=async(r,f)=>{const s=r.body,w=nx(s.Error,f),h=new W$({$metadata:ar(r),...w});return k(h,s)},Px=async(r,f)=>{const s=r.body,w=ox(s.Error,f),h=new z$({$metadata:ar(r),...w});return k(h,s)},Xx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[Nh]!=null)s[Nh]=r[Nh];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];if(r[vh]!=null){const w=m9(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}if(r[FG]!=null){const w=Dx(r[FG],f);if(r[FG]?.length===0)s.TransitiveTagKeys=[];Object.entries(w).forEach(([h,$])=>{const E=`TransitiveTagKeys.${h}`;s[E]=$})}if(r[bT]!=null)s[bT]=r[bT];if(r[qh]!=null)s[qh]=r[qh];if(r[jh]!=null)s[jh]=r[jh];if(r[cs]!=null)s[cs]=r[cs];if(r[tT]!=null){const w=Vx(r[tT],f);if(r[tT]?.length===0)s.ProvidedContexts=[];Object.entries(w).forEach(([h,$])=>{const E=`ProvidedContexts.${h}`;s[E]=$})}return s},Yx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[pT]!=null)s[pT]=r[pT];if(r[hG]!=null)s[hG]=r[hG];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];return s},Kx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[Nh]!=null)s[Nh]=r[Nh];if(r[GG]!=null)s[GG]=r[GG];if(r[rG]!=null)s[rG]=r[rG];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];return s},Zx=(r,f)=>{const s={};if(r[gT]!=null)s[gT]=r[gT];return s},lx=(r,f)=>{const s={};if(r[ih]!=null)s[ih]=r[ih];return s},Jx=(r,f)=>{return{}},Qx=(r,f)=>{const s={};if(r[oT]!=null)s[oT]=r[oT];if(r[js]!=null)s[js]=r[js];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[ws]!=null)s[ws]=r[ws];if(r[vh]!=null){const w=m9(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}return s},Mx=(r,f)=>{const s={};if(r[ws]!=null)s[ws]=r[ws];if(r[qh]!=null)s[qh]=r[qh];if(r[jh]!=null)s[jh]=r[jh];return s},CI=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=Bx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},Bx=(r,f)=>{const s={};if(r[CG]!=null)s[CG]=r[CG];return s},Hx=(r,f)=>{const s={};if(r[uT]!=null)s[uT]=r[uT];if(r[dT]!=null)s[dT]=r[dT];return s},Vx=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=Hx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},kx=(r,f)=>{const s={};if(r[nT]!=null)s[nT]=r[nT];if(r[TG]!=null)s[TG]=r[TG];return s},Dx=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;s[`member.${w}`]=h,w++}return s},m9=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=kx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},LG=(r,f)=>{const s={};if(r[jT]!=null)s[jT]=T(r[jT]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},ix=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},yx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[fG]!=null)s[fG]=T(r[fG]);if(r[EG]!=null)s[EG]=T(r[EG]);if(r[eT]!=null)s[eT]=T(r[eT]);if(r[mh]!=null)s[mh]=T(r[mh]);if(r[aT]!=null)s[aT]=T(r[aT]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},mx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[$G]!=null)s[$G]=T(r[$G]);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[sG]!=null)s[sG]=T(r[sG]);if(r[mh]!=null)s[mh]=T(r[mh]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},K$=(r,f)=>{const s={};if(r[ih]!=null)s[ih]=T(r[ih]);if(r[wG]!=null)s[wG]=T(r[wG]);if(r[IG]!=null)s[IG]=T(r[IG]);if(r[cT]!=null)s[cT]=y(Hw(r[cT]));return s},Nx=(r,f)=>{const s={};if(r[OT]!=null)s[OT]=T(r[OT]);return s},qx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},vx=(r,f)=>{const s={};if(r[xT]!=null)s[xT]=T(r[xT]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},jx=(r,f)=>{const s={};if(r[yh]!=null)s[yh]=T(r[yh]);return s},dx=(r,f)=>{const s={};if(r[UG]!=null)s[UG]=T(r[UG]);if(r[yh]!=null)s[yh]=T(r[yh]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},Ox=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[_T]!=null)s[_T]=vx(r[_T],f);if(r[Os]!=null)s[Os]=$r(r[Os]);return s},cx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);return s},bx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},gx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},_x=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},xx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ex=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},nx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ox=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ar=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),ax,hw=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)},$w,Ew="2011-06-15",Iw="Action",ih="AccessKeyId",px="AssumeRole",jT="AssumedRoleId",Z0="AssumedRoleUser",ux="AssumeRoleWithSAML",tx="AssumeRoleWithWebIdentity",yh="Account",l0="Arn",mh="Audience",fs="Credentials",dT="ContextAssertion",re="DecodeAuthorizationMessage",OT="DecodedMessage",ws="DurationSeconds",cT="Expiration",bT="ExternalId",gT="EncodedMessage",_T="FederatedUser",xT="FederatedUserId",se="GetAccessKeyInfo",fe="GetCallerIdentity",we="GetFederationToken",he="GetSessionToken",eT="Issuer",nT="Key",oT="Name",aT="NameQualifier",js="Policy",ds="PolicyArns",pT="PrincipalArn",uT="ProviderArn",tT="ProvidedContexts",rG="ProviderId",Os="PackedPolicySize",sG="Provider",J0="RoleArn",Nh="RoleSessionName",fG="Subject",wG="SecretAccessKey",hG="SAMLAssertion",$G="SubjectFromWebIdentityToken",cs="SourceIdentity",qh="SerialNumber",EG="SubjectType",IG="SessionToken",vh="Tags",jh="TokenCode",FG="TransitiveTagKeys",UG="UserId",Fw="Version",TG="Value",GG="WebIdentityToken",CG="arn",Sr="message",Uw=(r)=>Object.entries(r).map(([f,s])=>Y3(f)+"="+Y3(s)).join("&"),$e=(r,f)=>{if(f.Error?.Code!==void 0)return f.Error.Code;if(r.statusCode==404)return"NotFound"};var Q0=G(()=>{Ff=u(Br(),1);ir();Y();fw();GI();ax=cf(ss),$w={"content-type":"application/x-www-form-urlencoded"}});var dh;var LI=G(()=>{M();H();Y();tf();fw();Q0();dh=class dh extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,DT).ser(P9).de(M9).build(){}});var AI;var AG=G(()=>{M();H();Y();tf();fw();Q0();AI=class AI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(iT,yT).ser(X9).de(B9).build(){}});var Oh;var RI=G(()=>{M();H();Y();tf();fw();Q0();Oh=class Oh extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(mT,NT).ser(Y9).de(H9).build(){}});var WI;var RG=G(()=>{M();H();Y();tf();Q0();WI=class WI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(K9).de(V9).build(){}});var zI;var WG=G(()=>{M();H();Y();tf();Q0();zI=class zI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(Z9).de(k9).build(){}});var SI;var zG=G(()=>{M();H();Y();tf();Q0();SI=class SI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(l9).de(D9).build(){}});var PI;var SG=G(()=>{M();H();Y();tf();fw();Q0();PI=class PI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,qT).ser(J9).de(i9).build(){}});var XI;var PG=G(()=>{M();H();Y();tf();fw();Q0();XI=class XI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,vT).ser(Q9).de(y9).build(){}});var Ee,XG;var N9=G(()=>{Y();LI();AG();RI();RG();WG();zG();SG();PG();L$();Ee={AssumeRoleCommand:dh,AssumeRoleWithSAMLCommand:AI,AssumeRoleWithWebIdentityCommand:Oh,DecodeAuthorizationMessageCommand:WI,GetAccessKeyInfoCommand:zI,GetCallerIdentityCommand:SI,GetFederationTokenCommand:PI,GetSessionTokenCommand:XI};XG=class XG extends K0{};df(Ee,XG)});var q9=G(()=>{LI();AG();RI();RG();WG();zG();SG();PG()});var v9=G(()=>{fw()});var j9="us-east-1",d9=(r)=>{if(typeof r?.Arn==="string"){const f=r.Arn.split(":");if(f.length>4&&f[4]!=="")return f[4]}return},O9=async(r,f,s)=>{const w=typeof r==="function"?await r():r,h=typeof f==="function"?await f():f;return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${h} (parent client)`,`${j9} (STS default)`),w??h??j9},c9=(r,f)=>{let s,w;return async(h,$)=>{if(w=h,!s){const{logger:U=r?.parentClientConfig?.logger,region:C,requestHandler:L=r?.parentClientConfig?.requestHandler,credentialProviderLogger:z}=r,S=await O9(C,r?.parentClientConfig?.region,z),Z=!g9(L);s=new f({credentialDefaultProvider:()=>async()=>w,region:S,requestHandler:Z?L:void 0,logger:U})}const{Credentials:E,AssumedRoleUser:I}=await s.send(new dh($));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${$.RoleArn}`);const F=d9(I);return{accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...F&&{accountId:F}}}},b9=(r,f)=>{let s;return async(w)=>{if(!s){const{logger:I=r?.parentClientConfig?.logger,region:F,requestHandler:U=r?.parentClientConfig?.requestHandler,credentialProviderLogger:C}=r,L=await O9(F,r?.parentClientConfig?.region,C),z=!g9(U);s=new f({region:L,requestHandler:z?U:void 0,logger:I})}const{Credentials:h,AssumedRoleUser:$}=await s.send(new Oh(w));if(!h||!h.AccessKeyId||!h.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const E=d9($);return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...E&&{accountId:E}}}},g9=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var _9=G(()=>{LI();RI()});var x9=(r,f)=>{if(!f)return r;else return class s extends r{constructor(w){super(w);for(let h of f)this.middlewareStack.use(h)}}},e9=(r={},f)=>c9(r,x9(K0,f)),n9=(r={},f)=>b9(r,x9(K0,f)),Ie=(r)=>(f)=>r({roleAssumer:e9(f),roleAssumerWithWebIdentity:n9(f),...f});var o9=G(()=>{_9();L$()});var YG={};Sf(YG,{getDefaultRoleAssumerWithWebIdentity:()=>n9,getDefaultRoleAssumer:()=>e9,decorateDefaultCredentialProvider:()=>Ie,__Client:()=>zs,STSServiceException:()=>ss,STSClient:()=>K0,STS:()=>XG,RegionDisabledException:()=>z$,PackedPolicyTooLargeException:()=>W$,MalformedPolicyDocumentException:()=>R$,InvalidIdentityTokenException:()=>P$,InvalidAuthorizationMessageException:()=>Y$,IDPRejectedClaimException:()=>S$,IDPCommunicationErrorException:()=>X$,GetSessionTokenResponseFilterSensitiveLog:()=>vT,GetSessionTokenCommand:()=>XI,GetFederationTokenResponseFilterSensitiveLog:()=>qT,GetFederationTokenCommand:()=>PI,GetCallerIdentityCommand:()=>SI,GetAccessKeyInfoCommand:()=>zI,ExpiredTokenException:()=>A$,DecodeAuthorizationMessageCommand:()=>WI,CredentialsFilterSensitiveLog:()=>Dh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>NT,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>mT,AssumeRoleWithWebIdentityCommand:()=>Oh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>yT,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>iT,AssumeRoleWithSAMLCommand:()=>AI,AssumeRoleResponseFilterSensitiveLog:()=>DT,AssumeRoleCommand:()=>dh,$Command:()=>A});var KG=G(()=>{L$();N9();q9();v9();o9();GI()});var a9=(r,{profile:f="default",logger:s}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(Fe(r,{profile:f,logger:s})||Ue(r,{profile:f,logger:s}))},Fe=(r,{profile:f,logger:s})=>{const w=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(w)s?.debug?.(` ${f} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return w},Ue=(r,{profile:f,logger:s})=>{const w=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(w)s?.debug?.(` ${f} isCredentialSourceProfile credential_source=${r.credential_source}`);return w},p9=async(r,f,s,w={})=>{s.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const h=f[r];if(!s.roleAssumer){const{getDefaultRoleAssumer:C}=await Promise.resolve().then(() => (KG(),YG));s.roleAssumer=C({...s.clientConfig,credentialProviderLogger:s.logger,parentClientConfig:s?.parentClientConfig},s.clientPlugins)}const{source_profile:$}=h;if($&&$ in w)throw new _(`Detected a cycle attempting to resolve credentials for profile ${ks(s)}. Profiles visited: `+Object.keys(w).join(", "),{logger:s.logger});s.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${$?`source_profile=[${$}]`:`profile=[${r}]`}`);const E=$?YI($,{...f,[$]:{...f[$],role_arn:h.role_arn??f[$].role_arn}},s,{...w,[$]:!0}):(await iJ(h.credential_source,r,s.logger)(s))(),I={RoleArn:h.role_arn,RoleSessionName:h.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:h.external_id,DurationSeconds:parseInt(h.duration_seconds||"3600",10)},{mfa_serial:F}=h;if(F){if(!s.mfaCodeProvider)throw new _(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:s.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await s.mfaCodeProvider(F)}const U=await E;return s.roleAssumer(U,I)};var u9=G(()=>{Lr();hf();yJ();ZG()});var t9=(r,f,s)=>{if(f.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(f.AccessKeyId===void 0||f.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(f.Expiration){const h=new Date;if(new Date(f.Expiration)<h)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let w=f.AccountId;if(!w&&s?.[r]?.aws_account_id)w=s[r].aws_account_id;return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,...f.SessionToken&&{sessionToken:f.SessionToken},...f.Expiration&&{expiration:new Date(f.Expiration)},...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}}};import{exec as Te}from"child_process";import{promisify as Ge}from"util";var rQ=async(r,f,s)=>{const w=f[r];if(f[r]){const h=w.credential_process;if(h!==void 0){const $=Ge(Te);try{const{stdout:E}=await $(h);let I;try{I=JSON.parse(E.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return t9(r,I,f)}catch(E){throw new _(E.message,{logger:s})}}else throw new _(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new _(`Profile ${r} could not be found in shared credentials file.`,{logger:s})};var sQ=G(()=>{Lr()});var Ce=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const f=await c0(r);return rQ(ks(r),f,r.logger)};var fQ=G(()=>{hf();sQ()});var lG={};Sf(lG,{fromProcess:()=>Ce});var JG=G(()=>{fQ()});var wQ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",hQ=async(r,f)=>Promise.resolve().then(() => (JG(),lG)).then(({fromProcess:s})=>s({...r,profile:f})());var $Q=async(r,f={})=>{const{fromSSO:s}=await Promise.resolve().then(() => (HT(),BT));return s({profile:r,logger:f.logger})()},EQ=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var QG=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,MG=(r,f)=>{return f?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"),Promise.resolve({accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}})};var BG=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:f,roleSessionName:s,webIdentityToken:w,providerId:h,policyArns:$,policy:E,durationSeconds:I}=r;let{roleAssumerWithWebIdentity:F}=r;if(!F){const{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (KG(),YG));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:f,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:w,ProviderId:h,PolicyArns:$,Policy:E,DurationSeconds:I})};import{readFileSync as Le}from"fs";var Ae="AWS_WEB_IDENTITY_TOKEN_FILE",Re="AWS_ROLE_ARN",We="AWS_ROLE_SESSION_NAME",ze=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const f=r?.webIdentityTokenFile??process.env[Ae],s=r?.roleArn??process.env[Re],w=r?.roleSessionName??process.env[We];if(!f||!s)throw new _("Web identity configuration not specified",{logger:r.logger});return BG({...r,webIdentityToken:Le(f,{encoding:"ascii"}),roleArn:s,roleSessionName:w})()};var IQ=G(()=>{Lr()});var HG={};Sf(HG,{fromWebToken:()=>BG,fromTokenFile:()=>ze});var VG=G(()=>{IQ()});var FQ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,UQ=async(r,f)=>Promise.resolve().then(() => (VG(),HG)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:f.roleAssumerWithWebIdentity,logger:f.logger,parentClientConfig:f.parentClientConfig})());var YI=async(r,f,s,w={})=>{const h=f[r];if(Object.keys(w).length>0&&QG(h))return MG(h,s);if(a9(h,{profile:r,logger:s.logger}))return p9(r,f,s,w);if(QG(h))return MG(h,s);if(FQ(h))return UQ(h,s);if(wQ(h))return hQ(s,r);if(EQ(h))return await $Q(r,s);throw new _(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:s.logger})};var ZG=G(()=>{Lr();u9()});var Se=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const f=await c0(r);return YI(ks(r),f,r)};var TQ=G(()=>{hf();ZG()});var GQ={};Sf(GQ,{fromIni:()=>Se});var CQ=G(()=>{TQ()});var LQ=!1,S0=(r={})=>Kw(A0(async()=>{if(r.profile??process.env[sP]){if(process.env[y3]&&process.env[m3]){if(!LQ)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
24
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:f})};var oZ=G(()=>{eZ=i(Cr(),1)});function aZ(r){return new Qr({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce((f,[s,w])=>{return f[s]=w,f},{}),fragment:r.hash})}async function pZ(r,f){const w=await eX(r.body).transformToString();if(r.statusCode===200){const h=JSON.parse(w);if(typeof h.AccessKeyId!=="string"||typeof h.SecretAccessKey!=="string"||typeof h.Token!=="string"||typeof h.Expiration!=="string")throw new g3.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:f});return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.Token,expiration:IY(h.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let h={};try{h=JSON.parse(w)}catch($){}throw Object.assign(new g3.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:f}),{Code:h.Code,Message:h.Message})}throw new g3.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:f})}var g3;var uZ=G(()=>{g3=i(Cr(),1);kr();Y();XU()});var tZ=(r,f,s)=>{return async()=>{for(let w=0;w<f;++w)try{return await r()}catch(h){await new Promise(($)=>setTimeout($,s))}return await r()}};import J_ from"fs/promises";var rT,Q_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",M_="http://169.254.170.2",B_="AWS_CONTAINER_CREDENTIALS_FULL_URI",l_="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",H_="AWS_CONTAINER_AUTHORIZATION_TOKEN",r7=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let f;const s=r.awsContainerCredentialsRelativeUri??process.env[Q_],w=r.awsContainerCredentialsFullUri??process.env[B_],h=r.awsContainerAuthorizationToken??process.env[H_],$=r.awsContainerAuthorizationTokenFile??process.env[l_],E=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(s&&w)E("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),E("awsContainerCredentialsFullUri will take precedence.");if(h&&$)E("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),E("awsContainerAuthorizationToken will take precedence.");if(w)f=w;else if(s)f=`${M_}${s}`;else throw new rT.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
25
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});const I=new URL(f);nZ(I,r.logger);const F=new pr({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return tZ(async()=>{const U=aZ(I);if(h)U.headers.Authorization=h;else if($)U.headers.Authorization=(await J_.readFile($)).toString();try{const C=await F.handle(U);return pZ(C.response)}catch(C){throw new rT.CredentialsProviderError(String(C),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var s7=G(()=>{d0();rT=i(Cr(),1);oZ();uZ()});var sT={};Af(sT,{fromHttp:()=>r7});var fT=G(()=>{s7()});var _3,V_="AWS_EC2_METADATA_DISABLED",f7=async(r)=>{const{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:s,fromContainerMetadata:w,fromInstanceMetadata:h}=await Promise.resolve().then(() => (j1(),v1));if(process.env[s]||process.env[f]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:$}=await Promise.resolve().then(() => (fT(),sT));return _3.chain($(r),w(r))}if(process.env[V_])return async()=>{throw new _3.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),h(r)};var w7=G(()=>{_3=i(Cr(),1)});var wT=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var h7=300000,zh="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function D_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function hT(r){return{schemeId:"smithy.api#noAuth"}}var $7,E7=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},I7=(r)=>{const f=[];switch(r.operation){case"CreateToken":{f.push(hT(r));break}case"RegisterClient":{f.push(hT(r));break}case"StartDeviceAuthorization":{f.push(hT(r));break}default:f.push(D_(r))}return f},F7=(r)=>{return{...$7.resolveAwsSdkSigV4Config(r)}};var $T=G(()=>{$7=i(Br(),1);as()});var U7=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},x0;var Rh=G(()=>{x0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var G7;var T7=G(()=>{G7={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.637.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var ET;var IT=G(()=>{ET={isCrtAvailable:!1}});var C7=()=>{if(ET.isCrtAvailable)return["md/crt-avail"];return null};var L7=G(()=>{IT()});import{platform as N_,release as y_}from"os";import{env as A7,versions as q_}from"process";var m_="AWS_SDK_UA_APP_ID",i_="sdk-ua-app-id",gf=({serviceId:r,clientVersion:f})=>{const s=[["aws-sdk-js",f],["ua","2.0"],[`os/${N_()}`,y_()],["lang/js"],["md/nodejs",`${q_.node}`]],w=C7();if(w)s.push(w);if(r)s.push([`api/${r}`,f]);if(A7.AWS_EXECUTION_ENV)s.push([`exec-env/${A7.AWS_EXECUTION_ENV}`]);const h=u({environmentVariableSelector:(E)=>E[m_],configFileSelector:(E)=>E[i_],default:void 0})();let $=void 0;return async()=>{if(!$){const E=await h;$=E?[...s,[`app/${E}`]]:[...s]}return $}};var Sh=G(()=>{sf();L7();IT()});import{Buffer as v_}from"buffer";import{createHash as j_,createHmac as d_}from"crypto";function W7(r,f){if(v_.isBuffer(r))return r;if(typeof r==="string")return Gh(r,f);if(ArrayBuffer.isView(r))return G0(r.buffer,r.byteOffset,r.byteLength);return G0(r)}class wf{constructor(r,f){this.algorithmIdentifier=r,this.secret=f,this.reset()}update(r,f){this.hash.update(WX(W7(r,f)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?d_(this.algorithmIdentifier,W7(this.secret)):j_(this.algorithmIdentifier)}}var Ph=G(()=>{Yw();yf()});import{fstatSync as O_,lstatSync as c_}from"fs";var _f=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return c_(r.path).size;else if(typeof r.fd==="number")return O_(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var z7=()=>{};var Xh=G(()=>{z7()});var R7,S7,P7,Q7,M7,Ns,X7,B7,Y7,K7,Z7,J7,b_,l7;var H7=G(()=>{R7={["required"]:!1,type:"String"},S7={["required"]:!0,default:!1,type:"Boolean"},P7={["ref"]:"Endpoint"},Q7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},M7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},Ns={},X7={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},B7={["ref"]:"PartitionResult"},Y7={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[B7,"supportsDualStack"]}]},K7=[Q7],Z7=[M7],J7=[{["ref"]:"Region"}],b_={version:"1.0",parameters:{Region:R7,UseDualStack:S7,UseFIPS:S7,Endpoint:R7},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[P7]}],rules:[{conditions:K7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:P7,properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:J7}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:J7,assign:"PartitionResult"}],rules:[{conditions:[Q7,M7],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,X7]},Y7],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:K7,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[X7,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[B7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:Ns,headers:Ns},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z7,rules:[{conditions:[Y7],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},l7=b_});var V7=(r,f={})=>{return es(l7,{endpointParams:r,logger:f.logger})};var D7=G(()=>{Cw();ns();H7();ar.aws=os});var k7,N7,y7,q7=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Es,base64Encoder:r?.base64Encoder??Fs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??V7,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??I7,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new k7.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new N7.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??y7.parseUrl,utf8Decoder:r?.utf8Decoder??br,utf8Encoder:r?.utf8Encoder??Is}};var m7=G(()=>{k7=i(Br(),1),N7=i(dr(),1);Y();y7=i(I0(),1);C0();yf();$T();D7()});var i7="AWS_EXECUTION_ENV",FT="AWS_REGION",UT="AWS_DEFAULT_REGION",v7="AWS_EC2_METADATA_DISABLED",j7,d7="/latest/meta-data/placement/region";var O7=G(()=>{j7=["in-region","cross-region","mobile","standard","legacy"]});var c7;var b7=G(()=>{c7={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var g7,xf=({region:r=u(Zs),defaultsMode:f=u(c7)}={})=>g7.memoize(async()=>{const s=typeof f==="function"?await f():f;switch(s?.toLowerCase()){case"auto":return g_(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(s?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${j7.join(", ")}, got ${s}`)}}),g_=async(r)=>{if(r){const f=typeof r==="function"?await r():r,s=await __();if(!s)return"standard";if(f===s)return"in-region";else return"cross-region"}return"standard"},__=async()=>{if(process.env[i7]&&(process.env[FT]||process.env[UT]))return process.env[FT]??process.env[UT];if(!process.env[v7])try{const{getInstanceMetadataEndpoint:r,httpRequest:f}=await Promise.resolve().then(() => (j1(),v1)),s=await r();return(await f({...s,path:d7})).toString()}catch(r){}};var _7=G(()=>{Js();sf();g7=i(Cr(),1);O7();b7()});var Yh=G(()=>{_7()});var x7,e7=(r)=>{df(process.version);const f=xf(r),s=()=>f().then(jf),w=q7(r);return x7.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??_f,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??gf({serviceId:w.serviceId,clientVersion:G7.version}),maxAttempts:r?.maxAttempts??u(Df),region:r?.region??u(Zs,Qf),requestHandler:pr.create(r?.requestHandler??s),retryMode:r?.retryMode??u({...Nf,default:async()=>(await s()).retryMode||Vs}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??Ds,useDualstackEndpoint:r?.useDualstackEndpoint??u(Zf),useFipsEndpoint:r?.useFipsEndpoint??u(Jf)}};var n7=G(()=>{T7();x7=i(Br(),1);d1();Sh();Js();Ph();ff();sf();d0();Xh();Cs();m7();Y();Yh();Y()});var ef=(r)=>{let f=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");const s=r.region;if(typeof s==="string")return s;return s()};return{setRegion(s){f=s},region(){return f}}},nf=(r)=>{return{region:r.region()}};var o7=()=>{};var a7=()=>{};var p7=G(()=>{a7()});var u7=G(()=>{o7();p7()});var Kh=G(()=>{u7()});var t7=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},rJ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var x3=(r)=>r,sJ=(r,f)=>{const s={...x3(ef(r)),...x3(Of(r)),...x3(Wf(r)),...x3(t7(r))};return f.forEach((w)=>w.configure(s)),{...r,...nf(s),...cf(s),...zf(s),...rJ(s)}};var fJ=G(()=>{Kh();kr();Y()});var Zh,e3;var TT=G(()=>{_w();xw();ew();ow();Js();Zh=i(dr(),1);$h();B();ff();Y();$T();Rh();n7();fJ();e3=class e3 extends As{constructor(...[r]){const f=e7(r||{}),s=U7(f),w=Yf(s),h=kf(w),$=Mf(h),E=Rf($),I=Hf(E),F=F7(I),U=sJ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Zh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:E7,identityProviderConfigProvider:async(C)=>new Zh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Zh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var lr;var n3=G(()=>{Y();lr=class lr extends ks{constructor(r){super(r);Object.setPrototypeOf(this,lr.prototype)}}});var O1,c1,b1,g1,_1,x1,e1,n1,o1,a1,p1,u1,t1,r$,GT=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),CT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),LT=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),AT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),WT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),zT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}});var lw=G(()=>{Y();n3();O1=class O1 extends lr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,O1.prototype),this.error=r.error,this.error_description=r.error_description}};c1=class c1 extends lr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,c1.prototype),this.error=r.error,this.error_description=r.error_description}};b1=class b1 extends lr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,b1.prototype),this.error=r.error,this.error_description=r.error_description}};g1=class g1 extends lr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,g1.prototype),this.error=r.error,this.error_description=r.error_description}};_1=class _1 extends lr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,_1.prototype),this.error=r.error,this.error_description=r.error_description}};x1=class x1 extends lr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,x1.prototype),this.error=r.error,this.error_description=r.error_description}};e1=class e1 extends lr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e1.prototype),this.error=r.error,this.error_description=r.error_description}};n1=class n1 extends lr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,n1.prototype),this.error=r.error,this.error_description=r.error_description}};o1=class o1 extends lr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends lr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends lr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends lr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};t1=class t1 extends lr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description}};r$=class r$ extends lr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,r$.prototype),this.error=r.error,this.error_description=r.error_description}}});var W0,s$,wJ=async(r,f)=>{const s=s$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:($)=>q($)})),s.m("POST").h(w).b(h),s.build()},hJ=async(r,f)=>{const s=s$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");const h=P({[Fx]:[,"t"]});let $;return $=JSON.stringify(p(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(E)=>q(E),subjectToken:[],subjectTokenType:[]})),s.m("POST").h(w).q(h).b($),s.build()},$J=async(r,f)=>{const s=s$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/client/register");let h;return h=JSON.stringify(p(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:($)=>q($),issuerUrl:[],redirectUris:($)=>q($),scopes:($)=>q($)})),s.m("POST").h(w).b(h),s.build()},EJ=async(r,f)=>{const s=s$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/device_authorization");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],startUrl:[]})),s.m("POST").h(w).b(h),s.build()},IJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return o3(r,f);const s=P({$metadata:mr(r)}),w=y(O(await W0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Kw,idToken:T,refreshToken:T,tokenType:T});return Object.assign(s,h),s},FJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return o3(r,f);const s=P({$metadata:mr(r)}),w=y(O(await W0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Kw,idToken:T,issuedTokenType:T,refreshToken:T,scope:q,tokenType:T});return Object.assign(s,h),s},UJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return o3(r,f);const s=P({$metadata:mr(r)}),w=y(O(await W0.parseJsonBody(r.body,f)),"body"),h=p(w,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:Ch,clientSecret:T,clientSecretExpiresAt:Ch,tokenEndpoint:T});return Object.assign(s,h),s},TJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return o3(r,f);const s=P({$metadata:mr(r)}),w=y(O(await W0.parseJsonBody(r.body,f)),"body"),h=p(w,{deviceCode:T,expiresIn:Kw,interval:Kw,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(s,h),s},o3=async(r,f)=>{const s={...r,body:await W0.parseJsonErrorBody(r.body,f)},w=W0.loadRestJsonErrorCode(r,s.body);switch(w){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await n_(s,f);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await o_(s,f);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await a_(s,f);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await p_(s,f);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await u_(s,f);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await rx(s,f);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await fx(s,f);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await hx(s,f);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await $x(s,f);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Ex(s,f);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Ix(s,f);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await wx(s,f);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await t_(s,f);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await sx(s,f);default:const h=s.body;return e_({output:r,parsedBody:h,errorCode:w})}},e_,n_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new O1({$metadata:mr(r),...s});return D($,r.body)},o_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new c1({$metadata:mr(r),...s});return D($,r.body)},a_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new b1({$metadata:mr(r),...s});return D($,r.body)},p_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new g1({$metadata:mr(r),...s});return D($,r.body)},u_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new _1({$metadata:mr(r),...s});return D($,r.body)},t_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new t1({$metadata:mr(r),...s});return D($,r.body)},rx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new x1({$metadata:mr(r),...s});return D($,r.body)},sx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new r$({$metadata:mr(r),...s});return D($,r.body)},fx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new e1({$metadata:mr(r),...s});return D($,r.body)},wx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{endpoint:T,error:T,error_description:T,region:T});Object.assign(s,h);const $=new u1({$metadata:mr(r),...s});return D($,r.body)},hx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new n1({$metadata:mr(r),...s});return D($,r.body)},$x=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new o1({$metadata:mr(r),...s});return D($,r.body)},Ex=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new a1({$metadata:mr(r),...s});return D($,r.body)},Ix=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new p1({$metadata:mr(r),...s});return D($,r.body)},mr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),Fx="aws_iam";var f$=G(()=>{W0=i(Br(),1),s$=i(dr(),1);Y();lw();n3();e_=vf(lr)});var a3;var RT=G(()=>{B();H();Y();Rh();lw();f$();a3=class a3 extends A.classBuilder().ep({...x0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(GT,CT).ser(wJ).de(IJ).build(){}});var p3;var ST=G(()=>{B();H();Y();Rh();lw();f$();p3=class p3 extends A.classBuilder().ep({...x0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(LT,AT).ser(hJ).de(FJ).build(){}});var u3;var PT=G(()=>{B();H();Y();Rh();lw();f$();u3=class u3 extends A.classBuilder().ep({...x0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,WT).ser($J).de(UJ).build(){}});var t3;var XT=G(()=>{B();H();Y();Rh();lw();f$();t3=class t3 extends A.classBuilder().ep({...x0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(zT,void 0).ser(EJ).de(TJ).build(){}});var Ux,YT;var GJ=G(()=>{Y();RT();ST();PT();XT();TT();Ux={CreateTokenCommand:a3,CreateTokenWithIAMCommand:p3,RegisterClientCommand:u3,StartDeviceAuthorizationCommand:t3};YT=class YT extends e3{};qf(Ux,YT)});var CJ=G(()=>{RT();ST();PT();XT()});var LJ=G(()=>{lw()});var KT={};Af(KT,{__Client:()=>As,UnsupportedGrantTypeException:()=>p1,UnauthorizedClientException:()=>a1,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>zT,StartDeviceAuthorizationCommand:()=>t3,SlowDownException:()=>o1,SSOOIDCServiceException:()=>lr,SSOOIDCClient:()=>e3,SSOOIDC:()=>YT,RegisterClientResponseFilterSensitiveLog:()=>WT,RegisterClientCommand:()=>u3,InvalidScopeException:()=>n1,InvalidRequestRegionException:()=>u1,InvalidRequestException:()=>e1,InvalidRedirectUriException:()=>r$,InvalidGrantException:()=>x1,InvalidClientMetadataException:()=>t1,InvalidClientException:()=>_1,InternalServerException:()=>g1,ExpiredTokenException:()=>b1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>AT,CreateTokenWithIAMRequestFilterSensitiveLog:()=>LT,CreateTokenWithIAMCommand:()=>p3,CreateTokenResponseFilterSensitiveLog:()=>CT,CreateTokenRequestFilterSensitiveLog:()=>GT,CreateTokenCommand:()=>a3,AuthorizationPendingException:()=>c1,AccessDeniedException:()=>O1,$Command:()=>A});var ZT=G(()=>{TT();GJ();CJ();LJ();n3()});var JT,AJ=async(r)=>{const{SSOOIDCClient:f}=await Promise.resolve().then(() => (ZT(),KT));if(JT[r])return JT[r];const s=new f({region:r});return JT[r]=s,s};var WJ=G(()=>{JT={}});var zJ=async(r,f)=>{const{CreateTokenCommand:s}=await Promise.resolve().then(() => (ZT(),KT));return(await AJ(f)).send(new s({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var RJ=G(()=>{WJ()});var SJ,QT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new SJ.TokenProviderError(`Token is expired. ${zh}`,!1)};var PJ=G(()=>{SJ=i(Cr(),1)});var XJ,e0=(r,f,s=!1)=>{if(typeof f==="undefined")throw new XJ.TokenProviderError(`Value not present for '${r}' in SSO Token${s?". Cannot refresh":""}. ${zh}`,!1)};var YJ=G(()=>{XJ=i(Cr(),1)});import{promises as Tx}from"fs";var Gx,KJ=(r,f)=>{const s=s3(r),w=JSON.stringify(f,null,2);return Gx(s,w)};var ZJ=G(()=>{rf();({writeFile:Gx}=Tx)});var Jh,JJ,QJ=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");const f=await v0(r),s=Bs(r),w=f[s];if(!w)throw new Jh.TokenProviderError(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new Jh.TokenProviderError(`Profile '${s}' is missing required property 'sso_session'.`);const h=w.sso_session,E=(await $3(r))[h];if(!E)throw new Jh.TokenProviderError(`Sso session '${h}' could not be found in shared credentials file.`,!1);for(let S of["sso_start_url","sso_region"])if(!E[S])throw new Jh.TokenProviderError(`Sso session '${h}' is missing required property '${S}'.`,!1);const{sso_start_url:I,sso_region:F}=E;let U;try{U=await f3(h)}catch(S){throw new Jh.TokenProviderError(`The SSO session token associated with profile=${s} was not found or is invalid. ${zh}`,!1)}e0("accessToken",U.accessToken),e0("expiresAt",U.expiresAt);const{accessToken:C,expiresAt:L}=U,R={token:C,expiration:new Date(L)};if(R.expiration.getTime()-Date.now()>h7)return R;if(Date.now()-JJ.getTime()<30000)return QT(R),R;e0("clientId",U.clientId,!0),e0("clientSecret",U.clientSecret,!0),e0("refreshToken",U.refreshToken,!0);try{JJ.setTime(Date.now());const S=await zJ(U,F);e0("accessToken",S.accessToken),e0("expiresIn",S.expiresIn);const K=new Date(Date.now()+S.expiresIn*1000);try{await KJ(h,{...U,accessToken:S.accessToken,expiresAt:K.toISOString(),refreshToken:S.refreshToken})}catch(k){}return{token:S.accessToken,expiration:K}}catch(S){return QT(R),R}};var MJ=G(()=>{Jh=i(Cr(),1);rf();RJ();PJ();YJ();ZJ();JJ=new Date(0)});var Cx;var BJ=G(()=>{Cx=i(Cr(),1)});var MT;var lJ=G(()=>{MT=i(Cr(),1)});var HJ=G(()=>{MJ();BJ();lJ()});function Lx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function rI(r){return{schemeId:"smithy.api#noAuth"}}var VJ,DJ=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},kJ=(r)=>{const f=[];switch(r.operation){case"GetRoleCredentials":{f.push(rI(r));break}case"ListAccountRoles":{f.push(rI(r));break}case"ListAccounts":{f.push(rI(r));break}case"Logout":{f.push(rI(r));break}default:f.push(Lx(r))}return f},NJ=(r)=>{return{...VJ.resolveAwsSdkSigV4Config(r)}};var BT=G(()=>{VJ=i(Br(),1);as()});var yJ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},n0;var Qh=G(()=>{n0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var mJ;var qJ=G(()=>{mJ={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var iJ,vJ,jJ,_J,xJ,ys,dJ,eJ,OJ,cJ,bJ,gJ,Wx,nJ;var oJ=G(()=>{iJ={["required"]:!1,type:"String"},vJ={["required"]:!0,default:!1,type:"Boolean"},jJ={["ref"]:"Endpoint"},_J={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},xJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},ys={},dJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},eJ={["ref"]:"PartitionResult"},OJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[eJ,"supportsDualStack"]}]},cJ=[_J],bJ=[xJ],gJ=[{["ref"]:"Region"}],Wx={version:"1.0",parameters:{Region:iJ,UseDualStack:vJ,UseFIPS:vJ,Endpoint:iJ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[jJ]}],rules:[{conditions:cJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:bJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:jJ,properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:gJ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:gJ,assign:"PartitionResult"}],rules:[{conditions:[_J,xJ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,dJ]},OJ],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:cJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[dJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[eJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:ys,headers:ys},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:bJ,rules:[{conditions:[OJ],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},nJ=Wx});var aJ=(r,f={})=>{return es(nJ,{endpointParams:r,logger:f.logger})};var pJ=G(()=>{Cw();ns();oJ();ar.aws=os});var uJ,tJ,r9,s9=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Es,base64Encoder:r?.base64Encoder??Fs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??aJ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??kJ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new uJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new tJ.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??r9.parseUrl,utf8Decoder:r?.utf8Decoder??br,utf8Encoder:r?.utf8Encoder??Is}};var f9=G(()=>{uJ=i(Br(),1),tJ=i(dr(),1);Y();r9=i(I0(),1);C0();yf();BT();pJ()});var w9,h9=(r)=>{df(process.version);const f=xf(r),s=()=>f().then(jf),w=s9(r);return w9.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??_f,defaultUserAgentProvider:r?.defaultUserAgentProvider??gf({serviceId:w.serviceId,clientVersion:mJ.version}),maxAttempts:r?.maxAttempts??u(Df),region:r?.region??u(Zs,Qf),requestHandler:pr.create(r?.requestHandler??s),retryMode:r?.retryMode??u({...Nf,default:async()=>(await s()).retryMode||Vs}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??Ds,useDualstackEndpoint:r?.useDualstackEndpoint??u(Zf),useFipsEndpoint:r?.useFipsEndpoint??u(Jf)}};var $9=G(()=>{qJ();w9=i(Br(),1);Sh();Js();Ph();ff();sf();d0();Xh();Cs();f9();Y();Yh();Y()});var E9=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},I9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var sI=(r)=>r,F9=(r,f)=>{const s={...sI(ef(r)),...sI(Of(r)),...sI(Wf(r)),...sI(E9(r))};return f.forEach((w)=>w.configure(s)),{...r,...nf(s),...cf(s),...zf(s),...I9(s)}};var U9=G(()=>{Kh();kr();Y()});var Mh,z0;var w$=G(()=>{_w();xw();ew();ow();Js();Mh=i(dr(),1);$h();B();ff();Y();BT();Qh();$9();U9();z0=class z0 extends As{constructor(...[r]){const f=h9(r||{}),s=yJ(f),w=Yf(s),h=kf(w),$=Mf(h),E=Rf($),I=Hf(E),F=NJ(I),U=F9(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Mh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:DJ,identityProviderConfigProvider:async(C)=>new Mh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Mh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var R0;var lT=G(()=>{Y();R0=class R0 extends ks{constructor(r){super(r);Object.setPrototypeOf(this,R0.prototype)}}});var fI,wI,hI,$I,T9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),zx=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:o},...r.sessionToken&&{sessionToken:o}}),G9=(r)=>({...r,...r.roleCredentials&&{roleCredentials:zx(r.roleCredentials)}}),C9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),L9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),A9=(r)=>({...r,...r.accessToken&&{accessToken:o}});var Hw=G(()=>{Y();lT();fI=class fI extends R0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,fI.prototype)}};wI=class wI extends R0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,wI.prototype)}};hI=class hI extends R0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,hI.prototype)}};$I=class $I extends R0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,$I.prototype)}}});var o0,h$,W9=async(r,f)=>{const s=h$.requestBuilder(r,f),w=P({},II,{[UI]:r[FI]});s.bp("/federation/credentials");const h=P({[Zx]:[,y(r[Kx],"roleName")],[J9]:[,y(r[Z9],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},z9=async(r,f)=>{const s=h$.requestBuilder(r,f),w=P({},II,{[UI]:r[FI]});s.bp("/assignment/roles");const h=P({[l9]:[,r[B9]],[M9]:[()=>r.maxResults!==void 0,()=>r[Q9].toString()],[J9]:[,y(r[Z9],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},R9=async(r,f)=>{const s=h$.requestBuilder(r,f),w=P({},II,{[UI]:r[FI]});s.bp("/assignment/accounts");const h=P({[l9]:[,r[B9]],[M9]:[()=>r.maxResults!==void 0,()=>r[Q9].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},S9=async(r,f)=>{const s=h$.requestBuilder(r,f),w=P({},II,{[UI]:r[FI]});s.bp("/logout");let h;return s.m("POST").h(w).b(h),s.build()},P9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return EI(r,f);const s=P({$metadata:a0(r)}),w=y(O(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{roleCredentials:q});return Object.assign(s,h),s},X9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return EI(r,f);const s=P({$metadata:a0(r)}),w=y(O(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{nextToken:T,roleList:q});return Object.assign(s,h),s},Y9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return EI(r,f);const s=P({$metadata:a0(r)}),w=y(O(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{accountList:q,nextToken:T});return Object.assign(s,h),s},K9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return EI(r,f);const s=P({$metadata:a0(r)});return await gr(r.body,f),s},EI=async(r,f)=>{const s={...r,body:await o0.parseJsonErrorBody(r.body,f)},w=o0.loadRestJsonErrorCode(r,s.body);switch(w){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Sx(s,f);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Px(s,f);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Xx(s,f);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Yx(s,f);default:const h=s.body;return Rx({output:r,parsedBody:h,errorCode:w})}},Rx,Sx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new fI({$metadata:a0(r),...s});return D($,r.body)},Px=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new wI({$metadata:a0(r),...s});return D($,r.body)},Xx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new hI({$metadata:a0(r),...s});return D($,r.body)},Yx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new $I({$metadata:a0(r),...s});return D($,r.body)},a0=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),II=(r)=>r!==void 0&&r!==null&&r!==""&&(!Object.getOwnPropertyNames(r).includes("length")||r.length!=0)&&(!Object.getOwnPropertyNames(r).includes("size")||r.size!=0),Z9="accountId",FI="accessToken",J9="account_id",Q9="maxResults",M9="max_result",B9="nextToken",l9="next_token",Kx="roleName",Zx="role_name",UI="x-amz-sso_bearer_token";var $$=G(()=>{o0=i(Br(),1),h$=i(dr(),1);Y();Hw();lT();Rx=vf(R0)});var E$;var HT=G(()=>{B();H();Y();Qh();Hw();$$();E$=class E$ extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(T9,G9).ser(W9).de(P9).build(){}});var I$;var TI=G(()=>{B();H();Y();Qh();Hw();$$();I$=class I$ extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(C9,void 0).ser(z9).de(X9).build(){}});var F$;var GI=G(()=>{B();H();Y();Qh();Hw();$$();F$=class F$ extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(L9,void 0).ser(R9).de(Y9).build(){}});var VT;var DT=G(()=>{B();H();Y();Qh();Hw();$$();VT=class VT extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(A9,void 0).ser(S9).de(K9).build(){}});var Jx,H9;var V9=G(()=>{Y();HT();TI();GI();DT();w$();Jx={GetRoleCredentialsCommand:E$,ListAccountRolesCommand:I$,ListAccountsCommand:F$,LogoutCommand:VT};H9=class H9 extends z0{};qf(Jx,H9)});var D9=G(()=>{HT();TI();GI();DT()});var k9=()=>{};var N9,l6r;var y9=G(()=>{N9=i(dr(),1);TI();w$();l6r=N9.createPaginator(z0,I$,"nextToken","nextToken","maxResults")});var q9,k6r;var m9=G(()=>{q9=i(dr(),1);GI();w$();k6r=q9.createPaginator(z0,F$,"nextToken","nextToken","maxResults")});var i9=G(()=>{k9();y9();m9()});var v9=G(()=>{Hw()});var j9=G(()=>{w$();V9();D9();i9();v9()});var d9={};Af(d9,{SSOClient:()=>z0,GetRoleCredentialsCommand:()=>E$});var O9=G(()=>{j9()});var Bh,U$=!1,kT=async({ssoStartUrl:r,ssoSession:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:$,clientConfig:E,profile:I,logger:F})=>{let U;const C="To refresh this SSO session run aws sso login with the corresponding profile.";if(f)try{const Vr=await QJ({profile:I})();U={accessToken:Vr.token,expiresAt:new Date(Vr.expiration).toISOString()}}catch(Vr){throw new Bh.CredentialsProviderError(Vr.message,{tryNextLink:U$,logger:F})}else try{U=await f3(r)}catch(Vr){throw new Bh.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:U$,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new Bh.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:U$,logger:F});const{accessToken:L}=U,{SSOClient:R,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (O9(),d9)),K=$||new R(Object.assign({},E??{},{region:E?.region??w}));let k;try{k=await K.send(new S({accountId:s,roleName:h,accessToken:L}))}catch(Vr){throw new Bh.CredentialsProviderError(Vr,{tryNextLink:U$,logger:F})}const{roleCredentials:{accessKeyId:l,secretAccessKey:M,sessionToken:N,expiration:x,credentialScope:e,accountId:wr}={}}=k;if(!l||!M||!N||!x)throw new Bh.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:U$,logger:F});return{accessKeyId:l,secretAccessKey:M,sessionToken:N,expiration:new Date(x),...e&&{credentialScope:e},...wr&&{accountId:wr}}};var c9=G(()=>{HJ();Bh=i(Cr(),1);rf()});var b9,NT=(r,f)=>{const{sso_start_url:s,sso_account_id:w,sso_region:h,sso_role_name:$}=r;if(!s||!w||!h||!$)throw new b9.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:f});return r};var yT=G(()=>{b9=i(Cr(),1)});var lh,Qx=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r,{ssoClient:E}=r,I=Bs(r);if(!f&&!s&&!w&&!h&&!$){const U=(await v0(r))[I];if(!U)throw new lh.CredentialsProviderError(`Profile ${I} was not found.`,{logger:r.logger});if(!wT(U))throw new lh.CredentialsProviderError(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){const l=(await $3(r))[U.sso_session],M=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(w&&w!==l.sso_region)throw new lh.CredentialsProviderError("Conflicting SSO region"+M,{tryNextLink:!1,logger:r.logger});if(f&&f!==l.sso_start_url)throw new lh.CredentialsProviderError("Conflicting SSO start_url"+M,{tryNextLink:!1,logger:r.logger});U.sso_region=l.sso_region,U.sso_start_url=l.sso_start_url}const{sso_start_url:C,sso_account_id:L,sso_region:R,sso_role_name:S,sso_session:K}=NT(U,r.logger);return kT({ssoStartUrl:C,ssoSession:K,ssoAccountId:L,ssoRegion:R,ssoRoleName:S,ssoClient:E,clientConfig:r.clientConfig,profile:I})}else if(!f||!s||!w||!h)throw new lh.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return kT({ssoStartUrl:f,ssoSession:$,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:r.clientConfig,profile:I})};var g9=G(()=>{lh=i(Cr(),1);rf();c9();yT()});var _9=()=>{};var qT={};Af(qT,{validateSsoProfile:()=>NT,isSsoProfile:()=>wT,fromSSO:()=>Qx});var mT=G(()=>{g9();_9();yT()});var CI,x9=(r,f,s)=>{const w={EcsContainer:async(h)=>{const{fromHttp:$}=await Promise.resolve().then(() => (fT(),sT)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (j1(),v1));return s?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),CI.chain($(h??{}),E(h))},Ec2InstanceMetadata:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:$}=await Promise.resolve().then(() => (j1(),v1));return $(h)},Environment:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:$}=await Promise.resolve().then(() => (xU(),DZ));return $(h)}};if(r in w)return w[r];else throw new CI.CredentialsProviderError(`Unsupported credential source in profile ${f}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:s})};var e9=G(()=>{CI=i(Cr(),1)});function Mx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function n9(r){return{schemeId:"smithy.api#noAuth"}}var o9,a9=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},p9=(r)=>{const f=[];switch(r.operation){case"AssumeRoleWithSAML":{f.push(n9(r));break}case"AssumeRoleWithWebIdentity":{f.push(n9(r));break}default:f.push(Mx(r))}return f},Bx=(r)=>({...r,stsClientCtor:S0}),u9=(r)=>{const f=Bx(r);return{...o9.resolveAwsSdkSigV4Config(f)}};var iT=G(()=>{o9=i(Br(),1);as();T$()});var t9=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},xr;var of=G(()=>{xr={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var sQ;var rQ=G(()=>{sQ={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var fQ,vT,GQ,wQ,Or,hQ,CQ,LQ,er,Rs,$Q,AQ,WQ,EQ,zQ,IQ,FQ,UQ,TQ,Hx,RQ;var SQ=G(()=>{fQ={["required"]:!1,["type"]:"String"},vT={["required"]:!0,default:!1,["type"]:"Boolean"},GQ={["ref"]:"Endpoint"},wQ={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},Or={["ref"]:"Region"},hQ={["fn"]:"aws.partition",["argv"]:[Or],assign:"PartitionResult"},CQ={["ref"]:"UseFIPS"},LQ={["ref"]:"UseDualStack"},er={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},Rs={},$Q={conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"aws-global"]}],["endpoint"]:er,["type"]:"endpoint"},AQ={["fn"]:"booleanEquals",["argv"]:[CQ,!0]},WQ={["fn"]:"booleanEquals",["argv"]:[LQ,!0]},EQ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},zQ={["ref"]:"PartitionResult"},IQ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[zQ,"supportsDualStack"]}]},FQ=[{["fn"]:"isSet",["argv"]:[GQ]}],UQ=[AQ],TQ=[WQ],Hx={version:"1.0",parameters:{Region:fQ,UseDualStack:vT,UseFIPS:vT,Endpoint:fQ,UseGlobalEndpoint:vT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:FQ},wQ,hQ,{["fn"]:"booleanEquals",["argv"]:[CQ,!1]},{["fn"]:"booleanEquals",["argv"]:[LQ,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"ap-northeast-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"ap-south-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"ap-southeast-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"ap-southeast-2"]}],endpoint:er,["type"]:"endpoint"},$Q,{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"ca-central-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"eu-central-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"eu-north-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"eu-west-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"eu-west-2"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"eu-west-3"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"sa-east-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"us-east-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"us-east-2"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"us-west-1"]}],endpoint:er,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Or,"us-west-2"]}],endpoint:er,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:Rs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:FQ,rules:[{conditions:UQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:TQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:GQ,properties:Rs,headers:Rs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[wQ],rules:[{conditions:[hQ],rules:[{conditions:[AQ,WQ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,EQ]},IQ],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Rs,headers:Rs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:UQ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[EQ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[zQ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Rs,headers:Rs},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Rs,headers:Rs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:TQ,rules:[{conditions:[IQ],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Rs,headers:Rs},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},$Q,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:Rs,headers:Rs},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},RQ=Hx});var PQ=(r,f={})=>{return es(RQ,{endpointParams:r,logger:f.logger})};var XQ=G(()=>{Cw();ns();SQ();ar.aws=os});var YQ,KQ,ZQ,JQ=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Es,base64Encoder:r?.base64Encoder??Fs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??PQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??p9,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new YQ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new KQ.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ZQ.parseUrl,utf8Decoder:r?.utf8Decoder??br,utf8Encoder:r?.utf8Encoder??Is}};var QQ=G(()=>{YQ=i(Br(),1),KQ=i(dr(),1);Y();ZQ=i(I0(),1);C0();yf();iT();XQ()});var LI,MQ,BQ=(r)=>{df(process.version);const f=xf(r),s=()=>f().then(jf),w=JQ(r);return LI.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??_f,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??gf({serviceId:w.serviceId,clientVersion:sQ.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4")||(async($)=>await A0($?.__config||{})()),signer:new LI.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new MQ.NoAuthSigner}],maxAttempts:r?.maxAttempts??u(Df),region:r?.region??u(Zs,Qf),requestHandler:pr.create(r?.requestHandler??s),retryMode:r?.retryMode??u({...Nf,default:async()=>(await s()).retryMode||Vs}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??Ds,useDualstackEndpoint:r?.useDualstackEndpoint??u(Zf),useFipsEndpoint:r?.useFipsEndpoint??u(Jf)}};var lQ=G(()=>{rQ();LI=i(Br(),1);d1();Sh();Js();MQ=i(dr(),1);Ph();ff();sf();d0();Xh();Cs();QQ();Y();Yh();Y()});var HQ=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},VQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var AI=(r)=>r,DQ=(r,f)=>{const s={...AI(ef(r)),...AI(Of(r)),...AI(Wf(r)),...AI(HQ(r))};return f.forEach((w)=>w.configure(s)),{...r,...nf(s),...cf(s),...zf(s),...VQ(s)}};var kQ=G(()=>{Kh();kr();Y()});var Hh,S0;var T$=G(()=>{_w();xw();ew();ow();Js();Hh=i(dr(),1);$h();B();ff();Y();iT();of();lQ();kQ();S0=class S0 extends As{constructor(...[r]){const f=BQ(r||{}),s=t9(f),w=Yf(s),h=kf(w),$=Mf(h),E=Rf($),I=Hf(E),F=u9(I),U=DQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Hh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:a9,identityProviderConfigProvider:async(C)=>new Hh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Hh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var tr;var WI=G(()=>{Y();tr=class tr extends ks{constructor(r){super(r);Object.setPrototypeOf(this,tr.prototype)}}});var G$,C$,L$,A$,W$,z$,R$,S$,Vh=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:o}}),jT=(r)=>({...r,...r.Credentials&&{Credentials:Vh(r.Credentials)}}),dT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),OT=(r)=>({...r,...r.Credentials&&{Credentials:Vh(r.Credentials)}}),cT=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),bT=(r)=>({...r,...r.Credentials&&{Credentials:Vh(r.Credentials)}}),gT=(r)=>({...r,...r.Credentials&&{Credentials:Vh(r.Credentials)}}),_T=(r)=>({...r,...r.Credentials&&{Credentials:Vh(r.Credentials)}});var p0=G(()=>{Y();WI();G$=class G$ extends tr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,G$.prototype)}};C$=class C$ extends tr{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,C$.prototype)}};L$=class L$ extends tr{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,L$.prototype)}};A$=class A$ extends tr{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,A$.prototype)}};W$=class W$ extends tr{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,W$.prototype)}};z$=class z$ extends tr{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,z$.prototype)}};R$=class R$ extends tr{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,R$.prototype)}};S$=class S$ extends tr{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,S$.prototype)}}});var hf,NQ=async(r,f)=>{const s=rw;let w;return w=hw({...vx(r,f),[fw]:We,[ww]:sw}),t0(f,s,"/",void 0,w)},yQ=async(r,f)=>{const s=rw;let w;return w=hw({...jx(r,f),[fw]:ze,[ww]:sw}),t0(f,s,"/",void 0,w)},qQ=async(r,f)=>{const s=rw;let w;return w=hw({...dx(r,f),[fw]:Re,[ww]:sw}),t0(f,s,"/",void 0,w)},mQ=async(r,f)=>{const s=rw;let w;return w=hw({...Ox(r,f),[fw]:Se,[ww]:sw}),t0(f,s,"/",void 0,w)},iQ=async(r,f)=>{const s=rw;let w;return w=hw({...cx(r,f),[fw]:Pe,[ww]:sw}),t0(f,s,"/",void 0,w)},vQ=async(r,f)=>{const s=rw;let w;return w=hw({...bx(r,f),[fw]:Xe,[ww]:sw}),t0(f,s,"/",void 0,w)},jQ=async(r,f)=>{const s=rw;let w;return w=hw({...gx(r,f),[fw]:Ye,[ww]:sw}),t0(f,s,"/",void 0,w)},dQ=async(r,f)=>{const s=rw;let w;return w=hw({..._x(r,f),[fw]:Ke,[ww]:sw}),t0(f,s,"/",void 0,w)},OQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=px(s.AssumeRoleResult,f),{$metadata:nr(r),...w}},cQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=ux(s.AssumeRoleWithSAMLResult,f),{$metadata:nr(r),...w}},bQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=tx(s.AssumeRoleWithWebIdentityResult,f),{$metadata:nr(r),...w}},gQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=re(s.DecodeAuthorizationMessageResult,f),{$metadata:nr(r),...w}},_Q=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=we(s.GetAccessKeyInfoResult,f),{$metadata:nr(r),...w}},xQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=he(s.GetCallerIdentityResult,f),{$metadata:nr(r),...w}},eQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=$e(s.GetFederationTokenResult,f),{$metadata:nr(r),...w}},nQ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Ee(s.GetSessionTokenResult,f),{$metadata:nr(r),...w}},u0=async(r,f)=>{const s={...r,body:await hf.parseXmlErrorBody(r.body,f)},w=Ze(r,s.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Vx(s,f);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await qx(s,f);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await mx(s,f);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ix(s,f);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await kx(s,f);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await yx(s,f);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Dx(s,f);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Nx(s,f);default:const h=s.body;return Ae({output:r,parsedBody:h.Error,errorCode:w})}},Vx=async(r,f)=>{const s=r.body,w=se(s.Error,f),h=new G$({$metadata:nr(r),...w});return D(h,s)},Dx=async(r,f)=>{const s=r.body,w=Ie(s.Error,f),h=new R$({$metadata:nr(r),...w});return D(h,s)},kx=async(r,f)=>{const s=r.body,w=Fe(s.Error,f),h=new W$({$metadata:nr(r),...w});return D(h,s)},Nx=async(r,f)=>{const s=r.body,w=Ue(s.Error,f),h=new S$({$metadata:nr(r),...w});return D(h,s)},yx=async(r,f)=>{const s=r.body,w=Te(s.Error,f),h=new z$({$metadata:nr(r),...w});return D(h,s)},qx=async(r,f)=>{const s=r.body,w=Ge(s.Error,f),h=new C$({$metadata:nr(r),...w});return D(h,s)},mx=async(r,f)=>{const s=r.body,w=Ce(s.Error,f),h=new L$({$metadata:nr(r),...w});return D(h,s)},ix=async(r,f)=>{const s=r.body,w=Le(s.Error,f),h=new A$({$metadata:nr(r),...w});return D(h,s)},vx=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[yh]!=null)s[yh]=r[yh];if(r[ms]!=null){const w=zI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[qs]!=null)s[qs]=r[qs];if(r[ss]!=null)s[ss]=r[ss];if(r[mh]!=null){const w=oQ(r[mh],f);if(r[mh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}if(r[WG]!=null){const w=ax(r[WG],f);if(r[WG]?.length===0)s.TransitiveTagKeys=[];Object.entries(w).forEach(([h,$])=>{const E=`TransitiveTagKeys.${h}`;s[E]=$})}if(r[aT]!=null)s[aT]=r[aT];if(r[qh]!=null)s[qh]=r[qh];if(r[ih]!=null)s[ih]=r[ih];if(r[vs]!=null)s[vs]=r[vs];if(r[EG]!=null){const w=nx(r[EG],f);if(r[EG]?.length===0)s.ProvidedContexts=[];Object.entries(w).forEach(([h,$])=>{const E=`ProvidedContexts.${h}`;s[E]=$})}return s},jx=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[hG]!=null)s[hG]=r[hG];if(r[GG]!=null)s[GG]=r[GG];if(r[ms]!=null){const w=zI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[qs]!=null)s[qs]=r[qs];if(r[ss]!=null)s[ss]=r[ss];return s},dx=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[yh]!=null)s[yh]=r[yh];if(r[SG]!=null)s[SG]=r[SG];if(r[IG]!=null)s[IG]=r[IG];if(r[ms]!=null){const w=zI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[qs]!=null)s[qs]=r[qs];if(r[ss]!=null)s[ss]=r[ss];return s},Ox=(r,f)=>{const s={};if(r[pT]!=null)s[pT]=r[pT];return s},cx=(r,f)=>{const s={};if(r[Dh]!=null)s[Dh]=r[Dh];return s},bx=(r,f)=>{return{}},gx=(r,f)=>{const s={};if(r[fG]!=null)s[fG]=r[fG];if(r[qs]!=null)s[qs]=r[qs];if(r[ms]!=null){const w=zI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[ss]!=null)s[ss]=r[ss];if(r[mh]!=null){const w=oQ(r[mh],f);if(r[mh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}return s},_x=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=r[ss];if(r[qh]!=null)s[qh]=r[qh];if(r[ih]!=null)s[ih]=r[ih];return s},zI=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=xx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},xx=(r,f)=>{const s={};if(r[PG]!=null)s[PG]=r[PG];return s},ex=(r,f)=>{const s={};if(r[$G]!=null)s[$G]=r[$G];if(r[eT]!=null)s[eT]=r[eT];return s},nx=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=ex(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},ox=(r,f)=>{const s={};if(r[sG]!=null)s[sG]=r[sG];if(r[RG]!=null)s[RG]=r[RG];return s},ax=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;s[`member.${w}`]=h,w++}return s},oQ=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=ox(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},XG=(r,f)=>{const s={};if(r[xT]!=null)s[xT]=T(r[xT]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},px=(r,f)=>{const s={};if(r[rs]!=null)s[rs]=P$(r[rs],f);if(r[P0]!=null)s[P0]=XG(r[P0],f);if(r[is]!=null)s[is]=hr(r[is]);if(r[vs]!=null)s[vs]=T(r[vs]);return s},ux=(r,f)=>{const s={};if(r[rs]!=null)s[rs]=P$(r[rs],f);if(r[P0]!=null)s[P0]=XG(r[P0],f);if(r[is]!=null)s[is]=hr(r[is]);if(r[UG]!=null)s[UG]=T(r[UG]);if(r[LG]!=null)s[LG]=T(r[LG]);if(r[rG]!=null)s[rG]=T(r[rG]);if(r[Nh]!=null)s[Nh]=T(r[Nh]);if(r[wG]!=null)s[wG]=T(r[wG]);if(r[vs]!=null)s[vs]=T(r[vs]);return s},tx=(r,f)=>{const s={};if(r[rs]!=null)s[rs]=P$(r[rs],f);if(r[CG]!=null)s[CG]=T(r[CG]);if(r[P0]!=null)s[P0]=XG(r[P0],f);if(r[is]!=null)s[is]=hr(r[is]);if(r[FG]!=null)s[FG]=T(r[FG]);if(r[Nh]!=null)s[Nh]=T(r[Nh]);if(r[vs]!=null)s[vs]=T(r[vs]);return s},P$=(r,f)=>{const s={};if(r[Dh]!=null)s[Dh]=T(r[Dh]);if(r[TG]!=null)s[TG]=T(r[TG]);if(r[AG]!=null)s[AG]=T(r[AG]);if(r[oT]!=null)s[oT]=y(Jw(r[oT]));return s},re=(r,f)=>{const s={};if(r[nT]!=null)s[nT]=T(r[nT]);return s},se=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},fe=(r,f)=>{const s={};if(r[tT]!=null)s[tT]=T(r[tT]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},we=(r,f)=>{const s={};if(r[kh]!=null)s[kh]=T(r[kh]);return s},he=(r,f)=>{const s={};if(r[zG]!=null)s[zG]=T(r[zG]);if(r[kh]!=null)s[kh]=T(r[kh]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},$e=(r,f)=>{const s={};if(r[rs]!=null)s[rs]=P$(r[rs],f);if(r[uT]!=null)s[uT]=fe(r[uT],f);if(r[is]!=null)s[is]=hr(r[is]);return s},Ee=(r,f)=>{const s={};if(r[rs]!=null)s[rs]=P$(r[rs],f);return s},Ie=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Fe=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Ue=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Te=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Ge=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Ce=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},Le=(r,f)=>{const s={};if(r[Rr]!=null)s[Rr]=T(r[Rr]);return s},nr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),Ae,t0=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)},rw,sw="2011-06-15",fw="Action",Dh="AccessKeyId",We="AssumeRole",xT="AssumedRoleId",P0="AssumedRoleUser",ze="AssumeRoleWithSAML",Re="AssumeRoleWithWebIdentity",kh="Account",X0="Arn",Nh="Audience",rs="Credentials",eT="ContextAssertion",Se="DecodeAuthorizationMessage",nT="DecodedMessage",ss="DurationSeconds",oT="Expiration",aT="ExternalId",pT="EncodedMessage",uT="FederatedUser",tT="FederatedUserId",Pe="GetAccessKeyInfo",Xe="GetCallerIdentity",Ye="GetFederationToken",Ke="GetSessionToken",rG="Issuer",sG="Key",fG="Name",wG="NameQualifier",qs="Policy",ms="PolicyArns",hG="PrincipalArn",$G="ProviderArn",EG="ProvidedContexts",IG="ProviderId",is="PackedPolicySize",FG="Provider",Y0="RoleArn",yh="RoleSessionName",UG="Subject",TG="SecretAccessKey",GG="SAMLAssertion",CG="SubjectFromWebIdentityToken",vs="SourceIdentity",qh="SerialNumber",LG="SubjectType",AG="SessionToken",mh="Tags",ih="TokenCode",WG="TransitiveTagKeys",zG="UserId",ww="Version",RG="Value",SG="WebIdentityToken",PG="arn",Rr="message",hw=(r)=>Object.entries(r).map(([f,s])=>Y3(f)+"="+Y3(s)).join("&"),Ze=(r,f)=>{if(f.Error?.Code!==void 0)return f.Error.Code;if(r.statusCode==404)return"NotFound"};var K0=G(()=>{hf=i(Br(),1);kr();Y();p0();WI();Ae=vf(tr),rw={"content-type":"application/x-www-form-urlencoded"}});var vh;var RI=G(()=>{B();H();Y();of();p0();K0();vh=class vh extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,jT).ser(NQ).de(OQ).build(){}});var SI;var YG=G(()=>{B();H();Y();of();p0();K0();SI=class SI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(dT,OT).ser(yQ).de(cQ).build(){}});var jh;var PI=G(()=>{B();H();Y();of();p0();K0();jh=class jh extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(cT,bT).ser(qQ).de(bQ).build(){}});var XI;var KG=G(()=>{B();H();Y();of();K0();XI=class XI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(mQ).de(gQ).build(){}});var YI;var ZG=G(()=>{B();H();Y();of();K0();YI=class YI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(iQ).de(_Q).build(){}});var KI;var JG=G(()=>{B();H();Y();of();K0();KI=class KI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(vQ).de(xQ).build(){}});var ZI;var QG=G(()=>{B();H();Y();of();p0();K0();ZI=class ZI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,gT).ser(jQ).de(eQ).build(){}});var JI;var MG=G(()=>{B();H();Y();of();p0();K0();JI=class JI extends A.classBuilder().ep({...xr}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,_T).ser(dQ).de(nQ).build(){}});var Je,BG;var aQ=G(()=>{Y();RI();YG();PI();KG();ZG();JG();QG();MG();T$();Je={AssumeRoleCommand:vh,AssumeRoleWithSAMLCommand:SI,AssumeRoleWithWebIdentityCommand:jh,DecodeAuthorizationMessageCommand:XI,GetAccessKeyInfoCommand:YI,GetCallerIdentityCommand:KI,GetFederationTokenCommand:ZI,GetSessionTokenCommand:JI};BG=class BG extends S0{};qf(Je,BG)});var pQ=G(()=>{RI();YG();PI();KG();ZG();JG();QG();MG()});var uQ=G(()=>{p0()});var tQ="us-east-1",rM=(r)=>{if(typeof r?.Arn==="string"){const f=r.Arn.split(":");if(f.length>4&&f[4]!=="")return f[4]}return},sM=async(r,f,s)=>{const w=typeof r==="function"?await r():r,h=typeof f==="function"?await f():f;return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${h} (parent client)`,`${tQ} (STS default)`),w??h??tQ},fM=(r,f)=>{let s,w;return async(h,$)=>{if(w=h,!s){const{logger:U=r?.parentClientConfig?.logger,region:C,requestHandler:L=r?.parentClientConfig?.requestHandler,credentialProviderLogger:R}=r,S=await sM(C,r?.parentClientConfig?.region,R),K=!hM(L);s=new f({credentialDefaultProvider:()=>async()=>w,region:S,requestHandler:K?L:void 0,logger:U})}const{Credentials:E,AssumedRoleUser:I}=await s.send(new vh($));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${$.RoleArn}`);const F=rM(I);return{accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...F&&{accountId:F}}}},wM=(r,f)=>{let s;return async(w)=>{if(!s){const{logger:I=r?.parentClientConfig?.logger,region:F,requestHandler:U=r?.parentClientConfig?.requestHandler,credentialProviderLogger:C}=r,L=await sM(F,r?.parentClientConfig?.region,C),R=!hM(U);s=new f({region:L,requestHandler:R?U:void 0,logger:I})}const{Credentials:h,AssumedRoleUser:$}=await s.send(new jh(w));if(!h||!h.AccessKeyId||!h.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const E=rM($);return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...E&&{accountId:E}}}},hM=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var $M=G(()=>{RI();PI()});var EM=(r,f)=>{if(!f)return r;else return class s extends r{constructor(w){super(w);for(let h of f)this.middlewareStack.use(h)}}},IM=(r={},f)=>fM(r,EM(S0,f)),FM=(r={},f)=>wM(r,EM(S0,f)),Qe=(r)=>(f)=>r({roleAssumer:IM(f),roleAssumerWithWebIdentity:FM(f),...f});var UM=G(()=>{$M();T$()});var lG={};Af(lG,{getDefaultRoleAssumerWithWebIdentity:()=>FM,getDefaultRoleAssumer:()=>IM,decorateDefaultCredentialProvider:()=>Qe,__Client:()=>As,STSServiceException:()=>tr,STSClient:()=>S0,STS:()=>BG,RegionDisabledException:()=>A$,PackedPolicyTooLargeException:()=>L$,MalformedPolicyDocumentException:()=>C$,InvalidIdentityTokenException:()=>z$,InvalidAuthorizationMessageException:()=>S$,IDPRejectedClaimException:()=>W$,IDPCommunicationErrorException:()=>R$,GetSessionTokenResponseFilterSensitiveLog:()=>_T,GetSessionTokenCommand:()=>JI,GetFederationTokenResponseFilterSensitiveLog:()=>gT,GetFederationTokenCommand:()=>ZI,GetCallerIdentityCommand:()=>KI,GetAccessKeyInfoCommand:()=>YI,ExpiredTokenException:()=>G$,DecodeAuthorizationMessageCommand:()=>XI,CredentialsFilterSensitiveLog:()=>Vh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>bT,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>cT,AssumeRoleWithWebIdentityCommand:()=>jh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>OT,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>dT,AssumeRoleWithSAMLCommand:()=>SI,AssumeRoleResponseFilterSensitiveLog:()=>jT,AssumeRoleCommand:()=>vh,$Command:()=>A});var HG=G(()=>{T$();aQ();pQ();uQ();UM();WI()});var VG,TM=(r,{profile:f="default",logger:s}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(Me(r,{profile:f,logger:s})||Be(r,{profile:f,logger:s}))},Me=(r,{profile:f,logger:s})=>{const w=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(w)s?.debug?.(` ${f} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return w},Be=(r,{profile:f,logger:s})=>{const w=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(w)s?.debug?.(` ${f} isCredentialSourceProfile credential_source=${r.credential_source}`);return w},GM=async(r,f,s,w={})=>{s.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const h=f[r];if(!s.roleAssumer){const{getDefaultRoleAssumer:C}=await Promise.resolve().then(() => (HG(),lG));s.roleAssumer=C({...s.clientConfig,credentialProviderLogger:s.logger,parentClientConfig:s?.parentClientConfig},s.clientPlugins)}const{source_profile:$}=h;if($&&$ in w)throw new VG.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${Bs(s)}. Profiles visited: `+Object.keys(w).join(", "),{logger:s.logger});s.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${$?`source_profile=[${$}]`:`profile=[${r}]`}`);const E=$?QI($,{...f,[$]:{...f[$],role_arn:h.role_arn??f[$].role_arn}},s,{...w,[$]:!0}):(await x9(h.credential_source,r,s.logger)(s))(),I={RoleArn:h.role_arn,RoleSessionName:h.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:h.external_id,DurationSeconds:parseInt(h.duration_seconds||"3600",10)},{mfa_serial:F}=h;if(F){if(!s.mfaCodeProvider)throw new VG.CredentialsProviderError(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:s.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await s.mfaCodeProvider(F)}const U=await E;return s.roleAssumer(U,I)};var CM=G(()=>{VG=i(Cr(),1);rf();e9();DG()});var LM=(r,f,s)=>{if(f.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(f.AccessKeyId===void 0||f.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(f.Expiration){const h=new Date;if(new Date(f.Expiration)<h)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let w=f.AccountId;if(!w&&s?.[r]?.aws_account_id)w=s[r].aws_account_id;return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,...f.SessionToken&&{sessionToken:f.SessionToken},...f.Expiration&&{expiration:new Date(f.Expiration)},...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}}};import{exec as le}from"child_process";import{promisify as He}from"util";var MI,AM=async(r,f,s)=>{const w=f[r];if(f[r]){const h=w.credential_process;if(h!==void 0){const $=He(le);try{const{stdout:E}=await $(h);let I;try{I=JSON.parse(E.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return LM(r,I,f)}catch(E){throw new MI.CredentialsProviderError(E.message,{logger:s})}}else throw new MI.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new MI.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})};var WM=G(()=>{MI=i(Cr(),1)});var Ve=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const f=await v0(r);return AM(Bs(r),f,r.logger)};var zM=G(()=>{rf();WM()});var kG={};Af(kG,{fromProcess:()=>Ve});var NG=G(()=>{zM()});var RM=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",SM=async(r,f)=>Promise.resolve().then(() => (NG(),kG)).then(({fromProcess:s})=>s({...r,profile:f})());var PM=async(r,f={})=>{const{fromSSO:s}=await Promise.resolve().then(() => (mT(),qT));return s({profile:r,logger:f.logger})()},XM=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var yG=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,qG=(r,f)=>{return f?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"),Promise.resolve({accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}})};var mG=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:f,roleSessionName:s,webIdentityToken:w,providerId:h,policyArns:$,policy:E,durationSeconds:I}=r;let{roleAssumerWithWebIdentity:F}=r;if(!F){const{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (HG(),lG));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:f,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:w,ProviderId:h,PolicyArns:$,Policy:E,DurationSeconds:I})};import{readFileSync as De}from"fs";var YM,ke="AWS_WEB_IDENTITY_TOKEN_FILE",Ne="AWS_ROLE_ARN",ye="AWS_ROLE_SESSION_NAME",qe=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const f=r?.webIdentityTokenFile??process.env[ke],s=r?.roleArn??process.env[Ne],w=r?.roleSessionName??process.env[ye];if(!f||!s)throw new YM.CredentialsProviderError("Web identity configuration not specified",{logger:r.logger});return mG({...r,webIdentityToken:De(f,{encoding:"ascii"}),roleArn:s,roleSessionName:w})()};var KM=G(()=>{YM=i(Cr(),1)});var iG={};Af(iG,{fromWebToken:()=>mG,fromTokenFile:()=>qe});var vG=G(()=>{KM()});var ZM=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,JM=async(r,f)=>Promise.resolve().then(() => (vG(),iG)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:f.roleAssumerWithWebIdentity,logger:f.logger,parentClientConfig:f.parentClientConfig})());var QM,QI=async(r,f,s,w={})=>{const h=f[r];if(Object.keys(w).length>0&&yG(h))return qG(h,s);if(TM(h,{profile:r,logger:s.logger}))return GM(r,f,s,w);if(yG(h))return qG(h,s);if(ZM(h))return JM(h,s);if(RM(h))return SM(s,r);if(XM(h))return await PM(r,s);throw new QM.CredentialsProviderError(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:s.logger})};var DG=G(()=>{QM=i(Cr(),1);CM()});var me=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const f=await v0(r);return QI(Bs(r),f,r)};var MM=G(()=>{rf();DG()});var BM={};Af(BM,{fromIni:()=>me});var lM=G(()=>{MM()});var $w,HM=!1,A0=(r={})=>$w.memoize($w.chain(async()=>{if(r.profile??process.env[$P]){if(process.env[y3]&&process.env[q3]){if(!HM)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
26
26
|
Multiple credential sources detected:
|
|
27
27
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
28
28
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -30,7 +30,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
30
30
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
31
31
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
32
32
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
33
|
-
`),LQ=!0}throw new _("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),O5(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r;if(!f&&!s&&!w&&!h&&!$)throw new _("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});const{fromSSO:E}=await Promise.resolve().then(() => (HT(),BT));return E(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:f}=await Promise.resolve().then(() => (CQ(),GQ));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:f}=await Promise.resolve().then(() => (JG(),lG));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:f}=await Promise.resolve().then(() => (VG(),HG));return f(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await oZ(r))()},async()=>{throw new _("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),Xe,Pe),Pe=(r)=>r?.expiration!==void 0,Xe=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var AQ=G(()=>{c5();Lr();hf();aZ()});var b1=G(()=>{AQ()});aw();pw();uw();rh();Ms();var bh=u(Or(),1);Th();M();Ef();Y();var WZ=u(Br(),1);rf();function mg(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var zZ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},SZ=(r)=>{const f=[];switch(r.operation){default:f.push(mg(r))}return f},PZ=(r)=>{return{...WZ.resolveAwsSdkSigV4Config(r)}};var XZ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},l={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var YZ={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-sdk-route53":"3.609.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@aws-sdk/xml-builder":"3.609.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var DQ=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();var VQ=u(Br(),1);Y();b0();W0();jf();Ww();us();var RQ={["required"]:!1,type:"String"},WQ={["required"]:!0,default:!1,type:"Boolean"},zQ={["ref"]:"Endpoint"},KI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},MQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},br={},SQ={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},ch={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},mw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},M0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},PQ={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},XQ={["fn"]:"stringEquals",["argv"]:[ch,"aws-us-gov"]},YQ={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},KQ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ZQ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},lQ=[KI],JQ=[MQ],QQ=[{["ref"]:"Region"}],Ye={version:"1.0",parameters:{Region:RQ,UseDualStack:WQ,UseFIPS:WQ,Endpoint:RQ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[zQ]}],rules:[{conditions:lQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:JQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:zQ,properties:br,headers:br},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:QQ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:QQ,assign:"PartitionResult"}],rules:[{conditions:[SQ,mw,M0],endpoint:{url:"https://route53.amazonaws.com",properties:PQ,headers:br},type:"endpoint"},{conditions:[SQ,KI,M0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:PQ,headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-cn"]},mw,M0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:br},type:"endpoint"},{conditions:[XQ,mw,M0],endpoint:YQ,type:"endpoint"},{conditions:[XQ,KI,M0],endpoint:YQ,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso"]},mw,M0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-b"]},mw,M0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-e"]},mw,M0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-f"]},mw,M0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:br},type:"endpoint"},{conditions:[KI,MQ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,KQ]},ZQ],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:lQ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[KQ,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:JQ,rules:[{conditions:[ZQ],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},BQ=Ye;var HQ=(r,f={})=>{return ps(BQ,{endpointParams:r,logger:f.logger})};ur.aws=ts;var kQ=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??HQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??SZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new VQ.AwsSdkSigV4Signer}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};Y();Qh();Y();var iQ=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=kQ(r);return DQ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:YZ.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};Mh();ir();Y();var yQ=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},mQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var ZI=(r)=>r,NQ=(r,f)=>{const s={...ZI(pf(r)),...ZI(_f(r)),...ZI(Pf(r)),...ZI(yQ(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...mQ(s)}};class kG extends zs{constructor(...[r]){const f=iQ(r||{}),s=XZ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=PZ(I),U=NQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:zZ,identityProviderConfigProvider:async(C)=>new bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();var lI=/^\/(hostedzone|change|delegationset)\//;function Ke(){return(r)=>async(f)=>{const{ChangeBatch:s}=f.input,w=[];for(let h of s.Changes){const{AliasTarget:$}=h.ResourceRecordSet;if($)w.push({...h,ResourceRecordSet:{...h.ResourceRecordSet,AliasTarget:{...$,HostedZoneId:$.HostedZoneId.replace(lI,"")}}});else w.push(h)}return r({...f,input:{...f.input,ChangeBatch:{...s,Changes:w}}})}}var Ze={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},qQ=(r)=>({applyToStack:(f)=>{f.add(Ke(),Ze)}});function Je(){return(r)=>async(f)=>{const s={...f.input};for(let w of le){const h=s[w];if(h)s[w]=h.replace(lI,"")}return r({...f,input:s})}}var le=["DelegationSetId","HostedZoneId","Id"],Qe={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},N=(r)=>({applyToStack:(f)=>{f.add(Je(),Qe)}});M();H();Y();var g=u(Br(),1);function vQ(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function jQ(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class DG{constructor(r){this.value=r}toString(){return jQ(""+this.value)}}class V{static of(r,f,s){const w=new V(r);if(f!==void 0)w.addChildNode(new DG(f));if(s!==void 0)w.withName(s);return w}constructor(r,f=[]){this.name=r,this.children=f,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,f){return this.attributes[r]=f,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,f){if(f!=null)this.attributes[r]=f;return this}cc(r,f,s=f){if(r[f]!=null){const w=V.of(f,r[f]).withName(s);this.c(w)}}l(r,f,s,w){if(r[f]!=null)w().map(($)=>{$.withName(s),this.c($)})}lc(r,f,s,w){if(r[f]!=null){const h=w(),$=new V(s);h.map((E)=>{$.c(E)}),this.c($)}}toString(){const r=Boolean(this.children.length);let f=`<${this.name}`;const s=this.attributes;for(let w of Object.keys(s)){const h=s[w];if(h!=null)f+=` ${w}="${vQ(""+h)}"`}return f+=!r?"/>":`>${this.children.map((w)=>w.toString()).join("")}</${this.name}>`}}var O=u(Or(),1);Y();Y();class j extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,j.prototype)}}class JI extends j{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,JI.prototype)}}class QI extends j{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,QI.prototype)}}class MI extends j{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,MI.prototype)}}class BI extends j{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,BI.prototype)}}class HI extends j{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,HI.prototype)}}class VI extends j{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,VI.prototype)}}class kI extends j{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class DI extends j{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,DI.prototype)}}class iI extends j{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class yI extends j{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class mI extends j{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,mI.prototype)}}class NI extends j{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,NI.prototype)}}class qI extends j{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,qI.prototype)}}class vI extends j{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,vI.prototype),this.Message=r.Message}}class jI extends j{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,jI.prototype),this.Message=r.Message}}class dI extends j{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.Message=r.Message}}class OI extends j{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,OI.prototype),this.messages=r.messages}}class cI extends j{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class bI extends j{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,bI.prototype)}}class gI extends j{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.Message=r.Message}}class _I extends j{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,_I.prototype)}}class xI extends j{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,xI.prototype)}}class eI extends j{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class nI extends j{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,nI.prototype)}}class oI extends j{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,oI.prototype)}}class aI extends j{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends j{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,pI.prototype)}}class uI extends j{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,uI.prototype)}}class tI extends j{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}class r2 extends j{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}}class s2 extends j{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class f2 extends j{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class w2 extends j{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,w2.prototype)}}class h2 extends j{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class $2 extends j{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class E2 extends j{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class I2 extends j{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends j{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends j{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends j{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends j{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class C2 extends j{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class L2 extends j{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class A2 extends j{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class R2 extends j{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class W2 extends j{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,W2.prototype)}}class z2 extends j{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class S2 extends j{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class P2 extends j{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,P2.prototype),this.Message=r.Message}}class X2 extends j{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class Y2 extends j{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class K2 extends j{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends j{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class l2 extends j{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class J2 extends j{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class Q2 extends j{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class M2 extends j{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class B2 extends j{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class H2 extends j{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class V2 extends j{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class k2 extends j{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class D2 extends j{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class i2 extends j{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class y2 extends j{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class m2 extends j{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class N2 extends j{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,N2.prototype),this.Message=r.Message}}class q2 extends j{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class v2 extends j{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,v2.prototype)}}class j2 extends j{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,j2.prototype)}}var eQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},nQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(Ta);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(Ua,r[Ur]).n(Ur));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},oQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Aa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"Changes","Changes",()=>on(r[mH],f)),r[d2]!=null)$.c(V.of(d2,String(r[d2])).n(d2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},aQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(Qa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[c2]!=null)$.c(xn(r[c2],f).n(c2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},pQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;h=Vr;const $=new V(Ma);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"AddTags","AddTags",()=>Uo(r[Fa],f)),$.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>Fo(r[wp],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},uQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection");let h;h=Vr;const $=new V(Ra);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(Ka,r[Pr]).n(Pr));if(r[n]!=null)$.c(V.of(Za,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},tQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck");let h;h=Vr;const $=new V(Wa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(Oa,r[Pr]).n(Pr));if(r[ew]!=null)$.c(so(r[ew],f).n(ew));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},rM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone");let h;h=Vr;const $=new V(za);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[g2]!=null)$.c(V.of(E0,r[g2]).n(g2));if(r[_2]!=null)$.c(fo(r[_2],f).n(_2));if(r[n]!=null)$.c(V.of(Rf,r[n]).n(n));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},sM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/keysigningkey");let h;h=Vr;const $=new V(Sa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));if(r[tG]!=null)$.c(V.of(Ip,r[tG]).n(tG));if(r[n]!=null)$.c(V.of(Ep,r[n]).n(n));if(r[$s]!=null)$.c(V.of(Fp,r[$s]).n($s));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},fM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/queryloggingconfig");let h;h=Vr;const $=new V(la);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.cc(r,b2),r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},wM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/delegationset");let h;h=Vr;const $=new V(Ja);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},hM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy");let h;h=Vr;const $=new V(Ha);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));if(r[H0]!=null)$.c(V.of(vH,r[H0]).n(H0));if(r[n]!=null)$.c(V.of(Lp,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},$M=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance");let h;h=Vr;const $=new V(Ba);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));if(r[n]!=null)$.c(V.of(Rf,r[n]).n(n));if(r[vr]!=null)$.c(V.of(vr,String(r[vr])).n(vr));if($.cc(r,f1),r[bs]!=null)$.c(V.of(bs,String(r[bs])).n(bs));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},EM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Va);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));if(r[H0]!=null)$.c(V.of(vH,r[H0]).n(H0));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},IM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ka);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},FM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},UM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},TM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},GM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},CM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},LM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},AM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},RM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},WM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},zM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ia);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},SM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},PM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ma);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(ya,r[Ur]).n(Ur));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},XM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},YM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/accountlimit/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1);let h;return s.m("GET").h(w).b(h),s.build()},KM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/change/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},ZM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/checkeripranges");let h;return s.m("GET").h(w).b(h),s.build()},lM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},JM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocation");const h=P({[Yp]:[,r[h0]],[Kp]:[,r[$0]],[ip]:[,r[I0]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},QM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},MM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheckcount");let h;return s.m("GET").h(w).b(h),s.build()},BM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},HM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},VM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},kM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonecount");let h;return s.m("GET").h(w).b(h),s.build()},DM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},iM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},yM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},mM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},NM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("GET").h(w).b(h),s.build()},qM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},vM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstancecount");let h;return s.m("GET").h(w).b(h),s.build()},jM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[F0]:[,r[pr]],[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},dM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection");const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},OM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},cM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocations");const h=P({[yp]:[,r[hp]],[mp]:[,r[$p]],[Np]:[,r[Cp]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},bM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},gM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[Zp]:[,r[g2]],[Mp]:[,r[ga]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},_M=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyname");const h=P({[lp]:[,r[Rf]],[sE]:[,r[sr]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},xM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyvpc");const h=P({[dp]:[,y(r[o$],"VPCId")],[cp]:[,y(r[a$],"VPCRegion")],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[h1]:[,r[Xr]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},eM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig");const h=P({[sE]:[,r[sr]],[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},nM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[Hp]:[,r[Tp]],[qp]:[,r[Gp]],[Bp]:[,r[Up]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},oM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},aM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},pM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let h;h=Vr;const $=new V(xa);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"ResourceIds","ResourceIds",()=>To(r[aa],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},uM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies");const h=P({[vp]:[,r[t2]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},tM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances");const h=P({[sE]:[,r[Tw]],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},rB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/hostedzone");const h=P({[jH]:[,y(r[sr],"HostedZoneId")],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},sB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");const h=P({[jH]:[,y(r[f1],"TrafficPolicyId")],[Op]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[bs].toString()],[sE]:[,r[Tw]],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},fB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies/{Id}/versions"),s.p("Id",()=>r.Id,"{Id}",!1);const h=P({[jp]:[,r[rF]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},wB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},hB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/testdnsanswer");const h=P({[sE]:[,y(r[sr],"HostedZoneId")],[Vp]:[,y(r[a2],"RecordName")],[kp]:[,y(r[p2],"RecordType")],[Dp]:[,r[oa]],[Jp]:[,r[Na]],[Qp]:[,r[qa]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$B=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;h=Vr;const $=new V(Wp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[w0]!=null)$.c(JH(r[w0],f).n(w0));if($.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>QH(r[Nw],f)),r[Uf]!=null)$.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[Tf]!=null)$.c(V.of(Tf,String(r[Tf])).n(Tf));if(r[Gf]!=null)$.c(V.of(Gf,String(r[Gf])).n(Gf));if($.cc(r,c$),r[jw]!=null)$.c(V.of(jw,String(r[jw])).n(jw));if(r[Cf]!=null)$.c(V.of(Cf,String(r[Cf])).n(Cf));if($.cc(r,Gw),$.cc(r,_$),r[Lf]!=null)$.c(V.of(Lf,String(r[Lf])).n(Lf));if(r[Af]!=null)$.c(V.of(Af,String(r[Af])).n(Af));return $.lc(r,"Regions","Regions",()=>MH(r[qw],f)),$.lc(r,"ResetElements","ResetElements",()=>wo(r[na],f)),$.cc(r,x$),$.cc(r,n$),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},EB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(zp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(c6,r[Ur]).n(Ur));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},IB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;h=Vr;const $=new V(Sp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},FB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Pp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[vr]!=null)$.c(V.of(vr,String(r[vr])).n(vr));if($.cc(r,f1),r[bs]!=null)$.c(V.of(bs,String(r[bs])).n(bs));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},UB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},TB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},GB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Gr]!=null)s[Gr]=T(w[Gr]);return s},CB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},LB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},AB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[dG]!=null)s[dG]=So(w[dG],f);return s},RB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},WB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);if(w[Rr]!=null)s[Rr]=d6(w[Rr],f);return s},zB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);if(w[r6]!=null)s[r6]=kH(w[r6],f);return s},SB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Cw]!=null)s[Cw]=v6(w[Cw],f);return s},PB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);return s},XB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},YB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},KB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},ZB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Rr]!=null)s[Rr]=d6(w[Rr],f);return s},lB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},JB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},QB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},MB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},BB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},HB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},VB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},kB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},DB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},iB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},yB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},mB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},NB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},qB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=Go(w[V0],f);return s},vB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},jB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CheckerIpRanges==="")s[J$]=[];else if(w[J$]!=null&&w[J$][zf]!=null)s[J$]=Ao(Cr(w[J$][zf]),f);return s},dB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.KeySigningKeys==="")s[D$]=[];else if(w[D$]!=null&&w[D$][zf]!=null)s[D$]=bo(Cr(w[D$][zf]),f);if(w[$s]!=null)s[$s]=Bo(w[$s],f);return s},OB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[b$]!=null)s[b$]=BH(w[b$],f);return s},cB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},bB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[aG]!=null)s[aG]=er(w[aG]);return s},gB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[r0]=[];else if(w[r0]!=null&&w[r0][sF]!=null)s[r0]=HH(Cr(w[r0][sF]),f);return s},_B=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[r0]=[];else if(w[r0]!=null&&w[r0][sF]!=null)s[r0]=HH(Cr(w[r0][sF]),f);return s},xB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);if(w.VPCs==="")s[f0]=[];else if(w[f0]!=null&&w[f0][Rr]!=null)s[f0]=yH(Cr(w[f0][Rr]),f);return s},eB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[pG]!=null)s[pG]=er(w[pG]);return s},nB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=vo(w[V0],f);return s},oB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Cw]!=null)s[Cw]=v6(w[Cw],f);return s},aB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);return s},pB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=to(w[V0],f);return s},uB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},tB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},rH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[y6]!=null)s[y6]=$r(w[y6]);return s},sH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrBlocks==="")s[Z$]=[];else if(w[Z$]!=null&&w[Z$][zf]!=null)s[Z$]=Wo(Cr(w[Z$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},fH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrCollections==="")s[l$]=[];else if(w[l$]!=null&&w[l$][zf]!=null)s[l$]=Yo(Cr(w[l$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},wH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrLocations==="")s[Q$]=[];else if(w[Q$]!=null&&w[Q$][zf]!=null)s[Q$]=go(Cr(w[Q$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},hH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.GeoLocationDetailsList==="")s[H$]=[];else if(w[H$]!=null&&w[H$][b$]!=null)s[H$]=ko(Cr(w[H$][b$]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[$6]!=null)s[$6]=T(w[$6]);if(w[E6]!=null)s[E6]=T(w[E6]);if(w[C6]!=null)s[C6]=T(w[C6]);return s},$H=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthChecks==="")s[V$]=[];else if(w[V$]!=null&&w[V$][Wf]!=null)s[V$]=No(Cr(w[V$][Wf]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},EH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HostedZones==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Ys]!=null)s[s0]=VH(Cr(w[s0][Ys]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},IH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Rf]!=null)s[Rf]=T(w[Rf]);if(w[sr]!=null)s[sr]=T(w[sr]);if(w.HostedZones==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Ys]!=null)s[s0]=VH(Cr(w[s0][Ys]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[I6]!=null)s[I6]=T(w[I6]);if(w[F6]!=null)s[F6]=T(w[F6]);return s},FH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HostedZoneSummaries==="")s[k$]=[];else if(w[k$]!=null&&w[k$][cQ]!=null)s[k$]=Oo(Cr(w[k$][cQ]),f);if(w[a]!=null)s[a]=$r(w[a]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},UH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.QueryLoggingConfigs==="")s[y$]=[];else if(w[y$]!=null&&w[y$][Cw]!=null)s[y$]=xo(Cr(w[y$][Cw]),f);return s},TH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[U6]!=null)s[U6]=T(w[U6]);if(w[T6]!=null)s[T6]=T(w[T6]);if(w[G6]!=null)s[G6]=T(w[G6]);if(w.ResourceRecordSets==="")s[N$]=[];else if(w[N$]!=null&&w[N$][th]!=null)s[N$]=po(Cr(w[N$][th]),f);return s},GH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.DelegationSets==="")s[M$]=[];else if(w[M$]!=null&&w[M$][Ls]!=null)s[M$]=Jo(Cr(w[M$][Ls]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},CH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[e$]!=null)s[e$]=iH(w[e$],f);return s},LH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.ResourceTagSets==="")s[q$]=[];else if(w[q$]!=null&&w[q$][e$]!=null)s[q$]=uo(Cr(w[q$][e$]),f);return s},AH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[t2]!=null)s[t2]=T(w[t2]);if(w.TrafficPolicySummaries==="")s[v$]=[];else if(w[v$]!=null&&w[v$][xQ]!=null)s[v$]=ha(Cr(w[v$][xQ]),f);return s},RH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tw]!=null)s[Tw]=T(w[Tw]);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},WH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},zH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tw]!=null)s[Tw]=T(w[Tw]);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},SH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w.TrafficPolicies==="")s[j$]=[];else if(w[j$]!=null&&w[j$][As]!=null)s[j$]=wa(Cr(w[j$][As]),f);if(w[rF]!=null)s[rF]=T(w[rF]);return s},PH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.VPCs==="")s[f0]=[];else if(w[f0]!=null&&w[f0][Rr]!=null)s[f0]=yH(Cr(w[f0][Rr]),f);return s},XH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[L6]!=null)s[L6]=T(w[L6]);if(w[X6]!=null)s[X6]=T(w[X6]);if(w.RecordData==="")s[m$]=[];else if(w[m$]!=null&&w[m$][gQ]!=null)s[m$]=eo(Cr(w[m$][gQ]),f);if(w[a2]!=null)s[a2]=T(w[a2]);if(w[p2]!=null)s[p2]=T(w[p2]);if(w[Y6]!=null)s[Y6]=T(w[Y6]);return s},YH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},KH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);return s},ZH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},lH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},c=async(r,f)=>{const s={...r,body:await g.parseXmlErrorBody(r.body,f)},w=g.loadRestXmlErrorCode(r,s.body);switch(w){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await De(s,f);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await rn(s,f);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await wn(s,f);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await fn(s,f);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await $n(s,f);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Kn(s,f);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await ie(s,f);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await In(s,f);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Ln(s,f);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Yn(s,f);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await Qn(s,f);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await Mn(s,f);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await Bn(s,f);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Be(s,f);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await ke(s,f);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Rn(s,f);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await ue(s,f);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Xn(s,f);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Vn(s,f);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await He(s,f);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await Oe(s,f);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await kn(s,f);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await ve(s,f);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await je(s,f);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await ge(s,f);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await te(s,f);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Sn(s,f);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await Dn(s,f);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await pe(s,f);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await sn(s,f);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Fn(s,f);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await yn(s,f);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await ae(s,f);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await zn(s,f);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await Hn(s,f);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await me(s,f);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await Ne(s,f);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await xe(s,f);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await En(s,f);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await mn(s,f);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await jn(s,f);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await ln(s,f);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await Nn(s,f);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await dn(s,f);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await qn(s,f);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await vn(s,f);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Un(s,f);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Tn(s,f);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Ve(s,f);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await ce(s,f);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await _e(s,f);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Zn(s,f);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await qe(s,f);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await On(s,f);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Jn(s,f);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await cn(s,f);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await de(s,f);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Cn(s,f);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await bn(s,f);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await ne(s,f);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Gn(s,f);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await An(s,f);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Pn(s,f);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await oe(s,f);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await ee(s,f);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Wn(s,f);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await hn(s,f);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await be(s,f);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await ye(s,f);default:const h=s.body;return Me({output:r,parsedBody:h.Error,errorCode:w})}},Me=cf(j),Be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new vI({$metadata:J(r),...s});return k(h,r.body.Error)},He=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new gI({$metadata:J(r),...s});return k(h,r.body.Error)},Ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new P2({$metadata:J(r),...s});return k(h,r.body.Error)},ke=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new jI({$metadata:J(r),...s});return k(h,r.body.Error)},De=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new JI({$metadata:J(r),...s});return k(h,r.body.Error)},ie=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new kI({$metadata:J(r),...s});return k(h,r.body.Error)},ye=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new j2({$metadata:J(r),...s});return k(h,r.body.Error)},me=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new E2({$metadata:J(r),...s});return k(h,r.body.Error)},Ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new I2({$metadata:J(r),...s});return k(h,r.body.Error)},qe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Z2({$metadata:J(r),...s});return k(h,r.body.Error)},ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new eI({$metadata:J(r),...s});return k(h,r.body.Error)},je=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new nI({$metadata:J(r),...s});return k(h,r.body.Error)},de=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new M2({$metadata:J(r),...s});return k(h,r.body.Error)},Oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new _I({$metadata:J(r),...s});return k(h,r.body.Error)},ce=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new X2({$metadata:J(r),...s});return k(h,r.body.Error)},be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new v2({$metadata:J(r),...s});return k(h,r.body.Error)},ge=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new oI({$metadata:J(r),...s});return k(h,r.body.Error)},_e=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Y2({$metadata:J(r),...s});return k(h,r.body.Error)},xe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new F2({$metadata:J(r),...s});return k(h,r.body.Error)},ee=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new m2({$metadata:J(r),...s});return k(h,r.body.Error)},ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new V2({$metadata:J(r),...s});return k(h,r.body.Error)},oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new y2({$metadata:J(r),...s});return k(h,r.body.Error)},ae=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new w2({$metadata:J(r),...s});return k(h,r.body.Error)},pe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new tI({$metadata:J(r),...s});return k(h,r.body.Error)},ue=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);if(w.messages==="")s[O$]=[];else if(w[O$]!=null&&w[O$][Zr]!=null)s[O$]=Ho(Cr(w[O$][Zr]),f);const h=new OI({$metadata:J(r),...s});return k(h,r.body.Error)},te=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new aI({$metadata:J(r),...s});return k(h,r.body.Error)},rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new QI({$metadata:J(r),...s});return k(h,r.body.Error)},sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new r2({$metadata:J(r),...s});return k(h,r.body.Error)},fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new MI({$metadata:J(r),...s});return k(h,r.body.Error)},wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new BI({$metadata:J(r),...s});return k(h,r.body.Error)},hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new q2({$metadata:J(r),...s});return k(h,r.body.Error)},$n=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new HI({$metadata:J(r),...s});return k(h,r.body.Error)},En=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new U2({$metadata:J(r),...s});return k(h,r.body.Error)},In=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new DI({$metadata:J(r),...s});return k(h,r.body.Error)},Fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new s2({$metadata:J(r),...s});return k(h,r.body.Error)},Un=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new z2({$metadata:J(r),...s});return k(h,r.body.Error)},Tn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new S2({$metadata:J(r),...s});return k(h,r.body.Error)},Gn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new k2({$metadata:J(r),...s});return k(h,r.body.Error)},Cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new B2({$metadata:J(r),...s});return k(h,r.body.Error)},Ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new iI({$metadata:J(r),...s});return k(h,r.body.Error)},An=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new D2({$metadata:J(r),...s});return k(h,r.body.Error)},Rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new dI({$metadata:J(r),...s});return k(h,r.body.Error)},Wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new N2({$metadata:J(r),...s});return k(h,r.body.Error)},zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new h2({$metadata:J(r),...s});return k(h,r.body.Error)},Sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new pI({$metadata:J(r),...s});return k(h,r.body.Error)},Pn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new i2({$metadata:J(r),...s});return k(h,r.body.Error)},Xn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new cI({$metadata:J(r),...s});return k(h,r.body.Error)},Yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new yI({$metadata:J(r),...s});return k(h,r.body.Error)},Kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new VI({$metadata:J(r),...s});return k(h,r.body.Error)},Zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new K2({$metadata:J(r),...s});return k(h,r.body.Error)},ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new C2({$metadata:J(r),...s});return k(h,r.body.Error)},Jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new J2({$metadata:J(r),...s});return k(h,r.body.Error)},Qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new mI({$metadata:J(r),...s});return k(h,r.body.Error)},Mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new NI({$metadata:J(r),...s});return k(h,r.body.Error)},Bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new qI({$metadata:J(r),...s});return k(h,r.body.Error)},Hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new $2({$metadata:J(r),...s});return k(h,r.body.Error)},Vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new bI({$metadata:J(r),...s});return k(h,r.body.Error)},kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new xI({$metadata:J(r),...s});return k(h,r.body.Error)},Dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new uI({$metadata:J(r),...s});return k(h,r.body.Error)},yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new f2({$metadata:J(r),...s});return k(h,r.body.Error)},mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new T2({$metadata:J(r),...s});return k(h,r.body.Error)},Nn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new L2({$metadata:J(r),...s});return k(h,r.body.Error)},qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new R2({$metadata:J(r),...s});return k(h,r.body.Error)},vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new W2({$metadata:J(r),...s});return k(h,r.body.Error)},jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new G2({$metadata:J(r),...s});return k(h,r.body.Error)},dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new A2({$metadata:J(r),...s});return k(h,r.body.Error)},On=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new l2({$metadata:J(r),...s});return k(h,r.body.Error)},cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Q2({$metadata:J(r),...s});return k(h,r.body.Error)},bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new H2({$metadata:J(r),...s});return k(h,r.body.Error)},JH=(r,f)=>{const s=new V(w0);if(r[jr]!=null)s.c(V.of(Da,r[jr]).n(jr));if(r[n]!=null)s.c(V.of(Ia,r[n]).n(n));return s},gn=(r,f)=>{const s=new V(cw);if(r[sr]!=null)s.c(V.of(E0,r[sr]).n(sr));if(s.cc(r,Rf),r[nh]!=null)s.c(V.of(Ea,String(r[nh])).n(nh));return s},_n=(r,f)=>{const s=new V(NH);if(r[_h]!=null)s.c(V.of(Ga,r[_h]).n(_h));if(r[th]!=null)s.c(Eo(r[th],f).n(th));return s},xn=(r,f)=>{const s=new V(c2);if(r[Ur]!=null)s.c(V.of(c6,r[Ur]).n(Ur));return s.lc(r,"Changes","Changes",()=>en(r[mH],f)),s},en=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return _n(s,f).n(NH)})},QH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(g$,s).n(q6)})},nn=(r,f)=>{const s=new V(Ca);if(r[pr]!=null)s.c(V.of(Xa,r[pr]).n(pr));if(r[_h]!=null)s.c(V.of(La,r[_h]).n(_h));return s.lc(r,"CidrList","CidrList",()=>an(r[Ya],f)),s},on=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return nn(s,f).n(zf)})},an=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(dQ,s).n(dQ)})},pn=(r,f)=>{const s=new V(bw);if(r[eh]!=null)s.c(V.of(Xp,r[eh]).n(eh));if(r[pr]!=null)s.c(V.of(Pa,r[pr]).n(pr));return s},un=(r,f)=>{const s=new V(gw);return s.cc(r,e2),s.cc(r,n2),s},tn=(r,f)=>{const s=new V(_w);if(r[h0]!=null)s.c(V.of(va,r[h0]).n(h0));if(r[$0]!=null)s.c(V.of(ja,r[$0]).n($0));if(r[I0]!=null)s.c(V.of(da,r[I0]).n(I0));return s},ro=(r,f)=>{const s=new V(xw);if(s.cc(r,O2),s.cc(r,x2),r[gw]!=null)s.c(un(r[gw],f).n(gw));if(r[vw]!=null)s.c(V.of(vw,String(r[vw])).n(vw));return s},so=(r,f)=>{const s=new V(ew);if(s.cc(r,Gw),r[Af]!=null)s.c(V.of(Af,String(r[Af])).n(Af));if(r[Ar]!=null)s.c(V.of(ba,r[Ar]).n(Ar));if(s.cc(r,x$),s.cc(r,c$),s.cc(r,n$),r[Ow]!=null)s.c(V.of(Ow,String(r[Ow])).n(Ow));if(r[Gf]!=null)s.c(V.of(Gf,String(r[Gf])).n(Gf));if(r[dw]!=null)s.c(V.of(dw,String(r[dw])).n(dw));if(r[Lf]!=null)s.c(V.of(Lf,String(r[Lf])).n(Lf));if(r[Uf]!=null)s.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[Cf]!=null)s.c(V.of(Cf,String(r[Cf])).n(Cf));if(s.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>QH(r[Nw],f)),r[Tf]!=null)s.c(V.of(Tf,String(r[Tf])).n(Tf));if(s.lc(r,"Regions","Regions",()=>MH(r[qw],f)),r[w0]!=null)s.c(JH(r[w0],f).n(w0));return s.cc(r,_$),s.cc(r,o2),s},MH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(ca,s).n(jr)})},fo=(r,f)=>{const s=new V(_2);if(r[Ur]!=null)s.c(V.of(c6,r[Ur]).n(Ur));if(r[uh]!=null)s.c(V.of(_a,String(r[uh])).n(uh));return s},wo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(_Q,s).n(_Q)})},ho=(r,f)=>{const s=new V(fF);if(r[Yr]!=null)s.c(V.of(ea,r[Yr]).n(Yr));return s},$o=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return ho(s,f).n(fF)})},Eo=(r,f)=>{const s=new V(th);if(r[n]!=null)s.c(V.of(Rf,r[n]).n(n));if(r[Ar]!=null)s.c(V.of(fp,r[Ar]).n(Ar));if(r[r1]!=null)s.c(V.of(ua,r[r1]).n(r1));if(r[w1]!=null)s.c(V.of(sp,String(r[w1])).n(w1));if(r[jr]!=null)s.c(V.of(rp,r[jr]).n(jr));if(r[_w]!=null)s.c(tn(r[_w],f).n(_w));if(r[oh]!=null)s.c(V.of(pa,r[oh]).n(oh));if(r[ph]!=null)s.c(V.of(ta,String(r[ph])).n(ph));if(r[vr]!=null)s.c(V.of(vr,String(r[vr])).n(vr));if(s.lc(r,"ResourceRecords","ResourceRecords",()=>$o(r[gh],f)),r[cw]!=null)s.c(gn(r[cw],f).n(cw));if(s.cc(r,g$),s.cc(r,u2),r[bw]!=null)s.c(pn(r[bw],f).n(bw));if(r[xw]!=null)s.c(ro(r[xw],f).n(xw));return s},Io=(r,f)=>{const s=new V(wF);if(r[nw]!=null)s.c(V.of(qH,r[nw]).n(nw));if(r[Yr]!=null)s.c(V.of(Rp,r[Yr]).n(Yr));return s},Fo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(qH,s).n(nw)})},Uo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Io(s,f).n(wF)})},To=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(Ap,s).n(E0)})},p$=(r,f)=>{const s=new V(Rr);return s.cc(r,a$),s.cc(r,o$),s},Go=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},Co=(r,f)=>{const s={};if(r[jr]!=null)s[jr]=T(r[jr]);if(r[n]!=null)s[n]=T(r[n]);return s},Lo=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[Rf]!=null)s[Rf]=T(r[Rf]);if(r[nh]!=null)s[nh]=mr(r[nh]);return s},es=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[$s]!=null)s[$s]=T(r[$s]);if(r[l6]!=null)s[l6]=y(Hw(r[l6]));if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},Ao=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Ro=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Wo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return zo(s,f)})},zo=(r,f)=>{const s={};if(r[iG]!=null)s[iG]=T(r[iG]);if(r[pr]!=null)s[pr]=T(r[pr]);return s},So=(r,f)=>{const s={};if(r[xh]!=null)s[xh]=T(r[xh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[D0]!=null)s[D0]=er(r[D0]);return s},Po=(r,f)=>{const s={};if(r[eh]!=null)s[eh]=T(r[eh]);if(r[pr]!=null)s[pr]=T(r[pr]);return s},Xo=(r,f)=>{const s={};if(r[nG]!=null)s[nG]=$r(r[nG]);if(r[N6]!=null)s[N6]=sY(r[N6]);if(r[qG]!=null)s[qG]=T(r[qG]);if(r[P6]!=null)s[P6]=$r(r[P6]);if(r[h6]!=null)s[h6]=T(r[h6]);if(r[A6]!=null)s[A6]=T(r[A6]);if(r[k6]!=null)s[k6]=T(r[k6]);if(r.Dimensions==="")s[B$]=[];else if(r[B$]!=null&&r[B$][OQ]!=null)s[B$]=Mo(Cr(r[B$][OQ]),f);return s},Yo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ko(s,f)})},Ko=(r,f)=>{const s={};if(r[xh]!=null)s[xh]=T(r[xh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[D0]!=null)s[D0]=er(r[D0]);return s},Zo=(r,f)=>{const s={};if(r[e2]!=null)s[e2]=T(r[e2]);if(r[n2]!=null)s[n2]=T(r[n2]);return s},u$=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r.NameServers==="")s[i$]=[];else if(r[i$]!=null&&r[i$][bQ]!=null)s[i$]=lo(Cr(r[i$][bQ]),f);return s},lo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Jo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return u$(s,f)})},Qo=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},Mo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Qo(s,f)})},Bo=(r,f)=>{const s={};if(r[V6]!=null)s[V6]=T(r[V6]);if(r[s1]!=null)s[s1]=T(r[s1]);return s},Ho=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Vo=(r,f)=>{const s={};if(r[h0]!=null)s[h0]=T(r[h0]);if(r[$0]!=null)s[$0]=T(r[$0]);if(r[I0]!=null)s[I0]=T(r[I0]);return s},BH=(r,f)=>{const s={};if(r[h0]!=null)s[h0]=T(r[h0]);if(r[mG]!=null)s[mG]=T(r[mG]);if(r[$0]!=null)s[$0]=T(r[$0]);if(r[NG]!=null)s[NG]=T(r[NG]);if(r[I0]!=null)s[I0]=T(r[I0]);if(r[M6]!=null)s[M6]=T(r[M6]);return s},ko=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return BH(s,f)})},Do=(r,f)=>{const s={};if(r[O2]!=null)s[O2]=T(r[O2]);if(r[x2]!=null)s[x2]=T(r[x2]);if(r[gw]!=null)s[gw]=Zo(r[gw],f);if(r[vw]!=null)s[vw]=$r(r[vw]);return s},hF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[ah]!=null)s[ah]=DH(r[ah],f);if(r[ew]!=null)s[ew]=io(r[ew],f);if(r[jw]!=null)s[jw]=er(r[jw]);if(r[jG]!=null)s[jG]=Xo(r[jG],f);return s},io=(r,f)=>{const s={};if(r[Gw]!=null)s[Gw]=T(r[Gw]);if(r[Af]!=null)s[Af]=$r(r[Af]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[x$]!=null)s[x$]=T(r[x$]);if(r[c$]!=null)s[c$]=T(r[c$]);if(r[n$]!=null)s[n$]=T(r[n$]);if(r[Ow]!=null)s[Ow]=$r(r[Ow]);if(r[Gf]!=null)s[Gf]=$r(r[Gf]);if(r[dw]!=null)s[dw]=mr(r[dw]);if(r[Lf]!=null)s[Lf]=mr(r[Lf]);if(r[Uf]!=null)s[Uf]=mr(r[Uf]);if(r[Cf]!=null)s[Cf]=$r(r[Cf]);if(r.ChildHealthChecks==="")s[Nw]=[];else if(r[Nw]!=null&&r[Nw][q6]!=null)s[Nw]=Ro(Cr(r[Nw][q6]),f);if(r[Tf]!=null)s[Tf]=mr(r[Tf]);if(r.Regions==="")s[qw]=[];else if(r[qw]!=null&&r[qw][jr]!=null)s[qw]=mo(Cr(r[qw][jr]),f);if(r[w0]!=null)s[w0]=Co(r[w0],f);if(r[_$]!=null)s[_$]=T(r[_$]);if(r[o2]!=null)s[o2]=T(r[o2]);return s},yo=(r,f)=>{const s={};if(r[jr]!=null)s[jr]=T(r[jr]);if(r[Gw]!=null)s[Gw]=T(r[Gw]);if(r[H6]!=null)s[H6]=ra(r[H6],f);return s},HH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return yo(s,f)})},mo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},No=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return hF(s,f)})},$F=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[OG]!=null)s[OG]=qo(r[OG],f);if(r[K6]!=null)s[K6]=er(r[K6]);if(r[ah]!=null)s[ah]=DH(r[ah],f);return s},qo=(r,f)=>{const s={};if(r[Ur]!=null)s[Ur]=T(r[Ur]);if(r[uh]!=null)s[uh]=mr(r[uh]);return s},vo=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},jo=(r,f)=>{const s={};if(r[W6]!=null)s[W6]=T(r[W6]);if(r[z6]!=null)s[z6]=T(r[z6]);return s},VH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return $F(s,f)})},Oo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return co(s,f)})},co=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[R6]!=null)s[R6]=jo(r[R6],f);return s},kH=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[uG]!=null)s[uG]=T(r[uG]);if(r[oG]!=null)s[oG]=$r(r[oG]);if(r[J6]!=null)s[J6]=T(r[J6]);if(r[Q6]!=null)s[Q6]=$r(r[Q6]);if(r[cG]!=null)s[cG]=T(r[cG]);if(r[bG]!=null)s[bG]=$r(r[bG]);if(r[s6]!=null)s[s6]=$r(r[s6]);if(r[xG]!=null)s[xG]=T(r[xG]);if(r[S6]!=null)s[S6]=T(r[S6]);if(r[_G]!=null)s[_G]=T(r[_G]);if(r[gG]!=null)s[gG]=T(r[gG]);if(r[$s]!=null)s[$s]=T(r[$s]);if(r[s1]!=null)s[s1]=T(r[s1]);if(r[yG]!=null)s[yG]=y(Hw(r[yG]));if(r[f6]!=null)s[f6]=y(Hw(r[f6]));return s},bo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return kH(s,f)})},DH=(r,f)=>{const s={};if(r[B6]!=null)s[B6]=T(r[B6]);if(r[eG]!=null)s[eG]=T(r[eG]);return s},go=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return _o(s,f)})},_o=(r,f)=>{const s={};if(r[pr]!=null)s[pr]=T(r[pr]);return s},v6=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[b2]!=null)s[b2]=T(r[b2]);return s},xo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return v6(s,f)})},eo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},no=(r,f)=>{const s={};if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},oo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return no(s,f)})},ao=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[r1]!=null)s[r1]=T(r[r1]);if(r[w1]!=null)s[w1]=er(r[w1]);if(r[jr]!=null)s[jr]=T(r[jr]);if(r[_w]!=null)s[_w]=Vo(r[_w],f);if(r[oh]!=null)s[oh]=T(r[oh]);if(r[ph]!=null)s[ph]=mr(r[ph]);if(r[vr]!=null)s[vr]=er(r[vr]);if(r.ResourceRecords==="")s[gh]=[];else if(r[gh]!=null&&r[gh][fF]!=null)s[gh]=oo(Cr(r[gh][fF]),f);if(r[cw]!=null)s[cw]=Lo(r[cw],f);if(r[g$]!=null)s[g$]=T(r[g$]);if(r[u2]!=null)s[u2]=T(r[u2]);if(r[bw]!=null)s[bw]=Po(r[bw],f);if(r[xw]!=null)s[xw]=Do(r[xw],f);return s},po=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return ao(s,f)})},iH=(r,f)=>{const s={};if(r[Z6]!=null)s[Z6]=T(r[Z6]);if(r[E0]!=null)s[E0]=T(r[E0]);if(r.Tags==="")s[d$]=[];else if(r[d$]!=null&&r[d$][wF]!=null)s[d$]=fa(Cr(r[d$][wF]),f);return s},uo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return iH(s,f)})},to=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},ra=(r,f)=>{const s={};if(r[$s]!=null)s[$s]=T(r[$s]);if(r[vG]!=null)s[vG]=y(Hw(r[vG]));return s},sa=(r,f)=>{const s={};if(r[nw]!=null)s[nw]=T(r[nw]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},fa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return sa(s,f)})},wa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return t$(s,f)})},t$=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[D0]!=null)s[D0]=$r(r[D0]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[H0]!=null)s[H0]=T(r[H0]);if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},EF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[vr]!=null)s[vr]=er(r[vr]);if(r[D6]!=null)s[D6]=T(r[D6]);if(r[Zr]!=null)s[Zr]=T(r[Zr]);if(r[f1]!=null)s[f1]=T(r[f1]);if(r[bs]!=null)s[bs]=$r(r[bs]);if(r[m6]!=null)s[m6]=T(r[m6]);return s},j6=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return EF(s,f)})},ha=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return $a(s,f)})},$a=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[w6]!=null)s[w6]=$r(r[w6]);if(r[i6]!=null)s[i6]=$r(r[i6]);return s},d6=(r,f)=>{const s={};if(r[a$]!=null)s[a$]=T(r[a$]);if(r[o$]!=null)s[o$]=T(r[o$]);return s},yH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return d6(s,f)})},J=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var _h="Action",Ea="AliasHealthEnabled",w0="AlarmIdentifier",Ia="AlarmName",Fa="AddTags",cw="AliasTarget",Ua="AssociateVPCComment",Ta="AssociateVPCWithHostedZoneRequest",O2="AWSRegion",xh="Arn",vw="Bias",Ur="Comment",Ga="ChangeAction",c2="ChangeBatch",Z$="CidrBlocks",iG="CidrBlock",h0="ContinentCode",Ca="CidrCollectionChange",La="CidrCollectionChangeAction",Aa="ChangeCidrCollectionRequest",Ra="CreateCidrCollectionRequest",l$="CidrCollections",$0="CountryCode",yG="CreatedDate",Nw="ChildHealthChecks",Wa="CreateHealthCheckRequest",q6="ChildHealthCheck",za="CreateHostedZoneRequest",wr="ChangeInfo",J$="CheckerIpRanges",eh="CollectionId",Sa="CreateKeySigningKeyRequest",Q$="CidrLocations",Pa="CidrLocationNameDefaultAllowed",Xa="CidrLocationNameDefaultNotAllowed",Ya="CidrList",Ka="CidrNonce",Za="CollectionName",mG="ContinentName",NG="CountryName",qG="ComparisonOperator",la="CreateQueryLoggingConfigRequest",Pr="CallerReference",bw="CidrRoutingConfig",Ja="CreateReusableDelegationSetRequest",Qa="ChangeResourceRecordSetsRequest",vG="CheckedTime",Ma="ChangeTagsForResourceRequest",Ba="CreateTrafficPolicyInstanceRequest",Ha="CreateTrafficPolicyRequest",Va="CreateTrafficPolicyVersionRequest",d2="CollectionVersion",ka="CreateVPCAssociationAuthorizationRequest",jG="CloudWatchAlarmConfiguration",b2="CloudWatchLogsLogGroupArn",Da="CloudWatchRegion",mH="Changes",NH="Change",dQ="Cidr",dG="Collection",OG="Config",gw="Coordinates",B0="Count",H0="Document",cG="DigestAlgorithmMnemonic",bG="DigestAlgorithmType",gG="DNSKEYRecord",Rf="DNSName",Ls="DelegationSet",g2="DelegationSetId",_G="DSRecord",M$="DelegationSets",xG="DigestValue",ia="DeleteVPCAssociationAuthorizationRequest",ya="DisassociateVPCComment",ma="DisassociateVPCFromHostedZoneRequest",eG="Description",Uf="Disabled",B$="Dimensions",OQ="Dimension",Na="EDNS0ClientSubnetIP",qa="EDNS0ClientSubnetMask",nG="EvaluationPeriods",Tf="EnableSNI",nh="EvaluateTargetHealth",oh="Failover",c$="FullyQualifiedDomainName",Gf="FailureThreshold",oG="Flag",_w="GeoLocation",va="GeoLocationContinentCode",ja="GeoLocationCountryCode",b$="GeoLocationDetails",H$="GeoLocationDetailsList",da="GeoLocationSubdivisionCode",xw="GeoProximityLocation",Wf="HealthCheck",ew="HealthCheckConfig",aG="HealthCheckCount",g$="HealthCheckId",Oa="HealthCheckNonce",r0="HealthCheckObservations",sF="HealthCheckObservation",ca="HealthCheckRegion",ba="HealthCheckType",jw="HealthCheckVersion",V$="HealthChecks",Cf="HealthThreshold",Ys="HostedZone",_2="HostedZoneConfig",pG="HostedZoneCount",sr="HostedZoneId",Tw="HostedZoneIdMarker",k$="HostedZoneSummaries",cQ="HostedZoneSummary",ga="HostedZoneType",s0="HostedZones",Lf="Inverted",_$="InsufficientDataHealthStatus",Gw="IPAddress",_a="IsPrivateZone",Tr="IsTruncated",Gr="Id",nw="Key",uG="KmsArn",tG="KeyManagementServiceArn",r6="KeySigningKey",D$="KeySigningKeys",s6="KeyTag",i0="Location",f6="LastModifiedDate",pr="LocationName",ah="LinkedService",xa="ListTagsForResourcesRequest",w6="LatestVersion",x2="LocalZoneGroup",e2="Latitude",V0="Limit",n2="Longitude",gs="Marker",a="MaxItems",dw="MeasureLatency",h6="MetricName",rE="MaxResults",ph="MultiValueAnswer",Zr="Message",n="Name",$6="NextContinentCode",E6="NextCountryCode",I6="NextDNSName",F6="NextHostedZoneId",k0="NextMarker",U6="NextRecordIdentifier",T6="NextRecordName",G6="NextRecordType",i$="NameServers",C6="NextSubdivisionCode",bQ="NameServer",Xr="NextToken",L6="Nameserver",A6="Namespace",O6="Nonce",R6="Owner",W6="OwningAccount",z6="OwningService",Af="Port",S6="PublicKey",uh="PrivateZone",P6="Period",X6="Protocol",Cw="QueryLoggingConfig",y$="QueryLoggingConfigs",qw="Regions",Y6="ResponseCode",o2="RoutingControlArn",c6="ResourceDescription",gQ="RecordDataEntry",ea="RData",m$="RecordData",na="ResetElements",_Q="ResettableElementName",E0="ResourceId",oa="ResolverIP",aa="ResourceIds",Ow="RequestInterval",a2="RecordName",x$="ResourcePath",fF="ResourceRecord",N$="ResourceRecordSets",K6="ResourceRecordSetCount",pa="ResourceRecordSetFailover",ua="ResourceRecordSetIdentifier",ta="ResourceRecordSetMultiValueAnswer",rp="ResourceRecordSetRegion",sp="ResourceRecordSetWeight",th="ResourceRecordSet",fp="RRType",gh="ResourceRecords",p2="RecordType",wp="RemoveTagKeys",e$="ResourceTagSet",q$="ResourceTagSets",Z6="ResourceType",jr="Region",$s="Status",l6="SubmittedAt",J6="SigningAlgorithmMnemonic",Q6="SigningAlgorithmType",I0="SubdivisionCode",hp="StartContinentCode",$p="StartCountryCode",r1="SetIdentifier",Ep="SigningKeyName",Ip="SigningKeyString",Fp="SigningKeyStatus",s1="StatusMessage",M6="SubdivisionName",B6="ServicePrincipal",H6="StatusReport",Up="StartRecordIdentifier",Tp="StartRecordName",Gp="StartRecordType",n$="SearchString",Cp="StartSubdivisionCode",V6="ServeSignature",k6="Statistic",D6="State",Ar="Type",qH="TagKey",As="TrafficPolicy",b6="TrafficPolicyComment",i6="TrafficPolicyCount",vH="TrafficPolicyDocument",f1="TrafficPolicyId",y6="TrafficPolicyInstanceCount",u2="TrafficPolicyInstanceId",t2="TrafficPolicyIdMarker",_s="TrafficPolicyInstanceNameMarker",xs="TrafficPolicyInstanceTypeMarker",Es="TrafficPolicyInstance",hs="TrafficPolicyInstances",Lp="TrafficPolicyName",v$="TrafficPolicySummaries",xQ="TrafficPolicySummary",m6="TrafficPolicyType",bs="TrafficPolicyVersion",rF="TrafficPolicyVersionMarker",j$="TrafficPolicies",Ap="TagResourceId",vr="TTL",Rp="TagValue",wF="Tag",d$="Tags",N6="Threshold",Wp="UpdateHealthCheckRequest",zp="UpdateHostedZoneCommentRequest",Sp="UpdateTrafficPolicyCommentRequest",Pp="UpdateTrafficPolicyInstanceRequest",Xp="UUID",Yr="Value",Rr="VPC",o$="VPCId",a$="VPCRegion",f0="VPCs",D0="Version",w1="Weight",Yp="continentcode",Kp="countrycode",Zp="delegationsetid",lp="dnsname",Jp="edns0clientsubnetip",Qp="edns0clientsubnetmask",Mp="hostedzonetype",sE="hostedzoneid",Bp="identifier",jH="id",F0="location",fE="maxresults",ns="maxitems",g6="marker",zf="member",X="message",O$="messages",h1="nexttoken",Hp="name",Vp="recordname",kp="recordtype",Dp="resolverip",ip="subdivisioncode",yp="startcontinentcode",mp="startcountrycode",Np="startsubdivisioncode",qp="type",vp="trafficpolicyid",_6="trafficpolicyinstancename",x6="trafficpolicyinstancetype",jp="trafficpolicyversion",dp="vpcid",Vr='<?xml version="1.0" encoding="UTF-8"?>',Op="version",cp="vpcregion";class e6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(eQ).de(UB).build(){}M();H();Y();class n6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(nQ).de(TB).build(){}M();H();Y();class o6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(oQ).de(GB).build(){}M();H();Y();class a6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),qQ(s),N(s)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(aQ).de(CB).build(){}M();H();Y();class p6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(pQ).de(LB).build(){}M();H();Y();class u6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(uQ).de(AB).build(){}M();H();Y();class t6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(tQ).de(RB).build(){}M();H();Y();class r4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(rM).de(WB).build(){}M();H();Y();class s4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(sM).de(zB).build(){}M();H();Y();class f4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(fM).de(SB).build(){}M();H();Y();class w4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(wM).de(PB).build(){}M();H();Y();class h4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(hM).de(XB).build(){}M();H();Y();class $4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser($M).de(YB).build(){}M();H();Y();class E4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(EM).de(KB).build(){}M();H();Y();class I4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(IM).de(ZB).build(){}M();H();Y();class F4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(FM).de(lB).build(){}M();H();Y();class U4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(UM).de(JB).build(){}M();H();Y();class T4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(TM).de(QB).build(){}M();H();Y();class G4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(GM).de(MB).build(){}M();H();Y();class C4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(CM).de(BB).build(){}M();H();Y();class L4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(LM).de(HB).build(){}M();H();Y();class A4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(AM).de(VB).build(){}M();H();Y();class R4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(RM).de(kB).build(){}M();H();Y();class W4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(WM).de(DB).build(){}M();H();Y();class z4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(zM).de(iB).build(){}M();H();Y();class S4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(SM).de(yB).build(){}M();H();Y();class P4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(PM).de(mB).build(){}M();H();Y();class X4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(XM).de(NB).build(){}M();H();Y();class Y4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(YM).de(qB).build(){}M();H();Y();class K4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(KM).de(vB).build(){}M();H();Y();class Z4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(ZM).de(jB).build(){}M();H();Y();class l4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(lM).de(dB).build(){}M();H();Y();class J4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(JM).de(OB).build(){}M();H();Y();class Q4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(QM).de(cB).build(){}M();H();Y();class M4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(MM).de(bB).build(){}M();H();Y();class B4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(BM).de(gB).build(){}M();H();Y();class H4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(HM).de(_B).build(){}M();H();Y();class V4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(VM).de(xB).build(){}M();H();Y();class k4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(kM).de(eB).build(){}M();H();Y();class D4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(DM).de(nB).build(){}M();H();Y();class i4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(iM).de(oB).build(){}M();H();Y();class y4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(yM).de(aB).build(){}M();H();Y();class m4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(mM).de(pB).build(){}M();H();Y();class N4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(NM).de(uB).build(){}M();H();Y();class q4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(qM).de(tB).build(){}M();H();Y();class v4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(vM).de(rH).build(){}M();H();Y();class j4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(jM).de(sH).build(){}M();H();Y();class d4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(dM).de(fH).build(){}M();H();Y();class O4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(OM).de(wH).build(){}M();H();Y();class c4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(cM).de(hH).build(){}M();H();Y();class b4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(bM).de($H).build(){}M();H();Y();class g4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(_M).de(IH).build(){}M();H();Y();class _4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(xM).de(FH).build(){}M();H();Y();class x4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(gM).de(EH).build(){}M();H();Y();class e4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(eM).de(UH).build(){}M();H();Y();class n4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(nM).de(TH).build(){}M();H();Y();class o4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(oM).de(GH).build(){}M();H();Y();class a4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(aM).de(CH).build(){}M();H();Y();class p4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(pM).de(LH).build(){}M();H();Y();class u4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(uM).de(AH).build(){}M();H();Y();class t4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(rB).de(WH).build(){}M();H();Y();class rC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(sB).de(zH).build(){}M();H();Y();class sC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(tM).de(RH).build(){}M();H();Y();class fC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(fB).de(SH).build(){}M();H();Y();class wC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(wB).de(PH).build(){}M();H();Y();class hC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(hB).de(XH).build(){}M();H();Y();class $C extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser($B).de(YH).build(){}M();H();Y();class EC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(EB).de(KH).build(){}M();H();Y();class IC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(IB).de(ZH).build(){}M();H();Y();class FC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(FB).de(lH).build(){}var bp={ActivateKeySigningKeyCommand:e6,AssociateVPCWithHostedZoneCommand:n6,ChangeCidrCollectionCommand:o6,ChangeResourceRecordSetsCommand:a6,ChangeTagsForResourceCommand:p6,CreateCidrCollectionCommand:u6,CreateHealthCheckCommand:t6,CreateHostedZoneCommand:r4,CreateKeySigningKeyCommand:s4,CreateQueryLoggingConfigCommand:f4,CreateReusableDelegationSetCommand:w4,CreateTrafficPolicyCommand:h4,CreateTrafficPolicyInstanceCommand:$4,CreateTrafficPolicyVersionCommand:E4,CreateVPCAssociationAuthorizationCommand:I4,DeactivateKeySigningKeyCommand:F4,DeleteCidrCollectionCommand:U4,DeleteHealthCheckCommand:T4,DeleteHostedZoneCommand:G4,DeleteKeySigningKeyCommand:C4,DeleteQueryLoggingConfigCommand:L4,DeleteReusableDelegationSetCommand:A4,DeleteTrafficPolicyCommand:R4,DeleteTrafficPolicyInstanceCommand:W4,DeleteVPCAssociationAuthorizationCommand:z4,DisableHostedZoneDNSSECCommand:S4,DisassociateVPCFromHostedZoneCommand:P4,EnableHostedZoneDNSSECCommand:X4,GetAccountLimitCommand:Y4,GetChangeCommand:K4,GetCheckerIpRangesCommand:Z4,GetDNSSECCommand:l4,GetGeoLocationCommand:J4,GetHealthCheckCommand:Q4,GetHealthCheckCountCommand:M4,GetHealthCheckLastFailureReasonCommand:B4,GetHealthCheckStatusCommand:H4,GetHostedZoneCommand:V4,GetHostedZoneCountCommand:k4,GetHostedZoneLimitCommand:D4,GetQueryLoggingConfigCommand:i4,GetReusableDelegationSetCommand:y4,GetReusableDelegationSetLimitCommand:m4,GetTrafficPolicyCommand:N4,GetTrafficPolicyInstanceCommand:q4,GetTrafficPolicyInstanceCountCommand:v4,ListCidrBlocksCommand:j4,ListCidrCollectionsCommand:d4,ListCidrLocationsCommand:O4,ListGeoLocationsCommand:c4,ListHealthChecksCommand:b4,ListHostedZonesCommand:x4,ListHostedZonesByNameCommand:g4,ListHostedZonesByVPCCommand:_4,ListQueryLoggingConfigsCommand:e4,ListResourceRecordSetsCommand:n4,ListReusableDelegationSetsCommand:o4,ListTagsForResourceCommand:a4,ListTagsForResourcesCommand:p4,ListTrafficPoliciesCommand:u4,ListTrafficPolicyInstancesCommand:sC,ListTrafficPolicyInstancesByHostedZoneCommand:t4,ListTrafficPolicyInstancesByPolicyCommand:rC,ListTrafficPolicyVersionsCommand:fC,ListVPCAssociationAuthorizationsCommand:wC,TestDNSAnswerCommand:hC,UpdateHealthCheckCommand:$C,UpdateHostedZoneCommentCommand:EC,UpdateTrafficPolicyCommentCommand:IC,UpdateTrafficPolicyInstanceCommand:FC};class Lw extends kG{}df(bp,Lw);aw();pw();uw();rh();Ms();var $1=u(Or(),1);Th();M();Ef();Y();var dH=u(Br(),1);rf();function gp(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var OH=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},cH=(r)=>{const f=[];switch(r.operation){default:f.push(gp(r))}return f},bH=(r)=>{return{...dH.resolveAwsSdkSigV4Config(r)}};var gH=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},b={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var _H={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var EV=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();var hV=u(Br(),1);Y();b0();W0();jf();Ww();us();var xH={["required"]:!1,type:"String"},eH={["required"]:!0,default:!1,type:"Boolean"},nH={["ref"]:"Endpoint"},rV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},sV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},U0={},oH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},aH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},pH=[rV],uH=[sV],tH=[{["ref"]:"Region"}],xp={version:"1.0",parameters:{Region:xH,UseDualStack:eH,UseFIPS:eH,Endpoint:xH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[nH]}],rules:[{conditions:pH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:uH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:nH,properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:tH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:tH,assign:"PartitionResult"}],rules:[{conditions:[rV,sV],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,oH]},aH],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:pH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[oH,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:uH,rules:[{conditions:[aH],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},fV=xp;var wV=(r,f={})=>{return ps(fV,{endpointParams:r,logger:f.logger})};ur.aws=ts;var $V=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??wV,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??cH,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new hV.AwsSdkSigV4Signer}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};Y();Qh();Y();var IV=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=$V(r);return EV.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:_H.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};Mh();ir();Y();var FV=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},UV=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var IF=(r)=>r,TV=(r,f)=>{const s={...IF(pf(r)),...IF(_f(r)),...IF(Pf(r)),...IF(FV(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...UV(s)}};class UC extends zs{constructor(...[r]){const f=IV(r||{}),s=gH(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=bH(I),U=TV(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use($1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:OH,identityProviderConfigProvider:async(C)=>new $1.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();M();H();Y();Y();Y();class os extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,os.prototype)}}class FF extends os{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,FF.prototype)}}class UF extends os{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,UF.prototype)}}class TF extends os{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,TF.prototype)}}class GF extends os{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,GF.prototype)}}class CF extends os{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,CF.prototype)}}class LF extends os{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,LF.prototype),this.requestId=r.requestId}}class AF extends os{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,AF.prototype)}}var GV=(r)=>({...r,...r.Password&&{Password:o}}),CV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}});var LV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.AbuseContactEmail&&{AbuseContactEmail:o},...r.AbuseContactPhone&&{AbuseContactPhone:o},...r.BillingContact&&{BillingContact:o}}),AV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),RV=(r)=>({...r,...r.emailAddress&&{emailAddress:o}}),WV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}}),zV=(r)=>({...r,...r.AuthCode&&{AuthCode:o},...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),SV=(r)=>({...r,...r.Password&&{Password:o}}),PV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),XV=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:o}});var fr=u(Br(),1);ir();Y();function Fr(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}var YV=async(r,f)=>{const s=Fr("AcceptDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},KV=async(r,f)=>{const s=Fr("AssociateDelegationSignerToDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},ZV=async(r,f)=>{const s=Fr("CancelDomainTransferToAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},lV=async(r,f)=>{const s=Fr("CheckDomainAvailability");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},JV=async(r,f)=>{const s=Fr("CheckDomainTransferability");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},QV=async(r,f)=>{const s=Fr("DeleteDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},MV=async(r,f)=>{const s=Fr("DeleteTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},BV=async(r,f)=>{const s=Fr("DisableDomainAutoRenew");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},HV=async(r,f)=>{const s=Fr("DisableDomainTransferLock");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},VV=async(r,f)=>{const s=Fr("DisassociateDelegationSignerFromDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},kV=async(r,f)=>{const s=Fr("EnableDomainAutoRenew");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},DV=async(r,f)=>{const s=Fr("EnableDomainTransferLock");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},iV=async(r,f)=>{const s=Fr("GetContactReachabilityStatus");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},yV=async(r,f)=>{const s=Fr("GetDomainDetail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},mV=async(r,f)=>{const s=Fr("GetDomainSuggestions");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},NV=async(r,f)=>{const s=Fr("GetOperationDetail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},qV=async(r,f)=>{const s=Fr("ListDomains");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},vV=async(r,f)=>{const s=Fr("ListOperations");let w;return w=JSON.stringify(su(r,f)),Ir(f,s,"/",void 0,w)},jV=async(r,f)=>{const s=Fr("ListPrices");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},dV=async(r,f)=>{const s=Fr("ListTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},OV=async(r,f)=>{const s=Fr("PushDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},cV=async(r,f)=>{const s=Fr("RegisterDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},bV=async(r,f)=>{const s=Fr("RejectDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},gV=async(r,f)=>{const s=Fr("RenewDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},_V=async(r,f)=>{const s=Fr("ResendContactReachabilityEmail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},xV=async(r,f)=>{const s=Fr("ResendOperationAuthorization");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},eV=async(r,f)=>{const s=Fr("RetrieveDomainAuthCode");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},nV=async(r,f)=>{const s=Fr("TransferDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},oV=async(r,f)=>{const s=Fr("TransferDomainToAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},aV=async(r,f)=>{const s=Fr("UpdateDomainContact");let w;return w=JSON.stringify(fu(r,f)),Ir(f,s,"/",void 0,w)},pV=async(r,f)=>{const s=Fr("UpdateDomainContactPrivacy");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},uV=async(r,f)=>{const s=Fr("UpdateDomainNameservers");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},tV=async(r,f)=>{const s=Fr("UpdateTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},rk=async(r,f)=>{const s=Fr("ViewBilling");let w;return w=JSON.stringify(wu(r,f)),Ir(f,s,"/",void 0,w)},sk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},fk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},wk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},hk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},$k=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ek=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ik=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Fk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Uk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Tk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Gk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ck=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Lk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ak=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Tu(s,f),{$metadata:rr(r),...w}},Rk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Wk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Gu(s,f),{$metadata:rr(r),...w}},zk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Cu(s,f),{$metadata:rr(r),...w}},Sk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Lu(s,f),{$metadata:rr(r),...w}},Pk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Au(s,f),{$metadata:rr(r),...w}},Xk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Yk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);return await xr(r.body,f),{$metadata:rr(r)}},Kk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Zk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},lk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Jk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Qk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);return await xr(r.body,f),{$metadata:rr(r)}},Mk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Bk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Hk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Vk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},kk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Dk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},ik=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},yk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=zu(s,f),{$metadata:rr(r),...w}},Er=async(r,f)=>{const s={...r,body:await fr.parseJsonErrorBody(r.body,f)},w=fr.loadRestJsonErrorCode(r,s.body);switch(w){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await np(s,f);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await ap(s,f);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await pp(s,f);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await tp(s,f);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await ep(s,f);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await op(s,f);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await up(s,f);default:const h=s.body;return Su({output:r,parsedBody:h,errorCode:w})}},ep=async(r,f)=>{const s=r.body,w=m(s),h=new CF({$metadata:rr(r),...w});return k(h,s)},np=async(r,f)=>{const s=r.body,w=m(s),h=new FF({$metadata:rr(r),...w});return k(h,s)},op=async(r,f)=>{const s=r.body,w=m(s),h=new LF({$metadata:rr(r),...w});return k(h,s)},ap=async(r,f)=>{const s=r.body,w=m(s),h=new UF({$metadata:rr(r),...w});return k(h,s)},pp=async(r,f)=>{const s=r.body,w=m(s),h=new TF({$metadata:rr(r),...w});return k(h,s)},up=async(r,f)=>{const s=r.body,w=m(s),h=new AF({$metadata:rr(r),...w});return k(h,s)},tp=async(r,f)=>{const s=r.body,w=m(s),h=new GF({$metadata:rr(r),...w});return k(h,s)},ru=(r,f)=>{return p(r,{Currency:[],MaxPrice:PY})},su=(r,f)=>{return p(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:m,SubmittedSince:(s)=>s.getTime()/1000,Type:m})},fu=(r,f)=>{return p(r,{AdminContact:m,BillingContact:m,Consent:(s)=>ru(s,f),DomainName:[],RegistrantContact:m,TechContact:m})},wu=(r,f)=>{return p(r,{End:(s)=>s.getTime()/1000,Marker:[],MaxItems:[],Start:(s)=>s.getTime()/1000})},hu=(r,f)=>{return p(r,{BillDate:(s)=>y(Of(Cs(s))),DomainName:T,InvoiceId:T,Operation:T,Price:P5})},$u=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return hu(w,f)})},Eu=(r,f)=>{return p(r,{ChangeOwnershipPrice:(s)=>wE(s,f),Name:T,RegistrationPrice:(s)=>wE(s,f),RenewalPrice:(s)=>wE(s,f),RestorationPrice:(s)=>wE(s,f),TransferPrice:(s)=>wE(s,f)})},Iu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Eu(w,f)})},Fu=(r,f)=>{return p(r,{AutoRenew:x0,DomainName:T,Expiry:(s)=>y(Of(Cs(s))),TransferLock:x0})},Uu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Fu(w,f)})},Tu=(r,f)=>{return p(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:m,AdminPrivacy:x0,AutoRenew:x0,BillingContact:m,BillingPrivacy:x0,CreationDate:(s)=>y(Of(Cs(s))),DnsSec:T,DnssecKeys:m,DomainName:T,ExpirationDate:(s)=>y(Of(Cs(s))),Nameservers:m,RegistrantContact:m,RegistrantPrivacy:x0,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:m,TechContact:m,TechPrivacy:x0,UpdatedDate:(s)=>y(Of(Cs(s))),WhoIsServer:T})},Gu=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(Of(Cs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(Of(Cs(s))),Type:T})},Cu=(r,f)=>{return p(r,{Domains:(s)=>Uu(s,f),NextPageMarker:T})},Lu=(r,f)=>{return p(r,{NextPageMarker:T,Operations:(s)=>Wu(s,f)})},Au=(r,f)=>{return p(r,{NextPageMarker:T,Prices:(s)=>Iu(s,f)})},Ru=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(Of(Cs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(Of(Cs(s))),Type:T})},Wu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Ru(w,f)})},wE=(r,f)=>{return p(r,{Currency:T,Price:P5})},zu=(r,f)=>{return p(r,{BillingRecords:(s)=>$u(s,f),NextPageMarker:T})},rr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var Su=cf(os),Ir=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)};class TC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(GV,void 0).ser(YV).de(sk).build(){}M();H();Y();class GC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(KV).de(fk).build(){}M();H();Y();class CC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(ZV).de(wk).build(){}M();H();Y();class LC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(lV).de(hk).build(){}M();H();Y();class AC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(CV,void 0).ser(JV).de($k).build(){}M();H();Y();class RC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(QV).de(Ek).build(){}M();H();Y();class WC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(MV).de(Ik).build(){}M();H();Y();class zC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(BV).de(Fk).build(){}M();H();Y();class SC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(HV).de(Uk).build(){}M();H();Y();class PC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(VV).de(Tk).build(){}M();H();Y();class XC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(kV).de(Gk).build(){}M();H();Y();class YC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(DV).de(Ck).build(){}M();H();Y();class KC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(iV).de(Lk).build(){}M();H();Y();class ZC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,LV).ser(yV).de(Ak).build(){}M();H();Y();class lC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(mV).de(Rk).build(){}M();H();Y();class JC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(NV).de(Wk).build(){}M();H();Y();class QC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(qV).de(zk).build(){}M();H();Y();class MC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(vV).de(Sk).build(){}M();H();Y();class BC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(jV).de(Pk).build(){}M();H();Y();class HC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(dV).de(Xk).build(){}M();H();Y();class VC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(OV).de(Yk).build(){}M();H();Y();class kC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(AV,void 0).ser(cV).de(Kk).build(){}M();H();Y();class DC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(bV).de(Zk).build(){}M();H();Y();class iC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(gV).de(lk).build(){}M();H();Y();class yC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,RV).ser(_V).de(Jk).build(){}M();H();Y();class mC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(xV).de(Qk).build(){}M();H();Y();class NC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,WV).ser(eV).de(Mk).build(){}M();H();Y();class qC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(zV,void 0).ser(nV).de(Bk).build(){}M();H();Y();class vC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,SV).ser(oV).de(Hk).build(){}M();H();Y();class jC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(PV,void 0).ser(aV).de(Vk).build(){}M();H();Y();class dC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(pV).de(kk).build(){}M();H();Y();class OC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(XV,void 0).ser(uV).de(Dk).build(){}M();H();Y();class cC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(tV).de(ik).build(){}M();H();Y();class bC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(rk).de(yk).build(){}var Pu={AcceptDomainTransferFromAnotherAwsAccountCommand:TC,AssociateDelegationSignerToDomainCommand:GC,CancelDomainTransferToAnotherAwsAccountCommand:CC,CheckDomainAvailabilityCommand:LC,CheckDomainTransferabilityCommand:AC,DeleteDomainCommand:RC,DeleteTagsForDomainCommand:WC,DisableDomainAutoRenewCommand:zC,DisableDomainTransferLockCommand:SC,DisassociateDelegationSignerFromDomainCommand:PC,EnableDomainAutoRenewCommand:XC,EnableDomainTransferLockCommand:YC,GetContactReachabilityStatusCommand:KC,GetDomainDetailCommand:ZC,GetDomainSuggestionsCommand:lC,GetOperationDetailCommand:JC,ListDomainsCommand:QC,ListOperationsCommand:MC,ListPricesCommand:BC,ListTagsForDomainCommand:HC,PushDomainCommand:VC,RegisterDomainCommand:kC,RejectDomainTransferFromAnotherAwsAccountCommand:DC,RenewDomainCommand:iC,ResendContactReachabilityEmailCommand:yC,ResendOperationAuthorizationCommand:mC,RetrieveDomainAuthCodeCommand:NC,TransferDomainCommand:qC,TransferDomainToAnotherAwsAccountCommand:vC,UpdateDomainContactCommand:jC,UpdateDomainContactPrivacyCommand:dC,UpdateDomainNameserversCommand:OC,UpdateTagsForDomainCommand:cC,ViewBillingCommand:bC};class hE extends UC{}df(Pu,hE);import{runAction as Xu}from"@stacksjs/actions";import{config as Nk}from"@stacksjs/config";import{Action as Yu}from"@stacksjs/enums";import{err as ow,handleError as gC,ok as E1}from"@stacksjs/error-handling";import{log as Aw}from"@stacksjs/logging";import{path as Ku}from"@stacksjs/path";import{fs as mk}from"@stacksjs/storage";async function DHr(r){const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return ow(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return ow(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return ow(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return await f.deleteHostedZone({Id:w.Id}),Aw.info(`Deleted Hosted Zone for domain: ${r}`),E1("success")}async function iHr(r){const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return ow(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return ow(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return ow(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return Aw.info(`Deleted DNS records for domain: ${r}`),E1("success")}async function yHr(r){const f=new Lw,w=(await f.listHostedZonesByName({DNSName:r})).HostedZones?.find(($)=>$.Name===`${r}.`);if(w)return E1(w);const h=await f.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!h.HostedZone)return ow("Failed to create hosted zone");return E1(h)}function Zu(r){try{const f=Ku.projectConfigPath("dns.ts"),w=mk.readFileSync(f,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((h)=>`'${h}'`).join(", ")}]`);mk.writeFileSync(f,w,"utf-8"),Aw.info("Nameservers have been set.")}catch(f){console.error("Error updating nameservers:",f)}}async function mHr(r){try{const f=new Lw,{HostedZones:s}=await f.listHostedZonesByName({DNSName:r});if(!s)return gC(`No hosted zones found for domain ${r}`);const w=s[0];if(w&&w.Name===`${r}.`)return E1(w.Id);return E1(null)}catch(f){return console.error(f),gC(`Failed to find hosted zone for domain ${r}`)}}async function lu(r){if(!r)return[];try{return(await new hE().getDomainDetail({DomainName:r}))?.Nameservers?.map((w)=>w.Name)||[]}catch(f){console.error(f),gC("Error getting domain detail")}}async function Ju(r,f){if(!f)f=Nk.app.url;const s=await lu(f);if(s&&r&&JSON.stringify(s.sort())!==JSON.stringify(r.sort()))return Aw.info("Updating your domain nameservers to match the ones in your hosted zone..."),Aw.debug("Hosted zone nameservers:",r),Aw.debug("Domain nameservers:",s),await new hE().updateDomainNameservers({DomainName:f,Nameservers:r.map((h)=>({Name:h}))}),Zu(r),Aw.info("Nameservers updated."),!0;Aw.success("Your nameservers are up to date.")}async function NHr(r){if(!r)r=Nk.app.url;const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return!1;const w=s.HostedZones.find((h)=>h.Name===`${r}.`);if(w){const $=(await f.getHostedZone({Id:w.Id})).DelegationSet?.NameServers||[];return await Ju($,r),!0}return!1}async function qHr(r){return await Xu(Yu.DomainsAdd,r)}export{Zu as writeNameserversToConfig,Ju as updateNameservers,NHr as hasUserDomainBeenAddedToCloud,lu as getNameservers,mHr as findHostedZone,iHr as deleteHostedZoneRecords,DHr as deleteHostedZone,yHr as createHostedZone,qHr as addDomain};
|
|
33
|
+
`),HM=!0}throw new $w.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),_U(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r;if(!f&&!s&&!w&&!h&&!$)throw new $w.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});const{fromSSO:E}=await Promise.resolve().then(() => (mT(),qT));return E(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:f}=await Promise.resolve().then(() => (lM(),BM));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:f}=await Promise.resolve().then(() => (NG(),kG));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:f}=await Promise.resolve().then(() => (vG(),iG));return f(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await f7(r))()},async()=>{throw new $w.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),ve,ie),ie=(r)=>r?.expiration!==void 0,ve=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var VM=G(()=>{xU();$w=i(Cr(),1);rf();w7()});var d1=G(()=>{VM()});_w();xw();ew();ow();Js();var Oh=i(dr(),1);$h();B();ff();Y();var PZ=i(Br(),1);as();function ug(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var XZ=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},YZ=(r)=>{const f=[];switch(r.operation){default:f.push(ug(r))}return f},KZ=(r)=>{return{...PZ.resolveAwsSdkSigV4Config(r)}};var ZZ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},J={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var JZ={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-sdk-route53":"3.609.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@aws-sdk/xml-builder":"3.609.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var oM=i(Br(),1);d1();Sh();Js();Ph();ff();sf();d0();Xh();Cs();var xM=i(Br(),1);Y();var eM=i(I0(),1);C0();yf();Cw();ns();var DM={["required"]:!1,type:"String"},kM={["required"]:!0,default:!1,type:"Boolean"},NM={["ref"]:"Endpoint"},BI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},bM={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},cr={},yM={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},dh={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},Vw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},Z0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},qM={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},mM={["fn"]:"stringEquals",["argv"]:[dh,"aws-us-gov"]},iM={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},vM={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},jM={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},dM=[BI],OM=[bM],cM=[{["ref"]:"Region"}],je={version:"1.0",parameters:{Region:DM,UseDualStack:kM,UseFIPS:kM,Endpoint:DM},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[NM]}],rules:[{conditions:dM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:OM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:NM,properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:cM}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:cM,assign:"PartitionResult"}],rules:[{conditions:[yM,Vw,Z0],endpoint:{url:"https://route53.amazonaws.com",properties:qM,headers:cr},type:"endpoint"},{conditions:[yM,BI,Z0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:qM,headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dh,"aws-cn"]},Vw,Z0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:cr},type:"endpoint"},{conditions:[mM,Vw,Z0],endpoint:iM,type:"endpoint"},{conditions:[mM,BI,Z0],endpoint:iM,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dh,"aws-iso"]},Vw,Z0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dh,"aws-iso-b"]},Vw,Z0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dh,"aws-iso-e"]},Vw,Z0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[dh,"aws-iso-f"]},Vw,Z0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:cr},type:"endpoint"},{conditions:[BI,bM],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,vM]},jM],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:dM,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[vM,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:OM,rules:[{conditions:[jM],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},gM=je;var _M=(r,f={})=>{return es(gM,{endpointParams:r,logger:f.logger})};ar.aws=os;var nM=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Es,base64Encoder:r?.base64Encoder??Fs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??_M,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??YZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new xM.AwsSdkSigV4Signer}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??eM.parseUrl,utf8Decoder:r?.utf8Decoder??br,utf8Encoder:r?.utf8Encoder??Is}};Y();Yh();Y();var aM=(r)=>{df(process.version);const f=xf(r),s=()=>f().then(jf),w=nM(r);return oM.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??_f,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??gf({serviceId:w.serviceId,clientVersion:JZ.version}),maxAttempts:r?.maxAttempts??u(Df),region:r?.region??u(Zs,Qf),requestHandler:pr.create(r?.requestHandler??s),retryMode:r?.retryMode??u({...Nf,default:async()=>(await s()).retryMode||Vs}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??Ds,useDualstackEndpoint:r?.useDualstackEndpoint??u(Zf),useFipsEndpoint:r?.useFipsEndpoint??u(Jf)}};Kh();kr();Y();var pM=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},uM=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var lI=(r)=>r,tM=(r,f)=>{const s={...lI(ef(r)),...lI(Of(r)),...lI(Wf(r)),...lI(pM(r))};return f.forEach((w)=>w.configure(s)),{...r,...nf(s),...cf(s),...zf(s),...uM(s)}};class jG extends As{constructor(...[r]){const f=aM(r||{}),s=ZZ(f),w=Yf(s),h=kf(w),$=Mf(h),E=Rf($),I=Hf(E),F=KZ(I),U=tM(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Oh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:XZ,identityProviderConfigProvider:async(C)=>new Oh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Oh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();var HI=/^\/(hostedzone|change|delegationset)\//;function de(){return(r)=>async(f)=>{const{ChangeBatch:s}=f.input,w=[];for(let h of s.Changes){const{AliasTarget:$}=h.ResourceRecordSet;if($)w.push({...h,ResourceRecordSet:{...h.ResourceRecordSet,AliasTarget:{...$,HostedZoneId:$.HostedZoneId.replace(HI,"")}}});else w.push(h)}return r({...f,input:{...f.input,ChangeBatch:{...s,Changes:w}}})}}var Oe={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},rB=(r)=>({applyToStack:(f)=>{f.add(de(),Oe)}});function be(){return(r)=>async(f)=>{const s={...f.input};for(let w of ce){const h=s[w];if(h)s[w]=h.replace(HI,"")}return r({...f,input:s})}}var ce=["DelegationSetId","HostedZoneId","Id"],ge={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},m=(r)=>({applyToStack:(f)=>{f.add(be(),ge)}});B();H();Y();var _=i(Br(),1);function sB(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function fB(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class dG{constructor(r){this.value=r}toString(){return fB(""+this.value)}}class V{static of(r,f,s){const w=new V(r);if(f!==void 0)w.addChildNode(new dG(f));if(s!==void 0)w.withName(s);return w}constructor(r,f=[]){this.name=r,this.children=f,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,f){return this.attributes[r]=f,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,f){if(f!=null)this.attributes[r]=f;return this}cc(r,f,s=f){if(r[f]!=null){const w=V.of(f,r[f]).withName(s);this.c(w)}}l(r,f,s,w){if(r[f]!=null)w().map(($)=>{$.withName(s),this.c($)})}lc(r,f,s,w){if(r[f]!=null){const h=w(),$=new V(s);h.map((E)=>{$.c(E)}),this.c($)}}toString(){const r=Boolean(this.children.length);let f=`<${this.name}`;const s=this.attributes;for(let w of Object.keys(s)){const h=s[w];if(h!=null)f+=` ${w}="${sB(""+h)}"`}return f+=!r?"/>":`>${this.children.map((w)=>w.toString()).join("")}</${this.name}>`}}var c=i(dr(),1);Y();Y();class d extends ks{constructor(r){super(r);Object.setPrototypeOf(this,d.prototype)}}class VI extends d{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,VI.prototype)}}class DI extends d{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,DI.prototype)}}class kI extends d{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class NI extends d{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,NI.prototype)}}class yI extends d{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class qI extends d{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,qI.prototype)}}class mI extends d{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,mI.prototype)}}class iI extends d{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class vI extends d{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,vI.prototype)}}class jI extends d{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,jI.prototype)}}class dI extends d{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype)}}class OI extends d{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,OI.prototype)}}class cI extends d{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class bI extends d{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,bI.prototype),this.Message=r.Message}}class gI extends d{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.Message=r.Message}}class _I extends d{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,_I.prototype),this.Message=r.Message}}class xI extends d{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,xI.prototype),this.messages=r.messages}}class eI extends d{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class nI extends d{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,nI.prototype)}}class oI extends d{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,oI.prototype),this.Message=r.Message}}class aI extends d{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends d{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,pI.prototype)}}class uI extends d{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,uI.prototype)}}class tI extends d{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}class r2 extends d{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}}class s2 extends d{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class f2 extends d{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class w2 extends d{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,w2.prototype)}}class h2 extends d{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class $2 extends d{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class E2 extends d{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class I2 extends d{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends d{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends d{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends d{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends d{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class C2 extends d{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class L2 extends d{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class A2 extends d{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class W2 extends d{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,W2.prototype)}}class z2 extends d{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class R2 extends d{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class S2 extends d{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class P2 extends d{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,P2.prototype)}}class X2 extends d{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class Y2 extends d{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class K2 extends d{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends d{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class J2 extends d{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,J2.prototype),this.Message=r.Message}}class Q2 extends d{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class M2 extends d{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class B2 extends d{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class l2 extends d{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class H2 extends d{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class V2 extends d{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class D2 extends d{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class k2 extends d{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class N2 extends d{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,N2.prototype)}}class y2 extends d{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class q2 extends d{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class m2 extends d{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class i2 extends d{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class v2 extends d{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,v2.prototype)}}class j2 extends d{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,j2.prototype)}}class d2 extends d{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,d2.prototype)}}class O2 extends d{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,O2.prototype),this.Message=r.Message}}class c2 extends d{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,c2.prototype)}}class b2 extends d{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,b2.prototype)}}class g2 extends d{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,g2.prototype)}}var TB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},GB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const $=new V(la);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(Ba,r[Fr]).n(Fr));if(r[Ar]!=null)$.c(n$(r[Ar],f).n(Ar));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},CB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const $=new V(ka);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"Changes","Changes",()=>Lo(r[uH],f)),r[_2]!=null)$.c(V.of(_2,String(r[_2])).n(_2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},LB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const $=new V(ga);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[e2]!=null)$.c(To(r[e2],f).n(e2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},AB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;h=Hr;const $=new V(_a);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"AddTags","AddTags",()=>Bo(r[Ma],f)),$.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>Mo(r[Yp],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},WB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection");let h;h=Hr;const $=new V(Na);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Sr]!=null)$.c(V.of(da,r[Sr]).n(Sr));if(r[n]!=null)$.c(V.of(Oa,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},zB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck");let h;h=Hr;const $=new V(ya);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Sr]!=null)$.c(V.of($p,r[Sr]).n(Sr));if(r[cw]!=null)$.c(Po(r[cw],f).n(cw));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},RB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone");let h;h=Hr;const $=new V(qa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Sr]!=null)$.c(V.of(o6,r[Sr]).n(Sr));if(r[o2]!=null)$.c(V.of(f0,r[o2]).n(o2));if(r[a2]!=null)$.c(Xo(r[a2],f).n(a2));if(r[n]!=null)$.c(V.of(Gf,r[n]).n(n));if(r[Ar]!=null)$.c(n$(r[Ar],f).n(Ar));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},SB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/keysigningkey");let h;h=Hr;const $=new V(ma);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Sr]!=null)$.c(V.of(o6,r[Sr]).n(Sr));if(r[rr]!=null)$.c(V.of(f0,r[rr]).n(rr));if(r[I6]!=null)$.c(V.of(Qp,r[I6]).n(I6));if(r[n]!=null)$.c(V.of(Jp,r[n]).n(n));if(r[ws]!=null)$.c(V.of(Mp,r[ws]).n(ws));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},PB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/queryloggingconfig");let h;h=Hr;const $=new V(ca);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.cc(r,n2),r[rr]!=null)$.c(V.of(f0,r[rr]).n(rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},XB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/delegationset");let h;h=Hr;const $=new V(ba);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Sr]!=null)$.c(V.of(o6,r[Sr]).n(Sr));if(r[rr]!=null)$.c(V.of(f0,r[rr]).n(rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},YB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy");let h;h=Hr;const $=new V(ea);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(p6,r[Fr]).n(Fr));if(r[Q0]!=null)$.c(V.of(sV,r[Q0]).n(Q0));if(r[n]!=null)$.c(V.of(Dp,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},KB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance");let h;h=Hr;const $=new V(xa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[rr]!=null)$.c(V.of(f0,r[rr]).n(rr));if(r[n]!=null)$.c(V.of(Gf,r[n]).n(n));if(r[ir]!=null)$.c(V.of(ir,String(r[ir])).n(ir));if($.cc(r,r1),r[js]!=null)$.c(V.of(js,String(r[js])).n(js));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},ZB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const $=new V(na);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(p6,r[Fr]).n(Fr));if(r[Q0]!=null)$.c(V.of(sV,r[Q0]).n(Q0));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},JB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const $=new V(oa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ar]!=null)$.c(n$(r[Ar],f).n(Ar));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},QB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},MB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},BB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},lB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},HB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},VB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},DB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},kB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},NB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},yB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const $=new V(pa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ar]!=null)$.c(n$(r[Ar],f).n(Ar));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},qB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},mB=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const $=new V(ta);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(ua,r[Fr]).n(Fr));if(r[Ar]!=null)$.c(n$(r[Ar],f).n(Ar));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},iB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},vB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/accountlimit/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1);let h;return s.m("GET").h(w).b(h),s.build()},jB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/change/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},dB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/checkeripranges");let h;return s.m("GET").h(w).b(h),s.build()},OB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},cB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocation");const h=P({[jp]:[,r[r0]],[dp]:[,r[s0]],[pp]:[,r[w0]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},bB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},gB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheckcount");let h;return s.m("GET").h(w).b(h),s.build()},_B=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},xB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},eB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},nB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonecount");let h;return s.m("GET").h(w).b(h),s.build()},oB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},aB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},pB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},uB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},tB=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("GET").h(w).b(h),s.build()},rl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},sl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstancecount");let h;return s.m("GET").h(w).b(h),s.build()},fl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[h0]:[,r[or]],[f1]:[,r[Pr]],[t$]:[()=>r.MaxResults!==void 0,()=>r[p$].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},wl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection");const h=P({[f1]:[,r[Pr]],[t$]:[()=>r.MaxResults!==void 0,()=>r[p$].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},hl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[f1]:[,r[Pr]],[t$]:[()=>r.MaxResults!==void 0,()=>r[p$].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$l=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocations");const h=P({[up]:[,r[Kp]],[tp]:[,r[Zp]],[ru]:[,r[Vp]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},El=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck");const h=P({[u6]:[,r[ds]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Il=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone");const h=P({[u6]:[,r[ds]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[Op]:[,r[o2]],[_p]:[,r[Fp]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Fl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyname");const h=P({[cp]:[,r[Gf]],[u$]:[,r[rr]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Ul=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyvpc");const h=P({[hu]:[,y(r[x$],"VPCId")],[Eu]:[,y(r[e$],"VPCRegion")],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[f1]:[,r[Pr]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Tl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig");const h=P({[u$]:[,r[rr]],[f1]:[,r[Pr]],[t$]:[()=>r.MaxResults!==void 0,()=>r[p$].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Gl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[ep]:[,r[lp]],[su]:[,r[Hp]],[xp]:[,r[Bp]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Cl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset");const h=P({[u6]:[,r[ds]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Ll=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},Al=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let h;h=Hr;const $=new V(Tp);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"ResourceIds","ResourceIds",()=>lo(r[Ap],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},Wl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies");const h=P({[fu]:[,r[hF]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},zl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances");const h=P({[u$]:[,r[Ew]],[t6]:[,r[Os]],[r4]:[,r[cs]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Rl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/hostedzone");const h=P({[fV]:[,y(r[rr],"HostedZoneId")],[t6]:[,r[Os]],[r4]:[,r[cs]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Sl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");const h=P({[fV]:[,y(r[r1],"TrafficPolicyId")],[$u]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[js].toString()],[u$]:[,r[Ew]],[t6]:[,r[Os]],[r4]:[,r[cs]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Pl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies/{Id}/versions"),s.p("Id",()=>r.Id,"{Id}",!1);const h=P({[wu]:[,r[$F]],[gs]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Xl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[f1]:[,r[Pr]],[t$]:[()=>r.MaxResults!==void 0,()=>r[p$].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Yl=async(r,f)=>{const s=c.requestBuilder(r,f),w={};s.bp("/2013-04-01/testdnsanswer");const h=P({[u$]:[,y(r[rr],"HostedZoneId")],[np]:[,y(r[sF],"RecordName")],[op]:[,y(r[fF],"RecordType")],[ap]:[,r[Lp]],[bp]:[,r[rp]],[gp]:[,r[sp]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},Kl=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;h=Hr;const $=new V(yp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[tf]!=null)$.c(cH(r[tf],f).n(tf));if($.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>bH(r[Dw],f)),r[$f]!=null)$.c(V.of($f,String(r[$f])).n($f));if(r[Ef]!=null)$.c(V.of(Ef,String(r[Ef])).n(Ef));if(r[If]!=null)$.c(V.of(If,String(r[If])).n(If));if($.cc(r,j$),r[yw]!=null)$.c(V.of(yw,String(r[yw])).n(yw));if(r[Ff]!=null)$.c(V.of(Ff,String(r[Ff])).n(Ff));if($.cc(r,Iw),$.cc(r,c$),r[Uf]!=null)$.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[Tf]!=null)$.c(V.of(Tf,String(r[Tf])).n(Tf));return $.lc(r,"Regions","Regions",()=>gH(r[kw],f)),$.lc(r,"ResetElements","ResetElements",()=>Yo(r[Cp],f)),$.cc(r,b$),$.cc(r,_$),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},Zl=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const $=new V(qp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(a6,r[Fr]).n(Fr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},Jl=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;h=Hr;const $=new V(mp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Fr]!=null)$.c(V.of(p6,r[Fr]).n(Fr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},Ql=async(r,f)=>{const s=c.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const $=new V(ip);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[ir]!=null)$.c(V.of(ir,String(r[ir])).n(ir));if($.cc(r,r1),r[js]!=null)$.c(V.of(js,String(r[js])).n(js));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},Ml=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},Bl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},ll=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=T(w[Tr]);return s},Hl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},Vl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},Dl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[nG]!=null)s[nG]=mo(w[nG],f);return s},kl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=UF(w[Cf],f);return s},Nl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);if(w[Ts]!=null)s[Ts]=o$(w[Ts],f);if(w[Ss]!=null)s[Ss]=TF(w[Ss],f);if(w[Ar]!=null)s[Ar]=n6(w[Ar],f);return s},yl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);if(w[F6]!=null)s[F6]=nH(w[F6],f);return s},ql=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Fw]!=null)s[Fw]=x6(w[Fw],f);return s},ml=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=o$(w[Ts],f);return s},il=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=a$(w[Gs],f);return s},vl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[hs]!=null)s[hs]=GF(w[hs],f);return s},jl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r),[H0]:[,r.headers[h0]]}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=a$(w[Gs],f);return s},dl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[rr]!=null)s[rr]=T(w[rr]);if(w[Ar]!=null)s[Ar]=n6(w[Ar],f);return s},Ol=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},cl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},bl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},gl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},_l=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},xl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},el=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},nl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},ol=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},al=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)});return await gr(r.body,f),s},pl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},ul=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},tl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},rH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[J0]!=null)s[J0]=_r(w[J0]);if(w[M0]!=null)s[M0]=Ho(w[M0],f);return s},sH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[fr]!=null)s[fr]=bs(w[fr],f);return s},fH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.CheckerIpRanges==="")s[K$]=[];else if(w[K$]!=null&&w[K$][Lf]!=null)s[K$]=ko(Gr(w[K$][Lf]),f);return s},wH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.KeySigningKeys==="")s[H$]=[];else if(w[H$]!=null&&w[H$][Lf]!=null)s[H$]=Ia(Gr(w[H$][Lf]),f);if(w[ws]!=null)s[ws]=eo(w[ws],f);return s},hH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[d$]!=null)s[d$]=_H(w[d$],f);return s},$H=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=UF(w[Cf],f);return s},EH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[h6]!=null)s[h6]=_r(w[h6]);return s},IH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[af]=[];else if(w[af]!=null&&w[af][EF]!=null)s[af]=xH(Gr(w[af][EF]),f);return s},FH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[af]=[];else if(w[af]!=null&&w[af][EF]!=null)s[af]=xH(Gr(w[af][EF]),f);return s},UH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=o$(w[Ts],f);if(w[Ss]!=null)s[Ss]=TF(w[Ss],f);if(w.VPCs==="")s[uf]=[];else if(w[uf]!=null&&w[uf][Ar]!=null)s[uf]=pH(Gr(w[uf][Ar]),f);return s},TH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[$6]!=null)s[$6]=_r(w[$6]);return s},GH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[J0]!=null)s[J0]=_r(w[J0]);if(w[M0]!=null)s[M0]=wa(w[M0],f);return s},CH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Fw]!=null)s[Fw]=x6(w[Fw],f);return s},LH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=o$(w[Ts],f);return s},AH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[J0]!=null)s[J0]=_r(w[J0]);if(w[M0]!=null)s[M0]=Ra(w[M0],f);return s},WH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=a$(w[Gs],f);return s},zH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[hs]!=null)s[hs]=GF(w[hs],f);return s},RH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[c6]!=null)s[c6]=hr(w[c6]);return s},SH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.CidrBlocks==="")s[X$]=[];else if(w[X$]!=null&&w[X$][Lf]!=null)s[X$]=yo(Gr(w[X$][Lf]),f);if(w[Pr]!=null)s[Pr]=T(w[Pr]);return s},PH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.CidrCollections==="")s[Y$]=[];else if(w[Y$]!=null&&w[Y$][Lf]!=null)s[Y$]=jo(Gr(w[Y$][Lf]),f);if(w[Pr]!=null)s[Pr]=T(w[Pr]);return s},XH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.CidrLocations==="")s[Z$]=[];else if(w[Z$]!=null&&w[Z$][Lf]!=null)s[Z$]=Fa(Gr(w[Z$][Lf]),f);if(w[Pr]!=null)s[Pr]=T(w[Pr]);return s},YH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.GeoLocationDetailsList==="")s[M$]=[];else if(w[M$]!=null&&w[M$][d$]!=null)s[M$]=ao(Gr(w[M$][d$]),f);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[L6]!=null)s[L6]=T(w[L6]);if(w[A6]!=null)s[A6]=T(w[A6]);if(w[X6]!=null)s[X6]=T(w[X6]);return s},KH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.HealthChecks==="")s[B$]=[];else if(w[B$]!=null&&w[B$][Cf]!=null)s[B$]=sa(Gr(w[B$][Cf]),f);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=hr(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},ZH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.HostedZones==="")s[pf]=[];else if(w[pf]!=null&&w[pf][Ss]!=null)s[pf]=eH(Gr(w[pf][Ss]),f);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=hr(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},JH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Gf]!=null)s[Gf]=T(w[Gf]);if(w[rr]!=null)s[rr]=T(w[rr]);if(w.HostedZones==="")s[pf]=[];else if(w[pf]!=null&&w[pf][Ss]!=null)s[pf]=eH(Gr(w[pf][Ss]),f);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[W6]!=null)s[W6]=T(w[W6]);if(w[z6]!=null)s[z6]=T(w[z6]);return s},QH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.HostedZoneSummaries==="")s[l$]=[];else if(w[l$]!=null&&w[l$][$B]!=null)s[l$]=$a(Gr(w[l$][$B]),f);if(w[a]!=null)s[a]=hr(w[a]);if(w[Pr]!=null)s[Pr]=T(w[Pr]);return s},MH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Pr]!=null)s[Pr]=T(w[Pr]);if(w.QueryLoggingConfigs==="")s[D$]=[];else if(w[D$]!=null&&w[D$][Fw]!=null)s[D$]=Ta(Gr(w[D$][Fw]),f);return s},BH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[R6]!=null)s[R6]=T(w[R6]);if(w[S6]!=null)s[S6]=T(w[S6]);if(w[P6]!=null)s[P6]=T(w[P6]);if(w.ResourceRecordSets==="")s[N$]=[];else if(w[N$]!=null&&w[N$][ph]!=null)s[N$]=Wa(Gr(w[N$][ph]),f);return s},lH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.DelegationSets==="")s[J$]=[];else if(w[J$]!=null&&w[J$][Ts]!=null)s[J$]=go(Gr(w[J$][Ts]),f);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=hr(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},HH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[g$]!=null)s[g$]=aH(w[g$],f);return s},VH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w.ResourceTagSets==="")s[y$]=[];else if(w[y$]!=null&&w[y$][g$]!=null)s[y$]=za(Gr(w[y$][g$]),f);return s},DH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[hF]!=null)s[hF]=T(w[hF]);if(w.TrafficPolicySummaries==="")s[q$]=[];else if(w[q$]!=null&&w[q$][UB]!=null)s[q$]=Ka(Gr(w[q$][UB]),f);return s},kH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ew]!=null)s[Ew]=T(w[Ew]);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[cs]!=null)s[cs]=T(w[cs]);if(w.TrafficPolicyInstances==="")s[fs]=[];else if(w[fs]!=null&&w[fs][hs]!=null)s[fs]=e6(Gr(w[fs][hs]),f);return s},NH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[cs]!=null)s[cs]=T(w[cs]);if(w.TrafficPolicyInstances==="")s[fs]=[];else if(w[fs]!=null&&w[fs][hs]!=null)s[fs]=e6(Gr(w[fs][hs]),f);return s},yH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ew]!=null)s[Ew]=T(w[Ew]);if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[cs]!=null)s[cs]=T(w[cs]);if(w.TrafficPolicyInstances==="")s[fs]=[];else if(w[fs]!=null&&w[fs][hs]!=null)s[fs]=e6(Gr(w[fs][hs]),f);return s},qH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ur]!=null)s[Ur]=yr(w[Ur]);if(w[a]!=null)s[a]=hr(w[a]);if(w.TrafficPolicies==="")s[m$]=[];else if(w[m$]!=null&&w[m$][Gs]!=null)s[m$]=Ya(Gr(w[m$][Gs]),f);if(w[$F]!=null)s[$F]=T(w[$F]);return s},mH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[rr]!=null)s[rr]=T(w[rr]);if(w[Pr]!=null)s[Pr]=T(w[Pr]);if(w.VPCs==="")s[uf]=[];else if(w[uf]!=null&&w[uf][Ar]!=null)s[uf]=pH(Gr(w[uf][Ar]),f);return s},iH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Y6]!=null)s[Y6]=T(w[Y6]);if(w[l6]!=null)s[l6]=T(w[l6]);if(w.RecordData==="")s[k$]=[];else if(w[k$]!=null&&w[k$][IB]!=null)s[k$]=Ga(Gr(w[k$][IB]),f);if(w[sF]!=null)s[sF]=T(w[sF]);if(w[fF]!=null)s[fF]=T(w[fF]);if(w[H6]!=null)s[H6]=T(w[H6]);return s},vH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=UF(w[Cf],f);return s},jH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Ss]!=null)s[Ss]=TF(w[Ss],f);return s},dH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=a$(w[Gs],f);return s},OH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:Q(r)}),w=y(O(await _.parseXmlBody(r.body,f)),"body");if(w[hs]!=null)s[hs]=GF(w[hs],f);return s},b=async(r,f)=>{const s={...r,body:await _.parseXmlErrorBody(r.body,f)},w=_.loadRestXmlErrorCode(r,s.body);switch(w){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await ae(s,f);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await Sn(s,f);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await Yn(s,f);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await Xn(s,f);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Zn(s,f);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await On(s,f);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await pe(s,f);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await Qn(s,f);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Dn(s,f);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await dn(s,f);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await _n(s,f);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await xn(s,f);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await en(s,f);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await xe(s,f);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await oe(s,f);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Nn(s,f);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await zn(s,f);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await jn(s,f);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await on(s,f);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await ee(s,f);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await $n(s,f);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await an(s,f);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await fn(s,f);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await wn(s,f);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await Fn(s,f);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await Rn(s,f);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await mn(s,f);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await pn(s,f);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await Wn(s,f);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await Pn(s,f);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Mn(s,f);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await un(s,f);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await An(s,f);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await qn(s,f);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await nn(s,f);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await te(s,f);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await rn(s,f);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await Tn(s,f);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await Jn(s,f);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await tn(s,f);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await wo(s,f);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await bn(s,f);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await ro(s,f);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await ho(s,f);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await so(s,f);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await fo(s,f);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Bn(s,f);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await ln(s,f);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await ne(s,f);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await En(s,f);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await Un(s,f);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await cn(s,f);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await sn(s,f);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await $o(s,f);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await gn(s,f);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await Eo(s,f);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await hn(s,f);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Vn(s,f);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await Io(s,f);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await Cn(s,f);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Hn(s,f);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await kn(s,f);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await vn(s,f);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await Ln(s,f);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await Gn(s,f);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await yn(s,f);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Kn(s,f);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await In(s,f);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await ue(s,f);default:const h=s.body;return _e({output:r,parsedBody:h.Error,errorCode:w})}},_e=vf(d),xe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new bI({$metadata:Q(r),...s});return D(h,r.body.Error)},ee=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new oI({$metadata:Q(r),...s});return D(h,r.body.Error)},ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new J2({$metadata:Q(r),...s});return D(h,r.body.Error)},oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new gI({$metadata:Q(r),...s});return D(h,r.body.Error)},ae=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new VI({$metadata:Q(r),...s});return D(h,r.body.Error)},pe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new mI({$metadata:Q(r),...s});return D(h,r.body.Error)},ue=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new g2({$metadata:Q(r),...s});return D(h,r.body.Error)},te=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new G2({$metadata:Q(r),...s});return D(h,r.body.Error)},rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new C2({$metadata:Q(r),...s});return D(h,r.body.Error)},sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new l2({$metadata:Q(r),...s});return D(h,r.body.Error)},fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new uI({$metadata:Q(r),...s});return D(h,r.body.Error)},wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new tI({$metadata:Q(r),...s});return D(h,r.body.Error)},hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new k2({$metadata:Q(r),...s});return D(h,r.body.Error)},$n=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new aI({$metadata:Q(r),...s});return D(h,r.body.Error)},En=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Q2({$metadata:Q(r),...s});return D(h,r.body.Error)},In=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new b2({$metadata:Q(r),...s});return D(h,r.body.Error)},Fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new r2({$metadata:Q(r),...s});return D(h,r.body.Error)},Un=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new M2({$metadata:Q(r),...s});return D(h,r.body.Error)},Tn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new L2({$metadata:Q(r),...s});return D(h,r.body.Error)},Gn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new d2({$metadata:Q(r),...s});return D(h,r.body.Error)},Cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new q2({$metadata:Q(r),...s});return D(h,r.body.Error)},Ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new j2({$metadata:Q(r),...s});return D(h,r.body.Error)},An=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new F2({$metadata:Q(r),...s});return D(h,r.body.Error)},Wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new h2({$metadata:Q(r),...s});return D(h,r.body.Error)},zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);if(w.messages==="")s[v$]=[];else if(w[v$]!=null&&w[v$][Kr]!=null)s[v$]=no(Gr(w[v$][Kr]),f);const h=new xI({$metadata:Q(r),...s});return D(h,r.body.Error)},Rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new s2({$metadata:Q(r),...s});return D(h,r.body.Error)},Sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new DI({$metadata:Q(r),...s});return D(h,r.body.Error)},Pn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new $2({$metadata:Q(r),...s});return D(h,r.body.Error)},Xn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new kI({$metadata:Q(r),...s});return D(h,r.body.Error)},Yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new NI({$metadata:Q(r),...s});return D(h,r.body.Error)},Kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new c2({$metadata:Q(r),...s});return D(h,r.body.Error)},Zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new yI({$metadata:Q(r),...s});return D(h,r.body.Error)},Jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new A2({$metadata:Q(r),...s});return D(h,r.body.Error)},Qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new iI({$metadata:Q(r),...s});return D(h,r.body.Error)},Mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new E2({$metadata:Q(r),...s});return D(h,r.body.Error)},Bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new K2({$metadata:Q(r),...s});return D(h,r.body.Error)},ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Z2({$metadata:Q(r),...s});return D(h,r.body.Error)},Hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new m2({$metadata:Q(r),...s});return D(h,r.body.Error)},Vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new N2({$metadata:Q(r),...s});return D(h,r.body.Error)},Dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new vI({$metadata:Q(r),...s});return D(h,r.body.Error)},kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new i2({$metadata:Q(r),...s});return D(h,r.body.Error)},Nn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new _I({$metadata:Q(r),...s});return D(h,r.body.Error)},yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Kr]!=null)s[Kr]=T(w[Kr]);const h=new O2({$metadata:Q(r),...s});return D(h,r.body.Error)},qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new U2({$metadata:Q(r),...s});return D(h,r.body.Error)},mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new f2({$metadata:Q(r),...s});return D(h,r.body.Error)},vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new v2({$metadata:Q(r),...s});return D(h,r.body.Error)},jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new eI({$metadata:Q(r),...s});return D(h,r.body.Error)},dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new jI({$metadata:Q(r),...s});return D(h,r.body.Error)},On=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new qI({$metadata:Q(r),...s});return D(h,r.body.Error)},cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new B2({$metadata:Q(r),...s});return D(h,r.body.Error)},bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new R2({$metadata:Q(r),...s});return D(h,r.body.Error)},gn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new V2({$metadata:Q(r),...s});return D(h,r.body.Error)},_n=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new dI({$metadata:Q(r),...s});return D(h,r.body.Error)},xn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new OI({$metadata:Q(r),...s});return D(h,r.body.Error)},en=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new cI({$metadata:Q(r),...s});return D(h,r.body.Error)},nn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new T2({$metadata:Q(r),...s});return D(h,r.body.Error)},on=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new nI({$metadata:Q(r),...s});return D(h,r.body.Error)},an=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new pI({$metadata:Q(r),...s});return D(h,r.body.Error)},pn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new w2({$metadata:Q(r),...s});return D(h,r.body.Error)},un=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new I2({$metadata:Q(r),...s});return D(h,r.body.Error)},tn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new W2({$metadata:Q(r),...s});return D(h,r.body.Error)},ro=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new S2({$metadata:Q(r),...s});return D(h,r.body.Error)},so=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new X2({$metadata:Q(r),...s});return D(h,r.body.Error)},fo=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Y2({$metadata:Q(r),...s});return D(h,r.body.Error)},wo=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new z2({$metadata:Q(r),...s});return D(h,r.body.Error)},ho=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new P2({$metadata:Q(r),...s});return D(h,r.body.Error)},$o=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new H2({$metadata:Q(r),...s});return D(h,r.body.Error)},Eo=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new D2({$metadata:Q(r),...s});return D(h,r.body.Error)},Io=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new y2({$metadata:Q(r),...s});return D(h,r.body.Error)},cH=(r,f)=>{const s=new V(tf);if(r[vr]!=null)s.c(V.of(aa,r[vr]).n(vr));if(r[n]!=null)s.c(V.of(Qa,r[n]).n(n));return s},Fo=(r,f)=>{const s=new V(iw);if(r[rr]!=null)s.c(V.of(f0,r[rr]).n(rr));if(s.cc(r,Gf),r[xh]!=null)s.c(V.of(Ja,String(r[xh])).n(xh));return s},Uo=(r,f)=>{const s=new V(tH);if(r[bh]!=null)s.c(V.of(Ha,r[bh]).n(bh));if(r[ph]!=null)s.c(Jo(r[ph],f).n(ph));return s},To=(r,f)=>{const s=new V(e2);if(r[Fr]!=null)s.c(V.of(a6,r[Fr]).n(Fr));return s.lc(r,"Changes","Changes",()=>Go(r[uH],f)),s},Go=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Uo(s,f).n(tH)})},bH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(O$,s).n(_6)})},Co=(r,f)=>{const s=new V(Va);if(r[or]!=null)s.c(V.of(va,r[or]).n(or));if(r[bh]!=null)s.c(V.of(Da,r[bh]).n(bh));return s.lc(r,"CidrList","CidrList",()=>Ao(r[ja],f)),s},Lo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Co(s,f).n(Lf)})},Ao=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(wB,s).n(wB)})},Wo=(r,f)=>{const s=new V(vw);if(r[_h]!=null)s.c(V.of(vp,r[_h]).n(_h));if(r[or]!=null)s.c(V.of(ia,r[or]).n(or));return s},zo=(r,f)=>{const s=new V(jw);return s.cc(r,u2),s.cc(r,t2),s},Ro=(r,f)=>{const s=new V(dw);if(r[r0]!=null)s.c(V.of(fp,r[r0]).n(r0));if(r[s0]!=null)s.c(V.of(wp,r[s0]).n(s0));if(r[w0]!=null)s.c(V.of(hp,r[w0]).n(w0));return s},So=(r,f)=>{const s=new V(Ow);if(s.cc(r,x2),s.cc(r,p2),r[jw]!=null)s.c(zo(r[jw],f).n(jw));if(r[Nw]!=null)s.c(V.of(Nw,String(r[Nw])).n(Nw));return s},Po=(r,f)=>{const s=new V(cw);if(s.cc(r,Iw),r[Tf]!=null)s.c(V.of(Tf,String(r[Tf])).n(Tf));if(r[Lr]!=null)s.c(V.of(Ip,r[Lr]).n(Lr));if(s.cc(r,b$),s.cc(r,j$),s.cc(r,_$),r[mw]!=null)s.c(V.of(mw,String(r[mw])).n(mw));if(r[If]!=null)s.c(V.of(If,String(r[If])).n(If));if(r[qw]!=null)s.c(V.of(qw,String(r[qw])).n(qw));if(r[Uf]!=null)s.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[$f]!=null)s.c(V.of($f,String(r[$f])).n($f));if(r[Ff]!=null)s.c(V.of(Ff,String(r[Ff])).n(Ff));if(s.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>bH(r[Dw],f)),r[Ef]!=null)s.c(V.of(Ef,String(r[Ef])).n(Ef));if(s.lc(r,"Regions","Regions",()=>gH(r[kw],f)),r[tf]!=null)s.c(cH(r[tf],f).n(tf));return s.cc(r,c$),s.cc(r,rF),s},gH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(Ep,s).n(vr)})},Xo=(r,f)=>{const s=new V(a2);if(r[Fr]!=null)s.c(V.of(a6,r[Fr]).n(Fr));if(r[ah]!=null)s.c(V.of(Up,String(r[ah])).n(ah));return s},Yo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(FB,s).n(FB)})},Ko=(r,f)=>{const s=new V(IF);if(r[Xr]!=null)s.c(V.of(Gp,r[Xr]).n(Xr));return s},Zo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Ko(s,f).n(IF)})},Jo=(r,f)=>{const s=new V(ph);if(r[n]!=null)s.c(V.of(Gf,r[n]).n(n));if(r[Lr]!=null)s.c(V.of(Xp,r[Lr]).n(Lr));if(r[uh]!=null)s.c(V.of(zp,r[uh]).n(uh));if(r[s1]!=null)s.c(V.of(Pp,String(r[s1])).n(s1));if(r[vr]!=null)s.c(V.of(Sp,r[vr]).n(vr));if(r[dw]!=null)s.c(Ro(r[dw],f).n(dw));if(r[eh]!=null)s.c(V.of(Wp,r[eh]).n(eh));if(r[oh]!=null)s.c(V.of(Rp,String(r[oh])).n(oh));if(r[ir]!=null)s.c(V.of(ir,String(r[ir])).n(ir));if(s.lc(r,"ResourceRecords","ResourceRecords",()=>Zo(r[ch],f)),r[iw]!=null)s.c(Fo(r[iw],f).n(iw));if(s.cc(r,O$),s.cc(r,wF),r[vw]!=null)s.c(Wo(r[vw],f).n(vw));if(r[Ow]!=null)s.c(So(r[Ow],f).n(Ow));return s},Qo=(r,f)=>{const s=new V(FF);if(r[bw]!=null)s.c(V.of(rV,r[bw]).n(bw));if(r[Xr]!=null)s.c(V.of(Np,r[Xr]).n(Xr));return s},Mo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(rV,s).n(bw)})},Bo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Qo(s,f).n(FF)})},lo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(kp,s).n(f0)})},n$=(r,f)=>{const s=new V(Ar);return s.cc(r,e$),s.cc(r,x$),s},Ho=(r,f)=>{const s={};if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[Xr]!=null)s[Xr]=_r(r[Xr]);return s},Vo=(r,f)=>{const s={};if(r[vr]!=null)s[vr]=T(r[vr]);if(r[n]!=null)s[n]=T(r[n]);return s},Do=(r,f)=>{const s={};if(r[rr]!=null)s[rr]=T(r[rr]);if(r[Gf]!=null)s[Gf]=T(r[Gf]);if(r[xh]!=null)s[xh]=yr(r[xh]);return s},bs=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[ws]!=null)s[ws]=T(r[ws]);if(r[k6]!=null)s[k6]=y(Jw(r[k6]));if(r[Fr]!=null)s[Fr]=T(r[Fr]);return s},ko=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},No=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},yo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return qo(s,f)})},qo=(r,f)=>{const s={};if(r[OG]!=null)s[OG]=T(r[OG]);if(r[or]!=null)s[or]=T(r[or]);return s},mo=(r,f)=>{const s={};if(r[gh]!=null)s[gh]=T(r[gh]);if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[n]!=null)s[n]=T(r[n]);if(r[l0]!=null)s[l0]=_r(r[l0]);return s},io=(r,f)=>{const s={};if(r[_h]!=null)s[_h]=T(r[_h]);if(r[or]!=null)s[or]=T(r[or]);return s},vo=(r,f)=>{const s={};if(r[f6]!=null)s[f6]=hr(r[f6]);if(r[g6]!=null)s[g6]=hY(r[g6]);if(r[_G]!=null)s[_G]=T(r[_G]);if(r[B6]!=null)s[B6]=hr(r[B6]);if(r[C6]!=null)s[C6]=T(r[C6]);if(r[K6]!=null)s[K6]=T(r[K6]);if(r[j6]!=null)s[j6]=T(r[j6]);if(r.Dimensions==="")s[Q$]=[];else if(r[Q$]!=null&&r[Q$][hB]!=null)s[Q$]=xo(Gr(r[Q$][hB]),f);return s},jo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Oo(s,f)})},Oo=(r,f)=>{const s={};if(r[gh]!=null)s[gh]=T(r[gh]);if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[n]!=null)s[n]=T(r[n]);if(r[l0]!=null)s[l0]=_r(r[l0]);return s},co=(r,f)=>{const s={};if(r[u2]!=null)s[u2]=T(r[u2]);if(r[t2]!=null)s[t2]=T(r[t2]);return s},o$=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[Sr]!=null)s[Sr]=T(r[Sr]);if(r.NameServers==="")s[V$]=[];else if(r[V$]!=null&&r[V$][EB]!=null)s[V$]=bo(Gr(r[V$][EB]),f);return s},bo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},go=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return o$(s,f)})},_o=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Xr]!=null)s[Xr]=T(r[Xr]);return s},xo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return _o(s,f)})},eo=(r,f)=>{const s={};if(r[v6]!=null)s[v6]=T(r[v6]);if(r[th]!=null)s[th]=T(r[th]);return s},no=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},oo=(r,f)=>{const s={};if(r[r0]!=null)s[r0]=T(r[r0]);if(r[s0]!=null)s[s0]=T(r[s0]);if(r[w0]!=null)s[w0]=T(r[w0]);return s},_H=(r,f)=>{const s={};if(r[r0]!=null)s[r0]=T(r[r0]);if(r[bG]!=null)s[bG]=T(r[bG]);if(r[s0]!=null)s[s0]=T(r[s0]);if(r[gG]!=null)s[gG]=T(r[gG]);if(r[w0]!=null)s[w0]=T(r[w0]);if(r[q6]!=null)s[q6]=T(r[q6]);return s},ao=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return _H(s,f)})},po=(r,f)=>{const s={};if(r[x2]!=null)s[x2]=T(r[x2]);if(r[p2]!=null)s[p2]=T(r[p2]);if(r[jw]!=null)s[jw]=co(r[jw],f);if(r[Nw]!=null)s[Nw]=hr(r[Nw]);return s},UF=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[Sr]!=null)s[Sr]=T(r[Sr]);if(r[nh]!=null)s[nh]=oH(r[nh],f);if(r[cw]!=null)s[cw]=uo(r[cw],f);if(r[yw]!=null)s[yw]=_r(r[yw]);if(r[eG]!=null)s[eG]=vo(r[eG],f);return s},uo=(r,f)=>{const s={};if(r[Iw]!=null)s[Iw]=T(r[Iw]);if(r[Tf]!=null)s[Tf]=hr(r[Tf]);if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[b$]!=null)s[b$]=T(r[b$]);if(r[j$]!=null)s[j$]=T(r[j$]);if(r[_$]!=null)s[_$]=T(r[_$]);if(r[mw]!=null)s[mw]=hr(r[mw]);if(r[If]!=null)s[If]=hr(r[If]);if(r[qw]!=null)s[qw]=yr(r[qw]);if(r[Uf]!=null)s[Uf]=yr(r[Uf]);if(r[$f]!=null)s[$f]=yr(r[$f]);if(r[Ff]!=null)s[Ff]=hr(r[Ff]);if(r.ChildHealthChecks==="")s[Dw]=[];else if(r[Dw]!=null&&r[Dw][_6]!=null)s[Dw]=No(Gr(r[Dw][_6]),f);if(r[Ef]!=null)s[Ef]=yr(r[Ef]);if(r.Regions==="")s[kw]=[];else if(r[kw]!=null&&r[kw][vr]!=null)s[kw]=ra(Gr(r[kw][vr]),f);if(r[tf]!=null)s[tf]=Vo(r[tf],f);if(r[c$]!=null)s[c$]=T(r[c$]);if(r[rF]!=null)s[rF]=T(r[rF]);return s},to=(r,f)=>{const s={};if(r[vr]!=null)s[vr]=T(r[vr]);if(r[Iw]!=null)s[Iw]=T(r[Iw]);if(r[i6]!=null)s[i6]=Sa(r[i6],f);return s},xH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return to(s,f)})},ra=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},sa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return UF(s,f)})},TF=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Sr]!=null)s[Sr]=T(r[Sr]);if(r[oG]!=null)s[oG]=fa(r[oG],f);if(r[V6]!=null)s[V6]=_r(r[V6]);if(r[nh]!=null)s[nh]=oH(r[nh],f);return s},fa=(r,f)=>{const s={};if(r[Fr]!=null)s[Fr]=T(r[Fr]);if(r[ah]!=null)s[ah]=yr(r[ah]);return s},wa=(r,f)=>{const s={};if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[Xr]!=null)s[Xr]=_r(r[Xr]);return s},ha=(r,f)=>{const s={};if(r[J6]!=null)s[J6]=T(r[J6]);if(r[Q6]!=null)s[Q6]=T(r[Q6]);return s},eH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return TF(s,f)})},$a=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ea(s,f)})},Ea=(r,f)=>{const s={};if(r[rr]!=null)s[rr]=T(r[rr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Z6]!=null)s[Z6]=ha(r[Z6],f);return s},nH=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[E6]!=null)s[E6]=T(r[E6]);if(r[w6]!=null)s[w6]=hr(r[w6]);if(r[N6]!=null)s[N6]=T(r[N6]);if(r[y6]!=null)s[y6]=hr(r[y6]);if(r[aG]!=null)s[aG]=T(r[aG]);if(r[pG]!=null)s[pG]=hr(r[pG]);if(r[U6]!=null)s[U6]=hr(r[U6]);if(r[r6]!=null)s[r6]=T(r[r6]);if(r[M6]!=null)s[M6]=T(r[M6]);if(r[tG]!=null)s[tG]=T(r[tG]);if(r[uG]!=null)s[uG]=T(r[uG]);if(r[ws]!=null)s[ws]=T(r[ws]);if(r[th]!=null)s[th]=T(r[th]);if(r[cG]!=null)s[cG]=y(Jw(r[cG]));if(r[T6]!=null)s[T6]=y(Jw(r[T6]));return s},Ia=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return nH(s,f)})},oH=(r,f)=>{const s={};if(r[m6]!=null)s[m6]=T(r[m6]);if(r[s6]!=null)s[s6]=T(r[s6]);return s},Fa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ua(s,f)})},Ua=(r,f)=>{const s={};if(r[or]!=null)s[or]=T(r[or]);return s},x6=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[rr]!=null)s[rr]=T(r[rr]);if(r[n2]!=null)s[n2]=T(r[n2]);return s},Ta=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return x6(s,f)})},Ga=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Ca=(r,f)=>{const s={};if(r[Xr]!=null)s[Xr]=T(r[Xr]);return s},La=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ca(s,f)})},Aa=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[uh]!=null)s[uh]=T(r[uh]);if(r[s1]!=null)s[s1]=_r(r[s1]);if(r[vr]!=null)s[vr]=T(r[vr]);if(r[dw]!=null)s[dw]=oo(r[dw],f);if(r[eh]!=null)s[eh]=T(r[eh]);if(r[oh]!=null)s[oh]=yr(r[oh]);if(r[ir]!=null)s[ir]=_r(r[ir]);if(r.ResourceRecords==="")s[ch]=[];else if(r[ch]!=null&&r[ch][IF]!=null)s[ch]=La(Gr(r[ch][IF]),f);if(r[iw]!=null)s[iw]=Do(r[iw],f);if(r[O$]!=null)s[O$]=T(r[O$]);if(r[wF]!=null)s[wF]=T(r[wF]);if(r[vw]!=null)s[vw]=io(r[vw],f);if(r[Ow]!=null)s[Ow]=po(r[Ow],f);return s},Wa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Aa(s,f)})},aH=(r,f)=>{const s={};if(r[D6]!=null)s[D6]=T(r[D6]);if(r[f0]!=null)s[f0]=T(r[f0]);if(r.Tags==="")s[i$]=[];else if(r[i$]!=null&&r[i$][FF]!=null)s[i$]=Xa(Gr(r[i$][FF]),f);return s},za=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return aH(s,f)})},Ra=(r,f)=>{const s={};if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[Xr]!=null)s[Xr]=_r(r[Xr]);return s},Sa=(r,f)=>{const s={};if(r[ws]!=null)s[ws]=T(r[ws]);if(r[xG]!=null)s[xG]=y(Jw(r[xG]));return s},Pa=(r,f)=>{const s={};if(r[bw]!=null)s[bw]=T(r[bw]);if(r[Xr]!=null)s[Xr]=T(r[Xr]);return s},Xa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Pa(s,f)})},Ya=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return a$(s,f)})},a$=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[l0]!=null)s[l0]=hr(r[l0]);if(r[n]!=null)s[n]=T(r[n]);if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[Q0]!=null)s[Q0]=T(r[Q0]);if(r[Fr]!=null)s[Fr]=T(r[Fr]);return s},GF=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[rr]!=null)s[rr]=T(r[rr]);if(r[n]!=null)s[n]=T(r[n]);if(r[ir]!=null)s[ir]=_r(r[ir]);if(r[d6]!=null)s[d6]=T(r[d6]);if(r[Kr]!=null)s[Kr]=T(r[Kr]);if(r[r1]!=null)s[r1]=T(r[r1]);if(r[js]!=null)s[js]=hr(r[js]);if(r[b6]!=null)s[b6]=T(r[b6]);return s},e6=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return GF(s,f)})},Ka=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Za(s,f)})},Za=(r,f)=>{const s={};if(r[Tr]!=null)s[Tr]=T(r[Tr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Lr]!=null)s[Lr]=T(r[Lr]);if(r[G6]!=null)s[G6]=hr(r[G6]);if(r[O6]!=null)s[O6]=hr(r[O6]);return s},n6=(r,f)=>{const s={};if(r[e$]!=null)s[e$]=T(r[e$]);if(r[x$]!=null)s[x$]=T(r[x$]);return s},pH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return n6(s,f)})},Q=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var bh="Action",Ja="AliasHealthEnabled",tf="AlarmIdentifier",Qa="AlarmName",Ma="AddTags",iw="AliasTarget",Ba="AssociateVPCComment",la="AssociateVPCWithHostedZoneRequest",x2="AWSRegion",gh="Arn",Nw="Bias",Fr="Comment",Ha="ChangeAction",e2="ChangeBatch",X$="CidrBlocks",OG="CidrBlock",r0="ContinentCode",Va="CidrCollectionChange",Da="CidrCollectionChangeAction",ka="ChangeCidrCollectionRequest",Na="CreateCidrCollectionRequest",Y$="CidrCollections",s0="CountryCode",cG="CreatedDate",Dw="ChildHealthChecks",ya="CreateHealthCheckRequest",_6="ChildHealthCheck",qa="CreateHostedZoneRequest",fr="ChangeInfo",K$="CheckerIpRanges",_h="CollectionId",ma="CreateKeySigningKeyRequest",Z$="CidrLocations",ia="CidrLocationNameDefaultAllowed",va="CidrLocationNameDefaultNotAllowed",ja="CidrList",da="CidrNonce",Oa="CollectionName",bG="ContinentName",gG="CountryName",_G="ComparisonOperator",ca="CreateQueryLoggingConfigRequest",Sr="CallerReference",vw="CidrRoutingConfig",ba="CreateReusableDelegationSetRequest",ga="ChangeResourceRecordSetsRequest",xG="CheckedTime",_a="ChangeTagsForResourceRequest",xa="CreateTrafficPolicyInstanceRequest",ea="CreateTrafficPolicyRequest",na="CreateTrafficPolicyVersionRequest",_2="CollectionVersion",oa="CreateVPCAssociationAuthorizationRequest",eG="CloudWatchAlarmConfiguration",n2="CloudWatchLogsLogGroupArn",aa="CloudWatchRegion",uH="Changes",tH="Change",wB="Cidr",nG="Collection",oG="Config",jw="Coordinates",J0="Count",Q0="Document",aG="DigestAlgorithmMnemonic",pG="DigestAlgorithmType",uG="DNSKEYRecord",Gf="DNSName",Ts="DelegationSet",o2="DelegationSetId",tG="DSRecord",J$="DelegationSets",r6="DigestValue",pa="DeleteVPCAssociationAuthorizationRequest",ua="DisassociateVPCComment",ta="DisassociateVPCFromHostedZoneRequest",s6="Description",$f="Disabled",Q$="Dimensions",hB="Dimension",rp="EDNS0ClientSubnetIP",sp="EDNS0ClientSubnetMask",f6="EvaluationPeriods",Ef="EnableSNI",xh="EvaluateTargetHealth",eh="Failover",j$="FullyQualifiedDomainName",If="FailureThreshold",w6="Flag",dw="GeoLocation",fp="GeoLocationContinentCode",wp="GeoLocationCountryCode",d$="GeoLocationDetails",M$="GeoLocationDetailsList",hp="GeoLocationSubdivisionCode",Ow="GeoProximityLocation",Cf="HealthCheck",cw="HealthCheckConfig",h6="HealthCheckCount",O$="HealthCheckId",$p="HealthCheckNonce",af="HealthCheckObservations",EF="HealthCheckObservation",Ep="HealthCheckRegion",Ip="HealthCheckType",yw="HealthCheckVersion",B$="HealthChecks",Ff="HealthThreshold",Ss="HostedZone",a2="HostedZoneConfig",$6="HostedZoneCount",rr="HostedZoneId",Ew="HostedZoneIdMarker",l$="HostedZoneSummaries",$B="HostedZoneSummary",Fp="HostedZoneType",pf="HostedZones",Uf="Inverted",c$="InsufficientDataHealthStatus",Iw="IPAddress",Up="IsPrivateZone",Ur="IsTruncated",Tr="Id",bw="Key",E6="KmsArn",I6="KeyManagementServiceArn",F6="KeySigningKey",H$="KeySigningKeys",U6="KeyTag",H0="Location",T6="LastModifiedDate",or="LocationName",nh="LinkedService",Tp="ListTagsForResourcesRequest",G6="LatestVersion",p2="LocalZoneGroup",u2="Latitude",M0="Limit",t2="Longitude",ds="Marker",a="MaxItems",qw="MeasureLatency",C6="MetricName",p$="MaxResults",oh="MultiValueAnswer",Kr="Message",n="Name",L6="NextContinentCode",A6="NextCountryCode",W6="NextDNSName",z6="NextHostedZoneId",B0="NextMarker",R6="NextRecordIdentifier",S6="NextRecordName",P6="NextRecordType",V$="NameServers",X6="NextSubdivisionCode",EB="NameServer",Pr="NextToken",Y6="Nameserver",K6="Namespace",o6="Nonce",Z6="Owner",J6="OwningAccount",Q6="OwningService",Tf="Port",M6="PublicKey",ah="PrivateZone",B6="Period",l6="Protocol",Fw="QueryLoggingConfig",D$="QueryLoggingConfigs",kw="Regions",H6="ResponseCode",rF="RoutingControlArn",a6="ResourceDescription",IB="RecordDataEntry",Gp="RData",k$="RecordData",Cp="ResetElements",FB="ResettableElementName",f0="ResourceId",Lp="ResolverIP",Ap="ResourceIds",mw="RequestInterval",sF="RecordName",b$="ResourcePath",IF="ResourceRecord",N$="ResourceRecordSets",V6="ResourceRecordSetCount",Wp="ResourceRecordSetFailover",zp="ResourceRecordSetIdentifier",Rp="ResourceRecordSetMultiValueAnswer",Sp="ResourceRecordSetRegion",Pp="ResourceRecordSetWeight",ph="ResourceRecordSet",Xp="RRType",ch="ResourceRecords",fF="RecordType",Yp="RemoveTagKeys",g$="ResourceTagSet",y$="ResourceTagSets",D6="ResourceType",vr="Region",ws="Status",k6="SubmittedAt",N6="SigningAlgorithmMnemonic",y6="SigningAlgorithmType",w0="SubdivisionCode",Kp="StartContinentCode",Zp="StartCountryCode",uh="SetIdentifier",Jp="SigningKeyName",Qp="SigningKeyString",Mp="SigningKeyStatus",th="StatusMessage",q6="SubdivisionName",m6="ServicePrincipal",i6="StatusReport",Bp="StartRecordIdentifier",lp="StartRecordName",Hp="StartRecordType",_$="SearchString",Vp="StartSubdivisionCode",v6="ServeSignature",j6="Statistic",d6="State",Lr="Type",rV="TagKey",Gs="TrafficPolicy",p6="TrafficPolicyComment",O6="TrafficPolicyCount",sV="TrafficPolicyDocument",r1="TrafficPolicyId",c6="TrafficPolicyInstanceCount",wF="TrafficPolicyInstanceId",hF="TrafficPolicyIdMarker",Os="TrafficPolicyInstanceNameMarker",cs="TrafficPolicyInstanceTypeMarker",hs="TrafficPolicyInstance",fs="TrafficPolicyInstances",Dp="TrafficPolicyName",q$="TrafficPolicySummaries",UB="TrafficPolicySummary",b6="TrafficPolicyType",js="TrafficPolicyVersion",$F="TrafficPolicyVersionMarker",m$="TrafficPolicies",kp="TagResourceId",ir="TTL",Np="TagValue",FF="Tag",i$="Tags",g6="Threshold",yp="UpdateHealthCheckRequest",qp="UpdateHostedZoneCommentRequest",mp="UpdateTrafficPolicyCommentRequest",ip="UpdateTrafficPolicyInstanceRequest",vp="UUID",Xr="Value",Ar="VPC",x$="VPCId",e$="VPCRegion",uf="VPCs",l0="Version",s1="Weight",jp="continentcode",dp="countrycode",Op="delegationsetid",cp="dnsname",bp="edns0clientsubnetip",gp="edns0clientsubnetmask",_p="hostedzonetype",u$="hostedzoneid",xp="identifier",fV="id",h0="location",t$="maxresults",gs="maxitems",u6="marker",Lf="member",X="message",v$="messages",f1="nexttoken",ep="name",np="recordname",op="recordtype",ap="resolverip",pp="subdivisioncode",up="startcontinentcode",tp="startcountrycode",ru="startsubdivisioncode",su="type",fu="trafficpolicyid",t6="trafficpolicyinstancename",r4="trafficpolicyinstancetype",wu="trafficpolicyversion",hu="vpcid",Hr='<?xml version="1.0" encoding="UTF-8"?>',$u="version",Eu="vpcregion";class s4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(TB).de(Ml).build(){}B();H();Y();class f4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(GB).de(Bl).build(){}B();H();Y();class w4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(CB).de(ll).build(){}B();H();Y();class h4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),rB(s),m(s)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(LB).de(Hl).build(){}B();H();Y();class $4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(AB).de(Vl).build(){}B();H();Y();class E4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(WB).de(Dl).build(){}B();H();Y();class I4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(zB).de(kl).build(){}B();H();Y();class F4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(RB).de(Nl).build(){}B();H();Y();class U4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(SB).de(yl).build(){}B();H();Y();class T4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(PB).de(ql).build(){}B();H();Y();class G4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(XB).de(ml).build(){}B();H();Y();class C4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(YB).de(il).build(){}B();H();Y();class L4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(KB).de(vl).build(){}B();H();Y();class A4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(ZB).de(jl).build(){}B();H();Y();class W4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(JB).de(dl).build(){}B();H();Y();class z4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(QB).de(Ol).build(){}B();H();Y();class R4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(MB).de(cl).build(){}B();H();Y();class S4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(BB).de(bl).build(){}B();H();Y();class P4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(lB).de(gl).build(){}B();H();Y();class X4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(HB).de(_l).build(){}B();H();Y();class Y4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(VB).de(xl).build(){}B();H();Y();class K4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(DB).de(el).build(){}B();H();Y();class Z4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(kB).de(nl).build(){}B();H();Y();class J4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(NB).de(ol).build(){}B();H();Y();class Q4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(yB).de(al).build(){}B();H();Y();class M4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(qB).de(pl).build(){}B();H();Y();class B4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(mB).de(ul).build(){}B();H();Y();class l4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(iB).de(tl).build(){}B();H();Y();class H4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(vB).de(rH).build(){}B();H();Y();class V4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(jB).de(sH).build(){}B();H();Y();class D4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(dB).de(fH).build(){}B();H();Y();class k4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(OB).de(wH).build(){}B();H();Y();class N4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(cB).de(hH).build(){}B();H();Y();class y4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(bB).de($H).build(){}B();H();Y();class q4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(gB).de(EH).build(){}B();H();Y();class m4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(_B).de(IH).build(){}B();H();Y();class i4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(xB).de(FH).build(){}B();H();Y();class v4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(eB).de(UH).build(){}B();H();Y();class j4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(nB).de(TH).build(){}B();H();Y();class d4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(oB).de(GH).build(){}B();H();Y();class O4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(aB).de(CH).build(){}B();H();Y();class c4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(pB).de(LH).build(){}B();H();Y();class b4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(uB).de(AH).build(){}B();H();Y();class g4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(tB).de(WH).build(){}B();H();Y();class _4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(rl).de(zH).build(){}B();H();Y();class x4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(sl).de(RH).build(){}B();H();Y();class e4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(fl).de(SH).build(){}B();H();Y();class n4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(wl).de(PH).build(){}B();H();Y();class o4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(hl).de(XH).build(){}B();H();Y();class a4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser($l).de(YH).build(){}B();H();Y();class p4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(El).de(KH).build(){}B();H();Y();class u4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(Fl).de(JH).build(){}B();H();Y();class t4 extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(Ul).de(QH).build(){}B();H();Y();class rC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(Il).de(ZH).build(){}B();H();Y();class sC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(Tl).de(MH).build(){}B();H();Y();class fC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(Gl).de(BH).build(){}B();H();Y();class wC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(Cl).de(lH).build(){}B();H();Y();class hC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(Ll).de(HH).build(){}B();H();Y();class $C extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(Al).de(VH).build(){}B();H();Y();class EC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(Wl).de(DH).build(){}B();H();Y();class IC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(Rl).de(NH).build(){}B();H();Y();class FC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(Sl).de(yH).build(){}B();H();Y();class UC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(zl).de(kH).build(){}B();H();Y();class TC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(Pl).de(qH).build(){}B();H();Y();class GC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(Xl).de(mH).build(){}B();H();Y();class CC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(Yl).de(iH).build(){}B();H();Y();class LC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(Kl).de(vH).build(){}B();H();Y();class AC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(Zl).de(jH).build(){}B();H();Y();class WC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(Jl).de(dH).build(){}B();H();Y();class zC extends A.classBuilder().ep({...J}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(Ql).de(OH).build(){}var Iu={ActivateKeySigningKeyCommand:s4,AssociateVPCWithHostedZoneCommand:f4,ChangeCidrCollectionCommand:w4,ChangeResourceRecordSetsCommand:h4,ChangeTagsForResourceCommand:$4,CreateCidrCollectionCommand:E4,CreateHealthCheckCommand:I4,CreateHostedZoneCommand:F4,CreateKeySigningKeyCommand:U4,CreateQueryLoggingConfigCommand:T4,CreateReusableDelegationSetCommand:G4,CreateTrafficPolicyCommand:C4,CreateTrafficPolicyInstanceCommand:L4,CreateTrafficPolicyVersionCommand:A4,CreateVPCAssociationAuthorizationCommand:W4,DeactivateKeySigningKeyCommand:z4,DeleteCidrCollectionCommand:R4,DeleteHealthCheckCommand:S4,DeleteHostedZoneCommand:P4,DeleteKeySigningKeyCommand:X4,DeleteQueryLoggingConfigCommand:Y4,DeleteReusableDelegationSetCommand:K4,DeleteTrafficPolicyCommand:Z4,DeleteTrafficPolicyInstanceCommand:J4,DeleteVPCAssociationAuthorizationCommand:Q4,DisableHostedZoneDNSSECCommand:M4,DisassociateVPCFromHostedZoneCommand:B4,EnableHostedZoneDNSSECCommand:l4,GetAccountLimitCommand:H4,GetChangeCommand:V4,GetCheckerIpRangesCommand:D4,GetDNSSECCommand:k4,GetGeoLocationCommand:N4,GetHealthCheckCommand:y4,GetHealthCheckCountCommand:q4,GetHealthCheckLastFailureReasonCommand:m4,GetHealthCheckStatusCommand:i4,GetHostedZoneCommand:v4,GetHostedZoneCountCommand:j4,GetHostedZoneLimitCommand:d4,GetQueryLoggingConfigCommand:O4,GetReusableDelegationSetCommand:c4,GetReusableDelegationSetLimitCommand:b4,GetTrafficPolicyCommand:g4,GetTrafficPolicyInstanceCommand:_4,GetTrafficPolicyInstanceCountCommand:x4,ListCidrBlocksCommand:e4,ListCidrCollectionsCommand:n4,ListCidrLocationsCommand:o4,ListGeoLocationsCommand:a4,ListHealthChecksCommand:p4,ListHostedZonesCommand:rC,ListHostedZonesByNameCommand:u4,ListHostedZonesByVPCCommand:t4,ListQueryLoggingConfigsCommand:sC,ListResourceRecordSetsCommand:fC,ListReusableDelegationSetsCommand:wC,ListTagsForResourceCommand:hC,ListTagsForResourcesCommand:$C,ListTrafficPoliciesCommand:EC,ListTrafficPolicyInstancesCommand:UC,ListTrafficPolicyInstancesByHostedZoneCommand:IC,ListTrafficPolicyInstancesByPolicyCommand:FC,ListTrafficPolicyVersionsCommand:TC,ListVPCAssociationAuthorizationsCommand:GC,TestDNSAnswerCommand:CC,UpdateHealthCheckCommand:LC,UpdateHostedZoneCommentCommand:AC,UpdateTrafficPolicyCommentCommand:WC,UpdateTrafficPolicyInstanceCommand:zC};class Uw extends jG{}qf(Iu,Uw);_w();xw();ew();ow();Js();var w1=i(dr(),1);$h();B();ff();Y();var wV=i(Br(),1);as();function Fu(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var hV=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},$V=(r)=>{const f=[];switch(r.operation){default:f.push(Fu(r))}return f},EV=(r)=>{return{...wV.resolveAwsSdkSigV4Config(r)}};var IV=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},g={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var FV={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var JV=i(Br(),1);d1();Sh();Js();Ph();ff();sf();d0();Xh();Cs();var YV=i(Br(),1);Y();var KV=i(I0(),1);C0();yf();Cw();ns();var UV={["required"]:!1,type:"String"},TV={["required"]:!0,default:!1,type:"Boolean"},GV={["ref"]:"Endpoint"},RV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},SV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},$0={},CV={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},LV={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},AV=[RV],WV=[SV],zV=[{["ref"]:"Region"}],Tu={version:"1.0",parameters:{Region:UV,UseDualStack:TV,UseFIPS:TV,Endpoint:UV},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[GV]}],rules:[{conditions:AV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:WV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:GV,properties:$0,headers:$0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:zV}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:zV,assign:"PartitionResult"}],rules:[{conditions:[RV,SV],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,CV]},LV],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$0,headers:$0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:AV,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[CV,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:$0,headers:$0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:WV,rules:[{conditions:[LV],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$0,headers:$0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:$0,headers:$0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},PV=Tu;var XV=(r,f={})=>{return es(PV,{endpointParams:r,logger:f.logger})};ar.aws=os;var ZV=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??Es,base64Encoder:r?.base64Encoder??Fs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??XV,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??$V,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new YV.AwsSdkSigV4Signer}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??KV.parseUrl,utf8Decoder:r?.utf8Decoder??br,utf8Encoder:r?.utf8Encoder??Is}};Y();Yh();Y();var QV=(r)=>{df(process.version);const f=xf(r),s=()=>f().then(jf),w=ZV(r);return JV.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??_f,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??gf({serviceId:w.serviceId,clientVersion:FV.version}),maxAttempts:r?.maxAttempts??u(Df),region:r?.region??u(Zs,Qf),requestHandler:pr.create(r?.requestHandler??s),retryMode:r?.retryMode??u({...Nf,default:async()=>(await s()).retryMode||Vs}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??Ds,useDualstackEndpoint:r?.useDualstackEndpoint??u(Zf),useFipsEndpoint:r?.useFipsEndpoint??u(Jf)}};Kh();kr();Y();var MV=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},BV=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var CF=(r)=>r,lV=(r,f)=>{const s={...CF(ef(r)),...CF(Of(r)),...CF(Wf(r)),...CF(MV(r))};return f.forEach((w)=>w.configure(s)),{...r,...nf(s),...cf(s),...zf(s),...BV(s)}};class RC extends As{constructor(...[r]){const f=QV(r||{}),s=IV(f),w=Yf(s),h=kf(w),$=Mf(h),E=Rf($),I=Hf(E),F=EV(I),U=lV(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(w1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:hV,identityProviderConfigProvider:async(C)=>new w1.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(w1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();B();H();Y();Y();Y();class _s extends ks{constructor(r){super(r);Object.setPrototypeOf(this,_s.prototype)}}class LF extends _s{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,LF.prototype)}}class AF extends _s{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,AF.prototype)}}class WF extends _s{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,WF.prototype)}}class zF extends _s{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,zF.prototype)}}class RF extends _s{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,RF.prototype)}}class SF extends _s{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,SF.prototype),this.requestId=r.requestId}}class PF extends _s{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,PF.prototype)}}var HV=(r)=>({...r,...r.Password&&{Password:o}}),VV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}});var DV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.AbuseContactEmail&&{AbuseContactEmail:o},...r.AbuseContactPhone&&{AbuseContactPhone:o},...r.BillingContact&&{BillingContact:o}}),kV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),NV=(r)=>({...r,...r.emailAddress&&{emailAddress:o}}),yV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}}),qV=(r)=>({...r,...r.AuthCode&&{AuthCode:o},...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),mV=(r)=>({...r,...r.Password&&{Password:o}}),iV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),vV=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:o}});var sr=i(Br(),1);kr();Y();function Ir(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}var jV=async(r,f)=>{const s=Ir("AcceptDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},dV=async(r,f)=>{const s=Ir("AssociateDelegationSignerToDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},OV=async(r,f)=>{const s=Ir("CancelDomainTransferToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},cV=async(r,f)=>{const s=Ir("CheckDomainAvailability");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},bV=async(r,f)=>{const s=Ir("CheckDomainTransferability");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},gV=async(r,f)=>{const s=Ir("DeleteDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},_V=async(r,f)=>{const s=Ir("DeleteTagsForDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},xV=async(r,f)=>{const s=Ir("DisableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},eV=async(r,f)=>{const s=Ir("DisableDomainTransferLock");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},nV=async(r,f)=>{const s=Ir("DisassociateDelegationSignerFromDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},oV=async(r,f)=>{const s=Ir("EnableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},aV=async(r,f)=>{const s=Ir("EnableDomainTransferLock");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},pV=async(r,f)=>{const s=Ir("GetContactReachabilityStatus");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},uV=async(r,f)=>{const s=Ir("GetDomainDetail");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},tV=async(r,f)=>{const s=Ir("GetDomainSuggestions");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},rD=async(r,f)=>{const s=Ir("GetOperationDetail");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},sD=async(r,f)=>{const s=Ir("ListDomains");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},fD=async(r,f)=>{const s=Ir("ListOperations");let w;return w=JSON.stringify(Pu(r,f)),Er(f,s,"/",void 0,w)},wD=async(r,f)=>{const s=Ir("ListPrices");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},hD=async(r,f)=>{const s=Ir("ListTagsForDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},$D=async(r,f)=>{const s=Ir("PushDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},ED=async(r,f)=>{const s=Ir("RegisterDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},ID=async(r,f)=>{const s=Ir("RejectDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},FD=async(r,f)=>{const s=Ir("RenewDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},UD=async(r,f)=>{const s=Ir("ResendContactReachabilityEmail");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},TD=async(r,f)=>{const s=Ir("ResendOperationAuthorization");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},GD=async(r,f)=>{const s=Ir("RetrieveDomainAuthCode");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},CD=async(r,f)=>{const s=Ir("TransferDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},LD=async(r,f)=>{const s=Ir("TransferDomainToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},AD=async(r,f)=>{const s=Ir("UpdateDomainContact");let w;return w=JSON.stringify(Xu(r,f)),Er(f,s,"/",void 0,w)},WD=async(r,f)=>{const s=Ir("UpdateDomainContactPrivacy");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},zD=async(r,f)=>{const s=Ir("UpdateDomainNameservers");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},RD=async(r,f)=>{const s=Ir("UpdateTagsForDomain");let w;return w=JSON.stringify(q(r)),Er(f,s,"/",void 0,w)},SD=async(r,f)=>{const s=Ir("ViewBilling");let w;return w=JSON.stringify(Yu(r,f)),Er(f,s,"/",void 0,w)},PD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},XD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},YD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},KD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},ZD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},JD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},QD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},MD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},BD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},lD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},HD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},VD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},DD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},kD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=lu(s,f),{$metadata:t(r),...w}},ND=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},yD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=Hu(s,f),{$metadata:t(r),...w}},qD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=Vu(s,f),{$metadata:t(r),...w}},mD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=Du(s,f),{$metadata:t(r),...w}},iD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=ku(s,f),{$metadata:t(r),...w}},vD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},jD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);return await gr(r.body,f),{$metadata:t(r)}},dD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},OD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},cD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},bD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},gD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);return await gr(r.body,f),{$metadata:t(r)}},_D=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},xD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},eD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},nD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},oD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},aD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},pD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:t(r),...w}},uD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await sr.parseJsonBody(r.body,f);let w={};return w=qu(s,f),{$metadata:t(r),...w}},$r=async(r,f)=>{const s={...r,body:await sr.parseJsonErrorBody(r.body,f)},w=sr.loadRestJsonErrorCode(r,s.body);switch(w){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await Cu(s,f);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await Au(s,f);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await Wu(s,f);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await Ru(s,f);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await Gu(s,f);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await Lu(s,f);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await zu(s,f);default:const h=s.body;return mu({output:r,parsedBody:h,errorCode:w})}},Gu=async(r,f)=>{const s=r.body,w=q(s),h=new RF({$metadata:t(r),...w});return D(h,s)},Cu=async(r,f)=>{const s=r.body,w=q(s),h=new LF({$metadata:t(r),...w});return D(h,s)},Lu=async(r,f)=>{const s=r.body,w=q(s),h=new SF({$metadata:t(r),...w});return D(h,s)},Au=async(r,f)=>{const s=r.body,w=q(s),h=new AF({$metadata:t(r),...w});return D(h,s)},Wu=async(r,f)=>{const s=r.body,w=q(s),h=new WF({$metadata:t(r),...w});return D(h,s)},zu=async(r,f)=>{const s=r.body,w=q(s),h=new PF({$metadata:t(r),...w});return D(h,s)},Ru=async(r,f)=>{const s=r.body,w=q(s),h=new zF({$metadata:t(r),...w});return D(h,s)},Su=(r,f)=>{return p(r,{Currency:[],MaxPrice:KY})},Pu=(r,f)=>{return p(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:q,SubmittedSince:(s)=>s.getTime()/1000,Type:q})},Xu=(r,f)=>{return p(r,{AdminContact:q,BillingContact:q,Consent:(s)=>Su(s,f),DomainName:[],RegistrantContact:q,TechContact:q})},Yu=(r,f)=>{return p(r,{End:(s)=>s.getTime()/1000,Marker:[],MaxItems:[],Start:(s)=>s.getTime()/1000})},Ku=(r,f)=>{return p(r,{BillDate:(s)=>y(mf(Us(s))),DomainName:T,InvoiceId:T,Operation:T,Price:ZU})},Zu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Ku(w,f)})},Ju=(r,f)=>{return p(r,{ChangeOwnershipPrice:(s)=>rE(s,f),Name:T,RegistrationPrice:(s)=>rE(s,f),RenewalPrice:(s)=>rE(s,f),RestorationPrice:(s)=>rE(s,f),TransferPrice:(s)=>rE(s,f)})},Qu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Ju(w,f)})},Mu=(r,f)=>{return p(r,{AutoRenew:O0,DomainName:T,Expiry:(s)=>y(mf(Us(s))),TransferLock:O0})},Bu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Mu(w,f)})},lu=(r,f)=>{return p(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:q,AdminPrivacy:O0,AutoRenew:O0,BillingContact:q,BillingPrivacy:O0,CreationDate:(s)=>y(mf(Us(s))),DnsSec:T,DnssecKeys:q,DomainName:T,ExpirationDate:(s)=>y(mf(Us(s))),Nameservers:q,RegistrantContact:q,RegistrantPrivacy:O0,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:q,TechContact:q,TechPrivacy:O0,UpdatedDate:(s)=>y(mf(Us(s))),WhoIsServer:T})},Hu=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(mf(Us(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(mf(Us(s))),Type:T})},Vu=(r,f)=>{return p(r,{Domains:(s)=>Bu(s,f),NextPageMarker:T})},Du=(r,f)=>{return p(r,{NextPageMarker:T,Operations:(s)=>yu(s,f)})},ku=(r,f)=>{return p(r,{NextPageMarker:T,Prices:(s)=>Qu(s,f)})},Nu=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(mf(Us(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(mf(Us(s))),Type:T})},yu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Nu(w,f)})},rE=(r,f)=>{return p(r,{Currency:T,Price:ZU})},qu=(r,f)=>{return p(r,{BillingRecords:(s)=>Zu(s,f),NextPageMarker:T})},t=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var mu=vf(_s),Er=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)};class SC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(HV,void 0).ser(jV).de(PD).build(){}B();H();Y();class PC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(dV).de(XD).build(){}B();H();Y();class XC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(OV).de(YD).build(){}B();H();Y();class YC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(cV).de(KD).build(){}B();H();Y();class KC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(VV,void 0).ser(bV).de(ZD).build(){}B();H();Y();class ZC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(gV).de(JD).build(){}B();H();Y();class JC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(_V).de(QD).build(){}B();H();Y();class QC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(xV).de(MD).build(){}B();H();Y();class MC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(eV).de(BD).build(){}B();H();Y();class BC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(nV).de(lD).build(){}B();H();Y();class lC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(oV).de(HD).build(){}B();H();Y();class HC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(aV).de(VD).build(){}B();H();Y();class VC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(pV).de(DD).build(){}B();H();Y();class DC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,DV).ser(uV).de(kD).build(){}B();H();Y();class kC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(tV).de(ND).build(){}B();H();Y();class NC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(rD).de(yD).build(){}B();H();Y();class yC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(sD).de(qD).build(){}B();H();Y();class qC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(fD).de(mD).build(){}B();H();Y();class mC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(wD).de(iD).build(){}B();H();Y();class iC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(hD).de(vD).build(){}B();H();Y();class vC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser($D).de(jD).build(){}B();H();Y();class jC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(kV,void 0).ser(ED).de(dD).build(){}B();H();Y();class dC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(ID).de(OD).build(){}B();H();Y();class OC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(FD).de(cD).build(){}B();H();Y();class cC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,NV).ser(UD).de(bD).build(){}B();H();Y();class bC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(TD).de(gD).build(){}B();H();Y();class gC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,yV).ser(GD).de(_D).build(){}B();H();Y();class _C extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(qV,void 0).ser(CD).de(xD).build(){}B();H();Y();class xC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,mV).ser(LD).de(eD).build(){}B();H();Y();class eC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(iV,void 0).ser(AD).de(nD).build(){}B();H();Y();class nC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(WD).de(oD).build(){}B();H();Y();class oC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(vV,void 0).ser(zD).de(aD).build(){}B();H();Y();class aC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(RD).de(pD).build(){}B();H();Y();class pC extends A.classBuilder().ep({...g}).m(function(r,f,s,w){return[W(s,this.serialize,this.deserialize),z(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(SD).de(uD).build(){}var iu={AcceptDomainTransferFromAnotherAwsAccountCommand:SC,AssociateDelegationSignerToDomainCommand:PC,CancelDomainTransferToAnotherAwsAccountCommand:XC,CheckDomainAvailabilityCommand:YC,CheckDomainTransferabilityCommand:KC,DeleteDomainCommand:ZC,DeleteTagsForDomainCommand:JC,DisableDomainAutoRenewCommand:QC,DisableDomainTransferLockCommand:MC,DisassociateDelegationSignerFromDomainCommand:BC,EnableDomainAutoRenewCommand:lC,EnableDomainTransferLockCommand:HC,GetContactReachabilityStatusCommand:VC,GetDomainDetailCommand:DC,GetDomainSuggestionsCommand:kC,GetOperationDetailCommand:NC,ListDomainsCommand:yC,ListOperationsCommand:qC,ListPricesCommand:mC,ListTagsForDomainCommand:iC,PushDomainCommand:vC,RegisterDomainCommand:jC,RejectDomainTransferFromAnotherAwsAccountCommand:dC,RenewDomainCommand:OC,ResendContactReachabilityEmailCommand:cC,ResendOperationAuthorizationCommand:bC,RetrieveDomainAuthCodeCommand:gC,TransferDomainCommand:_C,TransferDomainToAnotherAwsAccountCommand:xC,UpdateDomainContactCommand:eC,UpdateDomainContactPrivacyCommand:nC,UpdateDomainNameserversCommand:oC,UpdateTagsForDomainCommand:aC,ViewBillingCommand:pC};class sE extends RC{}qf(iu,sE);import{runAction as vu}from"@stacksjs/actions";import{config as rk}from"@stacksjs/config";import{Action as ju}from"@stacksjs/enums";import{err as gw,handleError as uC,ok as h1}from"@stacksjs/error-handling";import{log as Tw}from"@stacksjs/logging";import{path as du}from"@stacksjs/path";import{fs as tD}from"@stacksjs/storage";async function blr(r){const f=new Uw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return gw(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return gw(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return gw(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return await f.deleteHostedZone({Id:w.Id}),Tw.info(`Deleted Hosted Zone for domain: ${r}`),h1("success")}async function glr(r){const f=new Uw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return gw(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return gw(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return gw(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return Tw.info(`Deleted DNS records for domain: ${r}`),h1("success")}async function _lr(r){const f=new Uw,w=(await f.listHostedZonesByName({DNSName:r})).HostedZones?.find(($)=>$.Name===`${r}.`);if(w)return h1(w);const h=await f.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!h.HostedZone)return gw("Failed to create hosted zone");return h1(h)}function Ou(r){try{const f=du.projectConfigPath("dns.ts"),w=tD.readFileSync(f,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((h)=>`'${h}'`).join(", ")}]`);tD.writeFileSync(f,w,"utf-8"),Tw.info("Nameservers have been set.")}catch(f){console.error("Error updating nameservers:",f)}}async function xlr(r){try{const f=new Uw,{HostedZones:s}=await f.listHostedZonesByName({DNSName:r});if(!s)return uC(`No hosted zones found for domain ${r}`);const w=s[0];if(w&&w.Name===`${r}.`)return h1(w.Id);return h1(null)}catch(f){return console.error(f),uC(`Failed to find hosted zone for domain ${r}`)}}async function cu(r){if(!r)return[];try{return(await new sE().getDomainDetail({DomainName:r}))?.Nameservers?.map((w)=>w.Name)||[]}catch(f){console.error(f),uC("Error getting domain detail")}}async function bu(r,f){if(!f)f=rk.app.url;const s=await cu(f);if(s&&r&&JSON.stringify(s.sort())!==JSON.stringify(r.sort()))return Tw.info("Updating your domain nameservers to match the ones in your hosted zone..."),Tw.debug("Hosted zone nameservers:",r),Tw.debug("Domain nameservers:",s),await new sE().updateDomainNameservers({DomainName:f,Nameservers:r.map((h)=>({Name:h}))}),Ou(r),Tw.info("Nameservers updated."),!0;Tw.success("Your nameservers are up to date.")}async function elr(r){if(!r)r=rk.app.url;const f=new Uw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return!1;const w=s.HostedZones.find((h)=>h.Name===`${r}.`);if(w){const $=(await f.getHostedZone({Id:w.Id})).DelegationSet?.NameServers||[];return await bu($,r),!0}return!1}async function nlr(r){return await vu(ju.DomainsAdd,r)}export{Ou as writeNameserversToConfig,bu as updateNameservers,elr as hasUserDomainBeenAddedToCloud,cu as getNameservers,xlr as findHostedZone,glr as deleteHostedZoneRecords,blr as deleteHostedZone,_lr as createHostedZone,nlr as addDomain};
|
|
34
34
|
|
|
35
|
-
//# debugId=
|
|
35
|
+
//# debugId=C70EA57F6B3F380864756E2164756E21
|
|
36
36
|
//# sourceMappingURL=index.js.map
|