@stacksjs/dns 0.69.2 → 0.69.3
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 +33 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
3
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(T){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),CA=OT((f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})},"serializerMiddleware"),IA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},LA={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function AA(f,h,w){return{applyToStack:(s)=>{s.add(FA(f,w),IA),s.add(CA(f,h),LA)}}}OT(AA,"getSerdePlugin")});var t0=H((dE0,SA)=>{var{defineProperty:I4,getOwnPropertyDescriptor:RO,getOwnPropertyNames:SO}=Object,XO=Object.prototype.hasOwnProperty,Ch=(f,h)=>I4(f,"name",{value:h,configurable:!0}),YO=(f,h)=>{for(var w in h)I4(f,w,{get:h[w],enumerable:!0})},MO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of SO(h))if(!XO.call(f,$)&&$!==w)I4(f,$,{get:()=>h[$],enumerable:!(s=RO(h,$))||s.enumerable})}return f},QO=(f)=>MO(I4({},"__esModule",{value:!0}),f),GA={};YO(GA,{Field:()=>JO,Fields:()=>VO,HttpRequest:()=>PO,HttpResponse:()=>HO,IHttpRequest:()=>WA.HttpRequest,getHttpHandlerExtensionConfiguration:()=>KO,isValidHostname:()=>RA,resolveHttpHandlerRuntimeConfig:()=>ZO});SA.exports=QO(GA);var KO=Ch((f)=>{let h=f.httpHandler;return{setHttpHandler(w){h=w},httpHandler(){return h},updateHttpClientConfig(w,s){h.updateHttpClientConfig(w,s)},httpHandlerConfigs(){return h.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),ZO=Ch((f)=>{return{httpHandler:f.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),WA=T1(),JO=class{static{Ch(this,"Field")}constructor({name:f,kind:h=WA.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=h,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((h)=>h!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}},VO=class{constructor({fields:f=[],encoding:h="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=h}static{Ch(this,"Fields")}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((h)=>h.kind===f)}},PO=class f{static{Ch(this,"HttpRequest")}constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let w=new f({...h,headers:{...h.headers}});if(w.query)w.query=zA(w.query);return w}static isInstance(h){if(!h)return!1;let w=h;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return f.clone(this)}};function zA(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}Ch(zA,"cloneQuery");var HO=class{static{Ch(this,"HttpResponse")}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;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}};function RA(f){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(f)}Ch(RA,"isValidHostname")});var lT=H((xE0,YA)=>{var{defineProperty:L4,getOwnPropertyDescriptor:NO,getOwnPropertyNames:DO}=Object,qO=Object.prototype.hasOwnProperty,kO=(f,h)=>L4(f,"name",{value:h,configurable:!0}),yO=(f,h)=>{for(var w in h)L4(f,w,{get:h[w],enumerable:!0})},jO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of DO(h))if(!qO.call(f,$)&&$!==w)L4(f,$,{get:()=>h[$],enumerable:!(s=NO(h,$))||s.enumerable})}return f},OO=(f)=>jO(L4({},"__esModule",{value:!0}),f),XA={};yO(XA,{isArrayBuffer:()=>lO});YA.exports=OO(XA);var lO=kO((f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]","isArrayBuffer")});var qw=H((_E0,KA)=>{var{defineProperty:A4,getOwnPropertyDescriptor:vO,getOwnPropertyNames:bO}=Object,mO=Object.prototype.hasOwnProperty,MA=(f,h)=>A4(f,"name",{value:h,configurable:!0}),dO=(f,h)=>{for(var w in h)A4(f,w,{get:h[w],enumerable:!0})},iO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of bO(h))if(!mO.call(f,$)&&$!==w)A4(f,$,{get:()=>h[$],enumerable:!(s=vO(h,$))||s.enumerable})}return f},cO=(f)=>iO(A4({},"__esModule",{value:!0}),f),QA={};dO(QA,{fromArrayBuffer:()=>xO,fromString:()=>_O});KA.exports=cO(QA);var gO=lT(),vT=A0("buffer"),xO=MA((f,h=0,w=f.byteLength-h)=>{if(!gO.isArrayBuffer(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return vT.Buffer.from(f,h,w)},"fromArrayBuffer"),_O=MA((f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?vT.Buffer.from(f,h):vT.Buffer.from(f)},"fromString")});var VA=H((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.fromBase64=void 0;var nO=qw(),eO=/^[A-Za-z0-9+/]*={0,2}$/,aO=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!eO.exec(f))throw new TypeError("Invalid base64 string.");let h=nO.fromString(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};ZA.fromBase64=aO});var u1=H((eE0,DA)=>{var{defineProperty:B4,getOwnPropertyDescriptor:oO,getOwnPropertyNames:pO}=Object,uO=Object.prototype.hasOwnProperty,bT=(f,h)=>B4(f,"name",{value:h,configurable:!0}),tO=(f,h)=>{for(var w in h)B4(f,w,{get:h[w],enumerable:!0})},fl=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of pO(h))if(!uO.call(f,$)&&$!==w)B4(f,$,{get:()=>h[$],enumerable:!(s=oO(h,$))||s.enumerable})}return f},hl=(f)=>fl(B4({},"__esModule",{value:!0}),f),PA={};tO(PA,{fromUtf8:()=>NA,toUint8Array:()=>wl,toUtf8:()=>sl});DA.exports=hl(PA);var HA=qw(),NA=bT((f)=>{let h=HA.fromString(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),wl=bT((f)=>{if(typeof f==="string")return NA(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)},"toUint8Array"),sl=bT((f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return HA.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("utf8")},"toUtf8")});var yA=H((qA)=>{Object.defineProperty(qA,"__esModule",{value:!0});qA.toBase64=void 0;var $l=qw(),rl=u1(),El=(f)=>{let h;if(typeof f==="string")h=rl.fromUtf8(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return $l.fromArrayBuffer(h.buffer,h.byteOffset,h.byteLength).toString("base64")};qA.toBase64=El});var Ih=H((oE0,G4)=>{var{defineProperty:jA,getOwnPropertyDescriptor:Ul,getOwnPropertyNames:Tl}=Object,Fl=Object.prototype.hasOwnProperty,mT=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tl(h))if(!Fl.call(f,$)&&$!==w)jA(f,$,{get:()=>h[$],enumerable:!(s=Ul(h,$))||s.enumerable})}return f},OA=(f,h,w)=>(mT(f,h,"default"),w&&mT(w,h,"default")),Cl=(f)=>mT(jA({},"__esModule",{value:!0}),f),dT={};G4.exports=Cl(dT);OA(dT,VA(),G4.exports);OA(dT,yA(),G4.exports)});var iT=H((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.ChecksumStream=void 0;var Il=Ih(),Ll=A0("stream");class lA extends Ll.Duplex{constructor({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$}){var r,E;super();if(typeof w.pipe==="function")this.source=w;else throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);this.base64Encoder=$!==null&&$!==void 0?$:Il.toBase64,this.expectedChecksum=f,this.checksum=h,this.checksumSourceLocation=s,this.source.pipe(this)}_read(f){}_write(f,h,w){try{this.checksum.update(f),this.push(f)}catch(s){return w(s)}return w()}async _final(f){try{let h=await this.checksum.digest(),w=this.base64Encoder(h);if(this.expectedChecksum!==w)return f(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${w}" in response header "${this.checksumSourceLocation}".`))}catch(h){return f(h)}return this.push(null),f()}}vA.ChecksumStream=lA});var Lh=H((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.isBlob=mA.isReadableStream=void 0;var Al=(f)=>{var h;return typeof ReadableStream==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===ReadableStream.name||f instanceof ReadableStream)};mA.isReadableStream=Al;var Bl=(f)=>{var h;return typeof Blob==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===Blob.name||f instanceof Blob)};mA.isBlob=Bl});var xA=H((cA)=>{Object.defineProperty(cA,"__esModule",{value:!0});cA.ChecksumStream=void 0;var Wl=typeof ReadableStream==="function"?ReadableStream:function(){};class iA extends Wl{}cA.ChecksumStream=iA});var eA=H((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.createChecksumStream=void 0;var zl=Ih(),Rl=Lh(),Sl=xA(),Xl=({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$})=>{var r,E;if(!Rl.isReadableStream(w))throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);let U=$!==null&&$!==void 0?$:zl.toBase64;if(typeof TransformStream!=="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let T=new TransformStream({start(){},async transform(C,I){h.update(C),I.enqueue(C)},async flush(C){let I=await h.digest(),L=U(I);if(f!==L){let G=new Error(`Checksum mismatch: expected "${f}" but received "${L}" in response header "${s}".`);C.error(G)}else C.terminate()}});w.pipeThrough(T);let F=T.readable;return Object.setPrototypeOf(F,Sl.ChecksumStream.prototype),F};_A.createChecksumStream=Xl});var pA=H((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.createChecksumStream=void 0;var Yl=Lh(),Ml=iT(),Ql=eA();function Kl(f){if(typeof ReadableStream==="function"&&Yl.isReadableStream(f.source))return Ql.createChecksumStream(f);return new Ml.ChecksumStream(f)}aA.createChecksumStream=Kl});var cT=H((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.ByteArrayCollector=void 0;class uA{constructor(f){this.allocByteArray=f,this.byteLength=0,this.byteArrays=[]}push(f){this.byteArrays.push(f),this.byteLength+=f.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let f=this.allocByteArray(this.byteLength),h=0;for(let w=0;w<this.byteArrays.length;++w){let s=this.byteArrays[w];f.set(s,h),h+=s.byteLength}return this.reset(),f}reset(){this.byteArrays=[],this.byteLength=0}}tA.ByteArrayCollector=uA});var EB=H(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.modeOf=$B.sizeOf=$B.flush=$B.merge=$B.createBufferedReadable=$B.createBufferedReadableStream=void 0;var Zl=cT();function hB(f,h,w){let s=f.getReader(),$=!1,r=0,E=["",new Zl.ByteArrayCollector((F)=>new Uint8Array(F))],U=-1,T=async(F)=>{let{value:C,done:I}=await s.read(),L=C;if(I){if(U!==-1){let G=W4(E,U);if(kw(G)>0)F.enqueue(G)}F.close()}else{let G=sB(L);if(U!==G){if(U>=0)F.enqueue(W4(E,U));U=G}if(U===-1){F.enqueue(L);return}let S=kw(L);r+=S;let Q=kw(E[U]);if(S>=h&&Q===0)F.enqueue(L);else{let M=wB(E,U,L);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${S} is below threshold of ${h}, automatically buffering.`);if(M>=h)F.enqueue(W4(E,U));else await T(F)}}};return new ReadableStream({pull:T})}$B.createBufferedReadableStream=hB;$B.createBufferedReadable=hB;function wB(f,h,w){switch(h){case 0:return f[0]+=w,kw(f[0]);case 1:case 2:return f[h].push(w),kw(f[h])}}$B.merge=wB;function W4(f,h){switch(h){case 0:let w=f[0];return f[0]="",w;case 1:case 2:return f[h].flush()}throw new Error(`@smithy/util-stream - invalid index ${h} given to flush()`)}$B.flush=W4;function kw(f){var h,w;return(w=(h=f===null||f===void 0?void 0:f.byteLength)!==null&&h!==void 0?h:f===null||f===void 0?void 0:f.length)!==null&&w!==void 0?w:0}$B.sizeOf=kw;function sB(f){if(typeof Buffer!=="undefined"&&f instanceof Buffer)return 2;if(f instanceof Uint8Array)return 1;if(typeof f==="string")return 0;return-1}$B.modeOf=sB});var CB=H((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.createBufferedReadable=void 0;var Dl=A0("stream"),UB=cT(),bf=EB(),ql=Lh();function kl(f,h,w){if(ql.isReadableStream(f))return bf.createBufferedReadableStream(f,h,w);let s=new Dl.Readable({read(){}}),$=!1,r=0,E=["",new UB.ByteArrayCollector((T)=>new Uint8Array(T)),new UB.ByteArrayCollector((T)=>Buffer.from(new Uint8Array(T)))],U=-1;return f.on("data",(T)=>{let F=bf.modeOf(T);if(U!==F){if(U>=0)s.push(bf.flush(E,U));U=F}if(U===-1){s.push(T);return}let C=bf.sizeOf(T);r+=C;let I=bf.sizeOf(E[U]);if(C>=h&&I===0)s.push(T);else{let L=bf.merge(E,U,T);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${h}, automatically buffering.`);if(L>=h)s.push(bf.flush(E,U))}}),f.on("end",()=>{if(U!==-1){let T=bf.flush(E,U);if(bf.sizeOf(T)>0)s.push(T)}s.push(null)}),s}TB.createBufferedReadable=kl});var AB=H((IB)=>{Object.defineProperty(IB,"__esModule",{value:!0});IB.getAwsChunkedEncodingStream=void 0;var yl=A0("stream"),jl=(f,h)=>{let{base64Encoder:w,bodyLengthChecker:s,checksumAlgorithmFn:$,checksumLocationName:r,streamHasher:E}=h,U=w!==void 0&&$!==void 0&&r!==void 0&&E!==void 0,T=U?E($,f):void 0,F=new yl.Readable({read:()=>{}});return f.on("data",(C)=>{let I=s(C)||0;F.push(`${I.toString(16)}\r
|
|
2
|
+
var Hj=Object.create;var{getPrototypeOf:Nj,defineProperty:OU,getOwnPropertyNames:Dj}=Object;var qj=Object.prototype.hasOwnProperty;var o=(f,h,w)=>{w=f!=null?Hj(Nj(f)):{};let s=h||!f||!f.__esModule?OU(w,"default",{value:f,enumerable:!0}):w;for(let $ of Dj(f))if(!qj.call(s,$))OU(s,$,{get:()=>f[$],enumerable:!0});return s};var H=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports);var Uh=(f,h)=>{for(var w in h)OU(f,w,{get:h[w],enumerable:!0,configurable:!0,set:(s)=>h[w]=()=>s})};var B=(f,h)=>()=>(f&&(h=f(f=0)),h);var B0=import.meta.require;var Zw=(f)=>{let h=f.httpHandler;return{setHttpHandler(w){h=w},httpHandler(){return h},updateHttpClientConfig(w,s){h.updateHttpClientConfig(w,s)},httpHandlerConfigs(){return h.httpHandlerConfigs()}}},Jw=(f)=>{return{httpHandler:f.httpHandler()}};var mL=()=>{};var U1=H((BE0,aL)=>{var{defineProperty:$4,getOwnPropertyDescriptor:kj,getOwnPropertyNames:yj}=Object,jj=Object.prototype.hasOwnProperty,r4=(f,h)=>$4(f,"name",{value:h,configurable:!0}),Oj=(f,h)=>{for(var w in h)$4(f,w,{get:h[w],enumerable:!0})},lj=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of yj(h))if(!jj.call(f,$)&&$!==w)$4(f,$,{get:()=>h[$],enumerable:!(s=kj(h,$))||s.enumerable})}return f},vj=(f)=>lj($4({},"__esModule",{value:!0}),f),dL={};Oj(dL,{AlgorithmId:()=>xL,EndpointURLScheme:()=>gL,FieldPosition:()=>_L,HttpApiKeyAuthLocation:()=>cL,HttpAuthLocation:()=>iL,IniSectionType:()=>nL,RequestHandlerProtocol:()=>eL,SMITHY_CONTEXT_KEY:()=>cj,getDefaultClientConfiguration:()=>dj,resolveDefaultRuntimeConfig:()=>ij});aL.exports=vj(dL);var iL=((f)=>{return f.HEADER="header",f.QUERY="query",f})(iL||{}),cL=((f)=>{return f.HEADER="header",f.QUERY="query",f})(cL||{}),gL=((f)=>{return f.HTTP="http",f.HTTPS="https",f})(gL||{}),xL=((f)=>{return f.MD5="md5",f.CRC32="crc32",f.CRC32C="crc32c",f.SHA1="sha1",f.SHA256="sha256",f})(xL||{}),bj=r4((f)=>{let h=[];if(f.sha256!==void 0)h.push({algorithmId:()=>"sha256",checksumConstructor:()=>f.sha256});if(f.md5!=null)h.push({algorithmId:()=>"md5",checksumConstructor:()=>f.md5});return{_checksumAlgorithms:h,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),mj=r4((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),dj=r4((f)=>{return{...bj(f)}},"getDefaultClientConfiguration"),ij=r4((f)=>{return{...mj(f)}},"resolveDefaultRuntimeConfig"),_L=((f)=>{return f[f.HEADER=0]="HEADER",f[f.TRAILER=1]="TRAILER",f})(_L||{}),cj="__smithy_context",nL=((f)=>{return f.PROFILE="profile",f.SSO_SESSION="sso-session",f.SERVICES="services",f})(nL||{}),eL=((f)=>{return f.HTTP_0_9="http/0.9",f.HTTP_1_0="http/1.0",f.TDS_8_0="tds/8.0",f})(eL||{})});var gj;var oL=B(()=>{gj=o(U1(),1)});var pL=()=>{};class n0{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){let h=new n0({...f,headers:{...f.headers}});if(h.query)h.query=xj(h.query);return h}static isInstance(f){if(!f)return!1;let h=f;return"method"in h&&"protocol"in h&&"hostname"in h&&"path"in h&&typeof h.query==="object"&&typeof h.headers==="object"}clone(){return n0.clone(this)}}function xj(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}class ch{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;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}}var uL=()=>{};var F1=B(()=>{mL();oL();pL();uL()});function Vw(f){return f}var _j=(f)=>(h)=>async(w)=>{if(!n0.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},nj,Pw=(f)=>({applyToStack:(h)=>{h.add(_j(f),nj)}});var E4=B(()=>{F1();nj={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var ej=()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U,overrideOutputFilterSensitiveLog:F}=T,C=U??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:L,...G}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(G),metadata:L}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U}=T,F=U??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},aj,Hw=(f)=>({applyToStack:(h)=>{h.add(ej(),aj)}});var tL=B(()=>{aj={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var T4=B(()=>{tL()});var fB="X-Amzn-Trace-Id",oj="AWS_LAMBDA_FUNCTION_NAME",pj="_X_AMZN_TRACE_ID",uj=(f)=>(h)=>async(w)=>{let{request:s}=w;if(!n0.isInstance(s)||f.runtime!=="node"||s.headers.hasOwnProperty(fB))return h(w);let $=process.env[oj],r=process.env[pj],E=(T)=>typeof T==="string"&&T.length>0;if(E($)&&E(r))s.headers[fB]=r;return h({...w,request:s})},tj,Nw=(f)=>({applyToStack:(h)=>{h.add(uj(f),tj)}});var U4=B(()=>{F1();tj={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var Fh=H((jE0,$B)=>{var{defineProperty:F4,getOwnPropertyDescriptor:fO,getOwnPropertyNames:hO}=Object,wO=Object.prototype.hasOwnProperty,wB=(f,h)=>F4(f,"name",{value:h,configurable:!0}),sO=(f,h)=>{for(var w in h)F4(f,w,{get:h[w],enumerable:!0})},$O=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of hO(h))if(!wO.call(f,$)&&$!==w)F4(f,$,{get:()=>h[$],enumerable:!(s=fO(h,$))||s.enumerable})}return f},rO=(f)=>$O(F4({},"__esModule",{value:!0}),f),sB={};sO(sB,{getSmithyContext:()=>EO,normalizeProvider:()=>TO});$B.exports=rO(sB);var hB=U1(),EO=wB((f)=>f[hB.SMITHY_CONTEXT_KEY]||(f[hB.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),TO=wB((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider")});var Dw=H((OE0,IB)=>{var{defineProperty:C4,getOwnPropertyDescriptor:UO,getOwnPropertyNames:FO}=Object,CO=Object.prototype.hasOwnProperty,lU=(f,h)=>C4(f,"name",{value:h,configurable:!0}),IO=(f,h)=>{for(var w in h)C4(f,w,{get:h[w],enumerable:!0})},LO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of FO(h))if(!CO.call(f,$)&&$!==w)C4(f,$,{get:()=>h[$],enumerable:!(s=UO(h,$))||s.enumerable})}return f},BO=(f)=>LO(C4({},"__esModule",{value:!0}),f),rB={};IO(rB,{deserializerMiddleware:()=>EB,deserializerMiddlewareOption:()=>UB,getSerdePlugin:()=>CB,serializerMiddleware:()=>TB,serializerMiddlewareOption:()=>FB});IB.exports=BO(rB);var EB=lU((f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
3
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),TB=lU((f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})},"serializerMiddleware"),UB={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},FB={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function CB(f,h,w){return{applyToStack:(s)=>{s.add(EB(f,w),UB),s.add(TB(f,h),FB)}}}lU(CB,"getSerdePlugin")});var t0=H((lE0,WB)=>{var{defineProperty:I4,getOwnPropertyDescriptor:AO,getOwnPropertyNames:GO}=Object,WO=Object.prototype.hasOwnProperty,Ch=(f,h)=>I4(f,"name",{value:h,configurable:!0}),zO=(f,h)=>{for(var w in h)I4(f,w,{get:h[w],enumerable:!0})},RO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of GO(h))if(!WO.call(f,$)&&$!==w)I4(f,$,{get:()=>h[$],enumerable:!(s=AO(h,$))||s.enumerable})}return f},XO=(f)=>RO(I4({},"__esModule",{value:!0}),f),LB={};zO(LB,{Field:()=>MO,Fields:()=>QO,HttpRequest:()=>KO,HttpResponse:()=>ZO,IHttpRequest:()=>BB.HttpRequest,getHttpHandlerExtensionConfiguration:()=>SO,isValidHostname:()=>GB,resolveHttpHandlerRuntimeConfig:()=>YO});WB.exports=XO(LB);var SO=Ch((f)=>{let h=f.httpHandler;return{setHttpHandler(w){h=w},httpHandler(){return h},updateHttpClientConfig(w,s){h.updateHttpClientConfig(w,s)},httpHandlerConfigs(){return h.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),YO=Ch((f)=>{return{httpHandler:f.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),BB=U1(),MO=class{static{Ch(this,"Field")}constructor({name:f,kind:h=BB.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=h,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((h)=>h!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}},QO=class{constructor({fields:f=[],encoding:h="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=h}static{Ch(this,"Fields")}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((h)=>h.kind===f)}},KO=class f{static{Ch(this,"HttpRequest")}constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let w=new f({...h,headers:{...h.headers}});if(w.query)w.query=AB(w.query);return w}static isInstance(h){if(!h)return!1;let w=h;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return f.clone(this)}};function AB(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}Ch(AB,"cloneQuery");var ZO=class{static{Ch(this,"HttpResponse")}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;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}};function GB(f){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(f)}Ch(GB,"isValidHostname")});var B4=H((dE0,RB)=>{var{defineProperty:L4,getOwnPropertyDescriptor:JO,getOwnPropertyNames:VO}=Object,PO=Object.prototype.hasOwnProperty,HO=(f,h)=>L4(f,"name",{value:h,configurable:!0}),NO=(f,h)=>{for(var w in h)L4(f,w,{get:h[w],enumerable:!0})},DO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of VO(h))if(!PO.call(f,$)&&$!==w)L4(f,$,{get:()=>h[$],enumerable:!(s=JO(h,$))||s.enumerable})}return f},qO=(f)=>DO(L4({},"__esModule",{value:!0}),f),zB={};NO(zB,{isArrayBuffer:()=>kO});RB.exports=qO(zB);var kO=HO((f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]","isArrayBuffer")});var qw=H((iE0,YB)=>{var{defineProperty:A4,getOwnPropertyDescriptor:yO,getOwnPropertyNames:jO}=Object,OO=Object.prototype.hasOwnProperty,XB=(f,h)=>A4(f,"name",{value:h,configurable:!0}),lO=(f,h)=>{for(var w in h)A4(f,w,{get:h[w],enumerable:!0})},vO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of jO(h))if(!OO.call(f,$)&&$!==w)A4(f,$,{get:()=>h[$],enumerable:!(s=yO(h,$))||s.enumerable})}return f},bO=(f)=>vO(A4({},"__esModule",{value:!0}),f),SB={};lO(SB,{fromArrayBuffer:()=>dO,fromString:()=>iO});YB.exports=bO(SB);var mO=B4(),vU=B0("buffer"),dO=XB((f,h=0,w=f.byteLength-h)=>{if(!mO.isArrayBuffer(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return vU.Buffer.from(f,h,w)},"fromArrayBuffer"),iO=XB((f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?vU.Buffer.from(f,h):vU.Buffer.from(f)},"fromString")});var KB=H((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.fromBase64=void 0;var cO=qw(),gO=/^[A-Za-z0-9+/]*={0,2}$/,xO=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!gO.exec(f))throw new TypeError("Invalid base64 string.");let h=cO.fromString(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};MB.fromBase64=xO});var u1=H((gE0,PB)=>{var{defineProperty:G4,getOwnPropertyDescriptor:_O,getOwnPropertyNames:nO}=Object,eO=Object.prototype.hasOwnProperty,bU=(f,h)=>G4(f,"name",{value:h,configurable:!0}),aO=(f,h)=>{for(var w in h)G4(f,w,{get:h[w],enumerable:!0})},oO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of nO(h))if(!eO.call(f,$)&&$!==w)G4(f,$,{get:()=>h[$],enumerable:!(s=_O(h,$))||s.enumerable})}return f},pO=(f)=>oO(G4({},"__esModule",{value:!0}),f),ZB={};aO(ZB,{fromUtf8:()=>VB,toUint8Array:()=>uO,toUtf8:()=>tO});PB.exports=pO(ZB);var JB=qw(),VB=bU((f)=>{let h=JB.fromString(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),uO=bU((f)=>{if(typeof f==="string")return VB(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)},"toUint8Array"),tO=bU((f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return JB.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("utf8")},"toUtf8")});var DB=H((HB)=>{Object.defineProperty(HB,"__esModule",{value:!0});HB.toBase64=void 0;var fl=qw(),hl=u1(),wl=(f)=>{let h;if(typeof f==="string")h=hl.fromUtf8(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return fl.fromArrayBuffer(h.buffer,h.byteOffset,h.byteLength).toString("base64")};HB.toBase64=wl});var Ih=H((_E0,W4)=>{var{defineProperty:qB,getOwnPropertyDescriptor:sl,getOwnPropertyNames:$l}=Object,rl=Object.prototype.hasOwnProperty,mU=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of $l(h))if(!rl.call(f,$)&&$!==w)qB(f,$,{get:()=>h[$],enumerable:!(s=sl(h,$))||s.enumerable})}return f},kB=(f,h,w)=>(mU(f,h,"default"),w&&mU(w,h,"default")),El=(f)=>mU(qB({},"__esModule",{value:!0}),f),dU={};W4.exports=El(dU);kB(dU,KB(),W4.exports);kB(dU,DB(),W4.exports)});var iU=H((jB)=>{Object.defineProperty(jB,"__esModule",{value:!0});jB.ChecksumStream=void 0;var Tl=Ih(),Ul=B0("stream");class yB extends Ul.Duplex{constructor({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$}){var r,E;super();if(typeof w.pipe==="function")this.source=w;else throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);this.base64Encoder=$!==null&&$!==void 0?$:Tl.toBase64,this.expectedChecksum=f,this.checksum=h,this.checksumSourceLocation=s,this.source.pipe(this)}_read(f){}_write(f,h,w){try{this.checksum.update(f),this.push(f)}catch(s){return w(s)}return w()}async _final(f){try{let h=await this.checksum.digest(),w=this.base64Encoder(h);if(this.expectedChecksum!==w)return f(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${w}" in response header "${this.checksumSourceLocation}".`))}catch(h){return f(h)}return this.push(null),f()}}jB.ChecksumStream=yB});var Lh=H((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.isBlob=lB.isReadableStream=void 0;var Fl=(f)=>{var h;return typeof ReadableStream==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===ReadableStream.name||f instanceof ReadableStream)};lB.isReadableStream=Fl;var Cl=(f)=>{var h;return typeof Blob==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===Blob.name||f instanceof Blob)};lB.isBlob=Cl});var iB=H((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.ChecksumStream=void 0;var Ll=typeof ReadableStream==="function"?ReadableStream:function(){};class bB extends Ll{}mB.ChecksumStream=bB});var xB=H((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});cB.createChecksumStream=void 0;var Bl=Ih(),Al=Lh(),Gl=iB(),Wl=({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$})=>{var r,E;if(!Al.isReadableStream(w))throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);let T=$!==null&&$!==void 0?$:Bl.toBase64;if(typeof TransformStream!=="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(C,I){h.update(C),I.enqueue(C)},async flush(C){let I=await h.digest(),L=T(I);if(f!==L){let G=new Error(`Checksum mismatch: expected "${f}" but received "${L}" in response header "${s}".`);C.error(G)}else C.terminate()}});w.pipeThrough(U);let F=U.readable;return Object.setPrototypeOf(F,Gl.ChecksumStream.prototype),F};cB.createChecksumStream=Wl});var eB=H((_B)=>{Object.defineProperty(_B,"__esModule",{value:!0});_B.createChecksumStream=void 0;var zl=Lh(),Rl=iU(),Xl=xB();function Sl(f){if(typeof ReadableStream==="function"&&zl.isReadableStream(f.source))return Xl.createChecksumStream(f);return new Rl.ChecksumStream(f)}_B.createChecksumStream=Sl});var cU=H((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});oB.ByteArrayCollector=void 0;class aB{constructor(f){this.allocByteArray=f,this.byteLength=0,this.byteArrays=[]}push(f){this.byteArrays.push(f),this.byteLength+=f.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let f=this.allocByteArray(this.byteLength),h=0;for(let w=0;w<this.byteArrays.length;++w){let s=this.byteArrays[w];f.set(s,h),h+=s.byteLength}return this.reset(),f}reset(){this.byteArrays=[],this.byteLength=0}}oB.ByteArrayCollector=aB});var sA=H((hA)=>{Object.defineProperty(hA,"__esModule",{value:!0});hA.modeOf=hA.sizeOf=hA.flush=hA.merge=hA.createBufferedReadable=hA.createBufferedReadableStream=void 0;var Yl=cU();function uB(f,h,w){let s=f.getReader(),$=!1,r=0,E=["",new Yl.ByteArrayCollector((F)=>new Uint8Array(F))],T=-1,U=async(F)=>{let{value:C,done:I}=await s.read(),L=C;if(I){if(T!==-1){let G=z4(E,T);if(kw(G)>0)F.enqueue(G)}F.close()}else{let G=fA(L);if(T!==G){if(T>=0)F.enqueue(z4(E,T));T=G}if(T===-1){F.enqueue(L);return}let X=kw(L);r+=X;let Q=kw(E[T]);if(X>=h&&Q===0)F.enqueue(L);else{let M=tB(E,T,L);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${X} is below threshold of ${h}, automatically buffering.`);if(M>=h)F.enqueue(z4(E,T));else await U(F)}}};return new ReadableStream({pull:U})}hA.createBufferedReadableStream=uB;hA.createBufferedReadable=uB;function tB(f,h,w){switch(h){case 0:return f[0]+=w,kw(f[0]);case 1:case 2:return f[h].push(w),kw(f[h])}}hA.merge=tB;function z4(f,h){switch(h){case 0:let w=f[0];return f[0]="",w;case 1:case 2:return f[h].flush()}throw new Error(`@smithy/util-stream - invalid index ${h} given to flush()`)}hA.flush=z4;function kw(f){var h,w;return(w=(h=f===null||f===void 0?void 0:f.byteLength)!==null&&h!==void 0?h:f===null||f===void 0?void 0:f.length)!==null&&w!==void 0?w:0}hA.sizeOf=kw;function fA(f){if(typeof Buffer!=="undefined"&&f instanceof Buffer)return 2;if(f instanceof Uint8Array)return 1;if(typeof f==="string")return 0;return-1}hA.modeOf=fA});var TA=H((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.createBufferedReadable=void 0;var Vl=B0("stream"),$A=cU(),bf=sA(),Pl=Lh();function Hl(f,h,w){if(Pl.isReadableStream(f))return bf.createBufferedReadableStream(f,h,w);let s=new Vl.Readable({read(){}}),$=!1,r=0,E=["",new $A.ByteArrayCollector((U)=>new Uint8Array(U)),new $A.ByteArrayCollector((U)=>Buffer.from(new Uint8Array(U)))],T=-1;return f.on("data",(U)=>{let F=bf.modeOf(U);if(T!==F){if(T>=0)s.push(bf.flush(E,T));T=F}if(T===-1){s.push(U);return}let C=bf.sizeOf(U);r+=C;let I=bf.sizeOf(E[T]);if(C>=h&&I===0)s.push(U);else{let L=bf.merge(E,T,U);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${h}, automatically buffering.`);if(L>=h)s.push(bf.flush(E,T))}}),f.on("end",()=>{if(T!==-1){let U=bf.flush(E,T);if(bf.sizeOf(U)>0)s.push(U)}s.push(null)}),s}rA.createBufferedReadable=Hl});var CA=H((UA)=>{Object.defineProperty(UA,"__esModule",{value:!0});UA.getAwsChunkedEncodingStream=void 0;var Nl=B0("stream"),Dl=(f,h)=>{let{base64Encoder:w,bodyLengthChecker:s,checksumAlgorithmFn:$,checksumLocationName:r,streamHasher:E}=h,T=w!==void 0&&$!==void 0&&r!==void 0&&E!==void 0,U=T?E($,f):void 0,F=new Nl.Readable({read:()=>{}});return f.on("data",(C)=>{let I=s(C)||0;F.push(`${I.toString(16)}\r
|
|
4
4
|
`),F.push(C),F.push(`\r
|
|
5
5
|
`)}),f.on("end",async()=>{if(F.push(`0\r
|
|
6
|
-
`),
|
|
6
|
+
`),T){let C=w(await U);F.push(`${r}:${C}\r
|
|
7
7
|
`),F.push(`\r
|
|
8
|
-
`)}F.push(null)}),F};
|
|
8
|
+
`)}F.push(null)}),F};UA.getAwsChunkedEncodingStream=Dl});var BA=H((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.headStream=void 0;async function ql(f,h){var w;let s=0,$=[],r=f.getReader(),E=!1;while(!E){let{done:F,value:C}=await r.read();if(C)$.push(C),s+=(w=C===null||C===void 0?void 0:C.byteLength)!==null&&w!==void 0?w:0;if(s>=h)break;E=F}r.releaseLock();let T=new Uint8Array(Math.min(h,s)),U=0;for(let F of $){if(F.byteLength>T.byteLength-U){T.set(F.subarray(0,T.byteLength-U),U);break}else T.set(F,U);U+=F.length}return T}IA.headStream=ql});var zA=H((GA)=>{Object.defineProperty(GA,"__esModule",{value:!0});GA.headStream=void 0;var kl=B0("stream"),yl=BA(),jl=Lh(),Ol=(f,h)=>{if(jl.isReadableStream(f))return yl.headStream(f,h);return new Promise((w,s)=>{let $=new AA;$.limit=h,f.pipe($),f.on("error",(r)=>{$.end(),s(r)}),$.on("error",s),$.on("finish",function(){let r=new Uint8Array(Buffer.concat(this.buffers));w(r)})})};GA.headStream=Ol;class AA extends kl.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(f,h,w){var s;if(this.buffers.push(f),this.bytesBuffered+=(s=f.byteLength)!==null&&s!==void 0?s:0,this.bytesBuffered>=this.limit){let $=this.bytesBuffered-this.limit,r=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=r.subarray(0,r.byteLength-$),this.emit("finish")}w()}}});var xU=H(($50,SA)=>{var{defineProperty:R4,getOwnPropertyDescriptor:ll,getOwnPropertyNames:vl}=Object,bl=Object.prototype.hasOwnProperty,gU=(f,h)=>R4(f,"name",{value:h,configurable:!0}),ml=(f,h)=>{for(var w in h)R4(f,w,{get:h[w],enumerable:!0})},dl=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of vl(h))if(!bl.call(f,$)&&$!==w)R4(f,$,{get:()=>h[$],enumerable:!(s=ll(h,$))||s.enumerable})}return f},il=(f)=>dl(R4({},"__esModule",{value:!0}),f),RA={};ml(RA,{escapeUri:()=>XA,escapeUriPath:()=>gl});SA.exports=il(RA);var XA=gU((f)=>encodeURIComponent(f).replace(/[!'()*]/g,cl),"escapeUri"),cl=gU((f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),gl=gU((f)=>f.split("/").map(XA).join("/"),"escapeUriPath")});var Z$=H((r50,QA)=>{var{defineProperty:X4,getOwnPropertyDescriptor:xl,getOwnPropertyNames:_l}=Object,nl=Object.prototype.hasOwnProperty,el=(f,h)=>X4(f,"name",{value:h,configurable:!0}),al=(f,h)=>{for(var w in h)X4(f,w,{get:h[w],enumerable:!0})},ol=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of _l(h))if(!nl.call(f,$)&&$!==w)X4(f,$,{get:()=>h[$],enumerable:!(s=xl(h,$))||s.enumerable})}return f},pl=(f)=>ol(X4({},"__esModule",{value:!0}),f),YA={};al(YA,{buildQueryString:()=>MA});QA.exports=pl(YA);var _U=xU();function MA(f){let h=[];for(let w of Object.keys(f).sort()){let s=f[w];if(w=_U.escapeUri(w),Array.isArray(s))for(let $=0,r=s.length;$<r;$++)h.push(`${w}=${_U.escapeUri(s[$])}`);else{let $=w;if(s||typeof s==="string")$+=`=${_U.escapeUri(s)}`;h.push($)}}return h.join("&")}el(MA,"buildQueryString")});var S4=H((E50,lA)=>{var{create:ul,defineProperty:J$,getOwnPropertyDescriptor:tl,getOwnPropertyNames:fv,getPrototypeOf:hv}=Object,wv=Object.prototype.hasOwnProperty,K0=(f,h)=>J$(f,"name",{value:h,configurable:!0}),sv=(f,h)=>{for(var w in h)J$(f,w,{get:h[w],enumerable:!0})},PA=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of fv(h))if(!wv.call(f,$)&&$!==w)J$(f,$,{get:()=>h[$],enumerable:!(s=tl(h,$))||s.enumerable})}return f},$v=(f,h,w)=>(w=f!=null?ul(hv(f)):{},PA(h||!f||!f.__esModule?J$(w,"default",{value:f,enumerable:!0}):w,f)),rv=(f)=>PA(J$({},"__esModule",{value:!0}),f),HA={};sv(HA,{DEFAULT_REQUEST_TIMEOUT:()=>jA,NodeHttp2Handler:()=>Gv,NodeHttpHandler:()=>Iv,streamCollector:()=>zv});lA.exports=rv(HA);var NA=t0(),DA=Z$(),nU=B0("http"),eU=B0("https"),Ev=["ECONNRESET","EPIPE","ETIMEDOUT"],qA=K0((f)=>{let h={};for(let w of Object.keys(f)){let s=f[w];h[w]=Array.isArray(s)?s.join(","):s}return h},"getTransformedHeaders"),z1={setTimeout:(f,h)=>setTimeout(f,h),clearTimeout:(f)=>clearTimeout(f)},KA=1000,Tv=K0((f,h,w=0)=>{if(!w)return-1;let s=K0(($)=>{let r=z1.setTimeout(()=>{f.destroy(),h(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w-$),E=K0((T)=>{if(T?.connecting)T.on("connect",()=>{z1.clearTimeout(r)});else z1.clearTimeout(r)},"doWithSocket");if(f.socket)E(f.socket);else f.on("socket",E)},"registerTimeout");if(w<2000)return s(0),0;return z1.setTimeout(s.bind(null,KA),KA)},"setConnectionTimeout"),Uv=3000,Fv=K0((f,{keepAlive:h,keepAliveMsecs:w},s=Uv)=>{if(h!==!0)return-1;let $=K0(()=>{if(f.socket)f.socket.setKeepAlive(h,w||0);else f.on("socket",(r)=>{r.setKeepAlive(h,w||0)})},"registerListener");if(s===0)return $(),0;return z1.setTimeout($,s)},"setSocketKeepAlive"),ZA=3000,Cv=K0((f,h,w=jA)=>{let s=K0(($)=>{let r=w-$,E=K0(()=>{f.destroy(),h(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))},"onTimeout");if(f.socket)f.socket.setTimeout(r,E);else f.setTimeout(r,E)},"registerTimeout");if(0<w&&w<6000)return s(0),0;return z1.setTimeout(s.bind(null,w===0?0:ZA),ZA)},"setSocketTimeout"),kA=B0("stream"),JA=6000;async function aU(f,h,w=JA){let s=h.headers??{},$=s.Expect||s.expect,r=-1,E=!0;if($==="100-continue")E=await Promise.race([new Promise((T)=>{r=Number(z1.setTimeout(()=>T(!0),Math.max(JA,w)))}),new Promise((T)=>{f.on("continue",()=>{z1.clearTimeout(r),T(!0)}),f.on("response",()=>{z1.clearTimeout(r),T(!1)}),f.on("error",()=>{z1.clearTimeout(r),T(!1)})})]);if(E)yA(f,h.body)}K0(aU,"writeRequestBody");function yA(f,h){if(h instanceof kA.Readable){h.pipe(f);return}if(h){if(Buffer.isBuffer(h)||typeof h==="string"){f.end(h);return}let w=h;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){f.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}f.end(Buffer.from(h));return}f.end()}K0(yA,"writeBody");var jA=0,Iv=class f{constructor(h){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w(this.resolveDefaultConfig($))}).catch(s);else w(this.resolveDefaultConfig(h))})}static{K0(this,"NodeHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}static checkSocketUsage(h,w,s=console){let{sockets:$,requests:r,maxSockets:E}=h;if(typeof E!=="number"||E===1/0)return w;let T=15000;if(Date.now()-T<w)return w;if($&&r)for(let U in $){let F=$[U]?.length??0,C=r[U]?.length??0;if(F>=E&&C>=2*E)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${C} additional requests are enqueued.
|
|
9
9
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
10
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return w}resolveDefaultConfig(h){let{requestTimeout:w,connectionTimeout:s,socketTimeout:$,httpAgent:r,httpsAgent:E}=h||{},U=!0,T=50;return{connectionTimeout:s,requestTimeout:w??$,httpAgent:(()=>{if(r instanceof eT.Agent||typeof r?.destroy==="function")return r;return new eT.Agent({keepAlive:!0,maxSockets:50,...r})})(),httpsAgent:(()=>{if(E instanceof aT.Agent||typeof E?.destroy==="function")return E;return new aT.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;return new Promise((s,$)=>{let r=void 0,E=[],U=K0(async(y)=>{await r,E.forEach(z1.clearTimeout),s(y)},"resolve"),T=K0(async(y)=>{await r,E.forEach(z1.clearTimeout),$(y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w?.aborted){let y=new Error("Request aborted");y.name="AbortError",T(y);return}let F=h.protocol==="https:",C=F?this.config.httpsAgent:this.config.httpAgent;E.push(z1.setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let I=yB.buildQueryString(h.query||{}),L=void 0;if(h.username!=null||h.password!=null){let y=h.username??"",n=h.password??"";L=`${y}:${n}`}let G=h.path;if(I)G+=`?${I}`;if(h.fragment)G+=`#${h.fragment}`;let S=h.hostname??"";if(S[0]==="["&&S.endsWith("]"))S=h.hostname.slice(1,-1);else S=h.hostname;let Q={headers:h.headers,host:S,method:h.method,path:G,port:h.port,agent:C,auth:L},q=(F?aT.request:eT.request)(Q,(y)=>{let n=new kB.HttpResponse({statusCode:y.statusCode||-1,reason:y.statusMessage,headers:jB(y.headers),body:y});U({response:n})});if(q.on("error",(y)=>{if(Cv.includes(y.code))T(Object.assign(y,{name:"TimeoutError"}));else T(y)}),w){let y=K0(()=>{q.destroy();let n=new Error("Request aborted");n.name="AbortError",T(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),q.once("close",()=>n.removeEventListener("abort",y))}else w.onabort=y}E.push(Iv(q,T,this.config.connectionTimeout)),E.push(Bv(q,T,this.config.requestTimeout));let N=Q.agent;if(typeof N==="object"&&"keepAlive"in N)E.push(Av(q,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs}));r=oT(q,h,this.config.requestTimeout).catch((y)=>{return E.forEach(z1.clearTimeout),$(y)})})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}},NB=A0("http2"),Wv=Tv(A0("http2")),zv=class{constructor(f){this.sessions=[],this.sessions=f??[]}static{K0(this,"NodeHttp2ConnectionPool")}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((h)=>h!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let h of this.sessions)if(h===f){if(!h.destroyed)h.destroy()}}},Rv=class{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.")}static{K0(this,"NodeHttp2ConnectionManager")}lease(f,h){let w=this.getUrlString(f),s=this.sessionCache.get(w);if(s){let U=s.poll();if(U&&!this.config.disableConcurrency)return U}let $=Wv.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(U)=>{if(U)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();let r=K0(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",r),$.on("error",r),$.on("frameError",r),$.on("close",()=>this.deleteSession(w,$)),h.requestTimeout)$.setTimeout(h.requestTimeout,r);let E=this.sessionCache.get(w)||new zv;return E.offerLast($),this.sessionCache.set(w,E),$}deleteSession(f,h){let w=this.sessionCache.get(f);if(!w)return;if(!w.contains(h))return;w.remove(h),this.sessionCache.set(f,w)}release(f,h){let w=this.getUrlString(f);this.sessionCache.get(w)?.offerLast(h)}destroy(){for(let[f,h]of this.sessionCache){for(let w of h){if(!w.destroyed)w.destroy();h.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(f&&f<=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()}},Sv=class f{constructor(h){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Rv({}),this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w($||{})}).catch(s);else w(h||{})})}static{K0(this,"NodeHttp2Handler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}destroy(){this.connectionManager.destroy()}async handle(h,{abortSignal:w}={}){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)}let{requestTimeout:s,disableConcurrentStreams:$}=this.config;return new Promise((r,E)=>{let U=!1,T=void 0,F=K0(async(S0)=>{await T,r(S0)},"resolve"),C=K0(async(S0)=>{await T,E(S0)},"reject");if(w?.aborted){U=!0;let S0=new Error("Request aborted");S0.name="AbortError",C(S0);return}let{hostname:I,method:L,port:G,protocol:S,query:Q}=h,M="";if(h.username!=null||h.password!=null){let S0=h.username??"",p1=h.password??"";M=`${S0}:${p1}@`}let q=`${S}//${M}${I}${G?`:${G}`:""}`,N={destination:new URL(q)},y=this.connectionManager.lease(N,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:$||!1}),n=K0((S0)=>{if($)this.destroySession(y);U=!0,C(S0)},"rejectWithDestroy"),L0=yB.buildQueryString(Q||{}),b0=h.path;if(L0)b0+=`?${L0}`;if(h.fragment)b0+=`#${h.fragment}`;let $1=y.request({...h.headers,[NB.constants.HTTP2_HEADER_PATH]:b0,[NB.constants.HTTP2_HEADER_METHOD]:L});if(y.ref(),$1.on("response",(S0)=>{let p1=new kB.HttpResponse({statusCode:S0[":status"]||-1,headers:jB(S0),body:$1});if(U=!0,F({response:p1}),$)y.close(),this.connectionManager.deleteSession(q,y)}),s)$1.setTimeout(s,()=>{$1.close();let S0=new Error(`Stream timed out because of no activity for ${s} ms`);S0.name="TimeoutError",n(S0)});if(w){let S0=K0(()=>{$1.close();let p1=new Error("Request aborted");p1.name="AbortError",n(p1)},"onAbort");if(typeof w.addEventListener==="function"){let p1=w;p1.addEventListener("abort",S0,{once:!0}),$1.once("close",()=>p1.removeEventListener("abort",S0))}else w.onabort=S0}$1.on("frameError",(S0,p1,qj)=>{n(new Error(`Frame type id ${S0} in stream id ${qj} has failed with code ${p1}.`))}),$1.on("error",n),$1.on("aborted",()=>{n(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${$1.rstCode}.`))}),$1.on("close",()=>{if(y.unref(),$)y.destroy();if(!U)n(new Error("Unexpected error: http2 request did not get a response"))}),T=oT($1,h,s)})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(h){if(!h.destroyed)h.destroy()}},Xv=class extends OB.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{K0(this,"Collector")}_write(f,h,w){this.bufferedBytes.push(f),w()}},Yv=K0((f)=>{if(Mv(f))return bB(f);return new Promise((h,w)=>{let s=new Xv;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},"streamCollector"),Mv=K0((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");async function bB(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:U,value:T}=await w.read();if(T)h.push(T),$+=T.length;s=U}let r=new Uint8Array($),E=0;for(let U of h)r.set(U,E),E+=U.length;return r}K0(bB,"collectReadableStream")});var eB=H((B50,nB)=>{var{defineProperty:Y4,getOwnPropertyDescriptor:Qv,getOwnPropertyNames:Kv}=Object,Zv=Object.prototype.hasOwnProperty,Rf=(f,h)=>Y4(f,"name",{value:h,configurable:!0}),Jv=(f,h)=>{for(var w in h)Y4(f,w,{get:h[w],enumerable:!0})},Vv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Kv(h))if(!Zv.call(f,$)&&$!==w)Y4(f,$,{get:()=>h[$],enumerable:!(s=Qv(h,$))||s.enumerable})}return f},Pv=(f)=>Vv(Y4({},"__esModule",{value:!0}),f),iB={};Jv(iB,{FetchHttpHandler:()=>Nv,keepAliveSupport:()=>X4,streamCollector:()=>qv});nB.exports=Pv(iB);var dB=t0(),Hv=nT();function pT(f,h){return new Request(f,h)}Rf(pT,"createRequest");function cB(f=0){return new Promise((h,w)=>{if(f)setTimeout(()=>{let s=new Error(`Request did not complete within ${f} ms`);s.name="TimeoutError",w(s)},f)})}Rf(cB,"requestTimeout");var X4={supported:void 0},Nv=class f{static{Rf(this,"FetchHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}constructor(h){if(typeof h==="function")this.configProvider=h().then((w)=>w||{});else this.config=h??{},this.configProvider=Promise.resolve(this.config);if(X4.supported===void 0)X4.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in pT("https://[::1]"))}destroy(){}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let s=this.config.requestTimeout,$=this.config.keepAlive===!0,r=this.config.credentials;if(w?.aborted){let q=new Error("Request aborted");return q.name="AbortError",Promise.reject(q)}let E=h.path,U=Hv.buildQueryString(h.query||{});if(U)E+=`?${U}`;if(h.fragment)E+=`#${h.fragment}`;let T="";if(h.username!=null||h.password!=null){let q=h.username??"",N=h.password??"";T=`${q}:${N}@`}let{port:F,method:C}=h,I=`${h.protocol}//${T}${h.hostname}${F?`:${F}`:""}${E}`,L=C==="GET"||C==="HEAD"?void 0:h.body,G={body:L,headers:new Headers(h.headers),method:C,credentials:r};if(this.config?.cache)G.cache=this.config.cache;if(L)G.duplex="half";if(typeof AbortController!=="undefined")G.signal=w;if(X4.supported)G.keepalive=$;if(typeof this.config.requestInit==="function")Object.assign(G,this.config.requestInit(h));let S=Rf(()=>{},"removeSignalEventListener"),Q=pT(I,G),M=[fetch(Q).then((q)=>{let N=q.headers,y={};for(let L0 of N.entries())y[L0[0]]=L0[1];if(q.body==null)return q.blob().then((L0)=>({response:new dB.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:L0})}));return{response:new dB.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:q.body})}}),cB(s)];if(w)M.push(new Promise((q,N)=>{let y=Rf(()=>{let n=new Error("Request aborted");n.name="AbortError",N(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),S=Rf(()=>n.removeEventListener("abort",y),"removeSignalEventListener")}else w.onabort=y}));return Promise.race(M).finally(S)}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return s[h]=w,s})}httpHandlerConfigs(){return this.config??{}}},Dv=Ih(),qv=Rf(async(f)=>{if(typeof Blob==="function"&&f instanceof Blob||f.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await f.arrayBuffer());return gB(f)}return xB(f)},"streamCollector");async function gB(f){let h=await _B(f),w=Dv.fromBase64(h);return new Uint8Array(w)}Rf(gB,"collectBlob");async function xB(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:U,value:T}=await w.read();if(T)h.push(T),$+=T.length;s=U}let r=new Uint8Array($),E=0;for(let U of h)r.set(U,E),E+=U.length;return r}Rf(xB,"collectStream");function _B(f){return new Promise((h,w)=>{let s=new FileReader;s.onloadend=()=>{if(s.readyState!==2)return w(new Error("Reader aborted too early"));let $=s.result??"",r=$.indexOf(","),E=r>-1?r+1:$.length;h($.substring(E))},s.onabort=()=>w(new Error("Read aborted")),s.onerror=()=>w(s.error),s.readAsDataURL(f)})}Rf(_B,"readToBase64")});var tT=H((G50,fG)=>{var{defineProperty:M4,getOwnPropertyDescriptor:kv,getOwnPropertyNames:yv}=Object,jv=Object.prototype.hasOwnProperty,aB=(f,h)=>M4(f,"name",{value:h,configurable:!0}),Ov=(f,h)=>{for(var w in h)M4(f,w,{get:h[w],enumerable:!0})},lv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of yv(h))if(!jv.call(f,$)&&$!==w)M4(f,$,{get:()=>h[$],enumerable:!(s=kv(h,$))||s.enumerable})}return f},vv=(f)=>lv(M4({},"__esModule",{value:!0}),f),oB={};Ov(oB,{fromHex:()=>uB,toHex:()=>tB});fG.exports=vv(oB);var pB={},uT={};for(let f=0;f<256;f++){let h=f.toString(16).toLowerCase();if(h.length===1)h=`0${h}`;pB[f]=h,uT[h]=f}function uB(f){if(f.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let h=new Uint8Array(f.length/2);for(let w=0;w<f.length;w+=2){let s=f.slice(w,w+2).toLowerCase();if(s in uT)h[w/2]=uT[s];else throw new Error(`Cannot decode unrecognized sequence ${s} as hexadecimal`)}return h}aB(uB,"fromHex");function tB(f){let h="";for(let w=0;w<f.byteLength;w++)h+=pB[f[w]];return h}aB(tB,"toHex")});var EG=H(($G)=>{Object.defineProperty($G,"__esModule",{value:!0});$G.sdkStreamMixin=void 0;var bv=eB(),mv=Ih(),dv=tT(),iv=u1(),hG=Lh(),wG="The stream has already been transformed.",cv=(f)=>{var h,w;if(!sG(f)&&!hG.isReadableStream(f)){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error(wG);return s=!0,await bv.streamCollector(f)},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.
|
|
11
|
-
If 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(f,{transformToByteArray:$,transformToString:async(E)=>{let
|
|
12
|
-
`));return w($)},"httpAuthSchemeMiddleware"),NG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Rb=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(T3(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),NG)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Sb=Dw(),DG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Sb.serializerMiddlewareOption.name},Xb=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(T3(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),DG)}}),"getHttpAuthSchemePlugin"),F3=t0(),Yb=j0((f)=>(h)=>{throw h},"defaultErrorHandler"),Mb=j0((f,h)=>{},"defaultSuccessHandler"),qG=j0((f)=>(h,w)=>async(s)=>{if(!F3.HttpRequest.isInstance(s.request))return h(s);let r=PG.getSmithyContext(w).selectedHttpAuthScheme;if(!r)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:E={}},identity:U,signer:T}=r,F=await h({...s,request:await T.sign(s.request,U,E)}).catch((T.errorHandler||Yb)(E));return(T.successHandler||Mb)(F.response,E),F},"httpSigningMiddleware"),kG={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Qb=j0((f)=>({applyToStack:(h)=>{h.addRelativeTo(qG(f),kG)}}),"getHttpSigningPlugin"),Kb=j0((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider"),Zb=j0(async(f,h,w,s=(r)=>r,...$)=>{let r=new f(w);return r=s(r)??r,await h.send(r,...$)},"makePagedClientRequest");function yG(f,h,w,s,$){return j0(async function*r(E,U,...T){let F=U,C=E.startingToken??F[w],I=!0,L;while(I){if(F[w]=C,$)F[$]=F[$]??E.pageSize;if(E.client instanceof f)L=await Zb(h,E.client,U,E.withCommand,...T);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield L;let G=C;C=Jb(L,s),I=!!(C&&(!E.stopOnSameToken||C!==G))}return},"paginateOperation")}j0(yG,"createPaginator");var Jb=j0((f,h)=>{let w=f,s=h.split(".");for(let $ of s){if(!w||typeof w!=="object")return;w=w[$]}return w},"get"),Vb=yw();function jG(f,h,w){if(!f.__smithy_context)f.__smithy_context={features:{}};else if(!f.__smithy_context.features)f.__smithy_context.features={};f.__smithy_context.features[h]=w}j0(jG,"setFeature");var Pb=class{constructor(f){this.authSchemes=new Map;for(let[h,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(h,w)}static{j0(this,"DefaultIdentityProviderConfig")}getIdentityProvider(f){return this.authSchemes.get(f)}},Hb=class{static{j0(this,"HttpApiKeyAuthSigner")}async sign(f,h,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(!h.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=F3.HttpRequest.clone(f);if(w.in===K4.HttpApiKeyAuthLocation.QUERY)s.query[w.name]=h.apiKey;else if(w.in===K4.HttpApiKeyAuthLocation.HEADER)s.headers[w.name]=w.scheme?`${w.scheme} ${h.apiKey}`:h.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return s}},Nb=class{static{j0(this,"HttpBearerAuthSigner")}async sign(f,h,w){let s=F3.HttpRequest.clone(f);if(!h.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${h.token}`,s}},Db=class{static{j0(this,"NoAuthSigner")}async sign(f,h,w){return f}},OG=j0((f)=>(h)=>vG(h)&&h.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),lG=300000,qb=OG(lG),vG=j0((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),kb=j0((f,h,w)=>{if(f===void 0)return;let s=typeof f!=="function"?async()=>Promise.resolve(f):f,$,r,E,U=!1,T=j0(async(F)=>{if(!r)r=s(F);try{$=await r,E=!0,U=!1}finally{r=void 0}return $},"coalesceProvider");if(h===void 0)return async(F)=>{if(!E||F?.forceRefresh)$=await T(F);return $};return async(F)=>{if(!E||F?.forceRefresh)$=await T(F);if(U)return $;if(!w($))return U=!0,$;if(h($))return await T(F),$;return $}},"memoizeIdentityProvider")});function yb(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}function jw(f){let h=mG.normalizeProvider(f.userAgentAppId??C3);return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent,userAgentAppId:async()=>{let w=await h();if(!yb(w)){let s=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof w!=="string")s?.warn("userAgentAppId must be a string or undefined.");else if(w.length>50)s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return w}}}var mG,C3=void 0;var dG=A(()=>{mG=p(m0(),1)});class gh{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}}var jb,J$=(f)=>jb.test(f)||f.startsWith("[")&&f.endsWith("]");var I3=A(()=>{jb=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 Ob,V$=(f,h=!1)=>{if(!h)return Ob.test(f);let w=f.split(".");for(let s of w)if(!V$(s))return!1;return!0};var L3=A(()=>{Ob=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var t1;var J4=A(()=>{t1={}});var mf="endpoints";function N1(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${N1(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(N1).join(", ")})`;return JSON.stringify(f,null,2)}var P$=()=>{};var H0;var iG=A(()=>{H0=class H0 extends Error{constructor(f){super(f);this.name="EndpointError"}}});var cG=()=>{};var gG=()=>{};var xG=()=>{};var _G=()=>{};var nG=()=>{};var eG=()=>{};var D1=A(()=>{iG();cG();gG();xG();_G();nG();eG()});var aG=(f,h)=>f===h;var oG=(f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new H0(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new H0(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w};var pG=A(()=>{D1()});var V4=(f,h)=>oG(h).reduce((w,s)=>{if(typeof w!=="object")throw new H0(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f);var uG=A(()=>{D1();pG()});var tG=(f)=>f!=null;var fW=(f)=>!f;var P4,A3,hW=(f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:G,protocol:S="",path:Q="",query:M={}}=f,q=new URL(`${S}//${L}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:U}=h;if(U)return null;let T=E.slice(0,-1);if(!Object.values(P4.EndpointURLScheme).includes(T))return null;let F=J$($),C=w.includes(`${s}:${A3[T]}`)||typeof f==="string"&&f.includes(`${s}:${A3[T]}`),I=`${s}${C?`:${A3[T]}`:""}`;return{scheme:T,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}};var wW=A(()=>{P4=p(T1(),1);I3();A3={[P4.EndpointURLScheme.HTTP]:80,[P4.EndpointURLScheme.HTTPS]:443}});var sW=(f,h)=>f===h;var $W=(f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)};var rW=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`);var B3=A(()=>{uG();L3();wW()});var EW;var UW=A(()=>{B3();EW={booleanEquals:aG,getAttr:V4,isSet:tG,isValidHostLabel:V$,not:fW,parseURL:hW,stringEquals:sW,substring:$W,uriEncode:rW}});var H4=(f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let U=f.substring(r+1,E);if(U.includes("#")){let[T,F]=U.split("#");w.push(V4(s[T],F))}else w.push(s[U]);$=E+1}return w.join("")};var G3=A(()=>{B3()});var TW=({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]};var Bh=(f,h,w)=>{if(typeof f==="string")return H4(f,w);else if(f.fn)return N4(f,w);else if(f.ref)return TW(f,w);throw new H0(`'${h}': ${String(f)} is not a string, function or reference.`)};var H$=A(()=>{D1();W3();G3()});var N4=({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:Bh(r,"arg",w)),$=f.split(".");if($[0]in t1&&$[1]!=null)return t1[$[0]][$[1]](...s);return EW[f](...s)};var W3=A(()=>{J4();UW();H$()});var FW=({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new H0(`'${f}' is already defined in Reference Record.`);let s=N4(h,w);return w.logger?.debug?.(`${mf} evaluateCondition: ${N1(h)} = ${N1(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}};var CW=A(()=>{P$();D1();W3()});var Ow=(f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=FW(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${mf} assign: ${r.name} := ${N1(r.value)}`)}return{result:!0,referenceRecord:w}};var D4=A(()=>{P$();CW()});var IW=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=Bh(r,"Header value entry",h);if(typeof E!=="string")throw new H0(`Header '${s}' value '${E}' is not a string`);return E})}),{});var LW=A(()=>{D1();H$()});var z3=(f,h)=>{if(Array.isArray(f))return f.map((w)=>z3(w,h));switch(typeof f){case"string":return H4(f,h);case"object":if(f===null)throw new H0(`Unexpected endpoint property: ${f}`);return q4(f,h);case"boolean":return f;default:throw new H0(`Unexpected endpoint property type: ${typeof f}`)}};var AW=A(()=>{D1();G3();R3()});var q4=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:z3($,h)}),{});var R3=A(()=>{AW()});var BW=(f,h)=>{let w=Bh(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new H0(`Endpoint URL must be a string, got ${typeof w}`)};var GW=A(()=>{D1();H$()});var WW=(f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:U,properties:T,headers:F}=s;return h.logger?.debug?.(`${mf} Resolving endpoint from template: ${N1(s)}`),{...F!=null&&{headers:IW(F,E)},...T!=null&&{properties:q4(T,E)},url:BW(U,E)}};var zW=A(()=>{P$();D4();LW();R3();GW()});var RW=(f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;throw new H0(Bh(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))};var SW=A(()=>{D1();D4();H$()});var XW=(f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;return k4(s,{...h,referenceRecord:{...h.referenceRecord,...r}})};var YW=A(()=>{D4();S3()});var k4=(f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=WW(w,h);if(s)return s}else if(w.type==="error")RW(w,h);else if(w.type==="tree"){let s=XW(w,h);if(s)return s}else throw new H0(`Unknown endpoint rule: ${w}`);throw new H0("Rules evaluation failed")};var S3=A(()=>{D1();zW();SW();YW()});var MW=A(()=>{J4();S3()});var xh=(f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${mf} Initial EndpointParams: ${N1(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let U=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of U)if(w[F]==null)throw new H0(`Missing required parameter: '${F}'`);let T=k4(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${mf} Resolved endpoint: ${N1(T)}`),T};var QW=A(()=>{P$();D1();MW()});var df=A(()=>{I3();L3();J4();QW();D1()});var X3=A(()=>{df()});var Y3=(f,h=!1)=>{if(h){for(let w of f.split("."))if(!Y3(w))return!1;return!0}if(!V$(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(J$(f))return!1;return!0};var KW=A(()=>{df();X3()});var ZW=(f)=>{let h=f.split(":");if(h.length<6)return null;let[w,s,$,r,E,...U]=h;if(w!=="arn"||s===""||$===""||U.join(":")==="")return null;let T=U.map((F)=>F.split("/")).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:T}};var VW;var JW=A(()=>{VW={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|mx)\\-\\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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"}});var vb,bb="",PW=(f)=>{let{partitions:h}=vb;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,U]of Object.entries($))if(E===f)return{...r,...U}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},HW=()=>bb;var M3=A(()=>{JW();vb=VW});var _h;var NW=A(()=>{df();KW();M3();_h={isVirtualHostableS3Bucket:Y3,parseArn:ZW,partition:PW};t1.aws=_h});var DW=A(()=>{df()});var qW=A(()=>{df()});var kW=()=>{};var yW=()=>{};var jW=()=>{};var OW=()=>{};var lW=()=>{};var vW=A(()=>{qW();kW();yW();jW();OW();lW()});var N$=A(()=>{NW();M3();X3();DW();vW()});var l4=H(($30,O4)=>{var bW,mW,dW,iW,cW,gW,xW,_W,nW,eW,aW,oW,pW,y4,Q3,uW,tW,fz,lw,hz,wz,sz,$z,rz,Ez,Uz,Tz,Fz,j4,Cz,Iz,Lz;(function(f){var h=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(s){f(w(h,w(s)))});else if(typeof O4==="object"&&typeof $30==="object")f(w(h,w($30)));else f(w(h));function w(s,$){if(s!==h)if(typeof Object.create==="function")Object.defineProperty(s,"__esModule",{value:!0});else s.__esModule=!0;return function(r,E){return s[r]=$?$(r,E):E}}})(function(f){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,E){r.__proto__=E}||function(r,E){for(var U in E)if(Object.prototype.hasOwnProperty.call(E,U))r[U]=E[U]};bW=function(r,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");h(r,E);function U(){this.constructor=r}r.prototype=E===null?Object.create(E):(U.prototype=E.prototype,new U)},mW=Object.assign||function(r){for(var E,U=1,T=arguments.length;U<T;U++){E=arguments[U];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))r[F]=E[F]}return r},dW=function(r,E){var U={};for(var T in r)if(Object.prototype.hasOwnProperty.call(r,T)&&E.indexOf(T)<0)U[T]=r[T];if(r!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,T=Object.getOwnPropertySymbols(r);F<T.length;F++)if(E.indexOf(T[F])<0&&Object.prototype.propertyIsEnumerable.call(r,T[F]))U[T[F]]=r[T[F]]}return U},iW=function(r,E,U,T){var F=arguments.length,C=F<3?E:T===null?T=Object.getOwnPropertyDescriptor(E,U):T,I;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(r,E,U,T);else for(var L=r.length-1;L>=0;L--)if(I=r[L])C=(F<3?I(C):F>3?I(E,U,C):I(E,U))||C;return F>3&&C&&Object.defineProperty(E,U,C),C},cW=function(r,E){return function(U,T){E(U,T,r)}},gW=function(r,E,U,T,F,C){function I(b0){if(b0!==void 0&&typeof b0!=="function")throw new TypeError("Function expected");return b0}var L=T.kind,G=L==="getter"?"get":L==="setter"?"set":"value",S=!E&&r?T.static?r:r.prototype:null,Q=E||(S?Object.getOwnPropertyDescriptor(S,T.name):{}),M,q=!1;for(var N=U.length-1;N>=0;N--){var y={};for(var n in T)y[n]=n==="access"?{}:T[n];for(var n in T.access)y.access[n]=T.access[n];y.addInitializer=function(b0){if(q)throw new TypeError("Cannot add initializers after decoration has completed");C.push(I(b0||null))};var L0=U[N](L==="accessor"?{get:Q.get,set:Q.set}:Q[G],y);if(L==="accessor"){if(L0===void 0)continue;if(L0===null||typeof L0!=="object")throw new TypeError("Object expected");if(M=I(L0.get))Q.get=M;if(M=I(L0.set))Q.set=M;if(M=I(L0.init))F.unshift(M)}else if(M=I(L0))if(L==="field")F.unshift(M);else Q[G]=M}if(S)Object.defineProperty(S,T.name,Q);q=!0},xW=function(r,E,U){var T=arguments.length>2;for(var F=0;F<E.length;F++)U=T?E[F].call(r,U):E[F].call(r);return T?U:void 0},_W=function(r){return typeof r==="symbol"?r:"".concat(r)},nW=function(r,E,U){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(r,"name",{configurable:!0,value:U?"".concat(U," ",E):E})},eW=function(r,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(r,E)},aW=function(r,E,U,T){function F(C){return C instanceof U?C:new U(function(I){I(C)})}return new(U||(U=Promise))(function(C,I){function L(Q){try{S(T.next(Q))}catch(M){I(M)}}function G(Q){try{S(T.throw(Q))}catch(M){I(M)}}function S(Q){Q.done?C(Q.value):F(Q.value).then(L,G)}S((T=T.apply(r,E||[])).next())})},oW=function(r,E){var U={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},T,F,C,I=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return I.next=L(0),I.throw=L(1),I.return=L(2),typeof Symbol==="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(S){return function(Q){return G([S,Q])}}function G(S){if(T)throw new TypeError("Generator is already executing.");while(I&&(I=0,S[0]&&(U=0)),U)try{if(T=1,F&&(C=S[0]&2?F.return:S[0]?F.throw||((C=F.return)&&C.call(F),0):F.next)&&!(C=C.call(F,S[1])).done)return C;if(F=0,C)S=[S[0]&2,C.value];switch(S[0]){case 0:case 1:C=S;break;case 4:return U.label++,{value:S[1],done:!1};case 5:U.label++,F=S[1],S=[0];continue;case 7:S=U.ops.pop(),U.trys.pop();continue;default:if((C=U.trys,!(C=C.length>0&&C[C.length-1]))&&(S[0]===6||S[0]===2)){U=0;continue}if(S[0]===3&&(!C||S[1]>C[0]&&S[1]<C[3])){U.label=S[1];break}if(S[0]===6&&U.label<C[1]){U.label=C[1],C=S;break}if(C&&U.label<C[2]){U.label=C[2],U.ops.push(S);break}if(C[2])U.ops.pop();U.trys.pop();continue}S=E.call(r,U)}catch(Q){S=[6,Q],F=0}finally{T=C=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},pW=function(r,E){for(var U in r)if(U!=="default"&&!Object.prototype.hasOwnProperty.call(E,U))j4(E,r,U)},j4=Object.create?function(r,E,U,T){if(T===void 0)T=U;var F=Object.getOwnPropertyDescriptor(E,U);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[U]}};Object.defineProperty(r,T,F)}:function(r,E,U,T){if(T===void 0)T=U;r[T]=E[U]},y4=function(r){var E=typeof Symbol==="function"&&Symbol.iterator,U=E&&r[E],T=0;if(U)return U.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&T>=r.length)r=void 0;return{value:r&&r[T++],done:!r}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},Q3=function(r,E){var U=typeof Symbol==="function"&&r[Symbol.iterator];if(!U)return r;var T=U.call(r),F,C=[],I;try{while((E===void 0||E-- >0)&&!(F=T.next()).done)C.push(F.value)}catch(L){I={error:L}}finally{try{if(F&&!F.done&&(U=T.return))U.call(T)}finally{if(I)throw I.error}}return C},uW=function(){for(var r=[],E=0;E<arguments.length;E++)r=r.concat(Q3(arguments[E]));return r},tW=function(){for(var r=0,E=0,U=arguments.length;E<U;E++)r+=arguments[E].length;for(var T=Array(r),F=0,E=0;E<U;E++)for(var C=arguments[E],I=0,L=C.length;I<L;I++,F++)T[F]=C[I];return T},fz=function(r,E,U){if(U||arguments.length===2){for(var T=0,F=E.length,C;T<F;T++)if(C||!(T in E)){if(!C)C=Array.prototype.slice.call(E,0,T);C[T]=E[T]}}return r.concat(C||Array.prototype.slice.call(E))},lw=function(r){return this instanceof lw?(this.v=r,this):new lw(r)},hz=function(r,E,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=U.apply(r,E||[]),F,C=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),L("next"),L("throw"),L("return",I),F[Symbol.asyncIterator]=function(){return this},F;function I(N){return function(y){return Promise.resolve(y).then(N,M)}}function L(N,y){if(T[N]){if(F[N]=function(n){return new Promise(function(L0,b0){C.push([N,n,L0,b0])>1||G(N,n)})},y)F[N]=y(F[N])}}function G(N,y){try{S(T[N](y))}catch(n){q(C[0][3],n)}}function S(N){N.value instanceof lw?Promise.resolve(N.value.v).then(Q,M):q(C[0][2],N)}function Q(N){G("next",N)}function M(N){G("throw",N)}function q(N,y){if(N(y),C.shift(),C.length)G(C[0][0],C[0][1])}},wz=function(r){var E,U;return E={},T("next"),T("throw",function(F){throw F}),T("return"),E[Symbol.iterator]=function(){return this},E;function T(F,C){E[F]=r[F]?function(I){return(U=!U)?{value:lw(r[F](I)),done:!1}:C?C(I):I}:C}},sz=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=r[Symbol.asyncIterator],U;return E?E.call(r):(r=typeof y4==="function"?y4(r):r[Symbol.iterator](),U={},T("next"),T("throw"),T("return"),U[Symbol.asyncIterator]=function(){return this},U);function T(C){U[C]=r[C]&&function(I){return new Promise(function(L,G){I=r[C](I),F(L,G,I.done,I.value)})}}function F(C,I,L,G){Promise.resolve(G).then(function(S){C({value:S,done:L})},I)}},$z=function(r,E){if(Object.defineProperty)Object.defineProperty(r,"raw",{value:E});else r.raw=E;return r};var w=Object.create?function(r,E){Object.defineProperty(r,"default",{enumerable:!0,value:E})}:function(r,E){r.default=E},s=function(r){return s=Object.getOwnPropertyNames||function(E){var U=[];for(var T in E)if(Object.prototype.hasOwnProperty.call(E,T))U[U.length]=T;return U},s(r)};rz=function(r){if(r&&r.__esModule)return r;var E={};if(r!=null){for(var U=s(r),T=0;T<U.length;T++)if(U[T]!=="default")j4(E,r,U[T])}return w(E,r),E},Ez=function(r){return r&&r.__esModule?r:{default:r}},Uz=function(r,E,U,T){if(U==="a"&&!T)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?r!==E||!T:!E.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return U==="m"?T:U==="a"?T.call(r):T?T.value:E.get(r)},Tz=function(r,E,U,T,F){if(T==="m")throw new TypeError("Private method is not writable");if(T==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?r!==E||!F:!E.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return T==="a"?F.call(r,U):F?F.value=U:E.set(r,U),U},Fz=function(r,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?E===r:r.has(E)},Cz=function(r,E,U){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var T,F;if(U){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");T=E[Symbol.asyncDispose]}if(T===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(T=E[Symbol.dispose],U)F=T}if(typeof T!=="function")throw new TypeError("Object not disposable.");if(F)T=function(){try{F.call(this)}catch(C){return Promise.reject(C)}};r.stack.push({value:E,dispose:T,async:U})}else if(U)r.stack.push({async:!0});return E};var $=typeof SuppressedError==="function"?SuppressedError:function(r,E,U){var T=new Error(U);return T.name="SuppressedError",T.error=r,T.suppressed=E,T};Iz=function(r){function E(C){r.error=r.hasError?new $(C,r.error,"An error was suppressed during disposal."):C,r.hasError=!0}var U,T=0;function F(){while(U=r.stack.pop())try{if(!U.async&&T===1)return T=0,r.stack.push(U),Promise.resolve().then(F);if(U.dispose){var C=U.dispose.call(U.value);if(U.async)return T|=2,Promise.resolve(C).then(F,function(I){return E(I),F()})}else T|=1}catch(I){E(I)}if(T===1)return r.hasError?Promise.reject(r.error):Promise.resolve();if(r.hasError)throw r.error}return F()},Lz=function(r,E){if(typeof r==="string"&&/^\.\.?\//.test(r))return r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(U,T,F,C,I){return T?E?".jsx":".js":F&&(!C||!I)?U:F+C+"."+I.toLowerCase()+"js"});return r},f("__extends",bW),f("__assign",mW),f("__rest",dW),f("__decorate",iW),f("__param",cW),f("__esDecorate",gW),f("__runInitializers",xW),f("__propKey",_W),f("__setFunctionName",nW),f("__metadata",eW),f("__awaiter",aW),f("__generator",oW),f("__exportStar",pW),f("__createBinding",j4),f("__values",y4),f("__read",Q3),f("__spread",uW),f("__spreadArrays",tW),f("__spreadArray",fz),f("__await",lw),f("__asyncGenerator",hz),f("__asyncDelegator",wz),f("__asyncValues",sz),f("__makeTemplateObject",$z),f("__importStar",rz),f("__importDefault",Ez),f("__classPrivateFieldGet",Uz),f("__classPrivateFieldSet",Tz),f("__classPrivateFieldIn",Fz),f("__addDisposableResource",Cz),f("__disposeResources",Iz),f("__rewriteRelativeImportExtension",Lz)})});var C1=H((r30,Wz)=>{var{defineProperty:v4,getOwnPropertyDescriptor:mb,getOwnPropertyNames:db}=Object,ib=Object.prototype.hasOwnProperty,Z3=(f,h)=>v4(f,"name",{value:h,configurable:!0}),cb=(f,h)=>{for(var w in h)v4(f,w,{get:h[w],enumerable:!0})},gb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of db(h))if(!ib.call(f,$)&&$!==w)v4(f,$,{get:()=>h[$],enumerable:!(s=mb(h,$))||s.enumerable})}return f},xb=(f)=>gb(v4({},"__esModule",{value:!0}),f),Az={};cb(Az,{emitWarningIfUnsupportedVersion:()=>_b,setCredentialFeature:()=>Bz,setFeature:()=>Gz,state:()=>K3});Wz.exports=xb(Az);var K3={warningEmitted:!1},_b=Z3((f)=>{if(f&&!K3.warningEmitted&&parseInt(f.substring(1,f.indexOf(".")))<18)K3.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
10
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return w}resolveDefaultConfig(h){let{requestTimeout:w,connectionTimeout:s,socketTimeout:$,httpAgent:r,httpsAgent:E}=h||{},T=!0,U=50;return{connectionTimeout:s,requestTimeout:w??$,httpAgent:(()=>{if(r instanceof nU.Agent||typeof r?.destroy==="function")return r;return new nU.Agent({keepAlive:!0,maxSockets:50,...r})})(),httpsAgent:(()=>{if(E instanceof eU.Agent||typeof E?.destroy==="function")return E;return new eU.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;return new Promise((s,$)=>{let r=void 0,E=[],T=K0(async(y)=>{await r,E.forEach(z1.clearTimeout),s(y)},"resolve"),U=K0(async(y)=>{await r,E.forEach(z1.clearTimeout),$(y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w?.aborted){let y=new Error("Request aborted");y.name="AbortError",U(y);return}let F=h.protocol==="https:",C=F?this.config.httpsAgent:this.config.httpAgent;E.push(z1.setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let I=DA.buildQueryString(h.query||{}),L=void 0;if(h.username!=null||h.password!=null){let y=h.username??"",n=h.password??"";L=`${y}:${n}`}let G=h.path;if(I)G+=`?${I}`;if(h.fragment)G+=`#${h.fragment}`;let X=h.hostname??"";if(X[0]==="["&&X.endsWith("]"))X=h.hostname.slice(1,-1);else X=h.hostname;let Q={headers:h.headers,host:X,method:h.method,path:G,port:h.port,agent:C,auth:L},q=(F?eU.request:nU.request)(Q,(y)=>{let n=new NA.HttpResponse({statusCode:y.statusCode||-1,reason:y.statusMessage,headers:qA(y.headers),body:y});T({response:n})});if(q.on("error",(y)=>{if(Ev.includes(y.code))U(Object.assign(y,{name:"TimeoutError"}));else U(y)}),w){let y=K0(()=>{q.destroy();let n=new Error("Request aborted");n.name="AbortError",U(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),q.once("close",()=>n.removeEventListener("abort",y))}else w.onabort=y}E.push(Tv(q,U,this.config.connectionTimeout)),E.push(Cv(q,U,this.config.requestTimeout));let N=Q.agent;if(typeof N==="object"&&"keepAlive"in N)E.push(Fv(q,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs}));r=aU(q,h,this.config.requestTimeout).catch((y)=>{return E.forEach(z1.clearTimeout),$(y)})})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}},VA=B0("http2"),Lv=$v(B0("http2")),Bv=class{constructor(f){this.sessions=[],this.sessions=f??[]}static{K0(this,"NodeHttp2ConnectionPool")}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((h)=>h!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let h of this.sessions)if(h===f){if(!h.destroyed)h.destroy()}}},Av=class{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.")}static{K0(this,"NodeHttp2ConnectionManager")}lease(f,h){let w=this.getUrlString(f),s=this.sessionCache.get(w);if(s){let T=s.poll();if(T&&!this.config.disableConcurrency)return T}let $=Lv.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(T)=>{if(T)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();let r=K0(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",r),$.on("error",r),$.on("frameError",r),$.on("close",()=>this.deleteSession(w,$)),h.requestTimeout)$.setTimeout(h.requestTimeout,r);let E=this.sessionCache.get(w)||new Bv;return E.offerLast($),this.sessionCache.set(w,E),$}deleteSession(f,h){let w=this.sessionCache.get(f);if(!w)return;if(!w.contains(h))return;w.remove(h),this.sessionCache.set(f,w)}release(f,h){let w=this.getUrlString(f);this.sessionCache.get(w)?.offerLast(h)}destroy(){for(let[f,h]of this.sessionCache){for(let w of h){if(!w.destroyed)w.destroy();h.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(f&&f<=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()}},Gv=class f{constructor(h){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Av({}),this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w($||{})}).catch(s);else w(h||{})})}static{K0(this,"NodeHttp2Handler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}destroy(){this.connectionManager.destroy()}async handle(h,{abortSignal:w}={}){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)}let{requestTimeout:s,disableConcurrentStreams:$}=this.config;return new Promise((r,E)=>{let T=!1,U=void 0,F=K0(async(X0)=>{await U,r(X0)},"resolve"),C=K0(async(X0)=>{await U,E(X0)},"reject");if(w?.aborted){T=!0;let X0=new Error("Request aborted");X0.name="AbortError",C(X0);return}let{hostname:I,method:L,port:G,protocol:X,query:Q}=h,M="";if(h.username!=null||h.password!=null){let X0=h.username??"",p1=h.password??"";M=`${X0}:${p1}@`}let q=`${X}//${M}${I}${G?`:${G}`:""}`,N={destination:new URL(q)},y=this.connectionManager.lease(N,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:$||!1}),n=K0((X0)=>{if($)this.destroySession(y);T=!0,C(X0)},"rejectWithDestroy"),L0=DA.buildQueryString(Q||{}),b0=h.path;if(L0)b0+=`?${L0}`;if(h.fragment)b0+=`#${h.fragment}`;let $1=y.request({...h.headers,[VA.constants.HTTP2_HEADER_PATH]:b0,[VA.constants.HTTP2_HEADER_METHOD]:L});if(y.ref(),$1.on("response",(X0)=>{let p1=new NA.HttpResponse({statusCode:X0[":status"]||-1,headers:qA(X0),body:$1});if(T=!0,F({response:p1}),$)y.close(),this.connectionManager.deleteSession(q,y)}),s)$1.setTimeout(s,()=>{$1.close();let X0=new Error(`Stream timed out because of no activity for ${s} ms`);X0.name="TimeoutError",n(X0)});if(w){let X0=K0(()=>{$1.close();let p1=new Error("Request aborted");p1.name="AbortError",n(p1)},"onAbort");if(typeof w.addEventListener==="function"){let p1=w;p1.addEventListener("abort",X0,{once:!0}),$1.once("close",()=>p1.removeEventListener("abort",X0))}else w.onabort=X0}$1.on("frameError",(X0,p1,Pj)=>{n(new Error(`Frame type id ${X0} in stream id ${Pj} has failed with code ${p1}.`))}),$1.on("error",n),$1.on("aborted",()=>{n(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${$1.rstCode}.`))}),$1.on("close",()=>{if(y.unref(),$)y.destroy();if(!T)n(new Error("Unexpected error: http2 request did not get a response"))}),U=aU($1,h,s)})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(h){if(!h.destroyed)h.destroy()}},Wv=class extends kA.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{K0(this,"Collector")}_write(f,h,w){this.bufferedBytes.push(f),w()}},zv=K0((f)=>{if(Rv(f))return OA(f);return new Promise((h,w)=>{let s=new Wv;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},"streamCollector"),Rv=K0((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");async function OA(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}K0(OA,"collectReadableStream")});var xA=H((C50,gA)=>{var{defineProperty:M4,getOwnPropertyDescriptor:Xv,getOwnPropertyNames:Sv}=Object,Yv=Object.prototype.hasOwnProperty,Rf=(f,h)=>M4(f,"name",{value:h,configurable:!0}),Mv=(f,h)=>{for(var w in h)M4(f,w,{get:h[w],enumerable:!0})},Qv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Sv(h))if(!Yv.call(f,$)&&$!==w)M4(f,$,{get:()=>h[$],enumerable:!(s=Xv(h,$))||s.enumerable})}return f},Kv=(f)=>Qv(M4({},"__esModule",{value:!0}),f),bA={};Mv(bA,{FetchHttpHandler:()=>Jv,keepAliveSupport:()=>Y4,streamCollector:()=>Pv});gA.exports=Kv(bA);var vA=t0(),Zv=Z$();function oU(f,h){return new Request(f,h)}Rf(oU,"createRequest");function mA(f=0){return new Promise((h,w)=>{if(f)setTimeout(()=>{let s=new Error(`Request did not complete within ${f} ms`);s.name="TimeoutError",w(s)},f)})}Rf(mA,"requestTimeout");var Y4={supported:void 0},Jv=class f{static{Rf(this,"FetchHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}constructor(h){if(typeof h==="function")this.configProvider=h().then((w)=>w||{});else this.config=h??{},this.configProvider=Promise.resolve(this.config);if(Y4.supported===void 0)Y4.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in oU("https://[::1]"))}destroy(){}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let s=this.config.requestTimeout,$=this.config.keepAlive===!0,r=this.config.credentials;if(w?.aborted){let q=new Error("Request aborted");return q.name="AbortError",Promise.reject(q)}let E=h.path,T=Zv.buildQueryString(h.query||{});if(T)E+=`?${T}`;if(h.fragment)E+=`#${h.fragment}`;let U="";if(h.username!=null||h.password!=null){let q=h.username??"",N=h.password??"";U=`${q}:${N}@`}let{port:F,method:C}=h,I=`${h.protocol}//${U}${h.hostname}${F?`:${F}`:""}${E}`,L=C==="GET"||C==="HEAD"?void 0:h.body,G={body:L,headers:new Headers(h.headers),method:C,credentials:r};if(this.config?.cache)G.cache=this.config.cache;if(L)G.duplex="half";if(typeof AbortController!=="undefined")G.signal=w;if(Y4.supported)G.keepalive=$;if(typeof this.config.requestInit==="function")Object.assign(G,this.config.requestInit(h));let X=Rf(()=>{},"removeSignalEventListener"),Q=oU(I,G),M=[fetch(Q).then((q)=>{let N=q.headers,y={};for(let L0 of N.entries())y[L0[0]]=L0[1];if(q.body==null)return q.blob().then((L0)=>({response:new vA.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:L0})}));return{response:new vA.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:q.body})}}),mA(s)];if(w)M.push(new Promise((q,N)=>{let y=Rf(()=>{let n=new Error("Request aborted");n.name="AbortError",N(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),X=Rf(()=>n.removeEventListener("abort",y),"removeSignalEventListener")}else w.onabort=y}));return Promise.race(M).finally(X)}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return s[h]=w,s})}httpHandlerConfigs(){return this.config??{}}},Vv=Ih(),Pv=Rf(async(f)=>{if(typeof Blob==="function"&&f instanceof Blob||f.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await f.arrayBuffer());return dA(f)}return iA(f)},"streamCollector");async function dA(f){let h=await cA(f),w=Vv.fromBase64(h);return new Uint8Array(w)}Rf(dA,"collectBlob");async function iA(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}Rf(iA,"collectStream");function cA(f){return new Promise((h,w)=>{let s=new FileReader;s.onloadend=()=>{if(s.readyState!==2)return w(new Error("Reader aborted too early"));let $=s.result??"",r=$.indexOf(","),E=r>-1?r+1:$.length;h($.substring(E))},s.onabort=()=>w(new Error("Read aborted")),s.onerror=()=>w(s.error),s.readAsDataURL(f)})}Rf(cA,"readToBase64")});var uU=H((I50,pA)=>{var{defineProperty:Q4,getOwnPropertyDescriptor:Hv,getOwnPropertyNames:Nv}=Object,Dv=Object.prototype.hasOwnProperty,_A=(f,h)=>Q4(f,"name",{value:h,configurable:!0}),qv=(f,h)=>{for(var w in h)Q4(f,w,{get:h[w],enumerable:!0})},kv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Nv(h))if(!Dv.call(f,$)&&$!==w)Q4(f,$,{get:()=>h[$],enumerable:!(s=Hv(h,$))||s.enumerable})}return f},yv=(f)=>kv(Q4({},"__esModule",{value:!0}),f),nA={};qv(nA,{fromHex:()=>aA,toHex:()=>oA});pA.exports=yv(nA);var eA={},pU={};for(let f=0;f<256;f++){let h=f.toString(16).toLowerCase();if(h.length===1)h=`0${h}`;eA[f]=h,pU[h]=f}function aA(f){if(f.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let h=new Uint8Array(f.length/2);for(let w=0;w<f.length;w+=2){let s=f.slice(w,w+2).toLowerCase();if(s in pU)h[w/2]=pU[s];else throw new Error(`Cannot decode unrecognized sequence ${s} as hexadecimal`)}return h}_A(aA,"fromHex");function oA(f){let h="";for(let w=0;w<f.byteLength;w++)h+=eA[f[w]];return h}_A(oA,"toHex")});var sG=H((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.sdkStreamMixin=void 0;var jv=xA(),Ov=Ih(),lv=uU(),vv=u1(),uA=Lh(),tA="The stream has already been transformed.",bv=(f)=>{var h,w;if(!fG(f)&&!uA.isReadableStream(f)){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error(tA);return s=!0,await jv.streamCollector(f)},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.
|
|
11
|
+
If 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(f,{transformToByteArray:$,transformToString:async(E)=>{let T=await $();if(E==="base64")return Ov.toBase64(T);else if(E==="hex")return lv.toHex(T);else if(E===void 0||E==="utf8"||E==="utf-8")return vv.toUtf8(T);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(T);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(s)throw new Error(tA);if(s=!0,fG(f))return r(f);else if(uA.isReadableStream(f))return f;else throw new Error(`Cannot transform payload to web stream, got ${f}`)}})};hG.sdkStreamMixin=bv;var fG=(f)=>typeof Blob==="function"&&f instanceof Blob});var TG=H((rG)=>{Object.defineProperty(rG,"__esModule",{value:!0});rG.sdkStreamMixin=void 0;var mv=S4(),dv=qw(),tU=B0("stream"),iv=sG(),$G="The stream has already been transformed.",cv=(f)=>{var h,w;if(!(f instanceof tU.Readable))try{return iv.sdkStreamMixin(f)}catch(r){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error($G);return s=!0,await mv.streamCollector(f)};return Object.assign(f,{transformToByteArray:$,transformToString:async(r)=>{let E=await $();if(r===void 0||Buffer.isEncoding(r))return dv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString(r);else return new TextDecoder(r).decode(E)},transformToWebStream:()=>{if(s)throw new Error($G);if(f.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof tU.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return s=!0,tU.Readable.toWeb(f)}})};rG.sdkStreamMixin=cv});var CG=H((UG)=>{Object.defineProperty(UG,"__esModule",{value:!0});UG.splitStream=void 0;async function gv(f){if(typeof f.stream==="function")f=f.stream();return f.tee()}UG.splitStream=gv});var GG=H((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.splitStream=void 0;var IG=B0("stream"),xv=CG(),LG=Lh();async function _v(f){if(LG.isReadableStream(f)||LG.isBlob(f))return xv.splitStream(f);let h=new IG.PassThrough,w=new IG.PassThrough;return f.pipe(h),f.pipe(w),[h,w]}BG.splitStream=_v});var s3=H((W50,Sf)=>{var{defineProperty:K4,getOwnPropertyDescriptor:nv,getOwnPropertyNames:ev}=Object,av=Object.prototype.hasOwnProperty,w3=(f,h)=>K4(f,"name",{value:h,configurable:!0}),ov=(f,h)=>{for(var w in h)K4(f,w,{get:h[w],enumerable:!0})},f3=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ev(h))if(!av.call(f,$)&&$!==w)K4(f,$,{get:()=>h[$],enumerable:!(s=nv(h,$))||s.enumerable})}return f},Bh=(f,h,w)=>(f3(f,h,"default"),w&&f3(w,h,"default")),pv=(f)=>f3(K4({},"__esModule",{value:!0}),f),Xf={};ov(Xf,{Uint8ArrayBlobAdapter:()=>h3});Sf.exports=pv(Xf);var WG=Ih(),zG=u1();function RG(f,h="utf-8"){if(h==="base64")return WG.toBase64(f);return zG.toUtf8(f)}w3(RG,"transformToString");function XG(f,h){if(h==="base64")return h3.mutate(WG.fromBase64(f));return h3.mutate(zG.fromUtf8(f))}w3(XG,"transformFromString");var h3=class f extends Uint8Array{static{w3(this,"Uint8ArrayBlobAdapter")}static fromString(h,w="utf-8"){switch(typeof h){case"string":return XG(h,w);default:throw new Error(`Unsupported conversion from ${typeof h} to Uint8ArrayBlobAdapter.`)}}static mutate(h){return Object.setPrototypeOf(h,f.prototype),h}transformToString(h="utf-8"){return RG(this,h)}};Bh(Xf,iU(),Sf.exports);Bh(Xf,eB(),Sf.exports);Bh(Xf,TA(),Sf.exports);Bh(Xf,CA(),Sf.exports);Bh(Xf,zA(),Sf.exports);Bh(Xf,TG(),Sf.exports);Bh(Xf,GG(),Sf.exports);Bh(Xf,Lh(),Sf.exports)});var yw=H((z50,QG)=>{var{defineProperty:E3,getOwnPropertyDescriptor:uv,getOwnPropertyNames:tv}=Object,fb=Object.prototype.hasOwnProperty,hb=(f,h)=>{for(var w in h)E3(f,w,{get:h[w],enumerable:!0})},wb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of tv(h))if(!fb.call(f,$)&&$!==w)E3(f,$,{get:()=>h[$],enumerable:!(s=uv(h,$))||s.enumerable})}return f},sb=(f)=>wb(E3({},"__esModule",{value:!0}),f),SG={};hb(SG,{RequestBuilder:()=>MG,collectBody:()=>$b,extendedEncodeURIComponent:()=>r3,requestBuilder:()=>Eb,resolvedPath:()=>YG});QG.exports=sb(SG);var $3=s3(),$b=async(f=new Uint8Array,h)=>{if(f instanceof Uint8Array)return $3.Uint8ArrayBlobAdapter.mutate(f);if(!f)return $3.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=h.streamCollector(f);return $3.Uint8ArrayBlobAdapter.mutate(await w)};function r3(f){return encodeURIComponent(f).replace(/[!'()*]/g,function(h){return"%"+h.charCodeAt(0).toString(16).toUpperCase()})}var rb=t0(),YG=(f,h,w,s,$,r)=>{if(h!=null&&h[w]!==void 0){let E=s();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+w+".");f=f.replace($,r?E.split("/").map((T)=>r3(T)).join("/"):r3(E))}else throw new Error("No value provided for input HTTP label: "+w+".");return f};function Eb(f,h){return new MG(f,h)}var MG=class{constructor(f,h){this.input=f,this.context=h,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){let{hostname:f,protocol:h="https",port:w,path:s}=await this.context.endpoint();this.path=s;for(let $ of this.resolvePathStack)$(this.path);return new rb.HttpRequest({protocol:h,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((h)=>{this.path=`${h?.endsWith("/")?h.slice(0,-1):h||""}`+f}),this}p(f,h,w,s){return this.resolvePathStack.push(($)=>{this.path=YG($,this.input,f,h,w,s)}),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}}});var m0=H((X50,OG)=>{var{defineProperty:J4,getOwnPropertyDescriptor:Tb,getOwnPropertyNames:Ub}=Object,Fb=Object.prototype.hasOwnProperty,j0=(f,h)=>J4(f,"name",{value:h,configurable:!0}),Cb=(f,h)=>{for(var w in h)J4(f,w,{get:h[w],enumerable:!0})},Ib=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ub(h))if(!Fb.call(f,$)&&$!==w)J4(f,$,{get:()=>h[$],enumerable:!(s=Tb(h,$))||s.enumerable})}return f},Lb=(f)=>Ib(J4({},"__esModule",{value:!0}),f),KG={};Cb(KG,{DefaultIdentityProviderConfig:()=>Kb,EXPIRATION_MS:()=>yG,HttpApiKeyAuthSigner:()=>Zb,HttpBearerAuthSigner:()=>Jb,NoAuthSigner:()=>Vb,createIsIdentityExpiredFunction:()=>kG,createPaginator:()=>DG,doesIdentityRequireRefresh:()=>jG,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Ab,getHttpAuthSchemePlugin:()=>Wb,getHttpSigningPlugin:()=>Xb,getSmithyContext:()=>Bb,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>VG,httpAuthSchemeMiddleware:()=>T3,httpAuthSchemeMiddlewareOptions:()=>PG,httpSigningMiddleware:()=>HG,httpSigningMiddlewareOptions:()=>NG,isIdentityExpired:()=>Pb,memoizeIdentityProvider:()=>Hb,normalizeProvider:()=>Sb,requestBuilder:()=>Qb.requestBuilder,setFeature:()=>qG});OG.exports=Lb(KG);var Z4=U1(),Bb=j0((f)=>f[Z4.SMITHY_CONTEXT_KEY]||(f[Z4.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),ZG=Fh();function JG(f){let h=new Map;for(let w of f)h.set(w.schemeId,w);return h}j0(JG,"convertHttpAuthSchemesToMap");var T3=j0((f,h)=>(w,s)=>async($)=>{let r=f.httpAuthSchemeProvider(await h.httpAuthSchemeParametersProvider(f,s,$.input)),E=JG(f.httpAuthSchemes),T=ZG.getSmithyContext(s),U=[];for(let F of r){let C=E.get(F.schemeId);if(!C){U.push(`HttpAuthScheme \`${F.schemeId}\` was not enabled for this service.`);continue}let I=C.identityProvider(await h.identityProviderConfigProvider(f));if(!I){U.push(`HttpAuthScheme \`${F.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:L={},signingProperties:G={}}=F.propertiesExtractor?.(f,s)||{};F.identityProperties=Object.assign(F.identityProperties||{},L),F.signingProperties=Object.assign(F.signingProperties||{},G),T.selectedHttpAuthScheme={httpAuthOption:F,identity:await I(F.identityProperties),signer:C.signer};break}if(!T.selectedHttpAuthScheme)throw new Error(U.join(`
|
|
12
|
+
`));return w($)},"httpAuthSchemeMiddleware"),VG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Ab=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(T3(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),VG)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Gb=Dw(),PG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Gb.serializerMiddlewareOption.name},Wb=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(T3(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),PG)}}),"getHttpAuthSchemePlugin"),U3=t0(),zb=j0((f)=>(h)=>{throw h},"defaultErrorHandler"),Rb=j0((f,h)=>{},"defaultSuccessHandler"),HG=j0((f)=>(h,w)=>async(s)=>{if(!U3.HttpRequest.isInstance(s.request))return h(s);let r=ZG.getSmithyContext(w).selectedHttpAuthScheme;if(!r)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:E={}},identity:T,signer:U}=r,F=await h({...s,request:await U.sign(s.request,T,E)}).catch((U.errorHandler||zb)(E));return(U.successHandler||Rb)(F.response,E),F},"httpSigningMiddleware"),NG={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Xb=j0((f)=>({applyToStack:(h)=>{h.addRelativeTo(HG(f),NG)}}),"getHttpSigningPlugin"),Sb=j0((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider"),Yb=j0(async(f,h,w,s=(r)=>r,...$)=>{let r=new f(w);return r=s(r)??r,await h.send(r,...$)},"makePagedClientRequest");function DG(f,h,w,s,$){return j0(async function*r(E,T,...U){let F=T,C=E.startingToken??F[w],I=!0,L;while(I){if(F[w]=C,$)F[$]=F[$]??E.pageSize;if(E.client instanceof f)L=await Yb(h,E.client,T,E.withCommand,...U);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield L;let G=C;C=Mb(L,s),I=!!(C&&(!E.stopOnSameToken||C!==G))}return},"paginateOperation")}j0(DG,"createPaginator");var Mb=j0((f,h)=>{let w=f,s=h.split(".");for(let $ of s){if(!w||typeof w!=="object")return;w=w[$]}return w},"get"),Qb=yw();function qG(f,h,w){if(!f.__smithy_context)f.__smithy_context={features:{}};else if(!f.__smithy_context.features)f.__smithy_context.features={};f.__smithy_context.features[h]=w}j0(qG,"setFeature");var Kb=class{constructor(f){this.authSchemes=new Map;for(let[h,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(h,w)}static{j0(this,"DefaultIdentityProviderConfig")}getIdentityProvider(f){return this.authSchemes.get(f)}},Zb=class{static{j0(this,"HttpApiKeyAuthSigner")}async sign(f,h,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(!h.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=U3.HttpRequest.clone(f);if(w.in===Z4.HttpApiKeyAuthLocation.QUERY)s.query[w.name]=h.apiKey;else if(w.in===Z4.HttpApiKeyAuthLocation.HEADER)s.headers[w.name]=w.scheme?`${w.scheme} ${h.apiKey}`:h.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return s}},Jb=class{static{j0(this,"HttpBearerAuthSigner")}async sign(f,h,w){let s=U3.HttpRequest.clone(f);if(!h.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${h.token}`,s}},Vb=class{static{j0(this,"NoAuthSigner")}async sign(f,h,w){return f}},kG=j0((f)=>(h)=>jG(h)&&h.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),yG=300000,Pb=kG(yG),jG=j0((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),Hb=j0((f,h,w)=>{if(f===void 0)return;let s=typeof f!=="function"?async()=>Promise.resolve(f):f,$,r,E,T=!1,U=j0(async(F)=>{if(!r)r=s(F);try{$=await r,E=!0,T=!1}finally{r=void 0}return $},"coalesceProvider");if(h===void 0)return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);return $};return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);if(T)return $;if(!w($))return T=!0,$;if(h($))return await U(F),$;return $}},"memoizeIdentityProvider")});function Nb(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}function jw(f){let h=lG.normalizeProvider(f.userAgentAppId??F3);return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent,userAgentAppId:async()=>{let w=await h();if(!Nb(w)){let s=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof w!=="string")s?.warn("userAgentAppId must be a string or undefined.");else if(w.length>50)s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return w}}}var lG,F3=void 0;var vG=B(()=>{lG=o(m0(),1)});class gh{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}}var Db,V$=(f)=>Db.test(f)||f.startsWith("[")&&f.endsWith("]");var C3=B(()=>{Db=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 qb,P$=(f,h=!1)=>{if(!h)return qb.test(f);let w=f.split(".");for(let s of w)if(!P$(s))return!1;return!0};var I3=B(()=>{qb=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var t1;var V4=B(()=>{t1={}});var mf="endpoints";function N1(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${N1(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(N1).join(", ")})`;return JSON.stringify(f,null,2)}var H$=()=>{};var H0;var bG=B(()=>{H0=class H0 extends Error{constructor(f){super(f);this.name="EndpointError"}}});var mG=()=>{};var dG=()=>{};var iG=()=>{};var cG=()=>{};var gG=()=>{};var xG=()=>{};var D1=B(()=>{bG();mG();dG();iG();cG();gG();xG()});var _G=(f,h)=>f===h;var nG=(f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new H0(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new H0(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w};var eG=B(()=>{D1()});var P4=(f,h)=>nG(h).reduce((w,s)=>{if(typeof w!=="object")throw new H0(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f);var aG=B(()=>{D1();eG()});var oG=(f)=>f!=null;var pG=(f)=>!f;var H4,L3,uG=(f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:G,protocol:X="",path:Q="",query:M={}}=f,q=new URL(`${X}//${L}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(H4.EndpointURLScheme).includes(U))return null;let F=V$($),C=w.includes(`${s}:${L3[U]}`)||typeof f==="string"&&f.includes(`${s}:${L3[U]}`),I=`${s}${C?`:${L3[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}};var tG=B(()=>{H4=o(U1(),1);C3();L3={[H4.EndpointURLScheme.HTTP]:80,[H4.EndpointURLScheme.HTTPS]:443}});var fW=(f,h)=>f===h;var hW=(f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)};var wW=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`);var B3=B(()=>{aG();I3();tG()});var sW;var $W=B(()=>{B3();sW={booleanEquals:_G,getAttr:P4,isSet:oG,isValidHostLabel:P$,not:pG,parseURL:uG,stringEquals:fW,substring:hW,uriEncode:wW}});var N4=(f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(P4(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")};var A3=B(()=>{B3()});var rW=({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]};var Ah=(f,h,w)=>{if(typeof f==="string")return N4(f,w);else if(f.fn)return D4(f,w);else if(f.ref)return rW(f,w);throw new H0(`'${h}': ${String(f)} is not a string, function or reference.`)};var N$=B(()=>{D1();G3();A3()});var D4=({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:Ah(r,"arg",w)),$=f.split(".");if($[0]in t1&&$[1]!=null)return t1[$[0]][$[1]](...s);return sW[f](...s)};var G3=B(()=>{V4();$W();N$()});var EW=({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new H0(`'${f}' is already defined in Reference Record.`);let s=D4(h,w);return w.logger?.debug?.(`${mf} evaluateCondition: ${N1(h)} = ${N1(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}};var TW=B(()=>{H$();D1();G3()});var Ow=(f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=EW(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${mf} assign: ${r.name} := ${N1(r.value)}`)}return{result:!0,referenceRecord:w}};var q4=B(()=>{H$();TW()});var UW=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=Ah(r,"Header value entry",h);if(typeof E!=="string")throw new H0(`Header '${s}' value '${E}' is not a string`);return E})}),{});var FW=B(()=>{D1();N$()});var W3=(f,h)=>{if(Array.isArray(f))return f.map((w)=>W3(w,h));switch(typeof f){case"string":return N4(f,h);case"object":if(f===null)throw new H0(`Unexpected endpoint property: ${f}`);return k4(f,h);case"boolean":return f;default:throw new H0(`Unexpected endpoint property type: ${typeof f}`)}};var CW=B(()=>{D1();A3();z3()});var k4=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:W3($,h)}),{});var z3=B(()=>{CW()});var IW=(f,h)=>{let w=Ah(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new H0(`Endpoint URL must be a string, got ${typeof w}`)};var LW=B(()=>{D1();N$()});var BW=(f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${mf} Resolving endpoint from template: ${N1(s)}`),{...F!=null&&{headers:UW(F,E)},...U!=null&&{properties:k4(U,E)},url:IW(T,E)}};var AW=B(()=>{H$();q4();FW();z3();LW()});var GW=(f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;throw new H0(Ah(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))};var WW=B(()=>{D1();q4();N$()});var zW=(f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=Ow(w,h);if(!$)return;return y4(s,{...h,referenceRecord:{...h.referenceRecord,...r}})};var RW=B(()=>{q4();R3()});var y4=(f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=BW(w,h);if(s)return s}else if(w.type==="error")GW(w,h);else if(w.type==="tree"){let s=zW(w,h);if(s)return s}else throw new H0(`Unknown endpoint rule: ${w}`);throw new H0("Rules evaluation failed")};var R3=B(()=>{D1();AW();WW();RW()});var XW=B(()=>{V4();R3()});var xh=(f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${mf} Initial EndpointParams: ${N1(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new H0(`Missing required parameter: '${F}'`);let U=y4(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${mf} Resolved endpoint: ${N1(U)}`),U};var SW=B(()=>{H$();D1();XW()});var df=B(()=>{C3();I3();V4();SW();D1()});var X3=B(()=>{df()});var S3=(f,h=!1)=>{if(h){for(let w of f.split("."))if(!S3(w))return!1;return!0}if(!P$(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(V$(f))return!1;return!0};var YW=B(()=>{df();X3()});var MW=(f)=>{let h=f.split(":");if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(":")==="")return null;let U=T.map((F)=>F.split("/")).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}};var KW;var QW=B(()=>{KW={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|mx)\\-\\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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"}});var yb,jb="",ZW=(f)=>{let{partitions:h}=yb;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},JW=()=>jb;var Y3=B(()=>{QW();yb=KW});var _h;var VW=B(()=>{df();YW();Y3();_h={isVirtualHostableS3Bucket:S3,parseArn:MW,partition:ZW};t1.aws=_h});var PW=B(()=>{df()});var HW=B(()=>{df()});var NW=()=>{};var DW=()=>{};var qW=()=>{};var kW=()=>{};var yW=()=>{};var jW=B(()=>{HW();NW();DW();qW();kW();yW()});var D$=B(()=>{VW();Y3();X3();PW();jW()});var v4=H((f30,l4)=>{var OW,lW,vW,bW,mW,dW,iW,cW,gW,xW,_W,nW,eW,j4,M3,aW,oW,pW,lw,uW,tW,fz,hz,wz,sz,$z,rz,Ez,O4,Tz,Uz,Fz;(function(f){var h=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(s){f(w(h,w(s)))});else if(typeof l4==="object"&&typeof f30==="object")f(w(h,w(f30)));else f(w(h));function w(s,$){if(s!==h)if(typeof Object.create==="function")Object.defineProperty(s,"__esModule",{value:!0});else s.__esModule=!0;return function(r,E){return s[r]=$?$(r,E):E}}})(function(f){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,E){r.__proto__=E}||function(r,E){for(var T in E)if(Object.prototype.hasOwnProperty.call(E,T))r[T]=E[T]};OW=function(r,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");h(r,E);function T(){this.constructor=r}r.prototype=E===null?Object.create(E):(T.prototype=E.prototype,new T)},lW=Object.assign||function(r){for(var E,T=1,U=arguments.length;T<U;T++){E=arguments[T];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))r[F]=E[F]}return r},vW=function(r,E){var T={};for(var U in r)if(Object.prototype.hasOwnProperty.call(r,U)&&E.indexOf(U)<0)T[U]=r[U];if(r!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,U=Object.getOwnPropertySymbols(r);F<U.length;F++)if(E.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(r,U[F]))T[U[F]]=r[U[F]]}return T},bW=function(r,E,T,U){var F=arguments.length,C=F<3?E:U===null?U=Object.getOwnPropertyDescriptor(E,T):U,I;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(r,E,T,U);else for(var L=r.length-1;L>=0;L--)if(I=r[L])C=(F<3?I(C):F>3?I(E,T,C):I(E,T))||C;return F>3&&C&&Object.defineProperty(E,T,C),C},mW=function(r,E){return function(T,U){E(T,U,r)}},dW=function(r,E,T,U,F,C){function I(b0){if(b0!==void 0&&typeof b0!=="function")throw new TypeError("Function expected");return b0}var L=U.kind,G=L==="getter"?"get":L==="setter"?"set":"value",X=!E&&r?U.static?r:r.prototype:null,Q=E||(X?Object.getOwnPropertyDescriptor(X,U.name):{}),M,q=!1;for(var N=T.length-1;N>=0;N--){var y={};for(var n in U)y[n]=n==="access"?{}:U[n];for(var n in U.access)y.access[n]=U.access[n];y.addInitializer=function(b0){if(q)throw new TypeError("Cannot add initializers after decoration has completed");C.push(I(b0||null))};var L0=T[N](L==="accessor"?{get:Q.get,set:Q.set}:Q[G],y);if(L==="accessor"){if(L0===void 0)continue;if(L0===null||typeof L0!=="object")throw new TypeError("Object expected");if(M=I(L0.get))Q.get=M;if(M=I(L0.set))Q.set=M;if(M=I(L0.init))F.unshift(M)}else if(M=I(L0))if(L==="field")F.unshift(M);else Q[G]=M}if(X)Object.defineProperty(X,U.name,Q);q=!0},iW=function(r,E,T){var U=arguments.length>2;for(var F=0;F<E.length;F++)T=U?E[F].call(r,T):E[F].call(r);return U?T:void 0},cW=function(r){return typeof r==="symbol"?r:"".concat(r)},gW=function(r,E,T){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(r,"name",{configurable:!0,value:T?"".concat(T," ",E):E})},xW=function(r,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(r,E)},_W=function(r,E,T,U){function F(C){return C instanceof T?C:new T(function(I){I(C)})}return new(T||(T=Promise))(function(C,I){function L(Q){try{X(U.next(Q))}catch(M){I(M)}}function G(Q){try{X(U.throw(Q))}catch(M){I(M)}}function X(Q){Q.done?C(Q.value):F(Q.value).then(L,G)}X((U=U.apply(r,E||[])).next())})},nW=function(r,E){var T={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},U,F,C,I=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return I.next=L(0),I.throw=L(1),I.return=L(2),typeof Symbol==="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(X){return function(Q){return G([X,Q])}}function G(X){if(U)throw new TypeError("Generator is already executing.");while(I&&(I=0,X[0]&&(T=0)),T)try{if(U=1,F&&(C=X[0]&2?F.return:X[0]?F.throw||((C=F.return)&&C.call(F),0):F.next)&&!(C=C.call(F,X[1])).done)return C;if(F=0,C)X=[X[0]&2,C.value];switch(X[0]){case 0:case 1:C=X;break;case 4:return T.label++,{value:X[1],done:!1};case 5:T.label++,F=X[1],X=[0];continue;case 7:X=T.ops.pop(),T.trys.pop();continue;default:if((C=T.trys,!(C=C.length>0&&C[C.length-1]))&&(X[0]===6||X[0]===2)){T=0;continue}if(X[0]===3&&(!C||X[1]>C[0]&&X[1]<C[3])){T.label=X[1];break}if(X[0]===6&&T.label<C[1]){T.label=C[1],C=X;break}if(C&&T.label<C[2]){T.label=C[2],T.ops.push(X);break}if(C[2])T.ops.pop();T.trys.pop();continue}X=E.call(r,T)}catch(Q){X=[6,Q],F=0}finally{U=C=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},eW=function(r,E){for(var T in r)if(T!=="default"&&!Object.prototype.hasOwnProperty.call(E,T))O4(E,r,T)},O4=Object.create?function(r,E,T,U){if(U===void 0)U=T;var F=Object.getOwnPropertyDescriptor(E,T);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[T]}};Object.defineProperty(r,U,F)}:function(r,E,T,U){if(U===void 0)U=T;r[U]=E[T]},j4=function(r){var E=typeof Symbol==="function"&&Symbol.iterator,T=E&&r[E],U=0;if(T)return T.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&U>=r.length)r=void 0;return{value:r&&r[U++],done:!r}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},M3=function(r,E){var T=typeof Symbol==="function"&&r[Symbol.iterator];if(!T)return r;var U=T.call(r),F,C=[],I;try{while((E===void 0||E-- >0)&&!(F=U.next()).done)C.push(F.value)}catch(L){I={error:L}}finally{try{if(F&&!F.done&&(T=U.return))T.call(U)}finally{if(I)throw I.error}}return C},aW=function(){for(var r=[],E=0;E<arguments.length;E++)r=r.concat(M3(arguments[E]));return r},oW=function(){for(var r=0,E=0,T=arguments.length;E<T;E++)r+=arguments[E].length;for(var U=Array(r),F=0,E=0;E<T;E++)for(var C=arguments[E],I=0,L=C.length;I<L;I++,F++)U[F]=C[I];return U},pW=function(r,E,T){if(T||arguments.length===2){for(var U=0,F=E.length,C;U<F;U++)if(C||!(U in E)){if(!C)C=Array.prototype.slice.call(E,0,U);C[U]=E[U]}}return r.concat(C||Array.prototype.slice.call(E))},lw=function(r){return this instanceof lw?(this.v=r,this):new lw(r)},uW=function(r,E,T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U=T.apply(r,E||[]),F,C=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),L("next"),L("throw"),L("return",I),F[Symbol.asyncIterator]=function(){return this},F;function I(N){return function(y){return Promise.resolve(y).then(N,M)}}function L(N,y){if(U[N]){if(F[N]=function(n){return new Promise(function(L0,b0){C.push([N,n,L0,b0])>1||G(N,n)})},y)F[N]=y(F[N])}}function G(N,y){try{X(U[N](y))}catch(n){q(C[0][3],n)}}function X(N){N.value instanceof lw?Promise.resolve(N.value.v).then(Q,M):q(C[0][2],N)}function Q(N){G("next",N)}function M(N){G("throw",N)}function q(N,y){if(N(y),C.shift(),C.length)G(C[0][0],C[0][1])}},tW=function(r){var E,T;return E={},U("next"),U("throw",function(F){throw F}),U("return"),E[Symbol.iterator]=function(){return this},E;function U(F,C){E[F]=r[F]?function(I){return(T=!T)?{value:lw(r[F](I)),done:!1}:C?C(I):I}:C}},fz=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=r[Symbol.asyncIterator],T;return E?E.call(r):(r=typeof j4==="function"?j4(r):r[Symbol.iterator](),T={},U("next"),U("throw"),U("return"),T[Symbol.asyncIterator]=function(){return this},T);function U(C){T[C]=r[C]&&function(I){return new Promise(function(L,G){I=r[C](I),F(L,G,I.done,I.value)})}}function F(C,I,L,G){Promise.resolve(G).then(function(X){C({value:X,done:L})},I)}},hz=function(r,E){if(Object.defineProperty)Object.defineProperty(r,"raw",{value:E});else r.raw=E;return r};var w=Object.create?function(r,E){Object.defineProperty(r,"default",{enumerable:!0,value:E})}:function(r,E){r.default=E},s=function(r){return s=Object.getOwnPropertyNames||function(E){var T=[];for(var U in E)if(Object.prototype.hasOwnProperty.call(E,U))T[T.length]=U;return T},s(r)};wz=function(r){if(r&&r.__esModule)return r;var E={};if(r!=null){for(var T=s(r),U=0;U<T.length;U++)if(T[U]!=="default")O4(E,r,T[U])}return w(E,r),E},sz=function(r){return r&&r.__esModule?r:{default:r}},$z=function(r,E,T,U){if(T==="a"&&!U)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?r!==E||!U:!E.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return T==="m"?U:T==="a"?U.call(r):U?U.value:E.get(r)},rz=function(r,E,T,U,F){if(U==="m")throw new TypeError("Private method is not writable");if(U==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?r!==E||!F:!E.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return U==="a"?F.call(r,T):F?F.value=T:E.set(r,T),T},Ez=function(r,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?E===r:r.has(E)},Tz=function(r,E,T){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var U,F;if(T){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");U=E[Symbol.asyncDispose]}if(U===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(U=E[Symbol.dispose],T)F=U}if(typeof U!=="function")throw new TypeError("Object not disposable.");if(F)U=function(){try{F.call(this)}catch(C){return Promise.reject(C)}};r.stack.push({value:E,dispose:U,async:T})}else if(T)r.stack.push({async:!0});return E};var $=typeof SuppressedError==="function"?SuppressedError:function(r,E,T){var U=new Error(T);return U.name="SuppressedError",U.error=r,U.suppressed=E,U};Uz=function(r){function E(C){r.error=r.hasError?new $(C,r.error,"An error was suppressed during disposal."):C,r.hasError=!0}var T,U=0;function F(){while(T=r.stack.pop())try{if(!T.async&&U===1)return U=0,r.stack.push(T),Promise.resolve().then(F);if(T.dispose){var C=T.dispose.call(T.value);if(T.async)return U|=2,Promise.resolve(C).then(F,function(I){return E(I),F()})}else U|=1}catch(I){E(I)}if(U===1)return r.hasError?Promise.reject(r.error):Promise.resolve();if(r.hasError)throw r.error}return F()},Fz=function(r,E){if(typeof r==="string"&&/^\.\.?\//.test(r))return r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(T,U,F,C,I){return U?E?".jsx":".js":F&&(!C||!I)?T:F+C+"."+I.toLowerCase()+"js"});return r},f("__extends",OW),f("__assign",lW),f("__rest",vW),f("__decorate",bW),f("__param",mW),f("__esDecorate",dW),f("__runInitializers",iW),f("__propKey",cW),f("__setFunctionName",gW),f("__metadata",xW),f("__awaiter",_W),f("__generator",nW),f("__exportStar",eW),f("__createBinding",O4),f("__values",j4),f("__read",M3),f("__spread",aW),f("__spreadArrays",oW),f("__spreadArray",pW),f("__await",lw),f("__asyncGenerator",uW),f("__asyncDelegator",tW),f("__asyncValues",fz),f("__makeTemplateObject",hz),f("__importStar",wz),f("__importDefault",sz),f("__classPrivateFieldGet",$z),f("__classPrivateFieldSet",rz),f("__classPrivateFieldIn",Ez),f("__addDisposableResource",Tz),f("__disposeResources",Uz),f("__rewriteRelativeImportExtension",Fz)})});var C1=H((h30,Bz)=>{var{defineProperty:b4,getOwnPropertyDescriptor:Ob,getOwnPropertyNames:lb}=Object,vb=Object.prototype.hasOwnProperty,K3=(f,h)=>b4(f,"name",{value:h,configurable:!0}),bb=(f,h)=>{for(var w in h)b4(f,w,{get:h[w],enumerable:!0})},mb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of lb(h))if(!vb.call(f,$)&&$!==w)b4(f,$,{get:()=>h[$],enumerable:!(s=Ob(h,$))||s.enumerable})}return f},db=(f)=>mb(b4({},"__esModule",{value:!0}),f),Cz={};bb(Cz,{emitWarningIfUnsupportedVersion:()=>ib,setCredentialFeature:()=>Iz,setFeature:()=>Lz,state:()=>Q3});Bz.exports=db(Cz);var Q3={warningEmitted:!1},ib=K3((f)=>{if(f&&!Q3.warningEmitted&&parseInt(f.substring(1,f.indexOf(".")))<18)Q3.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
13
13
|
no longer support Node.js 16.x on January 6, 2025.
|
|
14
14
|
|
|
15
15
|
To continue receiving updates to AWS services, bug fixes, and security
|
|
16
16
|
updates please upgrade to a supported Node.js LTS version.
|
|
17
17
|
|
|
18
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function
|
|
19
|
-
`);return this.signString(G,{signingDate:w,signingRegion:E,signingService:r})}async signMessage(f,{signingDate:h=new Date,signingRegion:w,signingService:s}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:h,signingRegion:w,signingService:s,priorSignature:f.priorSignature}).then((r)=>{return{message:f.message,signature:r}})}async signString(f,{signingDate:h=new Date,signingRegion:w,signingService:s}={}){let $=await this.credentialProvider();this.validateResolvedCredentials($);let r=w??await this.regionProvider(),{shortDate:E}=
|
|
18
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function Iz(f,h,w){if(!f.$source)f.$source={};return f.$source[h]=w,f}K3(Iz,"setCredentialFeature");function Lz(f,h,w){if(!f.__aws_sdk_context)f.__aws_sdk_context={features:{}};else if(!f.__aws_sdk_context.features)f.__aws_sdk_context.features={};f.__aws_sdk_context.features[h]=w}K3(Lz,"setFeature")});var q$=H((w30,Gz)=>{var{defineProperty:m4,getOwnPropertyDescriptor:cb,getOwnPropertyNames:gb}=Object,xb=Object.prototype.hasOwnProperty,nh=(f,h)=>m4(f,"name",{value:h,configurable:!0}),_b=(f,h)=>{for(var w in h)m4(f,w,{get:h[w],enumerable:!0})},nb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of gb(h))if(!xb.call(f,$)&&$!==w)m4(f,$,{get:()=>h[$],enumerable:!(s=cb(h,$))||s.enumerable})}return f},eb=(f)=>nb(m4({},"__esModule",{value:!0}),f),Az={};_b(Az,{CredentialsProviderError:()=>ab,ProviderError:()=>d4,TokenProviderError:()=>ob,chain:()=>pb,fromStatic:()=>ub,memoize:()=>tb});Gz.exports=eb(Az);var d4=class f extends Error{constructor(h,w=!0){let s,$=!0;if(typeof w==="boolean")s=void 0,$=w;else if(w!=null&&typeof w==="object")s=w.logger,$=w.tryNextLink??!0;super(h);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,f.prototype),s?.debug?.(`@smithy/property-provider ${$?"->":"(!)"} ${h}`)}static{nh(this,"ProviderError")}static from(h,w=!0){return Object.assign(new this(h.message,w),h)}},ab=class f extends d4{constructor(h,w=!0){super(h,w);this.name="CredentialsProviderError",Object.setPrototypeOf(this,f.prototype)}static{nh(this,"CredentialsProviderError")}},ob=class f extends d4{constructor(h,w=!0){super(h,w);this.name="TokenProviderError",Object.setPrototypeOf(this,f.prototype)}static{nh(this,"TokenProviderError")}},pb=nh((...f)=>async()=>{if(f.length===0)throw new d4("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h},"chain"),ub=nh((f)=>()=>Promise.resolve(f),"fromStatic"),tb=nh((f,h,w)=>{let s,$,r,E=!1,T=nh(async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s},"coalesceProvider");if(h===void 0)return async(U)=>{if(!r||U?.forceRefresh)s=await T();return s};return async(U)=>{if(!r||U?.forceRefresh)s=await T();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await T(),s;return s}},"memoize")});var qz=H((s30,Dz)=>{var{defineProperty:n4,getOwnPropertyDescriptor:fm,getOwnPropertyNames:hm}=Object,wm=Object.prototype.hasOwnProperty,o0=(f,h)=>n4(f,"name",{value:h,configurable:!0}),sm=(f,h)=>{for(var w in h)n4(f,w,{get:h[w],enumerable:!0})},$m=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of hm(h))if(!wm.call(f,$)&&$!==w)n4(f,$,{get:()=>h[$],enumerable:!(s=fm(h,$))||s.enumerable})}return f},rm=(f)=>$m(n4({},"__esModule",{value:!0}),f),Sz={};sm(Sz,{SignatureV4:()=>Dm,clearCredentialCache:()=>Mm,createScope:()=>g4,getCanonicalHeaders:()=>P3,getCanonicalQuery:()=>Pz,getPayloadHash:()=>_4,getSigningKey:()=>Vz,moveHeadersToQuery:()=>Nz,prepareRequest:()=>N3});Dz.exports=rm(Sz);var Wz=Fh(),Z3=u1(),Em="X-Amz-Algorithm",Tm="X-Amz-Credential",Yz="X-Amz-Date",Um="X-Amz-SignedHeaders",Fm="X-Amz-Expires",Mz="X-Amz-Signature",Qz="X-Amz-Security-Token",Kz="authorization",Zz=Yz.toLowerCase(),Cm="date",Im=[Kz,Zz,Cm],Lm=Mz.toLowerCase(),V3="x-amz-content-sha256",Bm=Qz.toLowerCase(),Am={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},Gm=/^proxy-/,Wm=/^sec-/,J3="AWS4-HMAC-SHA256",zm="AWS4-HMAC-SHA256-PAYLOAD",Rm="UNSIGNED-PAYLOAD",Xm=50,Jz="aws4_request",Sm=604800,Gh=uU(),Ym=u1(),vw={},c4=[],g4=o0((f,h,w)=>`${f}/${h}/${w}/${Jz}`,"createScope"),Vz=o0(async(f,h,w,s,$)=>{let r=await zz(f,h.secretAccessKey,h.accessKeyId),E=`${w}:${s}:${$}:${Gh.toHex(r)}:${h.sessionToken}`;if(E in vw)return vw[E];c4.push(E);while(c4.length>Xm)delete vw[c4.shift()];let T=`AWS4${h.secretAccessKey}`;for(let U of[w,s,$,Jz])T=await zz(f,T,U);return vw[E]=T},"getSigningKey"),Mm=o0(()=>{c4.length=0,Object.keys(vw).forEach((f)=>{delete vw[f]})},"clearCredentialCache"),zz=o0((f,h,w)=>{let s=new f(h);return s.update(Ym.toUint8Array(w)),s.digest()},"hmac"),P3=o0(({headers:f},h,w)=>{let s={};for(let $ of Object.keys(f).sort()){if(f[$]==null)continue;let r=$.toLowerCase();if(r in Am||h?.has(r)||Gm.test(r)||Wm.test(r)){if(!w||w&&!w.has(r))continue}s[r]=f[$].trim().replace(/\s+/g," ")}return s},"getCanonicalHeaders"),x4=xU(),Pz=o0(({query:f={}})=>{let h=[],w={};for(let s of Object.keys(f)){if(s.toLowerCase()===Lm)continue;let $=x4.escapeUri(s);h.push($);let r=f[s];if(typeof r==="string")w[$]=`${$}=${x4.escapeUri(r)}`;else if(Array.isArray(r))w[$]=r.slice(0).reduce((E,T)=>E.concat([`${$}=${x4.escapeUri(T)}`]),[]).sort().join("&")}return h.sort().map((s)=>w[s]).filter((s)=>s).join("&")},"getCanonicalQuery"),Qm=B4(),Km=u1(),_4=o0(async({headers:f,body:h},w)=>{for(let s of Object.keys(f))if(s.toLowerCase()===V3)return f[s];if(h==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof h==="string"||ArrayBuffer.isView(h)||Qm.isArrayBuffer(h)){let s=new w;return s.update(Km.toUint8Array(h)),Gh.toHex(await s.digest())}return Rm},"getPayloadHash"),Rz=u1(),Zm=class{static{o0(this,"HeaderFormatter")}format(f){let h=[];for(let $ of Object.keys(f)){let r=Rz.fromUtf8($);h.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(f[$]))}let w=new Uint8Array(h.reduce(($,r)=>$+r.byteLength,0)),s=0;for(let $ of h)w.set($,s),s+=$.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":let h=new DataView(new ArrayBuffer(3));return h.setUint8(0,3),h.setInt16(1,f.value,!1),new Uint8Array(h.buffer);case"integer":let w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,f.value,!1),new Uint8Array(w.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(f.value.bytes,1),s;case"binary":let $=new DataView(new ArrayBuffer(3+f.value.byteLength));$.setUint8(0,6),$.setUint16(1,f.value.byteLength,!1);let r=new Uint8Array($.buffer);return r.set(f.value,3),r;case"string":let E=Rz.fromUtf8(f.value),T=new DataView(new ArrayBuffer(3+E.byteLength));T.setUint8(0,7),T.setUint16(1,E.byteLength,!1);let U=new Uint8Array(T.buffer);return U.set(E,3),U;case"timestamp":let F=new Uint8Array(9);return F[0]=8,F.set(Vm.fromNumber(f.value.valueOf()).bytes,1),F;case"uuid":if(!Jm.test(f.value))throw new Error(`Invalid UUID received: ${f.value}`);let C=new Uint8Array(17);return C[0]=9,C.set(Gh.fromHex(f.value.replace(/\-/g,"")),1),C}}},Jm=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Vm=class f{constructor(h){if(this.bytes=h,h.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static{o0(this,"Int64")}static fromNumber(h){if(h>9223372036854776000||h<-9223372036854776000)throw new Error(`${h} is too large (or, if negative, too small) to represent as an Int64`);let w=new Uint8Array(8);for(let s=7,$=Math.abs(Math.round(h));s>-1&&$>0;s--,$/=256)w[s]=$;if(h<0)H3(w);return new f(w)}valueOf(){let h=this.bytes.slice(0),w=h[0]&128;if(w)H3(h);return parseInt(Gh.toHex(h),16)*(w?-1:1)}toString(){return String(this.valueOf())}};function H3(f){for(let h=0;h<8;h++)f[h]^=255;for(let h=7;h>-1;h--)if(f[h]++,f[h]!==0)break}o0(H3,"negate");var Pm=o0((f,h)=>{f=f.toLowerCase();for(let w of Object.keys(h))if(f===w.toLowerCase())return!0;return!1},"hasHeader"),Hz=t0(),Nz=o0((f,h={})=>{let{headers:w,query:s={}}=Hz.HttpRequest.clone(f);for(let $ of Object.keys(w)){let r=$.toLowerCase();if(r.slice(0,6)==="x-amz-"&&!h.unhoistableHeaders?.has(r)||h.hoistableHeaders?.has(r))s[$]=w[$],delete w[$]}return{...f,headers:w,query:s}},"moveHeadersToQuery"),N3=o0((f)=>{f=Hz.HttpRequest.clone(f);for(let h of Object.keys(f.headers))if(Im.indexOf(h.toLowerCase())>-1)delete f.headers[h];return f},"prepareRequest"),Hm=o0((f)=>Nm(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Nm=o0((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),Dm=class{constructor({applyChecksum:f,credentials:h,region:w,service:s,sha256:$,uriEscapePath:r=!0}){this.headerFormatter=new Zm,this.service=s,this.sha256=$,this.uriEscapePath=r,this.applyChecksum=typeof f==="boolean"?f:!0,this.regionProvider=Wz.normalizeProvider(w),this.credentialProvider=Wz.normalizeProvider(h)}static{o0(this,"SignatureV4")}async presign(f,h={}){let{signingDate:w=new Date,expiresIn:s=3600,unsignableHeaders:$,unhoistableHeaders:r,signableHeaders:E,hoistableHeaders:T,signingRegion:U,signingService:F}=h,C=await this.credentialProvider();this.validateResolvedCredentials(C);let I=U??await this.regionProvider(),{longDate:L,shortDate:G}=i4(w);if(s>Sm)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let X=g4(G,I,F??this.service),Q=Nz(N3(f),{unhoistableHeaders:r,hoistableHeaders:T});if(C.sessionToken)Q.query[Qz]=C.sessionToken;Q.query[Em]=J3,Q.query[Tm]=`${C.accessKeyId}/${X}`,Q.query[Yz]=L,Q.query[Fm]=s.toString(10);let M=P3(Q,$,E);return Q.query[Um]=Xz(M),Q.query[Mz]=await this.getSignature(L,X,this.getSigningKey(C,I,G,F),this.createCanonicalRequest(Q,M,await _4(f,this.sha256))),Q}async sign(f,h){if(typeof f==="string")return this.signString(f,h);else if(f.headers&&f.payload)return this.signEvent(f,h);else if(f.message)return this.signMessage(f,h);else return this.signRequest(f,h)}async signEvent({headers:f,payload:h},{signingDate:w=new Date,priorSignature:s,signingRegion:$,signingService:r}){let E=$??await this.regionProvider(),{shortDate:T,longDate:U}=i4(w),F=g4(T,E,r??this.service),C=await _4({headers:{},body:h},this.sha256),I=new this.sha256;I.update(f);let L=Gh.toHex(await I.digest()),G=[zm,U,F,s,L,C].join(`
|
|
19
|
+
`);return this.signString(G,{signingDate:w,signingRegion:E,signingService:r})}async signMessage(f,{signingDate:h=new Date,signingRegion:w,signingService:s}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:h,signingRegion:w,signingService:s,priorSignature:f.priorSignature}).then((r)=>{return{message:f.message,signature:r}})}async signString(f,{signingDate:h=new Date,signingRegion:w,signingService:s}={}){let $=await this.credentialProvider();this.validateResolvedCredentials($);let r=w??await this.regionProvider(),{shortDate:E}=i4(h),T=new this.sha256(await this.getSigningKey($,r,E,s));return T.update(Z3.toUint8Array(f)),Gh.toHex(await T.digest())}async signRequest(f,{signingDate:h=new Date,signableHeaders:w,unsignableHeaders:s,signingRegion:$,signingService:r}={}){let E=await this.credentialProvider();this.validateResolvedCredentials(E);let T=$??await this.regionProvider(),U=N3(f),{longDate:F,shortDate:C}=i4(h),I=g4(C,T,r??this.service);if(U.headers[Zz]=F,E.sessionToken)U.headers[Bm]=E.sessionToken;let L=await _4(U,this.sha256);if(!Pm(V3,U.headers)&&this.applyChecksum)U.headers[V3]=L;let G=P3(U,s,w),X=await this.getSignature(F,I,this.getSigningKey(E,T,C,r),this.createCanonicalRequest(U,G,L));return U.headers[Kz]=`${J3} Credential=${E.accessKeyId}/${I}, SignedHeaders=${Xz(G)}, Signature=${X}`,U}createCanonicalRequest(f,h,w){let s=Object.keys(h).sort();return`${f.method}
|
|
20
20
|
${this.getCanonicalPath(f)}
|
|
21
|
-
${
|
|
21
|
+
${Pz(f)}
|
|
22
22
|
${s.map(($)=>`${$}:${h[$]}`).join(`
|
|
23
23
|
`)}
|
|
24
24
|
|
|
25
25
|
${s.join(";")}
|
|
26
|
-
${w}`}async createStringToSign(f,h,w){let s=new this.sha256;s.update(
|
|
26
|
+
${w}`}async createStringToSign(f,h,w){let s=new this.sha256;s.update(Z3.toUint8Array(w));let $=await s.digest();return`${J3}
|
|
27
27
|
${f}
|
|
28
28
|
${h}
|
|
29
|
-
${Gh.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){let h=[];for(let $ of f.split("/")){if($?.length===0)continue;if($===".")continue;if($==="..")h.pop();else h.push($)}let w=`${f?.startsWith("/")?"/":""}${h.join("/")}${h.length>0&&f?.endsWith("/")?"/":""}`;return g4.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,h,w,s){let $=await this.createStringToSign(f,h,s),r=new this.sha256(await w);return r.update(J3.toUint8Array($)),Gh.toHex(await r.digest())}getSigningKey(f,h,w,s){return Nz(this.sha256,f,w,h,s||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")}},d4=o0((f)=>{let h=km(f).replace(/[\-:]/g,"");return{longDate:h,shortDate:h.slice(0,8)}},"formatDate"),Mz=o0((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var cz=H((C30,iz)=>{var{defineProperty:n4,getOwnPropertyDescriptor:Om,getOwnPropertyNames:lm}=Object,vm=Object.prototype.hasOwnProperty,R1=(f,h)=>n4(f,"name",{value:h,configurable:!0}),bm=(f,h)=>{for(var w in h)n4(f,w,{get:h[w],enumerable:!0})},mm=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of lm(h))if(!vm.call(f,$)&&$!==w)n4(f,$,{get:()=>h[$],enumerable:!(s=Om(h,$))||s.enumerable})}return f},dm=(f)=>mm(n4({},"__esModule",{value:!0}),f),mz={};bm(mz,{AWSSDKSigV4Signer:()=>xm,AwsSdkSigV4ASigner:()=>nm,AwsSdkSigV4Signer:()=>y3,NODE_SIGV4A_CONFIG_OPTIONS:()=>om,resolveAWSSDKSigV4Config:()=>um,resolveAwsSdkSigV4AConfig:()=>am,resolveAwsSdkSigV4Config:()=>dz,validateSigningProperties:()=>k3});iz.exports=dm(mz);var im=t0(),cm=t0(),Oz=R1((f)=>cm.HttpResponse.isInstance(f)?f.headers?.date??f.headers?.Date:void 0,"getDateHeader"),q3=R1((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),gm=R1((f,h)=>Math.abs(q3(h).getTime()-f)>=300000,"isClockSkewed"),lz=R1((f,h)=>{let w=Date.parse(f);if(gm(w,h))return w-Date.now();return h},"getUpdatedSystemClockOffset"),q$=R1((f,h)=>{if(!h)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return h},"throwSigningPropertyError"),k3=R1(async(f)=>{let h=q$("context",f.context),w=q$("config",f.config),s=h.endpointV2?.properties?.authSchemes?.[0],r=await q$("signer",w.signer)(s),E=f?.signingRegion,U=f?.signingRegionSet,T=f?.signingName;return{config:w,signer:r,signingRegion:E,signingRegionSet:U,signingName:T}},"validateSigningProperties"),y3=class{static{R1(this,"AwsSdkSigV4Signer")}async sign(f,h,w){if(!im.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await k3(w),{config:$,signer:r}=s,{signingRegion:E,signingName:U}=s,T=w.context;if(T?.authSchemes?.length??0>1){let[C,I]=T.authSchemes;if(C?.name==="sigv4a"&&I?.name==="sigv4")E=I?.signingRegion??E,U=I?.signingName??U}return await r.sign(f,{signingDate:q3($.systemClockOffset),signingRegion:E,signingService:U})}errorHandler(f){return(h)=>{let w=h.ServerTime??Oz(h.$response);if(w){let s=q$("config",f.config),$=s.systemClockOffset;if(s.systemClockOffset=lz(w,s.systemClockOffset),s.systemClockOffset!==$&&h.$metadata)h.$metadata.clockSkewCorrected=!0}throw h}}successHandler(f,h){let w=Oz(f);if(w){let s=q$("config",h.config);s.systemClockOffset=lz(w,s.systemClockOffset)}}},xm=y3,_m=t0(),nm=class extends y3{static{R1(this,"AwsSdkSigV4ASigner")}async sign(f,h,w){if(!_m.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:$,signingRegion:r,signingRegionSet:E,signingName:U}=await k3(w),F=(await s.sigv4aSigningRegionSet?.()??E??[r]).join(",");return await $.sign(f,{signingDate:q3(s.systemClockOffset),signingRegion:F,signingService:U})}},em=m0(),vz=D$(),am=R1((f)=>{return f.sigv4aSigningRegionSet=em.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),om={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((h)=>h.trim());throw new vz.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((h)=>h.trim());throw new vz.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},pm=C1(),eh=m0(),bz=jz(),dz=R1((f)=>{let h=!1,w;if(f.credentials)h=!0,w=eh.memoizeIdentityProvider(f.credentials,eh.isIdentityExpired,eh.doesIdentityRequireRefresh);if(!w)if(f.credentialDefaultProvider)w=eh.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else w=R1(async()=>{throw new Error("`credentials` is missing")},"credentialsProvider");let s=R1(async()=>w({callerClientConfig:f}),"boundCredentialsProvider"),{signingEscapePath:$=!0,systemClockOffset:r=f.systemClockOffset||0,sha256:E}=f,U;if(f.signer)U=eh.normalizeProvider(f.signer);else if(f.regionInfoProvider)U=R1(()=>eh.normalizeProvider(f.region)().then(async(T)=>[await f.regionInfoProvider(T,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},T]).then(([T,F])=>{let{signingRegion:C,signingService:I}=T;f.signingRegion=f.signingRegion||C||F,f.signingName=f.signingName||I||f.serviceId;let L={...f,credentials:s,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||bz.SignatureV4)(L)}),"signer");else U=R1(async(T)=>{T=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await eh.normalizeProvider(f.region)(),properties:{}},T);let{signingRegion:F,signingName:C}=T;f.signingRegion=f.signingRegion||F,f.signingName=f.signingName||C||f.serviceId;let I={...f,credentials:s,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||bz.SignatureV4)(I)},"signer");return{...f,systemClockOffset:r,signingEscapePath:$,credentials:h?async()=>s().then((T)=>pm.setCredentialFeature(T,"CREDENTIALS_CODE","e")):s,signer:U}},"resolveAwsSdkSigV4Config"),um=dz});var ez=H((A30,nz)=>{var{defineProperty:e4,getOwnPropertyDescriptor:tm,getOwnPropertyNames:fd}=Object,hd=Object.prototype.hasOwnProperty,q1=(f,h)=>e4(f,"name",{value:h,configurable:!0}),wd=(f,h)=>{for(var w in h)e4(f,w,{get:h[w],enumerable:!0})},sd=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of fd(h))if(!hd.call(f,$)&&$!==w)e4(f,$,{get:()=>h[$],enumerable:!(s=tm(h,$))||s.enumerable})}return f},$d=(f)=>sd(e4({},"__esModule",{value:!0}),f),_z={};wd(_z,{constructStack:()=>j3});nz.exports=$d(_z);var ah=q1((f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},"getAllAliases"),Wh=q1((f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},"getMiddlewareNameWithAliases"),j3=q1(()=>{let f=[],h=[],w=!1,s=new Set,$=q1((I)=>I.sort((L,G)=>gz[G.step]-gz[L.step]||xz[G.priority||"normal"]-xz[L.priority||"normal"]),"sort"),r=q1((I)=>{let L=!1,G=q1((S)=>{let Q=ah(S.name,S.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},"removeByName"),E=q1((I)=>{let L=!1,G=q1((S)=>{if(S.middleware===I){L=!0;for(let Q of ah(S.name,S.aliases))s.delete(Q);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},"removeByReference"),U=q1((I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},"cloneTo"),T=q1((I)=>{let L=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...T(G))}),L.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...T(G))}),L},"expandRelativeMiddlewareList"),F=q1((I=!1)=>{let L=[],G=[],S={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of ah(q.name,q.aliases))S[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of ah(q.name,q.aliases))S[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=S[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Wh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(T).reduce((M,q)=>{return M.push(...q),M},[])},"getMiddlewareList"),C={add:(I,L={})=>{let{name:G,override:S,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=ah(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Wh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Wh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Wh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:G,override:S,aliases:Q}=L,M={middleware:I,...L},q=ah(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Wh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Wh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Wh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>U(j3()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,G=q1((S)=>{let{tags:Q,name:M,aliases:q}=S;if(Q&&Q.includes(I)){let N=ah(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},concat:(I)=>{let L=U(j3());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:U,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Wh(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let G of F().map((S)=>S.middleware).reverse())I=G(I,L);if(w)console.log(C.identify());return I}};return C},"constructStack"),gz={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},xz={high:3,normal:2,low:1}});var J0=H((B30,LR)=>{var{defineProperty:p4,getOwnPropertyDescriptor:rd,getOwnPropertyNames:Ed}=Object,Ud=Object.prototype.hasOwnProperty,b=(f,h)=>p4(f,"name",{value:h,configurable:!0}),Td=(f,h)=>{for(var w in h)p4(f,w,{get:h[w],enumerable:!0})},Fd=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ed(h))if(!Ud.call(f,$)&&$!==w)p4(f,$,{get:()=>h[$],enumerable:!(s=rd(h,$))||s.enumerable})}return f},Cd=(f)=>Fd(p4({},"__esModule",{value:!0}),f),oz={};Td(oz,{Client:()=>Id,Command:()=>uz,LazyJsonString:()=>oh,NoOpLogger:()=>Ui,SENSITIVE_STRING:()=>Ad,ServiceException:()=>ed,_json:()=>i3,collectBody:()=>O3.collectBody,convertMap:()=>Ti,createAggregatedClient:()=>Bd,dateToUtcString:()=>$R,decorateServiceException:()=>rR,emitWarningIfUnsupportedVersion:()=>ud,expectBoolean:()=>Wd,expectByte:()=>d3,expectFloat32:()=>a4,expectInt:()=>Rd,expectInt32:()=>b3,expectLong:()=>j$,expectNonNull:()=>Xd,expectNumber:()=>y$,expectObject:()=>tz,expectShort:()=>m3,expectString:()=>Yd,expectUnion:()=>Md,extendedEncodeURIComponent:()=>O3.extendedEncodeURIComponent,getArrayIfSingleItem:()=>ri,getDefaultClientConfiguration:()=>si,getDefaultExtensionConfiguration:()=>UR,getValueFromTextNode:()=>TR,handleFloat:()=>Zd,isSerializableHeaderValue:()=>Ei,limitedParseDouble:()=>x3,limitedParseFloat:()=>Jd,limitedParseFloat32:()=>Vd,loadConfigsForDefaultMode:()=>pd,logger:()=>O$,map:()=>n3,parseBoolean:()=>Gd,parseEpochTimestamp:()=>bd,parseRfc3339DateTime:()=>qd,parseRfc3339DateTimeWithOffset:()=>yd,parseRfc7231DateTime:()=>vd,quoteHeader:()=>CR,resolveDefaultRuntimeConfig:()=>$i,resolvedPath:()=>O3.resolvedPath,serializeDateTime:()=>Bi,serializeFloat:()=>Ai,splitEvery:()=>IR,splitHeader:()=>Gi,strictParseByte:()=>sR,strictParseDouble:()=>g3,strictParseFloat:()=>Qd,strictParseFloat32:()=>fR,strictParseInt:()=>Pd,strictParseInt32:()=>Hd,strictParseLong:()=>wR,strictParseShort:()=>bw,take:()=>Fi,throwDefaultError:()=>ER,withBaseException:()=>ad});LR.exports=Cd(oz);var pz=ez(),Id=class{constructor(f){this.config=f,this.middlewareStack=pz.constructStack()}static{b(this,"Client")}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let U=this.handlers;if(U.has(f.constructor))E=U.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),U.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((U)=>$(null,U.output),(U)=>$(U)).catch(()=>{});else return E(f).then((U)=>U.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},O3=yw(),v3=T1(),uz=class{constructor(){this.middlewareStack=pz.constructStack()}static{b(this,"Command")}static classBuilder(){return new Ld}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:U,smithyContext:T,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,G={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:U,[v3.SMITHY_CONTEXT_KEY]:{commandInstance:this,...T},...F},{requestHandler:S}=h;return I.resolve((Q)=>S.handle(Q.request,w||{}),G)}},Ld=class{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}static{b(this,"ClassBuilder")}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends uz{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static{b(this,"CommandRef")}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}},Ad="***SensitiveInformation***",Bd=b((f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=b(async function(E,U,T){let F=new s(E);if(typeof U==="function")this.send(F,U);else if(typeof T==="function"){if(typeof U!=="object")throw new Error(`Expected http options but got ${typeof U}`);this.send(F,U||{},T)}else return this.send(F,U)},"methodImpl"),r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}},"createAggregatedClient"),Gd=b((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),Wd=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)O$.warn(o4(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")O$.warn(o4(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),y$=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))O$.warn(o4(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),zd=Math.ceil(340282346638528860000000000000000000000),a4=b((f)=>{let h=y$(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>zd)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},"expectFloat32"),j$=b((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),Rd=j$,b3=b((f)=>c3(f,32),"expectInt32"),m3=b((f)=>c3(f,16),"expectShort"),d3=b((f)=>c3(f,8),"expectByte"),c3=b((f,h)=>{let w=j$(f);if(w!==void 0&&Sd(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},"expectSizedInt"),Sd=b((f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),Xd=b((f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),tz=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},"expectObject"),Yd=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return O$.warn(o4(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),Md=b((f)=>{if(f===null||f===void 0)return;let h=tz(f),w=Object.entries(h).filter(([,s])=>s!=null).map(([s])=>s);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return h},"expectUnion"),g3=b((f)=>{if(typeof f=="string")return y$(dw(f));return y$(f)},"strictParseDouble"),Qd=g3,fR=b((f)=>{if(typeof f=="string")return a4(dw(f));return a4(f)},"strictParseFloat32"),Kd=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,dw=b((f)=>{let h=f.match(Kd);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),x3=b((f)=>{if(typeof f=="string")return hR(f);return y$(f)},"limitedParseDouble"),Zd=x3,Jd=x3,Vd=b((f)=>{if(typeof f=="string")return hR(f);return a4(f)},"limitedParseFloat32"),hR=b((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),wR=b((f)=>{if(typeof f==="string")return j$(dw(f));return j$(f)},"strictParseLong"),Pd=wR,Hd=b((f)=>{if(typeof f==="string")return b3(dw(f));return b3(f)},"strictParseInt32"),bw=b((f)=>{if(typeof f==="string")return m3(dw(f));return m3(f)},"strictParseShort"),sR=b((f)=>{if(typeof f==="string")return d3(dw(f));return d3(f)},"strictParseByte"),o4=b((f)=>{return String(new TypeError(f).stack||f).split(`
|
|
29
|
+
${Gh.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){let h=[];for(let $ of f.split("/")){if($?.length===0)continue;if($===".")continue;if($==="..")h.pop();else h.push($)}let w=`${f?.startsWith("/")?"/":""}${h.join("/")}${h.length>0&&f?.endsWith("/")?"/":""}`;return x4.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,h,w,s){let $=await this.createStringToSign(f,h,s),r=new this.sha256(await w);return r.update(Z3.toUint8Array($)),Gh.toHex(await r.digest())}getSigningKey(f,h,w,s){return Vz(this.sha256,f,w,h,s||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")}},i4=o0((f)=>{let h=Hm(f).replace(/[\-:]/g,"");return{longDate:h,shortDate:h.slice(0,8)}},"formatDate"),Xz=o0((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var mz=H((E30,bz)=>{var{defineProperty:e4,getOwnPropertyDescriptor:qm,getOwnPropertyNames:km}=Object,ym=Object.prototype.hasOwnProperty,R1=(f,h)=>e4(f,"name",{value:h,configurable:!0}),jm=(f,h)=>{for(var w in h)e4(f,w,{get:h[w],enumerable:!0})},Om=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of km(h))if(!ym.call(f,$)&&$!==w)e4(f,$,{get:()=>h[$],enumerable:!(s=qm(h,$))||s.enumerable})}return f},lm=(f)=>Om(e4({},"__esModule",{value:!0}),f),lz={};jm(lz,{AWSSDKSigV4Signer:()=>dm,AwsSdkSigV4ASigner:()=>cm,AwsSdkSigV4Signer:()=>k3,NODE_SIGV4A_CONFIG_OPTIONS:()=>_m,resolveAWSSDKSigV4Config:()=>em,resolveAwsSdkSigV4AConfig:()=>xm,resolveAwsSdkSigV4Config:()=>vz,validateSigningProperties:()=>q3});bz.exports=lm(lz);var vm=t0(),bm=t0(),kz=R1((f)=>bm.HttpResponse.isInstance(f)?f.headers?.date??f.headers?.Date:void 0,"getDateHeader"),D3=R1((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),mm=R1((f,h)=>Math.abs(D3(h).getTime()-f)>=300000,"isClockSkewed"),yz=R1((f,h)=>{let w=Date.parse(f);if(mm(w,h))return w-Date.now();return h},"getUpdatedSystemClockOffset"),k$=R1((f,h)=>{if(!h)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return h},"throwSigningPropertyError"),q3=R1(async(f)=>{let h=k$("context",f.context),w=k$("config",f.config),s=h.endpointV2?.properties?.authSchemes?.[0],r=await k$("signer",w.signer)(s),E=f?.signingRegion,T=f?.signingRegionSet,U=f?.signingName;return{config:w,signer:r,signingRegion:E,signingRegionSet:T,signingName:U}},"validateSigningProperties"),k3=class{static{R1(this,"AwsSdkSigV4Signer")}async sign(f,h,w){if(!vm.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await q3(w),{config:$,signer:r}=s,{signingRegion:E,signingName:T}=s,U=w.context;if(U?.authSchemes?.length??0>1){let[C,I]=U.authSchemes;if(C?.name==="sigv4a"&&I?.name==="sigv4")E=I?.signingRegion??E,T=I?.signingName??T}return await r.sign(f,{signingDate:D3($.systemClockOffset),signingRegion:E,signingService:T})}errorHandler(f){return(h)=>{let w=h.ServerTime??kz(h.$response);if(w){let s=k$("config",f.config),$=s.systemClockOffset;if(s.systemClockOffset=yz(w,s.systemClockOffset),s.systemClockOffset!==$&&h.$metadata)h.$metadata.clockSkewCorrected=!0}throw h}}successHandler(f,h){let w=kz(f);if(w){let s=k$("config",h.config);s.systemClockOffset=yz(w,s.systemClockOffset)}}},dm=k3,im=t0(),cm=class extends k3{static{R1(this,"AwsSdkSigV4ASigner")}async sign(f,h,w){if(!im.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:$,signingRegion:r,signingRegionSet:E,signingName:T}=await q3(w),F=(await s.sigv4aSigningRegionSet?.()??E??[r]).join(",");return await $.sign(f,{signingDate:D3(s.systemClockOffset),signingRegion:F,signingService:T})}},gm=m0(),jz=q$(),xm=R1((f)=>{return f.sigv4aSigningRegionSet=gm.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),_m={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((h)=>h.trim());throw new jz.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((h)=>h.trim());throw new jz.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},nm=C1(),eh=m0(),Oz=qz(),vz=R1((f)=>{let h=!1,w;if(f.credentials)h=!0,w=eh.memoizeIdentityProvider(f.credentials,eh.isIdentityExpired,eh.doesIdentityRequireRefresh);if(!w)if(f.credentialDefaultProvider)w=eh.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else w=R1(async()=>{throw new Error("`credentials` is missing")},"credentialsProvider");let s=R1(async()=>w({callerClientConfig:f}),"boundCredentialsProvider"),{signingEscapePath:$=!0,systemClockOffset:r=f.systemClockOffset||0,sha256:E}=f,T;if(f.signer)T=eh.normalizeProvider(f.signer);else if(f.regionInfoProvider)T=R1(()=>eh.normalizeProvider(f.region)().then(async(U)=>[await f.regionInfoProvider(U,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},U]).then(([U,F])=>{let{signingRegion:C,signingService:I}=U;f.signingRegion=f.signingRegion||C||F,f.signingName=f.signingName||I||f.serviceId;let L={...f,credentials:s,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||Oz.SignatureV4)(L)}),"signer");else T=R1(async(U)=>{U=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await eh.normalizeProvider(f.region)(),properties:{}},U);let{signingRegion:F,signingName:C}=U;f.signingRegion=f.signingRegion||F,f.signingName=f.signingName||C||f.serviceId;let I={...f,credentials:s,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||Oz.SignatureV4)(I)},"signer");return{...f,systemClockOffset:r,signingEscapePath:$,credentials:h?async()=>s().then((U)=>nm.setCredentialFeature(U,"CREDENTIALS_CODE","e")):s,signer:T}},"resolveAwsSdkSigV4Config"),em=vz});var xz=H((F30,gz)=>{var{defineProperty:a4,getOwnPropertyDescriptor:am,getOwnPropertyNames:om}=Object,pm=Object.prototype.hasOwnProperty,q1=(f,h)=>a4(f,"name",{value:h,configurable:!0}),um=(f,h)=>{for(var w in h)a4(f,w,{get:h[w],enumerable:!0})},tm=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of om(h))if(!pm.call(f,$)&&$!==w)a4(f,$,{get:()=>h[$],enumerable:!(s=am(h,$))||s.enumerable})}return f},fd=(f)=>tm(a4({},"__esModule",{value:!0}),f),cz={};um(cz,{constructStack:()=>y3});gz.exports=fd(cz);var ah=q1((f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},"getAllAliases"),Wh=q1((f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},"getMiddlewareNameWithAliases"),y3=q1(()=>{let f=[],h=[],w=!1,s=new Set,$=q1((I)=>I.sort((L,G)=>dz[G.step]-dz[L.step]||iz[G.priority||"normal"]-iz[L.priority||"normal"]),"sort"),r=q1((I)=>{let L=!1,G=q1((X)=>{let Q=ah(X.name,X.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},"removeByName"),E=q1((I)=>{let L=!1,G=q1((X)=>{if(X.middleware===I){L=!0;for(let Q of ah(X.name,X.aliases))s.delete(Q);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},"removeByReference"),T=q1((I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},"cloneTo"),U=q1((I)=>{let L=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...U(G))}),L.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...U(G))}),L},"expandRelativeMiddlewareList"),F=q1((I=!1)=>{let L=[],G=[],X={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of ah(q.name,q.aliases))X[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of ah(q.name,q.aliases))X[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=X[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Wh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(U).reduce((M,q)=>{return M.push(...q),M},[])},"getMiddlewareList"),C={add:(I,L={})=>{let{name:G,override:X,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=ah(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Wh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Wh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Wh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:G,override:X,aliases:Q}=L,M={middleware:I,...L},q=ah(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Wh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Wh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Wh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(y3()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,G=q1((X)=>{let{tags:Q,name:M,aliases:q}=X;if(Q&&Q.includes(I)){let N=ah(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),L},concat:(I)=>{let L=T(y3());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Wh(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let G of F().map((X)=>X.middleware).reverse())I=G(I,L);if(w)console.log(C.identify());return I}};return C},"constructStack"),dz={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},iz={high:3,normal:2,low:1}});var J0=H((C30,FR)=>{var{defineProperty:u4,getOwnPropertyDescriptor:hd,getOwnPropertyNames:wd}=Object,sd=Object.prototype.hasOwnProperty,b=(f,h)=>u4(f,"name",{value:h,configurable:!0}),$d=(f,h)=>{for(var w in h)u4(f,w,{get:h[w],enumerable:!0})},rd=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of wd(h))if(!sd.call(f,$)&&$!==w)u4(f,$,{get:()=>h[$],enumerable:!(s=hd(h,$))||s.enumerable})}return f},Ed=(f)=>rd(u4({},"__esModule",{value:!0}),f),nz={};$d(nz,{Client:()=>Td,Command:()=>az,LazyJsonString:()=>oh,NoOpLogger:()=>si,SENSITIVE_STRING:()=>Fd,ServiceException:()=>gd,_json:()=>d3,collectBody:()=>j3.collectBody,convertMap:()=>$i,createAggregatedClient:()=>Cd,dateToUtcString:()=>hR,decorateServiceException:()=>wR,emitWarningIfUnsupportedVersion:()=>ed,expectBoolean:()=>Ld,expectByte:()=>m3,expectFloat32:()=>o4,expectInt:()=>Ad,expectInt32:()=>v3,expectLong:()=>O$,expectNonNull:()=>Wd,expectNumber:()=>j$,expectObject:()=>oz,expectShort:()=>b3,expectString:()=>zd,expectUnion:()=>Rd,extendedEncodeURIComponent:()=>j3.extendedEncodeURIComponent,getArrayIfSingleItem:()=>hi,getDefaultClientConfiguration:()=>td,getDefaultExtensionConfiguration:()=>$R,getValueFromTextNode:()=>rR,handleFloat:()=>Yd,isSerializableHeaderValue:()=>wi,limitedParseDouble:()=>g3,limitedParseFloat:()=>Md,limitedParseFloat32:()=>Qd,loadConfigsForDefaultMode:()=>nd,logger:()=>l$,map:()=>_3,parseBoolean:()=>Id,parseEpochTimestamp:()=>jd,parseRfc3339DateTime:()=>Pd,parseRfc3339DateTimeWithOffset:()=>Nd,parseRfc7231DateTime:()=>yd,quoteHeader:()=>TR,resolveDefaultRuntimeConfig:()=>fi,resolvedPath:()=>j3.resolvedPath,serializeDateTime:()=>Ci,serializeFloat:()=>Fi,splitEvery:()=>UR,splitHeader:()=>Ii,strictParseByte:()=>fR,strictParseDouble:()=>c3,strictParseFloat:()=>Xd,strictParseFloat32:()=>pz,strictParseInt:()=>Kd,strictParseInt32:()=>Zd,strictParseLong:()=>tz,strictParseShort:()=>bw,take:()=>ri,throwDefaultError:()=>sR,withBaseException:()=>xd});FR.exports=Ed(nz);var ez=xz(),Td=class{constructor(f){this.config=f,this.middlewareStack=ez.constructStack()}static{b(this,"Client")}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},j3=yw(),l3=U1(),az=class{constructor(){this.middlewareStack=ez.constructStack()}static{b(this,"Command")}static classBuilder(){return new Ud}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,G={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[l3.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...F},{requestHandler:X}=h;return I.resolve((Q)=>X.handle(Q.request,w||{}),G)}},Ud=class{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}static{b(this,"ClassBuilder")}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends az{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static{b(this,"CommandRef")}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}},Fd="***SensitiveInformation***",Cd=b((f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=b(async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},"methodImpl"),r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}},"createAggregatedClient"),Id=b((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),Ld=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)l$.warn(p4(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")l$.warn(p4(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),j$=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))l$.warn(p4(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),Bd=Math.ceil(340282346638528860000000000000000000000),o4=b((f)=>{let h=j$(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>Bd)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},"expectFloat32"),O$=b((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),Ad=O$,v3=b((f)=>i3(f,32),"expectInt32"),b3=b((f)=>i3(f,16),"expectShort"),m3=b((f)=>i3(f,8),"expectByte"),i3=b((f,h)=>{let w=O$(f);if(w!==void 0&&Gd(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},"expectSizedInt"),Gd=b((f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),Wd=b((f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),oz=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},"expectObject"),zd=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return l$.warn(p4(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),Rd=b((f)=>{if(f===null||f===void 0)return;let h=oz(f),w=Object.entries(h).filter(([,s])=>s!=null).map(([s])=>s);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return h},"expectUnion"),c3=b((f)=>{if(typeof f=="string")return j$(dw(f));return j$(f)},"strictParseDouble"),Xd=c3,pz=b((f)=>{if(typeof f=="string")return o4(dw(f));return o4(f)},"strictParseFloat32"),Sd=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,dw=b((f)=>{let h=f.match(Sd);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),g3=b((f)=>{if(typeof f=="string")return uz(f);return j$(f)},"limitedParseDouble"),Yd=g3,Md=g3,Qd=b((f)=>{if(typeof f=="string")return uz(f);return o4(f)},"limitedParseFloat32"),uz=b((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),tz=b((f)=>{if(typeof f==="string")return O$(dw(f));return O$(f)},"strictParseLong"),Kd=tz,Zd=b((f)=>{if(typeof f==="string")return v3(dw(f));return v3(f)},"strictParseInt32"),bw=b((f)=>{if(typeof f==="string")return b3(dw(f));return b3(f)},"strictParseShort"),fR=b((f)=>{if(typeof f==="string")return m3(dw(f));return m3(f)},"strictParseByte"),p4=b((f)=>{return String(new TypeError(f).stack||f).split(`
|
|
30
30
|
`).slice(0,5).filter((h)=>!h.includes("stackTraceWarning")).join(`
|
|
31
|
-
`)},"stackTraceWarning"),O$={warn:console.warn},Nd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $R(f){let h=f.getUTCFullYear(),w=f.getUTCMonth(),s=f.getUTCDay(),$=f.getUTCDate(),r=f.getUTCHours(),E=f.getUTCMinutes(),U=f.getUTCSeconds(),T=$<10?`0${$}`:`${$}`,F=r<10?`0${r}`:`${r}`,C=E<10?`0${E}`:`${E}`,I=U<10?`0${U}`:`${U}`;return`${Nd[s]}, ${T} ${_3[w]} ${h} ${F}:${C}:${I} GMT`}b($R,"dateToUtcString");var Dd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),qd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=Dd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,U,T,F]=h,C=bw(mw(s)),I=Yf($,"month",1,12),L=Yf(r,"day",1,31);return k$(C,I,L,{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F})},"parseRfc3339DateTime"),kd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),yd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=kd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,U,T,F,C]=h,I=bw(mw(s)),L=Yf($,"month",1,12),G=Yf(r,"day",1,31),S=k$(I,L,G,{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")S.setTime(S.getTime()-nd(C));return S},"parseRfc3339DateTimeWithOffset"),jd=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$/),Od=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$/),ld=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})$/),vd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let h=jd.exec(f);if(h){let[w,s,$,r,E,U,T,F]=h;return k$(bw(mw(r)),l3($),Yf(s,"day",1,31),{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F})}if(h=Od.exec(f),h){let[w,s,$,r,E,U,T,F]=h;return id(k$(md(r),l3($),Yf(s,"day",1,31),{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F}))}if(h=ld.exec(f),h){let[w,s,$,r,E,U,T,F]=h;return k$(bw(mw(F)),l3(s),Yf($.trimLeft(),"day",1,31),{hours:r,minutes:E,seconds:U,fractionalMilliseconds:T})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),bd=b((f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=g3(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},"parseEpochTimestamp"),k$=b((f,h,w,s)=>{let $=h-1;return gd(f,$,w),new Date(Date.UTC(f,$,w,Yf(s.hours,"hour",0,23),Yf(s.minutes,"minute",0,59),Yf(s.seconds,"seconds",0,60),_d(s.fractionalMilliseconds)))},"buildDate"),md=b((f)=>{let h=new Date().getUTCFullYear(),w=Math.floor(h/100)*100+bw(mw(f));if(w<h)return w+100;return w},"parseTwoDigitYear"),dd=1576800000000,id=b((f)=>{if(f.getTime()-new Date().getTime()>dd)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),l3=b((f)=>{let h=_3.indexOf(f);if(h<0)throw new TypeError(`Invalid month: ${f}`);return h+1},"parseMonthByShortName"),cd=[31,28,31,30,31,30,31,31,30,31,30,31],gd=b((f,h,w)=>{let s=cd[h];if(h===1&&xd(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${_3[h]} in ${f}: ${w}`)},"validateDayOfMonth"),xd=b((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),Yf=b((f,h,w,s)=>{let $=sR(mw(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},"parseDateValue"),_d=b((f)=>{if(f===null||f===void 0)return 0;return fR("0."+f)*1000},"parseMilliseconds"),nd=b((f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},"parseOffsetToMilliseconds"),mw=b((f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)},"stripLeadingZeroes"),ed=class f extends Error{static{b(this,"ServiceException")}constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let w=h;return f.prototype.isPrototypeOf(w)||Boolean(w.$fault)&&Boolean(w.$metadata)&&(w.$fault==="client"||w.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let w=h;if(this===f)return f.isInstance(h);if(f.isInstance(h)){if(w.name&&this.name)return this.prototype.isPrototypeOf(h)||w.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}},rR=b((f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f},"decorateServiceException"),ER=b(({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=od(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw rR(E,h)},"throwDefaultError"),ad=b((f)=>{return({output:h,parsedBody:w,errorCode:s})=>{ER({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},"withBaseException"),od=b((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),pd=b((f)=>{switch(f){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"),az=!1,ud=b((f)=>{if(f&&!az&&parseInt(f.substring(1,f.indexOf(".")))<16)az=!0},"emitWarningIfUnsupportedVersion"),td=b((f)=>{let h=[];for(let w in v3.AlgorithmId){let s=v3.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{_checksumAlgorithms:h,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),fi=b((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),hi=b((f)=>{let h=f.retryStrategy;return{setRetryStrategy(w){h=w},retryStrategy(){return h}}},"getRetryConfiguration"),wi=b((f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h},"resolveRetryRuntimeConfig"),UR=b((f)=>{return{...td(f),...hi(f)}},"getDefaultExtensionConfiguration"),si=UR,$i=b((f)=>{return{...fi(f),...wi(f)}},"resolveDefaultRuntimeConfig"),ri=b((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),TR=b((f)=>{for(let w in f)if(f.hasOwnProperty(w)&&f[w]["#text"]!==void 0)f[w]=f[w]["#text"];else if(typeof f[w]==="object"&&f[w]!==null)f[w]=TR(f[w]);return f},"getValueFromTextNode"),Ei=b((f)=>{return f!=null},"isSerializableHeaderValue"),oh=b(function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})},"LazyJsonString");oh.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof oh||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return oh(String(f));return oh(JSON.stringify(f))};oh.fromObject=oh.from;var Ui=class{static{b(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function n3(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,Ci(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}FR(s,null,r,E)}return s}b(n3,"map");var Ti=b((f)=>{let h={};for(let[w,s]of Object.entries(f||{}))h[w]=[,s];return h},"convertMap"),Fi=b((f,h)=>{let w={};for(let s in h)FR(w,f,h,s);return w},"take"),Ci=b((f,h,w)=>{return n3(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},"mapWithFilter"),FR=b((f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[U=Ii,T=Li,F=s]=E;if(typeof U==="function"&&U(h[F])||typeof U!=="function"&&!!U)f[s]=T(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,U=$===void 0&&(E=r())!=null,T=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(U)f[s]=E;else if(T)f[s]=r()}else{let E=$===void 0&&r!=null,U=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||U)f[s]=r}},"applyInstruction"),Ii=b((f)=>f!=null,"nonNullish"),Li=b((f)=>f,"pass");function CR(f){if(f.includes(",")||f.includes('"'))f=`"${f.replace(/"/g,"\\\"")}"`;return f}b(CR,"quoteHeader");var Ai=b((f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}},"serializeFloat"),Bi=b((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),i3=b((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(i3);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=i3(f[w])}return h}return f},"_json");function IR(f,h,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");let s=f.split(h);if(w===1)return s;let $=[],r="";for(let E=0;E<s.length;E++){if(r==="")r=s[E];else r+=h+s[E];if((E+1)%w===0)$.push(r),r=""}if(r!=="")$.push(r);return $}b(IR,"splitEvery");var Gi=b((f)=>{let h=f.length,w=[],s=!1,$=void 0,r=0;for(let E=0;E<h;++E){let U=f[E];switch(U){case'"':if($!=="\\")s=!s;break;case",":if(!s)w.push(f.slice(r,E)),r=E+1;break;default:}$=U}return w.push(f.slice(r)),w.map((E)=>{E=E.trim();let U=E.length;if(U<2)return E;if(E[0]==='"'&&E[U-1]==='"')E=E.slice(1,U-1);return E.replace(/\\"/g,'"')})},"splitHeader")});var u4=H((Xi)=>{var Wi=":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",AR="[: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]["+Wi+"]*",zi=new RegExp("^"+AR+"$"),Ri=function(f,h){let w=[],s=h.exec(f);while(s){let $=[];$.startIndex=h.lastIndex-s[0].length;let r=s.length;for(let E=0;E<r;E++)$.push(s[E]);w.push($),s=h.exec(f)}return w},Si=function(f){let h=zi.exec(f);return!(h===null||typeof h==="undefined")};Xi.isExist=function(f){return typeof f!=="undefined"};Xi.isEmptyObject=function(f){return Object.keys(f).length===0};Xi.merge=function(f,h,w){if(h){let s=Object.keys(h),$=s.length;for(let r=0;r<$;r++)if(w==="strict")f[s[r]]=[h[s[r]]];else f[s[r]]=h[s[r]]}};Xi.getValue=function(f){if(Xi.isExist(f))return f;else return""};Xi.isName=Si;Xi.getAllMatches=Ri;Xi.nameRegexp=AR});var a3=H((Oi)=>{var e3=u4(),Vi={allowBooleanAttributes:!1,unpairedTags:[]};Oi.validate=function(f,h){h=Object.assign({},Vi,h);let w=[],s=!1,$=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let r=0;r<f.length;r++)if(f[r]==="<"&&f[r+1]==="?"){if(r+=2,r=WR(f,r),r.err)return r}else if(f[r]==="<"){let E=r;if(r++,f[r]==="!"){r=zR(f,r);continue}else{let U=!1;if(f[r]==="/")U=!0,r++;let T="";for(;r<f.length&&f[r]!==">"&&f[r]!==" "&&f[r]!=="\t"&&f[r]!==`
|
|
32
|
-
`&&f[r]!=="\r";r++)
|
|
33
|
-
`||f==="\r"}function
|
|
34
|
-
`);let h=new
|
|
35
|
-
`;return
|
|
31
|
+
`)},"stackTraceWarning"),l$={warn:console.warn},Jd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hR(f){let h=f.getUTCFullYear(),w=f.getUTCMonth(),s=f.getUTCDay(),$=f.getUTCDate(),r=f.getUTCHours(),E=f.getUTCMinutes(),T=f.getUTCSeconds(),U=$<10?`0${$}`:`${$}`,F=r<10?`0${r}`:`${r}`,C=E<10?`0${E}`:`${E}`,I=T<10?`0${T}`:`${T}`;return`${Jd[s]}, ${U} ${x3[w]} ${h} ${F}:${C}:${I} GMT`}b(hR,"dateToUtcString");var Vd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Pd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=Vd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=bw(mw(s)),I=Yf($,"month",1,12),L=Yf(r,"day",1,31);return y$(C,I,L,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},"parseRfc3339DateTime"),Hd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Nd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=Hd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=bw(mw(s)),L=Yf($,"month",1,12),G=Yf(r,"day",1,31),X=y$(I,L,G,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")X.setTime(X.getTime()-cd(C));return X},"parseRfc3339DateTimeWithOffset"),Dd=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$/),qd=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$/),kd=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})$/),yd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let h=Dd.exec(f);if(h){let[w,s,$,r,E,T,U,F]=h;return y$(bw(mw(r)),O3($),Yf(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})}if(h=qd.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return vd(y$(Od(r),O3($),Yf(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F}))}if(h=kd.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return y$(bw(mw(F)),O3(s),Yf($.trimLeft(),"day",1,31),{hours:r,minutes:E,seconds:T,fractionalMilliseconds:U})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),jd=b((f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=c3(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},"parseEpochTimestamp"),y$=b((f,h,w,s)=>{let $=h-1;return md(f,$,w),new Date(Date.UTC(f,$,w,Yf(s.hours,"hour",0,23),Yf(s.minutes,"minute",0,59),Yf(s.seconds,"seconds",0,60),id(s.fractionalMilliseconds)))},"buildDate"),Od=b((f)=>{let h=new Date().getUTCFullYear(),w=Math.floor(h/100)*100+bw(mw(f));if(w<h)return w+100;return w},"parseTwoDigitYear"),ld=1576800000000,vd=b((f)=>{if(f.getTime()-new Date().getTime()>ld)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),O3=b((f)=>{let h=x3.indexOf(f);if(h<0)throw new TypeError(`Invalid month: ${f}`);return h+1},"parseMonthByShortName"),bd=[31,28,31,30,31,30,31,31,30,31,30,31],md=b((f,h,w)=>{let s=bd[h];if(h===1&&dd(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${x3[h]} in ${f}: ${w}`)},"validateDayOfMonth"),dd=b((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),Yf=b((f,h,w,s)=>{let $=fR(mw(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},"parseDateValue"),id=b((f)=>{if(f===null||f===void 0)return 0;return pz("0."+f)*1000},"parseMilliseconds"),cd=b((f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},"parseOffsetToMilliseconds"),mw=b((f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)},"stripLeadingZeroes"),gd=class f extends Error{static{b(this,"ServiceException")}constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let w=h;return f.prototype.isPrototypeOf(w)||Boolean(w.$fault)&&Boolean(w.$metadata)&&(w.$fault==="client"||w.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let w=h;if(this===f)return f.isInstance(h);if(f.isInstance(h)){if(w.name&&this.name)return this.prototype.isPrototypeOf(h)||w.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}},wR=b((f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f},"decorateServiceException"),sR=b(({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=_d(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw wR(E,h)},"throwDefaultError"),xd=b((f)=>{return({output:h,parsedBody:w,errorCode:s})=>{sR({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},"withBaseException"),_d=b((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),nd=b((f)=>{switch(f){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"),_z=!1,ed=b((f)=>{if(f&&!_z&&parseInt(f.substring(1,f.indexOf(".")))<16)_z=!0},"emitWarningIfUnsupportedVersion"),ad=b((f)=>{let h=[];for(let w in l3.AlgorithmId){let s=l3.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{_checksumAlgorithms:h,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),od=b((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),pd=b((f)=>{let h=f.retryStrategy;return{setRetryStrategy(w){h=w},retryStrategy(){return h}}},"getRetryConfiguration"),ud=b((f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h},"resolveRetryRuntimeConfig"),$R=b((f)=>{return{...ad(f),...pd(f)}},"getDefaultExtensionConfiguration"),td=$R,fi=b((f)=>{return{...od(f),...ud(f)}},"resolveDefaultRuntimeConfig"),hi=b((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),rR=b((f)=>{for(let w in f)if(f.hasOwnProperty(w)&&f[w]["#text"]!==void 0)f[w]=f[w]["#text"];else if(typeof f[w]==="object"&&f[w]!==null)f[w]=rR(f[w]);return f},"getValueFromTextNode"),wi=b((f)=>{return f!=null},"isSerializableHeaderValue"),oh=b(function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})},"LazyJsonString");oh.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof oh||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return oh(String(f));return oh(JSON.stringify(f))};oh.fromObject=oh.from;var si=class{static{b(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function _3(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,Ei(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}ER(s,null,r,E)}return s}b(_3,"map");var $i=b((f)=>{let h={};for(let[w,s]of Object.entries(f||{}))h[w]=[,s];return h},"convertMap"),ri=b((f,h)=>{let w={};for(let s in h)ER(w,f,h,s);return w},"take"),Ei=b((f,h,w)=>{return _3(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},"mapWithFilter"),ER=b((f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=Ti,U=Ui,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},"applyInstruction"),Ti=b((f)=>f!=null,"nonNullish"),Ui=b((f)=>f,"pass");function TR(f){if(f.includes(",")||f.includes('"'))f=`"${f.replace(/"/g,"\\\"")}"`;return f}b(TR,"quoteHeader");var Fi=b((f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}},"serializeFloat"),Ci=b((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),d3=b((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(d3);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=d3(f[w])}return h}return f},"_json");function UR(f,h,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");let s=f.split(h);if(w===1)return s;let $=[],r="";for(let E=0;E<s.length;E++){if(r==="")r=s[E];else r+=h+s[E];if((E+1)%w===0)$.push(r),r=""}if(r!=="")$.push(r);return $}b(UR,"splitEvery");var Ii=b((f)=>{let h=f.length,w=[],s=!1,$=void 0,r=0;for(let E=0;E<h;++E){let T=f[E];switch(T){case'"':if($!=="\\")s=!s;break;case",":if(!s)w.push(f.slice(r,E)),r=E+1;break;default:}$=T}return w.push(f.slice(r)),w.map((E)=>{E=E.trim();let T=E.length;if(T<2)return E;if(E[0]==='"'&&E[T-1]==='"')E=E.slice(1,T-1);return E.replace(/\\"/g,'"')})},"splitHeader")});var t4=H((Wi)=>{var Li=":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",CR="[: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]["+Li+"]*",Bi=new RegExp("^"+CR+"$"),Ai=function(f,h){let w=[],s=h.exec(f);while(s){let $=[];$.startIndex=h.lastIndex-s[0].length;let r=s.length;for(let E=0;E<r;E++)$.push(s[E]);w.push($),s=h.exec(f)}return w},Gi=function(f){let h=Bi.exec(f);return!(h===null||typeof h==="undefined")};Wi.isExist=function(f){return typeof f!=="undefined"};Wi.isEmptyObject=function(f){return Object.keys(f).length===0};Wi.merge=function(f,h,w){if(h){let s=Object.keys(h),$=s.length;for(let r=0;r<$;r++)if(w==="strict")f[s[r]]=[h[s[r]]];else f[s[r]]=h[s[r]]}};Wi.getValue=function(f){if(Wi.isExist(f))return f;else return""};Wi.isName=Gi;Wi.getAllMatches=Ai;Wi.nameRegexp=CR});var e3=H((qi)=>{var n3=t4(),Qi={allowBooleanAttributes:!1,unpairedTags:[]};qi.validate=function(f,h){h=Object.assign({},Qi,h);let w=[],s=!1,$=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let r=0;r<f.length;r++)if(f[r]==="<"&&f[r+1]==="?"){if(r+=2,r=BR(f,r),r.err)return r}else if(f[r]==="<"){let E=r;if(r++,f[r]==="!"){r=AR(f,r);continue}else{let T=!1;if(f[r]==="/")T=!0,r++;let U="";for(;r<f.length&&f[r]!==">"&&f[r]!==" "&&f[r]!=="\t"&&f[r]!==`
|
|
32
|
+
`&&f[r]!=="\r";r++)U+=f[r];if(U=U.trim(),U[U.length-1]==="/")U=U.substring(0,U.length-1),r--;if(!Di(U)){let I;if(U.trim().length===0)I="Invalid space after '<'.";else I="Tag '"+U+"' is an invalid name.";return d0("InvalidTag",I,I1(f,r))}let F=Ji(f,r);if(F===!1)return d0("InvalidAttr","Attributes for '"+U+"' have open quote.",I1(f,r));let C=F.value;if(r=F.index,C[C.length-1]==="/"){let I=r-C.length;C=C.substring(0,C.length-1);let L=GR(C,h);if(L===!0)s=!0;else return d0(L.err.code,L.err.msg,I1(f,I+L.err.line))}else if(T)if(!F.tagClosed)return d0("InvalidTag","Closing tag '"+U+"' doesn't have proper closing.",I1(f,r));else if(C.trim().length>0)return d0("InvalidTag","Closing tag '"+U+"' can't have attributes or invalid starting.",I1(f,E));else if(w.length===0)return d0("InvalidTag","Closing tag '"+U+"' has not been opened.",I1(f,E));else{let I=w.pop();if(U!==I.tagName){let L=I1(f,I.tagStartPos);return d0("InvalidTag","Expected closing tag '"+I.tagName+"' (opened in line "+L.line+", col "+L.col+") instead of closing tag '"+U+"'.",I1(f,E))}if(w.length==0)$=!0}else{let I=GR(C,h);if(I!==!0)return d0(I.err.code,I.err.msg,I1(f,r-C.length+I.err.line));if($===!0)return d0("InvalidXml","Multiple possible root nodes found.",I1(f,r));else if(h.unpairedTags.indexOf(U)!==-1);else w.push({tagName:U,tagStartPos:E});s=!0}for(r++;r<f.length;r++)if(f[r]==="<")if(f[r+1]==="!"){r++,r=AR(f,r);continue}else if(f[r+1]==="?"){if(r=BR(f,++r),r.err)return r}else break;else if(f[r]==="&"){let I=Hi(f,r);if(I==-1)return d0("InvalidChar","char '&' is not expected.",I1(f,r));r=I}else if($===!0&&!LR(f[r]))return d0("InvalidXml","Extra text at the end",I1(f,r));if(f[r]==="<")r--}}else{if(LR(f[r]))continue;return d0("InvalidChar","char '"+f[r]+"' is not expected.",I1(f,r))}if(!s)return d0("InvalidXml","Start tag expected.",1);else if(w.length==1)return d0("InvalidTag","Unclosed tag '"+w[0].tagName+"'.",I1(f,w[0].tagStartPos));else if(w.length>0)return d0("InvalidXml","Invalid '"+JSON.stringify(w.map((r)=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};function LR(f){return f===" "||f==="\t"||f===`
|
|
33
|
+
`||f==="\r"}function BR(f,h){let w=h;for(;h<f.length;h++)if(f[h]=="?"||f[h]==" "){let s=f.substr(w,h-w);if(h>5&&s==="xml")return d0("InvalidXml","XML declaration allowed only at the start of the document.",I1(f,h));else if(f[h]=="?"&&f[h+1]==">"){h++;break}else continue}return h}function AR(f,h){if(f.length>h+5&&f[h+1]==="-"&&f[h+2]==="-"){for(h+=3;h<f.length;h++)if(f[h]==="-"&&f[h+1]==="-"&&f[h+2]===">"){h+=2;break}}else if(f.length>h+8&&f[h+1]==="D"&&f[h+2]==="O"&&f[h+3]==="C"&&f[h+4]==="T"&&f[h+5]==="Y"&&f[h+6]==="P"&&f[h+7]==="E"){let w=1;for(h+=8;h<f.length;h++)if(f[h]==="<")w++;else if(f[h]===">"){if(w--,w===0)break}}else if(f.length>h+9&&f[h+1]==="["&&f[h+2]==="C"&&f[h+3]==="D"&&f[h+4]==="A"&&f[h+5]==="T"&&f[h+6]==="A"&&f[h+7]==="["){for(h+=8;h<f.length;h++)if(f[h]==="]"&&f[h+1]==="]"&&f[h+2]===">"){h+=2;break}}return h}var Ki='"',Zi="'";function Ji(f,h){let w="",s="",$=!1;for(;h<f.length;h++){if(f[h]===Ki||f[h]===Zi)if(s==="")s=f[h];else if(s!==f[h]);else s="";else if(f[h]===">"){if(s===""){$=!0;break}}w+=f[h]}if(s!=="")return!1;return{value:w,index:h,tagClosed:$}}var Vi=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function GR(f,h){let w=n3.getAllMatches(f,Vi),s={};for(let $=0;$<w.length;$++){if(w[$][1].length===0)return d0("InvalidAttr","Attribute '"+w[$][2]+"' has no space in starting.",v$(w[$]));else if(w[$][3]!==void 0&&w[$][4]===void 0)return d0("InvalidAttr","Attribute '"+w[$][2]+"' is without value.",v$(w[$]));else if(w[$][3]===void 0&&!h.allowBooleanAttributes)return d0("InvalidAttr","boolean attribute '"+w[$][2]+"' is not allowed.",v$(w[$]));let r=w[$][2];if(!Ni(r))return d0("InvalidAttr","Attribute '"+r+"' is an invalid name.",v$(w[$]));if(!s.hasOwnProperty(r))s[r]=1;else return d0("InvalidAttr","Attribute '"+r+"' is repeated.",v$(w[$]))}return!0}function Pi(f,h){let w=/\d/;if(f[h]==="x")h++,w=/[\da-fA-F]/;for(;h<f.length;h++){if(f[h]===";")return h;if(!f[h].match(w))break}return-1}function Hi(f,h){if(h++,f[h]===";")return-1;if(f[h]==="#")return h++,Pi(f,h);let w=0;for(;h<f.length;h++,w++){if(f[h].match(/\w/)&&w<20)continue;if(f[h]===";")break;return-1}return h}function d0(f,h,w){return{err:{code:f,msg:h,line:w.line||w,col:w.col}}}function Ni(f){return n3.isName(f)}function Di(f){return n3.isName(f)}function I1(f,h){let w=f.substring(0,h).split(/\r?\n/);return{line:w.length,col:w[w.length-1].length+1}}function v$(f){return f.startIndex+f[1].length}});var zR=H((ji)=>{var WR={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(f,h){return h},attributeValueProcessor:function(f,h){return h},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(f,h,w){return f}},yi=function(f){return Object.assign({},WR,f)};ji.buildOptions=yi;ji.defaultOptions=WR});var SR=H((X30,XR)=>{class RR{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,h){if(f==="__proto__")f="#__proto__";this.child.push({[f]:h})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}XR.exports=RR});var MR=H((S30,YR)=>{var vi=t4();function bi(f,h){let w={};if(f[h+3]==="O"&&f[h+4]==="C"&&f[h+5]==="T"&&f[h+6]==="Y"&&f[h+7]==="P"&&f[h+8]==="E"){h=h+9;let s=1,$=!1,r=!1,E="";for(;h<f.length;h++)if(f[h]==="<"&&!r){if($&&ii(f,h)){if(h+=7,[entityName,val,h]=mi(f,h+1),val.indexOf("&")===-1)w[_i(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if($&&ci(f,h))h+=8;else if($&&gi(f,h))h+=8;else if($&&xi(f,h))h+=9;else if(di)r=!0;else throw new Error("Invalid DOCTYPE");s++,E=""}else if(f[h]===">"){if(r){if(f[h-1]==="-"&&f[h-2]==="-")r=!1,s--}else s--;if(s===0)break}else if(f[h]==="[")$=!0;else E+=f[h];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:w,i:h}}function mi(f,h){let w="";for(;h<f.length&&(f[h]!=="'"&&f[h]!=='"');h++)w+=f[h];if(w=w.trim(),w.indexOf(" ")!==-1)throw new Error("External entites are not supported");let s=f[h++],$="";for(;h<f.length&&f[h]!==s;h++)$+=f[h];return[w,$,h]}function di(f,h){if(f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-")return!0;return!1}function ii(f,h){if(f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y")return!0;return!1}function ci(f,h){if(f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T")return!0;return!1}function gi(f,h){if(f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T")return!0;return!1}function xi(f,h){if(f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N")return!0;return!1}function _i(f){if(vi.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)}YR.exports=bi});var KR=H((Y30,QR)=>{var ni=/^[-+]?0x[a-fA-F0-9]+$/,ei=/^([\-\+])?(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 ai={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function oi(f,h={}){if(h=Object.assign({},ai,h),!f||typeof f!=="string")return f;let w=f.trim();if(h.skipLike!==void 0&&h.skipLike.test(w))return f;else if(h.hex&&ni.test(w))return Number.parseInt(w,16);else{let s=ei.exec(w);if(s){let $=s[1],r=s[2],E=pi(s[3]),T=s[4]||s[6];if(!h.leadingZeros&&r.length>0&&$&&w[2]!==".")return f;else if(!h.leadingZeros&&r.length>0&&!$&&w[1]!==".")return f;else{let U=Number(w),F=""+U;if(F.search(/[eE]/)!==-1)if(h.eNotation)return U;else return f;else if(T)if(h.eNotation)return U;else return f;else if(w.indexOf(".")!==-1)if(F==="0"&&E==="")return U;else if(F===E)return U;else if($&&F==="-"+E)return U;else return f;if(r)if(E===F)return U;else if($+E===F)return U;else return f;if(w===F)return U;else if(w===$+F)return U;return f}}else return f}}function pi(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f}QR.exports=oi});var PR=H((M30,VR)=>{var ZR=t4(),b$=SR(),ui=MR(),ti=KR();class JR{constructor(f){this.options=f,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:(h,w)=>String.fromCharCode(Number.parseInt(w,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(h,w)=>String.fromCharCode(Number.parseInt(w,16))}},this.addExternalEntities=fc,this.parseXml=rc,this.parseTextData=hc,this.resolveNameSpace=wc,this.buildAttributesMap=$c,this.isItStopNode=Fc,this.replaceEntitiesValue=Tc,this.readStopNodeData=Ic,this.saveTextToParentTag=Uc,this.addChild=Ec}}function fc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];this.lastEntities[s]={regex:new RegExp("&"+s+";","g"),val:f[s]}}}function hc(f,h,w,s,$,r,E){if(f!==void 0){if(this.options.trimValues&&!s)f=f.trim();if(f.length>0){if(!E)f=this.replaceEntitiesValue(f);let T=this.options.tagValueProcessor(h,f,w,$,r);if(T===null||T===void 0)return f;else if(typeof T!==typeof f||T!==f)return T;else if(this.options.trimValues)return o3(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return o3(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}}function wc(f){if(this.options.removeNSPrefix){let h=f.split(":"),w=f.charAt(0)==="/"?"/":"";if(h[0]==="xmlns")return"";if(h.length===2)f=w+h[1]}return f}var sc=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function $c(f,h,w){if(!this.options.ignoreAttributes&&typeof f==="string"){let s=ZR.getAllMatches(f,sc),$=s.length,r={};for(let E=0;E<$;E++){let T=this.resolveNameSpace(s[E][1]),U=s[E][4],F=this.options.attributeNamePrefix+T;if(T.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(U!==void 0){if(this.options.trimValues)U=U.trim();U=this.replaceEntitiesValue(U);let C=this.options.attributeValueProcessor(T,U,h);if(C===null||C===void 0)r[F]=U;else if(typeof C!==typeof U||C!==U)r[F]=C;else r[F]=o3(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)r[F]=!0}}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){let E={};return E[this.options.attributesGroupName]=r,E}return r}}var rc=function(f){f=f.replace(/\r\n?/g,`
|
|
34
|
+
`);let h=new b$("!xml"),w=h,s="",$="";for(let r=0;r<f.length;r++)if(f[r]==="<")if(f[r+1]==="/"){let T=ph(f,">",r,"Closing Tag is not closed."),U=f.substring(r+2,T).trim();if(this.options.removeNSPrefix){let I=U.indexOf(":");if(I!==-1)U=U.substr(I+1)}if(this.options.transformTagName)U=this.options.transformTagName(U);if(w)s=this.saveTextToParentTag(s,w,$);let F=$.substring($.lastIndexOf(".")+1);if(U&&this.options.unpairedTags.indexOf(U)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);let C=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)C=$.lastIndexOf(".",$.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=$.lastIndexOf(".");$=$.substring(0,C),w=this.tagsNodeStack.pop(),s="",r=T}else if(f[r+1]==="?"){let T=a3(f,r,!1,"?>");if(!T)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,w,$),this.options.ignoreDeclaration&&T.tagName==="?xml"||this.options.ignorePiTags);else{let U=new b$(T.tagName);if(U.add(this.options.textNodeName,""),T.tagName!==T.tagExp&&T.attrExpPresent)U[":@"]=this.buildAttributesMap(T.tagExp,$,T.tagName);this.addChild(w,U,$)}r=T.closeIndex+1}else if(f.substr(r+1,3)==="!--"){let T=ph(f,"-->",r+4,"Comment is not closed.");if(this.options.commentPropName){let U=f.substring(r+4,T-2);s=this.saveTextToParentTag(s,w,$),w.add(this.options.commentPropName,[{[this.options.textNodeName]:U}])}r=T}else if(f.substr(r+1,2)==="!D"){let T=ui(f,r);this.docTypeEntities=T.entities,r=T.i}else if(f.substr(r+1,2)==="!["){let T=ph(f,"]]>",r,"CDATA is not closed.")-2,U=f.substring(r+9,T);s=this.saveTextToParentTag(s,w,$);let F=this.parseTextData(U,w.tagname,$,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)w.add(this.options.cdataPropName,[{[this.options.textNodeName]:U}]);else w.add(this.options.textNodeName,F);r=T+2}else{let T=a3(f,r,this.options.removeNSPrefix),U=T.tagName,F=T.rawTagName,C=T.tagExp,I=T.attrExpPresent,L=T.closeIndex;if(this.options.transformTagName)U=this.options.transformTagName(U);if(w&&s){if(w.tagname!=="!xml")s=this.saveTextToParentTag(s,w,$,!1)}let G=w;if(G&&this.options.unpairedTags.indexOf(G.tagname)!==-1)w=this.tagsNodeStack.pop(),$=$.substring(0,$.lastIndexOf("."));if(U!==h.tagname)$+=$?"."+U:U;if(this.isItStopNode(this.options.stopNodes,$,U)){let X="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(U[U.length-1]==="/")U=U.substr(0,U.length-1),$=$.substr(0,$.length-1),C=U;else C=C.substr(0,C.length-1);r=T.closeIndex}else if(this.options.unpairedTags.indexOf(U)!==-1)r=T.closeIndex;else{let M=this.readStopNodeData(f,F,L+1);if(!M)throw new Error(`Unexpected end of ${F}`);r=M.i,X=M.tagContent}let Q=new b$(U);if(U!==C&&I)Q[":@"]=this.buildAttributesMap(C,$,U);if(X)X=this.parseTextData(X,U,$,!0,I,!0,!0);$=$.substr(0,$.lastIndexOf(".")),Q.add(this.options.textNodeName,X),this.addChild(w,Q,$)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(U[U.length-1]==="/")U=U.substr(0,U.length-1),$=$.substr(0,$.length-1),C=U;else C=C.substr(0,C.length-1);if(this.options.transformTagName)U=this.options.transformTagName(U);let X=new b$(U);if(U!==C&&I)X[":@"]=this.buildAttributesMap(C,$,U);this.addChild(w,X,$),$=$.substr(0,$.lastIndexOf("."))}else{let X=new b$(U);if(this.tagsNodeStack.push(w),U!==C&&I)X[":@"]=this.buildAttributesMap(C,$,U);this.addChild(w,X,$),w=X}s="",r=L}}else s+=f[r];return h.child};function Ec(f,h,w){let s=this.options.updateTag(h.tagname,w,h[":@"]);if(s===!1);else if(typeof s==="string")h.tagname=s,f.addChild(h);else f.addChild(h)}var Tc=function(f){if(this.options.processEntities){for(let h in this.docTypeEntities){let w=this.docTypeEntities[h];f=f.replace(w.regx,w.val)}for(let h in this.lastEntities){let w=this.lastEntities[h];f=f.replace(w.regex,w.val)}if(this.options.htmlEntities)for(let h in this.htmlEntities){let w=this.htmlEntities[h];f=f.replace(w.regex,w.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};function Uc(f,h,w,s){if(f){if(s===void 0)s=Object.keys(h.child).length===0;if(f=this.parseTextData(f,h.tagname,w,!1,h[":@"]?Object.keys(h[":@"]).length!==0:!1,s),f!==void 0&&f!=="")h.add(this.options.textNodeName,f);f=""}return f}function Fc(f,h,w){let s="*."+w;for(let $ in f){let r=f[$];if(s===r||h===r)return!0}return!1}function Cc(f,h,w=">"){let s,$="";for(let r=h;r<f.length;r++){let E=f[r];if(s){if(E===s)s=""}else if(E==='"'||E==="'")s=E;else if(E===w[0])if(w[1]){if(f[r+1]===w[1])return{data:$,index:r}}else return{data:$,index:r};else if(E==="\t")E=" ";$+=E}}function ph(f,h,w,s){let $=f.indexOf(h,w);if($===-1)throw new Error(s);else return $+h.length-1}function a3(f,h,w,s=">"){let $=Cc(f,h+1,s);if(!$)return;let{data:r,index:E}=$,T=r.search(/\s/),U=r,F=!0;if(T!==-1)U=r.substring(0,T),r=r.substring(T+1).trimStart();let C=U;if(w){let I=U.indexOf(":");if(I!==-1)U=U.substr(I+1),F=U!==$.data.substr(I+1)}return{tagName:U,tagExp:r,closeIndex:E,attrExpPresent:F,rawTagName:C}}function Ic(f,h,w){let s=w,$=1;for(;w<f.length;w++)if(f[w]==="<")if(f[w+1]==="/"){let r=ph(f,">",w,`${h} is not closed`);if(f.substring(w+2,r).trim()===h){if($--,$===0)return{tagContent:f.substring(s,w),i:r}}w=r}else if(f[w+1]==="?")w=ph(f,"?>",w+1,"StopNode is not closed.");else if(f.substr(w+1,3)==="!--")w=ph(f,"-->",w+3,"StopNode is not closed.");else if(f.substr(w+1,2)==="![")w=ph(f,"]]>",w,"StopNode is not closed.")-2;else{let r=a3(f,w,">");if(r){if((r&&r.tagName)===h&&r.tagExp[r.tagExp.length-1]!=="/")$++;w=r.closeIndex}}}function o3(f,h,w){if(h&&typeof f==="string"){let s=f.trim();if(s==="true")return!0;else if(s==="false")return!1;else return ti(f,w)}else if(ZR.isExist(f))return f;else return""}VR.exports=JR});var NR=H((Wc)=>{function Lc(f,h){return HR(f,h)}function HR(f,h,w){let s,$={};for(let r=0;r<f.length;r++){let E=f[r],T=Bc(E),U="";if(w===void 0)U=T;else U=w+"."+T;if(T===h.textNodeName)if(s===void 0)s=E[T];else s+=""+E[T];else if(T===void 0)continue;else if(E[T]){let F=HR(E[T],h,U),C=Gc(F,h);if(E[":@"])Ac(F,E[":@"],U,h);else if(Object.keys(F).length===1&&F[h.textNodeName]!==void 0&&!h.alwaysCreateTextNode)F=F[h.textNodeName];else if(Object.keys(F).length===0)if(h.alwaysCreateTextNode)F[h.textNodeName]="";else F="";if($[T]!==void 0&&$.hasOwnProperty(T)){if(!Array.isArray($[T]))$[T]=[$[T]];$[T].push(F)}else if(h.isArray(T,U,C))$[T]=[F];else $[T]=F}}if(typeof s==="string"){if(s.length>0)$[h.textNodeName]=s}else if(s!==void 0)$[h.textNodeName]=s;return $}function Bc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];if(s!==":@")return s}}function Ac(f,h,w,s){if(h){let $=Object.keys(h),r=$.length;for(let E=0;E<r;E++){let T=$[E];if(s.isArray(T,w+"."+T,!0,!0))f[T]=[h[T]];else f[T]=h[T]}}}function Gc(f,h){let{textNodeName:w}=h,s=Object.keys(f).length;if(s===0)return!0;if(s===1&&(f[w]||typeof f[w]==="boolean"||f[w]===0))return!0;return!1}Wc.prettify=Lc});var kR=H((K30,qR)=>{var{buildOptions:Rc}=zR(),Xc=PR(),{prettify:Sc}=NR(),Yc=e3();class DR{constructor(f){this.externalEntities={},this.options=Rc(f)}parse(f,h){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(h){if(h===!0)h={};let $=Yc.validate(f,h);if($!==!0)throw Error(`${$.err.msg}:${$.err.line}:${$.err.col}`)}let w=new Xc(this.options);w.addExternalEntities(this.externalEntities);let s=w.parseXml(f);if(this.options.preserveOrder||s===void 0)return s;else return Sc(s,this.options)}addEntity(f,h){if(h.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(h==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[f]=h}}qR.exports=DR});var vR=H((Z30,lR)=>{function Mc(f,h){let w="";if(h.format&&h.indentBy.length>0)w=`
|
|
35
|
+
`;return jR(f,h,"",w)}function jR(f,h,w,s){let $="",r=!1;for(let E=0;E<f.length;E++){let T=f[E],U=Qc(T);if(U===void 0)continue;let F="";if(w.length===0)F=U;else F=`${w}.${U}`;if(U===h.textNodeName){let X=T[U];if(!Kc(F,h))X=h.tagValueProcessor(U,X),X=OR(X,h);if(r)$+=s;$+=X,r=!1;continue}else if(U===h.cdataPropName){if(r)$+=s;$+=`<![CDATA[${T[U][0][h.textNodeName]}]]>`,r=!1;continue}else if(U===h.commentPropName){$+=s+`<!--${T[U][0][h.textNodeName]}-->`,r=!0;continue}else if(U[0]==="?"){let X=yR(T[":@"],h),Q=U==="?xml"?"":s,M=T[U][0][h.textNodeName];M=M.length!==0?" "+M:"",$+=Q+`<${U}${M}${X}?>`,r=!0;continue}let C=s;if(C!=="")C+=h.indentBy;let I=yR(T[":@"],h),L=s+`<${U}${I}`,G=jR(T[U],h,F,C);if(h.unpairedTags.indexOf(U)!==-1)if(h.suppressUnpairedNode)$+=L+">";else $+=L+"/>";else if((!G||G.length===0)&&h.suppressEmptyNode)$+=L+"/>";else if(G&&G.endsWith(">"))$+=L+`>${G}${s}</${U}>`;else{if($+=L+">",G&&s!==""&&(G.includes("/>")||G.includes("</")))$+=s+h.indentBy+G+s;else $+=G;$+=`</${U}>`}r=!0}return $}function Qc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];if(!f.hasOwnProperty(s))continue;if(s!==":@")return s}}function yR(f,h){let w="";if(f&&!h.ignoreAttributes)for(let s in f){if(!f.hasOwnProperty(s))continue;let $=h.attributeValueProcessor(s,f[s]);if($=OR($,h),$===!0&&h.suppressBooleanAttributes)w+=` ${s.substr(h.attributeNamePrefix.length)}`;else w+=` ${s.substr(h.attributeNamePrefix.length)}="${$}"`}return w}function Kc(f,h){f=f.substr(0,f.length-h.textNodeName.length-1);let w=f.substr(f.lastIndexOf(".")+1);for(let s in h.stopNodes)if(h.stopNodes[s]===f||h.stopNodes[s]==="*."+w)return!0;return!1}function OR(f,h){if(f&&f.length>0&&h.processEntities)for(let w=0;w<h.entities.length;w++){let s=h.entities[w];f=f.replace(s.regex,s.val)}return f}lR.exports=Mc});var mR=H((J30,bR)=>{var Zc=vR(),Jc={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,h){return h},attributeValueProcessor:function(f,h){return h},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function zh(f){if(this.options=Object.assign({},Jc,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Hc;if(this.processTextOrObjNode=Vc,this.options.format)this.indentate=Pc,this.tagEndChar=`>
|
|
36
36
|
`,this.newLine=`
|
|
37
|
-
`;else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}zh.prototype.build=function(f){if(this.options.preserveOrder)return
|
|
37
|
+
`;else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}zh.prototype.build=function(f){if(this.options.preserveOrder)return Zc(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};zh.prototype.j2x=function(f,h){let w="",s="";for(let $ in f){if(!Object.prototype.hasOwnProperty.call(f,$))continue;if(typeof f[$]==="undefined"){if(this.isAttribute($))s+=""}else if(f[$]===null)if(this.isAttribute($))s+="";else if($[0]==="?")s+=this.indentate(h)+"<"+$+"?"+this.tagEndChar;else s+=this.indentate(h)+"<"+$+"/"+this.tagEndChar;else if(f[$]instanceof Date)s+=this.buildTextValNode(f[$],$,"",h);else if(typeof f[$]!=="object"){let r=this.isAttribute($);if(r)w+=this.buildAttrPairStr(r,""+f[$]);else if($===this.options.textNodeName){let E=this.options.tagValueProcessor($,""+f[$]);s+=this.replaceEntitiesValue(E)}else s+=this.buildTextValNode(f[$],$,"",h)}else if(Array.isArray(f[$])){let r=f[$].length,E="",T="";for(let U=0;U<r;U++){let F=f[$][U];if(typeof F==="undefined");else if(F===null)if($[0]==="?")s+=this.indentate(h)+"<"+$+"?"+this.tagEndChar;else s+=this.indentate(h)+"<"+$+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){let C=this.j2x(F,h+1);if(E+=C.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))T+=C.attrStr}else E+=this.processTextOrObjNode(F,$,h);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor($,F);C=this.replaceEntitiesValue(C),E+=C}else E+=this.buildTextValNode(F,$,"",h)}if(this.options.oneListGroup)E=this.buildObjectNode(E,$,T,h);s+=E}else if(this.options.attributesGroupName&&$===this.options.attributesGroupName){let r=Object.keys(f[$]),E=r.length;for(let T=0;T<E;T++)w+=this.buildAttrPairStr(r[T],""+f[$][r[T]])}else s+=this.processTextOrObjNode(f[$],$,h)}return{attrStr:w,val:s}};zh.prototype.buildAttrPairStr=function(f,h){if(h=this.options.attributeValueProcessor(f,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true")return" "+f;else return" "+f+'="'+h+'"'};function Vc(f,h,w){let s=this.j2x(f,w+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],h,s.attrStr,w);else return this.buildObjectNode(s.val,h,s.attrStr,w)}zh.prototype.buildObjectNode=function(f,h,w,s){if(f==="")if(h[0]==="?")return this.indentate(s)+"<"+h+w+"?"+this.tagEndChar;else return this.indentate(s)+"<"+h+w+this.closeTag(h)+this.tagEndChar;else{let $="</"+h+this.tagEndChar,r="";if(h[0]==="?")r="?",$="";if((w||w==="")&&f.indexOf("<")===-1)return this.indentate(s)+"<"+h+w+r+">"+f+$;else if(this.options.commentPropName!==!1&&h===this.options.commentPropName&&r.length===0)return this.indentate(s)+`<!--${f}-->`+this.newLine;else return this.indentate(s)+"<"+h+w+r+this.tagEndChar+f+this.indentate(s)+$}};zh.prototype.closeTag=function(f){let h="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)h="/"}else if(this.options.suppressEmptyNode)h="/";else h=`></${f}`;return h};zh.prototype.buildTextValNode=function(f,h,w,s){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(s)+`<!--${f}-->`+this.newLine;else if(h[0]==="?")return this.indentate(s)+"<"+h+w+"?"+this.tagEndChar;else{let $=this.options.tagValueProcessor(h,f);if($=this.replaceEntitiesValue($),$==="")return this.indentate(s)+"<"+h+w+this.closeTag(h)+this.tagEndChar;else return this.indentate(s)+"<"+h+w+">"+$+"</"+h+this.tagEndChar}};zh.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){let w=this.options.entities[h];f=f.replace(w.regex,w.val)}return f};function Pc(f){return this.options.indentBy.repeat(f)}function Hc(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1}bR.exports=zh});var iR=H((V30,dR)=>{var Nc=e3(),Dc=kR(),qc=mR();dR.exports={XMLParser:Dc,XMLValidator:Nc,XMLBuilder:qc}});var eR=H((P30,nR)=>{var{defineProperty:fE,getOwnPropertyDescriptor:kc,getOwnPropertyNames:yc}=Object,jc=Object.prototype.hasOwnProperty,K1=(f,h)=>fE(f,"name",{value:h,configurable:!0}),Oc=(f,h)=>{for(var w in h)fE(f,w,{get:h[w],enumerable:!0})},lc=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of yc(h))if(!jc.call(f,$)&&$!==w)fE(f,$,{get:()=>h[$],enumerable:!(s=kc(h,$))||s.enumerable})}return f},vc=(f)=>lc(fE({},"__esModule",{value:!0}),f),cR={};Oc(cR,{_toBool:()=>mc,_toNum:()=>dc,_toStr:()=>bc,awsExpectUnion:()=>cc,loadRestJsonErrorCode:()=>_c,loadRestXmlErrorCode:()=>oc,parseJsonBody:()=>xR,parseJsonErrorBody:()=>xc,parseXmlBody:()=>_R,parseXmlErrorBody:()=>ac});nR.exports=vc(cR);var bc=K1((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){let h=new Error(`Received number ${f} where a string was expected.`);return h.name="Warning",console.warn(h),String(f)}if(typeof f==="boolean"){let h=new Error(`Received boolean ${f} where a string was expected.`);return h.name="Warning",console.warn(h),String(f)}return f},"_toStr"),mc=K1((f)=>{if(f==null)return f;if(typeof f==="string"){let h=f.toLowerCase();if(f!==""&&h!=="false"&&h!=="true"){let w=new Error(`Received string "${f}" where a boolean was expected.`);w.name="Warning",console.warn(w)}return f!==""&&h!=="false"}return f},"_toBool"),dc=K1((f)=>{if(f==null)return f;if(typeof f==="string"){let h=Number(f);if(h.toString()!==f){let w=new Error(`Received string "${f}" where a number was expected.`);return w.name="Warning",console.warn(w),f}return h}return f},"_toNum"),ic=J0(),cc=K1((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return ic.expectUnion(f)},"awsExpectUnion"),gc=J0(),gR=K1((f,h)=>gc.collectBody(f,h).then((w)=>h.utf8Encoder(w)),"collectBodyString"),xR=K1((f,h)=>gR(f,h).then((w)=>{if(w.length)try{return JSON.parse(w)}catch(s){if(s?.name==="SyntaxError")Object.defineProperty(s,"$responseBodyText",{value:w});throw s}return{}}),"parseJsonBody"),xc=K1(async(f,h)=>{let w=await xR(f,h);return w.message=w.message??w.Message,w},"parseJsonErrorBody"),_c=K1((f,h)=>{let w=K1((r,E)=>Object.keys(r).find((T)=>T.toLowerCase()===E.toLowerCase()),"findKey"),s=K1((r)=>{let E=r;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"),$=w(f.headers,"x-amzn-errortype");if($!==void 0)return s(f.headers[$]);if(h.code!==void 0)return s(h.code);if(h.__type!==void 0)return s(h.__type)},"loadRestJsonErrorCode"),nc=J0(),ec=iR(),_R=K1((f,h)=>gR(f,h).then((w)=>{if(w.length){let s=new ec.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(U,F)=>F.trim()===""&&F.includes(`
|
|
38
38
|
`)?"":void 0});s.addEntity("#xD","\r"),s.addEntity("#10",`
|
|
39
|
-
`);let $;try{$=s.parse(w,!0)}catch(T){if(T&&typeof T==="object")Object.defineProperty(T,"$responseBodyText",{value:w});throw T}let r="#text",E=Object.keys($)[0],U=$[E];if(U[r])U[E]=U[r],delete U[r];return pc.getValueFromTextNode(U)}return{}}),"parseXmlBody"),tc=K1(async(f,h)=>{let w=await aR(f,h);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),fg=K1((f,h)=>{if(h?.Error?.Code!==void 0)return h.Error.Code;if(h?.Code!==void 0)return h.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var O0=H((b$)=>{Object.defineProperty(b$,"__esModule",{value:!0});var u3=l4();u3.__exportStar(C1(),b$);u3.__exportStar(cz(),b$);u3.__exportStar(pR(),b$)});async function uR(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")ff.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))ff.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else ff.setFeature(f,"RETRY_MODE_STANDARD","E");else ff.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(hg))ff.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":ff.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ff.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ff.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)ff.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,U]of Object.entries(r.$source??{}))ff.setFeature(f,E,U)}}var ff,hg;var tR=A(()=>{ff=p(O0(),1),hg=/\d{12}\.ddb/});var t3="user-agent",fE="x-amz-user-agent",fF=" ",hE="/",f7,h7,hF="-";var w7=A(()=>{f7=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,h7=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function s7(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=1024){if(h.length)h+=","+s;else h+=s;continue}break}return h}var wg=(f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!n0.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(wE)||[],U=(await f.defaultUserAgentProvider()).map(wE);await uR(w,f,s);let T=w;U.push(`m/${s7(Object.assign({},w.__smithy_context?.features,T.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(wE)||[],C=await f.userAgentAppId();if(C)U.push(wE([`app/${C}`]));let I=HW(),L=(I?[I]:[]).concat([...U,...E,...F]).join(fF),G=[...U.filter((S)=>S.startsWith("aws-sdk-")),...F].join(fF);if(f.runtime!=="browser"){if(G)r[fE]=r[fE]?`${r[t3]} ${G}`:G;r[t3]=L}else r[fE]=L;return h({...s,request:$})},wE=(f)=>{let h=f[0].split(hE).map((E)=>E.replace(f7,hF)).join(hE),w=f[1]?.replace(h7,hF),s=h.indexOf(hE),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,U,T)=>{switch(T){case 0:return U;case 1:return`${E}/${U}`;default:return`${E}#${U}`}},"")},sg,iw=(f)=>({applyToStack:(h)=>{h.add(wg(f),sg)}});var $7=A(()=>{N$();F1();tR();w7();sg={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var m$=A(()=>{dG();$7()});var cw=(f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)};var Rh;var r7=A(()=>{(function(f){f.ENV="env",f.CONFIG="shared config entry"})(Rh||(Rh={}))});var wF=A(()=>{r7()});var $g="AWS_USE_DUALSTACK_ENDPOINT",rg="use_dualstack_endpoint",gw;var E7=A(()=>{wF();gw={environmentVariableSelector:(f)=>cw(f,$g,Rh.ENV),configFileSelector:(f)=>cw(f,rg,Rh.CONFIG),default:!1}});var Eg="AWS_USE_FIPS_ENDPOINT",Ug="use_fips_endpoint",xw;var U7=A(()=>{wF();xw={environmentVariableSelector:(f)=>cw(f,Eg,Rh.ENV),configFileSelector:(f)=>cw(f,Ug,Rh.CONFIG),default:!1}});var sF,Sh=(f)=>f[sF.SMITHY_CONTEXT_KEY]||(f[sF.SMITHY_CONTEXT_KEY]={});var T7=A(()=>{sF=p(T1(),1)});var L1=(f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h};var cf=A(()=>{T7()});var F7=A(()=>{cf()});var C7=A(()=>{cf()});var I7=A(()=>{E7();U7();F7();C7()});var Xh,_w;var L7=A(()=>{Xh={environmentVariableSelector:(f)=>f.AWS_REGION,configFileSelector:(f)=>f.region,default:()=>{throw new Error("Region is missing")}},_w={preferredFile:"credentials"}});var sE=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var $F=(f)=>sE(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var A7=()=>{};var nw=(f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return $F(h);let s=await h();return $F(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(sE(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}};var B7=A(()=>{A7()});var G7=A(()=>{L7();B7()});var W7=()=>{};var z7=()=>{};var R7=()=>{};var S7=A(()=>{W7();z7();R7()});var Yh=A(()=>{I7();G7();S7()});function Tg(f){return(h)=>async(w)=>{let s=w.request;if(n0.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(X7)===-1)try{let E=f($);s.headers={...s.headers,[X7]:String(E)}}catch(E){}}return h({...w,request:s})}}var X7="content-length",Fg,ew=(f)=>({applyToStack:(h)=>{h.add(Tg(f.bodyLengthChecker),Fg)}});var $E=A(()=>{F1();Fg={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var Y7=async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Bg(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Ag(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},Cg,Ig,Lg,Ag=(f)=>Cg.test(f)&&!Ig.test(f)&&!Lg.test(f),Bg=(f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E};var M7=A(()=>{Cg=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ig=/(\d+\.){3}\d+/,Lg=/\.\./});var Q7=A(()=>{M7()});var K7=(f,h,w)=>{let s=async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $};if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:U,path:T}=$;return`${r}//${E}${U?":"+U:""}${T}`}}return $};return s};var k1;var d$=A(()=>{k1=class k1 extends Error{constructor(f,h=!0){let w,s=!0;if(typeof h==="boolean")w=void 0,s=h;else if(h!=null&&typeof h==="object")w=h.logger,s=h.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=s,Object.setPrototypeOf(this,k1.prototype),w?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${f}`)}static from(f,h=!0){return Object.assign(new this(f.message,h),f)}}});var a;var Z7=A(()=>{d$();a=class a extends k1{constructor(f,h=!0){super(f,h);this.name="CredentialsProviderError",Object.setPrototypeOf(this,a.prototype)}}});var S1;var J7=A(()=>{d$();S1=class S1 extends k1{constructor(f,h=!0){super(f,h);this.name="TokenProviderError",Object.setPrototypeOf(this,S1.prototype)}}});var gf=(...f)=>async()=>{if(f.length===0)throw new k1("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h};var V7=A(()=>{d$()});var P7=(f)=>()=>Promise.resolve(f);var uh=(f,h,w)=>{let s,$,r,E=!1,U=async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s};if(h===void 0)return async(T)=>{if(!r||T?.forceRefresh)s=await U();return s};return async(T)=>{if(!r||T?.forceRefresh)s=await U();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await U(),s;return s}};var Y0=A(()=>{Z7();d$();J7();V7()});function rE(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}var H7=(f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new a(w.message||`Not found in ENV: ${rE(f.toString())}`,{logger:h})}};var N7=A(()=>{Y0()});import{homedir as Gg}from"os";import{sep as Wg}from"path";var rF,zg=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Mh=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Wg}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=zg();if(!rF[$])rF[$]=Gg();return rF[$]};var aw=A(()=>{rF={}});var D7="AWS_PROFILE",y1=(f)=>f.profile||process.env.AWS_PROFILE||"default";import{createHash as Rg}from"crypto";import{join as Sg}from"path";var EE=(f)=>{let w=Rg("sha1").update(f).digest("hex");return Sg(Mh(),".aws","sso","cache",`${w}.json`)};var EF=A(()=>{aw()});import{promises as Xg}from"fs";var Yg,UE=async(f)=>{let h=EE(f),w=await Yg(h,"utf8");return JSON.parse(w)};var q7=A(()=>{EF();({readFile:Yg}=Xg)});var UF,k7=(f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(j1);if(w===-1)return!1;return Object.values(UF.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(j1),r=w.substring(0,$)===UF.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}});var y7=A(()=>{UF=p(T1(),1);ow()});import{join as Mg}from"path";var Qg="AWS_CONFIG_FILE",TE=()=>process.env[Qg]||Mg(Mh(),".aws","config");var TF=A(()=>{aw()});import{join as Kg}from"path";var Zg="AWS_SHARED_CREDENTIALS_FILE",j7=()=>process.env[Zg]||Kg(Mh(),".aws","credentials");var O7=A(()=>{aw()});var l7,Jg,Vg,i$=(f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let U=r.substring(1,r.length-1),T=Jg.exec(U);if(T){let[,F,,C]=T;if(Object.values(l7.IniSectionType).includes(F))w=[F,C].join(j1)}else w=U;if(Vg.includes(U))throw new Error(`Found invalid profile name "${U}"`)}else if(w){let U=r.indexOf("=");if(![0,-1].includes(U)){let[T,F]=[r.substring(0,U).trim(),r.substring(U+1).trim()];if(F==="")s=T;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,T].join(j1):T;h[w][C]=F}}}}return h};var FF=A(()=>{l7=p(T1(),1);ow();Jg=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Vg=["__proto__","profile __proto__"]});import{promises as Pg}from"fs";var Hg,CF,c$=(f,h)=>{if(!CF[f]||h?.ignoreCache)CF[f]=Hg(f,"utf8");return CF[f]};var IF=A(()=>{({readFile:Hg}=Pg),CF={}});import{join as v7}from"path";var b7=()=>({}),j1=".",FE=async(f={})=>{let{filepath:h=j7(),configFilepath:w=TE()}=f,s=Mh(),$="~/",r=h;if(h.startsWith("~/"))r=v7(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=v7(s,w.slice(2));let U=await Promise.all([c$(E,{ignoreCache:f.ignoreCache}).then(i$).then(k7).catch(b7),c$(r,{ignoreCache:f.ignoreCache}).then(i$).catch(b7)]);return{configFile:U[0],credentialsFile:U[1]}};var ow=A(()=>{y7();TF();O7();aw();FF();IF()});var m7,d7=(f)=>Object.entries(f).filter(([h])=>h.startsWith(m7.IniSectionType.SSO_SESSION+j1)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(j1)+1)]:s}),{});var i7=A(()=>{m7=p(T1(),1);ow()});var Ng=()=>({}),CE=async(f={})=>c$(f.configFilepath??TE()).then(i$).then(d7).catch(Ng);var c7=A(()=>{TF();i7();FF();IF()});var g7=(...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h};var Qh=async(f)=>{let h=await FE(f);return g7(h.configFile,h.credentialsFile)};var x7=A(()=>{ow()});var _7=()=>{};var hf=A(()=>{aw();EF();q7();ow();c7();x7();_7()});var n7=(f,{preferredFile:h="config",...w}={})=>async()=>{let s=y1(w),{configFile:$,credentialsFile:r}=await FE(w),E=r[s]||{},U=$[s]||{},T=h==="config"?{...E,...U}:{...U,...E};try{let C=f(T,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new a(F.message||`Not found in config files w/ profile [${s}]: ${rE(f.toString())}`,{logger:w.logger})}};var e7=A(()=>{Y0();hf()});var Dg=(f)=>typeof f==="function",a7=(f)=>Dg(f)?async()=>await f():P7(f);var o7=A(()=>{Y0()});var z0=({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>uh(gf(H7(f),n7(h,s),a7(w)));var p7=A(()=>{Y0();N7();e7();o7()});var Kh=A(()=>{p7()});var u7="AWS_ENDPOINT_URL",t7="endpoint_url",fS=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[u7,...w].join("_")];if(s)return s;let $=h[u7];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(j1)];if($){let r=f.split(" ").map((U)=>U.toLowerCase()),E=$[[r.join("_"),t7].join(j1)];if(E)return E}}let s=h[t7];if(s)return s;return},default:void 0});var hS=A(()=>{hf()});var IE=async(f)=>z0(fS(f??""))();var LF=A(()=>{Kh();hS()});function wS(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}var O1=(f)=>{if(typeof f==="string")return O1(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=wS(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}};var pw=()=>{};var LE=(f)=>{if(typeof f==="object"){if("url"in f)return O1(f.url);return f}return O1(f)};var AE=A(()=>{pw()});var sS=async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await IE(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(LE(E))}let $=await qg(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},qg=async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await K7(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await Y7(s);return s};var AF=A(()=>{Q7();LF();AE()});var $S=A(()=>{AF();AE()});var rS,ES=({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)rS.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await sS($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let T=Sh(s)?.selectedHttpAuthScheme?.httpAuthOption;if(T)T.signingProperties=Object.assign(T.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}};var BF=A(()=>{rS=p(m0(),1);cf();AF()});var US=(f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
40
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(T){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var TS=(f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})};function z(f,h,w){return{applyToStack:(s)=>{s.add(US(f,w),kg),s.add(TS(f,h),GF)}}}var kg,GF;var FS=A(()=>{kg={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},GF={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var k=A(()=>{FS()});var yg,R=(f,h)=>({applyToStack:(w)=>{w.addRelativeTo(ES({config:f,instructions:h}),yg)}});var CS=A(()=>{k();BF();yg={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:GF.name}});var uw=(f)=>{let h=f.tls??!0,{endpoint:w}=f,s=w!=null?async()=>LE(await L1(w)()):void 0,r={...f,endpoint:s,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:L1(f.useDualstackEndpoint??!1),useFipsEndpoint:L1(f.useFipsEndpoint??!1)},E=void 0;return r.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!E)E=IE(f.serviceId);return E},r};var IS=A(()=>{cf();LF();AE()});var LS=()=>{};var D=A(()=>{$S();BF();CS();IS();LS()});var l1,th=3,Zh;var BE=A(()=>{(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(l1||(l1={}));Zh=l1.STANDARD});var AS,BS,GS,WS;var zS=A(()=>{AS=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],BS=["TimeoutError","RequestTimeout","RequestTimeoutException"],GS=[500,502,503,504],WS=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var jg=(f)=>f.$metadata?.clockSkewCorrected,tw=(f)=>f.$metadata?.httpStatusCode===429||AS.includes(f.name)||f.$retryable?.throttling==!0,g$=(f,h=0)=>jg(f)||BS.includes(f.name)||WS.includes(f?.code||"")||GS.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&g$(f.cause,h+1),RS=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!g$(f))return!0;return!1}return!1};var x$=A(()=>{zS()});class fs{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?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;let h=this.getCurrentTimeInSeconds();this.lastThrottleTime=h,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){let h=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>fs.setTimeoutFn(w,h))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){let f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}let h=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+h),this.lastTimestamp=f}updateClientSendingRate(f){let h;if(this.updateMeasuredRate(),tw(f)){let s=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),h=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),h=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(h,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(){let f=this.getCurrentTimeInSeconds(),h=Math.floor(f*2)/2;if(this.requestCount++,h>this.lastTxRateBucket){let w=this.requestCount/(h-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=h}}getPrecise(f){return parseFloat(f.toFixed(8))}}var WF=A(()=>{x$();fs.setTimeoutFn=setTimeout});var fw=100,_$=20000,zF=500,GE=500,RF=5,SF=10,XF=1,WE="amz-sdk-invocation-id",zE="amz-sdk-request";var SS=()=>{let f=fw;return{computeNextBackoffDelay:(s)=>{return Math.floor(Math.min(_$,Math.random()*2**s*f))},setDelayBase:(s)=>{f=s}}};var XS=()=>{};var YF=({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:()=>h,getRetryDelay:()=>Math.min(_$,f),getRetryCost:()=>w}};var YS=()=>{};class hs{constructor(f){this.maxAttempts=f,this.mode=l1.STANDARD,this.capacity=GE,this.retryBackoffStrategy=SS(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return YF({retryDelay:fw,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?zF:fw);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,YF({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(GE,this.capacity+(f.getRetryCost()??XF))}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 ${th}`),th}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?SF:RF}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}var RE=A(()=>{BE();XS();YS()});class MF{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l1.ADAPTIVE;let{rateLimiter:w}=h??{};this.rateLimiter=w??new fs,this.standardRetryStrategy=new hs(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var MS=A(()=>{BE();WF();RE()});var QS=A(()=>{RE()});var KS=()=>{};var wf=A(()=>{MS();QS();WF();RE();BE();KS()});var QF=H((ZS)=>{Object.defineProperty(ZS,"__esModule",{value:!0});ZS.default=vg;var Og=lg(A0("crypto"));function lg(f){return f&&f.__esModule?f:{default:f}}var XE=new Uint8Array(256),SE=XE.length;function vg(){if(SE>XE.length-16)Og.default.randomFillSync(XE),SE=0;return XE.slice(SE,SE+=16)}});var PS=H((JS)=>{Object.defineProperty(JS,"__esModule",{value:!0});JS.default=void 0;var mg=/^(?:[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;JS.default=mg});var n$=H((HS)=>{Object.defineProperty(HS,"__esModule",{value:!0});HS.default=void 0;var dg=ig(PS());function ig(f){return f&&f.__esModule?f:{default:f}}function cg(f){return typeof f==="string"&&dg.default.test(f)}var gg=cg;HS.default=gg});var e$=H((qS)=>{Object.defineProperty(qS,"__esModule",{value:!0});qS.default=void 0;qS.unsafeStringify=DS;var xg=_g(n$());function _g(f){return f&&f.__esModule?f:{default:f}}var f1=[];for(let f=0;f<256;++f)f1.push((f+256).toString(16).slice(1));function DS(f,h=0){return f1[f[h+0]]+f1[f[h+1]]+f1[f[h+2]]+f1[f[h+3]]+"-"+f1[f[h+4]]+f1[f[h+5]]+"-"+f1[f[h+6]]+f1[f[h+7]]+"-"+f1[f[h+8]]+f1[f[h+9]]+"-"+f1[f[h+10]]+f1[f[h+11]]+f1[f[h+12]]+f1[f[h+13]]+f1[f[h+14]]+f1[f[h+15]]}function ng(f,h=0){let w=DS(f,h);if(!xg.default(w))throw TypeError("Stringified UUID is invalid");return w}var eg=ng;qS.default=eg});var lS=H((jS)=>{Object.defineProperty(jS,"__esModule",{value:!0});jS.default=void 0;var og=ug(QF()),pg=e$();function ug(f){return f&&f.__esModule?f:{default:f}}var yS,KF,ZF=0,JF=0;function tg(f,h,w){let s=h&&w||0,$=h||new Array(16);f=f||{};let r=f.node||yS,E=f.clockseq!==void 0?f.clockseq:KF;if(r==null||E==null){let L=f.random||(f.rng||og.default)();if(r==null)r=yS=[L[0]|1,L[1],L[2],L[3],L[4],L[5]];if(E==null)E=KF=(L[6]<<8|L[7])&16383}let U=f.msecs!==void 0?f.msecs:Date.now(),T=f.nsecs!==void 0?f.nsecs:JF+1,F=U-ZF+(T-JF)/1e4;if(F<0&&f.clockseq===void 0)E=E+1&16383;if((F<0||U>ZF)&&f.nsecs===void 0)T=0;if(T>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ZF=U,JF=T,KF=E,U+=12219292800000;let C=((U&268435455)*1e4+T)%4294967296;$[s++]=C>>>24&255,$[s++]=C>>>16&255,$[s++]=C>>>8&255,$[s++]=C&255;let I=U/4294967296*1e4&268435455;$[s++]=I>>>8&255,$[s++]=I&255,$[s++]=I>>>24&15|16,$[s++]=I>>>16&255,$[s++]=E>>>8|128,$[s++]=E&255;for(let L=0;L<6;++L)$[s+L]=r[L];return h||pg.unsafeStringify($)}var fx=tg;jS.default=fx});var VF=H((vS)=>{Object.defineProperty(vS,"__esModule",{value:!0});vS.default=void 0;var hx=wx(n$());function wx(f){return f&&f.__esModule?f:{default:f}}function sx(f){if(!hx.default(f))throw TypeError("Invalid UUID");let h,w=new Uint8Array(16);return w[0]=(h=parseInt(f.slice(0,8),16))>>>24,w[1]=h>>>16&255,w[2]=h>>>8&255,w[3]=h&255,w[4]=(h=parseInt(f.slice(9,13),16))>>>8,w[5]=h&255,w[6]=(h=parseInt(f.slice(14,18),16))>>>8,w[7]=h&255,w[8]=(h=parseInt(f.slice(19,23),16))>>>8,w[9]=h&255,w[10]=(h=parseInt(f.slice(24,36),16))/1099511627776&255,w[11]=h/4294967296&255,w[12]=h>>>24&255,w[13]=h>>>16&255,w[14]=h>>>8&255,w[15]=h&255,w}var $x=sx;vS.default=$x});var PF=H((iS)=>{Object.defineProperty(iS,"__esModule",{value:!0});iS.URL=iS.DNS=void 0;iS.default=Fx;var rx=e$(),Ex=Ux(VF());function Ux(f){return f&&f.__esModule?f:{default:f}}function Tx(f){f=unescape(encodeURIComponent(f));let h=[];for(let w=0;w<f.length;++w)h.push(f.charCodeAt(w));return h}var mS="6ba7b810-9dad-11d1-80b4-00c04fd430c8";iS.DNS=mS;var dS="6ba7b811-9dad-11d1-80b4-00c04fd430c8";iS.URL=dS;function Fx(f,h,w){function s($,r,E,U){var T;if(typeof $==="string")$=Tx($);if(typeof r==="string")r=Ex.default(r);if(((T=r)===null||T===void 0?void 0:T.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+$.length);if(F.set(r),F.set($,r.length),F=w(F),F[6]=F[6]&15|h,F[8]=F[8]&63|128,E){U=U||0;for(let C=0;C<16;++C)E[U+C]=F[C];return E}return rx.unsafeStringify(F)}try{s.name=f}catch($){}return s.DNS=mS,s.URL=dS,s}});var _S=H((gS)=>{Object.defineProperty(gS,"__esModule",{value:!0});gS.default=void 0;var Lx=Ax(A0("crypto"));function Ax(f){return f&&f.__esModule?f:{default:f}}function Bx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Lx.default.createHash("md5").update(f).digest()}var Gx=Bx;gS.default=Gx});var oS=H((eS)=>{Object.defineProperty(eS,"__esModule",{value:!0});eS.default=void 0;var Wx=nS(PF()),zx=nS(_S());function nS(f){return f&&f.__esModule?f:{default:f}}var Rx=Wx.default("v3",48,zx.default),Sx=Rx;eS.default=Sx});var tS=H((pS)=>{Object.defineProperty(pS,"__esModule",{value:!0});pS.default=void 0;var Xx=Yx(A0("crypto"));function Yx(f){return f&&f.__esModule?f:{default:f}}var Mx={randomUUID:Xx.default.randomUUID};pS.default=Mx});var $X=H((wX)=>{Object.defineProperty(wX,"__esModule",{value:!0});wX.default=void 0;var fX=hX(tS()),Qx=hX(QF()),Kx=e$();function hX(f){return f&&f.__esModule?f:{default:f}}function Zx(f,h,w){if(fX.default.randomUUID&&!h&&!f)return fX.default.randomUUID();f=f||{};let s=f.random||(f.rng||Qx.default)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,h){w=w||0;for(let $=0;$<16;++$)h[w+$]=s[$];return h}return Kx.unsafeStringify(s)}var Jx=Zx;wX.default=Jx});var UX=H((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.default=void 0;var Vx=Px(A0("crypto"));function Px(f){return f&&f.__esModule?f:{default:f}}function Hx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Vx.default.createHash("sha1").update(f).digest()}var Nx=Hx;rX.default=Nx});var IX=H((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.default=void 0;var Dx=TX(PF()),qx=TX(UX());function TX(f){return f&&f.__esModule?f:{default:f}}var kx=Dx.default("v5",80,qx.default),yx=kx;FX.default=yx});var BX=H((LX)=>{Object.defineProperty(LX,"__esModule",{value:!0});LX.default=void 0;var jx="00000000-0000-0000-0000-000000000000";LX.default=jx});var zX=H((GX)=>{Object.defineProperty(GX,"__esModule",{value:!0});GX.default=void 0;var Ox=lx(n$());function lx(f){return f&&f.__esModule?f:{default:f}}function vx(f){if(!Ox.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)}var bx=vx;GX.default=bx});var HF=H((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});Object.defineProperty(sf,"NIL",{enumerable:!0,get:function(){return gx.default}});Object.defineProperty(sf,"parse",{enumerable:!0,get:function(){return ex.default}});Object.defineProperty(sf,"stringify",{enumerable:!0,get:function(){return nx.default}});Object.defineProperty(sf,"v1",{enumerable:!0,get:function(){return mx.default}});Object.defineProperty(sf,"v3",{enumerable:!0,get:function(){return dx.default}});Object.defineProperty(sf,"v4",{enumerable:!0,get:function(){return ix.default}});Object.defineProperty(sf,"v5",{enumerable:!0,get:function(){return cx.default}});Object.defineProperty(sf,"validate",{enumerable:!0,get:function(){return _x.default}});Object.defineProperty(sf,"version",{enumerable:!0,get:function(){return xx.default}});var mx=xf(lS()),dx=xf(oS()),ix=xf($X()),cx=xf(IX()),gx=xf(BX()),xx=xf(zX()),_x=xf(n$()),nx=xf(e$()),ex=xf(VF());function xf(f){return f&&f.__esModule?f:{default:f}}});var Mf,W80,z80,RX,R80,S80,X80,Y80,M80,Q80;var SX=A(()=>{Mf=p(HF(),1),W80=Mf.default.v1,z80=Mf.default.v3,RX=Mf.default.v4,R80=Mf.default.v5,S80=Mf.default.NIL,X80=Mf.default.version,Y80=Mf.default.validate,M80=Mf.default.stringify,Q80=Mf.default.parse});var XX=A(()=>{wf()});var NF=A(()=>{wf()});var DF=A(()=>{x$()});var qF=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var kF=A(()=>{F1();x$();wf();XX();NF();DF()});var YX=A(()=>{wf();kF()});var MX="AWS_MAX_ATTEMPTS",QX="max_attempts",ws,ss=(f)=>{let{retryStrategy:h}=f,w=L1(f.maxAttempts??th);return{...f,maxAttempts:w,retryStrategy:async()=>{if(h)return h;if(await L1(f.retryMode)()===l1.ADAPTIVE)return new MF(w);return new hs(w)}}},ax="AWS_RETRY_MODE",ox="retry_mode",$s;var KX=A(()=>{cf();wf();ws={environmentVariableSelector:(f)=>{let h=f[MX];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${MX} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[QX];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${QX} mast be a number, got "${h}"`);return w},default:th},$s={environmentVariableSelector:(f)=>f[ax],configFileSelector:(f)=>f[ox],default:Zh}});var ZX=A(()=>{F1();wf()});var hw=(f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},Jh=(f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},rs=()=>{let f=[],h=[],w=!1,s=new Set,$=(I)=>I.sort((L,G)=>JX[G.step]-JX[L.step]||VX[G.priority||"normal"]-VX[L.priority||"normal"]),r=(I)=>{let L=!1,G=(S)=>{let Q=hw(S.name,S.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0};return f=f.filter(G),h=h.filter(G),L},E=(I)=>{let L=!1,G=(S)=>{if(S.middleware===I){L=!0;for(let Q of hw(S.name,S.aliases))s.delete(Q);return!1}return!0};return f=f.filter(G),h=h.filter(G),L},U=(I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},T=(I)=>{let L=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...T(G))}),L.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...T(G))}),L},F=(I=!1)=>{let L=[],G=[],S={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of hw(q.name,q.aliases))S[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of hw(q.name,q.aliases))S[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=S[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Jh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(T).reduce((M,q)=>{return M.push(...q),M},[])},C={add:(I,L={})=>{let{name:G,override:S,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=hw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Jh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Jh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Jh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:G,override:S,aliases:Q}=L,M={middleware:I,...L},q=hw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Jh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Jh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Jh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>U(rs()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,G=(S)=>{let{tags:Q,name:M,aliases:q}=S;if(Q&&Q.includes(I)){let N=hw(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0};return f=f.filter(G),h=h.filter(G),L},concat:(I)=>{let L=U(rs());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:U,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Jh(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let G of F().map((S)=>S.middleware).reverse())I=G(I,L);if(w)console.log(C.identify());return I}};return C},JX,VX;var PX=A(()=>{JX={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},VX={high:3,normal:2,low:1}});var yF=A(()=>{PX()});class ww{constructor(f){this.config=f,this.middlewareStack=rs()}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let U=this.handlers;if(U.has(f.constructor))E=U.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),U.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((U)=>$(null,U.output),(U)=>$(U)).catch(()=>{});else return E(f).then((U)=>U.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var HX=A(()=>{yF()});var A1;var NX=A(()=>{A1=p(yw(),1)});class W{constructor(){this.middlewareStack=rs()}static classBuilder(){return new qX}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:U,smithyContext:T,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,G={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:U,[DX.SMITHY_CONTEXT_KEY]:{commandInstance:this,...T},...F},{requestHandler:S}=h;return I.resolve((Q)=>S.handle(Q.request,w||{}),G)}}class qX{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,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends W{static getEndpointParameterInstructions(){return f._ep}constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}}var DX;var kX=A(()=>{yF();DX=p(T1(),1)});var T0="***SensitiveInformation***";var Es=(f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=async function(E,U,T){let F=new s(E);if(typeof U==="function")this.send(F,U);else if(typeof T==="function"){if(typeof U!=="object")throw new Error(`Expected http options but got ${typeof U}`);this.send(F,U||{},T)}else return this.send(F,U)},r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}};var e0=(f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},Vh=(f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)ME.warn(YE(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")ME.warn(YE(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},X1=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))ME.warn(YE(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},px,yX=(f)=>{let h=X1(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>px)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},jF=(f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},jX=(f)=>OF(f,32),OX=(f)=>OF(f,16),lX=(f)=>OF(f,8),OF=(f,h)=>{let w=jF(f);if(w!==void 0&&ux(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},ux=(f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},j=(f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},g=(f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},B=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return ME.warn(YE(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},lF=(f)=>{if(typeof f=="string")return X1(Us(f));return X1(f)},vX,bX=(f)=>{if(typeof f=="string")return yX(Us(f));return yX(f)},tx,Us=(f)=>{let h=f.match(tx);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},vF=(f)=>{if(typeof f=="string")return f_(f);return X1(f)},f_=(f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},r1=(f)=>{if(typeof f==="string")return jF(Us(f));return jF(f)},M0=(f)=>{if(typeof f==="string")return jX(Us(f));return jX(f)},bF=(f)=>{if(typeof f==="string")return OX(Us(f));return OX(f)},mX=(f)=>{if(typeof f==="string")return lX(Us(f));return lX(f)},YE=(f)=>{return String(new TypeError(f).stack||f).split(`
|
|
39
|
+
`);let $;try{$=s.parse(w,!0)}catch(U){if(U&&typeof U==="object")Object.defineProperty(U,"$responseBodyText",{value:w});throw U}let r="#text",E=Object.keys($)[0],T=$[E];if(T[r])T[E]=T[r],delete T[r];return nc.getValueFromTextNode(T)}return{}}),"parseXmlBody"),ac=K1(async(f,h)=>{let w=await _R(f,h);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),oc=K1((f,h)=>{if(h?.Error?.Code!==void 0)return h.Error.Code;if(h?.Code!==void 0)return h.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var O0=H((m$)=>{Object.defineProperty(m$,"__esModule",{value:!0});var p3=v4();p3.__exportStar(C1(),m$);p3.__exportStar(mz(),m$);p3.__exportStar(eR(),m$)});async function aR(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")ff.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))ff.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else ff.setFeature(f,"RETRY_MODE_STANDARD","E");else ff.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(pc))ff.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":ff.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ff.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ff.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)ff.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))ff.setFeature(f,E,T)}}var ff,pc;var oR=B(()=>{ff=o(O0(),1),pc=/\d{12}\.ddb/});var u3="user-agent",hE="x-amz-user-agent",t3=" ",wE="/",pR,uR,fF="-";var tR=B(()=>{pR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,uR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function f7(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=1024){if(h.length)h+=","+s;else h+=s;continue}break}return h}var uc=(f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!n0.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(sE)||[],T=(await f.defaultUserAgentProvider()).map(sE);await aR(w,f,s);let U=w;T.push(`m/${f7(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(sE)||[],C=await f.userAgentAppId();if(C)T.push(sE([`app/${C}`]));let I=JW(),L=(I?[I]:[]).concat([...T,...E,...F]).join(t3),G=[...T.filter((X)=>X.startsWith("aws-sdk-")),...F].join(t3);if(f.runtime!=="browser"){if(G)r[hE]=r[hE]?`${r[u3]} ${G}`:G;r[u3]=L}else r[hE]=L;return h({...s,request:$})},sE=(f)=>{let h=f[0].split(wE).map((E)=>E.replace(pR,fF)).join(wE),w=f[1]?.replace(uR,fF),s=h.indexOf(wE),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},tc,iw=(f)=>({applyToStack:(h)=>{h.add(uc(f),tc)}});var h7=B(()=>{D$();F1();oR();tR();tc={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var d$=B(()=>{vG();h7()});var cw=(f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)};var Rh;var w7=B(()=>{(function(f){f.ENV="env",f.CONFIG="shared config entry"})(Rh||(Rh={}))});var hF=B(()=>{w7()});var fg="AWS_USE_DUALSTACK_ENDPOINT",hg="use_dualstack_endpoint",gw;var s7=B(()=>{hF();gw={environmentVariableSelector:(f)=>cw(f,fg,Rh.ENV),configFileSelector:(f)=>cw(f,hg,Rh.CONFIG),default:!1}});var wg="AWS_USE_FIPS_ENDPOINT",sg="use_fips_endpoint",xw;var $7=B(()=>{hF();xw={environmentVariableSelector:(f)=>cw(f,wg,Rh.ENV),configFileSelector:(f)=>cw(f,sg,Rh.CONFIG),default:!1}});var wF,Xh=(f)=>f[wF.SMITHY_CONTEXT_KEY]||(f[wF.SMITHY_CONTEXT_KEY]={});var r7=B(()=>{wF=o(U1(),1)});var L1=(f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h};var cf=B(()=>{r7()});var E7=B(()=>{cf()});var T7=B(()=>{cf()});var U7=B(()=>{s7();$7();E7();T7()});var Sh,_w;var F7=B(()=>{Sh={environmentVariableSelector:(f)=>f.AWS_REGION,configFileSelector:(f)=>f.region,default:()=>{throw new Error("Region is missing")}},_w={preferredFile:"credentials"}});var $E=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var sF=(f)=>$E(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var C7=()=>{};var nw=(f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return sF(h);let s=await h();return sF(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if($E(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}};var I7=B(()=>{C7()});var L7=B(()=>{F7();I7()});var B7=()=>{};var A7=()=>{};var G7=()=>{};var W7=B(()=>{B7();A7();G7()});var Yh=B(()=>{U7();L7();W7()});function $g(f){return(h)=>async(w)=>{let s=w.request;if(n0.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(z7)===-1)try{let E=f($);s.headers={...s.headers,[z7]:String(E)}}catch(E){}}return h({...w,request:s})}}var z7="content-length",rg,ew=(f)=>({applyToStack:(h)=>{h.add($g(f.bodyLengthChecker),rg)}});var rE=B(()=>{F1();rg={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var R7=async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Cg(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Fg(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},Eg,Tg,Ug,Fg=(f)=>Eg.test(f)&&!Tg.test(f)&&!Ug.test(f),Cg=(f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E};var X7=B(()=>{Eg=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Tg=/(\d+\.){3}\d+/,Ug=/\.\./});var S7=B(()=>{X7()});var Y7=(f,h,w)=>{let s=async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $};if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s};var k1;var i$=B(()=>{k1=class k1 extends Error{constructor(f,h=!0){let w,s=!0;if(typeof h==="boolean")w=void 0,s=h;else if(h!=null&&typeof h==="object")w=h.logger,s=h.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=s,Object.setPrototypeOf(this,k1.prototype),w?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${f}`)}static from(f,h=!0){return Object.assign(new this(f.message,h),f)}}});var a;var M7=B(()=>{i$();a=class a extends k1{constructor(f,h=!0){super(f,h);this.name="CredentialsProviderError",Object.setPrototypeOf(this,a.prototype)}}});var X1;var Q7=B(()=>{i$();X1=class X1 extends k1{constructor(f,h=!0){super(f,h);this.name="TokenProviderError",Object.setPrototypeOf(this,X1.prototype)}}});var gf=(...f)=>async()=>{if(f.length===0)throw new k1("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h};var K7=B(()=>{i$()});var Z7=(f)=>()=>Promise.resolve(f);var uh=(f,h,w)=>{let s,$,r,E=!1,T=async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s};if(h===void 0)return async(U)=>{if(!r||U?.forceRefresh)s=await T();return s};return async(U)=>{if(!r||U?.forceRefresh)s=await T();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await T(),s;return s}};var Y0=B(()=>{M7();i$();Q7();K7()});function EE(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}var J7=(f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new a(w.message||`Not found in ENV: ${EE(f.toString())}`,{logger:h})}};var V7=B(()=>{Y0()});import{homedir as Ig}from"os";import{sep as Lg}from"path";var $F,Bg=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Mh=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Lg}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Bg();if(!$F[$])$F[$]=Ig();return $F[$]};var aw=B(()=>{$F={}});var P7="AWS_PROFILE",y1=(f)=>f.profile||process.env.AWS_PROFILE||"default";import{createHash as Ag}from"crypto";import{join as Gg}from"path";var TE=(f)=>{let w=Ag("sha1").update(f).digest("hex");return Gg(Mh(),".aws","sso","cache",`${w}.json`)};var rF=B(()=>{aw()});import{promises as Wg}from"fs";var zg,UE=async(f)=>{let h=TE(f),w=await zg(h,"utf8");return JSON.parse(w)};var H7=B(()=>{rF();({readFile:zg}=Wg)});var EF,N7=(f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(j1);if(w===-1)return!1;return Object.values(EF.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(j1),r=w.substring(0,$)===EF.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}});var D7=B(()=>{EF=o(U1(),1);ow()});import{join as Rg}from"path";var Xg="AWS_CONFIG_FILE",FE=()=>process.env[Xg]||Rg(Mh(),".aws","config");var TF=B(()=>{aw()});import{join as Sg}from"path";var Yg="AWS_SHARED_CREDENTIALS_FILE",q7=()=>process.env[Yg]||Sg(Mh(),".aws","credentials");var k7=B(()=>{aw()});var y7,Mg,Qg,c$=(f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=Mg.exec(T);if(U){let[,F,,C]=U;if(Object.values(y7.IniSectionType).includes(F))w=[F,C].join(j1)}else w=T;if(Qg.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(j1):U;h[w][C]=F}}}}return h};var UF=B(()=>{y7=o(U1(),1);ow();Mg=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Qg=["__proto__","profile __proto__"]});import{promises as Kg}from"fs";var Zg,FF,g$=(f,h)=>{if(!FF[f]||h?.ignoreCache)FF[f]=Zg(f,"utf8");return FF[f]};var CF=B(()=>{({readFile:Zg}=Kg),FF={}});import{join as j7}from"path";var O7=()=>({}),j1=".",CE=async(f={})=>{let{filepath:h=q7(),configFilepath:w=FE()}=f,s=Mh(),$="~/",r=h;if(h.startsWith("~/"))r=j7(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=j7(s,w.slice(2));let T=await Promise.all([g$(E,{ignoreCache:f.ignoreCache}).then(c$).then(N7).catch(O7),g$(r,{ignoreCache:f.ignoreCache}).then(c$).catch(O7)]);return{configFile:T[0],credentialsFile:T[1]}};var ow=B(()=>{D7();TF();k7();aw();UF();CF()});var l7,v7=(f)=>Object.entries(f).filter(([h])=>h.startsWith(l7.IniSectionType.SSO_SESSION+j1)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(j1)+1)]:s}),{});var b7=B(()=>{l7=o(U1(),1);ow()});var Jg=()=>({}),IE=async(f={})=>g$(f.configFilepath??FE()).then(c$).then(v7).catch(Jg);var m7=B(()=>{TF();b7();UF();CF()});var d7=(...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h};var Qh=async(f)=>{let h=await CE(f);return d7(h.configFile,h.credentialsFile)};var i7=B(()=>{ow()});var c7=()=>{};var hf=B(()=>{aw();rF();H7();ow();m7();i7();c7()});var g7=(f,{preferredFile:h="config",...w}={})=>async()=>{let s=y1(w),{configFile:$,credentialsFile:r}=await CE(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new a(F.message||`Not found in config files w/ profile [${s}]: ${EE(f.toString())}`,{logger:w.logger})}};var x7=B(()=>{Y0();hf()});var Vg=(f)=>typeof f==="function",_7=(f)=>Vg(f)?async()=>await f():Z7(f);var n7=B(()=>{Y0()});var z0=({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>uh(gf(J7(f),g7(h,s),_7(w)));var e7=B(()=>{Y0();V7();x7();n7()});var Kh=B(()=>{e7()});var a7="AWS_ENDPOINT_URL",o7="endpoint_url",p7=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[a7,...w].join("_")];if(s)return s;let $=h[a7];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(j1)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),o7].join(j1)];if(E)return E}}let s=h[o7];if(s)return s;return},default:void 0});var u7=B(()=>{hf()});var LE=async(f)=>z0(p7(f??""))();var IF=B(()=>{Kh();u7()});function t7(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}var O1=(f)=>{if(typeof f==="string")return O1(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=t7(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}};var pw=()=>{};var BE=(f)=>{if(typeof f==="object"){if("url"in f)return O1(f.url);return f}return O1(f)};var AE=B(()=>{pw()});var fX=async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await LE(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(BE(E))}let $=await Pg(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},Pg=async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await Y7(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await R7(s);return s};var LF=B(()=>{S7();IF();AE()});var hX=B(()=>{LF();AE()});var wX,sX=({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)wX.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await fX($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=Xh(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}};var BF=B(()=>{wX=o(m0(),1);cf();LF()});var $X=(f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
40
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var rX=(f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})};function z(f,h,w){return{applyToStack:(s)=>{s.add($X(f,w),Hg),s.add(rX(f,h),AF)}}}var Hg,AF;var EX=B(()=>{Hg={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},AF={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var k=B(()=>{EX()});var Ng,R=(f,h)=>({applyToStack:(w)=>{w.addRelativeTo(sX({config:f,instructions:h}),Ng)}});var TX=B(()=>{k();BF();Ng={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:AF.name}});var uw=(f)=>{let h=f.tls??!0,{endpoint:w}=f,s=w!=null?async()=>BE(await L1(w)()):void 0,r={...f,endpoint:s,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:L1(f.useDualstackEndpoint??!1),useFipsEndpoint:L1(f.useFipsEndpoint??!1)},E=void 0;return r.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!E)E=LE(f.serviceId);return E},r};var UX=B(()=>{cf();IF();AE()});var FX=()=>{};var D=B(()=>{hX();BF();TX();UX();FX()});var l1,th=3,Zh;var GE=B(()=>{(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(l1||(l1={}));Zh=l1.STANDARD});var CX,IX,LX,BX;var AX=B(()=>{CX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],IX=["TimeoutError","RequestTimeout","RequestTimeoutException"],LX=[500,502,503,504],BX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var Dg=(f)=>f.$metadata?.clockSkewCorrected,tw=(f)=>f.$metadata?.httpStatusCode===429||CX.includes(f.name)||f.$retryable?.throttling==!0,x$=(f,h=0)=>Dg(f)||IX.includes(f.name)||BX.includes(f?.code||"")||LX.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&x$(f.cause,h+1),GX=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!x$(f))return!0;return!1}return!1};var _$=B(()=>{AX()});class fs{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?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;let h=this.getCurrentTimeInSeconds();this.lastThrottleTime=h,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){let h=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>fs.setTimeoutFn(w,h))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){let f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}let h=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+h),this.lastTimestamp=f}updateClientSendingRate(f){let h;if(this.updateMeasuredRate(),tw(f)){let s=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),h=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),h=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(h,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(){let f=this.getCurrentTimeInSeconds(),h=Math.floor(f*2)/2;if(this.requestCount++,h>this.lastTxRateBucket){let w=this.requestCount/(h-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=h}}getPrecise(f){return parseFloat(f.toFixed(8))}}var GF=B(()=>{_$();fs.setTimeoutFn=setTimeout});var fw=100,n$=20000,WF=500,WE=500,zF=5,RF=10,XF=1,zE="amz-sdk-invocation-id",RE="amz-sdk-request";var WX=()=>{let f=fw;return{computeNextBackoffDelay:(s)=>{return Math.floor(Math.min(n$,Math.random()*2**s*f))},setDelayBase:(s)=>{f=s}}};var zX=()=>{};var SF=({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:()=>h,getRetryDelay:()=>Math.min(n$,f),getRetryCost:()=>w}};var RX=()=>{};class hs{constructor(f){this.maxAttempts=f,this.mode=l1.STANDARD,this.capacity=WE,this.retryBackoffStrategy=WX(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return SF({retryDelay:fw,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?WF:fw);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,SF({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(WE,this.capacity+(f.getRetryCost()??XF))}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 ${th}`),th}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?RF:zF}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}var XE=B(()=>{GE();zX();RX()});class YF{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l1.ADAPTIVE;let{rateLimiter:w}=h??{};this.rateLimiter=w??new fs,this.standardRetryStrategy=new hs(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var XX=B(()=>{GE();GF();XE()});var SX=B(()=>{XE()});var YX=()=>{};var wf=B(()=>{XX();SX();GF();XE();GE();YX()});var MF=H((MX)=>{Object.defineProperty(MX,"__esModule",{value:!0});MX.default=yg;var qg=kg(B0("crypto"));function kg(f){return f&&f.__esModule?f:{default:f}}var YE=new Uint8Array(256),SE=YE.length;function yg(){if(SE>YE.length-16)qg.default.randomFillSync(YE),SE=0;return YE.slice(SE,SE+=16)}});var ZX=H((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.default=void 0;var Og=/^(?:[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;QX.default=Og});var e$=H((JX)=>{Object.defineProperty(JX,"__esModule",{value:!0});JX.default=void 0;var lg=vg(ZX());function vg(f){return f&&f.__esModule?f:{default:f}}function bg(f){return typeof f==="string"&&lg.default.test(f)}var mg=bg;JX.default=mg});var a$=H((HX)=>{Object.defineProperty(HX,"__esModule",{value:!0});HX.default=void 0;HX.unsafeStringify=PX;var dg=ig(e$());function ig(f){return f&&f.__esModule?f:{default:f}}var f1=[];for(let f=0;f<256;++f)f1.push((f+256).toString(16).slice(1));function PX(f,h=0){return f1[f[h+0]]+f1[f[h+1]]+f1[f[h+2]]+f1[f[h+3]]+"-"+f1[f[h+4]]+f1[f[h+5]]+"-"+f1[f[h+6]]+f1[f[h+7]]+"-"+f1[f[h+8]]+f1[f[h+9]]+"-"+f1[f[h+10]]+f1[f[h+11]]+f1[f[h+12]]+f1[f[h+13]]+f1[f[h+14]]+f1[f[h+15]]}function cg(f,h=0){let w=PX(f,h);if(!dg.default(w))throw TypeError("Stringified UUID is invalid");return w}var gg=cg;HX.default=gg});var yX=H((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.default=void 0;var _g=eg(MF()),ng=a$();function eg(f){return f&&f.__esModule?f:{default:f}}var DX,QF,KF=0,ZF=0;function ag(f,h,w){let s=h&&w||0,$=h||new Array(16);f=f||{};let r=f.node||DX,E=f.clockseq!==void 0?f.clockseq:QF;if(r==null||E==null){let L=f.random||(f.rng||_g.default)();if(r==null)r=DX=[L[0]|1,L[1],L[2],L[3],L[4],L[5]];if(E==null)E=QF=(L[6]<<8|L[7])&16383}let T=f.msecs!==void 0?f.msecs:Date.now(),U=f.nsecs!==void 0?f.nsecs:ZF+1,F=T-KF+(U-ZF)/1e4;if(F<0&&f.clockseq===void 0)E=E+1&16383;if((F<0||T>KF)&&f.nsecs===void 0)U=0;if(U>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");KF=T,ZF=U,QF=E,T+=12219292800000;let C=((T&268435455)*1e4+U)%4294967296;$[s++]=C>>>24&255,$[s++]=C>>>16&255,$[s++]=C>>>8&255,$[s++]=C&255;let I=T/4294967296*1e4&268435455;$[s++]=I>>>8&255,$[s++]=I&255,$[s++]=I>>>24&15|16,$[s++]=I>>>16&255,$[s++]=E>>>8|128,$[s++]=E&255;for(let L=0;L<6;++L)$[s+L]=r[L];return h||ng.unsafeStringify($)}var og=ag;qX.default=og});var JF=H((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.default=void 0;var pg=ug(e$());function ug(f){return f&&f.__esModule?f:{default:f}}function tg(f){if(!pg.default(f))throw TypeError("Invalid UUID");let h,w=new Uint8Array(16);return w[0]=(h=parseInt(f.slice(0,8),16))>>>24,w[1]=h>>>16&255,w[2]=h>>>8&255,w[3]=h&255,w[4]=(h=parseInt(f.slice(9,13),16))>>>8,w[5]=h&255,w[6]=(h=parseInt(f.slice(14,18),16))>>>8,w[7]=h&255,w[8]=(h=parseInt(f.slice(19,23),16))>>>8,w[9]=h&255,w[10]=(h=parseInt(f.slice(24,36),16))/1099511627776&255,w[11]=h/4294967296&255,w[12]=h>>>24&255,w[13]=h>>>16&255,w[14]=h>>>8&255,w[15]=h&255,w}var fx=tg;jX.default=fx});var VF=H((bX)=>{Object.defineProperty(bX,"__esModule",{value:!0});bX.URL=bX.DNS=void 0;bX.default=rx;var hx=a$(),wx=sx(JF());function sx(f){return f&&f.__esModule?f:{default:f}}function $x(f){f=unescape(encodeURIComponent(f));let h=[];for(let w=0;w<f.length;++w)h.push(f.charCodeAt(w));return h}var lX="6ba7b810-9dad-11d1-80b4-00c04fd430c8";bX.DNS=lX;var vX="6ba7b811-9dad-11d1-80b4-00c04fd430c8";bX.URL=vX;function rx(f,h,w){function s($,r,E,T){var U;if(typeof $==="string")$=$x($);if(typeof r==="string")r=wx.default(r);if(((U=r)===null||U===void 0?void 0:U.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+$.length);if(F.set(r),F.set($,r.length),F=w(F),F[6]=F[6]&15|h,F[8]=F[8]&63|128,E){T=T||0;for(let C=0;C<16;++C)E[T+C]=F[C];return E}return hx.unsafeStringify(F)}try{s.name=f}catch($){}return s.DNS=lX,s.URL=vX,s}});var cX=H((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.default=void 0;var Ux=Fx(B0("crypto"));function Fx(f){return f&&f.__esModule?f:{default:f}}function Cx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Ux.default.createHash("md5").update(f).digest()}var Ix=Cx;dX.default=Ix});var nX=H((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.default=void 0;var Lx=gX(VF()),Bx=gX(cX());function gX(f){return f&&f.__esModule?f:{default:f}}var Ax=Lx.default("v3",48,Bx.default),Gx=Ax;xX.default=Gx});var oX=H((eX)=>{Object.defineProperty(eX,"__esModule",{value:!0});eX.default=void 0;var Wx=zx(B0("crypto"));function zx(f){return f&&f.__esModule?f:{default:f}}var Rx={randomUUID:Wx.default.randomUUID};eX.default=Rx});var hS=H((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.default=void 0;var pX=uX(oX()),Xx=uX(MF()),Sx=a$();function uX(f){return f&&f.__esModule?f:{default:f}}function Yx(f,h,w){if(pX.default.randomUUID&&!h&&!f)return pX.default.randomUUID();f=f||{};let s=f.random||(f.rng||Xx.default)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,h){w=w||0;for(let $=0;$<16;++$)h[w+$]=s[$];return h}return Sx.unsafeStringify(s)}var Mx=Yx;tX.default=Mx});var $S=H((wS)=>{Object.defineProperty(wS,"__esModule",{value:!0});wS.default=void 0;var Qx=Kx(B0("crypto"));function Kx(f){return f&&f.__esModule?f:{default:f}}function Zx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Qx.default.createHash("sha1").update(f).digest()}var Jx=Zx;wS.default=Jx});var US=H((ES)=>{Object.defineProperty(ES,"__esModule",{value:!0});ES.default=void 0;var Vx=rS(VF()),Px=rS($S());function rS(f){return f&&f.__esModule?f:{default:f}}var Hx=Vx.default("v5",80,Px.default),Nx=Hx;ES.default=Nx});var IS=H((FS)=>{Object.defineProperty(FS,"__esModule",{value:!0});FS.default=void 0;var Dx="00000000-0000-0000-0000-000000000000";FS.default=Dx});var AS=H((LS)=>{Object.defineProperty(LS,"__esModule",{value:!0});LS.default=void 0;var qx=kx(e$());function kx(f){return f&&f.__esModule?f:{default:f}}function yx(f){if(!qx.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)}var jx=yx;LS.default=jx});var PF=H((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});Object.defineProperty(sf,"NIL",{enumerable:!0,get:function(){return mx.default}});Object.defineProperty(sf,"parse",{enumerable:!0,get:function(){return gx.default}});Object.defineProperty(sf,"stringify",{enumerable:!0,get:function(){return cx.default}});Object.defineProperty(sf,"v1",{enumerable:!0,get:function(){return Ox.default}});Object.defineProperty(sf,"v3",{enumerable:!0,get:function(){return lx.default}});Object.defineProperty(sf,"v4",{enumerable:!0,get:function(){return vx.default}});Object.defineProperty(sf,"v5",{enumerable:!0,get:function(){return bx.default}});Object.defineProperty(sf,"validate",{enumerable:!0,get:function(){return ix.default}});Object.defineProperty(sf,"version",{enumerable:!0,get:function(){return dx.default}});var Ox=xf(yX()),lx=xf(nX()),vx=xf(hS()),bx=xf(US()),mx=xf(IS()),dx=xf(AS()),ix=xf(e$()),cx=xf(a$()),gx=xf(JF());function xf(f){return f&&f.__esModule?f:{default:f}}});var Mf,L80,B80,GS,A80,G80,W80,z80,R80,X80;var WS=B(()=>{Mf=o(PF(),1),L80=Mf.default.v1,B80=Mf.default.v3,GS=Mf.default.v4,A80=Mf.default.v5,G80=Mf.default.NIL,W80=Mf.default.version,z80=Mf.default.validate,R80=Mf.default.stringify,X80=Mf.default.parse});var zS=B(()=>{wf()});var HF=B(()=>{wf()});var NF=B(()=>{_$()});var DF=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var qF=B(()=>{F1();_$();wf();zS();HF();NF()});var RS=B(()=>{wf();qF()});var XS="AWS_MAX_ATTEMPTS",SS="max_attempts",ws,ss=(f)=>{let{retryStrategy:h}=f,w=L1(f.maxAttempts??th);return{...f,maxAttempts:w,retryStrategy:async()=>{if(h)return h;if(await L1(f.retryMode)()===l1.ADAPTIVE)return new YF(w);return new hs(w)}}},xx="AWS_RETRY_MODE",_x="retry_mode",$s;var YS=B(()=>{cf();wf();ws={environmentVariableSelector:(f)=>{let h=f[XS];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${XS} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[SS];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${SS} mast be a number, got "${h}"`);return w},default:th},$s={environmentVariableSelector:(f)=>f[xx],configFileSelector:(f)=>f[_x],default:Zh}});var MS=B(()=>{F1();wf()});var hw=(f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},Jh=(f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},rs=()=>{let f=[],h=[],w=!1,s=new Set,$=(I)=>I.sort((L,G)=>QS[G.step]-QS[L.step]||KS[G.priority||"normal"]-KS[L.priority||"normal"]),r=(I)=>{let L=!1,G=(X)=>{let Q=hw(X.name,X.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0};return f=f.filter(G),h=h.filter(G),L},E=(I)=>{let L=!1,G=(X)=>{if(X.middleware===I){L=!0;for(let Q of hw(X.name,X.aliases))s.delete(Q);return!1}return!0};return f=f.filter(G),h=h.filter(G),L},T=(I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},U=(I)=>{let L=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...U(G))}),L.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)L.push(G);else L.push(...U(G))}),L},F=(I=!1)=>{let L=[],G=[],X={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of hw(q.name,q.aliases))X[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of hw(q.name,q.aliases))X[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=X[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Jh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(U).reduce((M,q)=>{return M.push(...q),M},[])},C={add:(I,L={})=>{let{name:G,override:X,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=hw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Jh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Jh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Jh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:G,override:X,aliases:Q}=L,M={middleware:I,...L},q=hw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Jh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Jh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Jh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(rs()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,G=(X)=>{let{tags:Q,name:M,aliases:q}=X;if(Q&&Q.includes(I)){let N=hw(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0};return f=f.filter(G),h=h.filter(G),L},concat:(I)=>{let L=T(rs());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Jh(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let G of F().map((X)=>X.middleware).reverse())I=G(I,L);if(w)console.log(C.identify());return I}};return C},QS,KS;var ZS=B(()=>{QS={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},KS={high:3,normal:2,low:1}});var kF=B(()=>{ZS()});class ww{constructor(f){this.config=f,this.middlewareStack=rs()}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var JS=B(()=>{kF()});var B1;var VS=B(()=>{B1=o(yw(),1)});class W{constructor(){this.middlewareStack=rs()}static classBuilder(){return new HS}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,G={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[PS.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...F},{requestHandler:X}=h;return I.resolve((Q)=>X.handle(Q.request,w||{}),G)}}class HS{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,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends W{static getEndpointParameterInstructions(){return f._ep}constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}}var PS;var NS=B(()=>{kF();PS=o(U1(),1)});var U0="***SensitiveInformation***";var Es=(f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}};var e0=(f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},Vh=(f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)QE.warn(ME(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")QE.warn(ME(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},S1=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))QE.warn(ME(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},nx,DS=(f)=>{let h=S1(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>nx)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},yF=(f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},qS=(f)=>jF(f,32),kS=(f)=>jF(f,16),yS=(f)=>jF(f,8),jF=(f,h)=>{let w=yF(f);if(w!==void 0&&ex(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},ex=(f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},j=(f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},g=(f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},A=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return QE.warn(ME(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},OF=(f)=>{if(typeof f=="string")return S1(Ts(f));return S1(f)},jS,OS=(f)=>{if(typeof f=="string")return DS(Ts(f));return DS(f)},ax,Ts=(f)=>{let h=f.match(ax);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},lF=(f)=>{if(typeof f=="string")return ox(f);return S1(f)},ox=(f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},r1=(f)=>{if(typeof f==="string")return yF(Ts(f));return yF(f)},M0=(f)=>{if(typeof f==="string")return qS(Ts(f));return qS(f)},vF=(f)=>{if(typeof f==="string")return kS(Ts(f));return kS(f)},lS=(f)=>{if(typeof f==="string")return yS(Ts(f));return yS(f)},ME=(f)=>{return String(new TypeError(f).stack||f).split(`
|
|
41
41
|
`).slice(0,5).filter((h)=>!h.includes("stackTraceWarning")).join(`
|
|
42
|
-
`)},ME;var mF=A(()=>{px=Math.ceil(340282346638528860000000000000000000000),vX=lF,tx=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ME={warn:console.warn}});var h_,w_,dX=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=w_.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,U,T,F]=h,C=bF(dF(s)),I=sw($,"month",1,12),L=sw(r,"day",1,31);return iX(C,I,L,{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F})},s_,a$=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=s_.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,U,T,F,C]=h,I=bF(dF(s)),L=sw($,"month",1,12),G=sw(r,"day",1,31),S=iX(I,L,G,{hours:E,minutes:U,seconds:T,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")S.setTime(S.getTime()-T_(C));return S},BI0,GI0,WI0,Qf=(f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=lF(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},iX=(f,h,w,s)=>{let $=h-1;return r_(f,$,w),new Date(Date.UTC(f,$,w,sw(s.hours,"hour",0,23),sw(s.minutes,"minute",0,59),sw(s.seconds,"seconds",0,60),U_(s.fractionalMilliseconds)))},$_,r_=(f,h,w)=>{let s=$_[h];if(h===1&&E_(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${h_[h]} in ${f}: ${w}`)},E_=(f)=>{return f%4===0&&(f%100!==0||f%400===0)},sw=(f,h,w,s)=>{let $=mX(dF(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},U_=(f)=>{if(f===null||f===void 0)return 0;return bX("0."+f)*1000},T_=(f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},dF=(f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)};var cX=A(()=>{mF();h_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],w_=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),s_=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BI0=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$/),GI0=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$/),WI0=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})$/),$_=[31,28,31,30,31,30,31,31,30,31,30,31]});var $f,l=(f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f};var iF=A(()=>{$f=class $f extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}static isInstance(f){if(!f)return!1;let h=f;return $f.prototype.isPrototypeOf(h)||Boolean(h.$fault)&&Boolean(h.$metadata)&&(h.$fault==="client"||h.$fault==="server")}static[Symbol.hasInstance](f){if(!f)return!1;let h=f;if(this===$f)return $f.isInstance(f);if($f.isInstance(f)){if(h.name&&this.name)return this.prototype.isPrototypeOf(f)||h.name===this.name;return this.prototype.isPrototypeOf(f)}return!1}}});var F_=({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=C_(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw l(E,h)},Ts=(f)=>{return({output:h,parsedBody:w,errorCode:s})=>{F_({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},C_=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var gX=A(()=>{iF()});var Fs=(f)=>{switch(f){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 xX=!1,Cs=(f)=>{if(f&&!xX&&parseInt(f.substring(1,f.indexOf(".")))<16)xX=!0};var I_;var _X=A(()=>{I_=p(yw(),1)});var cF,nX=(f)=>{let h=[];for(let w in cF.AlgorithmId){let s=cF.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{_checksumAlgorithms:h,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},eX=(f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h};var aX=A(()=>{cF=p(T1(),1)});var oX=(f)=>{let h=f.retryStrategy;return{setRetryStrategy(w){h=w},retryStrategy(){return h}}},pX=(f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h};var Is=(f)=>{return{...nX(f),...oX(f)}},Ls=(f)=>{return{...eX(f),...pX(f)}};var uX=A(()=>{aX()});var tX=A(()=>{uX()});var B0=(f)=>Array.isArray(f)?f:[f];var o$=(f)=>{return f!=null};var As=function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})};var fY=A(()=>{As.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof As||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return As(String(f));return As(JSON.stringify(f))};As.fromObject=As.from});class _f{trace(){}debug(){}info(){}warn(){}error(){}}function Y(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,L_(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}hY(s,null,r,E)}return s}var N0=(f,h)=>{let w={};for(let s in h)hY(w,f,h,s);return w},L_=(f,h,w)=>{return Y(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},hY=(f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[U=A_,T=B_,F=s]=E;if(typeof U==="function"&&U(h[F])||typeof U!=="function"&&!!U)f[s]=T(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,U=$===void 0&&(E=r())!=null,T=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(U)f[s]=E;else if(T)f[s]=r()}else{let E=$===void 0&&r!=null,U=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||U)f[s]=r}},A_=(f)=>f!=null,B_=(f)=>f;var G_;var wY=A(()=>{G_=p(yw(),1)});var sY=(f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}};var v=(f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(v);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=v(f[w])}return h}return f};var J=A(()=>{HX();NX();kX();cX();gX();iF();_X();tX();fY();mF();wY()});import{Readable as W_}from"stream";var $Y=(f)=>f?.body instanceof W_||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var rY=()=>{};var z_=(f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(R_($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),U=new Error,T=0,F=0,{request:C}=s,I=n0.isInstance(C);if(I)C.headers[WE]=RX();while(!0)try{if(I)C.headers[zE]=`attempt=${T+1}; max=${r}`;let{response:L,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=T+1,G.$metadata.totalRetryDelay=F,{response:L,output:G}}catch(L){let G=S_(L);if(U=qF(L),I&&$Y(C))throw(w.logger instanceof _f?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),U;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!U.$metadata)U.$metadata={};throw U.$metadata.attempts=T+1,U.$metadata.totalRetryDelay=F,U}T=E.getRetryCount();let S=E.getRetryDelay();F+=S,await new Promise((Q)=>setTimeout(Q,S))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},R_=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",S_=(f)=>{let h={error:f,errorType:X_(f)},w=M_(f.$response);if(w)h.retryAfterHint=w;return h},X_=(f)=>{if(tw(f))return"THROTTLING";if(g$(f))return"TRANSIENT";if(RS(f))return"SERVER_ERROR";return"CLIENT_ERROR"},Y_,Bs=(f)=>({applyToStack:(h)=>{h.add(z_(f),Y_)}}),M_=(f)=>{if(!ch.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)};var EY=A(()=>{F1();x$();J();wf();SX();rY();Y_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var $w=A(()=>{YX();kF();KX();NF();ZX();DF();EY()});var AY,QE="AWS_ACCESS_KEY_ID",KE="AWS_SECRET_ACCESS_KEY",BY="AWS_SESSION_TOKEN",GY="AWS_CREDENTIAL_EXPIRATION",WY="AWS_CREDENTIAL_SCOPE",zY="AWS_ACCOUNT_ID",gF=(f)=>async()=>{f?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let h=process.env[QE],w=process.env[KE],s=process.env[BY],$=process.env[GY],r=process.env[WY],E=process.env[zY];if(h&&w){let U={accessKeyId:h,secretAccessKey:w,...s&&{sessionToken:s},...$&&{expiration:new Date($)},...r&&{credentialScope:r},...E&&{accountId:E}};return AY.setCredentialFeature(U,"CREDENTIALS_ENV_VARS","g"),U}throw new a("Unable to find environment variable credentials.",{logger:f?.logger})};var RY=A(()=>{AY=p(C1(),1);Y0()});var SY={};Th(SY,{fromEnv:()=>gF,ENV_SESSION:()=>BY,ENV_SECRET:()=>KE,ENV_KEY:()=>QE,ENV_EXPIRATION:()=>GY,ENV_CREDENTIAL_SCOPE:()=>WY,ENV_ACCOUNT_ID:()=>zY});var xF=A(()=>{RY()});import{Buffer as Z_}from"buffer";import{request as J_}from"http";function Ph(f){return new Promise((h,w)=>{let s=J_({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new k1("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new k1("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new k1("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(U)=>{E.push(U)}),$.on("end",()=>{h(Z_.concat(E)),s.destroy()})}),s.end()})}var ZE=A(()=>{Y0()});var JE=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string",VE=(f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}});var V_=1000,P_=0,p$=({maxRetries:f=0,timeout:h=1000})=>({maxRetries:f,timeout:h});var u$=(f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w};import{parse as H_}from"url";var PE="AWS_CONTAINER_CREDENTIALS_FULL_URI",HE="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",_F="AWS_CONTAINER_AUTHORIZATION_TOKEN",N_=(f={})=>{let{timeout:h,maxRetries:w}=p$(f);return()=>u$(async()=>{let s=await j_({logger:f.logger}),$=JSON.parse(await D_(h,s));if(!JE($))throw new a("Invalid response received from instance metadata service.",{logger:f.logger});return VE($)},w)},D_=async(f,h)=>{if(process.env[_F])h.headers={...h.headers,Authorization:process.env[_F]};return(await Ph({...h,timeout:f})).toString()},q_="169.254.170.2",k_,y_,j_=async({logger:f})=>{if(process.env[HE])return{hostname:q_,path:process.env[HE]};if(process.env[PE]){let h=H_(process.env[PE]);if(!h.hostname||!(h.hostname in k_))throw new a(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in y_))throw new a(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new a(`The container metadata credential provider cannot be used unless the ${HE} or ${PE} environment variable is set`,{tryNextLink:!1,logger:f})};var XY=A(()=>{Y0();ZE();k_={localhost:!0,"127.0.0.1":!0},y_={"http:":!0,"https:":!0}});var NE;var YY=A(()=>{Y0();NE=class NE extends a{constructor(f,h=!0){super(f,h);this.tryNextLink=h,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,NE.prototype)}}});var rw;var nF=A(()=>{(function(f){f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]"})(rw||(rw={}))});var MY;var QY=A(()=>{MY={environmentVariableSelector:(f)=>f.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(f)=>f.ec2_metadata_service_endpoint,default:void 0}});var Hh;var eF=A(()=>{(function(f){f.IPv4="IPv4",f.IPv6="IPv6"})(Hh||(Hh={}))});var O_="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",l_="ec2_metadata_service_endpoint_mode",KY;var ZY=A(()=>{eF();KY={environmentVariableSelector:(f)=>f[O_],configFileSelector:(f)=>f[l_],default:Hh.IPv4}});var DE=async()=>O1(await v_()||await b_()),v_=async()=>z0(MY)(),b_=async()=>{let f=await z0(KY)();switch(f){case Hh.IPv4:return rw.IPv4;case Hh.IPv6:return rw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(Hh)}`)}};var aF=A(()=>{Kh();pw();nF();QY();eF();ZY()});var oF=(f,h)=>{let w=300+Math.floor(Math.random()*300),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
43
|
-
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}};var
|
|
42
|
+
`)},QE;var bF=B(()=>{nx=Math.ceil(340282346638528860000000000000000000000),jS=OF,ax=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,QE={warn:console.warn}});var px,ux,vS=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=ux.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=vF(mF(s)),I=sw($,"month",1,12),L=sw(r,"day",1,31);return bS(C,I,L,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},tx,o$=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=tx.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=vF(mF(s)),L=sw($,"month",1,12),G=sw(r,"day",1,31),X=bS(I,L,G,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")X.setTime(X.getTime()-$_(C));return X},CI0,II0,LI0,Qf=(f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=OF(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},bS=(f,h,w,s)=>{let $=h-1;return h_(f,$,w),new Date(Date.UTC(f,$,w,sw(s.hours,"hour",0,23),sw(s.minutes,"minute",0,59),sw(s.seconds,"seconds",0,60),s_(s.fractionalMilliseconds)))},f_,h_=(f,h,w)=>{let s=f_[h];if(h===1&&w_(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${px[h]} in ${f}: ${w}`)},w_=(f)=>{return f%4===0&&(f%100!==0||f%400===0)},sw=(f,h,w,s)=>{let $=lS(mF(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},s_=(f)=>{if(f===null||f===void 0)return 0;return OS("0."+f)*1000},$_=(f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},mF=(f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)};var mS=B(()=>{bF();px=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ux=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),tx=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),CI0=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$/),II0=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$/),LI0=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})$/),f_=[31,28,31,30,31,30,31,31,30,31,30,31]});var $f,l=(f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f};var dF=B(()=>{$f=class $f extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}static isInstance(f){if(!f)return!1;let h=f;return $f.prototype.isPrototypeOf(h)||Boolean(h.$fault)&&Boolean(h.$metadata)&&(h.$fault==="client"||h.$fault==="server")}static[Symbol.hasInstance](f){if(!f)return!1;let h=f;if(this===$f)return $f.isInstance(f);if($f.isInstance(f)){if(h.name&&this.name)return this.prototype.isPrototypeOf(f)||h.name===this.name;return this.prototype.isPrototypeOf(f)}return!1}}});var r_=({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=E_(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw l(E,h)},Us=(f)=>{return({output:h,parsedBody:w,errorCode:s})=>{r_({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},E_=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var dS=B(()=>{dF()});var Fs=(f)=>{switch(f){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 iS=!1,Cs=(f)=>{if(f&&!iS&&parseInt(f.substring(1,f.indexOf(".")))<16)iS=!0};var T_;var cS=B(()=>{T_=o(yw(),1)});var iF,gS=(f)=>{let h=[];for(let w in iF.AlgorithmId){let s=iF.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{_checksumAlgorithms:h,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},xS=(f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h};var _S=B(()=>{iF=o(U1(),1)});var nS=(f)=>{let h=f.retryStrategy;return{setRetryStrategy(w){h=w},retryStrategy(){return h}}},eS=(f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h};var Is=(f)=>{return{...gS(f),...nS(f)}},Ls=(f)=>{return{...xS(f),...eS(f)}};var aS=B(()=>{_S()});var oS=B(()=>{aS()});var A0=(f)=>Array.isArray(f)?f:[f];var p$=(f)=>{return f!=null};var Bs=function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})};var pS=B(()=>{Bs.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof Bs||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return Bs(String(f));return Bs(JSON.stringify(f))};Bs.fromObject=Bs.from});class _f{trace(){}debug(){}info(){}warn(){}error(){}}function Y(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,U_(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}uS(s,null,r,E)}return s}var N0=(f,h)=>{let w={};for(let s in h)uS(w,f,h,s);return w},U_=(f,h,w)=>{return Y(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},uS=(f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=F_,U=C_,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},F_=(f)=>f!=null,C_=(f)=>f;var I_;var tS=B(()=>{I_=o(yw(),1)});var fY=(f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}};var v=(f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(v);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=v(f[w])}return h}return f};var J=B(()=>{JS();VS();NS();mS();dS();dF();cS();oS();pS();bF();tS()});import{Readable as L_}from"stream";var hY=(f)=>f?.body instanceof L_||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var wY=()=>{};var B_=(f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(A_($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=n0.isInstance(C);if(I)C.headers[zE]=GS();while(!0)try{if(I)C.headers[RE]=`attempt=${U+1}; max=${r}`;let{response:L,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=U+1,G.$metadata.totalRetryDelay=F,{response:L,output:G}}catch(L){let G=G_(L);if(T=DF(L),I&&hY(C))throw(w.logger instanceof _f?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let X=E.getRetryDelay();F+=X,await new Promise((Q)=>setTimeout(Q,X))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},A_=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",G_=(f)=>{let h={error:f,errorType:W_(f)},w=R_(f.$response);if(w)h.retryAfterHint=w;return h},W_=(f)=>{if(tw(f))return"THROTTLING";if(x$(f))return"TRANSIENT";if(GX(f))return"SERVER_ERROR";return"CLIENT_ERROR"},z_,As=(f)=>({applyToStack:(h)=>{h.add(B_(f),z_)}}),R_=(f)=>{if(!ch.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)};var sY=B(()=>{F1();_$();J();wf();WS();wY();z_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var $w=B(()=>{RS();qF();YS();HF();MS();NF();sY()});var CY,KE="AWS_ACCESS_KEY_ID",ZE="AWS_SECRET_ACCESS_KEY",IY="AWS_SESSION_TOKEN",LY="AWS_CREDENTIAL_EXPIRATION",BY="AWS_CREDENTIAL_SCOPE",AY="AWS_ACCOUNT_ID",cF=(f)=>async()=>{f?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let h=process.env[KE],w=process.env[ZE],s=process.env[IY],$=process.env[LY],r=process.env[BY],E=process.env[AY];if(h&&w){let T={accessKeyId:h,secretAccessKey:w,...s&&{sessionToken:s},...$&&{expiration:new Date($)},...r&&{credentialScope:r},...E&&{accountId:E}};return CY.setCredentialFeature(T,"CREDENTIALS_ENV_VARS","g"),T}throw new a("Unable to find environment variable credentials.",{logger:f?.logger})};var GY=B(()=>{CY=o(C1(),1);Y0()});var WY={};Uh(WY,{fromEnv:()=>cF,ENV_SESSION:()=>IY,ENV_SECRET:()=>ZE,ENV_KEY:()=>KE,ENV_EXPIRATION:()=>LY,ENV_CREDENTIAL_SCOPE:()=>BY,ENV_ACCOUNT_ID:()=>AY});var gF=B(()=>{GY()});import{Buffer as Y_}from"buffer";import{request as M_}from"http";function Ph(f){return new Promise((h,w)=>{let s=M_({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new k1("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new k1("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new k1("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(Y_.concat(E)),s.destroy()})}),s.end()})}var JE=B(()=>{Y0()});var VE=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string",PE=(f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}});var Q_=1000,K_=0,u$=({maxRetries:f=0,timeout:h=1000})=>({maxRetries:f,timeout:h});var t$=(f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w};import{parse as Z_}from"url";var HE="AWS_CONTAINER_CREDENTIALS_FULL_URI",NE="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",xF="AWS_CONTAINER_AUTHORIZATION_TOKEN",J_=(f={})=>{let{timeout:h,maxRetries:w}=u$(f);return()=>t$(async()=>{let s=await D_({logger:f.logger}),$=JSON.parse(await V_(h,s));if(!VE($))throw new a("Invalid response received from instance metadata service.",{logger:f.logger});return PE($)},w)},V_=async(f,h)=>{if(process.env[xF])h.headers={...h.headers,Authorization:process.env[xF]};return(await Ph({...h,timeout:f})).toString()},P_="169.254.170.2",H_,N_,D_=async({logger:f})=>{if(process.env[NE])return{hostname:P_,path:process.env[NE]};if(process.env[HE]){let h=Z_(process.env[HE]);if(!h.hostname||!(h.hostname in H_))throw new a(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in N_))throw new a(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new a(`The container metadata credential provider cannot be used unless the ${NE} or ${HE} environment variable is set`,{tryNextLink:!1,logger:f})};var zY=B(()=>{Y0();JE();H_={localhost:!0,"127.0.0.1":!0},N_={"http:":!0,"https:":!0}});var DE;var RY=B(()=>{Y0();DE=class DE extends a{constructor(f,h=!0){super(f,h);this.tryNextLink=h,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,DE.prototype)}}});var rw;var _F=B(()=>{(function(f){f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]"})(rw||(rw={}))});var XY;var SY=B(()=>{XY={environmentVariableSelector:(f)=>f.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(f)=>f.ec2_metadata_service_endpoint,default:void 0}});var Hh;var nF=B(()=>{(function(f){f.IPv4="IPv4",f.IPv6="IPv6"})(Hh||(Hh={}))});var q_="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",k_="ec2_metadata_service_endpoint_mode",YY;var MY=B(()=>{nF();YY={environmentVariableSelector:(f)=>f[q_],configFileSelector:(f)=>f[k_],default:Hh.IPv4}});var qE=async()=>O1(await y_()||await j_()),y_=async()=>z0(XY)(),j_=async()=>{let f=await z0(YY)();switch(f){case Hh.IPv4:return rw.IPv4;case Hh.IPv6:return rw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(Hh)}`)}};var eF=B(()=>{Kh();pw();_F();SY();nF();MY()});var aF=(f,h)=>{let w=300+Math.floor(Math.random()*300),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
43
|
+
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}};var QY=(f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=aF($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=aF(s,w);else throw r}return s=$,$}};var KY=()=>{};var VY="/latest/meta-data/iam/security-credentials/",O_="/latest/api/token",oF="AWS_EC2_METADATA_V1_DISABLED",ZY="ec2_metadata_v1_disabled",JY="x-aws-ec2-metadata-token",l_=(f={})=>QY(v_(f),{logger:f.logger}),v_=(f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=u$(f),E=async(T,U)=>{if(h||U.headers?.[JY]==null){let I=!1,L=!1,G=await z0({environmentVariableSelector:(X)=>{let Q=X[oF];if(L=!!Q&&Q!=="false",Q===void 0)throw new a(`${oF} not set in env, checking config file next.`,{logger:f.logger});return L},configFileSelector:(X)=>{let Q=X[ZY];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||G){let X=[];if(f.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)X.push(`config file profile (${ZY})`);if(L)X.push(`process environment variable (${oF})`);throw new DE(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let C=(await t$(async()=>{let I;try{I=await m_(U)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)).trim();return t$(async()=>{let I;try{I=await d_(C,U,f)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)};return async()=>{let T=await qE();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...T,timeout:$});else{let U;try{U=(await b_({...T,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...T,timeout:$})}return E(r,{...T,headers:{[JY]:U},timeout:$})}}},b_=async(f)=>Ph({...f,path:O_,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),m_=async(f)=>(await Ph({...f,path:VY})).toString(),d_=async(f,h,w)=>{let s=JSON.parse((await Ph({...h,path:VY+f})).toString());if(!VE(s))throw new a("Invalid response received from instance metadata service.",{logger:w.logger});return PE(s)};var PY=B(()=>{Kh();Y0();RY();JE();eF();KY()});var HY=()=>{};var fr={};Uh(fr,{providerConfigFromInit:()=>u$,httpRequest:()=>Ph,getInstanceMetadataEndpoint:()=>qE,fromInstanceMetadata:()=>l_,fromContainerMetadata:()=>J_,Endpoint:()=>rw,ENV_CMDS_RELATIVE_URI:()=>NE,ENV_CMDS_FULL_URI:()=>HE,ENV_CMDS_AUTH_TOKEN:()=>xF,DEFAULT_TIMEOUT:()=>Q_,DEFAULT_MAX_RETRIES:()=>K_});var hr=B(()=>{zY();PY();HY();JE();eF();_F()});var NY;var DY=B(()=>{NY=["ECONNRESET","EPIPE","ETIMEDOUT"]});var pF=(f)=>{let h={};for(let w of Object.keys(f)){let s=f[w];h[w]=Array.isArray(s)?s.join(","):s}return h};var uF=()=>{};var a0;var Gs=B(()=>{a0={setTimeout:(f,h)=>setTimeout(f,h),clearTimeout:(f)=>clearTimeout(f)}});var qY=1000,kY=(f,h,w=0)=>{if(!w)return-1;let s=($)=>{let r=a0.setTimeout(()=>{f.destroy(),h(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w-$),E=(T)=>{if(T?.connecting)T.on("connect",()=>{a0.clearTimeout(r)});else a0.clearTimeout(r)};if(f.socket)E(f.socket);else f.on("socket",E)};if(w<2000)return s(0),0;return a0.setTimeout(s.bind(null,qY),qY)};var yY=B(()=>{Gs()});var i_=3000,jY=(f,{keepAlive:h,keepAliveMsecs:w},s=i_)=>{if(h!==!0)return-1;let $=()=>{if(f.socket)f.socket.setKeepAlive(h,w||0);else f.on("socket",(r)=>{r.setKeepAlive(h,w||0)})};if(s===0)return $(),0;return a0.setTimeout($,s)};var OY=B(()=>{Gs()});var lY=3000,vY=(f,h,w=mY)=>{let s=($)=>{let r=w-$,E=()=>{f.destroy(),h(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))};if(f.socket)f.socket.setTimeout(r,E);else f.setTimeout(r,E)};if(0<w&&w<6000)return s(0),0;return a0.setTimeout(s.bind(null,w===0?0:lY),lY)};var bY=B(()=>{tF();Gs()});import{Readable as c_}from"stream";async function f2(f,h,w=dY){let s=h.headers??{},$=s.Expect||s.expect,r=-1,E=!0;if($==="100-continue")E=await Promise.race([new Promise((T)=>{r=Number(a0.setTimeout(()=>T(!0),Math.max(dY,w)))}),new Promise((T)=>{f.on("continue",()=>{a0.clearTimeout(r),T(!0)}),f.on("response",()=>{a0.clearTimeout(r),T(!1)}),f.on("error",()=>{a0.clearTimeout(r),T(!1)})})]);if(E)g_(f,h.body)}function g_(f,h){if(h instanceof c_){h.pipe(f);return}if(h){if(Buffer.isBuffer(h)||typeof h==="string"){f.end(h);return}let w=h;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){f.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}f.end(Buffer.from(h));return}f.end()}var dY=6000;var h2=B(()=>{Gs()});import{Agent as iY,request as x_}from"http";import{Agent as cY,request as __}from"https";class rf{static create(f){if(typeof f?.handle==="function")return f;return new rf(f)}static checkSocketUsage(f,h,w=console){let{sockets:s,requests:$,maxSockets:r}=f;if(typeof r!=="number"||r===1/0)return h;let E=15000;if(Date.now()-E<h)return h;if(s&&$)for(let T in s){let U=s[T]?.length??0,F=$[T]?.length??0;if(U>=r&&F>=2*r)return w?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${U} and ${F} additional requests are enqueued.
|
|
44
44
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
45
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return h}constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((h,w)=>{if(typeof f==="function")f().then((s)=>{h(this.resolveDefaultConfig(s))}).catch(w);else h(this.resolveDefaultConfig(f))})}resolveDefaultConfig(f){let{requestTimeout:h,connectionTimeout:w,socketTimeout:s,httpAgent:$,httpsAgent:r}=f||{},E=!0,
|
|
45
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return h}constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((h,w)=>{if(typeof f==="function")f().then((s)=>{h(this.resolveDefaultConfig(s))}).catch(w);else h(this.resolveDefaultConfig(f))})}resolveDefaultConfig(f){let{requestTimeout:h,connectionTimeout:w,socketTimeout:s,httpAgent:$,httpsAgent:r}=f||{},E=!0,T=50;return{connectionTimeout:w,requestTimeout:h??s,httpAgent:(()=>{if($ instanceof iY||typeof $?.destroy==="function")return $;return new iY({keepAlive:!0,maxSockets:50,...$})})(),httpsAgent:(()=>{if(r instanceof cY||typeof r?.destroy==="function")return r;return new cY({keepAlive:!0,maxSockets:50,...r})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(f,{abortSignal:h}={}){if(!this.config)this.config=await this.configProvider;return new Promise((w,s)=>{let $=void 0,r=[],E=async(N)=>{await $,r.forEach(a0.clearTimeout),w(N)},T=async(N)=>{await $,r.forEach(a0.clearTimeout),s(N)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(h?.aborted){let N=new Error("Request aborted");N.name="AbortError",T(N);return}let U=f.protocol==="https:",F=U?this.config.httpsAgent:this.config.httpAgent;r.push(a0.setTimeout(()=>{this.socketWarningTimestamp=rf.checkSocketUsage(F,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let C=gY.buildQueryString(f.query||{}),I=void 0;if(f.username!=null||f.password!=null){let N=f.username??"",y=f.password??"";I=`${N}:${y}`}let L=f.path;if(C)L+=`?${C}`;if(f.fragment)L+=`#${f.fragment}`;let G=f.hostname??"";if(G[0]==="["&&G.endsWith("]"))G=f.hostname.slice(1,-1);else G=f.hostname;let X={headers:f.headers,host:G,method:f.method,path:L,port:f.port,agent:F,auth:I},M=(U?__:x_)(X,(N)=>{let y=new ch({statusCode:N.statusCode||-1,reason:N.statusMessage,headers:pF(N.headers),body:N});E({response:y})});if(M.on("error",(N)=>{if(NY.includes(N.code))T(Object.assign(N,{name:"TimeoutError"}));else T(N)}),h){let N=()=>{M.destroy();let y=new Error("Request aborted");y.name="AbortError",T(y)};if(typeof h.addEventListener==="function"){let y=h;y.addEventListener("abort",N,{once:!0}),M.once("close",()=>y.removeEventListener("abort",N))}else h.onabort=N}r.push(kY(M,T,this.config.connectionTimeout)),r.push(vY(M,T,this.config.requestTimeout));let q=X.agent;if(typeof q==="object"&&"keepAlive"in q)r.push(jY(M,{keepAlive:q.keepAlive,keepAliveMsecs:q.keepAliveMsecs}));$=f2(M,f,this.config.requestTimeout).catch((N)=>{return r.forEach(a0.clearTimeout),s(N)})})}updateHttpClientConfig(f,h){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:h}})}httpHandlerConfigs(){return this.config??{}}}var gY,mY=0;var tF=B(()=>{F1();gY=o(Z$(),1);DY();uF();yY();OY();bY();Gs();h2()});var xY=()=>{};var _Y=B(()=>{xY()});var n_;var nY=B(()=>{F1();n_=o(Z$(),1);uF();_Y();h2()});import{Writable as e_}from"stream";var w2;var eY=B(()=>{w2=class w2 extends e_{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,h,w){this.bufferedBytes.push(f),w()}}});async function o_(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}var Ws=(f)=>{if(a_(f))return o_(f);return new Promise((h,w)=>{let s=new w2;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},a_=(f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream;var aY=B(()=>{eY()});var wr=B(()=>{tF();nY();aY()});var p_="169.254.170.2",u_="169.254.170.23",t_="[fd00:ec2::23]",oY=(f,h)=>{if(f.protocol==="https:")return;if(f.hostname===p_||f.hostname===u_||f.hostname===t_)return;if(f.hostname.includes("[")){if(f.hostname==="[::1]"||f.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(f.hostname==="localhost")return;let w=f.hostname.split("."),s=($)=>{let r=parseInt($,10);return 0<=r&&r<=255};if(w[0]==="127"&&s(w[1])&&s(w[2])&&s(w[3])&&w.length===4)return}throw new a(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
46
46
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
47
47
|
- ECS container host 169.254.170.2
|
|
48
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:h})};var
|
|
49
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let U=new URL(h);f9(U,f.logger);let T=new rf({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return E9(async()=>{let F=s9(U);if($)F.headers.Authorization=$;else if(r)F.headers.Authorization=(await $n.readFile(r)).toString();try{let C=await T.handle(F);return $9(C.response).then((I)=>U9.setCredentialFeature(I,"CREDENTIALS_HTTP","z"))}catch(C){throw new a(String(C),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};var F9=A(()=>{U9=p(C1(),1);wr();Y0();h9();r9()});var E2={};Th(E2,{fromHttp:()=>T9});var U2=A(()=>{F9()});var T2=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var L9=300000,zs="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var C2=H((pB0,z9)=>{var{defineProperty:qE,getOwnPropertyDescriptor:Cn,getOwnPropertyNames:In}=Object,Ln=Object.prototype.hasOwnProperty,F2=(f,h)=>qE(f,"name",{value:h,configurable:!0}),An=(f,h)=>{for(var w in h)qE(f,w,{get:h[w],enumerable:!0})},Bn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of In(h))if(!Ln.call(f,$)&&$!==w)qE(f,$,{get:()=>h[$],enumerable:!(s=Cn(h,$))||s.enumerable})}return f},Gn=(f)=>Bn(qE({},"__esModule",{value:!0}),f),A9={};An(A9,{getHostHeaderPlugin:()=>zn,hostHeaderMiddleware:()=>G9,hostHeaderMiddlewareOptions:()=>W9,resolveHostHeaderConfig:()=>B9});z9.exports=Gn(A9);var Wn=t0();function B9(f){return f}F2(B9,"resolveHostHeaderConfig");var G9=F2((f)=>(h)=>async(w)=>{if(!Wn.HttpRequest.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},"hostHeaderMiddleware"),W9={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},zn=F2((f)=>({applyToStack:(h)=>{h.add(G9(f),W9)}}),"getHostHeaderPlugin")});var I2=H((uB0,M9)=>{var{defineProperty:kE,getOwnPropertyDescriptor:Rn,getOwnPropertyNames:Sn}=Object,Xn=Object.prototype.hasOwnProperty,R9=(f,h)=>kE(f,"name",{value:h,configurable:!0}),Yn=(f,h)=>{for(var w in h)kE(f,w,{get:h[w],enumerable:!0})},Mn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Sn(h))if(!Xn.call(f,$)&&$!==w)kE(f,$,{get:()=>h[$],enumerable:!(s=Rn(h,$))||s.enumerable})}return f},Qn=(f)=>Mn(kE({},"__esModule",{value:!0}),f),S9={};Yn(S9,{getLoggerPlugin:()=>Kn,loggerMiddleware:()=>X9,loggerMiddlewareOptions:()=>Y9});M9.exports=Qn(S9);var X9=R9(()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:U={}}=h,{overrideInputFilterSensitiveLog:T,overrideOutputFilterSensitiveLog:F}=U,C=T??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:L,...G}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(G),metadata:L}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:U={}}=h,{overrideInputFilterSensitiveLog:T}=U,F=T??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},"loggerMiddleware"),Y9={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Kn=R9((f)=>({applyToStack:(h)=>{h.add(X9(),Y9)}}),"getLoggerPlugin")});var A2=H((tB0,V9)=>{var{defineProperty:yE,getOwnPropertyDescriptor:Zn,getOwnPropertyNames:Jn}=Object,Vn=Object.prototype.hasOwnProperty,L2=(f,h)=>yE(f,"name",{value:h,configurable:!0}),Pn=(f,h)=>{for(var w in h)yE(f,w,{get:h[w],enumerable:!0})},Hn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Jn(h))if(!Vn.call(f,$)&&$!==w)yE(f,$,{get:()=>h[$],enumerable:!(s=Zn(h,$))||s.enumerable})}return f},Nn=(f)=>Hn(yE({},"__esModule",{value:!0}),f),K9={};Pn(K9,{addRecursionDetectionMiddlewareOptions:()=>J9,getRecursionDetectionPlugin:()=>yn,recursionDetectionMiddleware:()=>Z9});V9.exports=Nn(K9);var Dn=t0(),Q9="X-Amzn-Trace-Id",qn="AWS_LAMBDA_FUNCTION_NAME",kn="_X_AMZN_TRACE_ID",Z9=L2((f)=>(h)=>async(w)=>{let{request:s}=w;if(!Dn.HttpRequest.isInstance(s)||f.runtime!=="node"||s.headers.hasOwnProperty(Q9))return h(w);let $=process.env[qn],r=process.env[kn],E=L2((U)=>typeof U==="string"&&U.length>0,"nonEmptyString");if(E($)&&E(r))s.headers[Q9]=r;return h({...w,request:s})},"recursionDetectionMiddleware"),J9={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},yn=L2((f)=>({applyToStack:(h)=>{h.add(Z9(f),J9)}}),"getRecursionDetectionPlugin")});var lE=H((fG0,O9)=>{var{defineProperty:jE,getOwnPropertyDescriptor:jn,getOwnPropertyNames:On}=Object,ln=Object.prototype.hasOwnProperty,Q0=(f,h)=>jE(f,"name",{value:h,configurable:!0}),vn=(f,h)=>{for(var w in h)jE(f,w,{get:h[w],enumerable:!0})},bn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of On(h))if(!ln.call(f,$)&&$!==w)jE(f,$,{get:()=>h[$],enumerable:!(s=jn(h,$))||s.enumerable})}return f},mn=(f)=>bn(jE({},"__esModule",{value:!0}),f),P9={};vn(P9,{EndpointCache:()=>dn,EndpointError:()=>Y1,customEndpointFunctions:()=>G2,isIpAddress:()=>H9,isValidHostLabel:()=>z2,resolveEndpoint:()=>Ue});O9.exports=mn(P9);var dn=class{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}static{Q0(this,"EndpointCache")}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}},cn=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}$"),H9=Q0((f)=>cn.test(f)||f.startsWith("[")&&f.endsWith("]"),"isIpAddress"),gn=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),z2=Q0((f,h=!1)=>{if(!h)return gn.test(f);let w=f.split(".");for(let s of w)if(!z2(s))return!1;return!0},"isValidHostLabel"),G2={},sr="endpoints";function nf(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${nf(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(nf).join(", ")})`;return JSON.stringify(f,null,2)}Q0(nf,"toDebugString");var Y1=class extends Error{static{Q0(this,"EndpointError")}constructor(f){super(f);this.name="EndpointError"}},xn=Q0((f,h)=>f===h,"booleanEquals"),_n=Q0((f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new Y1(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new Y1(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w},"getAttrPathList"),N9=Q0((f,h)=>_n(h).reduce((w,s)=>{if(typeof w!=="object")throw new Y1(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f),"getAttr"),nn=Q0((f)=>f!=null,"isSet"),en=Q0((f)=>!f,"not"),W2=T1(),B2={[W2.EndpointURLScheme.HTTP]:80,[W2.EndpointURLScheme.HTTPS]:443},an=Q0((f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:G,protocol:S="",path:Q="",query:M={}}=f,q=new URL(`${S}//${L}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:U}=h;if(U)return null;let T=E.slice(0,-1);if(!Object.values(W2.EndpointURLScheme).includes(T))return null;let F=H9($),C=w.includes(`${s}:${B2[T]}`)||typeof f==="string"&&f.includes(`${s}:${B2[T]}`),I=`${s}${C?`:${B2[T]}`:""}`;return{scheme:T,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}},"parseURL"),on=Q0((f,h)=>f===h,"stringEquals"),pn=Q0((f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)},"substring"),un=Q0((f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),tn={booleanEquals:xn,getAttr:N9,isSet:nn,isValidHostLabel:z2,not:en,parseURL:an,stringEquals:on,substring:pn,uriEncode:un},D9=Q0((f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let U=f.substring(r+1,E);if(U.includes("#")){let[T,F]=U.split("#");w.push(N9(s[T],F))}else w.push(s[U]);$=E+1}return w.join("")},"evaluateTemplate"),fe=Q0(({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]},"getReferenceValue"),OE=Q0((f,h,w)=>{if(typeof f==="string")return D9(f,w);else if(f.fn)return q9(f,w);else if(f.ref)return fe(f,w);throw new Y1(`'${h}': ${String(f)} is not a string, function or reference.`)},"evaluateExpression"),q9=Q0(({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:OE(r,"arg",w)),$=f.split(".");if($[0]in G2&&$[1]!=null)return G2[$[0]][$[1]](...s);return tn[f](...s)},"callFunction"),he=Q0(({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new Y1(`'${f}' is already defined in Reference Record.`);let s=q9(h,w);return w.logger?.debug?.(`${sr} evaluateCondition: ${nf(h)} = ${nf(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}},"evaluateCondition"),R2=Q0((f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=he(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${sr} assign: ${r.name} := ${nf(r.value)}`)}return{result:!0,referenceRecord:w}},"evaluateConditions"),we=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=OE(r,"Header value entry",h);if(typeof E!=="string")throw new Y1(`Header '${s}' value '${E}' is not a string`);return E})}),{}),"getEndpointHeaders"),k9=Q0((f,h)=>{if(Array.isArray(f))return f.map((w)=>k9(w,h));switch(typeof f){case"string":return D9(f,h);case"object":if(f===null)throw new Y1(`Unexpected endpoint property: ${f}`);return y9(f,h);case"boolean":return f;default:throw new Y1(`Unexpected endpoint property type: ${typeof f}`)}},"getEndpointProperty"),y9=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:k9($,h)}),{}),"getEndpointProperties"),se=Q0((f,h)=>{let w=OE(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new Y1(`Endpoint URL must be a string, got ${typeof w}`)},"getEndpointUrl"),$e=Q0((f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=R2(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:U,properties:T,headers:F}=s;return h.logger?.debug?.(`${sr} Resolving endpoint from template: ${nf(s)}`),{...F!=null&&{headers:we(F,E)},...T!=null&&{properties:y9(T,E)},url:se(U,E)}},"evaluateEndpointRule"),re=Q0((f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=R2(w,h);if(!$)return;throw new Y1(OE(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))},"evaluateErrorRule"),Ee=Q0((f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=R2(w,h);if(!$)return;return j9(s,{...h,referenceRecord:{...h.referenceRecord,...r}})},"evaluateTreeRule"),j9=Q0((f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=$e(w,h);if(s)return s}else if(w.type==="error")re(w,h);else if(w.type==="tree"){let s=Ee(w,h);if(s)return s}else throw new Y1(`Unknown endpoint rule: ${w}`);throw new Y1("Rules evaluation failed")},"evaluateRules"),Ue=Q0((f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${sr} Initial EndpointParams: ${nf(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let U=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of U)if(w[F]==null)throw new Y1(`Missing required parameter: '${F}'`);let T=j9(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${sr} Resolved endpoint: ${nf(T)}`),T},"resolveEndpoint")});var bE=H((sG0,_9)=>{var{defineProperty:vE,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Fe}=Object,Ce=Object.prototype.hasOwnProperty,Rs=(f,h)=>vE(f,"name",{value:h,configurable:!0}),Ie=(f,h)=>{for(var w in h)vE(f,w,{get:h[w],enumerable:!0})},Le=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Fe(h))if(!Ce.call(f,$)&&$!==w)vE(f,$,{get:()=>h[$],enumerable:!(s=Te(h,$))||s.enumerable})}return f},Ae=(f)=>Le(vE({},"__esModule",{value:!0}),f),v9={};Ie(v9,{ConditionObject:()=>V0.ConditionObject,DeprecatedObject:()=>V0.DeprecatedObject,EndpointError:()=>V0.EndpointError,EndpointObject:()=>V0.EndpointObject,EndpointObjectHeaders:()=>V0.EndpointObjectHeaders,EndpointObjectProperties:()=>V0.EndpointObjectProperties,EndpointParams:()=>V0.EndpointParams,EndpointResolverOptions:()=>V0.EndpointResolverOptions,EndpointRuleObject:()=>V0.EndpointRuleObject,ErrorRuleObject:()=>V0.ErrorRuleObject,EvaluateOptions:()=>V0.EvaluateOptions,Expression:()=>V0.Expression,FunctionArgv:()=>V0.FunctionArgv,FunctionObject:()=>V0.FunctionObject,FunctionReturn:()=>V0.FunctionReturn,ParameterObject:()=>V0.ParameterObject,ReferenceObject:()=>V0.ReferenceObject,ReferenceRecord:()=>V0.ReferenceRecord,RuleSetObject:()=>V0.RuleSetObject,RuleSetRules:()=>V0.RuleSetRules,TreeRuleObject:()=>V0.TreeRuleObject,awsEndpointFunctions:()=>x9,getUserAgentPrefix:()=>ze,isIpAddress:()=>V0.isIpAddress,partition:()=>c9,resolveEndpoint:()=>V0.resolveEndpoint,setPartitionInfo:()=>g9,useDefaultPartitionInfo:()=>We});_9.exports=Ae(v9);var V0=lE(),b9=Rs((f,h=!1)=>{if(h){for(let w of f.split("."))if(!b9(w))return!1;return!0}if(!V0.isValidHostLabel(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(V0.isIpAddress(f))return!1;return!0},"isVirtualHostableS3Bucket"),l9=":",Be="/",Ge=Rs((f)=>{let h=f.split(l9);if(h.length<6)return null;let[w,s,$,r,E,...U]=h;if(w!=="arn"||s===""||$===""||U.join(l9)==="")return null;let T=U.map((F)=>F.split(Be)).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:T}},"parseArn"),m9={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|mx)\\-\\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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},d9=m9,i9="",c9=Rs((f)=>{let{partitions:h}=d9;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,U]of Object.entries($))if(E===f)return{...r,...U}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},"partition"),g9=Rs((f,h="")=>{d9=f,i9=h},"setPartitionInfo"),We=Rs(()=>{g9(m9,"")},"useDefaultPartitionInfo"),ze=Rs(()=>i9,"getUserAgentPrefix"),x9={isVirtualHostableS3Bucket:b9,parseArn:Ge,partition:c9};V0.customEndpointFunctions.aws=x9});var iE=H(($G0,$M)=>{var{defineProperty:dE,getOwnPropertyDescriptor:Re,getOwnPropertyNames:Se}=Object,Xe=Object.prototype.hasOwnProperty,Ew=(f,h)=>dE(f,"name",{value:h,configurable:!0}),Ye=(f,h)=>{for(var w in h)dE(f,w,{get:h[w],enumerable:!0})},Me=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Se(h))if(!Xe.call(f,$)&&$!==w)dE(f,$,{get:()=>h[$],enumerable:!(s=Re(h,$))||s.enumerable})}return f},Qe=(f)=>Me(dE({},"__esModule",{value:!0}),f),o9={};Ye(o9,{DEFAULT_UA_APP_ID:()=>p9,getUserAgentMiddlewareOptions:()=>sM,getUserAgentPlugin:()=>De,resolveUserAgentConfig:()=>t9,userAgentMiddleware:()=>wM});$M.exports=Qe(o9);var Ke=m0(),p9=void 0;function u9(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}Ew(u9,"isValidUserAgentAppId");function t9(f){let h=Ke.normalizeProvider(f.userAgentAppId??p9);return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent,userAgentAppId:async()=>{let w=await h();if(!u9(w)){let s=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof w!=="string")s?.warn("userAgentAppId must be a string or undefined.");else if(w.length>50)s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return w}}}Ew(t9,"resolveUserAgentConfig");var Ze=bE(),Je=t0(),Kf=O0(),Ve=/\d{12}\.ddb/;async function fM(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")Kf.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))Kf.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else Kf.setFeature(f,"RETRY_MODE_STANDARD","E");else Kf.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(Ve))Kf.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":Kf.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Kf.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Kf.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)Kf.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,U]of Object.entries(r.$source??{}))Kf.setFeature(f,E,U)}}Ew(fM,"checkFeatures");var n9="user-agent",S2="x-amz-user-agent",e9=" ",X2="/",Pe=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,He=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,a9="-",Ne=1024;function hM(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=Ne){if(h.length)h+=","+s;else h+=s;continue}break}return h}Ew(hM,"encodeFeatures");var wM=Ew((f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!Je.HttpRequest.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(mE)||[],U=(await f.defaultUserAgentProvider()).map(mE);await fM(w,f,s);let T=w;U.push(`m/${hM(Object.assign({},w.__smithy_context?.features,T.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(mE)||[],C=await f.userAgentAppId();if(C)U.push(mE([`app/${C}`]));let I=Ze.getUserAgentPrefix(),L=(I?[I]:[]).concat([...U,...E,...F]).join(e9),G=[...U.filter((S)=>S.startsWith("aws-sdk-")),...F].join(e9);if(f.runtime!=="browser"){if(G)r[S2]=r[S2]?`${r[n9]} ${G}`:G;r[n9]=L}else r[S2]=L;return h({...s,request:$})},"userAgentMiddleware"),mE=Ew((f)=>{let h=f[0].split(X2).map((E)=>E.replace(Pe,a9)).join(X2),w=f[1]?.replace(He,a9),s=h.indexOf(X2),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,U,T)=>{switch(T){case 0:return U;case 1:return`${E}/${U}`;default:return`${E}#${U}`}},"")},"escapeUserAgent"),sM={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},De=Ew((f)=>({applyToStack:(h)=>{h.add(wM(f),sM)}}),"getUserAgentPlugin")});var FM=H((rG0,TM)=>{var{defineProperty:cE,getOwnPropertyDescriptor:qe,getOwnPropertyNames:ke}=Object,ye=Object.prototype.hasOwnProperty,rM=(f,h)=>cE(f,"name",{value:h,configurable:!0}),je=(f,h)=>{for(var w in h)cE(f,w,{get:h[w],enumerable:!0})},Oe=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ke(h))if(!ye.call(f,$)&&$!==w)cE(f,$,{get:()=>h[$],enumerable:!(s=qe(h,$))||s.enumerable})}return f},le=(f)=>Oe(cE({},"__esModule",{value:!0}),f),EM={};je(EM,{SelectorType:()=>UM,booleanSelector:()=>ve,numberSelector:()=>be});TM.exports=le(EM);var ve=rM((f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)},"booleanSelector"),be=rM((f,h,w)=>{if(!(h in f))return;let s=parseInt(f[h],10);if(Number.isNaN(s))throw new TypeError(`Cannot load ${w} '${h}'. Expected number, got '${f[h]}'.`);return s},"numberSelector"),UM=((f)=>{return f.ENV="env",f.CONFIG="shared config entry",f})(UM||{})});var Ss=H((EG0,XM)=>{var{defineProperty:xE,getOwnPropertyDescriptor:me,getOwnPropertyNames:de}=Object,ie=Object.prototype.hasOwnProperty,Ef=(f,h)=>xE(f,"name",{value:h,configurable:!0}),ce=(f,h)=>{for(var w in h)xE(f,w,{get:h[w],enumerable:!0})},ge=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of de(h))if(!ie.call(f,$)&&$!==w)xE(f,$,{get:()=>h[$],enumerable:!(s=me(h,$))||s.enumerable})}return f},xe=(f)=>ge(xE({},"__esModule",{value:!0}),f),LM={};ce(LM,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>BM,CONFIG_USE_FIPS_ENDPOINT:()=>WM,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>_e,DEFAULT_USE_FIPS_ENDPOINT:()=>ee,ENV_USE_DUALSTACK_ENDPOINT:()=>AM,ENV_USE_FIPS_ENDPOINT:()=>GM,NODE_REGION_CONFIG_FILE_OPTIONS:()=>fa,NODE_REGION_CONFIG_OPTIONS:()=>te,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ne,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>ae,REGION_ENV_NAME:()=>zM,REGION_INI_NAME:()=>RM,getRegionInfo:()=>ra,resolveCustomEndpointsConfig:()=>oe,resolveEndpointsConfig:()=>ue,resolveRegionConfig:()=>ha});XM.exports=xe(LM);var Nh=FM(),AM="AWS_USE_DUALSTACK_ENDPOINT",BM="use_dualstack_endpoint",_e=!1,ne={environmentVariableSelector:(f)=>Nh.booleanSelector(f,AM,Nh.SelectorType.ENV),configFileSelector:(f)=>Nh.booleanSelector(f,BM,Nh.SelectorType.CONFIG),default:!1},GM="AWS_USE_FIPS_ENDPOINT",WM="use_fips_endpoint",ee=!1,ae={environmentVariableSelector:(f)=>Nh.booleanSelector(f,GM,Nh.SelectorType.ENV),configFileSelector:(f)=>Nh.booleanSelector(f,WM,Nh.SelectorType.CONFIG),default:!1},gE=Fh(),oe=Ef((f)=>{let{endpoint:h,urlParser:w}=f;return{...f,tls:f.tls??!0,endpoint:gE.normalizeProvider(typeof h==="string"?w(h):h),isCustomEndpoint:!0,useDualstackEndpoint:gE.normalizeProvider(f.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),pe=Ef(async(f)=>{let{tls:h=!0}=f,w=await f.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw new Error("Invalid region in client config");let $=await f.useDualstackEndpoint(),r=await f.useFipsEndpoint(),{hostname:E}=await f.regionInfoProvider(w,{useDualstackEndpoint:$,useFipsEndpoint:r})??{};if(!E)throw new Error("Cannot resolve hostname from client config");return f.urlParser(`${h?"https:":"http:"}//${E}`)},"getEndpointFromRegion"),ue=Ef((f)=>{let h=gE.normalizeProvider(f.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:s,urlParser:$}=f;return{...f,tls:f.tls??!0,endpoint:w?gE.normalizeProvider(typeof w==="string"?$(w):w):()=>pe({...f,useDualstackEndpoint:h,useFipsEndpoint:s}),isCustomEndpoint:!!w,useDualstackEndpoint:h}},"resolveEndpointsConfig"),zM="AWS_REGION",RM="region",te={environmentVariableSelector:(f)=>f[zM],configFileSelector:(f)=>f[RM],default:()=>{throw new Error("Region is missing")}},fa={preferredFile:"credentials"},SM=Ef((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),CM=Ef((f)=>SM(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),ha=Ef((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return CM(h);let s=await h();return CM(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(SM(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}},"resolveRegionConfig"),IM=Ef((f=[],{useFipsEndpoint:h,useDualstackEndpoint:w})=>f.find(({tags:s})=>h===s.includes("fips")&&w===s.includes("dualstack"))?.hostname,"getHostnameFromVariants"),wa=Ef((f,{regionHostname:h,partitionHostname:w})=>h?h:w?w.replace("{region}",f):void 0,"getResolvedHostname"),sa=Ef((f,{partitionHash:h})=>Object.keys(h||{}).find((w)=>h[w].regions.includes(f))??"aws","getResolvedPartition"),$a=Ef((f,{signingRegion:h,regionRegex:w,useFipsEndpoint:s})=>{if(h)return h;else if(s){let $=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),r=f.match($);if(r)return r[0].slice(1,-1)}},"getResolvedSigningRegion"),ra=Ef((f,{useFipsEndpoint:h=!1,useDualstackEndpoint:w=!1,signingService:s,regionHash:$,partitionHash:r})=>{let E=sa(f,{partitionHash:r}),U=f in $?f:r[E]?.endpoint??f,T={useFipsEndpoint:h,useDualstackEndpoint:w},F=IM($[U]?.variants,T),C=IM(r[E]?.variants,T),I=wa(U,{regionHostname:F,partitionHostname:C});if(I===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:U,useFipsEndpoint:h,useDualstackEndpoint:w}}`);let L=$a(I,{signingRegion:$[U]?.signingRegion,regionRegex:r[E].regionRegex,useFipsEndpoint:h});return{partition:E,signingService:s,hostname:I,...L&&{signingRegion:L},...$[U]?.signingService&&{signingService:$[U].signingService}}},"getRegionInfo")});var M2=H((UG0,ZM)=>{var{defineProperty:_E,getOwnPropertyDescriptor:Ea,getOwnPropertyNames:Ua}=Object,Ta=Object.prototype.hasOwnProperty,MM=(f,h)=>_E(f,"name",{value:h,configurable:!0}),Fa=(f,h)=>{for(var w in h)_E(f,w,{get:h[w],enumerable:!0})},Ca=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ua(h))if(!Ta.call(f,$)&&$!==w)_E(f,$,{get:()=>h[$],enumerable:!(s=Ea(h,$))||s.enumerable})}return f},Ia=(f)=>Ca(_E({},"__esModule",{value:!0}),f),QM={};Fa(QM,{contentLengthMiddleware:()=>Y2,contentLengthMiddlewareOptions:()=>KM,getContentLengthPlugin:()=>Aa});ZM.exports=Ia(QM);var La=t0(),YM="content-length";function Y2(f){return(h)=>async(w)=>{let s=w.request;if(La.HttpRequest.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(YM)===-1)try{let E=f($);s.headers={...s.headers,[YM]:String(E)}}catch(E){}}return h({...w,request:s})}}MM(Y2,"contentLengthMiddleware");var KM={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Aa=MM((f)=>({applyToStack:(h)=>{h.add(Y2(f.bodyLengthChecker),KM)}}),"getContentLengthPlugin")});var Xs=H((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.getHomeDir=void 0;var Ba=A0("os"),Ga=A0("path"),Q2={},Wa=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},za=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Ga.sep}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Wa();if(!Q2[$])Q2[$]=Ba.homedir();return Q2[$]};JM.getHomeDir=za});var K2=H((PM)=>{Object.defineProperty(PM,"__esModule",{value:!0});PM.getSSOTokenFilepath=void 0;var Ra=A0("crypto"),Sa=A0("path"),Xa=Xs(),Ya=(f)=>{let w=Ra.createHash("sha1").update(f).digest("hex");return Sa.join(Xa.getHomeDir(),".aws","sso","cache",`${w}.json`)};PM.getSSOTokenFilepath=Ya});var qM=H((NM)=>{Object.defineProperty(NM,"__esModule",{value:!0});NM.getSSOTokenFromFile=void 0;var Ma=A0("fs"),Qa=K2(),{readFile:Ka}=Ma.promises,Za=async(f)=>{let h=Qa.getSSOTokenFilepath(f),w=await Ka(h,"utf8");return JSON.parse(w)};NM.getSSOTokenFromFile=Za});var J2=H((kM)=>{Object.defineProperty(kM,"__esModule",{value:!0});kM.slurpFile=void 0;var Ja=A0("fs"),{readFile:Va}=Ja.promises,Z2={},Pa=(f,h)=>{if(!Z2[f]||(h===null||h===void 0?void 0:h.ignoreCache))Z2[f]=Va(f,"utf8");return Z2[f]};kM.slurpFile=Pa});var N2=H((LG0,rr)=>{var{defineProperty:aE,getOwnPropertyDescriptor:Ha,getOwnPropertyNames:Na}=Object,Da=Object.prototype.hasOwnProperty,v1=(f,h)=>aE(f,"name",{value:h,configurable:!0}),qa=(f,h)=>{for(var w in h)aE(f,w,{get:h[w],enumerable:!0})},V2=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Na(h))if(!Da.call(f,$)&&$!==w)aE(f,$,{get:()=>h[$],enumerable:!(s=Ha(h,$))||s.enumerable})}return f},H2=(f,h,w)=>(V2(f,h,"default"),w&&V2(w,h,"default")),ka=(f)=>V2(aE({},"__esModule",{value:!0}),f),$r={};qa($r,{CONFIG_PREFIX_SEPARATOR:()=>Uw,DEFAULT_PROFILE:()=>vM,ENV_PROFILE:()=>lM,getProfileName:()=>ya,loadSharedConfigFiles:()=>mM,loadSsoSessionData:()=>na,parseKnownFiles:()=>aa});rr.exports=ka($r);H2($r,Xs(),rr.exports);var lM="AWS_PROFILE",vM="default",ya=v1((f)=>f.profile||process.env[lM]||vM,"getProfileName");H2($r,K2(),rr.exports);H2($r,qM(),rr.exports);var nE=T1(),ja=v1((f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(Uw);if(w===-1)return!1;return Object.values(nE.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(Uw),r=w.substring(0,$)===nE.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}}),"getConfigData"),eE=A0("path"),Oa=Xs(),la="AWS_CONFIG_FILE",bM=v1(()=>process.env[la]||eE.join(Oa.getHomeDir(),".aws","config"),"getConfigFilepath"),va=Xs(),ba="AWS_SHARED_CREDENTIALS_FILE",ma=v1(()=>process.env[ba]||eE.join(va.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),da=Xs(),ia=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,ca=["__proto__","profile __proto__"],P2=v1((f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let U=r.substring(1,r.length-1),T=ia.exec(U);if(T){let[,F,,C]=T;if(Object.values(nE.IniSectionType).includes(F))w=[F,C].join(Uw)}else w=U;if(ca.includes(U))throw new Error(`Found invalid profile name "${U}"`)}else if(w){let U=r.indexOf("=");if(![0,-1].includes(U)){let[T,F]=[r.substring(0,U).trim(),r.substring(U+1).trim()];if(F==="")s=T;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,T].join(Uw):T;h[w][C]=F}}}}return h},"parseIni"),jM=J2(),OM=v1(()=>({}),"swallowError"),Uw=".",mM=v1(async(f={})=>{let{filepath:h=ma(),configFilepath:w=bM()}=f,s=da.getHomeDir(),$="~/",r=h;if(h.startsWith("~/"))r=eE.join(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=eE.join(s,w.slice(2));let U=await Promise.all([jM.slurpFile(E,{ignoreCache:f.ignoreCache}).then(P2).then(ja).catch(OM),jM.slurpFile(r,{ignoreCache:f.ignoreCache}).then(P2).catch(OM)]);return{configFile:U[0],credentialsFile:U[1]}},"loadSharedConfigFiles"),ga=v1((f)=>Object.entries(f).filter(([h])=>h.startsWith(nE.IniSectionType.SSO_SESSION+Uw)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(Uw)+1)]:s}),{}),"getSsoSessionData"),xa=J2(),_a=v1(()=>({}),"swallowError"),na=v1(async(f={})=>xa.slurpFile(f.configFilepath??bM()).then(P2).then(ga).catch(_a),"loadSsoSessionData"),ea=v1((...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h},"mergeConfigFiles"),aa=v1(async(f)=>{let h=await mM(f);return ea(h.configFile,h.credentialsFile)},"parseKnownFiles")});var Ms=H((AG0,cM)=>{var{defineProperty:oE,getOwnPropertyDescriptor:oa,getOwnPropertyNames:pa}=Object,ua=Object.prototype.hasOwnProperty,Ys=(f,h)=>oE(f,"name",{value:h,configurable:!0}),ta=(f,h)=>{for(var w in h)oE(f,w,{get:h[w],enumerable:!0})},fo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of pa(h))if(!ua.call(f,$)&&$!==w)oE(f,$,{get:()=>h[$],enumerable:!(s=oa(h,$))||s.enumerable})}return f},ho=(f)=>fo(oE({},"__esModule",{value:!0}),f),iM={};ta(iM,{loadConfig:()=>Eo});cM.exports=ho(iM);var Er=D$();function D2(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}Ys(D2,"getSelectorName");var wo=Ys((f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new Er.CredentialsProviderError(w.message||`Not found in ENV: ${D2(f.toString())}`,{logger:h})}},"fromEnv"),dM=N2(),so=Ys((f,{preferredFile:h="config",...w}={})=>async()=>{let s=dM.getProfileName(w),{configFile:$,credentialsFile:r}=await dM.loadSharedConfigFiles(w),E=r[s]||{},U=$[s]||{},T=h==="config"?{...E,...U}:{...U,...E};try{let C=f(T,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new Er.CredentialsProviderError(F.message||`Not found in config files w/ profile [${s}]: ${D2(f.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),$o=Ys((f)=>typeof f==="function","isFunction"),ro=Ys((f)=>$o(f)?async()=>await f():Er.fromStatic(f),"fromStatic"),Eo=Ys(({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>Er.memoize(Er.chain(wo(f),so(h,s),ro(w))),"loadConfig")});var aM=H((nM)=>{Object.defineProperty(nM,"__esModule",{value:!0});nM.getEndpointUrlConfig=void 0;var gM=N2(),xM="AWS_ENDPOINT_URL",_M="endpoint_url",Uo=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[xM,...w].join("_")];if(s)return s;let $=h[xM];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(gM.CONFIG_PREFIX_SEPARATOR)];if($){let r=f.split(" ").map((U)=>U.toLowerCase()),E=$[[r.join("_"),_M].join(gM.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}let s=h[_M];if(s)return s;return},default:void 0});nM.getEndpointUrlConfig=Uo});var q2=H((oM)=>{Object.defineProperty(oM,"__esModule",{value:!0});oM.getEndpointFromConfig=void 0;var To=Ms(),Fo=aM(),Co=async(f)=>To.loadConfig(Fo.getEndpointUrlConfig(f!==null&&f!==void 0?f:""))();oM.getEndpointFromConfig=Co});var hQ=H((WG0,fQ)=>{var{defineProperty:pE,getOwnPropertyDescriptor:Io,getOwnPropertyNames:Lo}=Object,Ao=Object.prototype.hasOwnProperty,Bo=(f,h)=>pE(f,"name",{value:h,configurable:!0}),Go=(f,h)=>{for(var w in h)pE(f,w,{get:h[w],enumerable:!0})},Wo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Lo(h))if(!Ao.call(f,$)&&$!==w)pE(f,$,{get:()=>h[$],enumerable:!(s=Io(h,$))||s.enumerable})}return f},zo=(f)=>Wo(pE({},"__esModule",{value:!0}),f),uM={};Go(uM,{parseQueryString:()=>tM});fQ.exports=zo(uM);function tM(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}Bo(tM,"parseQueryString")});var Ur=H((zG0,$Q)=>{var{defineProperty:uE,getOwnPropertyDescriptor:Ro,getOwnPropertyNames:So}=Object,Xo=Object.prototype.hasOwnProperty,Yo=(f,h)=>uE(f,"name",{value:h,configurable:!0}),Mo=(f,h)=>{for(var w in h)uE(f,w,{get:h[w],enumerable:!0})},Qo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of So(h))if(!Xo.call(f,$)&&$!==w)uE(f,$,{get:()=>h[$],enumerable:!(s=Ro(h,$))||s.enumerable})}return f},Ko=(f)=>Qo(uE({},"__esModule",{value:!0}),f),wQ={};Mo(wQ,{parseUrl:()=>sQ});$Q.exports=Ko(wQ);var Zo=hQ(),sQ=Yo((f)=>{if(typeof f==="string")return sQ(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=Zo.parseQueryString(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}},"parseUrl")});var Qs=H((RG0,IQ)=>{var{defineProperty:f5,getOwnPropertyDescriptor:Jo,getOwnPropertyNames:Vo}=Object,Po=Object.prototype.hasOwnProperty,Uf=(f,h)=>f5(f,"name",{value:h,configurable:!0}),Ho=(f,h)=>{for(var w in h)f5(f,w,{get:h[w],enumerable:!0})},No=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Vo(h))if(!Po.call(f,$)&&$!==w)f5(f,$,{get:()=>h[$],enumerable:!(s=Jo(h,$))||s.enumerable})}return f},Do=(f)=>No(f5({},"__esModule",{value:!0}),f),EQ={};Ho(EQ,{endpointMiddleware:()=>FQ,endpointMiddlewareOptions:()=>CQ,getEndpointFromInstructions:()=>UQ,getEndpointPlugin:()=>co,resolveEndpointConfig:()=>xo,resolveParams:()=>TQ,toEndpointV1:()=>k2});IQ.exports=Do(EQ);var qo=Uf(async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(lo(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Oo(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),ko=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,yo=/(\d+\.){3}\d+/,jo=/\.\./,Oo=Uf((f)=>ko.test(f)&&!yo.test(f)&&!jo.test(f),"isDnsCompatibleBucketName"),lo=Uf((f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E},"isArnBucketName"),vo=Uf((f,h,w)=>{let s=Uf(async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $},"configProvider");if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:U,path:T}=$;return`${r}//${E}${U?":"+U:""}${T}`}}return $};return s},"createConfigValueProvider"),bo=q2(),rQ=Ur(),k2=Uf((f)=>{if(typeof f==="object"){if("url"in f)return rQ.parseUrl(f.url);return f}return rQ.parseUrl(f)},"toEndpointV1"),UQ=Uf(async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await bo.getEndpointFromConfig(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(k2(E))}let $=await TQ(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},"getEndpointFromInstructions"),TQ=Uf(async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await vo(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await qo(s);return s},"resolveParams"),mo=m0(),tE=Fh(),FQ=Uf(({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)mo.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await UQ($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let T=tE.getSmithyContext(s)?.selectedHttpAuthScheme?.httpAuthOption;if(T)T.signingProperties=Object.assign(T.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}},"endpointMiddleware"),io=Dw(),CQ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:io.serializerMiddlewareOption.name},co=Uf((f,h)=>({applyToStack:(w)=>{w.addRelativeTo(FQ({config:f,instructions:h}),CQ)}}),"getEndpointPlugin"),go=q2(),xo=Uf((f)=>{let h=f.tls??!0,{endpoint:w}=f,s=w!=null?async()=>k2(await tE.normalizeProvider(w)()):void 0,r={...f,endpoint:s,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:tE.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:tE.normalizeProvider(f.useFipsEndpoint??!1)},E=void 0;return r.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!E)E=go.getEndpointFromConfig(f.serviceId);return E},r},"resolveEndpointConfig")});var j2=H((SG0,BQ)=>{var{defineProperty:h5,getOwnPropertyDescriptor:_o,getOwnPropertyNames:no}=Object,eo=Object.prototype.hasOwnProperty,Ks=(f,h)=>h5(f,"name",{value:h,configurable:!0}),ao=(f,h)=>{for(var w in h)h5(f,w,{get:h[w],enumerable:!0})},oo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of no(h))if(!eo.call(f,$)&&$!==w)h5(f,$,{get:()=>h[$],enumerable:!(s=_o(h,$))||s.enumerable})}return f},po=(f)=>oo(h5({},"__esModule",{value:!0}),f),LQ={};ao(LQ,{isClockSkewCorrectedError:()=>AQ,isClockSkewError:()=>$p,isRetryableByTrait:()=>sp,isServerError:()=>Ep,isThrottlingError:()=>rp,isTransientError:()=>y2});BQ.exports=po(LQ);var uo=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],to=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],fp=["TimeoutError","RequestTimeout","RequestTimeoutException"],hp=[500,502,503,504],wp=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],sp=Ks((f)=>f.$retryable!==void 0,"isRetryableByTrait"),$p=Ks((f)=>uo.includes(f.name),"isClockSkewError"),AQ=Ks((f)=>f.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),rp=Ks((f)=>f.$metadata?.httpStatusCode===429||to.includes(f.name)||f.$retryable?.throttling==!0,"isThrottlingError"),y2=Ks((f,h=0)=>AQ(f)||fp.includes(f.name)||wp.includes(f?.code||"")||hp.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&y2(f.cause,h+1),"isTransientError"),Ep=Ks((f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!y2(f))return!0;return!1}return!1},"isServerError")});var s5=H((XG0,QQ)=>{var{defineProperty:w5,getOwnPropertyDescriptor:Up,getOwnPropertyNames:Tp}=Object,Fp=Object.prototype.hasOwnProperty,Tf=(f,h)=>w5(f,"name",{value:h,configurable:!0}),Cp=(f,h)=>{for(var w in h)w5(f,w,{get:h[w],enumerable:!0})},Ip=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tp(h))if(!Fp.call(f,$)&&$!==w)w5(f,$,{get:()=>h[$],enumerable:!(s=Up(h,$))||s.enumerable})}return f},Lp=(f)=>Ip(w5({},"__esModule",{value:!0}),f),WQ={};Cp(WQ,{AdaptiveRetryStrategy:()=>Rp,ConfiguredRetryStrategy:()=>Sp,DEFAULT_MAX_ATTEMPTS:()=>O2,DEFAULT_RETRY_DELAY_BASE:()=>Tr,DEFAULT_RETRY_MODE:()=>Ap,DefaultRateLimiter:()=>RQ,INITIAL_RETRY_TOKENS:()=>l2,INVOCATION_ID_HEADER:()=>Gp,MAXIMUM_RETRY_DELAY:()=>v2,NO_RETRY_INCREMENT:()=>MQ,REQUEST_HEADER:()=>Wp,RETRY_COST:()=>XQ,RETRY_MODES:()=>zQ,StandardRetryStrategy:()=>b2,THROTTLING_RETRY_DELAY_BASE:()=>SQ,TIMEOUT_RETRY_COST:()=>YQ});QQ.exports=Lp(WQ);var zQ=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(zQ||{}),O2=3,Ap="standard",Bp=j2(),RQ=class f{constructor(h){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=h?.beta??0.7,this.minCapacity=h?.minCapacity??1,this.minFillRate=h?.minFillRate??0.5,this.scaleConstant=h?.scaleConstant??0.4,this.smooth=h?.smooth??0.8;let w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{Tf(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(h){if(!this.enabled)return;if(this.refillTokenBucket(),h>this.currentCapacity){let w=(h-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>f.setTimeoutFn(s,w))}this.currentCapacity=this.currentCapacity-h}refillTokenBucket(){let h=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=h;return}let w=(h-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=h}updateClientSendingRate(h){let w;if(this.updateMeasuredRate(),Bp.isThrottlingError(h)){let $=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=$,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle($),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(h){return this.getPrecise(h*this.beta)}cubicSuccess(h){return this.getPrecise(this.scaleConstant*Math.pow(h-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(h){this.refillTokenBucket(),this.fillRate=Math.max(h,this.minFillRate),this.maxCapacity=Math.max(h,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let h=this.getCurrentTimeInSeconds(),w=Math.floor(h*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){let s=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(h){return parseFloat(h.toFixed(8))}},Tr=100,v2=20000,SQ=500,l2=500,XQ=5,YQ=10,MQ=1,Gp="amz-sdk-invocation-id",Wp="amz-sdk-request",zp=Tf(()=>{let f=Tr;return{computeNextBackoffDelay:Tf((s)=>{return Math.floor(Math.min(v2,Math.random()*2**s*f))},"computeNextBackoffDelay"),setDelayBase:Tf((s)=>{f=s},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),GQ=Tf(({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:Tf(()=>h,"getRetryCount"),getRetryDelay:Tf(()=>Math.min(v2,f),"getRetryDelay"),getRetryCost:Tf(()=>w,"getRetryCost")}},"createDefaultRetryToken"),b2=class{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=l2,this.retryBackoffStrategy=zp(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}static{Tf(this,"StandardRetryStrategy")}async acquireInitialRetryToken(f){return GQ({retryDelay:Tr,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?SQ:Tr);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,GQ({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(l2,this.capacity+(f.getRetryCost()??MQ))}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 ${O2}`),O2}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?YQ:XQ}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}},Rp=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode="adaptive";let{rateLimiter:w}=h??{};this.rateLimiter=w??new RQ,this.standardRetryStrategy=new b2(f)}static{Tf(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}},Sp=class extends b2{static{Tf(this,"ConfiguredRetryStrategy")}constructor(f,h=Tr){super(typeof f==="function"?f:async()=>f);if(typeof h==="number")this.computeNextBackoffDelay=()=>h;else this.computeNextBackoffDelay=h}async refreshRetryTokenForRetry(f,h){let w=await super.refreshRetryTokenForRetry(f,h);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}}});var JQ=H((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.isStreamingPayload=void 0;var Xp=A0("stream"),Yp=(f)=>(f===null||f===void 0?void 0:f.body)instanceof Xp.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;KQ.isStreamingPayload=Yp});var Fr=H((ZG0,dQ)=>{var{defineProperty:$5,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Qp}=Object,Kp=Object.prototype.hasOwnProperty,x0=(f,h)=>$5(f,"name",{value:h,configurable:!0}),Zp=(f,h)=>{for(var w in h)$5(f,w,{get:h[w],enumerable:!0})},Jp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Qp(h))if(!Kp.call(f,$)&&$!==w)$5(f,$,{get:()=>h[$],enumerable:!(s=Mp(h,$))||s.enumerable})}return f},Vp=(f)=>Jp($5({},"__esModule",{value:!0}),f),PQ={};Zp(PQ,{AdaptiveRetryStrategy:()=>Np,CONFIG_MAX_ATTEMPTS:()=>d2,CONFIG_RETRY_MODE:()=>jQ,ENV_MAX_ATTEMPTS:()=>m2,ENV_RETRY_MODE:()=>yQ,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Dp,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>kp,StandardRetryStrategy:()=>kQ,defaultDelayDecider:()=>NQ,defaultRetryDecider:()=>DQ,getOmitRetryHeadersPlugin:()=>yp,getRetryAfterHint:()=>mQ,getRetryPlugin:()=>mp,omitRetryHeadersMiddleware:()=>OQ,omitRetryHeadersMiddlewareOptions:()=>lQ,resolveRetryConfig:()=>qp,retryMiddleware:()=>vQ,retryMiddlewareOptions:()=>bQ});dQ.exports=Vp(PQ);var Zs=t0(),HQ=HF(),l0=s5(),Pp=x0((f,h)=>{let w=f,s=h?.noRetryIncrement??l0.NO_RETRY_INCREMENT,$=h?.retryCost??l0.RETRY_COST,r=h?.timeoutRetryCost??l0.TIMEOUT_RETRY_COST,E=f,U=x0((I)=>I.name==="TimeoutError"?r:$,"getCapacityAmount"),T=x0((I)=>U(I)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:T,retrieveRetryTokens:x0((I)=>{if(!T(I))throw new Error("No retry token available");let L=U(I);return E-=L,L},"retrieveRetryTokens"),releaseRetryTokens:x0((I)=>{E+=I??s,E=Math.min(E,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),NQ=x0((f,h)=>Math.floor(Math.min(l0.MAXIMUM_RETRY_DELAY,Math.random()*2**h*f)),"defaultDelayDecider"),Dh=j2(),DQ=x0((f)=>{if(!f)return!1;return Dh.isRetryableByTrait(f)||Dh.isClockSkewError(f)||Dh.isThrottlingError(f)||Dh.isTransientError(f)},"defaultRetryDecider"),qQ=x0((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),kQ=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l0.RETRY_MODES.STANDARD,this.retryDecider=h?.retryDecider??DQ,this.delayDecider=h?.delayDecider??NQ,this.retryQuota=h?.retryQuota??Pp(l0.INITIAL_RETRY_TOKENS)}static{x0(this,"StandardRetryStrategy")}shouldRetry(f,h,w){return h<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(h){f=l0.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,h,w){let s,$=0,r=0,E=await this.getMaxAttempts(),{request:U}=h;if(Zs.HttpRequest.isInstance(U))U.headers[l0.INVOCATION_ID_HEADER]=HQ.v4();while(!0)try{if(Zs.HttpRequest.isInstance(U))U.headers[l0.REQUEST_HEADER]=`attempt=${$+1}; max=${E}`;if(w?.beforeRequest)await w.beforeRequest();let{response:T,output:F}=await f(h);if(w?.afterRequest)w.afterRequest(T);return this.retryQuota.releaseRetryTokens(s),F.$metadata.attempts=$+1,F.$metadata.totalRetryDelay=r,{response:T,output:F}}catch(T){let F=qQ(T);if($++,this.shouldRetry(F,$,E)){s=this.retryQuota.retrieveRetryTokens(F);let C=this.delayDecider(Dh.isThrottlingError(F)?l0.THROTTLING_RETRY_DELAY_BASE:l0.DEFAULT_RETRY_DELAY_BASE,$),I=Hp(F.$response),L=Math.max(I||0,C);r+=L,await new Promise((G)=>setTimeout(G,L));continue}if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=$,F.$metadata.totalRetryDelay=r,F}}},Hp=x0((f)=>{if(!Zs.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return s*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Np=class extends kQ{static{x0(this,"AdaptiveRetryStrategy")}constructor(f,h){let{rateLimiter:w,...s}=h??{};super(f,s);this.rateLimiter=w??new l0.DefaultRateLimiter,this.mode=l0.RETRY_MODES.ADAPTIVE}async retry(f,h){return super.retry(f,h,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}},VQ=Fh(),m2="AWS_MAX_ATTEMPTS",d2="max_attempts",Dp={environmentVariableSelector:(f)=>{let h=f[m2];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${m2} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[d2];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${d2} mast be a number, got "${h}"`);return w},default:l0.DEFAULT_MAX_ATTEMPTS},qp=x0((f)=>{let{retryStrategy:h}=f,w=VQ.normalizeProvider(f.maxAttempts??l0.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:w,retryStrategy:async()=>{if(h)return h;if(await VQ.normalizeProvider(f.retryMode)()===l0.RETRY_MODES.ADAPTIVE)return new l0.AdaptiveRetryStrategy(w);return new l0.StandardRetryStrategy(w)}}},"resolveRetryConfig"),yQ="AWS_RETRY_MODE",jQ="retry_mode",kp={environmentVariableSelector:(f)=>f[yQ],configFileSelector:(f)=>f[jQ],default:l0.DEFAULT_RETRY_MODE},OQ=x0(()=>(f)=>async(h)=>{let{request:w}=h;if(Zs.HttpRequest.isInstance(w))delete w.headers[l0.INVOCATION_ID_HEADER],delete w.headers[l0.REQUEST_HEADER];return f(h)},"omitRetryHeadersMiddleware"),lQ={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},yp=x0((f)=>({applyToStack:(h)=>{h.addRelativeTo(OQ(),lQ)}}),"getOmitRetryHeadersPlugin"),jp=J0(),Op=JQ(),vQ=x0((f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(lp($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),U=new Error,T=0,F=0,{request:C}=s,I=Zs.HttpRequest.isInstance(C);if(I)C.headers[l0.INVOCATION_ID_HEADER]=HQ.v4();while(!0)try{if(I)C.headers[l0.REQUEST_HEADER]=`attempt=${T+1}; max=${r}`;let{response:L,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=T+1,G.$metadata.totalRetryDelay=F,{response:L,output:G}}catch(L){let G=vp(L);if(U=qQ(L),I&&Op.isStreamingPayload(C))throw(w.logger instanceof jp.NoOpLogger?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),U;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!U.$metadata)U.$metadata={};throw U.$metadata.attempts=T+1,U.$metadata.totalRetryDelay=F,U}T=E.getRetryCount();let S=E.getRetryDelay();F+=S,await new Promise((Q)=>setTimeout(Q,S))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},"retryMiddleware"),lp=x0((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),vp=x0((f)=>{let h={error:f,errorType:bp(f)},w=mQ(f.$response);if(w)h.retryAfterHint=w;return h},"getRetryErrorInfo"),bp=x0((f)=>{if(Dh.isThrottlingError(f))return"THROTTLING";if(Dh.isTransientError(f))return"TRANSIENT";if(Dh.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),bQ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},mp=x0((f)=>({applyToStack:(h)=>{h.add(vQ(f),bQ)}}),"getRetryPlugin"),mQ=x0((f)=>{if(!Zs.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)},"getRetryAfterHint")});var i2=H((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.resolveHttpAuthSchemeConfig=cQ.defaultSSOOIDCHttpAuthSchemeProvider=cQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var dp=O0(),iQ=Fh(),ip=async(f,h,w)=>{return{operation:iQ.getSmithyContext(h).operation,region:await iQ.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};cQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=ip;function cp(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function gp(f){return{schemeId:"smithy.api#noAuth"}}var xp=(f)=>{let h=[];switch(f.operation){case"CreateToken":{h.push(gp(f));break}default:h.push(cp(f))}return h};cQ.defaultSSOOIDCHttpAuthSchemeProvider=xp;var _p=(f)=>{return{...dp.resolveAwsSdkSigV4Config(f)}};cQ.resolveHttpAuthSchemeConfig=_p});var c2=H((HG0,ap)=>{ap.exports={name:"@aws-sdk/nested-clients",version:"3.750.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","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",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js",types:"./dist-types/submodules/sso-oidc/index.d.ts"},"./sts":{module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js",types:"./dist-types/submodules/sts/index.d.ts"}}}});var x2=H((NG0,uQ)=>{var{defineProperty:r5,getOwnPropertyDescriptor:op,getOwnPropertyNames:pp}=Object,up=Object.prototype.hasOwnProperty,_Q=(f,h)=>r5(f,"name",{value:h,configurable:!0}),tp=(f,h)=>{for(var w in h)r5(f,w,{get:h[w],enumerable:!0})},fu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of pp(h))if(!up.call(f,$)&&$!==w)r5(f,$,{get:()=>h[$],enumerable:!(s=op(h,$))||s.enumerable})}return f},hu=(f)=>fu(r5({},"__esModule",{value:!0}),f),nQ={};tp(nQ,{NODE_APP_ID_CONFIG_OPTIONS:()=>Eu,UA_APP_ID_ENV_NAME:()=>oQ,UA_APP_ID_INI_NAME:()=>pQ,createDefaultUserAgentProvider:()=>aQ,crtAvailability:()=>eQ,defaultUserAgent:()=>su});uQ.exports=hu(nQ);var xQ=A0("os"),g2=A0("process"),eQ={isCrtAvailable:!1},wu=_Q(()=>{if(eQ.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),aQ=_Q(({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${xQ.platform()}`,xQ.release()],["lang/js"],["md/nodejs",`${g2.versions.node}`]],$=wu();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(g2.env.AWS_EXECUTION_ENV)s.push([`exec-env/${g2.env.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}},"createDefaultUserAgentProvider"),su=aQ,$u=iE(),oQ="AWS_SDK_UA_APP_ID",pQ="sdk_ua_app_id",ru="sdk-ua-app-id",Eu={environmentVariableSelector:(f)=>f[oQ],configFileSelector:(f)=>f[pQ]??f[ru],default:$u.DEFAULT_UA_APP_ID}});var e2=H((DG0,wK)=>{var{defineProperty:E5,getOwnPropertyDescriptor:Uu,getOwnPropertyNames:Tu}=Object,Fu=Object.prototype.hasOwnProperty,fK=(f,h)=>E5(f,"name",{value:h,configurable:!0}),Cu=(f,h)=>{for(var w in h)E5(f,w,{get:h[w],enumerable:!0})},Iu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tu(h))if(!Fu.call(f,$)&&$!==w)E5(f,$,{get:()=>h[$],enumerable:!(s=Uu(h,$))||s.enumerable})}return f},Lu=(f)=>Iu(E5({},"__esModule",{value:!0}),f),hK={};Cu(hK,{Hash:()=>Gu});wK.exports=Lu(hK);var _2=qw(),Au=u1(),Bu=A0("buffer"),tQ=A0("crypto"),Gu=class{static{fK(this,"Hash")}constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(Au.toUint8Array(n2(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?tQ.createHmac(this.algorithmIdentifier,n2(this.secret)):tQ.createHash(this.algorithmIdentifier)}};function n2(f,h){if(Bu.Buffer.isBuffer(f))return f;if(typeof f==="string")return _2.fromString(f,h);if(ArrayBuffer.isView(f))return _2.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength);return _2.fromArrayBuffer(f)}fK(n2,"castSourceData")});var a2=H((kG0,rK)=>{var{defineProperty:U5,getOwnPropertyDescriptor:Wu,getOwnPropertyNames:zu}=Object,Ru=Object.prototype.hasOwnProperty,Su=(f,h)=>U5(f,"name",{value:h,configurable:!0}),Xu=(f,h)=>{for(var w in h)U5(f,w,{get:h[w],enumerable:!0})},Yu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of zu(h))if(!Ru.call(f,$)&&$!==w)U5(f,$,{get:()=>h[$],enumerable:!(s=Wu(h,$))||s.enumerable})}return f},Mu=(f)=>Yu(U5({},"__esModule",{value:!0}),f),$K={};Xu($K,{calculateBodyLength:()=>Qu});rK.exports=Mu($K);var sK=A0("fs"),Qu=Su((f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return sK.lstatSync(f.path).size;else if(typeof f.fd==="number")return sK.fstatSync(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)},"calculateBodyLength")});var MK=H((XK)=>{Object.defineProperty(XK,"__esModule",{value:!0});XK.ruleSet=void 0;var WK="required",m1="fn",d1="argv",Ps="ref",EK=!0,UK="isSet",Cr="booleanEquals",Js="error",Vs="endpoint",ef="tree",o2="PartitionResult",p2="getAttr",TK={[WK]:!1,type:"String"},FK={[WK]:!0,default:!1,type:"Boolean"},CK={[Ps]:"Endpoint"},zK={[m1]:Cr,[d1]:[{[Ps]:"UseFIPS"},!0]},RK={[m1]:Cr,[d1]:[{[Ps]:"UseDualStack"},!0]},b1={},IK={[m1]:p2,[d1]:[{[Ps]:o2},"supportsFIPS"]},SK={[Ps]:o2},LK={[m1]:Cr,[d1]:[!0,{[m1]:p2,[d1]:[SK,"supportsDualStack"]}]},AK=[zK],BK=[RK],GK=[{[Ps]:"Region"}],Ku={version:"1.0",parameters:{Region:TK,UseDualStack:FK,UseFIPS:FK,Endpoint:TK},rules:[{conditions:[{[m1]:UK,[d1]:[CK]}],rules:[{conditions:AK,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Js},{conditions:BK,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Js},{endpoint:{url:CK,properties:b1,headers:b1},type:Vs}],type:ef},{conditions:[{[m1]:UK,[d1]:GK}],rules:[{conditions:[{[m1]:"aws.partition",[d1]:GK,assign:o2}],rules:[{conditions:[zK,RK],rules:[{conditions:[{[m1]:Cr,[d1]:[EK,IK]},LK],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Js}],type:ef},{conditions:AK,rules:[{conditions:[{[m1]:Cr,[d1]:[IK,EK]}],rules:[{conditions:[{[m1]:"stringEquals",[d1]:[{[m1]:p2,[d1]:[SK,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:b1,headers:b1},type:Vs},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"FIPS is enabled but this partition does not support FIPS",type:Js}],type:ef},{conditions:BK,rules:[{conditions:[LK],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"DualStack is enabled but this partition does not support DualStack",type:Js}],type:ef},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef}],type:ef},{error:"Invalid Configuration: Missing Region",type:Js}]};XK.ruleSet=Ku});var ZK=H((QK)=>{Object.defineProperty(QK,"__esModule",{value:!0});QK.defaultEndpointResolver=void 0;var Zu=bE(),u2=lE(),Ju=MK(),Vu=new u2.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Pu=(f,h={})=>{return Vu.get(f,()=>u2.resolveEndpoint(Ju.ruleSet,{endpointParams:f,logger:h.logger}))};QK.defaultEndpointResolver=Pu;u2.customEndpointFunctions.aws=Zu.awsEndpointFunctions});var NK=H((PK)=>{Object.defineProperty(PK,"__esModule",{value:!0});PK.getRuntimeConfig=void 0;var Hu=O0(),Nu=m0(),Du=J0(),qu=Ur(),JK=Ih(),VK=u1(),ku=i2(),yu=ZK(),ju=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??JK.fromBase64,base64Encoder:f?.base64Encoder??JK.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??yu.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??ku.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new Hu.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Nu.NoAuthSigner}],logger:f?.logger??new Du.NoOpLogger,serviceId:f?.serviceId??"SSO OIDC",urlParser:f?.urlParser??qu.parseUrl,utf8Decoder:f?.utf8Decoder??VK.fromUtf8,utf8Encoder:f?.utf8Encoder??VK.toUtf8}};PK.getRuntimeConfig=ju});var gK=H((lG0,cK)=>{var{defineProperty:C5,getOwnPropertyDescriptor:Ou,getOwnPropertyNames:lu}=Object,vu=Object.prototype.hasOwnProperty,_0=(f,h)=>C5(f,"name",{value:h,configurable:!0}),bu=(f,h)=>{for(var w in h)C5(f,w,{get:h[w],enumerable:!0})},mu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of lu(h))if(!vu.call(f,$)&&$!==w)C5(f,$,{get:()=>h[$],enumerable:!(s=Ou(h,$))||s.enumerable})}return f},du=(f)=>mu(C5({},"__esModule",{value:!0}),f),yK={};bu(yK,{DEFAULT_MAX_RETRIES:()=>vK,DEFAULT_TIMEOUT:()=>lK,ENV_CMDS_AUTH_TOKEN:()=>h6,ENV_CMDS_FULL_URI:()=>T5,ENV_CMDS_RELATIVE_URI:()=>F5,Endpoint:()=>bK,fromContainerMetadata:()=>xu,fromInstanceMetadata:()=>Lt,getInstanceMetadataEndpoint:()=>dK,httpRequest:()=>Hs,providerConfigFromInit:()=>w6});cK.exports=du(yK);var iu=A0("url"),Zf=D$(),cu=A0("buffer"),gu=A0("http");function Hs(f){return new Promise((h,w)=>{let s=gu.request({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new Zf.ProviderError("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new Zf.ProviderError("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new Zf.ProviderError("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(U)=>{E.push(U)}),$.on("end",()=>{h(cu.Buffer.concat(E)),s.destroy()})}),s.end()})}_0(Hs,"httpRequest");var jK=_0((f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string","isImdsCredentials"),OK=_0((f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}}),"fromImdsCredentials"),lK=1000,vK=0,w6=_0(({maxRetries:f=vK,timeout:h=lK})=>({maxRetries:f,timeout:h}),"providerConfigFromInit"),f6=_0((f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w},"retry"),T5="AWS_CONTAINER_CREDENTIALS_FULL_URI",F5="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",h6="AWS_CONTAINER_AUTHORIZATION_TOKEN",xu=_0((f={})=>{let{timeout:h,maxRetries:w}=w6(f);return()=>f6(async()=>{let s=await ou({logger:f.logger}),$=JSON.parse(await _u(h,s));if(!jK($))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:f.logger});return OK($)},w)},"fromContainerMetadata"),_u=_0(async(f,h)=>{if(process.env[h6])h.headers={...h.headers,Authorization:process.env[h6]};return(await Hs({...h,timeout:f})).toString()},"requestFromEcsImds"),nu="169.254.170.2",eu={localhost:!0,"127.0.0.1":!0},au={"http:":!0,"https:":!0},ou=_0(async({logger:f})=>{if(process.env[F5])return{hostname:nu,path:process.env[F5]};if(process.env[T5]){let h=iu.parse(process.env[T5]);if(!h.hostname||!(h.hostname in eu))throw new Zf.CredentialsProviderError(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in au))throw new Zf.CredentialsProviderError(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new Zf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${F5} or ${T5} environment variable is set`,{tryNextLink:!1,logger:f})},"getCmdsUri"),pu=class f extends Zf.CredentialsProviderError{constructor(h,w=!0){super(h,w);this.tryNextLink=w,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,f.prototype)}static{_0(this,"InstanceMetadataV1FallbackError")}},s6=Ms(),uu=Ur(),bK=((f)=>{return f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]",f})(bK||{}),tu="AWS_EC2_METADATA_SERVICE_ENDPOINT",ft="ec2_metadata_service_endpoint",ht={environmentVariableSelector:(f)=>f[tu],configFileSelector:(f)=>f[ft],default:void 0},mK=((f)=>{return f.IPv4="IPv4",f.IPv6="IPv6",f})(mK||{}),wt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",st="ec2_metadata_service_endpoint_mode",$t={environmentVariableSelector:(f)=>f[wt],configFileSelector:(f)=>f[st],default:"IPv4"},dK=_0(async()=>uu.parseUrl(await rt()||await Et()),"getInstanceMetadataEndpoint"),rt=_0(async()=>s6.loadConfig(ht)(),"getFromEndpointConfig"),Et=_0(async()=>{let f=await s6.loadConfig($t)();switch(f){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(mK)}`)}},"getFromEndpointModeConfig"),Ut=300,Tt=300,Ft="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",DK=_0((f,h)=>{let w=Ut+Math.floor(Math.random()*Tt),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
50
|
-
For more information, please visit: `+Ft);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}},"getExtendedInstanceMetadataCredentials"),Ct=_0((f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=DK($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=DK(s,w);else throw r}return s=$,$}},"staticStabilityProvider"),iK="/latest/meta-data/iam/security-credentials/",It="/latest/api/token",t2="AWS_EC2_METADATA_V1_DISABLED",qK="ec2_metadata_v1_disabled",kK="x-aws-ec2-metadata-token",Lt=_0((f={})=>Ct(At(f),{logger:f.logger}),"fromInstanceMetadata"),At=_0((f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=w6(f),E=_0(async(U,T)=>{if(h||T.headers?.[kK]==null){let I=!1,L=!1,G=await s6.loadConfig({environmentVariableSelector:(S)=>{let Q=S[t2];if(L=!!Q&&Q!=="false",Q===void 0)throw new Zf.CredentialsProviderError(`${t2} not set in env, checking config file next.`,{logger:f.logger});return L},configFileSelector:(S)=>{let Q=S[qK];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||G){let S=[];if(f.ec2MetadataV1Disabled)S.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)S.push(`config file profile (${qK})`);if(L)S.push(`process environment variable (${t2})`);throw new pu(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${S.join(", ")}].`)}}let C=(await f6(async()=>{let I;try{I=await Gt(T)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},U)).trim();return f6(async()=>{let I;try{I=await Wt(C,T,f)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},U)},"getCredentials");return async()=>{let U=await dK();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...U,timeout:$});else{let T;try{T=(await Bt({...U,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...U,timeout:$})}return E(r,{...U,headers:{[kK]:T},timeout:$})}}},"getInstanceMetadataProvider"),Bt=_0(async(f)=>Hs({...f,path:It,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),Gt=_0(async(f)=>(await Hs({...f,path:iK})).toString(),"getProfile"),Wt=_0(async(f,h,w)=>{let s=JSON.parse((await Hs({...h,path:iK+f})).toString());if(!jK(s))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:w.logger});return OK(s)},"getCredentialsFromProfile")});var r6=H((vG0,oK)=>{var{create:zt,defineProperty:Ir,getOwnPropertyDescriptor:Rt,getOwnPropertyNames:St,getPrototypeOf:Xt}=Object,Yt=Object.prototype.hasOwnProperty,$6=(f,h)=>Ir(f,"name",{value:h,configurable:!0}),Mt=(f,h)=>{for(var w in h)Ir(f,w,{get:h[w],enumerable:!0})},eK=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of St(h))if(!Yt.call(f,$)&&$!==w)Ir(f,$,{get:()=>h[$],enumerable:!(s=Rt(h,$))||s.enumerable})}return f},Qt=(f,h,w)=>(w=f!=null?zt(Xt(f)):{},eK(h||!f||!f.__esModule?Ir(w,"default",{value:f,enumerable:!0}):w,f)),Kt=(f)=>eK(Ir({},"__esModule",{value:!0}),f),aK={};Mt(aK,{resolveDefaultsModeConfig:()=>yt});oK.exports=Kt(aK);var Zt=Ss(),xK=Ms(),Jt=D$(),Vt="AWS_EXECUTION_ENV",_K="AWS_REGION",nK="AWS_DEFAULT_REGION",Pt="AWS_EC2_METADATA_DISABLED",Ht=["in-region","cross-region","mobile","standard","legacy"],Nt="/latest/meta-data/placement/region",Dt="AWS_DEFAULTS_MODE",qt="defaults_mode",kt={environmentVariableSelector:(f)=>{return f[Dt]},configFileSelector:(f)=>{return f[qt]},default:"legacy"},yt=$6(({region:f=xK.loadConfig(Zt.NODE_REGION_CONFIG_OPTIONS),defaultsMode:h=xK.loadConfig(kt)}={})=>Jt.memoize(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return jt(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Ht.join(", ")}, got ${w}`)}}),"resolveDefaultsModeConfig"),jt=$6(async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await Ot();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),Ot=$6(async()=>{if(process.env[Vt]&&(process.env[_K]||process.env[nK]))return process.env[_K]??process.env[nK];if(!process.env[Pt])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(()=>Qt(gK())),w=await f();return(await h({...w,path:Nt})).toString()}catch(f){}},"inferPhysicalRegion")});var wZ=H((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.getRuntimeConfig=void 0;var lt=l4(),vt=lt.__importDefault(c2()),bt=O0(),pK=x2(),I5=Ss(),mt=e2(),uK=Fr(),Ns=Ms(),tK=S4(),dt=a2(),it=s5(),ct=NK(),gt=J0(),xt=r6(),_t=J0(),nt=(f)=>{_t.emitWarningIfUnsupportedVersion(process.version);let h=xt.resolveDefaultsModeConfig(f),w=()=>h().then(gt.loadConfigsForDefaultMode),s=ct.getRuntimeConfig(f);bt.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??dt.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??pK.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:vt.default.version}),maxAttempts:f?.maxAttempts??Ns.loadConfig(uK.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??Ns.loadConfig(I5.NODE_REGION_CONFIG_OPTIONS,{...I5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:tK.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??Ns.loadConfig({...uK.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||it.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??mt.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??tK.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??Ns.loadConfig(I5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??Ns.loadConfig(I5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??Ns.loadConfig(pK.NODE_APP_ID_CONFIG_OPTIONS,$)}};fZ.getRuntimeConfig=nt});var E6=H((mG0,TZ)=>{var{defineProperty:L5,getOwnPropertyDescriptor:et,getOwnPropertyNames:at}=Object,ot=Object.prototype.hasOwnProperty,Ds=(f,h)=>L5(f,"name",{value:h,configurable:!0}),pt=(f,h)=>{for(var w in h)L5(f,w,{get:h[w],enumerable:!0})},ut=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of at(h))if(!ot.call(f,$)&&$!==w)L5(f,$,{get:()=>h[$],enumerable:!(s=et(h,$))||s.enumerable})}return f},tt=(f)=>ut(L5({},"__esModule",{value:!0}),f),$Z={};pt($Z,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>s00,NODE_REGION_CONFIG_OPTIONS:()=>w00,REGION_ENV_NAME:()=>rZ,REGION_INI_NAME:()=>EZ,getAwsRegionExtensionConfiguration:()=>f00,resolveAwsRegionExtensionConfiguration:()=>h00,resolveRegionConfig:()=>$00});TZ.exports=tt($Z);var f00=Ds((f)=>{let h=Ds(async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");let w=f.region;if(typeof w==="string")return w;return w()},"runtimeConfigRegion");return{setRegion(w){h=w},region(){return h}}},"getAwsRegionExtensionConfiguration"),h00=Ds((f)=>{return{region:f.region()}},"resolveAwsRegionExtensionConfiguration"),rZ="AWS_REGION",EZ="region",w00={environmentVariableSelector:(f)=>f[rZ],configFileSelector:(f)=>f[EZ],default:()=>{throw new Error("Region is missing")}},s00={preferredFile:"credentials"},UZ=Ds((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),sZ=Ds((f)=>UZ(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),$00=Ds((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return sZ(h);let s=await h();return sZ(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(UZ(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}},"resolveRegionConfig")});var F6=H((dG0,jZ)=>{var{defineProperty:B5,getOwnPropertyDescriptor:r00,getOwnPropertyNames:E00}=Object,U00=Object.prototype.hasOwnProperty,w0=(f,h)=>B5(f,"name",{value:h,configurable:!0}),T00=(f,h)=>{for(var w in h)B5(f,w,{get:h[w],enumerable:!0})},F00=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of E00(h))if(!U00.call(f,$)&&$!==w)B5(f,$,{get:()=>h[$],enumerable:!(s=r00(h,$))||s.enumerable})}return f},C00=(f)=>F00(B5({},"__esModule",{value:!0}),f),WZ={};T00(WZ,{$Command:()=>SZ.Command,AccessDeniedException:()=>XZ,AuthorizationPendingException:()=>YZ,CreateTokenCommand:()=>kZ,CreateTokenRequestFilterSensitiveLog:()=>MZ,CreateTokenResponseFilterSensitiveLog:()=>QZ,ExpiredTokenException:()=>KZ,InternalServerException:()=>ZZ,InvalidClientException:()=>JZ,InvalidGrantException:()=>VZ,InvalidRequestException:()=>PZ,InvalidScopeException:()=>HZ,SSOOIDC:()=>yZ,SSOOIDCClient:()=>RZ,SSOOIDCServiceException:()=>Z1,SlowDownException:()=>NZ,UnauthorizedClientException:()=>DZ,UnsupportedGrantTypeException:()=>qZ,__Client:()=>zZ.Client});jZ.exports=C00(WZ);var FZ=C2(),I00=I2(),L00=A2(),CZ=iE(),A00=Ss(),U6=m0(),B00=M2(),G00=Qs(),IZ=Fr(),zZ=J0(),LZ=i2(),W00=w0((f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},"resolveClientEndpointParameters"),z00={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},R00=wZ(),AZ=E6(),BZ=t0(),GZ=J0(),S00=w0((f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},"getHttpAuthExtensionConfiguration"),X00=w0((f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}},"resolveHttpAuthRuntimeConfig"),A5=w0((f)=>f,"asPartial"),Y00=w0((f,h)=>{let w={...A5(AZ.getAwsRegionExtensionConfiguration(f)),...A5(GZ.getDefaultExtensionConfiguration(f)),...A5(BZ.getHttpHandlerExtensionConfiguration(f)),...A5(S00(f))};return h.forEach((s)=>s.configure(w)),{...f,...AZ.resolveAwsRegionExtensionConfiguration(w),...GZ.resolveDefaultRuntimeConfig(w),...BZ.resolveHttpHandlerRuntimeConfig(w),...X00(w)}},"resolveRuntimeExtensions"),RZ=class extends zZ.Client{static{w0(this,"SSOOIDCClient")}config;constructor(...[f]){let h=R00.getRuntimeConfig(f||{}),w=W00(h),s=CZ.resolveUserAgentConfig(w),$=IZ.resolveRetryConfig(s),r=A00.resolveRegionConfig($),E=FZ.resolveHostHeaderConfig(r),U=G00.resolveEndpointConfig(E),T=LZ.resolveHttpAuthSchemeConfig(U),F=Y00(T,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(CZ.getUserAgentPlugin(this.config)),this.middlewareStack.use(IZ.getRetryPlugin(this.config)),this.middlewareStack.use(B00.getContentLengthPlugin(this.config)),this.middlewareStack.use(FZ.getHostHeaderPlugin(this.config)),this.middlewareStack.use(I00.getLoggerPlugin(this.config)),this.middlewareStack.use(L00.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(U6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:LZ.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new U6.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(U6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},M00=J0(),Q00=Qs(),K00=Dw(),SZ=J0(),qs=J0(),Z00=J0(),Z1=class f extends Z00.ServiceException{static{w0(this,"SSOOIDCServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},XZ=class f extends Z1{static{w0(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(h){super({name:"AccessDeniedException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},YZ=class f extends Z1{static{w0(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(h){super({name:"AuthorizationPendingException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},MZ=w0((f)=>({...f,...f.clientSecret&&{clientSecret:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.codeVerifier&&{codeVerifier:qs.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),QZ=w0((f)=>({...f,...f.accessToken&&{accessToken:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.idToken&&{idToken:qs.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),KZ=class f extends Z1{static{w0(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},ZZ=class f extends Z1{static{w0(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(h){super({name:"InternalServerException",$fault:"server",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},JZ=class f extends Z1{static{w0(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(h){super({name:"InvalidClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},VZ=class f extends Z1{static{w0(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(h){super({name:"InvalidGrantException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},PZ=class f extends Z1{static{w0(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(h){super({name:"InvalidRequestException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},HZ=class f extends Z1{static{w0(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(h){super({name:"InvalidScopeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},NZ=class f extends Z1{static{w0(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(h){super({name:"SlowDownException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},DZ=class f extends Z1{static{w0(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(h){super({name:"UnauthorizedClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},qZ=class f extends Z1{static{w0(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(h){super({name:"UnsupportedGrantTypeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},T6=O0(),J00=m0(),x=J0(),V00=w0(async(f,h)=>{let w=J00.requestBuilder(f,h),s={"content-type":"application/json"};w.bp("/token");let $;return $=JSON.stringify(x.take(f,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(r)=>x._json(r)})),w.m("POST").h(s).b($),w.build()},"se_CreateTokenCommand"),P00=w0(async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return H00(f,h);let w=x.map({$metadata:i1(f)}),s=x.expectNonNull(x.expectObject(await T6.parseJsonBody(f.body,h)),"body"),$=x.take(s,{accessToken:x.expectString,expiresIn:x.expectInt32,idToken:x.expectString,refreshToken:x.expectString,tokenType:x.expectString});return Object.assign(w,$),w},"de_CreateTokenCommand"),H00=w0(async(f,h)=>{let w={...f,body:await T6.parseJsonErrorBody(f.body,h)},s=T6.loadRestJsonErrorCode(f,w.body);switch(s){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await D00(w,h);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await q00(w,h);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await k00(w,h);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await y00(w,h);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await j00(w,h);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await O00(w,h);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await l00(w,h);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await v00(w,h);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await b00(w,h);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await m00(w,h);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await d00(w,h);default:let $=w.body;return N00({output:f,parsedBody:$,errorCode:s})}},"de_CommandError"),N00=x.withBaseException(Z1),D00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new XZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AccessDeniedExceptionRes"),q00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new YZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AuthorizationPendingExceptionRes"),k00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new KZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_ExpiredTokenExceptionRes"),y00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new ZZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InternalServerExceptionRes"),j00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new JZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidClientExceptionRes"),O00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new VZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidGrantExceptionRes"),l00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new PZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidRequestExceptionRes"),v00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new HZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidScopeExceptionRes"),b00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new NZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_SlowDownExceptionRes"),m00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new DZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnauthorizedClientExceptionRes"),d00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new qZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnsupportedGrantTypeExceptionRes"),i1=w0((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),kZ=class extends SZ.Command.classBuilder().ep(z00).m(function(f,h,w,s){return[K00.getSerdePlugin(w,this.serialize,this.deserialize),Q00.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(MZ,QZ).ser(V00).de(P00).build(){static{w0(this,"CreateTokenCommand")}},i00={CreateTokenCommand:kZ},yZ=class extends RZ{static{w0(this,"SSOOIDC")}};M00.createAggregatedClient(i00,yZ)});var OZ=async(f,h={})=>{let{SSOOIDCClient:w}=await Promise.resolve().then(() => p(F6(),1));return new w(Object.assign({},h.clientConfig??{},{region:f??h.clientConfig?.region,logger:h.clientConfig?.logger??h.parentClientConfig?.logger}))};var lZ=async(f,h,w={})=>{let{CreateTokenCommand:s}=await Promise.resolve().then(() => p(F6(),1));return(await OZ(h,w)).send(new s({clientId:f.clientId,clientSecret:f.clientSecret,refreshToken:f.refreshToken,grantType:"refresh_token"}))};var vZ=()=>{};var C6=(f)=>{if(f.expiration&&f.expiration.getTime()<Date.now())throw new S1(`Token is expired. ${zs}`,!1)};var bZ=A(()=>{Y0()});var qh=(f,h,w=!1)=>{if(typeof h==="undefined")throw new S1(`Value not present for '${f}' in SSO Token${w?". Cannot refresh":""}. ${zs}`,!1)};var mZ=A(()=>{Y0()});import{promises as c00}from"fs";var g00,dZ=(f,h)=>{let w=EE(f),s=JSON.stringify(h,null,2);return g00(w,s)};var iZ=A(()=>{hf();({writeFile:g00}=c00)});var cZ,gZ=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await Qh(w),$=y1({profile:w.profile??h?.profile}),r=s[$];if(!r)throw new S1(`Profile '${$}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new S1(`Profile '${$}' is missing required property 'sso_session'.`);let E=r.sso_session,T=(await CE(w))[E];if(!T)throw new S1(`Sso session '${E}' could not be found in shared credentials file.`,!1);for(let Q of["sso_start_url","sso_region"])if(!T[Q])throw new S1(`Sso session '${E}' is missing required property '${Q}'.`,!1);let{sso_start_url:F,sso_region:C}=T,I;try{I=await UE(E)}catch(Q){throw new S1(`The SSO session token associated with profile=${$} was not found or is invalid. ${zs}`,!1)}qh("accessToken",I.accessToken),qh("expiresAt",I.expiresAt);let{accessToken:L,expiresAt:G}=I,S={token:L,expiration:new Date(G)};if(S.expiration.getTime()-Date.now()>L9)return S;if(Date.now()-cZ.getTime()<30000)return C6(S),S;qh("clientId",I.clientId,!0),qh("clientSecret",I.clientSecret,!0),qh("refreshToken",I.refreshToken,!0);try{cZ.setTime(Date.now());let Q=await lZ(I,C,w);qh("accessToken",Q.accessToken),qh("expiresIn",Q.expiresIn);let M=new Date(Date.now()+Q.expiresIn*1000);try{await dZ(E,{...I,accessToken:Q.accessToken,expiresAt:M.toISOString(),refreshToken:Q.refreshToken})}catch(q){}return{token:Q.accessToken,expiration:M}}catch(Q){return C6(S),S}};var xZ=A(()=>{Y0();hf();vZ();bZ();mZ();iZ();cZ=new Date(0)});var _Z=A(()=>{Y0()});var nZ=A(()=>{Y0()});var eZ=A(()=>{xZ();_Z();nZ()});function x00(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function G5(f){return{schemeId:"smithy.api#noAuth"}}var aZ,oZ=async(f,h,w)=>{return{operation:Sh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},pZ=(f)=>{let h=[];switch(f.operation){case"GetRoleCredentials":{h.push(G5(f));break}case"ListAccountRoles":{h.push(G5(f));break}case"ListAccounts":{h.push(G5(f));break}case"Logout":{h.push(G5(f));break}default:h.push(x00(f))}return h},uZ=(f)=>{return{...aZ.resolveAwsSdkSigV4Config(f)}};var I6=A(()=>{aZ=p(O0(),1);cf()});var tZ=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},kh;var ks=A(()=>{kh={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var hJ;var fJ=A(()=>{hJ={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.750.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.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 L6;var A6=A(()=>{L6={isCrtAvailable:!1}});var wJ=()=>{if(L6.isCrtAvailable)return["md/crt-avail"];return null};var sJ=A(()=>{A6()});import{platform as n00,release as e00}from"os";import{env as $J,versions as a00}from"process";var ys=({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${n00()}`,e00()],["lang/js"],["md/nodejs",`${a00.node}`]],$=wJ();if($)s.push($);if(f)s.push([`api/${f}`,h]);if($J.AWS_EXECUTION_ENV)s.push([`exec-env/${$J.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}};var rJ=A(()=>{sJ();A6()});var o00="AWS_SDK_UA_APP_ID",p00="sdk_ua_app_id",u00="sdk-ua-app-id",js;var EJ=A(()=>{m$();js={environmentVariableSelector:(f)=>f[o00],configFileSelector:(f)=>f[p00]??f[u00],default:C3}});var W5=A(()=>{rJ();EJ()});var UJ=(f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]";import{Buffer as B6}from"buffer";var Tw=(f,h=0,w=f.byteLength-h)=>{if(!UJ(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return B6.from(f,h,w)},Os=(f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?B6.from(f,h):B6.from(f)};var ls=()=>{};var Jf=(f)=>{let h=Os(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var G6=A(()=>{ls()});var TJ=(f)=>{if(typeof f==="string")return Jf(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var FJ=A(()=>{G6()});var vs=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Tw(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};var CJ=A(()=>{ls()});var bs=A(()=>{G6();FJ();CJ()});import{Buffer as t00}from"buffer";import{createHash as f10,createHmac as h10}from"crypto";class Fw{constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(TJ(IJ(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?h10(this.algorithmIdentifier,IJ(this.secret)):f10(this.algorithmIdentifier)}}function IJ(f,h){if(t00.isBuffer(f))return f;if(typeof f==="string")return Os(f,h);if(ArrayBuffer.isView(f))return Tw(f.buffer,f.byteOffset,f.byteLength);return Tw(f)}var z5=A(()=>{ls();bs()});import{fstatSync as w10,lstatSync as s10}from"fs";var ms=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return s10(f.path).size;else if(typeof f.fd==="number")return w10(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var LJ=()=>{};var R5=A(()=>{LJ()});var $10,ds=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!$10.exec(f))throw new TypeError("Invalid base64 string.");let h=Os(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};var AJ=A(()=>{ls();$10=/^[A-Za-z0-9+/]*={0,2}$/});var is=(f)=>{let h;if(typeof f==="string")h=Jf(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Tw(h.buffer,h.byteOffset,h.byteLength).toString("base64")};var BJ=A(()=>{ls();bs()});var S5=A(()=>{AJ();BJ()});var GJ,WJ,zJ,QJ,KJ,c1,RJ,ZJ,SJ,XJ,YJ,MJ,r10,JJ;var VJ=A(()=>{GJ={["required"]:!1,type:"String"},WJ={["required"]:!0,default:!1,type:"Boolean"},zJ={["ref"]:"Endpoint"},QJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},KJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},c1={},RJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ZJ={["ref"]:"PartitionResult"},SJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[ZJ,"supportsDualStack"]}]},XJ=[QJ],YJ=[KJ],MJ=[{["ref"]:"Region"}],r10={version:"1.0",parameters:{Region:GJ,UseDualStack:WJ,UseFIPS:WJ,Endpoint:GJ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[zJ]}],rules:[{conditions:XJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:YJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:zJ,properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:MJ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:MJ,assign:"PartitionResult"}],rules:[{conditions:[QJ,KJ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,RJ]},SJ],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:XJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[RJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[ZJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:c1,headers:c1},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:YJ,rules:[{conditions:[SJ],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},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:c1,headers:c1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},JJ=r10});var E10,PJ=(f,h={})=>{return E10.get(f,()=>xh(JJ,{endpointParams:f,logger:h.logger}))};var HJ=A(()=>{N$();df();VJ();E10=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});t1.aws=_h});var NJ,DJ,qJ=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??PJ,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??pZ,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new NJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new DJ.NoAuthSigner}],logger:f?.logger??new _f,serviceId:f?.serviceId??"SSO",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};var kJ=A(()=>{NJ=p(O0(),1),DJ=p(m0(),1);J();pw();S5();bs();I6();HJ()});var yJ="AWS_EXECUTION_ENV",W6="AWS_REGION",z6="AWS_DEFAULT_REGION",jJ="AWS_EC2_METADATA_DISABLED",OJ,lJ="/latest/meta-data/placement/region";var vJ=A(()=>{OJ=["in-region","cross-region","mobile","standard","legacy"]});var bJ;var mJ=A(()=>{bJ={environmentVariableSelector:(f)=>{return f.AWS_DEFAULTS_MODE},configFileSelector:(f)=>{return f.defaults_mode},default:"legacy"}});var cs=({region:f=z0(Xh),defaultsMode:h=z0(bJ)}={})=>uh(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return U10(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${OJ.join(", ")}, got ${w}`)}}),U10=async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await T10();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},T10=async()=>{if(process.env[yJ]&&(process.env[W6]||process.env[z6]))return process.env[W6]??process.env[z6];if(!process.env[jJ])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(() => (fr(),t$)),w=await f();return(await h({...w,path:lJ})).toString()}catch(f){}};var dJ=A(()=>{Yh();Kh();Y0();vJ();mJ()});var X5=A(()=>{dJ()});var iJ,cJ=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=qJ(f);iJ.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:hJ.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Xh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};var gJ=A(()=>{fJ();iJ=p(O0(),1);W5();Yh();z5();$w();Kh();wr();R5();wf();kJ();J();X5();J()});var gs=(f)=>{let h=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");let w=f.region;if(typeof w==="string")return w;return w()};return{setRegion(w){h=w},region(){return h}}},xs=(f)=>{return{region:f.region()}};var xJ=()=>{};var _J=()=>{};var nJ=A(()=>{_J()});var eJ=A(()=>{xJ();nJ()});var Y5=A(()=>{eJ()});var aJ=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},oJ=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var M5=(f)=>f,pJ=(f,h)=>{let w={...M5(gs(f)),...M5(Is(f)),...M5(Zw(f)),...M5(aJ(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),...oJ(w)}};var uJ=A(()=>{Y5();F1();J()});var _s,af;var Lr=A(()=>{E4();U4();T4();m$();Yh();_s=p(m0(),1);$E();D();$w();J();I6();ks();gJ();uJ();af=class af extends ww{config;constructor(...[f]){let h=cJ(f||{}),w=tZ(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),U=uw(E),T=uZ(U),F=pJ(T,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(Bs(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(_s.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:oZ,identityProviderConfigProvider:async(C)=>new _s.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(_s.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var of;var R6=A(()=>{J();of=class of extends $f{constructor(f){super(f);Object.setPrototypeOf(this,of.prototype)}}});var Q5,K5,Z5,J5,tJ=(f)=>({...f,...f.accessToken&&{accessToken:T0}}),C10=(f)=>({...f,...f.secretAccessKey&&{secretAccessKey:T0},...f.sessionToken&&{sessionToken:T0}}),fV=(f)=>({...f,...f.roleCredentials&&{roleCredentials:C10(f.roleCredentials)}}),hV=(f)=>({...f,...f.accessToken&&{accessToken:T0}}),wV=(f)=>({...f,...f.accessToken&&{accessToken:T0}}),sV=(f)=>({...f,...f.accessToken&&{accessToken:T0}});var Cw=A(()=>{J();R6();Q5=class Q5 extends of{name="InvalidRequestException";$fault="client";constructor(f){super({name:"InvalidRequestException",$fault:"client",...f});Object.setPrototypeOf(this,Q5.prototype)}};K5=class K5 extends of{name="ResourceNotFoundException";$fault="client";constructor(f){super({name:"ResourceNotFoundException",$fault:"client",...f});Object.setPrototypeOf(this,K5.prototype)}};Z5=class Z5 extends of{name="TooManyRequestsException";$fault="client";constructor(f){super({name:"TooManyRequestsException",$fault:"client",...f});Object.setPrototypeOf(this,Z5.prototype)}};J5=class J5 extends of{name="UnauthorizedException";$fault="client";constructor(f){super({name:"UnauthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,J5.prototype)}}});var yh,Ar,$V=async(f,h)=>{let w=Ar.requestBuilder(f,h),s=Y({},o$,{[H5]:f[P5]});w.bp("/federation/credentials");let $=Y({[z10]:[,j(f[W10],"roleName")],[AV]:[,j(f[LV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},rV=async(f,h)=>{let w=Ar.requestBuilder(f,h),s=Y({},o$,{[H5]:f[P5]});w.bp("/assignment/roles");let $=Y({[zV]:[,f[WV]],[GV]:[()=>f.maxResults!==void 0,()=>f[BV].toString()],[AV]:[,j(f[LV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},EV=async(f,h)=>{let w=Ar.requestBuilder(f,h),s=Y({},o$,{[H5]:f[P5]});w.bp("/assignment/accounts");let $=Y({[zV]:[,f[WV]],[GV]:[()=>f.maxResults!==void 0,()=>f[BV].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},UV=async(f,h)=>{let w=Ar.requestBuilder(f,h),s=Y({},o$,{[H5]:f[P5]});w.bp("/logout");let $;return w.m("POST").h(s).b($),w.build()},TV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return V5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{roleCredentials:v});return Object.assign(w,$),w},FV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return V5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{nextToken:B,roleList:v});return Object.assign(w,$),w},CV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return V5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{accountList:v,nextToken:B});return Object.assign(w,$),w},IV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return V5(f,h);let w=Y({$metadata:jh(f)});return await A1.collectBody(f.body,h),w},V5=async(f,h)=>{let w={...f,body:await yh.parseJsonErrorBody(f.body,h)},s=yh.loadRestJsonErrorCode(f,w.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await L10(w,h);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await A10(w,h);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await B10(w,h);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await G10(w,h);default:let $=w.body;return I10({output:f,parsedBody:$,errorCode:s})}},I10,L10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:B});Object.assign(w,$);let r=new Q5({$metadata:jh(f),...w});return l(r,f.body)},A10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:B});Object.assign(w,$);let r=new K5({$metadata:jh(f),...w});return l(r,f.body)},B10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:B});Object.assign(w,$);let r=new Z5({$metadata:jh(f),...w});return l(r,f.body)},G10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:B});Object.assign(w,$);let r=new J5({$metadata:jh(f),...w});return l(r,f.body)},jh=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),LV="accountId",P5="accessToken",AV="account_id",BV="maxResults",GV="max_result",WV="nextToken",zV="next_token",W10="roleName",z10="role_name",H5="x-amz-sso_bearer_token";var Br=A(()=>{yh=p(O0(),1),Ar=p(m0(),1);J();Cw();R6();I10=Ts(of)});var Gr;var S6=A(()=>{D();k();J();ks();Cw();Br();Gr=class Gr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(tJ,fV).ser($V).de(TV).build(){}});var Wr;var N5=A(()=>{D();k();J();ks();Cw();Br();Wr=class Wr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(hV,void 0).ser(rV).de(FV).build(){}});var zr;var D5=A(()=>{D();k();J();ks();Cw();Br();zr=class zr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(wV,void 0).ser(EV).de(CV).build(){}});var X6;var Y6=A(()=>{D();k();J();ks();Cw();Br();X6=class X6 extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(sV,void 0).ser(UV).de(IV).build(){}});var R10,RV;var SV=A(()=>{J();S6();N5();D5();Y6();Lr();R10={GetRoleCredentialsCommand:Gr,ListAccountRolesCommand:Wr,ListAccountsCommand:zr,LogoutCommand:X6};RV=class RV extends af{};Es(R10,RV)});var XV=A(()=>{S6();N5();D5();Y6()});var YV=()=>{};var MV,V70;var QV=A(()=>{MV=p(m0(),1);N5();Lr();V70=MV.createPaginator(af,Wr,"nextToken","nextToken","maxResults")});var KV,D70;var ZV=A(()=>{KV=p(m0(),1);D5();Lr();D70=KV.createPaginator(af,zr,"nextToken","nextToken","maxResults")});var JV=A(()=>{YV();QV();ZV()});var VV=A(()=>{Cw()});var PV=A(()=>{Lr();SV();XV();JV();VV()});var HV={};Th(HV,{SSOClient:()=>af,GetRoleCredentialsCommand:()=>Gr});var NV=A(()=>{PV()});var M6,Rr=!1,Q6=async({ssoStartUrl:f,ssoSession:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoClient:r,clientConfig:E,parentClientConfig:U,profile:T,logger:F})=>{let C,I="To refresh this SSO session run aws sso login with the corresponding profile.";if(h)try{let S0=await gZ({profile:T})();C={accessToken:S0.token,expiresAt:new Date(S0.expiration).toISOString()}}catch(S0){throw new a(S0.message,{tryNextLink:Rr,logger:F})}else try{C=await UE(f)}catch(S0){throw new a("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Rr,logger:F})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new a("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Rr,logger:F});let{accessToken:L}=C,{SSOClient:G,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (NV(),HV)),Q=r||new G(Object.assign({},E??{},{logger:E?.logger??U?.logger,region:E?.region??s})),M;try{M=await Q.send(new S({accountId:w,roleName:$,accessToken:L}))}catch(S0){throw new a(S0,{tryNextLink:Rr,logger:F})}let{roleCredentials:{accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:n,credentialScope:L0,accountId:b0}={}}=M;if(!q||!N||!y||!n)throw new a("SSO returns an invalid temporary credential.",{tryNextLink:Rr,logger:F});let $1={accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:new Date(n),...L0&&{credentialScope:L0},...b0&&{accountId:b0}};if(h)M6.setCredentialFeature($1,"CREDENTIALS_SSO","s");else M6.setCredentialFeature($1,"CREDENTIALS_SSO_LEGACY","u");return $1};var DV=A(()=>{M6=p(C1(),1);eZ();Y0();hf()});var K6=(f,h)=>{let{sso_start_url:w,sso_account_id:s,sso_region:$,sso_role_name:r}=f;if(!w||!s||!$||!r)throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(f).join(", ")}
|
|
51
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:h});return f};var Z6=A(()=>{Y0()});var S10=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:w,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoSession:E}=f,{ssoClient:U}=f,T=y1({profile:f.profile??h?.profile});if(!w&&!s&&!$&&!r&&!E){let C=(await Qh(f))[T];if(!C)throw new a(`Profile ${T} was not found.`,{logger:f.logger});if(!T2(C))throw new a(`Profile ${T} is not configured with SSO credentials.`,{logger:f.logger});if(C?.sso_session){let q=(await CE(f))[C.sso_session],N=` configurations in profile ${T} and sso-session ${C.sso_session}`;if($&&$!==q.sso_region)throw new a("Conflicting SSO region"+N,{tryNextLink:!1,logger:f.logger});if(w&&w!==q.sso_start_url)throw new a("Conflicting SSO start_url"+N,{tryNextLink:!1,logger:f.logger});C.sso_region=q.sso_region,C.sso_start_url=q.sso_start_url}let{sso_start_url:I,sso_account_id:L,sso_region:G,sso_role_name:S,sso_session:Q}=K6(C,f.logger);return Q6({ssoStartUrl:I,ssoSession:Q,ssoAccountId:L,ssoRegion:G,ssoRoleName:S,ssoClient:U,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:T})}else if(!w||!s||!$||!r)throw new a('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:f.logger});else return Q6({ssoStartUrl:w,ssoSession:E,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoClient:U,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:T})};var qV=A(()=>{Y0();hf();DV();Z6()});var kV=()=>{};var J6={};Th(J6,{validateSsoProfile:()=>K6,isSsoProfile:()=>T2,fromSSO:()=>S10});var V6=A(()=>{qV();kV();Z6()});var yV,jV=(f,h,w)=>{let s={EcsContainer:async($)=>{let{fromHttp:r}=await Promise.resolve().then(() => (U2(),E2)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (fr(),t$));return w?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>gf(r($??{}),E($))().then(P6)},Ec2InstanceMetadata:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:r}=await Promise.resolve().then(() => (fr(),t$));return async()=>r($)().then(P6)},Environment:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:r}=await Promise.resolve().then(() => (xF(),SY));return async()=>r($)().then(P6)}};if(f in s)return s[f];else throw new a(`Unsupported credential source in profile ${h}. Got ${f}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:w})},P6=(f)=>yV.setCredentialFeature(f,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var OV=A(()=>{yV=p(C1(),1);Y0()});var H6=H((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.resolveHttpAuthSchemeConfig=vV.resolveStsAuthConfig=vV.defaultSTSHttpAuthSchemeProvider=vV.defaultSTSHttpAuthSchemeParametersProvider=void 0;var X10=O0(),lV=Fh(),Y10=Sr(),M10=async(f,h,w)=>{return{operation:lV.getSmithyContext(h).operation,region:await lV.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};vV.defaultSTSHttpAuthSchemeParametersProvider=M10;function Q10(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function K10(f){return{schemeId:"smithy.api#noAuth"}}var Z10=(f)=>{let h=[];switch(f.operation){case"AssumeRoleWithWebIdentity":{h.push(K10(f));break}default:h.push(Q10(f))}return h};vV.defaultSTSHttpAuthSchemeProvider=Z10;var J10=(f)=>({...f,stsClientCtor:Y10.STSClient});vV.resolveStsAuthConfig=J10;var V10=(f)=>{let h=vV.resolveStsAuthConfig(f);return{...X10.resolveAwsSdkSigV4Config(h)}};vV.resolveHttpAuthSchemeConfig=V10});var Xr=H((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});dV.commonParams=dV.resolveClientEndpointParameters=void 0;var N10=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,useGlobalEndpoint:f.useGlobalEndpoint??!1,defaultSigningName:"sts"}};dV.resolveClientEndpointParameters=N10;dV.commonParams={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 LP=H((CP)=>{Object.defineProperty(CP,"__esModule",{value:!0});CP.ruleSet=void 0;var fP="required",t="type",G0="fn",W0="argv",lh="ref",cV=!1,N6=!0,Oh="booleanEquals",h1="stringEquals",hP="sigv4",wP="sts",sP="us-east-1",D0="endpoint",gV="https://sts.{Region}.{PartitionResult#dnsSuffix}",Vf="tree",ns="error",q6="getAttr",xV={[fP]:!1,[t]:"String"},D6={[fP]:!0,default:!1,[t]:"Boolean"},$P={[lh]:"Endpoint"},_V={[G0]:"isSet",[W0]:[{[lh]:"Region"}]},w1={[lh]:"Region"},nV={[G0]:"aws.partition",[W0]:[w1],assign:"PartitionResult"},rP={[lh]:"UseFIPS"},EP={[lh]:"UseDualStack"},E1={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:hP,signingName:wP,signingRegion:sP}]},headers:{}},J1={},eV={conditions:[{[G0]:h1,[W0]:[w1,"aws-global"]}],[D0]:E1,[t]:D0},UP={[G0]:Oh,[W0]:[rP,!0]},TP={[G0]:Oh,[W0]:[EP,!0]},aV={[G0]:q6,[W0]:[{[lh]:"PartitionResult"},"supportsFIPS"]},FP={[lh]:"PartitionResult"},oV={[G0]:Oh,[W0]:[!0,{[G0]:q6,[W0]:[FP,"supportsDualStack"]}]},pV=[{[G0]:"isSet",[W0]:[$P]}],uV=[UP],tV=[TP],q10={version:"1.0",parameters:{Region:xV,UseDualStack:D6,UseFIPS:D6,Endpoint:xV,UseGlobalEndpoint:D6},rules:[{conditions:[{[G0]:Oh,[W0]:[{[lh]:"UseGlobalEndpoint"},N6]},{[G0]:"not",[W0]:pV},_V,nV,{[G0]:Oh,[W0]:[rP,cV]},{[G0]:Oh,[W0]:[EP,cV]}],rules:[{conditions:[{[G0]:h1,[W0]:[w1,"ap-northeast-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-south-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-southeast-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-southeast-2"]}],endpoint:E1,[t]:D0},eV,{conditions:[{[G0]:h1,[W0]:[w1,"ca-central-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-central-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-north-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-2"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-3"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"sa-east-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,sP]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-east-2"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-west-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-west-2"]}],endpoint:E1,[t]:D0},{endpoint:{url:gV,properties:{authSchemes:[{name:hP,signingName:wP,signingRegion:"{Region}"}]},headers:J1},[t]:D0}],[t]:Vf},{conditions:pV,rules:[{conditions:uV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[t]:ns},{conditions:tV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[t]:ns},{endpoint:{url:$P,properties:J1,headers:J1},[t]:D0}],[t]:Vf},{conditions:[_V],rules:[{conditions:[nV],rules:[{conditions:[UP,TP],rules:[{conditions:[{[G0]:Oh,[W0]:[N6,aV]},oV],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[t]:ns}],[t]:Vf},{conditions:uV,rules:[{conditions:[{[G0]:Oh,[W0]:[aV,N6]}],rules:[{conditions:[{[G0]:h1,[W0]:[{[G0]:q6,[W0]:[FP,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:J1,headers:J1},[t]:D0},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"FIPS is enabled but this partition does not support FIPS",[t]:ns}],[t]:Vf},{conditions:tV,rules:[{conditions:[oV],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"DualStack is enabled but this partition does not support DualStack",[t]:ns}],[t]:Vf},eV,{endpoint:{url:gV,properties:J1,headers:J1},[t]:D0}],[t]:Vf}],[t]:Vf},{error:"Invalid Configuration: Missing Region",[t]:ns}]};CP.ruleSet=q10});var GP=H((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.defaultEndpointResolver=void 0;var k10=bE(),k6=lE(),y10=LP(),j10=new k6.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),O10=(f,h={})=>{return j10.get(f,()=>k6.resolveEndpoint(y10.ruleSet,{endpointParams:f,logger:h.logger}))};AP.defaultEndpointResolver=O10;k6.customEndpointFunctions.aws=k10.awsEndpointFunctions});var XP=H((RP)=>{Object.defineProperty(RP,"__esModule",{value:!0});RP.getRuntimeConfig=void 0;var l10=O0(),v10=m0(),b10=J0(),m10=Ur(),WP=Ih(),zP=u1(),d10=H6(),i10=GP(),c10=(f)=>{return{apiVersion:"2011-06-15",base64Decoder:f?.base64Decoder??WP.fromBase64,base64Encoder:f?.base64Encoder??WP.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??i10.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??d10.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new l10.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new v10.NoAuthSigner}],logger:f?.logger??new b10.NoOpLogger,serviceId:f?.serviceId??"STS",urlParser:f?.urlParser??m10.parseUrl,utf8Decoder:f?.utf8Decoder??zP.fromUtf8,utf8Encoder:f?.utf8Encoder??zP.toUtf8}};RP.getRuntimeConfig=c10});var VP=H((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.getRuntimeConfig=void 0;var g10=l4(),x10=g10.__importDefault(c2()),YP=O0(),MP=x2(),q5=Ss(),_10=m0(),n10=e2(),QP=Fr(),es=Ms(),KP=S4(),e10=a2(),a10=s5(),o10=XP(),p10=J0(),u10=r6(),t10=J0(),ff0=(f)=>{t10.emitWarningIfUnsupportedVersion(process.version);let h=u10.resolveDefaultsModeConfig(f),w=()=>h().then(p10.loadConfigsForDefaultMode),s=o10.getRuntimeConfig(f);YP.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??e10.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??MP.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:x10.default.version}),httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await f.credentialDefaultProvider(E?.__config||{})()),signer:new YP.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _10.NoAuthSigner}],maxAttempts:f?.maxAttempts??es.loadConfig(QP.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??es.loadConfig(q5.NODE_REGION_CONFIG_OPTIONS,{...q5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:KP.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??es.loadConfig({...QP.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||a10.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??n10.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??KP.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??es.loadConfig(q5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??es.loadConfig(q5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??es.loadConfig(MP.NODE_APP_ID_CONFIG_OPTIONS,$)}};ZP.getRuntimeConfig=ff0});var NP=H((PP)=>{Object.defineProperty(PP,"__esModule",{value:!0});PP.resolveHttpAuthRuntimeConfig=PP.getHttpAuthExtensionConfiguration=void 0;var hf0=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}};PP.getHttpAuthExtensionConfiguration=hf0;var wf0=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};PP.resolveHttpAuthRuntimeConfig=wf0});var lP=H((jP)=>{Object.defineProperty(jP,"__esModule",{value:!0});jP.resolveRuntimeExtensions=void 0;var DP=E6(),qP=t0(),kP=J0(),yP=NP(),k5=(f)=>f,$f0=(f,h)=>{let w={...k5(DP.getAwsRegionExtensionConfiguration(f)),...k5(kP.getDefaultExtensionConfiguration(f)),...k5(qP.getHttpHandlerExtensionConfiguration(f)),...k5(yP.getHttpAuthExtensionConfiguration(f))};return h.forEach((s)=>s.configure(w)),{...f,...DP.resolveAwsRegionExtensionConfiguration(w),...kP.resolveDefaultRuntimeConfig(w),...qP.resolveHttpHandlerRuntimeConfig(w),...yP.resolveHttpAuthRuntimeConfig(w)}};jP.resolveRuntimeExtensions=$f0});var Sr=H((j6)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.STSClient=j6.__Client=void 0;var vP=C2(),rf0=I2(),Ef0=A2(),bP=iE(),Uf0=Ss(),y6=m0(),Tf0=M2(),Ff0=Qs(),mP=Fr(),iP=J0();Object.defineProperty(j6,"__Client",{enumerable:!0,get:function(){return iP.Client}});var dP=H6(),Cf0=Xr(),If0=VP(),Lf0=lP();class cP extends iP.Client{config;constructor(...[f]){let h=If0.getRuntimeConfig(f||{}),w=Cf0.resolveClientEndpointParameters(h),s=bP.resolveUserAgentConfig(w),$=mP.resolveRetryConfig(s),r=Uf0.resolveRegionConfig($),E=vP.resolveHostHeaderConfig(r),U=Ff0.resolveEndpointConfig(E),T=dP.resolveHttpAuthSchemeConfig(U),F=Lf0.resolveRuntimeExtensions(T,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(bP.getUserAgentPlugin(this.config)),this.middlewareStack.use(mP.getRetryPlugin(this.config)),this.middlewareStack.use(Tf0.getContentLengthPlugin(this.config)),this.middlewareStack.use(vP.getHostHeaderPlugin(this.config)),this.middlewareStack.use(rf0.getLoggerPlugin(this.config)),this.middlewareStack.use(Ef0.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(y6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:dP.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new y6.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(y6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}j6.STSClient=cP});var LC=H((XS0,IC)=>{var{defineProperty:y5,getOwnPropertyDescriptor:Af0,getOwnPropertyNames:Bf0}=Object,Gf0=Object.prototype.hasOwnProperty,e=(f,h)=>y5(f,"name",{value:h,configurable:!0}),Wf0=(f,h)=>{for(var w in h)y5(f,w,{get:h[w],enumerable:!0})},$C=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Bf0(h))if(!Gf0.call(f,$)&&$!==w)y5(f,$,{get:()=>h[$],enumerable:!(s=Af0(h,$))||s.enumerable})}return f},zf0=(f,h,w)=>($C(f,h,"default"),w&&$C(w,h,"default")),Rf0=(f)=>$C(y5({},"__esModule",{value:!0}),f),EC={};Wf0(EC,{AssumeRoleCommand:()=>FC,AssumeRoleResponseFilterSensitiveLog:()=>nP,AssumeRoleWithWebIdentityCommand:()=>CC,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>fH,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>hH,ClientInputEndpointParameters:()=>Ch0.ClientInputEndpointParameters,CredentialsFilterSensitiveLog:()=>UC,ExpiredTokenException:()=>eP,IDPCommunicationErrorException:()=>wH,IDPRejectedClaimException:()=>uP,InvalidIdentityTokenException:()=>tP,MalformedPolicyDocumentException:()=>aP,PackedPolicyTooLargeException:()=>oP,RegionDisabledException:()=>pP,STS:()=>AH,STSServiceException:()=>uf,decorateDefaultCredentialProvider:()=>Ah0,getDefaultRoleAssumer:()=>SH,getDefaultRoleAssumerWithWebIdentity:()=>XH});IC.exports=Rf0(EC);zf0(EC,Sr(),IC.exports);var Sf0=J0(),Xf0=Qs(),Yf0=Dw(),Mf0=J0(),Qf0=Xr(),_P=J0(),Kf0=J0(),uf=class f extends Kf0.ServiceException{static{e(this,"STSServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},UC=e((f)=>({...f,...f.SecretAccessKey&&{SecretAccessKey:_P.SENSITIVE_STRING}}),"CredentialsFilterSensitiveLog"),nP=e((f)=>({...f,...f.Credentials&&{Credentials:UC(f.Credentials)}}),"AssumeRoleResponseFilterSensitiveLog"),eP=class f extends uf{static{e(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},aP=class f extends uf{static{e(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},oP=class f extends uf{static{e(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},pP=class f extends uf{static{e(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},uP=class f extends uf{static{e(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},tP=class f extends uf{static{e(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},fH=e((f)=>({...f,...f.WebIdentityToken&&{WebIdentityToken:_P.SENSITIVE_STRING}}),"AssumeRoleWithWebIdentityRequestFilterSensitiveLog"),hH=e((f)=>({...f,...f.Credentials&&{Credentials:UC(f.Credentials)}}),"AssumeRoleWithWebIdentityResponseFilterSensitiveLog"),wH=class f extends uf{static{e(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},TC=O0(),Zf0=t0(),R0=J0(),Jf0=e(async(f,h)=>{let w=TH,s;return s=LH({...lf0(f,h),[CH]:hh0,[IH]:FH}),UH(h,w,"/",void 0,s)},"se_AssumeRoleCommand"),Vf0=e(async(f,h)=>{let w=TH,s;return s=LH({...vf0(f,h),[CH]:wh0,[IH]:FH}),UH(h,w,"/",void 0,s)},"se_AssumeRoleWithWebIdentityCommand"),Pf0=e(async(f,h)=>{if(f.statusCode>=300)return sH(f,h);let w=await TC.parseXmlBody(f.body,h),s={};return s=xf0(w.AssumeRoleResult,h),{$metadata:tf(f),...s}},"de_AssumeRoleCommand"),Hf0=e(async(f,h)=>{if(f.statusCode>=300)return sH(f,h);let w=await TC.parseXmlBody(f.body,h),s={};return s=_f0(w.AssumeRoleWithWebIdentityResult,h),{$metadata:tf(f),...s}},"de_AssumeRoleWithWebIdentityCommand"),sH=e(async(f,h)=>{let w={...f,body:await TC.parseXmlErrorBody(f.body,h)},s=sh0(f,w.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Nf0(w,h);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await yf0(w,h);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await jf0(w,h);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Of0(w,h);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Df0(w,h);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await qf0(w,h);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await kf0(w,h);default:let $=w.body;return fh0({output:f,parsedBody:$.Error,errorCode:s})}},"de_CommandError"),Nf0=e(async(f,h)=>{let w=f.body,s=nf0(w.Error,h),$=new eP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_ExpiredTokenExceptionRes"),Df0=e(async(f,h)=>{let w=f.body,s=ef0(w.Error,h),$=new wH({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_IDPCommunicationErrorExceptionRes"),qf0=e(async(f,h)=>{let w=f.body,s=af0(w.Error,h),$=new uP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_IDPRejectedClaimExceptionRes"),kf0=e(async(f,h)=>{let w=f.body,s=of0(w.Error,h),$=new tP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_InvalidIdentityTokenExceptionRes"),yf0=e(async(f,h)=>{let w=f.body,s=pf0(w.Error,h),$=new aP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_MalformedPolicyDocumentExceptionRes"),jf0=e(async(f,h)=>{let w=f.body,s=uf0(w.Error,h),$=new oP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_PackedPolicyTooLargeExceptionRes"),Of0=e(async(f,h)=>{let w=f.body,s=tf0(w.Error,h),$=new pP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_RegionDisabledExceptionRes"),lf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[ts]!=null){let s=$H(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[ps]!=null)w[ps]=f[ps];if(f[u6]!=null){let s=gf0(f[u6],h);if(f[u6]?.length===0)w.Tags=[];Object.entries(s).forEach(([$,r])=>{let E=`Tags.${$}`;w[E]=r})}if(f[fC]!=null){let s=cf0(f[fC],h);if(f[fC]?.length===0)w.TransitiveTagKeys=[];Object.entries(s).forEach(([$,r])=>{let E=`TransitiveTagKeys.${$}`;w[E]=r})}if(f[i6]!=null)w[i6]=f[i6];if(f[o6]!=null)w[o6]=f[o6];if(f[t6]!=null)w[t6]=f[t6];if(f[pf]!=null)w[pf]=f[pf];if(f[x6]!=null){let s=df0(f[x6],h);if(f[x6]?.length===0)w.ProvidedContexts=[];Object.entries(s).forEach(([$,r])=>{let E=`ProvidedContexts.${$}`;w[E]=r})}return w},"se_AssumeRoleRequest"),vf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[wC]!=null)w[wC]=f[wC];if(f[_6]!=null)w[_6]=f[_6];if(f[ts]!=null){let s=$H(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[ps]!=null)w[ps]=f[ps];return w},"se_AssumeRoleWithWebIdentityRequest"),$H=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=bf0($,h);Object.entries(r).forEach(([E,U])=>{w[`member.${s}.${E}`]=U}),s++}return w},"se_policyDescriptorListType"),bf0=e((f,h)=>{let w={};if(f[sC]!=null)w[sC]=f[sC];return w},"se_PolicyDescriptorType"),mf0=e((f,h)=>{let w={};if(f[g6]!=null)w[g6]=f[g6];if(f[m6]!=null)w[m6]=f[m6];return w},"se_ProvidedContext"),df0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=mf0($,h);Object.entries(r).forEach(([E,U])=>{w[`member.${s}.${E}`]=U}),s++}return w},"se_ProvidedContextsListType"),if0=e((f,h)=>{let w={};if(f[c6]!=null)w[c6]=f[c6];if(f[hC]!=null)w[hC]=f[hC];return w},"se_Tag"),cf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;w[`member.${s}`]=$,s++}return w},"se_tagKeyListType"),gf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=if0($,h);Object.entries(r).forEach(([E,U])=>{w[`member.${s}.${E}`]=U}),s++}return w},"se_tagListType"),rH=e((f,h)=>{let w={};if(f[l6]!=null)w[l6]=R0.expectString(f[l6]);if(f[v6]!=null)w[v6]=R0.expectString(f[v6]);return w},"de_AssumedRoleUser"),xf0=e((f,h)=>{let w={};if(f[os]!=null)w[os]=EH(f[os],h);if(f[as]!=null)w[as]=rH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[pf]!=null)w[pf]=R0.expectString(f[pf]);return w},"de_AssumeRoleResponse"),_f0=e((f,h)=>{let w={};if(f[os]!=null)w[os]=EH(f[os],h);if(f[a6]!=null)w[a6]=R0.expectString(f[a6]);if(f[as]!=null)w[as]=rH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[n6]!=null)w[n6]=R0.expectString(f[n6]);if(f[b6]!=null)w[b6]=R0.expectString(f[b6]);if(f[pf]!=null)w[pf]=R0.expectString(f[pf]);return w},"de_AssumeRoleWithWebIdentityResponse"),EH=e((f,h)=>{let w={};if(f[O6]!=null)w[O6]=R0.expectString(f[O6]);if(f[e6]!=null)w[e6]=R0.expectString(f[e6]);if(f[p6]!=null)w[p6]=R0.expectString(f[p6]);if(f[d6]!=null)w[d6]=R0.expectNonNull(R0.parseRfc3339DateTimeWithOffset(f[d6]));return w},"de_Credentials"),nf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_ExpiredTokenException"),ef0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPCommunicationErrorException"),af0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPRejectedClaimException"),of0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_InvalidIdentityTokenException"),pf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_MalformedPolicyDocumentException"),uf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_PackedPolicyTooLargeException"),tf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_RegionDisabledException"),tf=e((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),fh0=R0.withBaseException(uf),UH=e(async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:U,path:T}=await f.endpoint(),F={protocol:E,hostname:r,port:U,method:"POST",path:T.endsWith("/")?T.slice(0,-1)+w:T+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new Zf0.HttpRequest(F)},"buildHttpRpcRequest"),TH={"content-type":"application/x-www-form-urlencoded"},FH="2011-06-15",CH="Action",O6="AccessKeyId",hh0="AssumeRole",l6="AssumedRoleId",as="AssumedRoleUser",wh0="AssumeRoleWithWebIdentity",v6="Arn",b6="Audience",os="Credentials",m6="ContextAssertion",ps="DurationSeconds",d6="Expiration",i6="ExternalId",c6="Key",us="Policy",ts="PolicyArns",g6="ProviderArn",x6="ProvidedContexts",_6="ProviderId",f$="PackedPolicySize",n6="Provider",h$="RoleArn",w$="RoleSessionName",e6="SecretAccessKey",a6="SubjectFromWebIdentityToken",pf="SourceIdentity",o6="SerialNumber",p6="SessionToken",u6="Tags",t6="TokenCode",fC="TransitiveTagKeys",IH="Version",hC="Value",wC="WebIdentityToken",sC="arn",i0="message",LH=e((f)=>Object.entries(f).map(([h,w])=>R0.extendedEncodeURIComponent(h)+"="+R0.extendedEncodeURIComponent(w)).join("&"),"buildFormUrlencodedString"),sh0=e((f,h)=>{if(h.Error?.Code!==void 0)return h.Error.Code;if(f.statusCode==404)return"NotFound"},"loadQueryErrorCode"),FC=class extends Mf0.Command.classBuilder().ep(Qf0.commonParams).m(function(f,h,w,s){return[Yf0.getSerdePlugin(w,this.serialize,this.deserialize),Xf0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,nP).ser(Jf0).de(Pf0).build(){static{e(this,"AssumeRoleCommand")}},$h0=Qs(),rh0=Dw(),Eh0=J0(),Uh0=Xr(),CC=class extends Eh0.Command.classBuilder().ep(Uh0.commonParams).m(function(f,h,w,s){return[rh0.getSerdePlugin(w,this.serialize,this.deserialize),$h0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(fH,hH).ser(Vf0).de(Hf0).build(){static{e(this,"AssumeRoleWithWebIdentityCommand")}},Th0=Sr(),Fh0={AssumeRoleCommand:FC,AssumeRoleWithWebIdentityCommand:CC},AH=class extends Th0.STSClient{static{e(this,"STS")}};Sf0.createAggregatedClient(Fh0,AH);var Ch0=Xr(),rC=C1(),xP="us-east-1",BH=e((f)=>{if(typeof f?.Arn==="string"){let h=f.Arn.split(":");if(h.length>4&&h[4]!=="")return h[4]}return},"getAccountIdFromAssumedRoleUser"),GH=e(async(f,h,w)=>{let s=typeof f==="function"?await f():f,$=typeof h==="function"?await h():h;return w?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${$} (parent client)`,`${xP} (STS default)`),s??$??xP},"resolveRegion"),Ih0=e((f,h)=>{let w,s;return async($,r)=>{if(s=$,!w){let{logger:C=f?.parentClientConfig?.logger,region:I,requestHandler:L=f?.parentClientConfig?.requestHandler,credentialProviderLogger:G}=f,S=await GH(I,f?.parentClientConfig?.region,G),Q=!WH(L);w=new h({profile:f?.parentClientConfig?.profile,credentialDefaultProvider:()=>async()=>s,region:S,requestHandler:Q?L:void 0,logger:C})}let{Credentials:E,AssumedRoleUser:U}=await w.send(new FC(r));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);let T=BH(U),F={accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...T&&{accountId:T}};return rC.setCredentialFeature(F,"CREDENTIALS_STS_ASSUME_ROLE","i"),F}},"getDefaultRoleAssumer"),Lh0=e((f,h)=>{let w;return async(s)=>{if(!w){let{logger:T=f?.parentClientConfig?.logger,region:F,requestHandler:C=f?.parentClientConfig?.requestHandler,credentialProviderLogger:I}=f,L=await GH(F,f?.parentClientConfig?.region,I),G=!WH(C);w=new h({profile:f?.parentClientConfig?.profile,region:L,requestHandler:G?C:void 0,logger:T})}let{Credentials:$,AssumedRoleUser:r}=await w.send(new CC(s));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);let E=BH(r),U={accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...E&&{accountId:E}};if(E)rC.setCredentialFeature(U,"RESOLVED_ACCOUNT_ID","T");return rC.setCredentialFeature(U,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),U}},"getDefaultRoleAssumerWithWebIdentity"),WH=e((f)=>{return f?.metadata?.handlerProtocol==="h2"},"isH2"),zH=Sr(),RH=e((f,h)=>{if(!h)return f;else return class w extends f{static{e(this,"CustomizableSTSClient")}constructor(s){super(s);for(let $ of h)this.middlewareStack.use($)}}},"getCustomizableStsClientCtor"),SH=e((f={},h)=>Ih0(f,RH(zH.STSClient,h)),"getDefaultRoleAssumer"),XH=e((f={},h)=>Lh0(f,RH(zH.STSClient,h)),"getDefaultRoleAssumerWithWebIdentity"),Ah0=e((f)=>(h)=>f({roleAssumer:SH(h),roleAssumerWithWebIdentity:XH(h),...h}),"decorateDefaultCredentialProvider")});var AC,MH=(f,{profile:h="default",logger:w}={})=>{return Boolean(f)&&typeof f==="object"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1&&["undefined","string"].indexOf(typeof f.external_id)>-1&&["undefined","string"].indexOf(typeof f.mfa_serial)>-1&&(Bh0(f,{profile:h,logger:w})||Gh0(f,{profile:h,logger:w}))},Bh0=(f,{profile:h,logger:w})=>{let s=typeof f.source_profile==="string"&&typeof f.credential_source==="undefined";if(s)w?.debug?.(` ${h} isAssumeRoleWithSourceProfile source_profile=${f.source_profile}`);return s},Gh0=(f,{profile:h,logger:w})=>{let s=typeof f.credential_source==="string"&&typeof f.source_profile==="undefined";if(s)w?.debug?.(` ${h} isCredentialSourceProfile credential_source=${f.credential_source}`);return s},QH=async(f,h,w,s={})=>{w.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let $=h[f],{source_profile:r,region:E}=$;if(!w.roleAssumer){let{getDefaultRoleAssumer:T}=await Promise.resolve().then(() => p(LC(),1));w.roleAssumer=T({...w.clientConfig,credentialProviderLogger:w.logger,parentClientConfig:{...w?.parentClientConfig,region:E??w?.parentClientConfig?.region}},w.clientPlugins)}if(r&&r in s)throw new a(`Detected a cycle attempting to resolve credentials for profile ${y1(w)}. Profiles visited: `+Object.keys(s).join(", "),{logger:w.logger});w.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${r?`source_profile=[${r}]`:`profile=[${f}]`}`);let U=r?j5(r,h,w,{...s,[r]:!0},YH(h[r]??{})):(await jV($.credential_source,f,w.logger)(w))();if(YH($))return U.then((T)=>AC.setCredentialFeature(T,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let T={RoleArn:$.role_arn,RoleSessionName:$.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:$.external_id,DurationSeconds:parseInt($.duration_seconds||"3600",10)},{mfa_serial:F}=$;if(F){if(!w.mfaCodeProvider)throw new a(`Profile ${f} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:w.logger,tryNextLink:!1});T.SerialNumber=F,T.TokenCode=await w.mfaCodeProvider(F)}let C=await U;return w.roleAssumer(C,T).then((I)=>AC.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},YH=(f)=>{return!f.role_arn&&!!f.credential_source};var KH=A(()=>{AC=p(C1(),1);Y0();hf();OV();BC()});var ZH,JH=(f,h,w)=>{if(h.Version!==1)throw Error(`Profile ${f} credential_process did not return Version 1.`);if(h.AccessKeyId===void 0||h.SecretAccessKey===void 0)throw Error(`Profile ${f} credential_process returned invalid credentials.`);if(h.Expiration){let r=new Date;if(new Date(h.Expiration)<r)throw Error(`Profile ${f} credential_process returned expired credentials.`)}let s=h.AccountId;if(!s&&w?.[f]?.aws_account_id)s=w[f].aws_account_id;let $={accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,...h.SessionToken&&{sessionToken:h.SessionToken},...h.Expiration&&{expiration:new Date(h.Expiration)},...h.CredentialScope&&{credentialScope:h.CredentialScope},...s&&{accountId:s}};return ZH.setCredentialFeature($,"CREDENTIALS_PROCESS","w"),$};var VH=A(()=>{ZH=p(C1(),1)});import{exec as Wh0}from"child_process";import{promisify as zh0}from"util";var PH=async(f,h,w)=>{let s=h[f];if(h[f]){let $=s.credential_process;if($!==void 0){let r=zh0(Wh0);try{let{stdout:E}=await r($),U;try{U=JSON.parse(E.trim())}catch{throw Error(`Profile ${f} credential_process returned invalid JSON.`)}return JH(f,U,h)}catch(E){throw new a(E.message,{logger:w})}}else throw new a(`Profile ${f} did not contain credential_process.`,{logger:w})}else throw new a(`Profile ${f} could not be found in shared credentials file.`,{logger:w})};var HH=A(()=>{Y0();VH()});var Rh0=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let w=await Qh(f);return PH(y1({profile:f.profile??h?.profile}),w,f.logger)};var NH=A(()=>{hf();HH()});var GC={};Th(GC,{fromProcess:()=>Rh0});var WC=A(()=>{NH()});var DH,qH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.credential_process==="string",kH=async(f,h)=>Promise.resolve().then(() => (WC(),GC)).then(({fromProcess:w})=>w({...f,profile:h})().then((s)=>DH.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v")));var yH=A(()=>{DH=p(C1(),1)});var zC,jH=async(f,h,w={})=>{let{fromSSO:s}=await Promise.resolve().then(() => (V6(),J6));return s({profile:f,logger:w.logger,parentClientConfig:w.parentClientConfig,clientConfig:w.clientConfig})().then(($)=>{if(h.sso_session)return zC.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO","r");else return zC.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},OH=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var lH=A(()=>{zC=p(C1(),1)});var vH,RC=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.aws_access_key_id==="string"&&typeof f.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof f.aws_session_token)>-1&&["undefined","string"].indexOf(typeof f.aws_account_id)>-1,SC=async(f,h)=>{h?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let w={accessKeyId:f.aws_access_key_id,secretAccessKey:f.aws_secret_access_key,sessionToken:f.aws_session_token,...f.aws_credential_scope&&{credentialScope:f.aws_credential_scope},...f.aws_account_id&&{accountId:f.aws_account_id}};return vH.setCredentialFeature(w,"CREDENTIALS_PROFILE","n")};var bH=A(()=>{vH=p(C1(),1)});var XC=(f)=>async(h)=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:w,roleSessionName:s,webIdentityToken:$,providerId:r,policyArns:E,policy:U,durationSeconds:T}=f,{roleAssumerWithWebIdentity:F}=f;if(!F){let{getDefaultRoleAssumerWithWebIdentity:C}=await Promise.resolve().then(() => p(LC(),1));F=C({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:{...h?.callerClientConfig,...f.parentClientConfig}},f.clientPlugins)}return F({RoleArn:w,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:$,ProviderId:r,PolicyArns:E,Policy:U,DurationSeconds:T})};import{readFileSync as Sh0}from"fs";var dH,mH="AWS_WEB_IDENTITY_TOKEN_FILE",Xh0="AWS_ROLE_ARN",Yh0="AWS_ROLE_SESSION_NAME",Mh0=(f={})=>async()=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let h=f?.webIdentityTokenFile??process.env[mH],w=f?.roleArn??process.env[Xh0],s=f?.roleSessionName??process.env[Yh0];if(!h||!w)throw new a("Web identity configuration not specified",{logger:f.logger});let $=await XC({...f,webIdentityToken:Sh0(h,{encoding:"ascii"}),roleArn:w,roleSessionName:s})();if(h===process.env[mH])dH.setCredentialFeature($,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return $};var iH=A(()=>{dH=p(C1(),1);Y0()});var YC={};Th(YC,{fromWebToken:()=>XC,fromTokenFile:()=>Mh0});var MC=A(()=>{iH()});var cH,gH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.web_identity_token_file==="string"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1,xH=async(f,h)=>Promise.resolve().then(() => (MC(),YC)).then(({fromTokenFile:w})=>w({webIdentityTokenFile:f.web_identity_token_file,roleArn:f.role_arn,roleSessionName:f.role_session_name,roleAssumerWithWebIdentity:h.roleAssumerWithWebIdentity,logger:h.logger,parentClientConfig:h.parentClientConfig})().then((s)=>cH.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var _H=A(()=>{cH=p(C1(),1)});var j5=async(f,h,w,s={},$=!1)=>{let r=h[f];if(Object.keys(s).length>0&&RC(r))return SC(r,w);if($||MH(r,{profile:f,logger:w.logger}))return QH(f,h,w,s);if(RC(r))return SC(r,w);if(gH(r))return xH(r,w);if(qH(r))return kH(w,f);if(OH(r))return await jH(f,r,w);throw new a(`Could not resolve credentials using profile: [${f}] in configuration/credentials file(s).`,{logger:w.logger})};var BC=A(()=>{Y0();KH();yH();lH();bH();_H()});var Qh0=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let s=await Qh(w);return j5(y1({profile:f.profile??h?.profile}),s,w)};var nH=A(()=>{hf();BC()});var eH={};Th(eH,{fromIni:()=>Qh0});var aH=A(()=>{nH()});E4();U4();T4();m$();Yh();var $$=p(m0(),1);$E();D();$w();J();var UY=p(O0(),1);cf();var TY=async(f,h,w)=>{return{operation:Sh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Q_(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var FY=(f)=>{let h=[];switch(f.operation){default:h.push(Q_(f))}return h},CY=(f)=>{return{...UY.resolveAwsSdkSigV4Config(f)}};var IY=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53"}},K={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var LY={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.750.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/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-sdk-route53":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 BN=p(O0(),1);xF();Y0();hf();Y0();var C9="AWS_EC2_METADATA_DISABLED",I9=async(f)=>{let{ENV_CMDS_FULL_URI:h,ENV_CMDS_RELATIVE_URI:w,fromContainerMetadata:s,fromInstanceMetadata:$}=await Promise.resolve().then(() => (fr(),t$));if(process.env[w]||process.env[h]){f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:r}=await Promise.resolve().then(() => (U2(),E2));return gf(r(f),s(f))}if(process.env[C9]&&process.env[C9]!=="false")return async()=>{throw new a("EC2 Instance Metadata Service access disabled",{logger:f.logger})};return f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(f)};var oH=!1,O5=(f={})=>uh(gf(async()=>{if(f.profile??process.env[D7]){if(process.env[QE]&&process.env[KE]){if(!oH)(f.logger?.warn&&f.logger?.constructor?.name!=="NoOpLogger"?f.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
48
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:h})};var pY=B(()=>{Y0()});function tY(f){return new n0({protocol:f.protocol,hostname:f.hostname,port:Number(f.port),path:f.pathname,query:Array.from(f.searchParams.entries()).reduce((h,[w,s])=>{return h[w]=s,h},{}),fragment:f.hash})}async function f9(f,h){let s=await uY.sdkStreamMixin(f.body).transformToString();if(f.statusCode===200){let $=JSON.parse(s);if(typeof $.AccessKeyId!=="string"||typeof $.SecretAccessKey!=="string"||typeof $.Token!=="string"||typeof $.Expiration!=="string")throw new a("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:h});return{accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.Token,expiration:vS($.Expiration)}}if(f.statusCode>=400&&f.statusCode<500){let $={};try{$=JSON.parse(s)}catch(r){}throw Object.assign(new a(`Server responded with status: ${f.statusCode}`,{logger:h}),{Code:$.Code,Message:$.Message})}throw new a(`Server responded with status: ${f.statusCode}`,{logger:h})}var uY;var h9=B(()=>{Y0();F1();J();uY=o(s3(),1)});var w9=(f,h,w)=>{return async()=>{for(let s=0;s<h;++s)try{return await f()}catch($){await new Promise((r)=>setTimeout(r,w))}return await f()}};import fn from"fs/promises";var s9,hn="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",wn="http://169.254.170.2",sn="AWS_CONTAINER_CREDENTIALS_FULL_URI",$n="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",rn="AWS_CONTAINER_AUTHORIZATION_TOKEN",$9=(f={})=>{f.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let h,w=f.awsContainerCredentialsRelativeUri??process.env[hn],s=f.awsContainerCredentialsFullUri??process.env[sn],$=f.awsContainerAuthorizationToken??process.env[rn],r=f.awsContainerAuthorizationTokenFile??process.env[$n],E=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console.warn:f.logger.warn;if(w&&s)E("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),E("awsContainerCredentialsFullUri will take precedence.");if($&&r)E("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),E("awsContainerAuthorizationToken will take precedence.");if(s)h=s;else if(w)h=`${wn}${w}`;else throw new a(`No HTTP credential provider host provided.
|
|
49
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let T=new URL(h);oY(T,f.logger);let U=new rf({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return w9(async()=>{let F=tY(T);if($)F.headers.Authorization=$;else if(r)F.headers.Authorization=(await fn.readFile(r)).toString();try{let C=await U.handle(F);return f9(C.response).then((I)=>s9.setCredentialFeature(I,"CREDENTIALS_HTTP","z"))}catch(C){throw new a(String(C),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};var r9=B(()=>{s9=o(C1(),1);wr();Y0();pY();h9()});var s2={};Uh(s2,{fromHttp:()=>$9});var $2=B(()=>{r9()});var r2=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var U9=300000,zs="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var T2=H((lA0,B9)=>{var{defineProperty:kE,getOwnPropertyDescriptor:En,getOwnPropertyNames:Tn}=Object,Un=Object.prototype.hasOwnProperty,E2=(f,h)=>kE(f,"name",{value:h,configurable:!0}),Fn=(f,h)=>{for(var w in h)kE(f,w,{get:h[w],enumerable:!0})},Cn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tn(h))if(!Un.call(f,$)&&$!==w)kE(f,$,{get:()=>h[$],enumerable:!(s=En(h,$))||s.enumerable})}return f},In=(f)=>Cn(kE({},"__esModule",{value:!0}),f),F9={};Fn(F9,{getHostHeaderPlugin:()=>Bn,hostHeaderMiddleware:()=>I9,hostHeaderMiddlewareOptions:()=>L9,resolveHostHeaderConfig:()=>C9});B9.exports=In(F9);var Ln=t0();function C9(f){return f}E2(C9,"resolveHostHeaderConfig");var I9=E2((f)=>(h)=>async(w)=>{if(!Ln.HttpRequest.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},"hostHeaderMiddleware"),L9={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Bn=E2((f)=>({applyToStack:(h)=>{h.add(I9(f),L9)}}),"getHostHeaderPlugin")});var U2=H((vA0,R9)=>{var{defineProperty:yE,getOwnPropertyDescriptor:An,getOwnPropertyNames:Gn}=Object,Wn=Object.prototype.hasOwnProperty,A9=(f,h)=>yE(f,"name",{value:h,configurable:!0}),zn=(f,h)=>{for(var w in h)yE(f,w,{get:h[w],enumerable:!0})},Rn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gn(h))if(!Wn.call(f,$)&&$!==w)yE(f,$,{get:()=>h[$],enumerable:!(s=An(h,$))||s.enumerable})}return f},Xn=(f)=>Rn(yE({},"__esModule",{value:!0}),f),G9={};zn(G9,{getLoggerPlugin:()=>Sn,loggerMiddleware:()=>W9,loggerMiddlewareOptions:()=>z9});R9.exports=Xn(G9);var W9=A9(()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U,overrideOutputFilterSensitiveLog:F}=T,C=U??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:L,...G}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(G),metadata:L}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U}=T,F=U??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},"loggerMiddleware"),z9={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Sn=A9((f)=>({applyToStack:(h)=>{h.add(W9(),z9)}}),"getLoggerPlugin")});var C2=H((bA0,Q9)=>{var{defineProperty:jE,getOwnPropertyDescriptor:Yn,getOwnPropertyNames:Mn}=Object,Qn=Object.prototype.hasOwnProperty,F2=(f,h)=>jE(f,"name",{value:h,configurable:!0}),Kn=(f,h)=>{for(var w in h)jE(f,w,{get:h[w],enumerable:!0})},Zn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Mn(h))if(!Qn.call(f,$)&&$!==w)jE(f,$,{get:()=>h[$],enumerable:!(s=Yn(h,$))||s.enumerable})}return f},Jn=(f)=>Zn(jE({},"__esModule",{value:!0}),f),S9={};Kn(S9,{addRecursionDetectionMiddlewareOptions:()=>M9,getRecursionDetectionPlugin:()=>Nn,recursionDetectionMiddleware:()=>Y9});Q9.exports=Jn(S9);var Vn=t0(),X9="X-Amzn-Trace-Id",Pn="AWS_LAMBDA_FUNCTION_NAME",Hn="_X_AMZN_TRACE_ID",Y9=F2((f)=>(h)=>async(w)=>{let{request:s}=w;if(!Vn.HttpRequest.isInstance(s)||f.runtime!=="node"||s.headers.hasOwnProperty(X9))return h(w);let $=process.env[Pn],r=process.env[Hn],E=F2((T)=>typeof T==="string"&&T.length>0,"nonEmptyString");if(E($)&&E(r))s.headers[X9]=r;return h({...w,request:s})},"recursionDetectionMiddleware"),M9={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Nn=F2((f)=>({applyToStack:(h)=>{h.add(Y9(f),M9)}}),"getRecursionDetectionPlugin")});var vE=H((mA0,q9)=>{var{defineProperty:OE,getOwnPropertyDescriptor:Dn,getOwnPropertyNames:qn}=Object,kn=Object.prototype.hasOwnProperty,Q0=(f,h)=>OE(f,"name",{value:h,configurable:!0}),yn=(f,h)=>{for(var w in h)OE(f,w,{get:h[w],enumerable:!0})},jn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of qn(h))if(!kn.call(f,$)&&$!==w)OE(f,$,{get:()=>h[$],enumerable:!(s=Dn(h,$))||s.enumerable})}return f},On=(f)=>jn(OE({},"__esModule",{value:!0}),f),K9={};yn(K9,{EndpointCache:()=>ln,EndpointError:()=>Y1,customEndpointFunctions:()=>L2,isIpAddress:()=>Z9,isValidHostLabel:()=>A2,resolveEndpoint:()=>se});q9.exports=On(K9);var ln=class{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}static{Q0(this,"EndpointCache")}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}},vn=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}$"),Z9=Q0((f)=>vn.test(f)||f.startsWith("[")&&f.endsWith("]"),"isIpAddress"),bn=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),A2=Q0((f,h=!1)=>{if(!h)return bn.test(f);let w=f.split(".");for(let s of w)if(!A2(s))return!1;return!0},"isValidHostLabel"),L2={},sr="endpoints";function nf(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${nf(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(nf).join(", ")})`;return JSON.stringify(f,null,2)}Q0(nf,"toDebugString");var Y1=class extends Error{static{Q0(this,"EndpointError")}constructor(f){super(f);this.name="EndpointError"}},mn=Q0((f,h)=>f===h,"booleanEquals"),dn=Q0((f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new Y1(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new Y1(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w},"getAttrPathList"),J9=Q0((f,h)=>dn(h).reduce((w,s)=>{if(typeof w!=="object")throw new Y1(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f),"getAttr"),cn=Q0((f)=>f!=null,"isSet"),gn=Q0((f)=>!f,"not"),B2=U1(),I2={[B2.EndpointURLScheme.HTTP]:80,[B2.EndpointURLScheme.HTTPS]:443},xn=Q0((f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:G,protocol:X="",path:Q="",query:M={}}=f,q=new URL(`${X}//${L}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(B2.EndpointURLScheme).includes(U))return null;let F=Z9($),C=w.includes(`${s}:${I2[U]}`)||typeof f==="string"&&f.includes(`${s}:${I2[U]}`),I=`${s}${C?`:${I2[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}},"parseURL"),_n=Q0((f,h)=>f===h,"stringEquals"),nn=Q0((f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)},"substring"),en=Q0((f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),an={booleanEquals:mn,getAttr:J9,isSet:cn,isValidHostLabel:A2,not:gn,parseURL:xn,stringEquals:_n,substring:nn,uriEncode:en},V9=Q0((f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(J9(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")},"evaluateTemplate"),on=Q0(({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]},"getReferenceValue"),lE=Q0((f,h,w)=>{if(typeof f==="string")return V9(f,w);else if(f.fn)return P9(f,w);else if(f.ref)return on(f,w);throw new Y1(`'${h}': ${String(f)} is not a string, function or reference.`)},"evaluateExpression"),P9=Q0(({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:lE(r,"arg",w)),$=f.split(".");if($[0]in L2&&$[1]!=null)return L2[$[0]][$[1]](...s);return an[f](...s)},"callFunction"),pn=Q0(({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new Y1(`'${f}' is already defined in Reference Record.`);let s=P9(h,w);return w.logger?.debug?.(`${sr} evaluateCondition: ${nf(h)} = ${nf(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}},"evaluateCondition"),G2=Q0((f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=pn(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${sr} assign: ${r.name} := ${nf(r.value)}`)}return{result:!0,referenceRecord:w}},"evaluateConditions"),un=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=lE(r,"Header value entry",h);if(typeof E!=="string")throw new Y1(`Header '${s}' value '${E}' is not a string`);return E})}),{}),"getEndpointHeaders"),H9=Q0((f,h)=>{if(Array.isArray(f))return f.map((w)=>H9(w,h));switch(typeof f){case"string":return V9(f,h);case"object":if(f===null)throw new Y1(`Unexpected endpoint property: ${f}`);return N9(f,h);case"boolean":return f;default:throw new Y1(`Unexpected endpoint property type: ${typeof f}`)}},"getEndpointProperty"),N9=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:H9($,h)}),{}),"getEndpointProperties"),tn=Q0((f,h)=>{let w=lE(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new Y1(`Endpoint URL must be a string, got ${typeof w}`)},"getEndpointUrl"),fe=Q0((f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=G2(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${sr} Resolving endpoint from template: ${nf(s)}`),{...F!=null&&{headers:un(F,E)},...U!=null&&{properties:N9(U,E)},url:tn(T,E)}},"evaluateEndpointRule"),he=Q0((f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=G2(w,h);if(!$)return;throw new Y1(lE(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))},"evaluateErrorRule"),we=Q0((f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=G2(w,h);if(!$)return;return D9(s,{...h,referenceRecord:{...h.referenceRecord,...r}})},"evaluateTreeRule"),D9=Q0((f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=fe(w,h);if(s)return s}else if(w.type==="error")he(w,h);else if(w.type==="tree"){let s=we(w,h);if(s)return s}else throw new Y1(`Unknown endpoint rule: ${w}`);throw new Y1("Rules evaluation failed")},"evaluateRules"),se=Q0((f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${sr} Initial EndpointParams: ${nf(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new Y1(`Missing required parameter: '${F}'`);let U=D9(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${sr} Resolved endpoint: ${nf(U)}`),U},"resolveEndpoint")});var mE=H((cA0,i9)=>{var{defineProperty:bE,getOwnPropertyDescriptor:$e,getOwnPropertyNames:re}=Object,Ee=Object.prototype.hasOwnProperty,Rs=(f,h)=>bE(f,"name",{value:h,configurable:!0}),Te=(f,h)=>{for(var w in h)bE(f,w,{get:h[w],enumerable:!0})},Ue=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of re(h))if(!Ee.call(f,$)&&$!==w)bE(f,$,{get:()=>h[$],enumerable:!(s=$e(h,$))||s.enumerable})}return f},Fe=(f)=>Ue(bE({},"__esModule",{value:!0}),f),y9={};Te(y9,{ConditionObject:()=>V0.ConditionObject,DeprecatedObject:()=>V0.DeprecatedObject,EndpointError:()=>V0.EndpointError,EndpointObject:()=>V0.EndpointObject,EndpointObjectHeaders:()=>V0.EndpointObjectHeaders,EndpointObjectProperties:()=>V0.EndpointObjectProperties,EndpointParams:()=>V0.EndpointParams,EndpointResolverOptions:()=>V0.EndpointResolverOptions,EndpointRuleObject:()=>V0.EndpointRuleObject,ErrorRuleObject:()=>V0.ErrorRuleObject,EvaluateOptions:()=>V0.EvaluateOptions,Expression:()=>V0.Expression,FunctionArgv:()=>V0.FunctionArgv,FunctionObject:()=>V0.FunctionObject,FunctionReturn:()=>V0.FunctionReturn,ParameterObject:()=>V0.ParameterObject,ReferenceObject:()=>V0.ReferenceObject,ReferenceRecord:()=>V0.ReferenceRecord,RuleSetObject:()=>V0.RuleSetObject,RuleSetRules:()=>V0.RuleSetRules,TreeRuleObject:()=>V0.TreeRuleObject,awsEndpointFunctions:()=>d9,getUserAgentPrefix:()=>Be,isIpAddress:()=>V0.isIpAddress,partition:()=>b9,resolveEndpoint:()=>V0.resolveEndpoint,setPartitionInfo:()=>m9,useDefaultPartitionInfo:()=>Le});i9.exports=Fe(y9);var V0=vE(),j9=Rs((f,h=!1)=>{if(h){for(let w of f.split("."))if(!j9(w))return!1;return!0}if(!V0.isValidHostLabel(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(V0.isIpAddress(f))return!1;return!0},"isVirtualHostableS3Bucket"),k9=":",Ce="/",Ie=Rs((f)=>{let h=f.split(k9);if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(k9)==="")return null;let U=T.map((F)=>F.split(Ce)).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}},"parseArn"),O9={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|mx)\\-\\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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},l9=O9,v9="",b9=Rs((f)=>{let{partitions:h}=l9;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},"partition"),m9=Rs((f,h="")=>{l9=f,v9=h},"setPartitionInfo"),Le=Rs(()=>{m9(O9,"")},"useDefaultPartitionInfo"),Be=Rs(()=>v9,"getUserAgentPrefix"),d9={isVirtualHostableS3Bucket:j9,parseArn:Ie,partition:b9};V0.customEndpointFunctions.aws=d9});var cE=H((gA0,fM)=>{var{defineProperty:iE,getOwnPropertyDescriptor:Ae,getOwnPropertyNames:Ge}=Object,We=Object.prototype.hasOwnProperty,Ew=(f,h)=>iE(f,"name",{value:h,configurable:!0}),ze=(f,h)=>{for(var w in h)iE(f,w,{get:h[w],enumerable:!0})},Re=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ge(h))if(!We.call(f,$)&&$!==w)iE(f,$,{get:()=>h[$],enumerable:!(s=Ae(h,$))||s.enumerable})}return f},Xe=(f)=>Re(iE({},"__esModule",{value:!0}),f),_9={};ze(_9,{DEFAULT_UA_APP_ID:()=>n9,getUserAgentMiddlewareOptions:()=>t9,getUserAgentPlugin:()=>Ve,resolveUserAgentConfig:()=>a9,userAgentMiddleware:()=>u9});fM.exports=Xe(_9);var Se=m0(),n9=void 0;function e9(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}Ew(e9,"isValidUserAgentAppId");function a9(f){let h=Se.normalizeProvider(f.userAgentAppId??n9);return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent,userAgentAppId:async()=>{let w=await h();if(!e9(w)){let s=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof w!=="string")s?.warn("userAgentAppId must be a string or undefined.");else if(w.length>50)s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return w}}}Ew(a9,"resolveUserAgentConfig");var Ye=mE(),Me=t0(),Kf=O0(),Qe=/\d{12}\.ddb/;async function o9(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")Kf.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))Kf.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else Kf.setFeature(f,"RETRY_MODE_STANDARD","E");else Kf.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(Qe))Kf.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":Kf.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Kf.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Kf.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)Kf.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))Kf.setFeature(f,E,T)}}Ew(o9,"checkFeatures");var c9="user-agent",W2="x-amz-user-agent",g9=" ",z2="/",Ke=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Ze=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,x9="-",Je=1024;function p9(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=Je){if(h.length)h+=","+s;else h+=s;continue}break}return h}Ew(p9,"encodeFeatures");var u9=Ew((f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!Me.HttpRequest.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(dE)||[],T=(await f.defaultUserAgentProvider()).map(dE);await o9(w,f,s);let U=w;T.push(`m/${p9(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(dE)||[],C=await f.userAgentAppId();if(C)T.push(dE([`app/${C}`]));let I=Ye.getUserAgentPrefix(),L=(I?[I]:[]).concat([...T,...E,...F]).join(g9),G=[...T.filter((X)=>X.startsWith("aws-sdk-")),...F].join(g9);if(f.runtime!=="browser"){if(G)r[W2]=r[W2]?`${r[c9]} ${G}`:G;r[c9]=L}else r[W2]=L;return h({...s,request:$})},"userAgentMiddleware"),dE=Ew((f)=>{let h=f[0].split(z2).map((E)=>E.replace(Ke,x9)).join(z2),w=f[1]?.replace(Ze,x9),s=h.indexOf(z2),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},"escapeUserAgent"),t9={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ve=Ew((f)=>({applyToStack:(h)=>{h.add(u9(f),t9)}}),"getUserAgentPlugin")});var rM=H((xA0,$M)=>{var{defineProperty:gE,getOwnPropertyDescriptor:Pe,getOwnPropertyNames:He}=Object,Ne=Object.prototype.hasOwnProperty,hM=(f,h)=>gE(f,"name",{value:h,configurable:!0}),De=(f,h)=>{for(var w in h)gE(f,w,{get:h[w],enumerable:!0})},qe=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of He(h))if(!Ne.call(f,$)&&$!==w)gE(f,$,{get:()=>h[$],enumerable:!(s=Pe(h,$))||s.enumerable})}return f},ke=(f)=>qe(gE({},"__esModule",{value:!0}),f),wM={};De(wM,{SelectorType:()=>sM,booleanSelector:()=>ye,numberSelector:()=>je});$M.exports=ke(wM);var ye=hM((f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)},"booleanSelector"),je=hM((f,h,w)=>{if(!(h in f))return;let s=parseInt(f[h],10);if(Number.isNaN(s))throw new TypeError(`Cannot load ${w} '${h}'. Expected number, got '${f[h]}'.`);return s},"numberSelector"),sM=((f)=>{return f.ENV="env",f.CONFIG="shared config entry",f})(sM||{})});var Xs=H((_A0,WM)=>{var{defineProperty:_E,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:le}=Object,ve=Object.prototype.hasOwnProperty,Ef=(f,h)=>_E(f,"name",{value:h,configurable:!0}),be=(f,h)=>{for(var w in h)_E(f,w,{get:h[w],enumerable:!0})},me=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of le(h))if(!ve.call(f,$)&&$!==w)_E(f,$,{get:()=>h[$],enumerable:!(s=Oe(h,$))||s.enumerable})}return f},de=(f)=>me(_E({},"__esModule",{value:!0}),f),UM={};be(UM,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>CM,CONFIG_USE_FIPS_ENDPOINT:()=>LM,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>ie,DEFAULT_USE_FIPS_ENDPOINT:()=>ge,ENV_USE_DUALSTACK_ENDPOINT:()=>FM,ENV_USE_FIPS_ENDPOINT:()=>IM,NODE_REGION_CONFIG_FILE_OPTIONS:()=>oe,NODE_REGION_CONFIG_OPTIONS:()=>ae,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ce,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>xe,REGION_ENV_NAME:()=>BM,REGION_INI_NAME:()=>AM,getRegionInfo:()=>ha,resolveCustomEndpointsConfig:()=>_e,resolveEndpointsConfig:()=>ee,resolveRegionConfig:()=>pe});WM.exports=de(UM);var Nh=rM(),FM="AWS_USE_DUALSTACK_ENDPOINT",CM="use_dualstack_endpoint",ie=!1,ce={environmentVariableSelector:(f)=>Nh.booleanSelector(f,FM,Nh.SelectorType.ENV),configFileSelector:(f)=>Nh.booleanSelector(f,CM,Nh.SelectorType.CONFIG),default:!1},IM="AWS_USE_FIPS_ENDPOINT",LM="use_fips_endpoint",ge=!1,xe={environmentVariableSelector:(f)=>Nh.booleanSelector(f,IM,Nh.SelectorType.ENV),configFileSelector:(f)=>Nh.booleanSelector(f,LM,Nh.SelectorType.CONFIG),default:!1},xE=Fh(),_e=Ef((f)=>{let{endpoint:h,urlParser:w}=f;return{...f,tls:f.tls??!0,endpoint:xE.normalizeProvider(typeof h==="string"?w(h):h),isCustomEndpoint:!0,useDualstackEndpoint:xE.normalizeProvider(f.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),ne=Ef(async(f)=>{let{tls:h=!0}=f,w=await f.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw new Error("Invalid region in client config");let $=await f.useDualstackEndpoint(),r=await f.useFipsEndpoint(),{hostname:E}=await f.regionInfoProvider(w,{useDualstackEndpoint:$,useFipsEndpoint:r})??{};if(!E)throw new Error("Cannot resolve hostname from client config");return f.urlParser(`${h?"https:":"http:"}//${E}`)},"getEndpointFromRegion"),ee=Ef((f)=>{let h=xE.normalizeProvider(f.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:s,urlParser:$}=f;return{...f,tls:f.tls??!0,endpoint:w?xE.normalizeProvider(typeof w==="string"?$(w):w):()=>ne({...f,useDualstackEndpoint:h,useFipsEndpoint:s}),isCustomEndpoint:!!w,useDualstackEndpoint:h}},"resolveEndpointsConfig"),BM="AWS_REGION",AM="region",ae={environmentVariableSelector:(f)=>f[BM],configFileSelector:(f)=>f[AM],default:()=>{throw new Error("Region is missing")}},oe={preferredFile:"credentials"},GM=Ef((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),EM=Ef((f)=>GM(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),pe=Ef((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return EM(h);let s=await h();return EM(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(GM(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}},"resolveRegionConfig"),TM=Ef((f=[],{useFipsEndpoint:h,useDualstackEndpoint:w})=>f.find(({tags:s})=>h===s.includes("fips")&&w===s.includes("dualstack"))?.hostname,"getHostnameFromVariants"),ue=Ef((f,{regionHostname:h,partitionHostname:w})=>h?h:w?w.replace("{region}",f):void 0,"getResolvedHostname"),te=Ef((f,{partitionHash:h})=>Object.keys(h||{}).find((w)=>h[w].regions.includes(f))??"aws","getResolvedPartition"),fa=Ef((f,{signingRegion:h,regionRegex:w,useFipsEndpoint:s})=>{if(h)return h;else if(s){let $=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),r=f.match($);if(r)return r[0].slice(1,-1)}},"getResolvedSigningRegion"),ha=Ef((f,{useFipsEndpoint:h=!1,useDualstackEndpoint:w=!1,signingService:s,regionHash:$,partitionHash:r})=>{let E=te(f,{partitionHash:r}),T=f in $?f:r[E]?.endpoint??f,U={useFipsEndpoint:h,useDualstackEndpoint:w},F=TM($[T]?.variants,U),C=TM(r[E]?.variants,U),I=ue(T,{regionHostname:F,partitionHostname:C});if(I===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:T,useFipsEndpoint:h,useDualstackEndpoint:w}}`);let L=fa(I,{signingRegion:$[T]?.signingRegion,regionRegex:r[E].regionRegex,useFipsEndpoint:h});return{partition:E,signingService:s,hostname:I,...L&&{signingRegion:L},...$[T]?.signingService&&{signingService:$[T].signingService}}},"getRegionInfo")});var X2=H((nA0,YM)=>{var{defineProperty:nE,getOwnPropertyDescriptor:wa,getOwnPropertyNames:sa}=Object,$a=Object.prototype.hasOwnProperty,RM=(f,h)=>nE(f,"name",{value:h,configurable:!0}),ra=(f,h)=>{for(var w in h)nE(f,w,{get:h[w],enumerable:!0})},Ea=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of sa(h))if(!$a.call(f,$)&&$!==w)nE(f,$,{get:()=>h[$],enumerable:!(s=wa(h,$))||s.enumerable})}return f},Ta=(f)=>Ea(nE({},"__esModule",{value:!0}),f),XM={};ra(XM,{contentLengthMiddleware:()=>R2,contentLengthMiddlewareOptions:()=>SM,getContentLengthPlugin:()=>Fa});YM.exports=Ta(XM);var Ua=t0(),zM="content-length";function R2(f){return(h)=>async(w)=>{let s=w.request;if(Ua.HttpRequest.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(zM)===-1)try{let E=f($);s.headers={...s.headers,[zM]:String(E)}}catch(E){}}return h({...w,request:s})}}RM(R2,"contentLengthMiddleware");var SM={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Fa=RM((f)=>({applyToStack:(h)=>{h.add(R2(f.bodyLengthChecker),SM)}}),"getContentLengthPlugin")});var Ss=H((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.getHomeDir=void 0;var Ca=B0("os"),Ia=B0("path"),S2={},La=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Ba=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Ia.sep}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=La();if(!S2[$])S2[$]=Ca.homedir();return S2[$]};MM.getHomeDir=Ba});var Y2=H((KM)=>{Object.defineProperty(KM,"__esModule",{value:!0});KM.getSSOTokenFilepath=void 0;var Aa=B0("crypto"),Ga=B0("path"),Wa=Ss(),za=(f)=>{let w=Aa.createHash("sha1").update(f).digest("hex");return Ga.join(Wa.getHomeDir(),".aws","sso","cache",`${w}.json`)};KM.getSSOTokenFilepath=za});var PM=H((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.getSSOTokenFromFile=void 0;var Ra=B0("fs"),Xa=Y2(),{readFile:Sa}=Ra.promises,Ya=async(f)=>{let h=Xa.getSSOTokenFilepath(f),w=await Sa(h,"utf8");return JSON.parse(w)};JM.getSSOTokenFromFile=Ya});var Q2=H((HM)=>{Object.defineProperty(HM,"__esModule",{value:!0});HM.slurpFile=void 0;var Ma=B0("fs"),{readFile:Qa}=Ma.promises,M2={},Ka=(f,h)=>{if(!M2[f]||(h===null||h===void 0?void 0:h.ignoreCache))M2[f]=Qa(f,"utf8");return M2[f]};HM.slurpFile=Ka});var V2=H((uA0,rr)=>{var{defineProperty:oE,getOwnPropertyDescriptor:Za,getOwnPropertyNames:Ja}=Object,Va=Object.prototype.hasOwnProperty,v1=(f,h)=>oE(f,"name",{value:h,configurable:!0}),Pa=(f,h)=>{for(var w in h)oE(f,w,{get:h[w],enumerable:!0})},K2=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ja(h))if(!Va.call(f,$)&&$!==w)oE(f,$,{get:()=>h[$],enumerable:!(s=Za(h,$))||s.enumerable})}return f},J2=(f,h,w)=>(K2(f,h,"default"),w&&K2(w,h,"default")),Ha=(f)=>K2(oE({},"__esModule",{value:!0}),f),$r={};Pa($r,{CONFIG_PREFIX_SEPARATOR:()=>Tw,DEFAULT_PROFILE:()=>yM,ENV_PROFILE:()=>kM,getProfileName:()=>Na,loadSharedConfigFiles:()=>OM,loadSsoSessionData:()=>ca,parseKnownFiles:()=>xa});rr.exports=Ha($r);J2($r,Ss(),rr.exports);var kM="AWS_PROFILE",yM="default",Na=v1((f)=>f.profile||process.env[kM]||yM,"getProfileName");J2($r,Y2(),rr.exports);J2($r,PM(),rr.exports);var eE=U1(),Da=v1((f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(Tw);if(w===-1)return!1;return Object.values(eE.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(Tw),r=w.substring(0,$)===eE.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}}),"getConfigData"),aE=B0("path"),qa=Ss(),ka="AWS_CONFIG_FILE",jM=v1(()=>process.env[ka]||aE.join(qa.getHomeDir(),".aws","config"),"getConfigFilepath"),ya=Ss(),ja="AWS_SHARED_CREDENTIALS_FILE",Oa=v1(()=>process.env[ja]||aE.join(ya.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),la=Ss(),va=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,ba=["__proto__","profile __proto__"],Z2=v1((f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=va.exec(T);if(U){let[,F,,C]=U;if(Object.values(eE.IniSectionType).includes(F))w=[F,C].join(Tw)}else w=T;if(ba.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(Tw):U;h[w][C]=F}}}}return h},"parseIni"),DM=Q2(),qM=v1(()=>({}),"swallowError"),Tw=".",OM=v1(async(f={})=>{let{filepath:h=Oa(),configFilepath:w=jM()}=f,s=la.getHomeDir(),$="~/",r=h;if(h.startsWith("~/"))r=aE.join(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=aE.join(s,w.slice(2));let T=await Promise.all([DM.slurpFile(E,{ignoreCache:f.ignoreCache}).then(Z2).then(Da).catch(qM),DM.slurpFile(r,{ignoreCache:f.ignoreCache}).then(Z2).catch(qM)]);return{configFile:T[0],credentialsFile:T[1]}},"loadSharedConfigFiles"),ma=v1((f)=>Object.entries(f).filter(([h])=>h.startsWith(eE.IniSectionType.SSO_SESSION+Tw)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(Tw)+1)]:s}),{}),"getSsoSessionData"),da=Q2(),ia=v1(()=>({}),"swallowError"),ca=v1(async(f={})=>da.slurpFile(f.configFilepath??jM()).then(Z2).then(ma).catch(ia),"loadSsoSessionData"),ga=v1((...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h},"mergeConfigFiles"),xa=v1(async(f)=>{let h=await OM(f);return ga(h.configFile,h.credentialsFile)},"parseKnownFiles")});var Ms=H((tA0,bM)=>{var{defineProperty:pE,getOwnPropertyDescriptor:_a,getOwnPropertyNames:na}=Object,ea=Object.prototype.hasOwnProperty,Ys=(f,h)=>pE(f,"name",{value:h,configurable:!0}),aa=(f,h)=>{for(var w in h)pE(f,w,{get:h[w],enumerable:!0})},oa=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of na(h))if(!ea.call(f,$)&&$!==w)pE(f,$,{get:()=>h[$],enumerable:!(s=_a(h,$))||s.enumerable})}return f},pa=(f)=>oa(pE({},"__esModule",{value:!0}),f),vM={};aa(vM,{loadConfig:()=>wo});bM.exports=pa(vM);var Er=q$();function P2(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}Ys(P2,"getSelectorName");var ua=Ys((f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new Er.CredentialsProviderError(w.message||`Not found in ENV: ${P2(f.toString())}`,{logger:h})}},"fromEnv"),lM=V2(),ta=Ys((f,{preferredFile:h="config",...w}={})=>async()=>{let s=lM.getProfileName(w),{configFile:$,credentialsFile:r}=await lM.loadSharedConfigFiles(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new Er.CredentialsProviderError(F.message||`Not found in config files w/ profile [${s}]: ${P2(f.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),fo=Ys((f)=>typeof f==="function","isFunction"),ho=Ys((f)=>fo(f)?async()=>await f():Er.fromStatic(f),"fromStatic"),wo=Ys(({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>Er.memoize(Er.chain(ua(f),ta(h,s),ho(w))),"loadConfig")});var xM=H((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.getEndpointUrlConfig=void 0;var mM=V2(),dM="AWS_ENDPOINT_URL",iM="endpoint_url",so=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[dM,...w].join("_")];if(s)return s;let $=h[dM];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(mM.CONFIG_PREFIX_SEPARATOR)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),iM].join(mM.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}let s=h[iM];if(s)return s;return},default:void 0});cM.getEndpointUrlConfig=so});var H2=H((_M)=>{Object.defineProperty(_M,"__esModule",{value:!0});_M.getEndpointFromConfig=void 0;var $o=Ms(),ro=xM(),Eo=async(f)=>$o.loadConfig(ro.getEndpointUrlConfig(f!==null&&f!==void 0?f:""))();_M.getEndpointFromConfig=Eo});var pM=H((wG0,oM)=>{var{defineProperty:uE,getOwnPropertyDescriptor:To,getOwnPropertyNames:Uo}=Object,Fo=Object.prototype.hasOwnProperty,Co=(f,h)=>uE(f,"name",{value:h,configurable:!0}),Io=(f,h)=>{for(var w in h)uE(f,w,{get:h[w],enumerable:!0})},Lo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Uo(h))if(!Fo.call(f,$)&&$!==w)uE(f,$,{get:()=>h[$],enumerable:!(s=To(h,$))||s.enumerable})}return f},Bo=(f)=>Lo(uE({},"__esModule",{value:!0}),f),eM={};Io(eM,{parseQueryString:()=>aM});oM.exports=Bo(eM);function aM(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}Co(aM,"parseQueryString")});var Tr=H((sG0,fQ)=>{var{defineProperty:tE,getOwnPropertyDescriptor:Ao,getOwnPropertyNames:Go}=Object,Wo=Object.prototype.hasOwnProperty,zo=(f,h)=>tE(f,"name",{value:h,configurable:!0}),Ro=(f,h)=>{for(var w in h)tE(f,w,{get:h[w],enumerable:!0})},Xo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Go(h))if(!Wo.call(f,$)&&$!==w)tE(f,$,{get:()=>h[$],enumerable:!(s=Ao(h,$))||s.enumerable})}return f},So=(f)=>Xo(tE({},"__esModule",{value:!0}),f),uM={};Ro(uM,{parseUrl:()=>tM});fQ.exports=So(uM);var Yo=pM(),tM=zo((f)=>{if(typeof f==="string")return tM(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=Yo.parseQueryString(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}},"parseUrl")});var Qs=H(($G0,TQ)=>{var{defineProperty:h5,getOwnPropertyDescriptor:Mo,getOwnPropertyNames:Qo}=Object,Ko=Object.prototype.hasOwnProperty,Tf=(f,h)=>h5(f,"name",{value:h,configurable:!0}),Zo=(f,h)=>{for(var w in h)h5(f,w,{get:h[w],enumerable:!0})},Jo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Qo(h))if(!Ko.call(f,$)&&$!==w)h5(f,$,{get:()=>h[$],enumerable:!(s=Mo(h,$))||s.enumerable})}return f},Vo=(f)=>Jo(h5({},"__esModule",{value:!0}),f),wQ={};Zo(wQ,{endpointMiddleware:()=>rQ,endpointMiddlewareOptions:()=>EQ,getEndpointFromInstructions:()=>sQ,getEndpointPlugin:()=>vo,resolveEndpointConfig:()=>mo,resolveParams:()=>$Q,toEndpointV1:()=>N2});TQ.exports=Vo(wQ);var Po=Tf(async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(ko(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!qo(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),Ho=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,No=/(\d+\.){3}\d+/,Do=/\.\./,qo=Tf((f)=>Ho.test(f)&&!No.test(f)&&!Do.test(f),"isDnsCompatibleBucketName"),ko=Tf((f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E},"isArnBucketName"),yo=Tf((f,h,w)=>{let s=Tf(async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $},"configProvider");if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s},"createConfigValueProvider"),jo=H2(),hQ=Tr(),N2=Tf((f)=>{if(typeof f==="object"){if("url"in f)return hQ.parseUrl(f.url);return f}return hQ.parseUrl(f)},"toEndpointV1"),sQ=Tf(async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await jo.getEndpointFromConfig(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(N2(E))}let $=await $Q(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},"getEndpointFromInstructions"),$Q=Tf(async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await yo(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await Po(s);return s},"resolveParams"),Oo=m0(),f5=Fh(),rQ=Tf(({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)Oo.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await sQ($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=f5.getSmithyContext(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}},"endpointMiddleware"),lo=Dw(),EQ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:lo.serializerMiddlewareOption.name},vo=Tf((f,h)=>({applyToStack:(w)=>{w.addRelativeTo(rQ({config:f,instructions:h}),EQ)}}),"getEndpointPlugin"),bo=H2(),mo=Tf((f)=>{let h=f.tls??!0,{endpoint:w}=f,s=w!=null?async()=>N2(await f5.normalizeProvider(w)()):void 0,r={...f,endpoint:s,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:f5.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:f5.normalizeProvider(f.useFipsEndpoint??!1)},E=void 0;return r.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!E)E=bo.getEndpointFromConfig(f.serviceId);return E},r},"resolveEndpointConfig")});var q2=H((rG0,CQ)=>{var{defineProperty:w5,getOwnPropertyDescriptor:io,getOwnPropertyNames:co}=Object,go=Object.prototype.hasOwnProperty,Ks=(f,h)=>w5(f,"name",{value:h,configurable:!0}),xo=(f,h)=>{for(var w in h)w5(f,w,{get:h[w],enumerable:!0})},_o=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of co(h))if(!go.call(f,$)&&$!==w)w5(f,$,{get:()=>h[$],enumerable:!(s=io(h,$))||s.enumerable})}return f},no=(f)=>_o(w5({},"__esModule",{value:!0}),f),UQ={};xo(UQ,{isClockSkewCorrectedError:()=>FQ,isClockSkewError:()=>fp,isRetryableByTrait:()=>to,isServerError:()=>wp,isThrottlingError:()=>hp,isTransientError:()=>D2});CQ.exports=no(UQ);var eo=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],ao=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],oo=["TimeoutError","RequestTimeout","RequestTimeoutException"],po=[500,502,503,504],uo=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],to=Ks((f)=>f.$retryable!==void 0,"isRetryableByTrait"),fp=Ks((f)=>eo.includes(f.name),"isClockSkewError"),FQ=Ks((f)=>f.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),hp=Ks((f)=>f.$metadata?.httpStatusCode===429||ao.includes(f.name)||f.$retryable?.throttling==!0,"isThrottlingError"),D2=Ks((f,h=0)=>FQ(f)||oo.includes(f.name)||uo.includes(f?.code||"")||po.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&D2(f.cause,h+1),"isTransientError"),wp=Ks((f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!D2(f))return!0;return!1}return!1},"isServerError")});var $5=H((EG0,XQ)=>{var{defineProperty:s5,getOwnPropertyDescriptor:sp,getOwnPropertyNames:$p}=Object,rp=Object.prototype.hasOwnProperty,Uf=(f,h)=>s5(f,"name",{value:h,configurable:!0}),Ep=(f,h)=>{for(var w in h)s5(f,w,{get:h[w],enumerable:!0})},Tp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of $p(h))if(!rp.call(f,$)&&$!==w)s5(f,$,{get:()=>h[$],enumerable:!(s=sp(h,$))||s.enumerable})}return f},Up=(f)=>Tp(s5({},"__esModule",{value:!0}),f),LQ={};Ep(LQ,{AdaptiveRetryStrategy:()=>Ap,ConfiguredRetryStrategy:()=>Gp,DEFAULT_MAX_ATTEMPTS:()=>k2,DEFAULT_RETRY_DELAY_BASE:()=>Ur,DEFAULT_RETRY_MODE:()=>Fp,DefaultRateLimiter:()=>AQ,INITIAL_RETRY_TOKENS:()=>y2,INVOCATION_ID_HEADER:()=>Ip,MAXIMUM_RETRY_DELAY:()=>j2,NO_RETRY_INCREMENT:()=>RQ,REQUEST_HEADER:()=>Lp,RETRY_COST:()=>WQ,RETRY_MODES:()=>BQ,StandardRetryStrategy:()=>O2,THROTTLING_RETRY_DELAY_BASE:()=>GQ,TIMEOUT_RETRY_COST:()=>zQ});XQ.exports=Up(LQ);var BQ=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(BQ||{}),k2=3,Fp="standard",Cp=q2(),AQ=class f{constructor(h){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=h?.beta??0.7,this.minCapacity=h?.minCapacity??1,this.minFillRate=h?.minFillRate??0.5,this.scaleConstant=h?.scaleConstant??0.4,this.smooth=h?.smooth??0.8;let w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{Uf(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(h){if(!this.enabled)return;if(this.refillTokenBucket(),h>this.currentCapacity){let w=(h-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>f.setTimeoutFn(s,w))}this.currentCapacity=this.currentCapacity-h}refillTokenBucket(){let h=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=h;return}let w=(h-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=h}updateClientSendingRate(h){let w;if(this.updateMeasuredRate(),Cp.isThrottlingError(h)){let $=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=$,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle($),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(h){return this.getPrecise(h*this.beta)}cubicSuccess(h){return this.getPrecise(this.scaleConstant*Math.pow(h-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(h){this.refillTokenBucket(),this.fillRate=Math.max(h,this.minFillRate),this.maxCapacity=Math.max(h,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let h=this.getCurrentTimeInSeconds(),w=Math.floor(h*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){let s=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(h){return parseFloat(h.toFixed(8))}},Ur=100,j2=20000,GQ=500,y2=500,WQ=5,zQ=10,RQ=1,Ip="amz-sdk-invocation-id",Lp="amz-sdk-request",Bp=Uf(()=>{let f=Ur;return{computeNextBackoffDelay:Uf((s)=>{return Math.floor(Math.min(j2,Math.random()*2**s*f))},"computeNextBackoffDelay"),setDelayBase:Uf((s)=>{f=s},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),IQ=Uf(({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:Uf(()=>h,"getRetryCount"),getRetryDelay:Uf(()=>Math.min(j2,f),"getRetryDelay"),getRetryCost:Uf(()=>w,"getRetryCost")}},"createDefaultRetryToken"),O2=class{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=y2,this.retryBackoffStrategy=Bp(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}static{Uf(this,"StandardRetryStrategy")}async acquireInitialRetryToken(f){return IQ({retryDelay:Ur,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?GQ:Ur);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,IQ({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(y2,this.capacity+(f.getRetryCost()??RQ))}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 ${k2}`),k2}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?zQ:WQ}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}},Ap=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode="adaptive";let{rateLimiter:w}=h??{};this.rateLimiter=w??new AQ,this.standardRetryStrategy=new O2(f)}static{Uf(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}},Gp=class extends O2{static{Uf(this,"ConfiguredRetryStrategy")}constructor(f,h=Ur){super(typeof f==="function"?f:async()=>f);if(typeof h==="number")this.computeNextBackoffDelay=()=>h;else this.computeNextBackoffDelay=h}async refreshRetryTokenForRetry(f,h){let w=await super.refreshRetryTokenForRetry(f,h);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}}});var MQ=H((SQ)=>{Object.defineProperty(SQ,"__esModule",{value:!0});SQ.isStreamingPayload=void 0;var Wp=B0("stream"),zp=(f)=>(f===null||f===void 0?void 0:f.body)instanceof Wp.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;SQ.isStreamingPayload=zp});var Fr=H((IG0,lQ)=>{var{defineProperty:r5,getOwnPropertyDescriptor:Rp,getOwnPropertyNames:Xp}=Object,Sp=Object.prototype.hasOwnProperty,x0=(f,h)=>r5(f,"name",{value:h,configurable:!0}),Yp=(f,h)=>{for(var w in h)r5(f,w,{get:h[w],enumerable:!0})},Mp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Xp(h))if(!Sp.call(f,$)&&$!==w)r5(f,$,{get:()=>h[$],enumerable:!(s=Rp(h,$))||s.enumerable})}return f},Qp=(f)=>Mp(r5({},"__esModule",{value:!0}),f),KQ={};Yp(KQ,{AdaptiveRetryStrategy:()=>Jp,CONFIG_MAX_ATTEMPTS:()=>v2,CONFIG_RETRY_MODE:()=>DQ,ENV_MAX_ATTEMPTS:()=>l2,ENV_RETRY_MODE:()=>NQ,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Vp,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Hp,StandardRetryStrategy:()=>HQ,defaultDelayDecider:()=>JQ,defaultRetryDecider:()=>VQ,getOmitRetryHeadersPlugin:()=>Np,getRetryAfterHint:()=>OQ,getRetryPlugin:()=>Op,omitRetryHeadersMiddleware:()=>qQ,omitRetryHeadersMiddlewareOptions:()=>kQ,resolveRetryConfig:()=>Pp,retryMiddleware:()=>yQ,retryMiddlewareOptions:()=>jQ});lQ.exports=Qp(KQ);var Zs=t0(),ZQ=PF(),l0=$5(),Kp=x0((f,h)=>{let w=f,s=h?.noRetryIncrement??l0.NO_RETRY_INCREMENT,$=h?.retryCost??l0.RETRY_COST,r=h?.timeoutRetryCost??l0.TIMEOUT_RETRY_COST,E=f,T=x0((I)=>I.name==="TimeoutError"?r:$,"getCapacityAmount"),U=x0((I)=>T(I)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:U,retrieveRetryTokens:x0((I)=>{if(!U(I))throw new Error("No retry token available");let L=T(I);return E-=L,L},"retrieveRetryTokens"),releaseRetryTokens:x0((I)=>{E+=I??s,E=Math.min(E,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),JQ=x0((f,h)=>Math.floor(Math.min(l0.MAXIMUM_RETRY_DELAY,Math.random()*2**h*f)),"defaultDelayDecider"),Dh=q2(),VQ=x0((f)=>{if(!f)return!1;return Dh.isRetryableByTrait(f)||Dh.isClockSkewError(f)||Dh.isThrottlingError(f)||Dh.isTransientError(f)},"defaultRetryDecider"),PQ=x0((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),HQ=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l0.RETRY_MODES.STANDARD,this.retryDecider=h?.retryDecider??VQ,this.delayDecider=h?.delayDecider??JQ,this.retryQuota=h?.retryQuota??Kp(l0.INITIAL_RETRY_TOKENS)}static{x0(this,"StandardRetryStrategy")}shouldRetry(f,h,w){return h<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(h){f=l0.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,h,w){let s,$=0,r=0,E=await this.getMaxAttempts(),{request:T}=h;if(Zs.HttpRequest.isInstance(T))T.headers[l0.INVOCATION_ID_HEADER]=ZQ.v4();while(!0)try{if(Zs.HttpRequest.isInstance(T))T.headers[l0.REQUEST_HEADER]=`attempt=${$+1}; max=${E}`;if(w?.beforeRequest)await w.beforeRequest();let{response:U,output:F}=await f(h);if(w?.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(s),F.$metadata.attempts=$+1,F.$metadata.totalRetryDelay=r,{response:U,output:F}}catch(U){let F=PQ(U);if($++,this.shouldRetry(F,$,E)){s=this.retryQuota.retrieveRetryTokens(F);let C=this.delayDecider(Dh.isThrottlingError(F)?l0.THROTTLING_RETRY_DELAY_BASE:l0.DEFAULT_RETRY_DELAY_BASE,$),I=Zp(F.$response),L=Math.max(I||0,C);r+=L,await new Promise((G)=>setTimeout(G,L));continue}if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=$,F.$metadata.totalRetryDelay=r,F}}},Zp=x0((f)=>{if(!Zs.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return s*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Jp=class extends HQ{static{x0(this,"AdaptiveRetryStrategy")}constructor(f,h){let{rateLimiter:w,...s}=h??{};super(f,s);this.rateLimiter=w??new l0.DefaultRateLimiter,this.mode=l0.RETRY_MODES.ADAPTIVE}async retry(f,h){return super.retry(f,h,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}},QQ=Fh(),l2="AWS_MAX_ATTEMPTS",v2="max_attempts",Vp={environmentVariableSelector:(f)=>{let h=f[l2];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${l2} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[v2];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${v2} mast be a number, got "${h}"`);return w},default:l0.DEFAULT_MAX_ATTEMPTS},Pp=x0((f)=>{let{retryStrategy:h}=f,w=QQ.normalizeProvider(f.maxAttempts??l0.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:w,retryStrategy:async()=>{if(h)return h;if(await QQ.normalizeProvider(f.retryMode)()===l0.RETRY_MODES.ADAPTIVE)return new l0.AdaptiveRetryStrategy(w);return new l0.StandardRetryStrategy(w)}}},"resolveRetryConfig"),NQ="AWS_RETRY_MODE",DQ="retry_mode",Hp={environmentVariableSelector:(f)=>f[NQ],configFileSelector:(f)=>f[DQ],default:l0.DEFAULT_RETRY_MODE},qQ=x0(()=>(f)=>async(h)=>{let{request:w}=h;if(Zs.HttpRequest.isInstance(w))delete w.headers[l0.INVOCATION_ID_HEADER],delete w.headers[l0.REQUEST_HEADER];return f(h)},"omitRetryHeadersMiddleware"),kQ={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Np=x0((f)=>({applyToStack:(h)=>{h.addRelativeTo(qQ(),kQ)}}),"getOmitRetryHeadersPlugin"),Dp=J0(),qp=MQ(),yQ=x0((f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(kp($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=Zs.HttpRequest.isInstance(C);if(I)C.headers[l0.INVOCATION_ID_HEADER]=ZQ.v4();while(!0)try{if(I)C.headers[l0.REQUEST_HEADER]=`attempt=${U+1}; max=${r}`;let{response:L,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=U+1,G.$metadata.totalRetryDelay=F,{response:L,output:G}}catch(L){let G=yp(L);if(T=PQ(L),I&&qp.isStreamingPayload(C))throw(w.logger instanceof Dp.NoOpLogger?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let X=E.getRetryDelay();F+=X,await new Promise((Q)=>setTimeout(Q,X))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},"retryMiddleware"),kp=x0((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),yp=x0((f)=>{let h={error:f,errorType:jp(f)},w=OQ(f.$response);if(w)h.retryAfterHint=w;return h},"getRetryErrorInfo"),jp=x0((f)=>{if(Dh.isThrottlingError(f))return"THROTTLING";if(Dh.isTransientError(f))return"TRANSIENT";if(Dh.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),jQ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Op=x0((f)=>({applyToStack:(h)=>{h.add(yQ(f),jQ)}}),"getRetryPlugin"),OQ=x0((f)=>{if(!Zs.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)},"getRetryAfterHint")});var b2=H((bQ)=>{Object.defineProperty(bQ,"__esModule",{value:!0});bQ.resolveHttpAuthSchemeConfig=bQ.defaultSSOOIDCHttpAuthSchemeProvider=bQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var lp=O0(),vQ=Fh(),vp=async(f,h,w)=>{return{operation:vQ.getSmithyContext(h).operation,region:await vQ.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};bQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=vp;function bp(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function mp(f){return{schemeId:"smithy.api#noAuth"}}var dp=(f)=>{let h=[];switch(f.operation){case"CreateToken":{h.push(mp(f));break}default:h.push(bp(f))}return h};bQ.defaultSSOOIDCHttpAuthSchemeProvider=dp;var ip=(f)=>{return{...lp.resolveAwsSdkSigV4Config(f)}};bQ.resolveHttpAuthSchemeConfig=ip});var m2=H((GG0,xp)=>{xp.exports={name:"@aws-sdk/nested-clients",version:"3.750.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","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",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js",types:"./dist-types/submodules/sso-oidc/index.d.ts"},"./sts":{module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js",types:"./dist-types/submodules/sts/index.d.ts"}}}});var i2=H((WG0,eQ)=>{var{defineProperty:E5,getOwnPropertyDescriptor:_p,getOwnPropertyNames:np}=Object,ep=Object.prototype.hasOwnProperty,iQ=(f,h)=>E5(f,"name",{value:h,configurable:!0}),ap=(f,h)=>{for(var w in h)E5(f,w,{get:h[w],enumerable:!0})},op=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of np(h))if(!ep.call(f,$)&&$!==w)E5(f,$,{get:()=>h[$],enumerable:!(s=_p(h,$))||s.enumerable})}return f},pp=(f)=>op(E5({},"__esModule",{value:!0}),f),cQ={};ap(cQ,{NODE_APP_ID_CONFIG_OPTIONS:()=>wu,UA_APP_ID_ENV_NAME:()=>_Q,UA_APP_ID_INI_NAME:()=>nQ,createDefaultUserAgentProvider:()=>xQ,crtAvailability:()=>gQ,defaultUserAgent:()=>tp});eQ.exports=pp(cQ);var dQ=B0("os"),d2=B0("process"),gQ={isCrtAvailable:!1},up=iQ(()=>{if(gQ.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),xQ=iQ(({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${dQ.platform()}`,dQ.release()],["lang/js"],["md/nodejs",`${d2.versions.node}`]],$=up();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(d2.env.AWS_EXECUTION_ENV)s.push([`exec-env/${d2.env.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}},"createDefaultUserAgentProvider"),tp=xQ,fu=cE(),_Q="AWS_SDK_UA_APP_ID",nQ="sdk_ua_app_id",hu="sdk-ua-app-id",wu={environmentVariableSelector:(f)=>f[_Q],configFileSelector:(f)=>f[nQ]??f[hu],default:fu.DEFAULT_UA_APP_ID}});var x2=H((zG0,uQ)=>{var{defineProperty:T5,getOwnPropertyDescriptor:su,getOwnPropertyNames:$u}=Object,ru=Object.prototype.hasOwnProperty,oQ=(f,h)=>T5(f,"name",{value:h,configurable:!0}),Eu=(f,h)=>{for(var w in h)T5(f,w,{get:h[w],enumerable:!0})},Tu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of $u(h))if(!ru.call(f,$)&&$!==w)T5(f,$,{get:()=>h[$],enumerable:!(s=su(h,$))||s.enumerable})}return f},Uu=(f)=>Tu(T5({},"__esModule",{value:!0}),f),pQ={};Eu(pQ,{Hash:()=>Iu});uQ.exports=Uu(pQ);var c2=qw(),Fu=u1(),Cu=B0("buffer"),aQ=B0("crypto"),Iu=class{static{oQ(this,"Hash")}constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(Fu.toUint8Array(g2(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?aQ.createHmac(this.algorithmIdentifier,g2(this.secret)):aQ.createHash(this.algorithmIdentifier)}};function g2(f,h){if(Cu.Buffer.isBuffer(f))return f;if(typeof f==="string")return c2.fromString(f,h);if(ArrayBuffer.isView(f))return c2.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength);return c2.fromArrayBuffer(f)}oQ(g2,"castSourceData")});var _2=H((XG0,hK)=>{var{defineProperty:U5,getOwnPropertyDescriptor:Lu,getOwnPropertyNames:Bu}=Object,Au=Object.prototype.hasOwnProperty,Gu=(f,h)=>U5(f,"name",{value:h,configurable:!0}),Wu=(f,h)=>{for(var w in h)U5(f,w,{get:h[w],enumerable:!0})},zu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Bu(h))if(!Au.call(f,$)&&$!==w)U5(f,$,{get:()=>h[$],enumerable:!(s=Lu(h,$))||s.enumerable})}return f},Ru=(f)=>zu(U5({},"__esModule",{value:!0}),f),fK={};Wu(fK,{calculateBodyLength:()=>Xu});hK.exports=Ru(fK);var tQ=B0("fs"),Xu=Gu((f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return tQ.lstatSync(f.path).size;else if(typeof f.fd==="number")return tQ.fstatSync(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)},"calculateBodyLength")});var RK=H((WK)=>{Object.defineProperty(WK,"__esModule",{value:!0});WK.ruleSet=void 0;var LK="required",m1="fn",d1="argv",Ps="ref",wK=!0,sK="isSet",Cr="booleanEquals",Js="error",Vs="endpoint",ef="tree",n2="PartitionResult",e2="getAttr",$K={[LK]:!1,type:"String"},rK={[LK]:!0,default:!1,type:"Boolean"},EK={[Ps]:"Endpoint"},BK={[m1]:Cr,[d1]:[{[Ps]:"UseFIPS"},!0]},AK={[m1]:Cr,[d1]:[{[Ps]:"UseDualStack"},!0]},b1={},TK={[m1]:e2,[d1]:[{[Ps]:n2},"supportsFIPS"]},GK={[Ps]:n2},UK={[m1]:Cr,[d1]:[!0,{[m1]:e2,[d1]:[GK,"supportsDualStack"]}]},FK=[BK],CK=[AK],IK=[{[Ps]:"Region"}],Su={version:"1.0",parameters:{Region:$K,UseDualStack:rK,UseFIPS:rK,Endpoint:$K},rules:[{conditions:[{[m1]:sK,[d1]:[EK]}],rules:[{conditions:FK,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Js},{conditions:CK,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Js},{endpoint:{url:EK,properties:b1,headers:b1},type:Vs}],type:ef},{conditions:[{[m1]:sK,[d1]:IK}],rules:[{conditions:[{[m1]:"aws.partition",[d1]:IK,assign:n2}],rules:[{conditions:[BK,AK],rules:[{conditions:[{[m1]:Cr,[d1]:[wK,TK]},UK],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Js}],type:ef},{conditions:FK,rules:[{conditions:[{[m1]:Cr,[d1]:[TK,wK]}],rules:[{conditions:[{[m1]:"stringEquals",[d1]:[{[m1]:e2,[d1]:[GK,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:b1,headers:b1},type:Vs},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"FIPS is enabled but this partition does not support FIPS",type:Js}],type:ef},{conditions:CK,rules:[{conditions:[UK],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef},{error:"DualStack is enabled but this partition does not support DualStack",type:Js}],type:ef},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Vs}],type:ef}],type:ef},{error:"Invalid Configuration: Missing Region",type:Js}]};WK.ruleSet=Su});var YK=H((XK)=>{Object.defineProperty(XK,"__esModule",{value:!0});XK.defaultEndpointResolver=void 0;var Yu=mE(),a2=vE(),Mu=RK(),Qu=new a2.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ku=(f,h={})=>{return Qu.get(f,()=>a2.resolveEndpoint(Mu.ruleSet,{endpointParams:f,logger:h.logger}))};XK.defaultEndpointResolver=Ku;a2.customEndpointFunctions.aws=Yu.awsEndpointFunctions});var JK=H((KK)=>{Object.defineProperty(KK,"__esModule",{value:!0});KK.getRuntimeConfig=void 0;var Zu=O0(),Ju=m0(),Vu=J0(),Pu=Tr(),MK=Ih(),QK=u1(),Hu=b2(),Nu=YK(),Du=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??MK.fromBase64,base64Encoder:f?.base64Encoder??MK.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??Nu.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Hu.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new Zu.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ju.NoAuthSigner}],logger:f?.logger??new Vu.NoOpLogger,serviceId:f?.serviceId??"SSO OIDC",urlParser:f?.urlParser??Pu.parseUrl,utf8Decoder:f?.utf8Decoder??QK.fromUtf8,utf8Encoder:f?.utf8Encoder??QK.toUtf8}};KK.getRuntimeConfig=Du});var mK=H((QG0,bK)=>{var{defineProperty:I5,getOwnPropertyDescriptor:qu,getOwnPropertyNames:ku}=Object,yu=Object.prototype.hasOwnProperty,_0=(f,h)=>I5(f,"name",{value:h,configurable:!0}),ju=(f,h)=>{for(var w in h)I5(f,w,{get:h[w],enumerable:!0})},Ou=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ku(h))if(!yu.call(f,$)&&$!==w)I5(f,$,{get:()=>h[$],enumerable:!(s=qu(h,$))||s.enumerable})}return f},lu=(f)=>Ou(I5({},"__esModule",{value:!0}),f),NK={};ju(NK,{DEFAULT_MAX_RETRIES:()=>yK,DEFAULT_TIMEOUT:()=>kK,ENV_CMDS_AUTH_TOKEN:()=>u2,ENV_CMDS_FULL_URI:()=>F5,ENV_CMDS_RELATIVE_URI:()=>C5,Endpoint:()=>jK,fromContainerMetadata:()=>du,fromInstanceMetadata:()=>Ut,getInstanceMetadataEndpoint:()=>lK,httpRequest:()=>Hs,providerConfigFromInit:()=>t2});bK.exports=lu(NK);var vu=B0("url"),Zf=q$(),bu=B0("buffer"),mu=B0("http");function Hs(f){return new Promise((h,w)=>{let s=mu.request({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new Zf.ProviderError("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new Zf.ProviderError("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new Zf.ProviderError("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(bu.Buffer.concat(E)),s.destroy()})}),s.end()})}_0(Hs,"httpRequest");var DK=_0((f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string","isImdsCredentials"),qK=_0((f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}}),"fromImdsCredentials"),kK=1000,yK=0,t2=_0(({maxRetries:f=yK,timeout:h=kK})=>({maxRetries:f,timeout:h}),"providerConfigFromInit"),p2=_0((f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w},"retry"),F5="AWS_CONTAINER_CREDENTIALS_FULL_URI",C5="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",u2="AWS_CONTAINER_AUTHORIZATION_TOKEN",du=_0((f={})=>{let{timeout:h,maxRetries:w}=t2(f);return()=>p2(async()=>{let s=await _u({logger:f.logger}),$=JSON.parse(await iu(h,s));if(!DK($))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:f.logger});return qK($)},w)},"fromContainerMetadata"),iu=_0(async(f,h)=>{if(process.env[u2])h.headers={...h.headers,Authorization:process.env[u2]};return(await Hs({...h,timeout:f})).toString()},"requestFromEcsImds"),cu="169.254.170.2",gu={localhost:!0,"127.0.0.1":!0},xu={"http:":!0,"https:":!0},_u=_0(async({logger:f})=>{if(process.env[C5])return{hostname:cu,path:process.env[C5]};if(process.env[F5]){let h=vu.parse(process.env[F5]);if(!h.hostname||!(h.hostname in gu))throw new Zf.CredentialsProviderError(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in xu))throw new Zf.CredentialsProviderError(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new Zf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${C5} or ${F5} environment variable is set`,{tryNextLink:!1,logger:f})},"getCmdsUri"),nu=class f extends Zf.CredentialsProviderError{constructor(h,w=!0){super(h,w);this.tryNextLink=w,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,f.prototype)}static{_0(this,"InstanceMetadataV1FallbackError")}},f6=Ms(),eu=Tr(),jK=((f)=>{return f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]",f})(jK||{}),au="AWS_EC2_METADATA_SERVICE_ENDPOINT",ou="ec2_metadata_service_endpoint",pu={environmentVariableSelector:(f)=>f[au],configFileSelector:(f)=>f[ou],default:void 0},OK=((f)=>{return f.IPv4="IPv4",f.IPv6="IPv6",f})(OK||{}),uu="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",tu="ec2_metadata_service_endpoint_mode",ft={environmentVariableSelector:(f)=>f[uu],configFileSelector:(f)=>f[tu],default:"IPv4"},lK=_0(async()=>eu.parseUrl(await ht()||await wt()),"getInstanceMetadataEndpoint"),ht=_0(async()=>f6.loadConfig(pu)(),"getFromEndpointConfig"),wt=_0(async()=>{let f=await f6.loadConfig(ft)();switch(f){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(OK)}`)}},"getFromEndpointModeConfig"),st=300,$t=300,rt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",VK=_0((f,h)=>{let w=st+Math.floor(Math.random()*$t),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
50
|
+
For more information, please visit: `+rt);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}},"getExtendedInstanceMetadataCredentials"),Et=_0((f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=VK($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=VK(s,w);else throw r}return s=$,$}},"staticStabilityProvider"),vK="/latest/meta-data/iam/security-credentials/",Tt="/latest/api/token",o2="AWS_EC2_METADATA_V1_DISABLED",PK="ec2_metadata_v1_disabled",HK="x-aws-ec2-metadata-token",Ut=_0((f={})=>Et(Ft(f),{logger:f.logger}),"fromInstanceMetadata"),Ft=_0((f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=t2(f),E=_0(async(T,U)=>{if(h||U.headers?.[HK]==null){let I=!1,L=!1,G=await f6.loadConfig({environmentVariableSelector:(X)=>{let Q=X[o2];if(L=!!Q&&Q!=="false",Q===void 0)throw new Zf.CredentialsProviderError(`${o2} not set in env, checking config file next.`,{logger:f.logger});return L},configFileSelector:(X)=>{let Q=X[PK];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||G){let X=[];if(f.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)X.push(`config file profile (${PK})`);if(L)X.push(`process environment variable (${o2})`);throw new nu(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let C=(await p2(async()=>{let I;try{I=await It(U)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)).trim();return p2(async()=>{let I;try{I=await Lt(C,U,f)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)},"getCredentials");return async()=>{let T=await lK();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...T,timeout:$});else{let U;try{U=(await Ct({...T,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...T,timeout:$})}return E(r,{...T,headers:{[HK]:U},timeout:$})}}},"getInstanceMetadataProvider"),Ct=_0(async(f)=>Hs({...f,path:Tt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),It=_0(async(f)=>(await Hs({...f,path:vK})).toString(),"getProfile"),Lt=_0(async(f,h,w)=>{let s=JSON.parse((await Hs({...h,path:vK+f})).toString());if(!DK(s))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:w.logger});return qK(s)},"getCredentialsFromProfile")});var w6=H((KG0,_K)=>{var{create:Bt,defineProperty:Ir,getOwnPropertyDescriptor:At,getOwnPropertyNames:Gt,getPrototypeOf:Wt}=Object,zt=Object.prototype.hasOwnProperty,h6=(f,h)=>Ir(f,"name",{value:h,configurable:!0}),Rt=(f,h)=>{for(var w in h)Ir(f,w,{get:h[w],enumerable:!0})},gK=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gt(h))if(!zt.call(f,$)&&$!==w)Ir(f,$,{get:()=>h[$],enumerable:!(s=At(h,$))||s.enumerable})}return f},Xt=(f,h,w)=>(w=f!=null?Bt(Wt(f)):{},gK(h||!f||!f.__esModule?Ir(w,"default",{value:f,enumerable:!0}):w,f)),St=(f)=>gK(Ir({},"__esModule",{value:!0}),f),xK={};Rt(xK,{resolveDefaultsModeConfig:()=>Nt});_K.exports=St(xK);var Yt=Xs(),dK=Ms(),Mt=q$(),Qt="AWS_EXECUTION_ENV",iK="AWS_REGION",cK="AWS_DEFAULT_REGION",Kt="AWS_EC2_METADATA_DISABLED",Zt=["in-region","cross-region","mobile","standard","legacy"],Jt="/latest/meta-data/placement/region",Vt="AWS_DEFAULTS_MODE",Pt="defaults_mode",Ht={environmentVariableSelector:(f)=>{return f[Vt]},configFileSelector:(f)=>{return f[Pt]},default:"legacy"},Nt=h6(({region:f=dK.loadConfig(Yt.NODE_REGION_CONFIG_OPTIONS),defaultsMode:h=dK.loadConfig(Ht)}={})=>Mt.memoize(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return Dt(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Zt.join(", ")}, got ${w}`)}}),"resolveDefaultsModeConfig"),Dt=h6(async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await qt();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),qt=h6(async()=>{if(process.env[Qt]&&(process.env[iK]||process.env[cK]))return process.env[iK]??process.env[cK];if(!process.env[Kt])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(()=>Xt(mK())),w=await f();return(await h({...w,path:Jt})).toString()}catch(f){}},"inferPhysicalRegion")});var uK=H((oK)=>{Object.defineProperty(oK,"__esModule",{value:!0});oK.getRuntimeConfig=void 0;var kt=v4(),yt=kt.__importDefault(m2()),jt=O0(),nK=i2(),L5=Xs(),Ot=x2(),eK=Fr(),Ns=Ms(),aK=S4(),lt=_2(),vt=$5(),bt=JK(),mt=J0(),dt=w6(),it=J0(),ct=(f)=>{it.emitWarningIfUnsupportedVersion(process.version);let h=dt.resolveDefaultsModeConfig(f),w=()=>h().then(mt.loadConfigsForDefaultMode),s=bt.getRuntimeConfig(f);jt.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??lt.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??nK.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:yt.default.version}),maxAttempts:f?.maxAttempts??Ns.loadConfig(eK.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??Ns.loadConfig(L5.NODE_REGION_CONFIG_OPTIONS,{...L5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:aK.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??Ns.loadConfig({...eK.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||vt.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??Ot.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??aK.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??Ns.loadConfig(L5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??Ns.loadConfig(L5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??Ns.loadConfig(nK.NODE_APP_ID_CONFIG_OPTIONS,$)}};oK.getRuntimeConfig=ct});var s6=H((JG0,$Z)=>{var{defineProperty:B5,getOwnPropertyDescriptor:gt,getOwnPropertyNames:xt}=Object,_t=Object.prototype.hasOwnProperty,Ds=(f,h)=>B5(f,"name",{value:h,configurable:!0}),nt=(f,h)=>{for(var w in h)B5(f,w,{get:h[w],enumerable:!0})},et=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of xt(h))if(!_t.call(f,$)&&$!==w)B5(f,$,{get:()=>h[$],enumerable:!(s=gt(h,$))||s.enumerable})}return f},at=(f)=>et(B5({},"__esModule",{value:!0}),f),fZ={};nt(fZ,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>tt,NODE_REGION_CONFIG_OPTIONS:()=>ut,REGION_ENV_NAME:()=>hZ,REGION_INI_NAME:()=>wZ,getAwsRegionExtensionConfiguration:()=>ot,resolveAwsRegionExtensionConfiguration:()=>pt,resolveRegionConfig:()=>f00});$Z.exports=at(fZ);var ot=Ds((f)=>{let h=Ds(async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");let w=f.region;if(typeof w==="string")return w;return w()},"runtimeConfigRegion");return{setRegion(w){h=w},region(){return h}}},"getAwsRegionExtensionConfiguration"),pt=Ds((f)=>{return{region:f.region()}},"resolveAwsRegionExtensionConfiguration"),hZ="AWS_REGION",wZ="region",ut={environmentVariableSelector:(f)=>f[hZ],configFileSelector:(f)=>f[wZ],default:()=>{throw new Error("Region is missing")}},tt={preferredFile:"credentials"},sZ=Ds((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),tK=Ds((f)=>sZ(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),f00=Ds((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof h==="string")return tK(h);let s=await h();return tK(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(sZ(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}},"resolveRegionConfig")});var E6=H((VG0,DZ)=>{var{defineProperty:G5,getOwnPropertyDescriptor:h00,getOwnPropertyNames:w00}=Object,s00=Object.prototype.hasOwnProperty,w0=(f,h)=>G5(f,"name",{value:h,configurable:!0}),$00=(f,h)=>{for(var w in h)G5(f,w,{get:h[w],enumerable:!0})},r00=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of w00(h))if(!s00.call(f,$)&&$!==w)G5(f,$,{get:()=>h[$],enumerable:!(s=h00(h,$))||s.enumerable})}return f},E00=(f)=>r00(G5({},"__esModule",{value:!0}),f),LZ={};$00(LZ,{$Command:()=>GZ.Command,AccessDeniedException:()=>WZ,AuthorizationPendingException:()=>zZ,CreateTokenCommand:()=>HZ,CreateTokenRequestFilterSensitiveLog:()=>RZ,CreateTokenResponseFilterSensitiveLog:()=>XZ,ExpiredTokenException:()=>SZ,InternalServerException:()=>YZ,InvalidClientException:()=>MZ,InvalidGrantException:()=>QZ,InvalidRequestException:()=>KZ,InvalidScopeException:()=>ZZ,SSOOIDC:()=>NZ,SSOOIDCClient:()=>AZ,SSOOIDCServiceException:()=>Z1,SlowDownException:()=>JZ,UnauthorizedClientException:()=>VZ,UnsupportedGrantTypeException:()=>PZ,__Client:()=>BZ.Client});DZ.exports=E00(LZ);var rZ=T2(),T00=U2(),U00=C2(),EZ=cE(),F00=Xs(),$6=m0(),C00=X2(),I00=Qs(),TZ=Fr(),BZ=J0(),UZ=b2(),L00=w0((f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},"resolveClientEndpointParameters"),B00={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},A00=uK(),FZ=s6(),CZ=t0(),IZ=J0(),G00=w0((f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},"getHttpAuthExtensionConfiguration"),W00=w0((f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}},"resolveHttpAuthRuntimeConfig"),A5=w0((f)=>f,"asPartial"),z00=w0((f,h)=>{let w={...A5(FZ.getAwsRegionExtensionConfiguration(f)),...A5(IZ.getDefaultExtensionConfiguration(f)),...A5(CZ.getHttpHandlerExtensionConfiguration(f)),...A5(G00(f))};return h.forEach((s)=>s.configure(w)),{...f,...FZ.resolveAwsRegionExtensionConfiguration(w),...IZ.resolveDefaultRuntimeConfig(w),...CZ.resolveHttpHandlerRuntimeConfig(w),...W00(w)}},"resolveRuntimeExtensions"),AZ=class extends BZ.Client{static{w0(this,"SSOOIDCClient")}config;constructor(...[f]){let h=A00.getRuntimeConfig(f||{}),w=L00(h),s=EZ.resolveUserAgentConfig(w),$=TZ.resolveRetryConfig(s),r=F00.resolveRegionConfig($),E=rZ.resolveHostHeaderConfig(r),T=I00.resolveEndpointConfig(E),U=UZ.resolveHttpAuthSchemeConfig(T),F=z00(U,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(EZ.getUserAgentPlugin(this.config)),this.middlewareStack.use(TZ.getRetryPlugin(this.config)),this.middlewareStack.use(C00.getContentLengthPlugin(this.config)),this.middlewareStack.use(rZ.getHostHeaderPlugin(this.config)),this.middlewareStack.use(T00.getLoggerPlugin(this.config)),this.middlewareStack.use(U00.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use($6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:UZ.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new $6.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},R00=J0(),X00=Qs(),S00=Dw(),GZ=J0(),qs=J0(),Y00=J0(),Z1=class f extends Y00.ServiceException{static{w0(this,"SSOOIDCServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},WZ=class f extends Z1{static{w0(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(h){super({name:"AccessDeniedException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},zZ=class f extends Z1{static{w0(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(h){super({name:"AuthorizationPendingException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},RZ=w0((f)=>({...f,...f.clientSecret&&{clientSecret:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.codeVerifier&&{codeVerifier:qs.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),XZ=w0((f)=>({...f,...f.accessToken&&{accessToken:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.idToken&&{idToken:qs.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),SZ=class f extends Z1{static{w0(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},YZ=class f extends Z1{static{w0(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(h){super({name:"InternalServerException",$fault:"server",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},MZ=class f extends Z1{static{w0(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(h){super({name:"InvalidClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},QZ=class f extends Z1{static{w0(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(h){super({name:"InvalidGrantException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},KZ=class f extends Z1{static{w0(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(h){super({name:"InvalidRequestException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},ZZ=class f extends Z1{static{w0(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(h){super({name:"InvalidScopeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},JZ=class f extends Z1{static{w0(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(h){super({name:"SlowDownException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},VZ=class f extends Z1{static{w0(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(h){super({name:"UnauthorizedClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},PZ=class f extends Z1{static{w0(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(h){super({name:"UnsupportedGrantTypeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},r6=O0(),M00=m0(),x=J0(),Q00=w0(async(f,h)=>{let w=M00.requestBuilder(f,h),s={"content-type":"application/json"};w.bp("/token");let $;return $=JSON.stringify(x.take(f,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(r)=>x._json(r)})),w.m("POST").h(s).b($),w.build()},"se_CreateTokenCommand"),K00=w0(async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return Z00(f,h);let w=x.map({$metadata:i1(f)}),s=x.expectNonNull(x.expectObject(await r6.parseJsonBody(f.body,h)),"body"),$=x.take(s,{accessToken:x.expectString,expiresIn:x.expectInt32,idToken:x.expectString,refreshToken:x.expectString,tokenType:x.expectString});return Object.assign(w,$),w},"de_CreateTokenCommand"),Z00=w0(async(f,h)=>{let w={...f,body:await r6.parseJsonErrorBody(f.body,h)},s=r6.loadRestJsonErrorCode(f,w.body);switch(s){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await V00(w,h);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await P00(w,h);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await H00(w,h);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await N00(w,h);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await D00(w,h);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await q00(w,h);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await k00(w,h);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await y00(w,h);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await j00(w,h);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await O00(w,h);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await l00(w,h);default:let $=w.body;return J00({output:f,parsedBody:$,errorCode:s})}},"de_CommandError"),J00=x.withBaseException(Z1),V00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new WZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AccessDeniedExceptionRes"),P00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new zZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AuthorizationPendingExceptionRes"),H00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new SZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_ExpiredTokenExceptionRes"),N00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new YZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InternalServerExceptionRes"),D00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new MZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidClientExceptionRes"),q00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new QZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidGrantExceptionRes"),k00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new KZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidRequestExceptionRes"),y00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new ZZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidScopeExceptionRes"),j00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new JZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_SlowDownExceptionRes"),O00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new VZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnauthorizedClientExceptionRes"),l00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new PZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnsupportedGrantTypeExceptionRes"),i1=w0((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),HZ=class extends GZ.Command.classBuilder().ep(B00).m(function(f,h,w,s){return[S00.getSerdePlugin(w,this.serialize,this.deserialize),X00.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(RZ,XZ).ser(Q00).de(K00).build(){static{w0(this,"CreateTokenCommand")}},v00={CreateTokenCommand:HZ},NZ=class extends AZ{static{w0(this,"SSOOIDC")}};R00.createAggregatedClient(v00,NZ)});var qZ=async(f,h={})=>{let{SSOOIDCClient:w}=await Promise.resolve().then(() => o(E6(),1));return new w(Object.assign({},h.clientConfig??{},{region:f??h.clientConfig?.region,logger:h.clientConfig?.logger??h.parentClientConfig?.logger}))};var kZ=async(f,h,w={})=>{let{CreateTokenCommand:s}=await Promise.resolve().then(() => o(E6(),1));return(await qZ(h,w)).send(new s({clientId:f.clientId,clientSecret:f.clientSecret,refreshToken:f.refreshToken,grantType:"refresh_token"}))};var yZ=()=>{};var T6=(f)=>{if(f.expiration&&f.expiration.getTime()<Date.now())throw new X1(`Token is expired. ${zs}`,!1)};var jZ=B(()=>{Y0()});var qh=(f,h,w=!1)=>{if(typeof h==="undefined")throw new X1(`Value not present for '${f}' in SSO Token${w?". Cannot refresh":""}. ${zs}`,!1)};var OZ=B(()=>{Y0()});import{promises as b00}from"fs";var m00,lZ=(f,h)=>{let w=TE(f),s=JSON.stringify(h,null,2);return m00(w,s)};var vZ=B(()=>{hf();({writeFile:m00}=b00)});var bZ,mZ=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await Qh(w),$=y1({profile:w.profile??h?.profile}),r=s[$];if(!r)throw new X1(`Profile '${$}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new X1(`Profile '${$}' is missing required property 'sso_session'.`);let E=r.sso_session,U=(await IE(w))[E];if(!U)throw new X1(`Sso session '${E}' could not be found in shared credentials file.`,!1);for(let Q of["sso_start_url","sso_region"])if(!U[Q])throw new X1(`Sso session '${E}' is missing required property '${Q}'.`,!1);let{sso_start_url:F,sso_region:C}=U,I;try{I=await UE(E)}catch(Q){throw new X1(`The SSO session token associated with profile=${$} was not found or is invalid. ${zs}`,!1)}qh("accessToken",I.accessToken),qh("expiresAt",I.expiresAt);let{accessToken:L,expiresAt:G}=I,X={token:L,expiration:new Date(G)};if(X.expiration.getTime()-Date.now()>U9)return X;if(Date.now()-bZ.getTime()<30000)return T6(X),X;qh("clientId",I.clientId,!0),qh("clientSecret",I.clientSecret,!0),qh("refreshToken",I.refreshToken,!0);try{bZ.setTime(Date.now());let Q=await kZ(I,C,w);qh("accessToken",Q.accessToken),qh("expiresIn",Q.expiresIn);let M=new Date(Date.now()+Q.expiresIn*1000);try{await lZ(E,{...I,accessToken:Q.accessToken,expiresAt:M.toISOString(),refreshToken:Q.refreshToken})}catch(q){}return{token:Q.accessToken,expiration:M}}catch(Q){return T6(X),X}};var dZ=B(()=>{Y0();hf();yZ();jZ();OZ();vZ();bZ=new Date(0)});var iZ=B(()=>{Y0()});var cZ=B(()=>{Y0()});var gZ=B(()=>{dZ();iZ();cZ()});function d00(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function W5(f){return{schemeId:"smithy.api#noAuth"}}var xZ,_Z=async(f,h,w)=>{return{operation:Xh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},nZ=(f)=>{let h=[];switch(f.operation){case"GetRoleCredentials":{h.push(W5(f));break}case"ListAccountRoles":{h.push(W5(f));break}case"ListAccounts":{h.push(W5(f));break}case"Logout":{h.push(W5(f));break}default:h.push(d00(f))}return h},eZ=(f)=>{return{...xZ.resolveAwsSdkSigV4Config(f)}};var U6=B(()=>{xZ=o(O0(),1);cf()});var aZ=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},kh;var ks=B(()=>{kh={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var pZ;var oZ=B(()=>{pZ={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.750.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.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 F6;var C6=B(()=>{F6={isCrtAvailable:!1}});var uZ=()=>{if(F6.isCrtAvailable)return["md/crt-avail"];return null};var tZ=B(()=>{C6()});import{platform as c00,release as g00}from"os";import{env as fJ,versions as x00}from"process";var ys=({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${c00()}`,g00()],["lang/js"],["md/nodejs",`${x00.node}`]],$=uZ();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(fJ.AWS_EXECUTION_ENV)s.push([`exec-env/${fJ.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}};var hJ=B(()=>{tZ();C6()});var _00="AWS_SDK_UA_APP_ID",n00="sdk_ua_app_id",e00="sdk-ua-app-id",js;var wJ=B(()=>{d$();js={environmentVariableSelector:(f)=>f[_00],configFileSelector:(f)=>f[n00]??f[e00],default:F3}});var z5=B(()=>{hJ();wJ()});import{Buffer as I6}from"buffer";var sJ,Uw=(f,h=0,w=f.byteLength-h)=>{if(!sJ.isArrayBuffer(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return I6.from(f,h,w)},Os=(f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?I6.from(f,h):I6.from(f)};var ls=B(()=>{sJ=o(B4(),1)});var Jf=(f)=>{let h=Os(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var L6=B(()=>{ls()});var $J=(f)=>{if(typeof f==="string")return Jf(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var rJ=B(()=>{L6()});var vs=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Uw(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};var EJ=B(()=>{ls()});var bs=B(()=>{L6();rJ();EJ()});import{Buffer as a00}from"buffer";import{createHash as o00,createHmac as p00}from"crypto";class Fw{constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update($J(TJ(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?p00(this.algorithmIdentifier,TJ(this.secret)):o00(this.algorithmIdentifier)}}function TJ(f,h){if(a00.isBuffer(f))return f;if(typeof f==="string")return Os(f,h);if(ArrayBuffer.isView(f))return Uw(f.buffer,f.byteOffset,f.byteLength);return Uw(f)}var R5=B(()=>{ls();bs()});import{fstatSync as u00,lstatSync as t00}from"fs";var ms=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return t00(f.path).size;else if(typeof f.fd==="number")return u00(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var UJ=()=>{};var X5=B(()=>{UJ()});var f10,ds=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!f10.exec(f))throw new TypeError("Invalid base64 string.");let h=Os(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};var FJ=B(()=>{ls();f10=/^[A-Za-z0-9+/]*={0,2}$/});var is=(f)=>{let h;if(typeof f==="string")h=Jf(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Uw(h.buffer,h.byteOffset,h.byteLength).toString("base64")};var CJ=B(()=>{ls();bs()});var S5=B(()=>{FJ();CJ()});var IJ,LJ,BJ,XJ,SJ,c1,AJ,YJ,GJ,WJ,zJ,RJ,h10,MJ;var QJ=B(()=>{IJ={["required"]:!1,type:"String"},LJ={["required"]:!0,default:!1,type:"Boolean"},BJ={["ref"]:"Endpoint"},XJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},SJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},c1={},AJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},YJ={["ref"]:"PartitionResult"},GJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[YJ,"supportsDualStack"]}]},WJ=[XJ],zJ=[SJ],RJ=[{["ref"]:"Region"}],h10={version:"1.0",parameters:{Region:IJ,UseDualStack:LJ,UseFIPS:LJ,Endpoint:IJ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[BJ]}],rules:[{conditions:WJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:zJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:BJ,properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:RJ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:RJ,assign:"PartitionResult"}],rules:[{conditions:[XJ,SJ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,AJ]},GJ],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:WJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[AJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[YJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:c1,headers:c1},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:zJ,rules:[{conditions:[GJ],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},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:c1,headers:c1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},MJ=h10});var w10,KJ=(f,h={})=>{return w10.get(f,()=>xh(MJ,{endpointParams:f,logger:h.logger}))};var ZJ=B(()=>{D$();df();QJ();w10=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});t1.aws=_h});var JJ,VJ,PJ=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??KJ,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??nZ,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new JJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new VJ.NoAuthSigner}],logger:f?.logger??new _f,serviceId:f?.serviceId??"SSO",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};var HJ=B(()=>{JJ=o(O0(),1),VJ=o(m0(),1);J();pw();S5();bs();U6();ZJ()});var NJ="AWS_EXECUTION_ENV",B6="AWS_REGION",A6="AWS_DEFAULT_REGION",DJ="AWS_EC2_METADATA_DISABLED",qJ,kJ="/latest/meta-data/placement/region";var yJ=B(()=>{qJ=["in-region","cross-region","mobile","standard","legacy"]});var jJ;var OJ=B(()=>{jJ={environmentVariableSelector:(f)=>{return f.AWS_DEFAULTS_MODE},configFileSelector:(f)=>{return f.defaults_mode},default:"legacy"}});var cs=({region:f=z0(Sh),defaultsMode:h=z0(jJ)}={})=>uh(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return s10(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${qJ.join(", ")}, got ${w}`)}}),s10=async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await $10();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},$10=async()=>{if(process.env[NJ]&&(process.env[B6]||process.env[A6]))return process.env[B6]??process.env[A6];if(!process.env[DJ])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(() => (hr(),fr)),w=await f();return(await h({...w,path:kJ})).toString()}catch(f){}};var lJ=B(()=>{Yh();Kh();Y0();yJ();OJ()});var Y5=B(()=>{lJ()});var vJ,bJ=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=PJ(f);vJ.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:pZ.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Sh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};var mJ=B(()=>{oZ();vJ=o(O0(),1);z5();Yh();R5();$w();Kh();wr();X5();wf();HJ();J();Y5();J()});var gs=(f)=>{let h=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");let w=f.region;if(typeof w==="string")return w;return w()};return{setRegion(w){h=w},region(){return h}}},xs=(f)=>{return{region:f.region()}};var dJ=()=>{};var iJ=()=>{};var cJ=B(()=>{iJ()});var gJ=B(()=>{dJ();cJ()});var M5=B(()=>{gJ()});var xJ=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},_J=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var Q5=(f)=>f,nJ=(f,h)=>{let w={...Q5(gs(f)),...Q5(Is(f)),...Q5(Zw(f)),...Q5(xJ(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),..._J(w)}};var eJ=B(()=>{M5();F1();J()});var _s,af;var Lr=B(()=>{E4();T4();U4();d$();Yh();_s=o(m0(),1);rE();D();$w();J();U6();ks();mJ();eJ();af=class af extends ww{config;constructor(...[f]){let h=bJ(f||{}),w=aZ(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),T=uw(E),U=eZ(T),F=nJ(U,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(_s.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:_Z,identityProviderConfigProvider:async(C)=>new _s.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(_s.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var of;var G6=B(()=>{J();of=class of extends $f{constructor(f){super(f);Object.setPrototypeOf(this,of.prototype)}}});var K5,Z5,J5,V5,aJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),E10=(f)=>({...f,...f.secretAccessKey&&{secretAccessKey:U0},...f.sessionToken&&{sessionToken:U0}}),oJ=(f)=>({...f,...f.roleCredentials&&{roleCredentials:E10(f.roleCredentials)}}),pJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),uJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),tJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}});var Cw=B(()=>{J();G6();K5=class K5 extends of{name="InvalidRequestException";$fault="client";constructor(f){super({name:"InvalidRequestException",$fault:"client",...f});Object.setPrototypeOf(this,K5.prototype)}};Z5=class Z5 extends of{name="ResourceNotFoundException";$fault="client";constructor(f){super({name:"ResourceNotFoundException",$fault:"client",...f});Object.setPrototypeOf(this,Z5.prototype)}};J5=class J5 extends of{name="TooManyRequestsException";$fault="client";constructor(f){super({name:"TooManyRequestsException",$fault:"client",...f});Object.setPrototypeOf(this,J5.prototype)}};V5=class V5 extends of{name="UnauthorizedException";$fault="client";constructor(f){super({name:"UnauthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,V5.prototype)}}});var yh,Br,fV=async(f,h)=>{let w=Br.requestBuilder(f,h),s=Y({},p$,{[N5]:f[H5]});w.bp("/federation/credentials");let $=Y({[B10]:[,j(f[L10],"roleName")],[FV]:[,j(f[UV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},hV=async(f,h)=>{let w=Br.requestBuilder(f,h),s=Y({},p$,{[N5]:f[H5]});w.bp("/assignment/roles");let $=Y({[BV]:[,f[LV]],[IV]:[()=>f.maxResults!==void 0,()=>f[CV].toString()],[FV]:[,j(f[UV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},wV=async(f,h)=>{let w=Br.requestBuilder(f,h),s=Y({},p$,{[N5]:f[H5]});w.bp("/assignment/accounts");let $=Y({[BV]:[,f[LV]],[IV]:[()=>f.maxResults!==void 0,()=>f[CV].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},sV=async(f,h)=>{let w=Br.requestBuilder(f,h),s=Y({},p$,{[N5]:f[H5]});w.bp("/logout");let $;return w.m("POST").h(s).b($),w.build()},$V=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return P5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{roleCredentials:v});return Object.assign(w,$),w},rV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return P5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{nextToken:A,roleList:v});return Object.assign(w,$),w},EV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return P5(f,h);let w=Y({$metadata:jh(f)}),s=j(g(await yh.parseJsonBody(f.body,h)),"body"),$=N0(s,{accountList:v,nextToken:A});return Object.assign(w,$),w},TV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return P5(f,h);let w=Y({$metadata:jh(f)});return await B1.collectBody(f.body,h),w},P5=async(f,h)=>{let w={...f,body:await yh.parseJsonErrorBody(f.body,h)},s=yh.loadRestJsonErrorCode(f,w.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await U10(w,h);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await F10(w,h);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await C10(w,h);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await I10(w,h);default:let $=w.body;return T10({output:f,parsedBody:$,errorCode:s})}},T10,U10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new K5({$metadata:jh(f),...w});return l(r,f.body)},F10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new Z5({$metadata:jh(f),...w});return l(r,f.body)},C10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new J5({$metadata:jh(f),...w});return l(r,f.body)},I10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new V5({$metadata:jh(f),...w});return l(r,f.body)},jh=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),UV="accountId",H5="accessToken",FV="account_id",CV="maxResults",IV="max_result",LV="nextToken",BV="next_token",L10="roleName",B10="role_name",N5="x-amz-sso_bearer_token";var Ar=B(()=>{yh=o(O0(),1),Br=o(m0(),1);J();Cw();G6();T10=Us(of)});var Gr;var W6=B(()=>{D();k();J();ks();Cw();Ar();Gr=class Gr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(aJ,oJ).ser(fV).de($V).build(){}});var Wr;var D5=B(()=>{D();k();J();ks();Cw();Ar();Wr=class Wr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(pJ,void 0).ser(hV).de(rV).build(){}});var zr;var q5=B(()=>{D();k();J();ks();Cw();Ar();zr=class zr extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(uJ,void 0).ser(wV).de(EV).build(){}});var z6;var R6=B(()=>{D();k();J();ks();Cw();Ar();z6=class z6 extends W.classBuilder().ep(kh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(tJ,void 0).ser(sV).de(TV).build(){}});var A10,AV;var GV=B(()=>{J();W6();D5();q5();R6();Lr();A10={GetRoleCredentialsCommand:Gr,ListAccountRolesCommand:Wr,ListAccountsCommand:zr,LogoutCommand:z6};AV=class AV extends af{};Es(A10,AV)});var WV=B(()=>{W6();D5();q5();R6()});var zV=()=>{};var RV,I70;var XV=B(()=>{RV=o(m0(),1);D5();Lr();I70=RV.createPaginator(af,Wr,"nextToken","nextToken","maxResults")});var SV,G70;var YV=B(()=>{SV=o(m0(),1);q5();Lr();G70=SV.createPaginator(af,zr,"nextToken","nextToken","maxResults")});var MV=B(()=>{zV();XV();YV()});var QV=B(()=>{Cw()});var KV=B(()=>{Lr();GV();WV();MV();QV()});var ZV={};Uh(ZV,{SSOClient:()=>af,GetRoleCredentialsCommand:()=>Gr});var JV=B(()=>{KV()});var X6,Rr=!1,S6=async({ssoStartUrl:f,ssoSession:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoClient:r,clientConfig:E,parentClientConfig:T,profile:U,logger:F})=>{let C,I="To refresh this SSO session run aws sso login with the corresponding profile.";if(h)try{let X0=await mZ({profile:U})();C={accessToken:X0.token,expiresAt:new Date(X0.expiration).toISOString()}}catch(X0){throw new a(X0.message,{tryNextLink:Rr,logger:F})}else try{C=await UE(f)}catch(X0){throw new a("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Rr,logger:F})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new a("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Rr,logger:F});let{accessToken:L}=C,{SSOClient:G,GetRoleCredentialsCommand:X}=await Promise.resolve().then(() => (JV(),ZV)),Q=r||new G(Object.assign({},E??{},{logger:E?.logger??T?.logger,region:E?.region??s})),M;try{M=await Q.send(new X({accountId:w,roleName:$,accessToken:L}))}catch(X0){throw new a(X0,{tryNextLink:Rr,logger:F})}let{roleCredentials:{accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:n,credentialScope:L0,accountId:b0}={}}=M;if(!q||!N||!y||!n)throw new a("SSO returns an invalid temporary credential.",{tryNextLink:Rr,logger:F});let $1={accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:new Date(n),...L0&&{credentialScope:L0},...b0&&{accountId:b0}};if(h)X6.setCredentialFeature($1,"CREDENTIALS_SSO","s");else X6.setCredentialFeature($1,"CREDENTIALS_SSO_LEGACY","u");return $1};var VV=B(()=>{X6=o(C1(),1);gZ();Y0();hf()});var Y6=(f,h)=>{let{sso_start_url:w,sso_account_id:s,sso_region:$,sso_role_name:r}=f;if(!w||!s||!$||!r)throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(f).join(", ")}
|
|
51
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:h});return f};var M6=B(()=>{Y0()});var G10=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:w,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoSession:E}=f,{ssoClient:T}=f,U=y1({profile:f.profile??h?.profile});if(!w&&!s&&!$&&!r&&!E){let C=(await Qh(f))[U];if(!C)throw new a(`Profile ${U} was not found.`,{logger:f.logger});if(!r2(C))throw new a(`Profile ${U} is not configured with SSO credentials.`,{logger:f.logger});if(C?.sso_session){let q=(await IE(f))[C.sso_session],N=` configurations in profile ${U} and sso-session ${C.sso_session}`;if($&&$!==q.sso_region)throw new a("Conflicting SSO region"+N,{tryNextLink:!1,logger:f.logger});if(w&&w!==q.sso_start_url)throw new a("Conflicting SSO start_url"+N,{tryNextLink:!1,logger:f.logger});C.sso_region=q.sso_region,C.sso_start_url=q.sso_start_url}let{sso_start_url:I,sso_account_id:L,sso_region:G,sso_role_name:X,sso_session:Q}=Y6(C,f.logger);return S6({ssoStartUrl:I,ssoSession:Q,ssoAccountId:L,ssoRegion:G,ssoRoleName:X,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})}else if(!w||!s||!$||!r)throw new a('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:f.logger});else return S6({ssoStartUrl:w,ssoSession:E,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})};var PV=B(()=>{Y0();hf();VV();M6()});var HV=()=>{};var Q6={};Uh(Q6,{validateSsoProfile:()=>Y6,isSsoProfile:()=>r2,fromSSO:()=>G10});var K6=B(()=>{PV();HV();M6()});var NV,DV=(f,h,w)=>{let s={EcsContainer:async($)=>{let{fromHttp:r}=await Promise.resolve().then(() => ($2(),s2)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (hr(),fr));return w?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>gf(r($??{}),E($))().then(Z6)},Ec2InstanceMetadata:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:r}=await Promise.resolve().then(() => (hr(),fr));return async()=>r($)().then(Z6)},Environment:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:r}=await Promise.resolve().then(() => (gF(),WY));return async()=>r($)().then(Z6)}};if(f in s)return s[f];else throw new a(`Unsupported credential source in profile ${h}. Got ${f}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:w})},Z6=(f)=>NV.setCredentialFeature(f,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var qV=B(()=>{NV=o(C1(),1);Y0()});var J6=H((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.resolveHttpAuthSchemeConfig=yV.resolveStsAuthConfig=yV.defaultSTSHttpAuthSchemeProvider=yV.defaultSTSHttpAuthSchemeParametersProvider=void 0;var W10=O0(),kV=Fh(),z10=Xr(),R10=async(f,h,w)=>{return{operation:kV.getSmithyContext(h).operation,region:await kV.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};yV.defaultSTSHttpAuthSchemeParametersProvider=R10;function X10(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function S10(f){return{schemeId:"smithy.api#noAuth"}}var Y10=(f)=>{let h=[];switch(f.operation){case"AssumeRoleWithWebIdentity":{h.push(S10(f));break}default:h.push(X10(f))}return h};yV.defaultSTSHttpAuthSchemeProvider=Y10;var M10=(f)=>({...f,stsClientCtor:z10.STSClient});yV.resolveStsAuthConfig=M10;var Q10=(f)=>{let h=yV.resolveStsAuthConfig(f);return{...W10.resolveAwsSdkSigV4Config(h)}};yV.resolveHttpAuthSchemeConfig=Q10});var Sr=H((lV)=>{Object.defineProperty(lV,"__esModule",{value:!0});lV.commonParams=lV.resolveClientEndpointParameters=void 0;var J10=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,useGlobalEndpoint:f.useGlobalEndpoint??!1,defaultSigningName:"sts"}};lV.resolveClientEndpointParameters=J10;lV.commonParams={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 UP=H((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.ruleSet=void 0;var oV="required",t="type",G0="fn",W0="argv",lh="ref",bV=!1,V6=!0,Oh="booleanEquals",h1="stringEquals",pV="sigv4",uV="sts",tV="us-east-1",D0="endpoint",mV="https://sts.{Region}.{PartitionResult#dnsSuffix}",Vf="tree",ns="error",H6="getAttr",dV={[oV]:!1,[t]:"String"},P6={[oV]:!0,default:!1,[t]:"Boolean"},fP={[lh]:"Endpoint"},iV={[G0]:"isSet",[W0]:[{[lh]:"Region"}]},w1={[lh]:"Region"},cV={[G0]:"aws.partition",[W0]:[w1],assign:"PartitionResult"},hP={[lh]:"UseFIPS"},wP={[lh]:"UseDualStack"},E1={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:pV,signingName:uV,signingRegion:tV}]},headers:{}},J1={},gV={conditions:[{[G0]:h1,[W0]:[w1,"aws-global"]}],[D0]:E1,[t]:D0},sP={[G0]:Oh,[W0]:[hP,!0]},$P={[G0]:Oh,[W0]:[wP,!0]},xV={[G0]:H6,[W0]:[{[lh]:"PartitionResult"},"supportsFIPS"]},rP={[lh]:"PartitionResult"},_V={[G0]:Oh,[W0]:[!0,{[G0]:H6,[W0]:[rP,"supportsDualStack"]}]},nV=[{[G0]:"isSet",[W0]:[fP]}],eV=[sP],aV=[$P],P10={version:"1.0",parameters:{Region:dV,UseDualStack:P6,UseFIPS:P6,Endpoint:dV,UseGlobalEndpoint:P6},rules:[{conditions:[{[G0]:Oh,[W0]:[{[lh]:"UseGlobalEndpoint"},V6]},{[G0]:"not",[W0]:nV},iV,cV,{[G0]:Oh,[W0]:[hP,bV]},{[G0]:Oh,[W0]:[wP,bV]}],rules:[{conditions:[{[G0]:h1,[W0]:[w1,"ap-northeast-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-south-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-southeast-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"ap-southeast-2"]}],endpoint:E1,[t]:D0},gV,{conditions:[{[G0]:h1,[W0]:[w1,"ca-central-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-central-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-north-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-2"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"eu-west-3"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"sa-east-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,tV]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-east-2"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-west-1"]}],endpoint:E1,[t]:D0},{conditions:[{[G0]:h1,[W0]:[w1,"us-west-2"]}],endpoint:E1,[t]:D0},{endpoint:{url:mV,properties:{authSchemes:[{name:pV,signingName:uV,signingRegion:"{Region}"}]},headers:J1},[t]:D0}],[t]:Vf},{conditions:nV,rules:[{conditions:eV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[t]:ns},{conditions:aV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[t]:ns},{endpoint:{url:fP,properties:J1,headers:J1},[t]:D0}],[t]:Vf},{conditions:[iV],rules:[{conditions:[cV],rules:[{conditions:[sP,$P],rules:[{conditions:[{[G0]:Oh,[W0]:[V6,xV]},_V],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[t]:ns}],[t]:Vf},{conditions:eV,rules:[{conditions:[{[G0]:Oh,[W0]:[xV,V6]}],rules:[{conditions:[{[G0]:h1,[W0]:[{[G0]:H6,[W0]:[rP,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:J1,headers:J1},[t]:D0},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"FIPS is enabled but this partition does not support FIPS",[t]:ns}],[t]:Vf},{conditions:aV,rules:[{conditions:[_V],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Vf},{error:"DualStack is enabled but this partition does not support DualStack",[t]:ns}],[t]:Vf},gV,{endpoint:{url:mV,properties:J1,headers:J1},[t]:D0}],[t]:Vf}],[t]:Vf},{error:"Invalid Configuration: Missing Region",[t]:ns}]};EP.ruleSet=P10});var IP=H((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.defaultEndpointResolver=void 0;var H10=mE(),N6=vE(),N10=UP(),D10=new N6.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),q10=(f,h={})=>{return D10.get(f,()=>N6.resolveEndpoint(N10.ruleSet,{endpointParams:f,logger:h.logger}))};FP.defaultEndpointResolver=q10;N6.customEndpointFunctions.aws=H10.awsEndpointFunctions});var WP=H((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.getRuntimeConfig=void 0;var k10=O0(),y10=m0(),j10=J0(),O10=Tr(),LP=Ih(),BP=u1(),l10=J6(),v10=IP(),b10=(f)=>{return{apiVersion:"2011-06-15",base64Decoder:f?.base64Decoder??LP.fromBase64,base64Encoder:f?.base64Encoder??LP.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??v10.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??l10.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new k10.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new y10.NoAuthSigner}],logger:f?.logger??new j10.NoOpLogger,serviceId:f?.serviceId??"STS",urlParser:f?.urlParser??O10.parseUrl,utf8Decoder:f?.utf8Decoder??BP.fromUtf8,utf8Encoder:f?.utf8Encoder??BP.toUtf8}};AP.getRuntimeConfig=b10});var QP=H((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.getRuntimeConfig=void 0;var m10=v4(),d10=m10.__importDefault(m2()),zP=O0(),RP=i2(),k5=Xs(),i10=m0(),c10=x2(),XP=Fr(),es=Ms(),SP=S4(),g10=_2(),x10=$5(),_10=WP(),n10=J0(),e10=w6(),a10=J0(),o10=(f)=>{a10.emitWarningIfUnsupportedVersion(process.version);let h=e10.resolveDefaultsModeConfig(f),w=()=>h().then(n10.loadConfigsForDefaultMode),s=_10.getRuntimeConfig(f);zP.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??g10.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??RP.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:d10.default.version}),httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await f.credentialDefaultProvider(E?.__config||{})()),signer:new zP.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new i10.NoAuthSigner}],maxAttempts:f?.maxAttempts??es.loadConfig(XP.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??es.loadConfig(k5.NODE_REGION_CONFIG_OPTIONS,{...k5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:SP.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??es.loadConfig({...XP.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||x10.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??c10.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??SP.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??es.loadConfig(k5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??es.loadConfig(k5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??es.loadConfig(RP.NODE_APP_ID_CONFIG_OPTIONS,$)}};YP.getRuntimeConfig=o10});var JP=H((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.resolveHttpAuthRuntimeConfig=KP.getHttpAuthExtensionConfiguration=void 0;var p10=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}};KP.getHttpAuthExtensionConfiguration=p10;var u10=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};KP.resolveHttpAuthRuntimeConfig=u10});var kP=H((DP)=>{Object.defineProperty(DP,"__esModule",{value:!0});DP.resolveRuntimeExtensions=void 0;var VP=s6(),PP=t0(),HP=J0(),NP=JP(),y5=(f)=>f,ff0=(f,h)=>{let w={...y5(VP.getAwsRegionExtensionConfiguration(f)),...y5(HP.getDefaultExtensionConfiguration(f)),...y5(PP.getHttpHandlerExtensionConfiguration(f)),...y5(NP.getHttpAuthExtensionConfiguration(f))};return h.forEach((s)=>s.configure(w)),{...f,...VP.resolveAwsRegionExtensionConfiguration(w),...HP.resolveDefaultRuntimeConfig(w),...PP.resolveHttpHandlerRuntimeConfig(w),...NP.resolveHttpAuthRuntimeConfig(w)}};DP.resolveRuntimeExtensions=ff0});var Xr=H((q6)=>{Object.defineProperty(q6,"__esModule",{value:!0});q6.STSClient=q6.__Client=void 0;var yP=T2(),hf0=U2(),wf0=C2(),jP=cE(),sf0=Xs(),D6=m0(),$f0=X2(),rf0=Qs(),OP=Fr(),vP=J0();Object.defineProperty(q6,"__Client",{enumerable:!0,get:function(){return vP.Client}});var lP=J6(),Ef0=Sr(),Tf0=QP(),Uf0=kP();class bP extends vP.Client{config;constructor(...[f]){let h=Tf0.getRuntimeConfig(f||{}),w=Ef0.resolveClientEndpointParameters(h),s=jP.resolveUserAgentConfig(w),$=OP.resolveRetryConfig(s),r=sf0.resolveRegionConfig($),E=yP.resolveHostHeaderConfig(r),T=rf0.resolveEndpointConfig(E),U=lP.resolveHttpAuthSchemeConfig(T),F=Uf0.resolveRuntimeExtensions(U,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(jP.getUserAgentPlugin(this.config)),this.middlewareStack.use(OP.getRetryPlugin(this.config)),this.middlewareStack.use($f0.getContentLengthPlugin(this.config)),this.middlewareStack.use(yP.getHostHeaderPlugin(this.config)),this.middlewareStack.use(hf0.getLoggerPlugin(this.config)),this.middlewareStack.use(wf0.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(D6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:lP.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new D6.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(D6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}q6.STSClient=bP});var FC=H(($X0,UC)=>{var{defineProperty:j5,getOwnPropertyDescriptor:Ff0,getOwnPropertyNames:Cf0}=Object,If0=Object.prototype.hasOwnProperty,e=(f,h)=>j5(f,"name",{value:h,configurable:!0}),Lf0=(f,h)=>{for(var w in h)j5(f,w,{get:h[w],enumerable:!0})},hC=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Cf0(h))if(!If0.call(f,$)&&$!==w)j5(f,$,{get:()=>h[$],enumerable:!(s=Ff0(h,$))||s.enumerable})}return f},Bf0=(f,h,w)=>(hC(f,h,"default"),w&&hC(w,h,"default")),Af0=(f)=>hC(j5({},"__esModule",{value:!0}),f),sC={};Lf0(sC,{AssumeRoleCommand:()=>EC,AssumeRoleResponseFilterSensitiveLog:()=>cP,AssumeRoleWithWebIdentityCommand:()=>TC,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>oP,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>pP,ClientInputEndpointParameters:()=>Eh0.ClientInputEndpointParameters,CredentialsFilterSensitiveLog:()=>$C,ExpiredTokenException:()=>gP,IDPCommunicationErrorException:()=>uP,IDPRejectedClaimException:()=>eP,InvalidIdentityTokenException:()=>aP,MalformedPolicyDocumentException:()=>xP,PackedPolicyTooLargeException:()=>_P,RegionDisabledException:()=>nP,STS:()=>FH,STSServiceException:()=>uf,decorateDefaultCredentialProvider:()=>Fh0,getDefaultRoleAssumer:()=>GH,getDefaultRoleAssumerWithWebIdentity:()=>WH});UC.exports=Af0(sC);Bf0(sC,Xr(),UC.exports);var Gf0=J0(),Wf0=Qs(),zf0=Dw(),Rf0=J0(),Xf0=Sr(),iP=J0(),Sf0=J0(),uf=class f extends Sf0.ServiceException{static{e(this,"STSServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},$C=e((f)=>({...f,...f.SecretAccessKey&&{SecretAccessKey:iP.SENSITIVE_STRING}}),"CredentialsFilterSensitiveLog"),cP=e((f)=>({...f,...f.Credentials&&{Credentials:$C(f.Credentials)}}),"AssumeRoleResponseFilterSensitiveLog"),gP=class f extends uf{static{e(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},xP=class f extends uf{static{e(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},_P=class f extends uf{static{e(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},nP=class f extends uf{static{e(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},eP=class f extends uf{static{e(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},aP=class f extends uf{static{e(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},oP=e((f)=>({...f,...f.WebIdentityToken&&{WebIdentityToken:iP.SENSITIVE_STRING}}),"AssumeRoleWithWebIdentityRequestFilterSensitiveLog"),pP=e((f)=>({...f,...f.Credentials&&{Credentials:$C(f.Credentials)}}),"AssumeRoleWithWebIdentityResponseFilterSensitiveLog"),uP=class f extends uf{static{e(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},rC=O0(),Yf0=t0(),R0=J0(),Mf0=e(async(f,h)=>{let w=$H,s;return s=UH({...kf0(f,h),[EH]:pf0,[TH]:rH}),sH(h,w,"/",void 0,s)},"se_AssumeRoleCommand"),Qf0=e(async(f,h)=>{let w=$H,s;return s=UH({...yf0(f,h),[EH]:uf0,[TH]:rH}),sH(h,w,"/",void 0,s)},"se_AssumeRoleWithWebIdentityCommand"),Kf0=e(async(f,h)=>{if(f.statusCode>=300)return tP(f,h);let w=await rC.parseXmlBody(f.body,h),s={};return s=df0(w.AssumeRoleResult,h),{$metadata:tf(f),...s}},"de_AssumeRoleCommand"),Zf0=e(async(f,h)=>{if(f.statusCode>=300)return tP(f,h);let w=await rC.parseXmlBody(f.body,h),s={};return s=if0(w.AssumeRoleWithWebIdentityResult,h),{$metadata:tf(f),...s}},"de_AssumeRoleWithWebIdentityCommand"),tP=e(async(f,h)=>{let w={...f,body:await rC.parseXmlErrorBody(f.body,h)},s=tf0(f,w.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Jf0(w,h);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Nf0(w,h);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Df0(w,h);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await qf0(w,h);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Vf0(w,h);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Pf0(w,h);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Hf0(w,h);default:let $=w.body;return of0({output:f,parsedBody:$.Error,errorCode:s})}},"de_CommandError"),Jf0=e(async(f,h)=>{let w=f.body,s=cf0(w.Error,h),$=new gP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_ExpiredTokenExceptionRes"),Vf0=e(async(f,h)=>{let w=f.body,s=gf0(w.Error,h),$=new uP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_IDPCommunicationErrorExceptionRes"),Pf0=e(async(f,h)=>{let w=f.body,s=xf0(w.Error,h),$=new eP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_IDPRejectedClaimExceptionRes"),Hf0=e(async(f,h)=>{let w=f.body,s=_f0(w.Error,h),$=new aP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_InvalidIdentityTokenExceptionRes"),Nf0=e(async(f,h)=>{let w=f.body,s=nf0(w.Error,h),$=new xP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_MalformedPolicyDocumentExceptionRes"),Df0=e(async(f,h)=>{let w=f.body,s=ef0(w.Error,h),$=new _P({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_PackedPolicyTooLargeExceptionRes"),qf0=e(async(f,h)=>{let w=f.body,s=af0(w.Error,h),$=new nP({$metadata:tf(f),...s});return R0.decorateServiceException($,w)},"de_RegionDisabledExceptionRes"),kf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[ts]!=null){let s=fH(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[ps]!=null)w[ps]=f[ps];if(f[a6]!=null){let s=mf0(f[a6],h);if(f[a6]?.length===0)w.Tags=[];Object.entries(s).forEach(([$,r])=>{let E=`Tags.${$}`;w[E]=r})}if(f[p6]!=null){let s=bf0(f[p6],h);if(f[p6]?.length===0)w.TransitiveTagKeys=[];Object.entries(s).forEach(([$,r])=>{let E=`TransitiveTagKeys.${$}`;w[E]=r})}if(f[b6]!=null)w[b6]=f[b6];if(f[n6]!=null)w[n6]=f[n6];if(f[o6]!=null)w[o6]=f[o6];if(f[pf]!=null)w[pf]=f[pf];if(f[i6]!=null){let s=lf0(f[i6],h);if(f[i6]?.length===0)w.ProvidedContexts=[];Object.entries(s).forEach(([$,r])=>{let E=`ProvidedContexts.${$}`;w[E]=r})}return w},"se_AssumeRoleRequest"),yf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[t6]!=null)w[t6]=f[t6];if(f[c6]!=null)w[c6]=f[c6];if(f[ts]!=null){let s=fH(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[ps]!=null)w[ps]=f[ps];return w},"se_AssumeRoleWithWebIdentityRequest"),fH=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=jf0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_policyDescriptorListType"),jf0=e((f,h)=>{let w={};if(f[fC]!=null)w[fC]=f[fC];return w},"se_PolicyDescriptorType"),Of0=e((f,h)=>{let w={};if(f[d6]!=null)w[d6]=f[d6];if(f[l6]!=null)w[l6]=f[l6];return w},"se_ProvidedContext"),lf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=Of0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_ProvidedContextsListType"),vf0=e((f,h)=>{let w={};if(f[m6]!=null)w[m6]=f[m6];if(f[u6]!=null)w[u6]=f[u6];return w},"se_Tag"),bf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;w[`member.${s}`]=$,s++}return w},"se_tagKeyListType"),mf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=vf0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_tagListType"),hH=e((f,h)=>{let w={};if(f[y6]!=null)w[y6]=R0.expectString(f[y6]);if(f[j6]!=null)w[j6]=R0.expectString(f[j6]);return w},"de_AssumedRoleUser"),df0=e((f,h)=>{let w={};if(f[os]!=null)w[os]=wH(f[os],h);if(f[as]!=null)w[as]=hH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[pf]!=null)w[pf]=R0.expectString(f[pf]);return w},"de_AssumeRoleResponse"),if0=e((f,h)=>{let w={};if(f[os]!=null)w[os]=wH(f[os],h);if(f[_6]!=null)w[_6]=R0.expectString(f[_6]);if(f[as]!=null)w[as]=hH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[g6]!=null)w[g6]=R0.expectString(f[g6]);if(f[O6]!=null)w[O6]=R0.expectString(f[O6]);if(f[pf]!=null)w[pf]=R0.expectString(f[pf]);return w},"de_AssumeRoleWithWebIdentityResponse"),wH=e((f,h)=>{let w={};if(f[k6]!=null)w[k6]=R0.expectString(f[k6]);if(f[x6]!=null)w[x6]=R0.expectString(f[x6]);if(f[e6]!=null)w[e6]=R0.expectString(f[e6]);if(f[v6]!=null)w[v6]=R0.expectNonNull(R0.parseRfc3339DateTimeWithOffset(f[v6]));return w},"de_Credentials"),cf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_ExpiredTokenException"),gf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPCommunicationErrorException"),xf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPRejectedClaimException"),_f0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_InvalidIdentityTokenException"),nf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_MalformedPolicyDocumentException"),ef0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_PackedPolicyTooLargeException"),af0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_RegionDisabledException"),tf=e((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),of0=R0.withBaseException(uf),sH=e(async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new Yf0.HttpRequest(F)},"buildHttpRpcRequest"),$H={"content-type":"application/x-www-form-urlencoded"},rH="2011-06-15",EH="Action",k6="AccessKeyId",pf0="AssumeRole",y6="AssumedRoleId",as="AssumedRoleUser",uf0="AssumeRoleWithWebIdentity",j6="Arn",O6="Audience",os="Credentials",l6="ContextAssertion",ps="DurationSeconds",v6="Expiration",b6="ExternalId",m6="Key",us="Policy",ts="PolicyArns",d6="ProviderArn",i6="ProvidedContexts",c6="ProviderId",f$="PackedPolicySize",g6="Provider",h$="RoleArn",w$="RoleSessionName",x6="SecretAccessKey",_6="SubjectFromWebIdentityToken",pf="SourceIdentity",n6="SerialNumber",e6="SessionToken",a6="Tags",o6="TokenCode",p6="TransitiveTagKeys",TH="Version",u6="Value",t6="WebIdentityToken",fC="arn",i0="message",UH=e((f)=>Object.entries(f).map(([h,w])=>R0.extendedEncodeURIComponent(h)+"="+R0.extendedEncodeURIComponent(w)).join("&"),"buildFormUrlencodedString"),tf0=e((f,h)=>{if(h.Error?.Code!==void 0)return h.Error.Code;if(f.statusCode==404)return"NotFound"},"loadQueryErrorCode"),EC=class extends Rf0.Command.classBuilder().ep(Xf0.commonParams).m(function(f,h,w,s){return[zf0.getSerdePlugin(w,this.serialize,this.deserialize),Wf0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,cP).ser(Mf0).de(Kf0).build(){static{e(this,"AssumeRoleCommand")}},fh0=Qs(),hh0=Dw(),wh0=J0(),sh0=Sr(),TC=class extends wh0.Command.classBuilder().ep(sh0.commonParams).m(function(f,h,w,s){return[hh0.getSerdePlugin(w,this.serialize,this.deserialize),fh0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(oP,pP).ser(Qf0).de(Zf0).build(){static{e(this,"AssumeRoleWithWebIdentityCommand")}},$h0=Xr(),rh0={AssumeRoleCommand:EC,AssumeRoleWithWebIdentityCommand:TC},FH=class extends $h0.STSClient{static{e(this,"STS")}};Gf0.createAggregatedClient(rh0,FH);var Eh0=Sr(),wC=C1(),dP="us-east-1",CH=e((f)=>{if(typeof f?.Arn==="string"){let h=f.Arn.split(":");if(h.length>4&&h[4]!=="")return h[4]}return},"getAccountIdFromAssumedRoleUser"),IH=e(async(f,h,w)=>{let s=typeof f==="function"?await f():f,$=typeof h==="function"?await h():h;return w?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${$} (parent client)`,`${dP} (STS default)`),s??$??dP},"resolveRegion"),Th0=e((f,h)=>{let w,s;return async($,r)=>{if(s=$,!w){let{logger:C=f?.parentClientConfig?.logger,region:I,requestHandler:L=f?.parentClientConfig?.requestHandler,credentialProviderLogger:G}=f,X=await IH(I,f?.parentClientConfig?.region,G),Q=!LH(L);w=new h({profile:f?.parentClientConfig?.profile,credentialDefaultProvider:()=>async()=>s,region:X,requestHandler:Q?L:void 0,logger:C})}let{Credentials:E,AssumedRoleUser:T}=await w.send(new EC(r));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);let U=CH(T),F={accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...U&&{accountId:U}};return wC.setCredentialFeature(F,"CREDENTIALS_STS_ASSUME_ROLE","i"),F}},"getDefaultRoleAssumer"),Uh0=e((f,h)=>{let w;return async(s)=>{if(!w){let{logger:U=f?.parentClientConfig?.logger,region:F,requestHandler:C=f?.parentClientConfig?.requestHandler,credentialProviderLogger:I}=f,L=await IH(F,f?.parentClientConfig?.region,I),G=!LH(C);w=new h({profile:f?.parentClientConfig?.profile,region:L,requestHandler:G?C:void 0,logger:U})}let{Credentials:$,AssumedRoleUser:r}=await w.send(new TC(s));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);let E=CH(r),T={accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...E&&{accountId:E}};if(E)wC.setCredentialFeature(T,"RESOLVED_ACCOUNT_ID","T");return wC.setCredentialFeature(T,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),T}},"getDefaultRoleAssumerWithWebIdentity"),LH=e((f)=>{return f?.metadata?.handlerProtocol==="h2"},"isH2"),BH=Xr(),AH=e((f,h)=>{if(!h)return f;else return class w extends f{static{e(this,"CustomizableSTSClient")}constructor(s){super(s);for(let $ of h)this.middlewareStack.use($)}}},"getCustomizableStsClientCtor"),GH=e((f={},h)=>Th0(f,AH(BH.STSClient,h)),"getDefaultRoleAssumer"),WH=e((f={},h)=>Uh0(f,AH(BH.STSClient,h)),"getDefaultRoleAssumerWithWebIdentity"),Fh0=e((f)=>(h)=>f({roleAssumer:GH(h),roleAssumerWithWebIdentity:WH(h),...h}),"decorateDefaultCredentialProvider")});var CC,RH=(f,{profile:h="default",logger:w}={})=>{return Boolean(f)&&typeof f==="object"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1&&["undefined","string"].indexOf(typeof f.external_id)>-1&&["undefined","string"].indexOf(typeof f.mfa_serial)>-1&&(Ch0(f,{profile:h,logger:w})||Ih0(f,{profile:h,logger:w}))},Ch0=(f,{profile:h,logger:w})=>{let s=typeof f.source_profile==="string"&&typeof f.credential_source==="undefined";if(s)w?.debug?.(` ${h} isAssumeRoleWithSourceProfile source_profile=${f.source_profile}`);return s},Ih0=(f,{profile:h,logger:w})=>{let s=typeof f.credential_source==="string"&&typeof f.source_profile==="undefined";if(s)w?.debug?.(` ${h} isCredentialSourceProfile credential_source=${f.credential_source}`);return s},XH=async(f,h,w,s={})=>{w.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let $=h[f],{source_profile:r,region:E}=$;if(!w.roleAssumer){let{getDefaultRoleAssumer:U}=await Promise.resolve().then(() => o(FC(),1));w.roleAssumer=U({...w.clientConfig,credentialProviderLogger:w.logger,parentClientConfig:{...w?.parentClientConfig,region:E??w?.parentClientConfig?.region}},w.clientPlugins)}if(r&&r in s)throw new a(`Detected a cycle attempting to resolve credentials for profile ${y1(w)}. Profiles visited: `+Object.keys(s).join(", "),{logger:w.logger});w.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${r?`source_profile=[${r}]`:`profile=[${f}]`}`);let T=r?O5(r,h,w,{...s,[r]:!0},zH(h[r]??{})):(await DV($.credential_source,f,w.logger)(w))();if(zH($))return T.then((U)=>CC.setCredentialFeature(U,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let U={RoleArn:$.role_arn,RoleSessionName:$.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:$.external_id,DurationSeconds:parseInt($.duration_seconds||"3600",10)},{mfa_serial:F}=$;if(F){if(!w.mfaCodeProvider)throw new a(`Profile ${f} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:w.logger,tryNextLink:!1});U.SerialNumber=F,U.TokenCode=await w.mfaCodeProvider(F)}let C=await T;return w.roleAssumer(C,U).then((I)=>CC.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},zH=(f)=>{return!f.role_arn&&!!f.credential_source};var SH=B(()=>{CC=o(C1(),1);Y0();hf();qV();IC()});var YH,MH=(f,h,w)=>{if(h.Version!==1)throw Error(`Profile ${f} credential_process did not return Version 1.`);if(h.AccessKeyId===void 0||h.SecretAccessKey===void 0)throw Error(`Profile ${f} credential_process returned invalid credentials.`);if(h.Expiration){let r=new Date;if(new Date(h.Expiration)<r)throw Error(`Profile ${f} credential_process returned expired credentials.`)}let s=h.AccountId;if(!s&&w?.[f]?.aws_account_id)s=w[f].aws_account_id;let $={accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,...h.SessionToken&&{sessionToken:h.SessionToken},...h.Expiration&&{expiration:new Date(h.Expiration)},...h.CredentialScope&&{credentialScope:h.CredentialScope},...s&&{accountId:s}};return YH.setCredentialFeature($,"CREDENTIALS_PROCESS","w"),$};var QH=B(()=>{YH=o(C1(),1)});import{exec as Lh0}from"child_process";import{promisify as Bh0}from"util";var KH=async(f,h,w)=>{let s=h[f];if(h[f]){let $=s.credential_process;if($!==void 0){let r=Bh0(Lh0);try{let{stdout:E}=await r($),T;try{T=JSON.parse(E.trim())}catch{throw Error(`Profile ${f} credential_process returned invalid JSON.`)}return MH(f,T,h)}catch(E){throw new a(E.message,{logger:w})}}else throw new a(`Profile ${f} did not contain credential_process.`,{logger:w})}else throw new a(`Profile ${f} could not be found in shared credentials file.`,{logger:w})};var ZH=B(()=>{Y0();QH()});var Ah0=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let w=await Qh(f);return KH(y1({profile:f.profile??h?.profile}),w,f.logger)};var JH=B(()=>{hf();ZH()});var LC={};Uh(LC,{fromProcess:()=>Ah0});var BC=B(()=>{JH()});var VH,PH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.credential_process==="string",HH=async(f,h)=>Promise.resolve().then(() => (BC(),LC)).then(({fromProcess:w})=>w({...f,profile:h})().then((s)=>VH.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v")));var NH=B(()=>{VH=o(C1(),1)});var AC,DH=async(f,h,w={})=>{let{fromSSO:s}=await Promise.resolve().then(() => (K6(),Q6));return s({profile:f,logger:w.logger,parentClientConfig:w.parentClientConfig,clientConfig:w.clientConfig})().then(($)=>{if(h.sso_session)return AC.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO","r");else return AC.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},qH=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var kH=B(()=>{AC=o(C1(),1)});var yH,GC=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.aws_access_key_id==="string"&&typeof f.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof f.aws_session_token)>-1&&["undefined","string"].indexOf(typeof f.aws_account_id)>-1,WC=async(f,h)=>{h?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let w={accessKeyId:f.aws_access_key_id,secretAccessKey:f.aws_secret_access_key,sessionToken:f.aws_session_token,...f.aws_credential_scope&&{credentialScope:f.aws_credential_scope},...f.aws_account_id&&{accountId:f.aws_account_id}};return yH.setCredentialFeature(w,"CREDENTIALS_PROFILE","n")};var jH=B(()=>{yH=o(C1(),1)});var zC=(f)=>async(h)=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:w,roleSessionName:s,webIdentityToken:$,providerId:r,policyArns:E,policy:T,durationSeconds:U}=f,{roleAssumerWithWebIdentity:F}=f;if(!F){let{getDefaultRoleAssumerWithWebIdentity:C}=await Promise.resolve().then(() => o(FC(),1));F=C({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:{...h?.callerClientConfig,...f.parentClientConfig}},f.clientPlugins)}return F({RoleArn:w,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:$,ProviderId:r,PolicyArns:E,Policy:T,DurationSeconds:U})};import{readFileSync as Gh0}from"fs";var lH,OH="AWS_WEB_IDENTITY_TOKEN_FILE",Wh0="AWS_ROLE_ARN",zh0="AWS_ROLE_SESSION_NAME",Rh0=(f={})=>async()=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let h=f?.webIdentityTokenFile??process.env[OH],w=f?.roleArn??process.env[Wh0],s=f?.roleSessionName??process.env[zh0];if(!h||!w)throw new a("Web identity configuration not specified",{logger:f.logger});let $=await zC({...f,webIdentityToken:Gh0(h,{encoding:"ascii"}),roleArn:w,roleSessionName:s})();if(h===process.env[OH])lH.setCredentialFeature($,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return $};var vH=B(()=>{lH=o(C1(),1);Y0()});var RC={};Uh(RC,{fromWebToken:()=>zC,fromTokenFile:()=>Rh0});var XC=B(()=>{vH()});var bH,mH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.web_identity_token_file==="string"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1,dH=async(f,h)=>Promise.resolve().then(() => (XC(),RC)).then(({fromTokenFile:w})=>w({webIdentityTokenFile:f.web_identity_token_file,roleArn:f.role_arn,roleSessionName:f.role_session_name,roleAssumerWithWebIdentity:h.roleAssumerWithWebIdentity,logger:h.logger,parentClientConfig:h.parentClientConfig})().then((s)=>bH.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var iH=B(()=>{bH=o(C1(),1)});var O5=async(f,h,w,s={},$=!1)=>{let r=h[f];if(Object.keys(s).length>0&&GC(r))return WC(r,w);if($||RH(r,{profile:f,logger:w.logger}))return XH(f,h,w,s);if(GC(r))return WC(r,w);if(mH(r))return dH(r,w);if(PH(r))return HH(w,f);if(qH(r))return await DH(f,r,w);throw new a(`Could not resolve credentials using profile: [${f}] in configuration/credentials file(s).`,{logger:w.logger})};var IC=B(()=>{Y0();SH();NH();kH();jH();iH()});var Xh0=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let s=await Qh(w);return O5(y1({profile:f.profile??h?.profile}),s,w)};var cH=B(()=>{hf();IC()});var gH={};Uh(gH,{fromIni:()=>Xh0});var xH=B(()=>{cH()});E4();T4();U4();d$();Yh();var $$=o(m0(),1);rE();D();$w();J();var $Y=o(O0(),1);cf();var rY=async(f,h,w)=>{return{operation:Xh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function X_(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var EY=(f)=>{let h=[];switch(f.operation){default:h.push(X_(f))}return h},TY=(f)=>{return{...$Y.resolveAwsSdkSigV4Config(f)}};var UY=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53"}},K={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var FY={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.750.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/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-sdk-route53":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 CN=o(O0(),1);gF();Y0();hf();Y0();var E9="AWS_EC2_METADATA_DISABLED",T9=async(f)=>{let{ENV_CMDS_FULL_URI:h,ENV_CMDS_RELATIVE_URI:w,fromContainerMetadata:s,fromInstanceMetadata:$}=await Promise.resolve().then(() => (hr(),fr));if(process.env[w]||process.env[h]){f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:r}=await Promise.resolve().then(() => ($2(),s2));return gf(r(f),s(f))}if(process.env[E9]&&process.env[E9]!=="false")return async()=>{throw new a("EC2 Instance Metadata Service access disabled",{logger:f.logger})};return f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(f)};var _H=!1,l5=(f={})=>uh(gf(async()=>{if(f.profile??process.env[P7]){if(process.env[KE]&&process.env[ZE]){if(!_H)(f.logger?.warn&&f.logger?.constructor?.name!=="NoOpLogger"?f.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
52
52
|
Multiple credential sources detected:
|
|
53
53
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
54
54
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -56,9 +56,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
56
56
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
57
57
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
58
58
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
59
|
-
`),oH=!0}throw new a("AWS_PROFILE is set, skipping fromEnv provider.",{logger:f.logger,tryNextLink:!0})}return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),gF(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoSession:r}=f;if(!h&&!w&&!s&&!$&&!r)throw new a("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:f.logger});let{fromSSO:E}=await Promise.resolve().then(() => (V6(),J6));return E(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:h}=await Promise.resolve().then(() => (aH(),eH));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:h}=await Promise.resolve().then(() => (WC(),GC));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:h}=await Promise.resolve().then(() => (MC(),YC));return h(f)()},async()=>{return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await I9(f))()},async()=>{throw new a("Could not load credentials from any providers",{tryNextLink:!1,logger:f.logger})}),Zh0,Kh0),Kh0=(f)=>f?.expiration!==void 0,Zh0=(f)=>f?.expiration!==void 0&&f.expiration.getTime()-Date.now()<300000;W5();Yh();z5();$w();Kh();wr();R5();wf();var LN=p(O0(),1);J();pw();S5();bs();N$();df();var pH={["required"]:!1,type:"String"},uH={["required"]:!0,default:!1,type:"Boolean"},tH={["ref"]:"Endpoint"},l5={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},FN={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},s1={},fN={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},s$={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},Iw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},fh={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},hN={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},wN={["fn"]:"stringEquals",["argv"]:[s$,"aws-us-gov"]},sN={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},$N={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},rN={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},EN=[l5],UN=[FN],TN=[{["ref"]:"Region"}],Jh0={version:"1.0",parameters:{Region:pH,UseDualStack:uH,UseFIPS:uH,Endpoint:pH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[tH]}],rules:[{conditions:EN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:UN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:tH,properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:TN}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:TN,assign:"PartitionResult"}],rules:[{conditions:[fN,Iw,fh],endpoint:{url:"https://route53.amazonaws.com",properties:hN,headers:s1},type:"endpoint"},{conditions:[fN,l5,fh],endpoint:{url:"https://route53-fips.amazonaws.com",properties:hN,headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-cn"]},Iw,fh],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:s1},type:"endpoint"},{conditions:[wN,Iw,fh],endpoint:sN,type:"endpoint"},{conditions:[wN,l5,fh],endpoint:sN,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso"]},Iw,fh],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-b"]},Iw,fh],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-e"]},Iw,fh],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-f"]},Iw,fh],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:s1},type:"endpoint"},{conditions:[l5,FN],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,$N]},rN],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:EN,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[$N,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:UN,rules:[{conditions:[rN],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s1,headers:s1},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:s1,headers:s1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},CN=Jh0;var Vh0=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),IN=(f,h={})=>{return Vh0.get(f,()=>xh(CN,{endpointParams:f,logger:h.logger}))};t1.aws=_h;var AN=(f)=>{return{apiVersion:"2013-04-01",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??IN,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??FY,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new LN.AwsSdkSigV4Signer}],logger:f?.logger??new _f,serviceId:f?.serviceId??"Route 53",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};J();X5();J();var GN=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=AN(f);BN.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??O5,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:LY.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Xh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};Y5();F1();J();var WN=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},zN=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var v5=(f)=>f,RN=(f,h)=>{let w={...v5(gs(f)),...v5(Is(f)),...v5(Zw(f)),...v5(WN(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),...zN(w)}};class QC extends ww{config;constructor(...[f]){let h=GN(f||{}),w=IY(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),U=uw(E),T=CY(U),F=RN(T,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(Bs(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use($$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:TY,identityProviderConfigProvider:async(C)=>new $$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();var b5=/^\/(hostedzone|change|delegationset)\//;function Ph0(){return(f)=>async(h)=>{let{ChangeBatch:w}=h.input,s=[];for(let $ of w.Changes){let{AliasTarget:r}=$.ResourceRecordSet;if(r)s.push({...$,ResourceRecordSet:{...$.ResourceRecordSet,AliasTarget:{...r,HostedZoneId:r.HostedZoneId.replace(b5,"")}}});else s.push($)}return f({...h,input:{...h.input,ChangeBatch:{...w,Changes:s}}})}}var Hh0={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},SN=(f)=>({applyToStack:(h)=>{h.add(Ph0(),Hh0)}});var Nh0=["DelegationSetId","HostedZoneId","Id"];function Dh0(){return(f)=>async(h)=>{let w={...h.input};for(let s of Nh0){let $=w[s];if($)w[s]=$.replace(b5,"")}return f({...h,input:w})}}var qh0={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},O=(f)=>({applyToStack:(h)=>{h.add(Dh0(),qh0)}});D();k();J();var _=p(O0(),1);function XN(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function YN(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class KC{value;constructor(f){this.value=f}toString(){return YN(""+this.value)}}class P{name;children;attributes={};static of(f,h,w){let s=new P(f);if(h!==void 0)s.addChildNode(new KC(h));if(w!==void 0)s.withName(w);return s}constructor(f,h=[]){this.name=f,this.children=h}withName(f){return this.name=f,this}addAttribute(f,h){return this.attributes[f]=h,this}addChildNode(f){return this.children.push(f),this}removeAttribute(f){return delete this.attributes[f],this}n(f){return this.name=f,this}c(f){return this.children.push(f),this}a(f,h){if(h!=null)this.attributes[f]=h;return this}cc(f,h,w=h){if(f[h]!=null){let s=P.of(h,f[h]).withName(w);this.c(s)}}l(f,h,w,s){if(f[h]!=null)s().map((r)=>{r.withName(w),this.c(r)})}lc(f,h,w,s){if(f[h]!=null){let $=s(),r=new P(w);$.map((E)=>{r.c(E)}),this.c(r)}}toString(){let f=Boolean(this.children.length),h=`<${this.name}`,w=this.attributes;for(let s of Object.keys(w)){let $=w[s];if($!=null)h+=` ${s}="${XN(""+$)}"`}return h+=!f?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}var d=p(m0(),1);J();J();class m extends $f{constructor(f){super(f);Object.setPrototypeOf(this,m.prototype)}}class m5 extends m{name="ConcurrentModification";$fault="client";constructor(f){super({name:"ConcurrentModification",$fault:"client",...f});Object.setPrototypeOf(this,m5.prototype)}}class d5 extends m{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,d5.prototype)}}class i5 extends m{name="InvalidKeySigningKeyStatus";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...f});Object.setPrototypeOf(this,i5.prototype)}}class c5 extends m{name="InvalidKMSArn";$fault="client";constructor(f){super({name:"InvalidKMSArn",$fault:"client",...f});Object.setPrototypeOf(this,c5.prototype)}}class g5 extends m{name="InvalidSigningStatus";$fault="client";constructor(f){super({name:"InvalidSigningStatus",$fault:"client",...f});Object.setPrototypeOf(this,g5.prototype)}}class x5 extends m{name="NoSuchKeySigningKey";$fault="client";constructor(f){super({name:"NoSuchKeySigningKey",$fault:"client",...f});Object.setPrototypeOf(this,x5.prototype)}}class _5 extends m{name="ConflictingDomainExists";$fault="client";constructor(f){super({name:"ConflictingDomainExists",$fault:"client",...f});Object.setPrototypeOf(this,_5.prototype)}}class n5 extends m{name="InvalidVPCId";$fault="client";constructor(f){super({name:"InvalidVPCId",$fault:"client",...f});Object.setPrototypeOf(this,n5.prototype)}}class e5 extends m{name="LimitsExceeded";$fault="client";constructor(f){super({name:"LimitsExceeded",$fault:"client",...f});Object.setPrototypeOf(this,e5.prototype)}}class a5 extends m{name="NoSuchHostedZone";$fault="client";constructor(f){super({name:"NoSuchHostedZone",$fault:"client",...f});Object.setPrototypeOf(this,a5.prototype)}}class o5 extends m{name="NotAuthorizedException";$fault="client";constructor(f){super({name:"NotAuthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,o5.prototype)}}class p5 extends m{name="PriorRequestNotComplete";$fault="client";constructor(f){super({name:"PriorRequestNotComplete",$fault:"client",...f});Object.setPrototypeOf(this,p5.prototype)}}class u5 extends m{name="PublicZoneVPCAssociation";$fault="client";constructor(f){super({name:"PublicZoneVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,u5.prototype)}}class t5 extends m{name="CidrBlockInUseException";$fault="client";Message;constructor(f){super({name:"CidrBlockInUseException",$fault:"client",...f});Object.setPrototypeOf(this,t5.prototype),this.Message=f.Message}}class fU extends m{name="CidrCollectionVersionMismatchException";$fault="client";Message;constructor(f){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...f});Object.setPrototypeOf(this,fU.prototype),this.Message=f.Message}}class hU extends m{name="NoSuchCidrCollectionException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrCollectionException",$fault:"client",...f});Object.setPrototypeOf(this,hU.prototype),this.Message=f.Message}}class wU extends m{name="InvalidChangeBatch";$fault="client";messages;constructor(f){super({name:"InvalidChangeBatch",$fault:"client",...f});Object.setPrototypeOf(this,wU.prototype),this.messages=f.messages}}class sU extends m{name="NoSuchHealthCheck";$fault="client";constructor(f){super({name:"NoSuchHealthCheck",$fault:"client",...f});Object.setPrototypeOf(this,sU.prototype)}}class $U extends m{name="ThrottlingException";$fault="client";constructor(f){super({name:"ThrottlingException",$fault:"client",...f});Object.setPrototypeOf(this,$U.prototype)}}class rU extends m{name="CidrCollectionAlreadyExistsException";$fault="client";Message;constructor(f){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...f});Object.setPrototypeOf(this,rU.prototype),this.Message=f.Message}}class EU extends m{name="HealthCheckAlreadyExists";$fault="client";constructor(f){super({name:"HealthCheckAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,EU.prototype)}}class UU extends m{name="TooManyHealthChecks";$fault="client";constructor(f){super({name:"TooManyHealthChecks",$fault:"client",...f});Object.setPrototypeOf(this,UU.prototype)}}class TU extends m{name="DelegationSetNotAvailable";$fault="client";constructor(f){super({name:"DelegationSetNotAvailable",$fault:"client",...f});Object.setPrototypeOf(this,TU.prototype)}}class FU extends m{name="DelegationSetNotReusable";$fault="client";constructor(f){super({name:"DelegationSetNotReusable",$fault:"client",...f});Object.setPrototypeOf(this,FU.prototype)}}class CU extends m{name="HostedZoneAlreadyExists";$fault="client";constructor(f){super({name:"HostedZoneAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,CU.prototype)}}class IU extends m{name="InvalidDomainName";$fault="client";constructor(f){super({name:"InvalidDomainName",$fault:"client",...f});Object.setPrototypeOf(this,IU.prototype)}}class LU extends m{name="NoSuchDelegationSet";$fault="client";constructor(f){super({name:"NoSuchDelegationSet",$fault:"client",...f});Object.setPrototypeOf(this,LU.prototype)}}class AU extends m{name="TooManyHostedZones";$fault="client";constructor(f){super({name:"TooManyHostedZones",$fault:"client",...f});Object.setPrototypeOf(this,AU.prototype)}}class BU extends m{name="InvalidArgument";$fault="client";constructor(f){super({name:"InvalidArgument",$fault:"client",...f});Object.setPrototypeOf(this,BU.prototype)}}class GU extends m{name="InvalidKeySigningKeyName";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyName",$fault:"client",...f});Object.setPrototypeOf(this,GU.prototype)}}class WU extends m{name="KeySigningKeyAlreadyExists";$fault="client";constructor(f){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,WU.prototype)}}class zU extends m{name="TooManyKeySigningKeys";$fault="client";constructor(f){super({name:"TooManyKeySigningKeys",$fault:"client",...f});Object.setPrototypeOf(this,zU.prototype)}}class RU extends m{name="InsufficientCloudWatchLogsResourcePolicy";$fault="client";constructor(f){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...f});Object.setPrototypeOf(this,RU.prototype)}}class SU extends m{name="NoSuchCloudWatchLogsLogGroup";$fault="client";constructor(f){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...f});Object.setPrototypeOf(this,SU.prototype)}}class XU extends m{name="QueryLoggingConfigAlreadyExists";$fault="client";constructor(f){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,XU.prototype)}}class YU extends m{name="DelegationSetAlreadyCreated";$fault="client";constructor(f){super({name:"DelegationSetAlreadyCreated",$fault:"client",...f});Object.setPrototypeOf(this,YU.prototype)}}class MU extends m{name="DelegationSetAlreadyReusable";$fault="client";constructor(f){super({name:"DelegationSetAlreadyReusable",$fault:"client",...f});Object.setPrototypeOf(this,MU.prototype)}}class QU extends m{name="HostedZoneNotFound";$fault="client";constructor(f){super({name:"HostedZoneNotFound",$fault:"client",...f});Object.setPrototypeOf(this,QU.prototype)}}class KU extends m{name="InvalidTrafficPolicyDocument";$fault="client";constructor(f){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...f});Object.setPrototypeOf(this,KU.prototype)}}class ZU extends m{name="TooManyTrafficPolicies";$fault="client";constructor(f){super({name:"TooManyTrafficPolicies",$fault:"client",...f});Object.setPrototypeOf(this,ZU.prototype)}}class JU extends m{name="TrafficPolicyAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,JU.prototype)}}class VU extends m{name="NoSuchTrafficPolicy";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicy",$fault:"client",...f});Object.setPrototypeOf(this,VU.prototype)}}class PU extends m{name="TooManyTrafficPolicyInstances";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...f});Object.setPrototypeOf(this,PU.prototype)}}class HU extends m{name="TrafficPolicyInstanceAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,HU.prototype)}}class NU extends m{name="TooManyTrafficPolicyVersionsForCurrentPolicy";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...f});Object.setPrototypeOf(this,NU.prototype)}}class DU extends m{name="TooManyVPCAssociationAuthorizations";$fault="client";constructor(f){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...f});Object.setPrototypeOf(this,DU.prototype)}}class qU extends m{name="KeySigningKeyInParentDSRecord";$fault="client";constructor(f){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...f});Object.setPrototypeOf(this,qU.prototype)}}class kU extends m{name="KeySigningKeyInUse";$fault="client";constructor(f){super({name:"KeySigningKeyInUse",$fault:"client",...f});Object.setPrototypeOf(this,kU.prototype)}}class yU extends m{name="CidrCollectionInUseException";$fault="client";Message;constructor(f){super({name:"CidrCollectionInUseException",$fault:"client",...f});Object.setPrototypeOf(this,yU.prototype),this.Message=f.Message}}class jU extends m{name="HealthCheckInUse";$fault="client";constructor(f){super({name:"HealthCheckInUse",$fault:"client",...f});Object.setPrototypeOf(this,jU.prototype)}}class OU extends m{name="HostedZoneNotEmpty";$fault="client";constructor(f){super({name:"HostedZoneNotEmpty",$fault:"client",...f});Object.setPrototypeOf(this,OU.prototype)}}class lU extends m{name="NoSuchQueryLoggingConfig";$fault="client";constructor(f){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...f});Object.setPrototypeOf(this,lU.prototype)}}class vU extends m{name="DelegationSetInUse";$fault="client";constructor(f){super({name:"DelegationSetInUse",$fault:"client",...f});Object.setPrototypeOf(this,vU.prototype)}}class bU extends m{name="TrafficPolicyInUse";$fault="client";constructor(f){super({name:"TrafficPolicyInUse",$fault:"client",...f});Object.setPrototypeOf(this,bU.prototype)}}class mU extends m{name="NoSuchTrafficPolicyInstance";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...f});Object.setPrototypeOf(this,mU.prototype)}}class dU extends m{name="VPCAssociationAuthorizationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,dU.prototype)}}class iU extends m{name="DNSSECNotFound";$fault="client";constructor(f){super({name:"DNSSECNotFound",$fault:"client",...f});Object.setPrototypeOf(this,iU.prototype)}}class cU extends m{name="LastVPCAssociation";$fault="client";constructor(f){super({name:"LastVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,cU.prototype)}}class gU extends m{name="VPCAssociationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,gU.prototype)}}class xU extends m{name="HostedZonePartiallyDelegated";$fault="client";constructor(f){super({name:"HostedZonePartiallyDelegated",$fault:"client",...f});Object.setPrototypeOf(this,xU.prototype)}}class _U extends m{name="KeySigningKeyWithActiveStatusNotFound";$fault="client";constructor(f){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...f});Object.setPrototypeOf(this,_U.prototype)}}class nU extends m{name="NoSuchChange";$fault="client";constructor(f){super({name:"NoSuchChange",$fault:"client",...f});Object.setPrototypeOf(this,nU.prototype)}}class eU extends m{name="NoSuchGeoLocation";$fault="client";constructor(f){super({name:"NoSuchGeoLocation",$fault:"client",...f});Object.setPrototypeOf(this,eU.prototype)}}class aU extends m{name="IncompatibleVersion";$fault="client";constructor(f){super({name:"IncompatibleVersion",$fault:"client",...f});Object.setPrototypeOf(this,aU.prototype)}}class oU extends m{name="HostedZoneNotPrivate";$fault="client";constructor(f){super({name:"HostedZoneNotPrivate",$fault:"client",...f});Object.setPrototypeOf(this,oU.prototype)}}class pU extends m{name="NoSuchCidrLocationException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrLocationException",$fault:"client",...f});Object.setPrototypeOf(this,pU.prototype),this.Message=f.Message}}class uU extends m{name="InvalidPaginationToken";$fault="client";constructor(f){super({name:"InvalidPaginationToken",$fault:"client",...f});Object.setPrototypeOf(this,uU.prototype)}}class tU extends m{name="HealthCheckVersionMismatch";$fault="client";constructor(f){super({name:"HealthCheckVersionMismatch",$fault:"client",...f});Object.setPrototypeOf(this,tU.prototype)}}class fT extends m{name="ConflictingTypes";$fault="client";constructor(f){super({name:"ConflictingTypes",$fault:"client",...f});Object.setPrototypeOf(this,fT.prototype)}}var HN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},NN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(B$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(A$0,f[F0]).n(F0));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},DN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(R$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"Changes","Changes",()=>fs0(f[zk],h)),f[hT]!=null)r.c(P.of(hT,String(f[hT])).n(hT));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},qN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(N$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[sT]!=null)r.c(pw0(f[sT],h).n(sT));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},kN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;$=c0;let r=new P(D$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"AddTags","AddTags",()=>Bs0(f[L$0],h)),r.lc(f,"RemoveTagKeys","RemoveTagKeys",()=>As0(f[Ur0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},yN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection");let $;$=c0;let r=new P(S$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(J$0,f[q0]).n(q0));if(f[o]!=null)r.c(P.of(V$0,f[o]).n(o));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},jN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck");let $;$=c0;let r=new P(X$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(x$0,f[q0]).n(q0));if(f[Qw]!=null)r.c(Es0(f[Qw],h).n(Qw));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},ON=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone");let $;$=c0;let r=new P(Y$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(k8,f[q0]).n(q0));if(f[rT]!=null)r.c(P.of(yf,f[rT]).n(rT));if(f[ET]!=null)r.c(Us0(f[ET],h).n(ET));if(f[o]!=null)r.c(P.of(Gf,f[o]).n(o));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},lN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/keysigningkey");let $;$=c0;let r=new P(M$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(k8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));if(f[xC]!=null)r.c(P.of(Ir0,f[xC]).n(xC));if(f[o]!=null)r.c(P.of(Cr0,f[o]).n(o));if(f[G1]!=null)r.c(P.of(Lr0,f[G1]).n(G1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},vN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/queryloggingconfig");let $;$=c0;let r=new P(P$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.cc(f,$T),f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/delegationset");let $;$=c0;let r=new P(H$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(k8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},mN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy");let $;$=c0;let r=new P(k$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(j8,f[F0]).n(F0));if(f[wh]!=null)r.c(P.of(Xk,f[wh]).n(wh));if(f[o]!=null)r.c(P.of(zr0,f[o]).n(o));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},dN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance");let $;$=c0;let r=new P(q$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));if(f[o]!=null)r.c(P.of(Gf,f[o]).n(o));if(f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},iN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(y$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(j8,f[F0]).n(F0));if(f[wh]!=null)r.c(P.of(Xk,f[wh]).n(wh));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},cN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(j$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},gN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},xN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},_N=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},nN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},eN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},aN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},oN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},pN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},uN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},tN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(l$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},fD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},hD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(b$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(v$0,f[F0]).n(F0));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},wD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},sD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/accountlimit/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1);let $;return w.m("GET").h(s).b($),w.build()},$D=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/change/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},rD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/checkeripranges");let $;return w.m("GET").h(s).b($),w.build()},ED=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},UD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocation");let $=Y({[Zr0]:[,f[qf]],[Jr0]:[,f[kf]],[lr0]:[,f[jf]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},TD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},FD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheckcount");let $;return w.m("GET").h(s).b($),w.build()},CD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},ID=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},LD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},AD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonecount");let $;return w.m("GET").h(s).b($),w.build()},BD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},GD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},WD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},zD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("DelegationSetId",()=>f.DelegationSetId,"{DelegationSetId}",!1);let $;return w.m("GET").h(s).b($),w.build()},RD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("GET").h(s).b($),w.build()},SD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},XD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstancecount");let $;return w.m("GET").h(s).b($),w.build()},YD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[Of]:[,f[U1]],[S$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},MD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection");let $=Y({[S$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},QD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[S$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},KD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocations");let $=Y({[vr0]:[,f[Tr0]],[br0]:[,f[Fr0]],[mr0]:[,f[Wr0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},ZD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck");let $=Y({[O8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},JD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone");let $=Y({[O8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[Vr0]:[,f[rT]],[Dr0]:[,f[e$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},VD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyname");let $=Y({[Pr0]:[,f[Gf]],[tr]:[,f[h0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},PD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyvpc");let $=Y({[gr0]:[,j(f[nr],"VPCId")],[_r0]:[,j(f[er],"VPCRegion")],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[S$]:[,f[k0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},HD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig");let $=Y({[tr]:[,f[h0]],[S$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},ND=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[kr0]:[,f[Br0]],[dr0]:[,f[Gr0]],[qr0]:[,f[Ar0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},DD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset");let $=Y({[O8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},qD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;return w.m("GET").h(s).b($),w.build()},kD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1);let $;$=c0;let r=new P(o$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"ResourceIds","ResourceIds",()=>Gs0(f[fr0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},yD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies");let $=Y({[ir0]:[,f[BT]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},jD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances");let $=Y({[tr]:[,f[vh]],[l8]:[,f[_1]],[v8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},OD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/hostedzone");let $=Y({[Yk]:[,j(f[h0],"HostedZoneId")],[l8]:[,f[_1]],[v8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},lD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");let $=Y({[Yk]:[,j(f[z$],"TrafficPolicyId")],[xr0]:[j(f.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>f[g1].toString()],[tr]:[,f[vh]],[l8]:[,f[_1]],[v8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},vD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies/{Id}/versions"),w.p("Id",()=>f.Id,"{Id}",!1);let $=Y({[cr0]:[,f[GT]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},bD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[S$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},mD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/testdnsanswer");let $=Y({[tr]:[,j(f[h0],"HostedZoneId")],[yr0]:[,j(f[IT],"RecordName")],[jr0]:[,j(f[LT],"RecordType")],[Or0]:[,f[t$0]],[Hr0]:[,f[m$0]],[Nr0]:[,f[d$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},dD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;$=c0;let r=new P(Xr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[Df]!=null)r.c(Uk(f[Df],h).n(Df));if(r.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>Tk(f[Lw],h)),f[Ff]!=null)r.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Cf]!=null)r.c(P.of(Cf,String(f[Cf])).n(Cf));if(f[If]!=null)r.c(P.of(If,String(f[If])).n(If));if(r.cc(f,mr),f[Gw]!=null)r.c(P.of(Gw,String(f[Gw])).n(Gw));if(f[Lf]!=null)r.c(P.of(Lf,String(f[Lf])).n(Lf));if(r.cc(f,bh),r.cc(f,cr),f[Af]!=null)r.c(P.of(Af,String(f[Af])).n(Af));if(f[Bf]!=null)r.c(P.of(Bf,String(f[Bf])).n(Bf));return r.lc(f,"Regions","Regions",()=>Fk(f[Aw],h)),r.lc(f,"ResetElements","ResetElements",()=>Ts0(f[u$0],h)),r.cc(f,gr),r.cc(f,_r),$+=r.toString(),w.m("POST").h(s).b($),w.build()},iD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Yr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(y8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},cD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;$=c0;let r=new P(Mr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(j8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},gD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Qr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},xD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},_D=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},nD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[I0]!=null)w[I0]=B(s[I0]);return w},eD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},aD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},oD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[qC]!=null)w[qC]=Qs0(s[qC],h);return w},pD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=ST(s[Wf],h);return w},uD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[M1]!=null)w[M1]=or(s[M1],h);if(s[V1]!=null)w[V1]=XT(s[V1],h);if(s[P0]!=null)w[P0]=q8(s[P0],h);return w},tD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[_C]!=null)w[_C]=Ak(s[_C],h);return w},fq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=N8(s[mh],h);return w},hq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);return w},wq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},sq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=YT(s[W1],h);return w},$q=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=B(s[h0]);if(s[P0]!=null)w[P0]=q8(s[P0],h);return w},Eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Fq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await A1.collectBody(f.body,h),w},Wq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Sq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=Ws0(s[sh],h);return w},Xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CheckerIpRanges==="")w[Qr]=[];else if(s[Qr]!=null&&s[Qr][zf]!=null)w[Qr]=Ss0(B0(s[Qr][zf]),h);return w},Mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.KeySigningKeys==="")w[Nr]=[];else if(s[Nr]!=null&&s[Nr][zf]!=null)w[Nr]=ns0(B0(s[Nr][zf]),h);if(s[G1]!=null)w[G1]=ks0(s[G1],h);return w},Qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[dr]!=null)w[dr]=Ck(s[dr],h);return w},Kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=ST(s[Wf],h);return w},Zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[iC]!=null)w[iC]=r1(s[iC]);return w},Jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Pf]=[];else if(s[Pf]!=null&&s[Pf][WT]!=null)w[Pf]=Ik(B0(s[Pf][WT]),h);return w},Vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Pf]=[];else if(s[Pf]!=null&&s[Pf][WT]!=null)w[Pf]=Ik(B0(s[Pf][WT]),h);return w},Pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);if(s[V1]!=null)w[V1]=XT(s[V1],h);if(s.VPCs==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][P0]!=null)w[Nf]=Wk(B0(s[Nf][P0]),h);return w},Hq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[cC]!=null)w[cC]=r1(s[cC]);return w},Nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=cs0(s[sh],h);return w},Dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=N8(s[mh],h);return w},qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);return w},kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=s$0(s[sh],h);return w},yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=YT(s[W1],h);return w},Oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[J8]!=null)w[J8]=M0(s[J8]);return w},lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrBlocks==="")w[Yr]=[];else if(s[Yr]!=null&&s[Yr][zf]!=null)w[Yr]=Ys0(B0(s[Yr][zf]),h);if(s[k0]!=null)w[k0]=B(s[k0]);return w},vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrCollections==="")w[Mr]=[];else if(s[Mr]!=null&&s[Mr][zf]!=null)w[Mr]=Js0(B0(s[Mr][zf]),h);if(s[k0]!=null)w[k0]=B(s[k0]);return w},bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrLocations==="")w[Kr]=[];else if(s[Kr]!=null&&s[Kr][zf]!=null)w[Kr]=es0(B0(s[Kr][zf]),h);if(s[k0]!=null)w[k0]=B(s[k0]);return w},mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.GeoLocationDetailsList==="")w[Vr]=[];else if(s[Vr]!=null&&s[Vr][dr]!=null)w[Vr]=Os0(B0(s[Vr][dr]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[pC]!=null)w[pC]=B(s[pC]);if(s[uC]!=null)w[uC]=B(s[uC]);if(s[$8]!=null)w[$8]=B(s[$8]);return w},dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthChecks==="")w[Pr]=[];else if(s[Pr]!=null&&s[Pr][Wf]!=null)w[Pr]=ds0(B0(s[Pr][Wf]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=B(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=B(s[$h]);return w},iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZones==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][V1]!=null)w[Hf]=Lk(B0(s[Hf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=B(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=B(s[$h]);return w},cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Gf]!=null)w[Gf]=B(s[Gf]);if(s[h0]!=null)w[h0]=B(s[h0]);if(s.HostedZones==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][V1]!=null)w[Hf]=Lk(B0(s[Hf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[tC]!=null)w[tC]=B(s[tC]);if(s[f8]!=null)w[f8]=B(s[f8]);return w},gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZoneSummaries==="")w[Hr]=[];else if(s[Hr]!=null&&s[Hr][KN]!=null)w[Hr]=xs0(B0(s[Hr][KN]),h);if(s[u]!=null)w[u]=M0(s[u]);if(s[k0]!=null)w[k0]=B(s[k0]);return w},xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[k0]!=null)w[k0]=B(s[k0]);if(s.QueryLoggingConfigs==="")w[qr]=[];else if(s[qr]!=null&&s[qr][mh]!=null)w[qr]=os0(B0(s[qr][mh]),h);return w},_q=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[h8]!=null)w[h8]=B(s[h8]);if(s[w8]!=null)w[w8]=B(s[w8]);if(s[s8]!=null)w[s8]=B(s[s8]);if(s.ResourceRecordSets==="")w[yr]=[];else if(s[yr]!=null&&s[yr][B$]!=null)w[yr]=h$0(B0(s[yr][B$]),h);return w},nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.DelegationSets==="")w[Zr]=[];else if(s[Zr]!=null&&s[Zr][M1]!=null)w[Zr]=Ns0(B0(s[Zr][M1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=B(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=B(s[$h]);return w},eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[xr]!=null)w[xr]=Gk(s[xr],h);return w},aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.ResourceTagSets==="")w[jr]=[];else if(s[jr]!=null&&s[jr][xr]!=null)w[jr]=w$0(B0(s[jr][xr]),h);return w},oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[BT]!=null)w[BT]=B(s[BT]);if(s.TrafficPolicySummaries==="")w[Or]=[];else if(s[Or]!=null&&s[Or][PN]!=null)w[Or]=T$0(B0(s[Or][PN]),h);return w},pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[vh]!=null)w[vh]=B(s[vh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=B(s[_1]);if(s[n1]!=null)w[n1]=B(s[n1]);if(s.TrafficPolicyInstances==="")w[B1]=[];else if(s[B1]!=null&&s[B1][W1]!=null)w[B1]=D8(B0(s[B1][W1]),h);return w},uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=B(s[_1]);if(s[n1]!=null)w[n1]=B(s[n1]);if(s.TrafficPolicyInstances==="")w[B1]=[];else if(s[B1]!=null&&s[B1][W1]!=null)w[B1]=D8(B0(s[B1][W1]),h);return w},tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[vh]!=null)w[vh]=B(s[vh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=B(s[_1]);if(s[n1]!=null)w[n1]=B(s[n1]);if(s.TrafficPolicyInstances==="")w[B1]=[];else if(s[B1]!=null&&s[B1][W1]!=null)w[B1]=D8(B0(s[B1][W1]),h);return w},fk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s.TrafficPolicies==="")w[lr]=[];else if(s[lr]!=null&&s[lr][Q1]!=null)w[lr]=U$0(B0(s[lr][Q1]),h);if(s[GT]!=null)w[GT]=B(s[GT]);return w},hk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=B(s[h0]);if(s[k0]!=null)w[k0]=B(s[k0]);if(s.VPCs==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][P0]!=null)w[Nf]=Wk(B0(s[Nf][P0]),h);return w},wk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[r8]!=null)w[r8]=B(s[r8]);if(s[L8]!=null)w[L8]=B(s[L8]);if(s.RecordData==="")w[kr]=[];else if(s[kr]!=null&&s[kr][JN]!=null)w[kr]=ps0(B0(s[kr][JN]),h);if(s[IT]!=null)w[IT]=B(s[IT]);if(s[LT]!=null)w[LT]=B(s[LT]);if(s[A8]!=null)w[A8]=B(s[A8]);return w},sk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=ST(s[Wf],h);return w},$k=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[V1]!=null)w[V1]=XT(s[V1],h);return w},rk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},Ek=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=YT(s[W1],h);return w},i=async(f,h)=>{let w={...f,body:await _.parseXmlErrorBody(f.body,h)},s=_.loadRestXmlErrorCode(f,w.body);switch(s){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await vh0(w,h);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await Ew0(w,h);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await Fw0(w,h);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await Tw0(w,h);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Iw0(w,h);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Pw0(w,h);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await bh0(w,h);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await Aw0(w,h);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Sw0(w,h);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Vw0(w,h);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await qw0(w,h);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await kw0(w,h);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await yw0(w,h);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await yh0(w,h);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await lh0(w,h);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Yw0(w,h);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await $w0(w,h);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Jw0(w,h);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Ow0(w,h);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await jh0(w,h);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await nh0(w,h);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await lw0(w,h);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await gh0(w,h);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await xh0(w,h);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await oh0(w,h);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await rw0(w,h);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Kw0(w,h);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await vw0(w,h);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await sw0(w,h);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await Uw0(w,h);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Bw0(w,h);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await bw0(w,h);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await ww0(w,h);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Qw0(w,h);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await jw0(w,h);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await dh0(w,h);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await ih0(w,h);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await uh0(w,h);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await Lw0(w,h);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await mw0(w,h);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await gw0(w,h);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await Nw0(w,h);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await dw0(w,h);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await xw0(w,h);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await iw0(w,h);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await cw0(w,h);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Gw0(w,h);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Ww0(w,h);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Oh0(w,h);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await eh0(w,h);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await ph0(w,h);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Hw0(w,h);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await ch0(w,h);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await _w0(w,h);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Dw0(w,h);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await nw0(w,h);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await _h0(w,h);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Rw0(w,h);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await ew0(w,h);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await fw0(w,h);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await zw0(w,h);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await Xw0(w,h);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Zw0(w,h);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await hw0(w,h);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await th0(w,h);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Mw0(w,h);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Cw0(w,h);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await ah0(w,h);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await mh0(w,h);default:let $=w.body;return kh0({output:f,parsedBody:$.Error,errorCode:s})}},kh0=Ts(m),yh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new t5({$metadata:Z(f),...w});return l($,f.body.Error)},jh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new rU({$metadata:Z(f),...w});return l($,f.body.Error)},Oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new yU({$metadata:Z(f),...w});return l($,f.body.Error)},lh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new fU({$metadata:Z(f),...w});return l($,f.body.Error)},vh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new m5({$metadata:Z(f),...w});return l($,f.body.Error)},bh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new _5({$metadata:Z(f),...w});return l($,f.body.Error)},mh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new fT({$metadata:Z(f),...w});return l($,f.body.Error)},dh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new YU({$metadata:Z(f),...w});return l($,f.body.Error)},ih0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new MU({$metadata:Z(f),...w});return l($,f.body.Error)},ch0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new vU({$metadata:Z(f),...w});return l($,f.body.Error)},gh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new TU({$metadata:Z(f),...w});return l($,f.body.Error)},xh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new FU({$metadata:Z(f),...w});return l($,f.body.Error)},_h0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new iU({$metadata:Z(f),...w});return l($,f.body.Error)},nh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new EU({$metadata:Z(f),...w});return l($,f.body.Error)},eh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new jU({$metadata:Z(f),...w});return l($,f.body.Error)},ah0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new tU({$metadata:Z(f),...w});return l($,f.body.Error)},oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new CU({$metadata:Z(f),...w});return l($,f.body.Error)},ph0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new OU({$metadata:Z(f),...w});return l($,f.body.Error)},uh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new QU({$metadata:Z(f),...w});return l($,f.body.Error)},th0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new oU({$metadata:Z(f),...w});return l($,f.body.Error)},fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new xU({$metadata:Z(f),...w});return l($,f.body.Error)},hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new aU({$metadata:Z(f),...w});return l($,f.body.Error)},ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new RU({$metadata:Z(f),...w});return l($,f.body.Error)},sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new BU({$metadata:Z(f),...w});return l($,f.body.Error)},$w0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);if(s.messages==="")w[br]=[];else if(s[br]!=null&&s[br][v0]!=null)w[br]=ys0(B0(s[br][v0]),h);let $=new wU({$metadata:Z(f),...w});return l($,f.body.Error)},rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new IU({$metadata:Z(f),...w});return l($,f.body.Error)},Ew0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new d5({$metadata:Z(f),...w});return l($,f.body.Error)},Uw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new GU({$metadata:Z(f),...w});return l($,f.body.Error)},Tw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new i5({$metadata:Z(f),...w});return l($,f.body.Error)},Fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new c5({$metadata:Z(f),...w});return l($,f.body.Error)},Cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new uU({$metadata:Z(f),...w});return l($,f.body.Error)},Iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new g5({$metadata:Z(f),...w});return l($,f.body.Error)},Lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new KU({$metadata:Z(f),...w});return l($,f.body.Error)},Aw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new n5({$metadata:Z(f),...w});return l($,f.body.Error)},Bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new WU({$metadata:Z(f),...w});return l($,f.body.Error)},Gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new qU({$metadata:Z(f),...w});return l($,f.body.Error)},Ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new kU({$metadata:Z(f),...w});return l($,f.body.Error)},zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new _U({$metadata:Z(f),...w});return l($,f.body.Error)},Rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new cU({$metadata:Z(f),...w});return l($,f.body.Error)},Sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new e5({$metadata:Z(f),...w});return l($,f.body.Error)},Xw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new nU({$metadata:Z(f),...w});return l($,f.body.Error)},Yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new hU({$metadata:Z(f),...w});return l($,f.body.Error)},Mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=B(s[v0]);let $=new pU({$metadata:Z(f),...w});return l($,f.body.Error)},Qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new SU({$metadata:Z(f),...w});return l($,f.body.Error)},Kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new LU({$metadata:Z(f),...w});return l($,f.body.Error)},Zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new eU({$metadata:Z(f),...w});return l($,f.body.Error)},Jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new sU({$metadata:Z(f),...w});return l($,f.body.Error)},Vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new a5({$metadata:Z(f),...w});return l($,f.body.Error)},Pw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new x5({$metadata:Z(f),...w});return l($,f.body.Error)},Hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new lU({$metadata:Z(f),...w});return l($,f.body.Error)},Nw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new VU({$metadata:Z(f),...w});return l($,f.body.Error)},Dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new mU({$metadata:Z(f),...w});return l($,f.body.Error)},qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new o5({$metadata:Z(f),...w});return l($,f.body.Error)},kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new p5({$metadata:Z(f),...w});return l($,f.body.Error)},yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new u5({$metadata:Z(f),...w});return l($,f.body.Error)},jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new XU({$metadata:Z(f),...w});return l($,f.body.Error)},Ow0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new $U({$metadata:Z(f),...w});return l($,f.body.Error)},lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new UU({$metadata:Z(f),...w});return l($,f.body.Error)},vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new AU({$metadata:Z(f),...w});return l($,f.body.Error)},bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new zU({$metadata:Z(f),...w});return l($,f.body.Error)},mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new ZU({$metadata:Z(f),...w});return l($,f.body.Error)},dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new PU({$metadata:Z(f),...w});return l($,f.body.Error)},iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new NU({$metadata:Z(f),...w});return l($,f.body.Error)},cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new DU({$metadata:Z(f),...w});return l($,f.body.Error)},gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new JU({$metadata:Z(f),...w});return l($,f.body.Error)},xw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new HU({$metadata:Z(f),...w});return l($,f.body.Error)},_w0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new bU({$metadata:Z(f),...w});return l($,f.body.Error)},nw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new dU({$metadata:Z(f),...w});return l($,f.body.Error)},ew0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=B(s[X]);let $=new gU({$metadata:Z(f),...w});return l($,f.body.Error)},Uk=(f,h)=>{let w=new P(Df);if(f[u0]!=null)w.c(P.of(O$0,f[u0]).n(u0));if(f[o]!=null)w.c(P.of(I$0,f[o]).n(o));return w},aw0=(f,h)=>{let w=new P(Rw);if(f[h0]!=null)w.c(P.of(yf,f[h0]).n(h0));if(w.cc(f,Gf),f[F$]!=null)w.c(P.of(C$0,String(f[F$])).n(F$));return w},ow0=(f,h)=>{let w=new P(Rk);if(f[E$]!=null)w.c(P.of(G$0,f[E$]).n(E$));if(f[B$]!=null)w.c(Is0(f[B$],h).n(B$));return w},pw0=(f,h)=>{let w=new P(sT);if(f[F0]!=null)w.c(P.of(y8,f[F0]).n(F0));return w.lc(f,"Changes","Changes",()=>uw0(f[zk],h)),w},uw0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return ow0(w,h).n(Rk)})},Tk=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(ir,w).n(H8)})},tw0=(f,h)=>{let w=new P(W$0);if(f[U1]!=null)w.c(P.of(K$0,f[U1]).n(U1));if(f[E$]!=null)w.c(P.of(z$0,f[E$]).n(E$));return w.lc(f,"CidrList","CidrList",()=>hs0(f[Z$0],h)),w},fs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return tw0(w,h).n(zf)})},hs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(MN,w).n(MN)})},ws0=(f,h)=>{let w=new P(Sw);if(f[T$]!=null)w.c(P.of(Kr0,f[T$]).n(T$));if(f[U1]!=null)w.c(P.of(Q$0,f[U1]).n(U1));return w},ss0=(f,h)=>{let w=new P(Xw);return w.cc(f,TT),w.cc(f,FT),w},$s0=(f,h)=>{let w=new P(Yw);if(f[qf]!=null)w.c(P.of(i$0,f[qf]).n(qf));if(f[kf]!=null)w.c(P.of(c$0,f[kf]).n(kf));if(f[jf]!=null)w.c(P.of(g$0,f[jf]).n(jf));return w},rs0=(f,h)=>{let w=new P(Mw);if(w.cc(f,wT),w.cc(f,UT),f[Xw]!=null)w.c(ss0(f[Xw],h).n(Xw));if(f[Bw]!=null)w.c(P.of(Bw,String(f[Bw])).n(Bw));return w},Es0=(f,h)=>{let w=new P(Qw);if(w.cc(f,bh),f[Bf]!=null)w.c(P.of(Bf,String(f[Bf])).n(Bf));if(f[Z0]!=null)w.c(P.of(n$0,f[Z0]).n(Z0));if(w.cc(f,gr),w.cc(f,mr),w.cc(f,_r),f[zw]!=null)w.c(P.of(zw,String(f[zw])).n(zw));if(f[If]!=null)w.c(P.of(If,String(f[If])).n(If));if(f[Ww]!=null)w.c(P.of(Ww,String(f[Ww])).n(Ww));if(f[Af]!=null)w.c(P.of(Af,String(f[Af])).n(Af));if(f[Ff]!=null)w.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Lf]!=null)w.c(P.of(Lf,String(f[Lf])).n(Lf));if(w.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>Tk(f[Lw],h)),f[Cf]!=null)w.c(P.of(Cf,String(f[Cf])).n(Cf));if(w.lc(f,"Regions","Regions",()=>Fk(f[Aw],h)),f[Df]!=null)w.c(Uk(f[Df],h).n(Df));return w.cc(f,cr),w.cc(f,CT),w},Fk=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(_$0,w).n(u0)})},Us0=(f,h)=>{let w=new P(ET);if(f[F0]!=null)w.c(P.of(y8,f[F0]).n(F0));if(f[A$]!=null)w.c(P.of(a$0,String(f[A$])).n(A$));return w},Ts0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(VN,w).n(VN)})},Fs0=(f,h)=>{let w=new P(zT);if(f[y0]!=null)w.c(P.of(p$0,f[y0]).n(y0));return w},Cs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return Fs0(w,h).n(zT)})},Is0=(f,h)=>{let w=new P(B$);if(f[o]!=null)w.c(P.of(Gf,f[o]).n(o));if(f[Z0]!=null)w.c(P.of(Er0,f[Z0]).n(Z0));if(f[G$]!=null)w.c(P.of(wr0,f[G$]).n(G$));if(f[R$]!=null)w.c(P.of(rr0,String(f[R$])).n(R$));if(f[u0]!=null)w.c(P.of($r0,f[u0]).n(u0));if(f[Yw]!=null)w.c($s0(f[Yw],h).n(Yw));if(f[C$]!=null)w.c(P.of(hr0,f[C$]).n(C$));if(f[L$]!=null)w.c(P.of(sr0,String(f[L$])).n(L$));if(f[p0]!=null)w.c(P.of(p0,String(f[p0])).n(p0));if(w.lc(f,"ResourceRecords","ResourceRecords",()=>Cs0(f[r$],h)),f[Rw]!=null)w.c(aw0(f[Rw],h).n(Rw));if(w.cc(f,ir),w.cc(f,AT),f[Sw]!=null)w.c(ws0(f[Sw],h).n(Sw));if(f[Mw]!=null)w.c(rs0(f[Mw],h).n(Mw));return w},Ls0=(f,h)=>{let w=new P(RT);if(f[Kw]!=null)w.c(P.of(Sk,f[Kw]).n(Kw));if(f[y0]!=null)w.c(P.of(Sr0,f[y0]).n(y0));return w},As0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Sk,w).n(Kw)})},Bs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return Ls0(w,h).n(RT)})},Gs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Rr0,w).n(yf)})},ar=(f,h)=>{let w=new P(P0);return w.cc(f,er),w.cc(f,nr),w},Ws0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},zs0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=B(f[u0]);if(f[o]!=null)w[o]=B(f[o]);return w},Rs0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=B(f[h0]);if(f[Gf]!=null)w[Gf]=B(f[Gf]);if(f[F$]!=null)w[F$]=e0(f[F$]);return w},e1=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[G1]!=null)w[G1]=B(f[G1]);if(f[W8]!=null)w[W8]=j(a$(f[W8]));if(f[F0]!=null)w[F0]=B(f[F0]);return w},Ss0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},Xs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},Ys0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ms0(w,h)})},Ms0=(f,h)=>{let w={};if(f[ZC]!=null)w[ZC]=B(f[ZC]);if(f[U1]!=null)w[U1]=B(f[U1]);return w},Qs0=(f,h)=>{let w={};if(f[U$]!=null)w[U$]=B(f[U$]);if(f[I0]!=null)w[I0]=B(f[I0]);if(f[o]!=null)w[o]=B(f[o]);if(f[rh]!=null)w[rh]=r1(f[rh]);return w},Ks0=(f,h)=>{let w={};if(f[T$]!=null)w[T$]=B(f[T$]);if(f[U1]!=null)w[U1]=B(f[U1]);return w},Zs0=(f,h)=>{let w={};if(f[mC]!=null)w[mC]=M0(f[mC]);if(f[P8]!=null)w[P8]=vX(f[P8]);if(f[HC]!=null)w[HC]=B(f[HC]);if(f[I8]!=null)w[I8]=M0(f[I8]);if(f[oC]!=null)w[oC]=B(f[oC]);if(f[E8]!=null)w[E8]=B(f[E8]);if(f[Q8]!=null)w[Q8]=B(f[Q8]);if(f.Dimensions==="")w[Jr]=[];else if(f[Jr]!=null&&f[Jr][QN]!=null)w[Jr]=qs0(B0(f[Jr][QN]),h);return w},Js0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Vs0(w,h)})},Vs0=(f,h)=>{let w={};if(f[U$]!=null)w[U$]=B(f[U$]);if(f[I0]!=null)w[I0]=B(f[I0]);if(f[o]!=null)w[o]=B(f[o]);if(f[rh]!=null)w[rh]=r1(f[rh]);return w},Ps0=(f,h)=>{let w={};if(f[TT]!=null)w[TT]=B(f[TT]);if(f[FT]!=null)w[FT]=B(f[FT]);return w},or=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[q0]!=null)w[q0]=B(f[q0]);if(f.NameServers==="")w[Dr]=[];else if(f[Dr]!=null&&f[Dr][ZN]!=null)w[Dr]=Hs0(B0(f[Dr][ZN]),h);return w},Hs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},Ns0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return or(w,h)})},Ds0=(f,h)=>{let w={};if(f[o]!=null)w[o]=B(f[o]);if(f[y0]!=null)w[y0]=B(f[y0]);return w},qs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ds0(w,h)})},ks0=(f,h)=>{let w={};if(f[M8]!=null)w[M8]=B(f[M8]);if(f[W$]!=null)w[W$]=B(f[W$]);return w},ys0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},js0=(f,h)=>{let w={};if(f[qf]!=null)w[qf]=B(f[qf]);if(f[kf]!=null)w[kf]=B(f[kf]);if(f[jf]!=null)w[jf]=B(f[jf]);return w},Ck=(f,h)=>{let w={};if(f[qf]!=null)w[qf]=B(f[qf]);if(f[VC]!=null)w[VC]=B(f[VC]);if(f[kf]!=null)w[kf]=B(f[kf]);if(f[PC]!=null)w[PC]=B(f[PC]);if(f[jf]!=null)w[jf]=B(f[jf]);if(f[S8]!=null)w[S8]=B(f[S8]);return w},Os0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ck(w,h)})},ls0=(f,h)=>{let w={};if(f[wT]!=null)w[wT]=B(f[wT]);if(f[UT]!=null)w[UT]=B(f[UT]);if(f[Xw]!=null)w[Xw]=Ps0(f[Xw],h);if(f[Bw]!=null)w[Bw]=M0(f[Bw]);return w},ST=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[q0]!=null)w[q0]=B(f[q0]);if(f[I$]!=null)w[I$]=Bk(f[I$],h);if(f[Qw]!=null)w[Qw]=vs0(f[Qw],h);if(f[Gw]!=null)w[Gw]=r1(f[Gw]);if(f[DC]!=null)w[DC]=Zs0(f[DC],h);return w},vs0=(f,h)=>{let w={};if(f[bh]!=null)w[bh]=B(f[bh]);if(f[Bf]!=null)w[Bf]=M0(f[Bf]);if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[gr]!=null)w[gr]=B(f[gr]);if(f[mr]!=null)w[mr]=B(f[mr]);if(f[_r]!=null)w[_r]=B(f[_r]);if(f[zw]!=null)w[zw]=M0(f[zw]);if(f[If]!=null)w[If]=M0(f[If]);if(f[Ww]!=null)w[Ww]=e0(f[Ww]);if(f[Af]!=null)w[Af]=e0(f[Af]);if(f[Ff]!=null)w[Ff]=e0(f[Ff]);if(f[Lf]!=null)w[Lf]=M0(f[Lf]);if(f.ChildHealthChecks==="")w[Lw]=[];else if(f[Lw]!=null&&f[Lw][H8]!=null)w[Lw]=Xs0(B0(f[Lw][H8]),h);if(f[Cf]!=null)w[Cf]=e0(f[Cf]);if(f.Regions==="")w[Aw]=[];else if(f[Aw]!=null&&f[Aw][u0]!=null)w[Aw]=ms0(B0(f[Aw][u0]),h);if(f[Df]!=null)w[Df]=zs0(f[Df],h);if(f[cr]!=null)w[cr]=B(f[cr]);if(f[CT]!=null)w[CT]=B(f[CT]);return w},bs0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=B(f[u0]);if(f[bh]!=null)w[bh]=B(f[bh]);if(f[Y8]!=null)w[Y8]=$$0(f[Y8],h);return w},Ik=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return bs0(w,h)})},ms0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},ds0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ST(w,h)})},XT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[o]!=null)w[o]=B(f[o]);if(f[q0]!=null)w[q0]=B(f[q0]);if(f[kC]!=null)w[kC]=is0(f[kC],h);if(f[B8]!=null)w[B8]=r1(f[B8]);if(f[I$]!=null)w[I$]=Bk(f[I$],h);return w},is0=(f,h)=>{let w={};if(f[F0]!=null)w[F0]=B(f[F0]);if(f[A$]!=null)w[A$]=e0(f[A$]);return w},cs0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},gs0=(f,h)=>{let w={};if(f[T8]!=null)w[T8]=B(f[T8]);if(f[F8]!=null)w[F8]=B(f[F8]);return w},Lk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return XT(w,h)})},xs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return _s0(w,h)})},_s0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=B(f[h0]);if(f[o]!=null)w[o]=B(f[o]);if(f[U8]!=null)w[U8]=gs0(f[U8],h);return w},Ak=(f,h)=>{let w={};if(f[o]!=null)w[o]=B(f[o]);if(f[gC]!=null)w[gC]=B(f[gC]);if(f[dC]!=null)w[dC]=M0(f[dC]);if(f[z8]!=null)w[z8]=B(f[z8]);if(f[R8]!=null)w[R8]=M0(f[R8]);if(f[yC]!=null)w[yC]=B(f[yC]);if(f[jC]!=null)w[jC]=M0(f[jC]);if(f[nC]!=null)w[nC]=M0(f[nC]);if(f[vC]!=null)w[vC]=B(f[vC]);if(f[C8]!=null)w[C8]=B(f[C8]);if(f[lC]!=null)w[lC]=B(f[lC]);if(f[OC]!=null)w[OC]=B(f[OC]);if(f[G1]!=null)w[G1]=B(f[G1]);if(f[W$]!=null)w[W$]=B(f[W$]);if(f[JC]!=null)w[JC]=j(a$(f[JC]));if(f[eC]!=null)w[eC]=j(a$(f[eC]));return w},ns0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ak(w,h)})},Bk=(f,h)=>{let w={};if(f[X8]!=null)w[X8]=B(f[X8]);if(f[bC]!=null)w[bC]=B(f[bC]);return w},es0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return as0(w,h)})},as0=(f,h)=>{let w={};if(f[U1]!=null)w[U1]=B(f[U1]);return w},N8=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[h0]!=null)w[h0]=B(f[h0]);if(f[$T]!=null)w[$T]=B(f[$T]);return w},os0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return N8(w,h)})},ps0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return B(w)})},us0=(f,h)=>{let w={};if(f[y0]!=null)w[y0]=B(f[y0]);return w},ts0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return us0(w,h)})},f$0=(f,h)=>{let w={};if(f[o]!=null)w[o]=B(f[o]);if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[G$]!=null)w[G$]=B(f[G$]);if(f[R$]!=null)w[R$]=r1(f[R$]);if(f[u0]!=null)w[u0]=B(f[u0]);if(f[Yw]!=null)w[Yw]=js0(f[Yw],h);if(f[C$]!=null)w[C$]=B(f[C$]);if(f[L$]!=null)w[L$]=e0(f[L$]);if(f[p0]!=null)w[p0]=r1(f[p0]);if(f.ResourceRecords==="")w[r$]=[];else if(f[r$]!=null&&f[r$][zT]!=null)w[r$]=ts0(B0(f[r$][zT]),h);if(f[Rw]!=null)w[Rw]=Rs0(f[Rw],h);if(f[ir]!=null)w[ir]=B(f[ir]);if(f[AT]!=null)w[AT]=B(f[AT]);if(f[Sw]!=null)w[Sw]=Ks0(f[Sw],h);if(f[Mw]!=null)w[Mw]=ls0(f[Mw],h);return w},h$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return f$0(w,h)})},Gk=(f,h)=>{let w={};if(f[G8]!=null)w[G8]=B(f[G8]);if(f[yf]!=null)w[yf]=B(f[yf]);if(f.Tags==="")w[vr]=[];else if(f[vr]!=null&&f[vr][RT]!=null)w[vr]=E$0(B0(f[vr][RT]),h);return w},w$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Gk(w,h)})},s$0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},$$0=(f,h)=>{let w={};if(f[G1]!=null)w[G1]=B(f[G1]);if(f[NC]!=null)w[NC]=j(a$(f[NC]));return w},r$0=(f,h)=>{let w={};if(f[Kw]!=null)w[Kw]=B(f[Kw]);if(f[y0]!=null)w[y0]=B(f[y0]);return w},E$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return r$0(w,h)})},U$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return pr(w,h)})},pr=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[rh]!=null)w[rh]=M0(f[rh]);if(f[o]!=null)w[o]=B(f[o]);if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[wh]!=null)w[wh]=B(f[wh]);if(f[F0]!=null)w[F0]=B(f[F0]);return w},YT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[h0]!=null)w[h0]=B(f[h0]);if(f[o]!=null)w[o]=B(f[o]);if(f[p0]!=null)w[p0]=r1(f[p0]);if(f[K8]!=null)w[K8]=B(f[K8]);if(f[v0]!=null)w[v0]=B(f[v0]);if(f[z$]!=null)w[z$]=B(f[z$]);if(f[g1]!=null)w[g1]=M0(f[g1]);if(f[V8]!=null)w[V8]=B(f[V8]);return w},D8=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return YT(w,h)})},T$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return F$0(w,h)})},F$0=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=B(f[I0]);if(f[o]!=null)w[o]=B(f[o]);if(f[Z0]!=null)w[Z0]=B(f[Z0]);if(f[aC]!=null)w[aC]=M0(f[aC]);if(f[Z8]!=null)w[Z8]=M0(f[Z8]);return w},q8=(f,h)=>{let w={};if(f[er]!=null)w[er]=B(f[er]);if(f[nr]!=null)w[nr]=B(f[nr]);return w},Wk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return q8(w,h)})},Z=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var E$="Action",C$0="AliasHealthEnabled",Df="AlarmIdentifier",I$0="AlarmName",L$0="AddTags",Rw="AliasTarget",A$0="AssociateVPCComment",B$0="AssociateVPCWithHostedZoneRequest",wT="AWSRegion",U$="Arn",Bw="Bias",F0="Comment",G$0="ChangeAction",sT="ChangeBatch",Yr="CidrBlocks",ZC="CidrBlock",qf="ContinentCode",W$0="CidrCollectionChange",z$0="CidrCollectionChangeAction",R$0="ChangeCidrCollectionRequest",S$0="CreateCidrCollectionRequest",Mr="CidrCollections",kf="CountryCode",JC="CreatedDate",Lw="ChildHealthChecks",X$0="CreateHealthCheckRequest",H8="ChildHealthCheck",Y$0="CreateHostedZoneRequest",$0="ChangeInfo",Qr="CheckerIpRanges",T$="CollectionId",M$0="CreateKeySigningKeyRequest",Kr="CidrLocations",Q$0="CidrLocationNameDefaultAllowed",K$0="CidrLocationNameDefaultNotAllowed",Z$0="CidrList",J$0="CidrNonce",V$0="CollectionName",VC="ContinentName",PC="CountryName",HC="ComparisonOperator",P$0="CreateQueryLoggingConfigRequest",q0="CallerReference",Sw="CidrRoutingConfig",H$0="CreateReusableDelegationSetRequest",N$0="ChangeResourceRecordSetsRequest",NC="CheckedTime",D$0="ChangeTagsForResourceRequest",q$0="CreateTrafficPolicyInstanceRequest",k$0="CreateTrafficPolicyRequest",y$0="CreateTrafficPolicyVersionRequest",hT="CollectionVersion",j$0="CreateVPCAssociationAuthorizationRequest",DC="CloudWatchAlarmConfiguration",$T="CloudWatchLogsLogGroupArn",O$0="CloudWatchRegion",zk="Changes",Rk="Change",MN="Cidr",qC="Collection",kC="Config",Xw="Coordinates",hh="Count",wh="Document",yC="DigestAlgorithmMnemonic",jC="DigestAlgorithmType",OC="DNSKEYRecord",Gf="DNSName",M1="DelegationSet",rT="DelegationSetId",lC="DSRecord",Zr="DelegationSets",vC="DigestValue",l$0="DeleteVPCAssociationAuthorizationRequest",v$0="DisassociateVPCComment",b$0="DisassociateVPCFromHostedZoneRequest",bC="Description",Ff="Disabled",Jr="Dimensions",QN="Dimension",m$0="EDNS0ClientSubnetIP",d$0="EDNS0ClientSubnetMask",mC="EvaluationPeriods",Cf="EnableSNI",F$="EvaluateTargetHealth",C$="Failover",mr="FullyQualifiedDomainName",If="FailureThreshold",dC="Flag",Yw="GeoLocation",i$0="GeoLocationContinentCode",c$0="GeoLocationCountryCode",dr="GeoLocationDetails",Vr="GeoLocationDetailsList",g$0="GeoLocationSubdivisionCode",Mw="GeoProximityLocation",Wf="HealthCheck",Qw="HealthCheckConfig",iC="HealthCheckCount",ir="HealthCheckId",x$0="HealthCheckNonce",Pf="HealthCheckObservations",WT="HealthCheckObservation",_$0="HealthCheckRegion",n$0="HealthCheckType",Gw="HealthCheckVersion",Pr="HealthChecks",Lf="HealthThreshold",V1="HostedZone",ET="HostedZoneConfig",cC="HostedZoneCount",h0="HostedZoneId",vh="HostedZoneIdMarker",Hr="HostedZoneSummaries",KN="HostedZoneSummary",e$0="HostedZoneType",Hf="HostedZones",Af="Inverted",cr="InsufficientDataHealthStatus",bh="IPAddress",a$0="IsPrivateZone",C0="IsTruncated",I0="Id",Kw="Key",gC="KmsArn",xC="KeyManagementServiceArn",_C="KeySigningKey",Nr="KeySigningKeys",nC="KeyTag",Eh="Location",eC="LastModifiedDate",U1="LocationName",I$="LinkedService",o$0="ListTagsForResourcesRequest",aC="LatestVersion",UT="LocalZoneGroup",TT="Latitude",sh="Limit",FT="Longitude",x1="Marker",u="MaxItems",Ww="MeasureLatency",oC="MetricName",ur="MaxResults",L$="MultiValueAnswer",v0="Message",o="Name",pC="NextContinentCode",uC="NextCountryCode",tC="NextDNSName",f8="NextHostedZoneId",$h="NextMarker",h8="NextRecordIdentifier",w8="NextRecordName",s8="NextRecordType",Dr="NameServers",$8="NextSubdivisionCode",ZN="NameServer",k0="NextToken",r8="Nameserver",E8="Namespace",k8="Nonce",U8="Owner",T8="OwningAccount",F8="OwningService",Bf="Port",C8="PublicKey",A$="PrivateZone",I8="Period",L8="Protocol",mh="QueryLoggingConfig",qr="QueryLoggingConfigs",Aw="Regions",A8="ResponseCode",CT="RoutingControlArn",y8="ResourceDescription",JN="RecordDataEntry",p$0="RData",kr="RecordData",u$0="ResetElements",VN="ResettableElementName",yf="ResourceId",t$0="ResolverIP",fr0="ResourceIds",zw="RequestInterval",IT="RecordName",gr="ResourcePath",zT="ResourceRecord",yr="ResourceRecordSets",B8="ResourceRecordSetCount",hr0="ResourceRecordSetFailover",wr0="ResourceRecordSetIdentifier",sr0="ResourceRecordSetMultiValueAnswer",$r0="ResourceRecordSetRegion",rr0="ResourceRecordSetWeight",B$="ResourceRecordSet",Er0="RRType",r$="ResourceRecords",LT="RecordType",Ur0="RemoveTagKeys",xr="ResourceTagSet",jr="ResourceTagSets",G8="ResourceType",u0="Region",G1="Status",W8="SubmittedAt",z8="SigningAlgorithmMnemonic",R8="SigningAlgorithmType",jf="SubdivisionCode",Tr0="StartContinentCode",Fr0="StartCountryCode",G$="SetIdentifier",Cr0="SigningKeyName",Ir0="SigningKeyString",Lr0="SigningKeyStatus",W$="StatusMessage",S8="SubdivisionName",X8="ServicePrincipal",Y8="StatusReport",Ar0="StartRecordIdentifier",Br0="StartRecordName",Gr0="StartRecordType",_r="SearchString",Wr0="StartSubdivisionCode",M8="ServeSignature",Q8="Statistic",K8="State",Z0="Type",Sk="TagKey",Q1="TrafficPolicy",j8="TrafficPolicyComment",Z8="TrafficPolicyCount",Xk="TrafficPolicyDocument",z$="TrafficPolicyId",J8="TrafficPolicyInstanceCount",AT="TrafficPolicyInstanceId",BT="TrafficPolicyIdMarker",_1="TrafficPolicyInstanceNameMarker",n1="TrafficPolicyInstanceTypeMarker",W1="TrafficPolicyInstance",B1="TrafficPolicyInstances",zr0="TrafficPolicyName",Or="TrafficPolicySummaries",PN="TrafficPolicySummary",V8="TrafficPolicyType",g1="TrafficPolicyVersion",GT="TrafficPolicyVersionMarker",lr="TrafficPolicies",Rr0="TagResourceId",p0="TTL",Sr0="TagValue",RT="Tag",vr="Tags",P8="Threshold",Xr0="UpdateHealthCheckRequest",Yr0="UpdateHostedZoneCommentRequest",Mr0="UpdateTrafficPolicyCommentRequest",Qr0="UpdateTrafficPolicyInstanceRequest",Kr0="UUID",y0="Value",P0="VPC",nr="VPCId",er="VPCRegion",Nf="VPCs",rh="Version",R$="Weight",Zr0="continentcode",Jr0="countrycode",Vr0="delegationsetid",Pr0="dnsname",Hr0="edns0clientsubnetip",Nr0="edns0clientsubnetmask",Dr0="hostedzonetype",tr="hostedzoneid",qr0="identifier",Yk="id",Of="location",f4="maxresults",a1="maxitems",O8="marker",zf="member",X="message",br="messages",S$="nexttoken",kr0="name",yr0="recordname",jr0="recordtype",Or0="resolverip",lr0="subdivisioncode",vr0="startcontinentcode",br0="startcountrycode",mr0="startsubdivisioncode",dr0="type",ir0="trafficpolicyid",l8="trafficpolicyinstancename",v8="trafficpolicyinstancetype",cr0="trafficpolicyversion",gr0="vpcid",c0='<?xml version="1.0" encoding="UTF-8"?>',xr0="version",_r0="vpcregion";class b8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(HN).de(xD).build(){}D();k();J();class m8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(NN).de(_D).build(){}D();k();J();class d8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(DN).de(nD).build(){}D();k();J();class i8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),SN(w),O(w)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(qN).de(eD).build(){}D();k();J();class c8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(kN).de(aD).build(){}D();k();J();class g8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(yN).de(oD).build(){}D();k();J();class x8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(jN).de(pD).build(){}D();k();J();class _8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(ON).de(uD).build(){}D();k();J();class n8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(lN).de(tD).build(){}D();k();J();class e8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(vN).de(fq).build(){}D();k();J();class a8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(bN).de(hq).build(){}D();k();J();class o8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(mN).de(wq).build(){}D();k();J();class p8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(dN).de(sq).build(){}D();k();J();class u8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(iN).de($q).build(){}D();k();J();class t8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(cN).de(rq).build(){}D();k();J();class fI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(gN).de(Eq).build(){}D();k();J();class hI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(xN).de(Uq).build(){}D();k();J();class wI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(_N).de(Tq).build(){}D();k();J();class sI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(nN).de(Fq).build(){}D();k();J();class $I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(eN).de(Cq).build(){}D();k();J();class rI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(aN).de(Iq).build(){}D();k();J();class EI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(oN).de(Lq).build(){}D();k();J();class UI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(pN).de(Aq).build(){}D();k();J();class TI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(uN).de(Bq).build(){}D();k();J();class FI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(tN).de(Gq).build(){}D();k();J();class CI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(fD).de(Wq).build(){}D();k();J();class II extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(hD).de(zq).build(){}D();k();J();class LI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(wD).de(Rq).build(){}D();k();J();class AI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(sD).de(Sq).build(){}D();k();J();class BI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser($D).de(Xq).build(){}D();k();J();class GI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(rD).de(Yq).build(){}D();k();J();class WI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(ED).de(Mq).build(){}D();k();J();class zI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(UD).de(Qq).build(){}D();k();J();class RI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(TD).de(Kq).build(){}D();k();J();class SI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(FD).de(Zq).build(){}D();k();J();class XI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(CD).de(Jq).build(){}D();k();J();class YI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(ID).de(Vq).build(){}D();k();J();class MI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(LD).de(Pq).build(){}D();k();J();class QI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(AD).de(Hq).build(){}D();k();J();class KI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(BD).de(Nq).build(){}D();k();J();class ZI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(GD).de(Dq).build(){}D();k();J();class JI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(WD).de(qq).build(){}D();k();J();class VI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(zD).de(kq).build(){}D();k();J();class PI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(RD).de(yq).build(){}D();k();J();class HI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(SD).de(jq).build(){}D();k();J();class NI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(XD).de(Oq).build(){}D();k();J();class DI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(YD).de(lq).build(){}D();k();J();class qI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(MD).de(vq).build(){}D();k();J();class kI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(QD).de(bq).build(){}D();k();J();class yI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(KD).de(mq).build(){}D();k();J();class jI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(ZD).de(dq).build(){}D();k();J();class OI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(VD).de(cq).build(){}D();k();J();class lI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(PD).de(gq).build(){}D();k();J();class vI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(JD).de(iq).build(){}D();k();J();class bI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(HD).de(xq).build(){}D();k();J();class mI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(ND).de(_q).build(){}D();k();J();class dI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(DD).de(nq).build(){}D();k();J();class iI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(qD).de(eq).build(){}D();k();J();class cI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(kD).de(aq).build(){}D();k();J();class gI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(yD).de(oq).build(){}D();k();J();class xI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(OD).de(uq).build(){}D();k();J();class _I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(lD).de(tq).build(){}D();k();J();class nI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(jD).de(pq).build(){}D();k();J();class eI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(vD).de(fk).build(){}D();k();J();class aI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(bD).de(hk).build(){}D();k();J();class oI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(mD).de(wk).build(){}D();k();J();class pI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(dD).de(sk).build(){}D();k();J();class uI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(iD).de($k).build(){}D();k();J();class tI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(cD).de(rk).build(){}D();k();J();class fL extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(gD).de(Ek).build(){}var nr0={ActivateKeySigningKeyCommand:b8,AssociateVPCWithHostedZoneCommand:m8,ChangeCidrCollectionCommand:d8,ChangeResourceRecordSetsCommand:i8,ChangeTagsForResourceCommand:c8,CreateCidrCollectionCommand:g8,CreateHealthCheckCommand:x8,CreateHostedZoneCommand:_8,CreateKeySigningKeyCommand:n8,CreateQueryLoggingConfigCommand:e8,CreateReusableDelegationSetCommand:a8,CreateTrafficPolicyCommand:o8,CreateTrafficPolicyInstanceCommand:p8,CreateTrafficPolicyVersionCommand:u8,CreateVPCAssociationAuthorizationCommand:t8,DeactivateKeySigningKeyCommand:fI,DeleteCidrCollectionCommand:hI,DeleteHealthCheckCommand:wI,DeleteHostedZoneCommand:sI,DeleteKeySigningKeyCommand:$I,DeleteQueryLoggingConfigCommand:rI,DeleteReusableDelegationSetCommand:EI,DeleteTrafficPolicyCommand:UI,DeleteTrafficPolicyInstanceCommand:TI,DeleteVPCAssociationAuthorizationCommand:FI,DisableHostedZoneDNSSECCommand:CI,DisassociateVPCFromHostedZoneCommand:II,EnableHostedZoneDNSSECCommand:LI,GetAccountLimitCommand:AI,GetChangeCommand:BI,GetCheckerIpRangesCommand:GI,GetDNSSECCommand:WI,GetGeoLocationCommand:zI,GetHealthCheckCommand:RI,GetHealthCheckCountCommand:SI,GetHealthCheckLastFailureReasonCommand:XI,GetHealthCheckStatusCommand:YI,GetHostedZoneCommand:MI,GetHostedZoneCountCommand:QI,GetHostedZoneLimitCommand:KI,GetQueryLoggingConfigCommand:ZI,GetReusableDelegationSetCommand:JI,GetReusableDelegationSetLimitCommand:VI,GetTrafficPolicyCommand:PI,GetTrafficPolicyInstanceCommand:HI,GetTrafficPolicyInstanceCountCommand:NI,ListCidrBlocksCommand:DI,ListCidrCollectionsCommand:qI,ListCidrLocationsCommand:kI,ListGeoLocationsCommand:yI,ListHealthChecksCommand:jI,ListHostedZonesCommand:vI,ListHostedZonesByNameCommand:OI,ListHostedZonesByVPCCommand:lI,ListQueryLoggingConfigsCommand:bI,ListResourceRecordSetsCommand:mI,ListReusableDelegationSetsCommand:dI,ListTagsForResourceCommand:iI,ListTagsForResourcesCommand:cI,ListTrafficPoliciesCommand:gI,ListTrafficPolicyInstancesCommand:nI,ListTrafficPolicyInstancesByHostedZoneCommand:xI,ListTrafficPolicyInstancesByPolicyCommand:_I,ListTrafficPolicyVersionsCommand:eI,ListVPCAssociationAuthorizationsCommand:aI,TestDNSAnswerCommand:oI,UpdateHealthCheckCommand:pI,UpdateHostedZoneCommentCommand:uI,UpdateTrafficPolicyCommentCommand:tI,UpdateTrafficPolicyInstanceCommand:fL};class dh extends QC{}Es(nr0,dh);E4();U4();T4();m$();Yh();var X$=p(m0(),1);$E();D();$w();J();var Mk=p(O0(),1);cf();var Qk=async(f,h,w)=>{return{operation:Sh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function er0(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var Kk=(f)=>{let h=[];switch(f.operation){default:h.push(er0(f))}return h},Zk=(f)=>{return{...Mk.resolveAwsSdkSigV4Config(f)}};var Jk=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},c={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Vk={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.750.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/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 ik=p(O0(),1);W5();Yh();z5();$w();Kh();wr();R5();wf();var mk=p(O0(),1);J();pw();S5();bs();N$();df();var Pk={["required"]:!1,type:"String"},Hk={["required"]:!0,default:!1,type:"Boolean"},Nk={["ref"]:"Endpoint"},Ok={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},lk={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},lf={},Dk={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},qk={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},kk=[Ok],yk=[lk],jk=[{["ref"]:"Region"}],or0={version:"1.0",parameters:{Region:Pk,UseDualStack:Hk,UseFIPS:Hk,Endpoint:Pk},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Nk]}],rules:[{conditions:kk,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:yk,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Nk,properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:jk}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:jk,assign:"PartitionResult"}],rules:[{conditions:[Ok,lk],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Dk]},qk],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:kk,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Dk,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:yk,rules:[{conditions:[qk],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:lf,headers:lf},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:lf,headers:lf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},vk=or0;var pr0=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),bk=(f,h={})=>{return pr0.get(f,()=>xh(vk,{endpointParams:f,logger:h.logger}))};t1.aws=_h;var dk=(f)=>{return{apiVersion:"2014-05-15",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??bk,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Kk,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new mk.AwsSdkSigV4Signer}],logger:f?.logger??new _f,serviceId:f?.serviceId??"Route 53 Domains",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};J();X5();J();var ck=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=dk(f);ik.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??O5,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:Vk.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Xh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};Y5();F1();J();var gk=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},xk=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var MT=(f)=>f,_k=(f,h)=>{let w={...MT(gs(f)),...MT(Is(f)),...MT(Zw(f)),...MT(gk(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),...xk(w)}};class hL extends ww{config;constructor(...[f]){let h=ck(f||{}),w=Jk(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),U=uw(E),T=Zk(U),F=_k(T,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(Bs(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(X$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Qk,identityProviderConfigProvider:async(C)=>new X$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(X$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();D();k();J();J();J();class o1 extends $f{constructor(f){super(f);Object.setPrototypeOf(this,o1.prototype)}}class QT extends o1{name="DomainLimitExceeded";$fault="client";constructor(f){super({name:"DomainLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,QT.prototype)}}class KT extends o1{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,KT.prototype)}}class ZT extends o1{name="OperationLimitExceeded";$fault="client";constructor(f){super({name:"OperationLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,ZT.prototype)}}class JT extends o1{name="UnsupportedTLD";$fault="client";constructor(f){super({name:"UnsupportedTLD",$fault:"client",...f});Object.setPrototypeOf(this,JT.prototype)}}class VT extends o1{name="DnssecLimitExceeded";$fault="client";constructor(f){super({name:"DnssecLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,VT.prototype)}}class PT extends o1{name="DuplicateRequest";$fault="client";requestId;constructor(f){super({name:"DuplicateRequest",$fault:"client",...f});Object.setPrototypeOf(this,PT.prototype),this.requestId=f.requestId}}class HT extends o1{name="TLDRulesViolation";$fault="client";constructor(f){super({name:"TLDRulesViolation",$fault:"client",...f});Object.setPrototypeOf(this,HT.prototype)}}var nk=(f)=>({...f,...f.Password&&{Password:T0}}),ek=(f)=>({...f,...f.AuthCode&&{AuthCode:T0}});var ak=(f)=>({...f,...f.AdminContact&&{AdminContact:T0},...f.RegistrantContact&&{RegistrantContact:T0},...f.TechContact&&{TechContact:T0},...f.AbuseContactEmail&&{AbuseContactEmail:T0},...f.AbuseContactPhone&&{AbuseContactPhone:T0},...f.BillingContact&&{BillingContact:T0}}),ok=(f)=>({...f,...f.AdminContact&&{AdminContact:T0},...f.RegistrantContact&&{RegistrantContact:T0},...f.TechContact&&{TechContact:T0},...f.BillingContact&&{BillingContact:T0}}),pk=(f)=>({...f,...f.emailAddress&&{emailAddress:T0}}),uk=(f)=>({...f,...f.AuthCode&&{AuthCode:T0}}),tk=(f)=>({...f,...f.AuthCode&&{AuthCode:T0},...f.AdminContact&&{AdminContact:T0},...f.RegistrantContact&&{RegistrantContact:T0},...f.TechContact&&{TechContact:T0},...f.BillingContact&&{BillingContact:T0}}),fy=(f)=>({...f,...f.Password&&{Password:T0}}),hy=(f)=>({...f,...f.AdminContact&&{AdminContact:T0},...f.RegistrantContact&&{RegistrantContact:T0},...f.TechContact&&{TechContact:T0},...f.BillingContact&&{BillingContact:T0}}),wy=(f)=>({...f,...f.FIAuthKey&&{FIAuthKey:T0}});var s0=p(O0(),1);F1();J();var sy=async(f,h)=>{let w=U0("AcceptDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},$y=async(f,h)=>{let w=U0("AssociateDelegationSignerToDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},ry=async(f,h)=>{let w=U0("CancelDomainTransferToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ey=async(f,h)=>{let w=U0("CheckDomainAvailability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Uy=async(f,h)=>{let w=U0("CheckDomainTransferability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ty=async(f,h)=>{let w=U0("DeleteDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Fy=async(f,h)=>{let w=U0("DeleteTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Cy=async(f,h)=>{let w=U0("DisableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Iy=async(f,h)=>{let w=U0("DisableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ly=async(f,h)=>{let w=U0("DisassociateDelegationSignerFromDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ay=async(f,h)=>{let w=U0("EnableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},By=async(f,h)=>{let w=U0("EnableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Gy=async(f,h)=>{let w=U0("GetContactReachabilityStatus"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Wy=async(f,h)=>{let w=U0("GetDomainDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},zy=async(f,h)=>{let w=U0("GetDomainSuggestions"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ry=async(f,h)=>{let w=U0("GetOperationDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Sy=async(f,h)=>{let w=U0("ListDomains"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Xy=async(f,h)=>{let w=U0("ListOperations"),s;return s=JSON.stringify(E40(f,h)),E0(h,w,"/",void 0,s)},Yy=async(f,h)=>{let w=U0("ListPrices"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},My=async(f,h)=>{let w=U0("ListTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Qy=async(f,h)=>{let w=U0("PushDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ky=async(f,h)=>{let w=U0("RegisterDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Zy=async(f,h)=>{let w=U0("RejectDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Jy=async(f,h)=>{let w=U0("RenewDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Vy=async(f,h)=>{let w=U0("ResendContactReachabilityEmail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Py=async(f,h)=>{let w=U0("ResendOperationAuthorization"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Hy=async(f,h)=>{let w=U0("RetrieveDomainAuthCode"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ny=async(f,h)=>{let w=U0("TransferDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Dy=async(f,h)=>{let w=U0("TransferDomainToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},qy=async(f,h)=>{let w=U0("UpdateDomainContact"),s;return s=JSON.stringify(U40(f,h)),E0(h,w,"/",void 0,s)},ky=async(f,h)=>{let w=U0("UpdateDomainContactPrivacy"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},yy=async(f,h)=>{let w=U0("UpdateDomainNameservers"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},jy=async(f,h)=>{let w=U0("UpdateTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Oy=async(f,h)=>{let w=U0("ViewBilling"),s;return s=JSON.stringify(T40(f,h)),E0(h,w,"/",void 0,s)},ly=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},vy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},by=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},my=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},dy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},iy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},cy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},gy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},xy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},_y=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ny=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ey=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ay=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},oy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=G40(w,h),{$metadata:f0(f),...s}},py=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},uy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=W40(w,h),{$metadata:f0(f),...s}},ty=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=z40(w,h),{$metadata:f0(f),...s}},fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=R40(w,h),{$metadata:f0(f),...s}},hj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=S40(w,h),{$metadata:f0(f),...s}},wj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},sj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await A1.collectBody(f.body,h),{$metadata:f0(f)}},$j=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},rj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ej=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Uj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Tj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await A1.collectBody(f.body,h),{$metadata:f0(f)}},Fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Cj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ij=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Lj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Aj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Bj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Gj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Wj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=M40(w,h),{$metadata:f0(f),...s}},r0=async(f,h)=>{let w={...f,body:await s0.parseJsonErrorBody(f.body,h)},s=s0.loadRestJsonErrorCode(f,w.body);switch(s){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await tr0(w,h);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await h40(w,h);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await w40(w,h);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await $40(w,h);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await ur0(w,h);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await f40(w,h);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await s40(w,h);default:let $=w.body;return Q40({output:f,parsedBody:$,errorCode:s})}},ur0=async(f,h)=>{let w=f.body,s=v(w),$=new VT({$metadata:f0(f),...s});return l($,w)},tr0=async(f,h)=>{let w=f.body,s=v(w),$=new QT({$metadata:f0(f),...s});return l($,w)},f40=async(f,h)=>{let w=f.body,s=v(w),$=new PT({$metadata:f0(f),...s});return l($,w)},h40=async(f,h)=>{let w=f.body,s=v(w),$=new KT({$metadata:f0(f),...s});return l($,w)},w40=async(f,h)=>{let w=f.body,s=v(w),$=new ZT({$metadata:f0(f),...s});return l($,w)},s40=async(f,h)=>{let w=f.body,s=v(w),$=new HT({$metadata:f0(f),...s});return l($,w)},$40=async(f,h)=>{let w=f.body,s=v(w),$=new JT({$metadata:f0(f),...s});return l($,w)},r40=(f,h)=>{return N0(f,{Currency:[],MaxPrice:sY})},E40=(f,h)=>{return N0(f,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:v,SubmittedSince:(w)=>w.getTime()/1000,Type:v})},U40=(f,h)=>{return N0(f,{AdminContact:v,BillingContact:v,Consent:(w)=>r40(w,h),DomainName:[],RegistrantContact:v,TechContact:v})},T40=(f,h)=>{return N0(f,{End:(w)=>w.getTime()/1000,Marker:[],MaxItems:[],Start:(w)=>w.getTime()/1000})},F40=(f,h)=>{return N0(f,{BillDate:(w)=>j(Qf(X1(w))),DomainName:B,InvoiceId:B,Operation:B,Price:vF})},C40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return F40(s,h)})},I40=(f,h)=>{return N0(f,{ChangeOwnershipPrice:(w)=>h4(w,h),Name:B,RegistrationPrice:(w)=>h4(w,h),RenewalPrice:(w)=>h4(w,h),RestorationPrice:(w)=>h4(w,h),TransferPrice:(w)=>h4(w,h)})},L40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return I40(s,h)})},A40=(f,h)=>{return N0(f,{AutoRenew:Vh,DomainName:B,Expiry:(w)=>j(Qf(X1(w))),TransferLock:Vh})},B40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return A40(s,h)})},G40=(f,h)=>{return N0(f,{AbuseContactEmail:B,AbuseContactPhone:B,AdminContact:v,AdminPrivacy:Vh,AutoRenew:Vh,BillingContact:v,BillingPrivacy:Vh,CreationDate:(w)=>j(Qf(X1(w))),DnsSec:B,DnssecKeys:v,DomainName:B,ExpirationDate:(w)=>j(Qf(X1(w))),Nameservers:v,RegistrantContact:v,RegistrantPrivacy:Vh,RegistrarName:B,RegistrarUrl:B,RegistryDomainId:B,Reseller:B,StatusList:v,TechContact:v,TechPrivacy:Vh,UpdatedDate:(w)=>j(Qf(X1(w))),WhoIsServer:B})},W40=(f,h)=>{return N0(f,{DomainName:B,LastUpdatedDate:(w)=>j(Qf(X1(w))),Message:B,OperationId:B,Status:B,StatusFlag:B,SubmittedDate:(w)=>j(Qf(X1(w))),Type:B})},z40=(f,h)=>{return N0(f,{Domains:(w)=>B40(w,h),NextPageMarker:B})},R40=(f,h)=>{return N0(f,{NextPageMarker:B,Operations:(w)=>Y40(w,h)})},S40=(f,h)=>{return N0(f,{NextPageMarker:B,Prices:(w)=>L40(w,h)})},X40=(f,h)=>{return N0(f,{DomainName:B,LastUpdatedDate:(w)=>j(Qf(X1(w))),Message:B,OperationId:B,Status:B,StatusFlag:B,SubmittedDate:(w)=>j(Qf(X1(w))),Type:B})},Y40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return X40(s,h)})},h4=(f,h)=>{return N0(f,{Currency:B,Price:vF})},M40=(f,h)=>{return N0(f,{BillingRecords:(w)=>C40(w,h),NextPageMarker:B})},f0=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var Q40=Ts(o1),E0=async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:U,path:T}=await f.endpoint(),F={protocol:E,hostname:r,port:U,method:"POST",path:T.endsWith("/")?T.slice(0,-1)+w:T+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new n0(F)};function U0(f){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${f}`}}class wL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(nk,void 0).ser(sy).de(ly).build(){}D();k();J();class sL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser($y).de(vy).build(){}D();k();J();class $L extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(ry).de(by).build(){}D();k();J();class rL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(Ey).de(my).build(){}D();k();J();class EL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(ek,void 0).ser(Uy).de(dy).build(){}D();k();J();class UL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(Ty).de(iy).build(){}D();k();J();class TL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(Fy).de(cy).build(){}D();k();J();class FL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(Cy).de(gy).build(){}D();k();J();class CL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(Iy).de(xy).build(){}D();k();J();class IL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(Ly).de(_y).build(){}D();k();J();class LL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(Ay).de(ny).build(){}D();k();J();class AL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(By).de(ey).build(){}D();k();J();class BL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(Gy).de(ay).build(){}D();k();J();class GL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,ak).ser(Wy).de(oy).build(){}D();k();J();class WL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(zy).de(py).build(){}D();k();J();class zL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(Ry).de(uy).build(){}D();k();J();class RL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(Sy).de(ty).build(){}D();k();J();class SL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(Xy).de(fj).build(){}D();k();J();class XL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(Yy).de(hj).build(){}D();k();J();class YL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(My).de(wj).build(){}D();k();J();class ML extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(Qy).de(sj).build(){}D();k();J();class QL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(ok,void 0).ser(Ky).de($j).build(){}D();k();J();class KL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(Zy).de(rj).build(){}D();k();J();class ZL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(Jy).de(Ej).build(){}D();k();J();class JL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,pk).ser(Vy).de(Uj).build(){}D();k();J();class VL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(Py).de(Tj).build(){}D();k();J();class PL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,uk).ser(Hy).de(Fj).build(){}D();k();J();class HL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(tk,void 0).ser(Ny).de(Cj).build(){}D();k();J();class NL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,fy).ser(Dy).de(Ij).build(){}D();k();J();class DL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(hy,void 0).ser(qy).de(Lj).build(){}D();k();J();class qL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(ky).de(Aj).build(){}D();k();J();class kL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(wy,void 0).ser(yy).de(Bj).build(){}D();k();J();class yL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(jy).de(Gj).build(){}D();k();J();class jL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(Oy).de(Wj).build(){}var K40={AcceptDomainTransferFromAnotherAwsAccountCommand:wL,AssociateDelegationSignerToDomainCommand:sL,CancelDomainTransferToAnotherAwsAccountCommand:$L,CheckDomainAvailabilityCommand:rL,CheckDomainTransferabilityCommand:EL,DeleteDomainCommand:UL,DeleteTagsForDomainCommand:TL,DisableDomainAutoRenewCommand:FL,DisableDomainTransferLockCommand:CL,DisassociateDelegationSignerFromDomainCommand:IL,EnableDomainAutoRenewCommand:LL,EnableDomainTransferLockCommand:AL,GetContactReachabilityStatusCommand:BL,GetDomainDetailCommand:GL,GetDomainSuggestionsCommand:WL,GetOperationDetailCommand:zL,ListDomainsCommand:RL,ListOperationsCommand:SL,ListPricesCommand:XL,ListTagsForDomainCommand:YL,PushDomainCommand:ML,RegisterDomainCommand:QL,RejectDomainTransferFromAnotherAwsAccountCommand:KL,RenewDomainCommand:ZL,ResendContactReachabilityEmailCommand:JL,ResendOperationAuthorizationCommand:VL,RetrieveDomainAuthCodeCommand:PL,TransferDomainCommand:HL,TransferDomainToAnotherAwsAccountCommand:NL,UpdateDomainContactCommand:DL,UpdateDomainContactPrivacyCommand:qL,UpdateDomainNameserversCommand:kL,UpdateTagsForDomainCommand:yL,ViewBillingCommand:jL};class w4 extends hL{}Es(K40,w4);import{runAction as Z40}from"@stacksjs/actions";import{config as Rj}from"@stacksjs/config";import{Action as J40}from"@stacksjs/enums";import{err as Uh,handleError as vf,ok as Y$}from"@stacksjs/error-handling";import{log as P1}from"@stacksjs/logging";import{path as V40}from"@stacksjs/path";import{fs as zj}from"@stacksjs/storage";async function VO0(f){let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Uh(vf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Uh(vf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Uh(vf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return await h.deleteHostedZone({Id:s.Id}),P1.info(`Deleted Hosted Zone for domain: ${f}`),Y$("success")}async function PO0(f){let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Uh(vf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Uh(vf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Uh(vf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return P1.info(`Deleted DNS records for domain: ${f}`),Y$("success")}async function HO0(f){let h=new dh,s=(await h.listHostedZonesByName({DNSName:f})).HostedZones?.find((r)=>r.Name===`${f}.`);if(s)return Y$(s);let $=await h.createHostedZone({Name:f,CallerReference:`${Date.now()}`});if(!$.HostedZone)return Uh(vf("Failed to create hosted zone"));return Y$($)}function P40(f){try{let h=V40.projectConfigPath("dns.ts"),s=zj.readFileSync(h,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${f.map(($)=>`'${$}'`).join(", ")}]`);zj.writeFileSync(h,s,"utf-8"),P1.info("Nameservers have been set.")}catch(h){console.error("Error updating nameservers:",h)}}async function NO0(f){try{let h=new dh,{HostedZones:w}=await h.listHostedZonesByName({DNSName:f});if(!w)return Uh(vf(`No hosted zones found for domain ${f}`));let s=w[0];if(s&&s.Name===`${f}.`)return Y$(s.Id);return Y$(null)}catch(h){return Uh(vf(`Failed to find hosted zone for domain ${f}`,h))}}async function H40(f){if(P1.debug("Getting nameservers for domain:",f),!f)return[];try{return(await new w4().getDomainDetail({DomainName:f}))?.Nameservers?.map((s)=>s.Name)||[]}catch(h){vf("Error getting domain detail",h)}}async function N40(f,h){if(!h)h=Rj.app.url;let w=await H40(h);if(w&&f&&JSON.stringify(w.sort())!==JSON.stringify(f.sort()))return P1.info("Updating your domain nameservers to match the ones in your hosted zone..."),P1.debug("Hosted zone nameservers:",f),P1.debug("Domain nameservers:",w),await new w4().updateDomainNameservers({DomainName:h,Nameservers:f.map(($)=>({Name:$}))}),P40(f),P1.info("Nameservers updated."),!0;P1.success("Your nameservers are up to date.")}async function DO0(f){if(P1.debug("Checking if domain has been added to cloud..."),!f)f=Rj.app.url;P1.debug("domainName:",f);let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(P1.debug("Existing hosted zones:",w),!w||!w.HostedZones)return!1;let s=w.HostedZones.find(($)=>$.Name===`${f}.`);if(s){P1.debug("Hosted zone found:",s);let r=(await h.getHostedZone({Id:s.Id})).DelegationSet?.NameServers||[];return await N40(r,f),!0}return!1}async function qO0(f){return await Z40(J40.DomainsAdd,f)}import{Buffer as Kj}from"buffer";import{Buffer as iL}from"buffer";import d40 from"dgram";import i40 from"https";import c40 from"net";import g40 from"tls";import{URL as Xj}from"url";import{promises as x40}from"fs";import{platform as _40}from"os";var D40=Object.create,{getPrototypeOf:q40,defineProperty:Sj,getOwnPropertyNames:k40}=Object,y40=Object.prototype.hasOwnProperty,j40=(f,h,w)=>{w=f!=null?D40(q40(f)):{};let s=h||!f||!f.__esModule?Sj(w,"default",{value:f,enumerable:!0}):w;for(let $ of k40(f))if(!y40.call(s,$))Sj(s,$,{get:()=>f[$],enumerable:!0});return s},O40=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),l40=O40((f,h)=>{var w=process||{},s=w.argv||[],$=w.env||{},r=!(!!$.NO_COLOR||s.includes("--no-color"))&&(!!$.FORCE_COLOR||s.includes("--color")||w.platform==="win32"||(w.stdout||{}).isTTY&&$.TERM!=="dumb"||!!$.CI),E=(F,C,I=F)=>(L)=>{let G=""+L,S=G.indexOf(C,F.length);return~S?F+U(G,C,I,S)+C:F+G+C},U=(F,C,I,L)=>{let G="",S=0;do G+=F.substring(S,L)+I,S=L+C.length,L=F.indexOf(C,S);while(~L);return G+F.substring(S)},T=(F=r)=>{let C=F?E:()=>String;return{isColorSupported:F,reset:C("\x1B[0m","\x1B[0m"),bold:C("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:C("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:C("\x1B[3m","\x1B[23m"),underline:C("\x1B[4m","\x1B[24m"),inverse:C("\x1B[7m","\x1B[27m"),hidden:C("\x1B[8m","\x1B[28m"),strikethrough:C("\x1B[9m","\x1B[29m"),black:C("\x1B[30m","\x1B[39m"),red:C("\x1B[31m","\x1B[39m"),green:C("\x1B[32m","\x1B[39m"),yellow:C("\x1B[33m","\x1B[39m"),blue:C("\x1B[34m","\x1B[39m"),magenta:C("\x1B[35m","\x1B[39m"),cyan:C("\x1B[36m","\x1B[39m"),white:C("\x1B[37m","\x1B[39m"),gray:C("\x1B[90m","\x1B[39m"),bgBlack:C("\x1B[40m","\x1B[49m"),bgRed:C("\x1B[41m","\x1B[49m"),bgGreen:C("\x1B[42m","\x1B[49m"),bgYellow:C("\x1B[43m","\x1B[49m"),bgBlue:C("\x1B[44m","\x1B[49m"),bgMagenta:C("\x1B[45m","\x1B[49m"),bgCyan:C("\x1B[46m","\x1B[49m"),bgWhite:C("\x1B[47m","\x1B[49m"),blackBright:C("\x1B[90m","\x1B[39m"),redBright:C("\x1B[91m","\x1B[39m"),greenBright:C("\x1B[92m","\x1B[39m"),yellowBright:C("\x1B[93m","\x1B[39m"),blueBright:C("\x1B[94m","\x1B[39m"),magentaBright:C("\x1B[95m","\x1B[39m"),cyanBright:C("\x1B[96m","\x1B[39m"),whiteBright:C("\x1B[97m","\x1B[39m"),bgBlackBright:C("\x1B[100m","\x1B[49m"),bgRedBright:C("\x1B[101m","\x1B[49m"),bgGreenBright:C("\x1B[102m","\x1B[49m"),bgYellowBright:C("\x1B[103m","\x1B[49m"),bgBlueBright:C("\x1B[104m","\x1B[49m"),bgMagentaBright:C("\x1B[105m","\x1B[49m"),bgCyanBright:C("\x1B[106m","\x1B[49m"),bgWhiteBright:C("\x1B[107m","\x1B[49m")}};h.exports=T(),h.exports.createColors=T}),ih;((f)=>{f[f.A=1]="A",f[f.NS=2]="NS",f[f.CNAME=5]="CNAME",f[f.SOA=6]="SOA",f[f.PTR=12]="PTR",f[f.MX=15]="MX",f[f.TXT=16]="TXT",f[f.AAAA=28]="AAAA",f[f.SRV=33]="SRV",f[f.NAPTR=35]="NAPTR",f[f.OPT=41]="OPT",f[f.SSHFP=44]="SSHFP",f[f.TLSA=52]="TLSA",f[f.DNSKEY=48]="DNSKEY",f[f.CAA=257]="CAA"})(ih||={});var bL;((f)=>{f[f.IN=1]="IN",f[f.CH=3]="CH",f[f.HS=4]="HS"})(bL||={});var Yj;((f)=>{f.Disable="disable",f.Hide="hide",f.Show="show"})(Yj||={});var Mj;((f)=>{f[f.NoError=0]="NoError",f[f.FormErr=1]="FormErr",f[f.ServFail=2]="ServFail",f[f.NXDomain=3]="NXDomain",f[f.NotImp=4]="NotImp",f[f.Refused=5]="Refused",f[f.YXDomain=6]="YXDomain",f[f.YXRRSet=7]="YXRRSet",f[f.NXRRSet=8]="NXRRSet",f[f.NotAuth=9]="NotAuth",f[f.NotZone=10]="NotZone"})(Mj||={});var Qj;((f)=>{f.TruncatedPacket="TRUNCATED_PACKET",f.InvalidLength="INVALID_LENGTH",f.InvalidFormat="INVALID_FORMAT",f.InvalidName="INVALID_NAME",f.InvalidLabel="INVALID_LABEL",f.InvalidPointer="INVALID_POINTER",f.InvalidType="INVALID_TYPE",f.InvalidClass="INVALID_CLASS",f.NetworkError="NETWORK_ERROR"})(Qj||={});function v40(f){if(!f)return;let h=Array.isArray(f)?f:[f],w={};for(let s of h)if(s==="aa"||s==="authoritative")w.authoritative=!0;else if(s==="ad"||s==="authentic")w.authenticData=!0;else if(s==="cd"||s==="checking-disabled")w.checkingDisabled=!0;else if(s.startsWith("bufsize="))w.udpPayloadSize=Number.parseInt(s.split("=")[1]);return w}function X0(f,h,w){if(w)console.debug(`[dnsx:${f}] ${h}`)}var b40=12,m40=63;class s4{response=!1;opcode=0;authoritative=!1;truncated=!1;recursionDesired=!1;recursionAvailable=!1;authenticData=!1;checkingDisabled=!1;responseCode=0;static fromBuffer(f){let h=new s4,w=f.readUInt16BE(0);return h.response=(w&32768)!==0,h.opcode=(w&30720)>>>11,h.authoritative=(w&1024)!==0,h.truncated=(w&512)!==0,h.recursionDesired=(w&256)!==0,h.recursionAvailable=(w&128)!==0,h.authenticData=(w&32)!==0,h.checkingDisabled=(w&16)!==0,h.responseCode=w&15,h}toBuffer(){let f=Kj.alloc(2),h=0;if(this.response)h|=32768;if(h|=(this.opcode&15)<<11,this.authoritative)h|=1024;if(this.truncated)h|=512;if(this.recursionDesired)h|=256;if(this.recursionAvailable)h|=128;if(this.authenticData)h|=32;if(this.checkingDisabled)h|=16;return h|=this.responseCode&15,f.writeUInt16BE(h,0),f}}class mL{buffer;offset;nameOffsets;verbose;constructor(f=512,h){this.buffer=Kj.alloc(f),this.offset=0,this.nameOffsets=new Map,this.verbose=h}writeHeader(f,h,w){X0("encoder",`Writing DNS header: ${JSON.stringify({id:f,flags:{response:h.response,opcode:h.opcode,recursionDesired:h.recursionDesired},counts:w})}`,this.verbose),this.writeUint16(f);let s=h.toBuffer();this.buffer.set(s,this.offset),this.offset+=2,this.writeUint16(w.qdcount),this.writeUint16(w.ancount),this.writeUint16(w.nscount),this.writeUint16(w.arcount)}writeName(f){X0("encoder",`Writing DNS name: ${f}`,this.verbose);let h=f.split(".");for(let w of h){if(w.length>m40)throw new Error(`Label too long: ${w}`);this.buffer[this.offset++]=w.length,this.buffer.write(w,this.offset),this.offset+=w.length}this.buffer[this.offset++]=0}writeQuestion(f){this.writeName(f.name),this.writeUint16(f.type),this.writeUint16(f.class)}writeUint16(f){this.buffer.writeUInt16BE(f,this.offset),this.offset+=2}writeUint32(f){this.buffer.writeUInt32BE(f,this.offset),this.offset+=4}getBuffer(){return this.buffer.slice(0,this.offset)}}class dL{buffer;offset;constructor(f){this.buffer=f,this.offset=0}canRead(f){return this.offset+f<=this.buffer.length}readName(){let f=[],h=!1,w=this.offset;for(let s=0;s<5;s++){if(w>=this.buffer.length)throw new Error("Out of bounds access");let $=this.buffer[w];if($===0){if(!h)this.offset=w+1;break}if(($&192)===192){if(!this.canRead(2))throw new Error("Out of bounds access");if(!h)this.offset=w+2,h=!0;w=($&63)<<8|this.buffer[w+1];continue}if(w++,w+$>this.buffer.length)throw new Error("Out of bounds access");let r=this.buffer.slice(w,w+$).toString("ascii");f.push(r),w+=$}return f.join(".")}readHeader(){if(!this.canRead(b40))throw new Error(`Invalid DNS header size: ${this.buffer.length} bytes`);let f=this.readUint16(),h=s4.fromBuffer(this.buffer.slice(this.offset,this.offset+2));this.offset+=2;let w={qdcount:this.readUint16(),ancount:this.readUint16(),nscount:this.readUint16(),arcount:this.readUint16()};return{id:f,flags:h,counts:w}}readQuestion(){let f=this.readName();if(!this.canRead(4))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16();return{name:f,type:h,class:w}}readAnswer(){let f=this.readName();if(!this.canRead(10))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16(),s=this.readUint32(),$=this.readUint16();if(!this.canRead($))throw new Error("Out of bounds access");let r=this.readRData(h,$);return{name:f,type:h,class:w,ttl:s,data:r}}readRData(f,h){let w=this.offset,s;switch(f){case 1:if(h!==4)throw new Error("Invalid IPv4 length");s=this.readIPv4();break;case 28:if(h!==16)throw new Error("Invalid IPv6 length");s=this.readIPv6();break;case 15:if(h<3)throw new Error("Invalid MX record length");s={preference:this.readUint16(),exchange:this.readName()};break;case 16:s=this.readString(h);break;case 5:case 2:case 12:s=this.readName();break;default:s=this.buffer.slice(this.offset,this.offset+h).toString("hex"),this.offset+=h}if(this.offset-w!==h)this.offset=w+h;return s}readUint16(){if(!this.canRead(2))throw new Error("Out of bounds access");let f=this.buffer.readUInt16BE(this.offset);return this.offset+=2,f}readUint32(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=this.buffer.readUInt32BE(this.offset);return this.offset+=4,f}readIPv4(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=[];for(let h=0;h<4;h++)f.push(this.buffer[this.offset++]);return f.join(".")}readIPv6(){if(!this.canRead(16))throw new Error("Out of bounds access");let f=[];for(let h=0;h<8;h++)f.push(this.buffer.readUInt16BE(this.offset).toString(16)),this.offset+=2;return f.join(":")}readString(f){if(!this.canRead(f))throw new Error("Out of bounds access");let h=this.buffer.slice(this.offset,this.offset+f).toString();return this.offset+=f,h}}function Zj(f,h={}){let w=new mL(512,h.verbose),s=new s4;s.recursionDesired=!0,s.response=!1;let $=h.txid??h.id??Math.floor(Math.random()*65536);return w.writeHeader($,s,{qdcount:1,ancount:0,nscount:0,arcount:0}),w.writeQuestion({name:f.name,type:typeof f.type==="string"?ih[f.type]:f.type,class:f.class}),w.getBuffer()}function lL(f){let h=new dL(f);if((f.readUInt16BE(2)&32768)===0)throw new Error("Not a DNS response");let{id:w,flags:s,counts:$}=h.readHeader();for(let T=0;T<$.qdcount;T++)h.readQuestion();let r=[];for(let T=0;T<$.ancount;T++)r.push(h.readAnswer());let E=[];for(let T=0;T<$.nscount;T++)E.push(h.readAnswer());let U=[];for(let T=0;T<$.arcount;T++)U.push(h.readAnswer());return{id:w,flags:s,answers:r,authorities:E,additionals:U}}var Jj;((f)=>{f.UDP="udp",f.TCP="tcp",f.TLS="tls",f.HTTPS="https"})(Jj||={});class DT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=d40.createSocket("udp4"),r,E,U=DT.DEFAULT_PORT;if(f.includes(":")){let[F,C]=f.split(":");E=F;let I=Number.parseInt(C,10);if(I>0&&I<65536)U=I}else E=f;$.on("error",(F)=>{clearTimeout(r),$.close(),s(F)}),$.on("message",(F)=>{clearTimeout(r),$.close(),w(F)}),r=setTimeout(()=>{$.close(),s(new Error("UDP query timed out"))},DT.TIMEOUT);let T=new Uint8Array(h.buffer,h.byteOffset,h.length);$.send(T,U,E,(F)=>{if(F)clearTimeout(r),$.close(),s(F)})})}}class qT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=new c40.Socket,r,E=new Uint8Array(0),U=-1;$.on("error",(C)=>{clearTimeout(r),$.destroy(),s(C)}),$.on("data",(C)=>{let I=new Uint8Array(E.length+C.length);if(I.set(E),I.set(new Uint8Array(C.buffer,C.byteOffset,C.length),E.length),E=I,U===-1&&E.length>=2)U=new DataView(E.buffer,E.byteOffset).getUint16(0)+2;if(U!==-1&&E.length>=U)clearTimeout(r),$.destroy(),w(iL.from(E.slice(2,U)))}),r=setTimeout(()=>{$.destroy(),s(new Error("TCP query timed out"))},qT.TIMEOUT);let[T,F=qT.DEFAULT_PORT]=f.split(":");$.connect(Number(F),T,()=>{let C=new Uint8Array(2);new DataView(C.buffer).setUint16(0,h.length);let I=new Uint8Array(h.buffer,h.byteOffset,h.length),L=new Uint8Array(C.length+I.length);L.set(C),L.set(I,C.length),$.write(L,(G)=>{if(G)clearTimeout(r),$.destroy(),s(G)})})})}}class kT{static DEFAULT_PORT=853;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $={host:f.split(":")[0],port:Number(f.split(":")[1])||kT.DEFAULT_PORT,servername:f.split(":")[0]},r,E=g40.connect($,()=>{if(!E.authorized){E.destroy(),s(new Error("TLS authorization failed"));return}let F=new Uint8Array(2);new DataView(F.buffer).setUint16(0,h.length);let C=new Uint8Array(h.buffer,h.byteOffset,h.length),I=new Uint8Array(F.length+C.length);I.set(F),I.set(C,F.length),E.write(I,(L)=>{if(L)clearTimeout(r),E.destroy(),s(L)})}),U=new Uint8Array(0),T=-1;E.on("error",(F)=>{clearTimeout(r),E.destroy(),s(F)}),E.on("data",(F)=>{let C=new Uint8Array(U.length+F.length);if(C.set(U),C.set(new Uint8Array(F.buffer,F.byteOffset,F.length),U.length),U=C,T===-1&&U.length>=2)T=new DataView(U.buffer,U.byteOffset).getUint16(0)+2;if(T!==-1&&U.length>=T)clearTimeout(r),E.destroy(),w(iL.from(U.slice(2,T)))}),r=setTimeout(()=>{E.destroy(),s(new Error("TLS query timed out"))},kT.TIMEOUT)})}}class M${static TIMEOUT=5000;static CONTENT_TYPE="application/dns-message";async query(f,h){return new Promise((w,s)=>{let $;try{$=new Xj(f)}catch{$=new Xj(`https://${f}/dns-query`)}let r={method:"POST",headers:{"Content-Type":M$.CONTENT_TYPE,"Content-Length":h.length.toString(),Accept:M$.CONTENT_TYPE},timeout:M$.TIMEOUT},E=i40.request($,r,(U)=>{let T=[];U.on("data",(F)=>{T.push(new Uint8Array(F.buffer,F.byteOffset,F.length))}),U.on("end",()=>{if(U.statusCode!==200){s(new Error(`HTTPS query failed with status ${U.statusCode}`));return}let F=U.headers["content-type"];if(F!==M$.CONTENT_TYPE){s(new Error(`Invalid content type: ${F}`));return}let C=T.reduce((G,S)=>G+S.length,0),I=new Uint8Array(C),L=0;for(let G of T)I.set(G,L),L+=G.length;w(iL.from(I))})});E.on("error",s),E.on("timeout",()=>{E.destroy(),s(new Error("HTTPS query timed out"))}),E.write(new Uint8Array(h.buffer,h.byteOffset,h.length)),E.end()})}}function vL(f){switch(f){case"udp":return new DT;case"tcp":return new qT;case"tls":return new kT;case"https":return new M$}}class H1{options;static DEFAULT_NAMESERVER="1.1.1.1";static RESOLV_CONF_PATH="/etc/resolv.conf";static WINDOWS_DNS_KEY="SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Nameserver";validateDomainName(f){if(f.includes(".."))throw new Error(`Invalid domain name: ${f} (consecutive dots)`);if(f.startsWith(".")||f.endsWith("."))throw new Error(`Invalid domain name: ${f} (starts or ends with dot)`);if(f.length>253)throw new Error(`Domain name too long: ${f}`);let h=f.split(".");for(let w of h){if(w.length>63)throw new Error(`Label too long in domain: ${f}`);if(!/^[a-z0-9-]+$/i.test(w))throw new Error(`Invalid characters in domain label: ${w}`)}}validateRecordType(f){if(typeof f==="string"){if(!(f.toUpperCase()in ih))throw new Error(`Invalid record type: ${f}`)}else if(typeof f==="number"){if(!Object.values(ih).filter((h)=>typeof h==="number").includes(f))throw new Error(`Invalid record type number: ${f}`)}else throw new TypeError("Record type must be string or number")}constructor(f){this.options={transport:{type:"udp"},verbose:!1,...f},this.validateOptions()}async query(){try{let f=this.determineTransportType();X0("client",`Selected transport type: ${f}`,this.options.verbose);let h=vL(f);if(!h)throw new Error(`Failed to create transport for type: ${f}`);let w=[],s=await this.resolveNameserver();if(X0("client",`Resolved nameserver: ${s}`,this.options.verbose),!s)throw new Error("Failed to resolve nameserver");let $=this.buildQueries();X0("client",`Built ${$.length} queries`,this.options.verbose);for(let r of $){X0("client",`Processing query: ${JSON.stringify({query:r,nameserver:s,transportType:f})}`,this.options.verbose);let E=Zj(r,{txid:this.options.txid,edns:this.options.edns,tweaks:this.options.tweaks,verbose:this.options.verbose});X0("client",`Built DNS request: ${JSON.stringify({hexData:E.toString("hex"),length:E.length,txid:E.readUInt16BE(0),flags:E.readUInt16BE(2).toString(16)})}`,this.options.verbose);let U=this.options.retries||3;for(let T=0;T<U;T++)try{X0("client",`Attempt ${T+1}/${U}`,this.options.verbose);let F=await h.query(s,E);if(X0("client",`Received DNS response: ${JSON.stringify({hexData:F.toString("hex"),length:F.length,txid:F.readUInt16BE(0),flags:F.readUInt16BE(2).toString(16)})}`,this.options.verbose),F.length<12)throw new Error(`Response too short: ${F.length} bytes`);if(!(F.readUInt16BE(2)&32768))throw new Error("Response flag not set in DNS message");let C=lL(F);if(X0("client",`Parsed DNS response: ${JSON.stringify({id:C.id,answerCount:C.answers.length,authorityCount:C.authorities.length,additionalCount:C.additionals.length})}`,this.options.verbose),f==="udp"&&C.flags.truncated){X0("client","Response truncated, retrying with TCP",this.options.verbose);let I=await vL("tcp").query(s,E);w.push(lL(I))}else w.push(C);break}catch(F){if(X0("client",`Attempt ${T+1} failed: ${F.message}`,this.options.verbose),T===U-1)throw X0("client","All retry attempts failed",this.options.verbose),F;let C=2**T*1000;X0("client",`Waiting ${C}ms before retry`,this.options.verbose),await new Promise((I)=>setTimeout(I,C))}}if(w.length===0)throw new Error("No responses received");return w}catch(f){let h=f instanceof Error?f.message:"Unknown error occurred";throw X0("client",`Query failed with error: ${h}`,this.options.verbose),X0("client",`Full error: ${JSON.stringify(f)}`,this.options.verbose),new Error(`DNS query failed: ${h}`)}}buildQueries(){let f=[];if(!this.options.domains?.length)throw new Error("No domains specified");let h=Array.isArray(this.options.domains)?this.options.domains:[this.options.domains],w=this.resolveTypes(),s=this.resolveClasses();for(let $ of h)for(let r of w)for(let E of s)f.push({name:$,type:r,class:E});return X0("client",`Built queries: ${JSON.stringify(f)}`,this.options.verbose),f}resolveTypes(){if(!this.options.type)return[1];return(Array.isArray(this.options.type)?this.options.type:[this.options.type]).map((f)=>{if(this.validateRecordType(f),typeof f==="number")return f;let h=f.toUpperCase();return ih[h]})}resolveClasses(){if(!this.options.class)return[1];return(Array.isArray(this.options.class)?this.options.class:[this.options.class]).map((f)=>{if(typeof f==="number")return f;let h=f.toUpperCase(),w=bL[h];if(w===void 0)throw new Error(`Invalid query class: ${f}`);return w})}validateNameserver(f){if(f.startsWith("https://"))return!0;if(f.includes("%"))return!1;if(/^(?:\d{1,3}\.){3}\d{1,3}$/.test(f))return f.split(".").every((h)=>{let w=Number.parseInt(h,10);return w>=0&&w<=255});if(f.includes(":"))return!1;return!1}async resolveNameserver(){try{if(this.options.nameserver){if(X0("client",`Checking configured nameserver: ${this.options.nameserver}`,this.options.verbose),this.validateNameserver(this.options.nameserver))return this.options.nameserver}let f=_40();X0("client",`Resolving nameserver for platform: ${f}`,this.options.verbose);let h;if(f==="win32")h=await this.resolveWindowsNameserver();else h=await this.resolveUnixNameserver();if(this.validateNameserver(h))return h;return X0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){return X0("client",`Failed to resolve nameserver: ${f.message}`,this.options.verbose),X0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}}async resolveUnixNameserver(){try{let f=(await x40.readFile(H1.RESOLV_CONF_PATH,"utf-8")).split(`
|
|
60
|
-
`),h=[];for(let s of f){let $=s.trim();if($.startsWith("nameserver")){let[,r]=$.split(/\s+/);if(r&&!r.includes("%"))h.push(r)}}let w=h.find((s)=>!s.includes(":"));if(w)return
|
|
61
|
-
Authority Records:`);for(let $ of s.authorities)w.push(
|
|
62
|
-
Additional Records:`);for(let $ of s.additionals)w.push(
|
|
63
|
-
Query time: ${
|
|
64
|
-
`)}function
|
|
59
|
+
`),_H=!0}throw new a("AWS_PROFILE is set, skipping fromEnv provider.",{logger:f.logger,tryNextLink:!0})}return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),cF(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoSession:r}=f;if(!h&&!w&&!s&&!$&&!r)throw new a("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:f.logger});let{fromSSO:E}=await Promise.resolve().then(() => (K6(),Q6));return E(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:h}=await Promise.resolve().then(() => (xH(),gH));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:h}=await Promise.resolve().then(() => (BC(),LC));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:h}=await Promise.resolve().then(() => (XC(),RC));return h(f)()},async()=>{return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await T9(f))()},async()=>{throw new a("Could not load credentials from any providers",{tryNextLink:!1,logger:f.logger})}),Yh0,Sh0),Sh0=(f)=>f?.expiration!==void 0,Yh0=(f)=>f?.expiration!==void 0&&f.expiration.getTime()-Date.now()<300000;z5();Yh();R5();$w();Kh();wr();X5();wf();var UN=o(O0(),1);J();pw();S5();bs();D$();df();var nH={["required"]:!1,type:"String"},eH={["required"]:!0,default:!1,type:"Boolean"},aH={["ref"]:"Endpoint"},v5={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},rN={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},s1={},oH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},s$={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},Iw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},fh={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},pH={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},uH={["fn"]:"stringEquals",["argv"]:[s$,"aws-us-gov"]},tH={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},fN={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},hN={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},wN=[v5],sN=[rN],$N=[{["ref"]:"Region"}],Mh0={version:"1.0",parameters:{Region:nH,UseDualStack:eH,UseFIPS:eH,Endpoint:nH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aH]}],rules:[{conditions:wN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:sN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aH,properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:$N}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:$N,assign:"PartitionResult"}],rules:[{conditions:[oH,Iw,fh],endpoint:{url:"https://route53.amazonaws.com",properties:pH,headers:s1},type:"endpoint"},{conditions:[oH,v5,fh],endpoint:{url:"https://route53-fips.amazonaws.com",properties:pH,headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-cn"]},Iw,fh],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:s1},type:"endpoint"},{conditions:[uH,Iw,fh],endpoint:tH,type:"endpoint"},{conditions:[uH,v5,fh],endpoint:tH,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso"]},Iw,fh],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-b"]},Iw,fh],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-e"]},Iw,fh],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:s1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-f"]},Iw,fh],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:s1},type:"endpoint"},{conditions:[v5,rN],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,fN]},hN],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:wN,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[fN,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:s1,headers:s1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:sN,rules:[{conditions:[hN],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s1,headers:s1},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:s1,headers:s1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},EN=Mh0;var Qh0=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),TN=(f,h={})=>{return Qh0.get(f,()=>xh(EN,{endpointParams:f,logger:h.logger}))};t1.aws=_h;var FN=(f)=>{return{apiVersion:"2013-04-01",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??TN,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??EY,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new UN.AwsSdkSigV4Signer}],logger:f?.logger??new _f,serviceId:f?.serviceId??"Route 53",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};J();Y5();J();var IN=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=FN(f);CN.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??l5,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:FY.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Sh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};M5();F1();J();var LN=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},BN=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var b5=(f)=>f,AN=(f,h)=>{let w={...b5(gs(f)),...b5(Is(f)),...b5(Zw(f)),...b5(LN(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),...BN(w)}};class SC extends ww{config;constructor(...[f]){let h=IN(f||{}),w=UY(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),T=uw(E),U=TY(T),F=AN(U,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use($$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:rY,identityProviderConfigProvider:async(C)=>new $$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();var m5=/^\/(hostedzone|change|delegationset)\//;function Kh0(){return(f)=>async(h)=>{let{ChangeBatch:w}=h.input,s=[];for(let $ of w.Changes){let{AliasTarget:r}=$.ResourceRecordSet;if(r)s.push({...$,ResourceRecordSet:{...$.ResourceRecordSet,AliasTarget:{...r,HostedZoneId:r.HostedZoneId.replace(m5,"")}}});else s.push($)}return f({...h,input:{...h.input,ChangeBatch:{...w,Changes:s}}})}}var Zh0={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},GN=(f)=>({applyToStack:(h)=>{h.add(Kh0(),Zh0)}});var Jh0=["DelegationSetId","HostedZoneId","Id"];function Vh0(){return(f)=>async(h)=>{let w={...h.input};for(let s of Jh0){let $=w[s];if($)w[s]=$.replace(m5,"")}return f({...h,input:w})}}var Ph0={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},O=(f)=>({applyToStack:(h)=>{h.add(Vh0(),Ph0)}});D();k();J();var _=o(O0(),1);function WN(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function zN(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class YC{value;constructor(f){this.value=f}toString(){return zN(""+this.value)}}class P{name;children;attributes={};static of(f,h,w){let s=new P(f);if(h!==void 0)s.addChildNode(new YC(h));if(w!==void 0)s.withName(w);return s}constructor(f,h=[]){this.name=f,this.children=h}withName(f){return this.name=f,this}addAttribute(f,h){return this.attributes[f]=h,this}addChildNode(f){return this.children.push(f),this}removeAttribute(f){return delete this.attributes[f],this}n(f){return this.name=f,this}c(f){return this.children.push(f),this}a(f,h){if(h!=null)this.attributes[f]=h;return this}cc(f,h,w=h){if(f[h]!=null){let s=P.of(h,f[h]).withName(w);this.c(s)}}l(f,h,w,s){if(f[h]!=null)s().map((r)=>{r.withName(w),this.c(r)})}lc(f,h,w,s){if(f[h]!=null){let $=s(),r=new P(w);$.map((E)=>{r.c(E)}),this.c(r)}}toString(){let f=Boolean(this.children.length),h=`<${this.name}`,w=this.attributes;for(let s of Object.keys(w)){let $=w[s];if($!=null)h+=` ${s}="${WN(""+$)}"`}return h+=!f?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}var d=o(m0(),1);J();J();class m extends $f{constructor(f){super(f);Object.setPrototypeOf(this,m.prototype)}}class d5 extends m{name="ConcurrentModification";$fault="client";constructor(f){super({name:"ConcurrentModification",$fault:"client",...f});Object.setPrototypeOf(this,d5.prototype)}}class i5 extends m{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,i5.prototype)}}class c5 extends m{name="InvalidKeySigningKeyStatus";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...f});Object.setPrototypeOf(this,c5.prototype)}}class g5 extends m{name="InvalidKMSArn";$fault="client";constructor(f){super({name:"InvalidKMSArn",$fault:"client",...f});Object.setPrototypeOf(this,g5.prototype)}}class x5 extends m{name="InvalidSigningStatus";$fault="client";constructor(f){super({name:"InvalidSigningStatus",$fault:"client",...f});Object.setPrototypeOf(this,x5.prototype)}}class _5 extends m{name="NoSuchKeySigningKey";$fault="client";constructor(f){super({name:"NoSuchKeySigningKey",$fault:"client",...f});Object.setPrototypeOf(this,_5.prototype)}}class n5 extends m{name="ConflictingDomainExists";$fault="client";constructor(f){super({name:"ConflictingDomainExists",$fault:"client",...f});Object.setPrototypeOf(this,n5.prototype)}}class e5 extends m{name="InvalidVPCId";$fault="client";constructor(f){super({name:"InvalidVPCId",$fault:"client",...f});Object.setPrototypeOf(this,e5.prototype)}}class a5 extends m{name="LimitsExceeded";$fault="client";constructor(f){super({name:"LimitsExceeded",$fault:"client",...f});Object.setPrototypeOf(this,a5.prototype)}}class o5 extends m{name="NoSuchHostedZone";$fault="client";constructor(f){super({name:"NoSuchHostedZone",$fault:"client",...f});Object.setPrototypeOf(this,o5.prototype)}}class p5 extends m{name="NotAuthorizedException";$fault="client";constructor(f){super({name:"NotAuthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,p5.prototype)}}class u5 extends m{name="PriorRequestNotComplete";$fault="client";constructor(f){super({name:"PriorRequestNotComplete",$fault:"client",...f});Object.setPrototypeOf(this,u5.prototype)}}class t5 extends m{name="PublicZoneVPCAssociation";$fault="client";constructor(f){super({name:"PublicZoneVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,t5.prototype)}}class fT extends m{name="CidrBlockInUseException";$fault="client";Message;constructor(f){super({name:"CidrBlockInUseException",$fault:"client",...f});Object.setPrototypeOf(this,fT.prototype),this.Message=f.Message}}class hT extends m{name="CidrCollectionVersionMismatchException";$fault="client";Message;constructor(f){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...f});Object.setPrototypeOf(this,hT.prototype),this.Message=f.Message}}class wT extends m{name="NoSuchCidrCollectionException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrCollectionException",$fault:"client",...f});Object.setPrototypeOf(this,wT.prototype),this.Message=f.Message}}class sT extends m{name="InvalidChangeBatch";$fault="client";messages;constructor(f){super({name:"InvalidChangeBatch",$fault:"client",...f});Object.setPrototypeOf(this,sT.prototype),this.messages=f.messages}}class $T extends m{name="NoSuchHealthCheck";$fault="client";constructor(f){super({name:"NoSuchHealthCheck",$fault:"client",...f});Object.setPrototypeOf(this,$T.prototype)}}class rT extends m{name="ThrottlingException";$fault="client";constructor(f){super({name:"ThrottlingException",$fault:"client",...f});Object.setPrototypeOf(this,rT.prototype)}}class ET extends m{name="CidrCollectionAlreadyExistsException";$fault="client";Message;constructor(f){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...f});Object.setPrototypeOf(this,ET.prototype),this.Message=f.Message}}class TT extends m{name="HealthCheckAlreadyExists";$fault="client";constructor(f){super({name:"HealthCheckAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,TT.prototype)}}class UT extends m{name="TooManyHealthChecks";$fault="client";constructor(f){super({name:"TooManyHealthChecks",$fault:"client",...f});Object.setPrototypeOf(this,UT.prototype)}}class FT extends m{name="DelegationSetNotAvailable";$fault="client";constructor(f){super({name:"DelegationSetNotAvailable",$fault:"client",...f});Object.setPrototypeOf(this,FT.prototype)}}class CT extends m{name="DelegationSetNotReusable";$fault="client";constructor(f){super({name:"DelegationSetNotReusable",$fault:"client",...f});Object.setPrototypeOf(this,CT.prototype)}}class IT extends m{name="HostedZoneAlreadyExists";$fault="client";constructor(f){super({name:"HostedZoneAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,IT.prototype)}}class LT extends m{name="InvalidDomainName";$fault="client";constructor(f){super({name:"InvalidDomainName",$fault:"client",...f});Object.setPrototypeOf(this,LT.prototype)}}class BT extends m{name="NoSuchDelegationSet";$fault="client";constructor(f){super({name:"NoSuchDelegationSet",$fault:"client",...f});Object.setPrototypeOf(this,BT.prototype)}}class AT extends m{name="TooManyHostedZones";$fault="client";constructor(f){super({name:"TooManyHostedZones",$fault:"client",...f});Object.setPrototypeOf(this,AT.prototype)}}class GT extends m{name="InvalidArgument";$fault="client";constructor(f){super({name:"InvalidArgument",$fault:"client",...f});Object.setPrototypeOf(this,GT.prototype)}}class WT extends m{name="InvalidKeySigningKeyName";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyName",$fault:"client",...f});Object.setPrototypeOf(this,WT.prototype)}}class zT extends m{name="KeySigningKeyAlreadyExists";$fault="client";constructor(f){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,zT.prototype)}}class RT extends m{name="TooManyKeySigningKeys";$fault="client";constructor(f){super({name:"TooManyKeySigningKeys",$fault:"client",...f});Object.setPrototypeOf(this,RT.prototype)}}class XT extends m{name="InsufficientCloudWatchLogsResourcePolicy";$fault="client";constructor(f){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...f});Object.setPrototypeOf(this,XT.prototype)}}class ST extends m{name="NoSuchCloudWatchLogsLogGroup";$fault="client";constructor(f){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...f});Object.setPrototypeOf(this,ST.prototype)}}class YT extends m{name="QueryLoggingConfigAlreadyExists";$fault="client";constructor(f){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,YT.prototype)}}class MT extends m{name="DelegationSetAlreadyCreated";$fault="client";constructor(f){super({name:"DelegationSetAlreadyCreated",$fault:"client",...f});Object.setPrototypeOf(this,MT.prototype)}}class QT extends m{name="DelegationSetAlreadyReusable";$fault="client";constructor(f){super({name:"DelegationSetAlreadyReusable",$fault:"client",...f});Object.setPrototypeOf(this,QT.prototype)}}class KT extends m{name="HostedZoneNotFound";$fault="client";constructor(f){super({name:"HostedZoneNotFound",$fault:"client",...f});Object.setPrototypeOf(this,KT.prototype)}}class ZT extends m{name="InvalidTrafficPolicyDocument";$fault="client";constructor(f){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...f});Object.setPrototypeOf(this,ZT.prototype)}}class JT extends m{name="TooManyTrafficPolicies";$fault="client";constructor(f){super({name:"TooManyTrafficPolicies",$fault:"client",...f});Object.setPrototypeOf(this,JT.prototype)}}class VT extends m{name="TrafficPolicyAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,VT.prototype)}}class PT extends m{name="NoSuchTrafficPolicy";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicy",$fault:"client",...f});Object.setPrototypeOf(this,PT.prototype)}}class HT extends m{name="TooManyTrafficPolicyInstances";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...f});Object.setPrototypeOf(this,HT.prototype)}}class NT extends m{name="TrafficPolicyInstanceAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,NT.prototype)}}class DT extends m{name="TooManyTrafficPolicyVersionsForCurrentPolicy";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...f});Object.setPrototypeOf(this,DT.prototype)}}class qT extends m{name="TooManyVPCAssociationAuthorizations";$fault="client";constructor(f){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...f});Object.setPrototypeOf(this,qT.prototype)}}class kT extends m{name="KeySigningKeyInParentDSRecord";$fault="client";constructor(f){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...f});Object.setPrototypeOf(this,kT.prototype)}}class yT extends m{name="KeySigningKeyInUse";$fault="client";constructor(f){super({name:"KeySigningKeyInUse",$fault:"client",...f});Object.setPrototypeOf(this,yT.prototype)}}class jT extends m{name="CidrCollectionInUseException";$fault="client";Message;constructor(f){super({name:"CidrCollectionInUseException",$fault:"client",...f});Object.setPrototypeOf(this,jT.prototype),this.Message=f.Message}}class OT extends m{name="HealthCheckInUse";$fault="client";constructor(f){super({name:"HealthCheckInUse",$fault:"client",...f});Object.setPrototypeOf(this,OT.prototype)}}class lT extends m{name="HostedZoneNotEmpty";$fault="client";constructor(f){super({name:"HostedZoneNotEmpty",$fault:"client",...f});Object.setPrototypeOf(this,lT.prototype)}}class vT extends m{name="NoSuchQueryLoggingConfig";$fault="client";constructor(f){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...f});Object.setPrototypeOf(this,vT.prototype)}}class bT extends m{name="DelegationSetInUse";$fault="client";constructor(f){super({name:"DelegationSetInUse",$fault:"client",...f});Object.setPrototypeOf(this,bT.prototype)}}class mT extends m{name="TrafficPolicyInUse";$fault="client";constructor(f){super({name:"TrafficPolicyInUse",$fault:"client",...f});Object.setPrototypeOf(this,mT.prototype)}}class dT extends m{name="NoSuchTrafficPolicyInstance";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...f});Object.setPrototypeOf(this,dT.prototype)}}class iT extends m{name="VPCAssociationAuthorizationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,iT.prototype)}}class cT extends m{name="DNSSECNotFound";$fault="client";constructor(f){super({name:"DNSSECNotFound",$fault:"client",...f});Object.setPrototypeOf(this,cT.prototype)}}class gT extends m{name="LastVPCAssociation";$fault="client";constructor(f){super({name:"LastVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,gT.prototype)}}class xT extends m{name="VPCAssociationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,xT.prototype)}}class _T extends m{name="HostedZonePartiallyDelegated";$fault="client";constructor(f){super({name:"HostedZonePartiallyDelegated",$fault:"client",...f});Object.setPrototypeOf(this,_T.prototype)}}class nT extends m{name="KeySigningKeyWithActiveStatusNotFound";$fault="client";constructor(f){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...f});Object.setPrototypeOf(this,nT.prototype)}}class eT extends m{name="NoSuchChange";$fault="client";constructor(f){super({name:"NoSuchChange",$fault:"client",...f});Object.setPrototypeOf(this,eT.prototype)}}class aT extends m{name="NoSuchGeoLocation";$fault="client";constructor(f){super({name:"NoSuchGeoLocation",$fault:"client",...f});Object.setPrototypeOf(this,aT.prototype)}}class oT extends m{name="IncompatibleVersion";$fault="client";constructor(f){super({name:"IncompatibleVersion",$fault:"client",...f});Object.setPrototypeOf(this,oT.prototype)}}class pT extends m{name="HostedZoneNotPrivate";$fault="client";constructor(f){super({name:"HostedZoneNotPrivate",$fault:"client",...f});Object.setPrototypeOf(this,pT.prototype)}}class uT extends m{name="NoSuchCidrLocationException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrLocationException",$fault:"client",...f});Object.setPrototypeOf(this,uT.prototype),this.Message=f.Message}}class tT extends m{name="InvalidPaginationToken";$fault="client";constructor(f){super({name:"InvalidPaginationToken",$fault:"client",...f});Object.setPrototypeOf(this,tT.prototype)}}class fU extends m{name="HealthCheckVersionMismatch";$fault="client";constructor(f){super({name:"HealthCheckVersionMismatch",$fault:"client",...f});Object.setPrototypeOf(this,fU.prototype)}}class hU extends m{name="ConflictingTypes";$fault="client";constructor(f){super({name:"ConflictingTypes",$fault:"client",...f});Object.setPrototypeOf(this,hU.prototype)}}var ZN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},JN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(C$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(F$0,f[F0]).n(F0));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},VN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(A$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"Changes","Changes",()=>ow0(f[Bk],h)),f[wU]!=null)r.c(P.of(wU,String(f[wU])).n(wU));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},PN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(J$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[$U]!=null)r.c(nw0(f[$U],h).n($U));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},HN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;$=c0;let r=new P(V$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"AddTags","AddTags",()=>Cs0(f[U$0],h)),r.lc(f,"RemoveTagKeys","RemoveTagKeys",()=>Fs0(f[sr0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},NN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection");let $;$=c0;let r=new P(G$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(M$0,f[q0]).n(q0));if(f[p]!=null)r.c(P.of(Q$0,f[p]).n(p));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},DN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck");let $;$=c0;let r=new P(W$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(d$0,f[q0]).n(q0));if(f[Qw]!=null)r.c(ws0(f[Qw],h).n(Qw));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},qN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone");let $;$=c0;let r=new P(z$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(N8,f[q0]).n(q0));if(f[EU]!=null)r.c(P.of(yf,f[EU]).n(EU));if(f[TU]!=null)r.c(ss0(f[TU],h).n(TU));if(f[p]!=null)r.c(P.of(Gf,f[p]).n(p));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},kN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/keysigningkey");let $;$=c0;let r=new P(R$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(N8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));if(f[iC]!=null)r.c(P.of(Tr0,f[iC]).n(iC));if(f[p]!=null)r.c(P.of(Er0,f[p]).n(p));if(f[G1]!=null)r.c(P.of(Ur0,f[G1]).n(G1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},yN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/queryloggingconfig");let $;$=c0;let r=new P(K$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.cc(f,rU),f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},jN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/delegationset");let $;$=c0;let r=new P(Z$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(N8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},ON=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy");let $;$=c0;let r=new P(H$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(q8,f[F0]).n(F0));if(f[wh]!=null)r.c(P.of(Wk,f[wh]).n(wh));if(f[p]!=null)r.c(P.of(Br0,f[p]).n(p));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},lN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance");let $;$=c0;let r=new P(P$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[h0]!=null)r.c(P.of(yf,f[h0]).n(h0));if(f[p]!=null)r.c(P.of(Gf,f[p]).n(p));if(f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},vN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(N$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(q8,f[F0]).n(F0));if(f[wh]!=null)r.c(P.of(Wk,f[wh]).n(wh));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(D$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},mN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},dN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},iN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},cN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},gN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},xN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},_N=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},nN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},eN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},aN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(k$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},oN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},pN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(j$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(y$0,f[F0]).n(F0));if(f[P0]!=null)r.c(ar(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},uN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},tN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/accountlimit/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1);let $;return w.m("GET").h(s).b($),w.build()},fD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/change/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},hD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/checkeripranges");let $;return w.m("GET").h(s).b($),w.build()},wD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},sD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocation");let $=Y({[Yr0]:[,f[qf]],[Mr0]:[,f[kf]],[kr0]:[,f[jf]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},$D=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},rD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheckcount");let $;return w.m("GET").h(s).b($),w.build()},ED=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},TD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},UD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},FD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonecount");let $;return w.m("GET").h(s).b($),w.build()},CD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},ID=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},LD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},BD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("DelegationSetId",()=>f.DelegationSetId,"{DelegationSetId}",!1);let $;return w.m("GET").h(s).b($),w.build()},AD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("GET").h(s).b($),w.build()},GD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},WD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstancecount");let $;return w.m("GET").h(s).b($),w.build()},zD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[Of]:[,f[T1]],[X$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},RD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection");let $=Y({[X$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},XD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[X$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},SD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocations");let $=Y({[yr0]:[,f[$r0]],[jr0]:[,f[rr0]],[Or0]:[,f[Lr0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},YD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck");let $=Y({[k8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},MD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone");let $=Y({[k8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[Qr0]:[,f[EU]],[Vr0]:[,f[g$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},QD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyname");let $=Y({[Kr0]:[,f[Gf]],[tr]:[,f[h0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},KD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyvpc");let $=Y({[mr0]:[,j(f[nr],"VPCId")],[ir0]:[,j(f[er],"VPCRegion")],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[X$]:[,f[k0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},ZD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig");let $=Y({[tr]:[,f[h0]],[X$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},JD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[Hr0]:[,f[Cr0]],[lr0]:[,f[Ir0]],[Pr0]:[,f[Fr0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},VD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset");let $=Y({[k8]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},PD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;return w.m("GET").h(s).b($),w.build()},HD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1);let $;$=c0;let r=new P(_$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"ResourceIds","ResourceIds",()=>Is0(f[o$0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},ND=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies");let $=Y({[vr0]:[,f[GU]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},DD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances");let $=Y({[tr]:[,f[vh]],[y8]:[,f[_1]],[j8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},qD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/hostedzone");let $=Y({[zk]:[,j(f[h0],"HostedZoneId")],[y8]:[,f[_1]],[j8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},kD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");let $=Y({[zk]:[,j(f[z$],"TrafficPolicyId")],[dr0]:[j(f.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>f[g1].toString()],[tr]:[,f[vh]],[y8]:[,f[_1]],[j8]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},yD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies/{Id}/versions"),w.p("Id",()=>f.Id,"{Id}",!1);let $=Y({[br0]:[,f[WU]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},jD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[X$]:[,f[k0]],[f4]:[()=>f.MaxResults!==void 0,()=>f[ur].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},OD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/testdnsanswer");let $=Y({[tr]:[,j(f[h0],"HostedZoneId")],[Nr0]:[,j(f[LU],"RecordName")],[Dr0]:[,j(f[BU],"RecordType")],[qr0]:[,f[a$0]],[Zr0]:[,f[O$0]],[Jr0]:[,f[l$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},lD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;$=c0;let r=new P(Wr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[Df]!=null)r.c(sk(f[Df],h).n(Df));if(r.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>$k(f[Lw],h)),f[Ff]!=null)r.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Cf]!=null)r.c(P.of(Cf,String(f[Cf])).n(Cf));if(f[If]!=null)r.c(P.of(If,String(f[If])).n(If));if(r.cc(f,mr),f[Gw]!=null)r.c(P.of(Gw,String(f[Gw])).n(Gw));if(f[Lf]!=null)r.c(P.of(Lf,String(f[Lf])).n(Lf));if(r.cc(f,bh),r.cc(f,cr),f[Bf]!=null)r.c(P.of(Bf,String(f[Bf])).n(Bf));if(f[Af]!=null)r.c(P.of(Af,String(f[Af])).n(Af));return r.lc(f,"Regions","Regions",()=>rk(f[Bw],h)),r.lc(f,"ResetElements","ResetElements",()=>$s0(f[e$0],h)),r.cc(f,gr),r.cc(f,_r),$+=r.toString(),w.m("POST").h(s).b($),w.build()},vD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(zr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(D8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;$=c0;let r=new P(Rr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(q8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},mD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Xr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},dD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},iD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},cD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[I0]!=null)w[I0]=A(s[I0]);return w},gD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},xD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},_D=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[HC]!=null)w[HC]=Xs0(s[HC],h);return w},nD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=SU(s[Wf],h);return w},eD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[M1]!=null)w[M1]=or(s[M1],h);if(s[V1]!=null)w[V1]=YU(s[V1],h);if(s[P0]!=null)w[P0]=H8(s[P0],h);return w},aD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[cC]!=null)w[cC]=Fk(s[cC],h);return w},oD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=V8(s[mh],h);return w},pD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);return w},uD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},tD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MU(s[W1],h);return w},fq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Eh]:[,f.headers[Of]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},hq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=A(s[h0]);if(s[P0]!=null)w[P0]=H8(s[P0],h);return w},wq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},sq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},$q=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},Uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},Fq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},Cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},Iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await B1.collectBody(f.body,h),w},Lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=Ls0(s[sh],h);return w},Wq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CheckerIpRanges==="")w[Qr]=[];else if(s[Qr]!=null&&s[Qr][zf]!=null)w[Qr]=Gs0(A0(s[Qr][zf]),h);return w},Rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.KeySigningKeys==="")w[Nr]=[];else if(s[Nr]!=null&&s[Nr][zf]!=null)w[Nr]=cs0(A0(s[Nr][zf]),h);if(s[G1]!=null)w[G1]=Hs0(s[G1],h);return w},Xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[dr]!=null)w[dr]=Ek(s[dr],h);return w},Sq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=SU(s[Wf],h);return w},Yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[bC]!=null)w[bC]=r1(s[bC]);return w},Mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Pf]=[];else if(s[Pf]!=null&&s[Pf][zU]!=null)w[Pf]=Tk(A0(s[Pf][zU]),h);return w},Qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Pf]=[];else if(s[Pf]!=null&&s[Pf][zU]!=null)w[Pf]=Tk(A0(s[Pf][zU]),h);return w},Kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);if(s[V1]!=null)w[V1]=YU(s[V1],h);if(s.VPCs==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][P0]!=null)w[Nf]=Lk(A0(s[Nf][P0]),h);return w},Zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mC]!=null)w[mC]=r1(s[mC]);return w},Jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=bs0(s[sh],h);return w},Vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=V8(s[mh],h);return w},Pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[M1]!=null)w[M1]=or(s[M1],h);return w},Hq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[hh]!=null)w[hh]=r1(s[hh]);if(s[sh]!=null)w[sh]=ts0(s[sh],h);return w},Nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},Dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MU(s[W1],h);return w},qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q8]!=null)w[Q8]=M0(s[Q8]);return w},kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrBlocks==="")w[Yr]=[];else if(s[Yr]!=null&&s[Yr][zf]!=null)w[Yr]=zs0(A0(s[Yr][zf]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrCollections==="")w[Mr]=[];else if(s[Mr]!=null&&s[Mr][zf]!=null)w[Mr]=Ms0(A0(s[Mr][zf]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrLocations==="")w[Kr]=[];else if(s[Kr]!=null&&s[Kr][zf]!=null)w[Kr]=gs0(A0(s[Kr][zf]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},Oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.GeoLocationDetailsList==="")w[Vr]=[];else if(s[Vr]!=null&&s[Vr][dr]!=null)w[Vr]=qs0(A0(s[Vr][dr]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[eC]!=null)w[eC]=A(s[eC]);if(s[aC]!=null)w[aC]=A(s[aC]);if(s[h8]!=null)w[h8]=A(s[h8]);return w},lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthChecks==="")w[Pr]=[];else if(s[Pr]!=null&&s[Pr][Wf]!=null)w[Pr]=ls0(A0(s[Pr][Wf]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=A(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=A(s[$h]);return w},vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZones==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][V1]!=null)w[Hf]=Uk(A0(s[Hf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=A(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=A(s[$h]);return w},bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Gf]!=null)w[Gf]=A(s[Gf]);if(s[h0]!=null)w[h0]=A(s[h0]);if(s.HostedZones==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][V1]!=null)w[Hf]=Uk(A0(s[Hf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[oC]!=null)w[oC]=A(s[oC]);if(s[pC]!=null)w[pC]=A(s[pC]);return w},mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZoneSummaries==="")w[Hr]=[];else if(s[Hr]!=null&&s[Hr][SN]!=null)w[Hr]=ds0(A0(s[Hr][SN]),h);if(s[u]!=null)w[u]=M0(s[u]);if(s[k0]!=null)w[k0]=A(s[k0]);return w},dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[k0]!=null)w[k0]=A(s[k0]);if(s.QueryLoggingConfigs==="")w[qr]=[];else if(s[qr]!=null&&s[qr][mh]!=null)w[qr]=_s0(A0(s[qr][mh]),h);return w},iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[uC]!=null)w[uC]=A(s[uC]);if(s[tC]!=null)w[tC]=A(s[tC]);if(s[f8]!=null)w[f8]=A(s[f8]);if(s.ResourceRecordSets==="")w[yr]=[];else if(s[yr]!=null&&s[yr][A$]!=null)w[yr]=ps0(A0(s[yr][A$]),h);return w},cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.DelegationSets==="")w[Zr]=[];else if(s[Zr]!=null&&s[Zr][M1]!=null)w[Zr]=Js0(A0(s[Zr][M1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=A(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[$h]!=null)w[$h]=A(s[$h]);return w},gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[xr]!=null)w[xr]=Ik(s[xr],h);return w},xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.ResourceTagSets==="")w[jr]=[];else if(s[jr]!=null&&s[jr][xr]!=null)w[jr]=us0(A0(s[jr][xr]),h);return w},_q=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[GU]!=null)w[GU]=A(s[GU]);if(s.TrafficPolicySummaries==="")w[Or]=[];else if(s[Or]!=null&&s[Or][KN]!=null)w[Or]=$$0(A0(s[Or][KN]),h);return w},nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[vh]!=null)w[vh]=A(s[vh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=A(s[_1]);if(s[n1]!=null)w[n1]=A(s[n1]);if(s.TrafficPolicyInstances==="")w[A1]=[];else if(s[A1]!=null&&s[A1][W1]!=null)w[A1]=P8(A0(s[A1][W1]),h);return w},eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=A(s[_1]);if(s[n1]!=null)w[n1]=A(s[n1]);if(s.TrafficPolicyInstances==="")w[A1]=[];else if(s[A1]!=null&&s[A1][W1]!=null)w[A1]=P8(A0(s[A1][W1]),h);return w},aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[vh]!=null)w[vh]=A(s[vh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=A(s[_1]);if(s[n1]!=null)w[n1]=A(s[n1]);if(s.TrafficPolicyInstances==="")w[A1]=[];else if(s[A1]!=null&&s[A1][W1]!=null)w[A1]=P8(A0(s[A1][W1]),h);return w},oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s.TrafficPolicies==="")w[lr]=[];else if(s[lr]!=null&&s[lr][Q1]!=null)w[lr]=s$0(A0(s[lr][Q1]),h);if(s[WU]!=null)w[WU]=A(s[WU]);return w},pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=A(s[h0]);if(s[k0]!=null)w[k0]=A(s[k0]);if(s.VPCs==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][P0]!=null)w[Nf]=Lk(A0(s[Nf][P0]),h);return w},uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[w8]!=null)w[w8]=A(s[w8]);if(s[F8]!=null)w[F8]=A(s[F8]);if(s.RecordData==="")w[kr]=[];else if(s[kr]!=null&&s[kr][MN]!=null)w[kr]=ns0(A0(s[kr][MN]),h);if(s[LU]!=null)w[LU]=A(s[LU]);if(s[BU]!=null)w[BU]=A(s[BU]);if(s[C8]!=null)w[C8]=A(s[C8]);return w},tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=SU(s[Wf],h);return w},fk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[V1]!=null)w[V1]=YU(s[V1],h);return w},hk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=pr(s[Q1],h);return w},wk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MU(s[W1],h);return w},i=async(f,h)=>{let w={...f,body:await _.parseXmlErrorBody(f.body,h)},s=_.loadRestXmlErrorCode(f,w.body);switch(s){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await yh0(w,h);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await ww0(w,h);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await rw0(w,h);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await $w0(w,h);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Tw0(w,h);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Kw0(w,h);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await jh0(w,h);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await Fw0(w,h);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Gw0(w,h);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Qw0(w,h);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await Pw0(w,h);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await Hw0(w,h);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await Nw0(w,h);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Nh0(w,h);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await kh0(w,h);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await zw0(w,h);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await fw0(w,h);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Mw0(w,h);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await qw0(w,h);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await Dh0(w,h);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await ch0(w,h);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await kw0(w,h);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await mh0(w,h);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await dh0(w,h);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await _h0(w,h);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await hw0(w,h);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Sw0(w,h);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await yw0(w,h);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await th0(w,h);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await sw0(w,h);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Cw0(w,h);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await jw0(w,h);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await uh0(w,h);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Xw0(w,h);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await Dw0(w,h);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await lh0(w,h);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await vh0(w,h);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await eh0(w,h);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await Uw0(w,h);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await Ow0(w,h);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await mw0(w,h);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await Jw0(w,h);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await lw0(w,h);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await dw0(w,h);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await vw0(w,h);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await bw0(w,h);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Iw0(w,h);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Lw0(w,h);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await qh0(w,h);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await gh0(w,h);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await nh0(w,h);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Zw0(w,h);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await bh0(w,h);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await iw0(w,h);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Vw0(w,h);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await cw0(w,h);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await ih0(w,h);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Aw0(w,h);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await gw0(w,h);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await oh0(w,h);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Bw0(w,h);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await Ww0(w,h);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Yw0(w,h);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await ph0(w,h);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await ah0(w,h);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Rw0(w,h);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Ew0(w,h);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await xh0(w,h);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await Oh0(w,h);default:let $=w.body;return Hh0({output:f,parsedBody:$.Error,errorCode:s})}},Hh0=Us(m),Nh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new fT({$metadata:Z(f),...w});return l($,f.body.Error)},Dh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new ET({$metadata:Z(f),...w});return l($,f.body.Error)},qh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new jT({$metadata:Z(f),...w});return l($,f.body.Error)},kh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new hT({$metadata:Z(f),...w});return l($,f.body.Error)},yh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new d5({$metadata:Z(f),...w});return l($,f.body.Error)},jh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new n5({$metadata:Z(f),...w});return l($,f.body.Error)},Oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new hU({$metadata:Z(f),...w});return l($,f.body.Error)},lh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new MT({$metadata:Z(f),...w});return l($,f.body.Error)},vh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new QT({$metadata:Z(f),...w});return l($,f.body.Error)},bh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new bT({$metadata:Z(f),...w});return l($,f.body.Error)},mh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new FT({$metadata:Z(f),...w});return l($,f.body.Error)},dh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new CT({$metadata:Z(f),...w});return l($,f.body.Error)},ih0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new cT({$metadata:Z(f),...w});return l($,f.body.Error)},ch0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new TT({$metadata:Z(f),...w});return l($,f.body.Error)},gh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new OT({$metadata:Z(f),...w});return l($,f.body.Error)},xh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new fU({$metadata:Z(f),...w});return l($,f.body.Error)},_h0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new IT({$metadata:Z(f),...w});return l($,f.body.Error)},nh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new lT({$metadata:Z(f),...w});return l($,f.body.Error)},eh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new KT({$metadata:Z(f),...w});return l($,f.body.Error)},ah0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new pT({$metadata:Z(f),...w});return l($,f.body.Error)},oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new _T({$metadata:Z(f),...w});return l($,f.body.Error)},ph0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new oT({$metadata:Z(f),...w});return l($,f.body.Error)},uh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new XT({$metadata:Z(f),...w});return l($,f.body.Error)},th0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new GT({$metadata:Z(f),...w});return l($,f.body.Error)},fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);if(s.messages==="")w[br]=[];else if(s[br]!=null&&s[br][v0]!=null)w[br]=Ns0(A0(s[br][v0]),h);let $=new sT({$metadata:Z(f),...w});return l($,f.body.Error)},hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new LT({$metadata:Z(f),...w});return l($,f.body.Error)},ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new i5({$metadata:Z(f),...w});return l($,f.body.Error)},sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new WT({$metadata:Z(f),...w});return l($,f.body.Error)},$w0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new c5({$metadata:Z(f),...w});return l($,f.body.Error)},rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new g5({$metadata:Z(f),...w});return l($,f.body.Error)},Ew0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new tT({$metadata:Z(f),...w});return l($,f.body.Error)},Tw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new x5({$metadata:Z(f),...w});return l($,f.body.Error)},Uw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new ZT({$metadata:Z(f),...w});return l($,f.body.Error)},Fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new e5({$metadata:Z(f),...w});return l($,f.body.Error)},Cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new zT({$metadata:Z(f),...w});return l($,f.body.Error)},Iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new kT({$metadata:Z(f),...w});return l($,f.body.Error)},Lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new yT({$metadata:Z(f),...w});return l($,f.body.Error)},Bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new nT({$metadata:Z(f),...w});return l($,f.body.Error)},Aw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new gT({$metadata:Z(f),...w});return l($,f.body.Error)},Gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new a5({$metadata:Z(f),...w});return l($,f.body.Error)},Ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new eT({$metadata:Z(f),...w});return l($,f.body.Error)},zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new wT({$metadata:Z(f),...w});return l($,f.body.Error)},Rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new uT({$metadata:Z(f),...w});return l($,f.body.Error)},Xw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new ST({$metadata:Z(f),...w});return l($,f.body.Error)},Sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new BT({$metadata:Z(f),...w});return l($,f.body.Error)},Yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new aT({$metadata:Z(f),...w});return l($,f.body.Error)},Mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new $T({$metadata:Z(f),...w});return l($,f.body.Error)},Qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new o5({$metadata:Z(f),...w});return l($,f.body.Error)},Kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new _5({$metadata:Z(f),...w});return l($,f.body.Error)},Zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new vT({$metadata:Z(f),...w});return l($,f.body.Error)},Jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new PT({$metadata:Z(f),...w});return l($,f.body.Error)},Vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new dT({$metadata:Z(f),...w});return l($,f.body.Error)},Pw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new p5({$metadata:Z(f),...w});return l($,f.body.Error)},Hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new u5({$metadata:Z(f),...w});return l($,f.body.Error)},Nw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new t5({$metadata:Z(f),...w});return l($,f.body.Error)},Dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new YT({$metadata:Z(f),...w});return l($,f.body.Error)},qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new rT({$metadata:Z(f),...w});return l($,f.body.Error)},kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new UT({$metadata:Z(f),...w});return l($,f.body.Error)},yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new AT({$metadata:Z(f),...w});return l($,f.body.Error)},jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new RT({$metadata:Z(f),...w});return l($,f.body.Error)},Ow0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new JT({$metadata:Z(f),...w});return l($,f.body.Error)},lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new HT({$metadata:Z(f),...w});return l($,f.body.Error)},vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new DT({$metadata:Z(f),...w});return l($,f.body.Error)},bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new qT({$metadata:Z(f),...w});return l($,f.body.Error)},mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new VT({$metadata:Z(f),...w});return l($,f.body.Error)},dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new NT({$metadata:Z(f),...w});return l($,f.body.Error)},iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new mT({$metadata:Z(f),...w});return l($,f.body.Error)},cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new iT({$metadata:Z(f),...w});return l($,f.body.Error)},gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=A(s[S]);let $=new xT({$metadata:Z(f),...w});return l($,f.body.Error)},sk=(f,h)=>{let w=new P(Df);if(f[u0]!=null)w.c(P.of(q$0,f[u0]).n(u0));if(f[p]!=null)w.c(P.of(T$0,f[p]).n(p));return w},xw0=(f,h)=>{let w=new P(Rw);if(f[h0]!=null)w.c(P.of(yf,f[h0]).n(h0));if(w.cc(f,Gf),f[F$]!=null)w.c(P.of(E$0,String(f[F$])).n(F$));return w},_w0=(f,h)=>{let w=new P(Ak);if(f[E$]!=null)w.c(P.of(I$0,f[E$]).n(E$));if(f[A$]!=null)w.c(Ts0(f[A$],h).n(A$));return w},nw0=(f,h)=>{let w=new P($U);if(f[F0]!=null)w.c(P.of(D8,f[F0]).n(F0));return w.lc(f,"Changes","Changes",()=>ew0(f[Bk],h)),w},ew0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return _w0(w,h).n(Ak)})},$k=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(ir,w).n(J8)})},aw0=(f,h)=>{let w=new P(L$0);if(f[T1]!=null)w.c(P.of(S$0,f[T1]).n(T1));if(f[E$]!=null)w.c(P.of(B$0,f[E$]).n(E$));return w.lc(f,"CidrList","CidrList",()=>pw0(f[Y$0],h)),w},ow0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return aw0(w,h).n(zf)})},pw0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(RN,w).n(RN)})},uw0=(f,h)=>{let w=new P(Xw);if(f[U$]!=null)w.c(P.of(Sr0,f[U$]).n(U$));if(f[T1]!=null)w.c(P.of(X$0,f[T1]).n(T1));return w},tw0=(f,h)=>{let w=new P(Sw);return w.cc(f,FU),w.cc(f,CU),w},fs0=(f,h)=>{let w=new P(Yw);if(f[qf]!=null)w.c(P.of(v$0,f[qf]).n(qf));if(f[kf]!=null)w.c(P.of(b$0,f[kf]).n(kf));if(f[jf]!=null)w.c(P.of(m$0,f[jf]).n(jf));return w},hs0=(f,h)=>{let w=new P(Mw);if(w.cc(f,sU),w.cc(f,UU),f[Sw]!=null)w.c(tw0(f[Sw],h).n(Sw));if(f[Aw]!=null)w.c(P.of(Aw,String(f[Aw])).n(Aw));return w},ws0=(f,h)=>{let w=new P(Qw);if(w.cc(f,bh),f[Af]!=null)w.c(P.of(Af,String(f[Af])).n(Af));if(f[Z0]!=null)w.c(P.of(c$0,f[Z0]).n(Z0));if(w.cc(f,gr),w.cc(f,mr),w.cc(f,_r),f[zw]!=null)w.c(P.of(zw,String(f[zw])).n(zw));if(f[If]!=null)w.c(P.of(If,String(f[If])).n(If));if(f[Ww]!=null)w.c(P.of(Ww,String(f[Ww])).n(Ww));if(f[Bf]!=null)w.c(P.of(Bf,String(f[Bf])).n(Bf));if(f[Ff]!=null)w.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Lf]!=null)w.c(P.of(Lf,String(f[Lf])).n(Lf));if(w.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>$k(f[Lw],h)),f[Cf]!=null)w.c(P.of(Cf,String(f[Cf])).n(Cf));if(w.lc(f,"Regions","Regions",()=>rk(f[Bw],h)),f[Df]!=null)w.c(sk(f[Df],h).n(Df));return w.cc(f,cr),w.cc(f,IU),w},rk=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(i$0,w).n(u0)})},ss0=(f,h)=>{let w=new P(TU);if(f[F0]!=null)w.c(P.of(D8,f[F0]).n(F0));if(f[B$]!=null)w.c(P.of(x$0,String(f[B$])).n(B$));return w},$s0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(QN,w).n(QN)})},rs0=(f,h)=>{let w=new P(RU);if(f[y0]!=null)w.c(P.of(n$0,f[y0]).n(y0));return w},Es0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return rs0(w,h).n(RU)})},Ts0=(f,h)=>{let w=new P(A$);if(f[p]!=null)w.c(P.of(Gf,f[p]).n(p));if(f[Z0]!=null)w.c(P.of(wr0,f[Z0]).n(Z0));if(f[G$]!=null)w.c(P.of(u$0,f[G$]).n(G$));if(f[R$]!=null)w.c(P.of(hr0,String(f[R$])).n(R$));if(f[u0]!=null)w.c(P.of(fr0,f[u0]).n(u0));if(f[Yw]!=null)w.c(fs0(f[Yw],h).n(Yw));if(f[C$]!=null)w.c(P.of(p$0,f[C$]).n(C$));if(f[L$]!=null)w.c(P.of(t$0,String(f[L$])).n(L$));if(f[p0]!=null)w.c(P.of(p0,String(f[p0])).n(p0));if(w.lc(f,"ResourceRecords","ResourceRecords",()=>Es0(f[r$],h)),f[Rw]!=null)w.c(xw0(f[Rw],h).n(Rw));if(w.cc(f,ir),w.cc(f,AU),f[Xw]!=null)w.c(uw0(f[Xw],h).n(Xw));if(f[Mw]!=null)w.c(hs0(f[Mw],h).n(Mw));return w},Us0=(f,h)=>{let w=new P(XU);if(f[Kw]!=null)w.c(P.of(Gk,f[Kw]).n(Kw));if(f[y0]!=null)w.c(P.of(Gr0,f[y0]).n(y0));return w},Fs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Gk,w).n(Kw)})},Cs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return Us0(w,h).n(XU)})},Is0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Ar0,w).n(yf)})},ar=(f,h)=>{let w=new P(P0);return w.cc(f,er),w.cc(f,nr),w},Ls0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},Bs0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=A(f[u0]);if(f[p]!=null)w[p]=A(f[p]);return w},As0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=A(f[h0]);if(f[Gf]!=null)w[Gf]=A(f[Gf]);if(f[F$]!=null)w[F$]=e0(f[F$]);return w},e1=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[G1]!=null)w[G1]=A(f[G1]);if(f[B8]!=null)w[B8]=j(o$(f[B8]));if(f[F0]!=null)w[F0]=A(f[F0]);return w},Gs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},Ws0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},zs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Rs0(w,h)})},Rs0=(f,h)=>{let w={};if(f[MC]!=null)w[MC]=A(f[MC]);if(f[T1]!=null)w[T1]=A(f[T1]);return w},Xs0=(f,h)=>{let w={};if(f[T$]!=null)w[T$]=A(f[T$]);if(f[I0]!=null)w[I0]=A(f[I0]);if(f[p]!=null)w[p]=A(f[p]);if(f[rh]!=null)w[rh]=r1(f[rh]);return w},Ss0=(f,h)=>{let w={};if(f[U$]!=null)w[U$]=A(f[U$]);if(f[T1]!=null)w[T1]=A(f[T1]);return w},Ys0=(f,h)=>{let w={};if(f[lC]!=null)w[lC]=M0(f[lC]);if(f[Z8]!=null)w[Z8]=jS(f[Z8]);if(f[JC]!=null)w[JC]=A(f[JC]);if(f[U8]!=null)w[U8]=M0(f[U8]);if(f[nC]!=null)w[nC]=A(f[nC]);if(f[s8]!=null)w[s8]=A(f[s8]);if(f[S8]!=null)w[S8]=A(f[S8]);if(f.Dimensions==="")w[Jr]=[];else if(f[Jr]!=null&&f[Jr][XN]!=null)w[Jr]=Ps0(A0(f[Jr][XN]),h);return w},Ms0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Qs0(w,h)})},Qs0=(f,h)=>{let w={};if(f[T$]!=null)w[T$]=A(f[T$]);if(f[I0]!=null)w[I0]=A(f[I0]);if(f[p]!=null)w[p]=A(f[p]);if(f[rh]!=null)w[rh]=r1(f[rh]);return w},Ks0=(f,h)=>{let w={};if(f[FU]!=null)w[FU]=A(f[FU]);if(f[CU]!=null)w[CU]=A(f[CU]);return w},or=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f.NameServers==="")w[Dr]=[];else if(f[Dr]!=null&&f[Dr][YN]!=null)w[Dr]=Zs0(A0(f[Dr][YN]),h);return w},Zs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},Js0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return or(w,h)})},Vs0=(f,h)=>{let w={};if(f[p]!=null)w[p]=A(f[p]);if(f[y0]!=null)w[y0]=A(f[y0]);return w},Ps0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Vs0(w,h)})},Hs0=(f,h)=>{let w={};if(f[X8]!=null)w[X8]=A(f[X8]);if(f[W$]!=null)w[W$]=A(f[W$]);return w},Ns0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},Ds0=(f,h)=>{let w={};if(f[qf]!=null)w[qf]=A(f[qf]);if(f[kf]!=null)w[kf]=A(f[kf]);if(f[jf]!=null)w[jf]=A(f[jf]);return w},Ek=(f,h)=>{let w={};if(f[qf]!=null)w[qf]=A(f[qf]);if(f[KC]!=null)w[KC]=A(f[KC]);if(f[kf]!=null)w[kf]=A(f[kf]);if(f[ZC]!=null)w[ZC]=A(f[ZC]);if(f[jf]!=null)w[jf]=A(f[jf]);if(f[W8]!=null)w[W8]=A(f[W8]);return w},qs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ek(w,h)})},ks0=(f,h)=>{let w={};if(f[sU]!=null)w[sU]=A(f[sU]);if(f[UU]!=null)w[UU]=A(f[UU]);if(f[Sw]!=null)w[Sw]=Ks0(f[Sw],h);if(f[Aw]!=null)w[Aw]=M0(f[Aw]);return w},SU=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f[I$]!=null)w[I$]=Ck(f[I$],h);if(f[Qw]!=null)w[Qw]=ys0(f[Qw],h);if(f[Gw]!=null)w[Gw]=r1(f[Gw]);if(f[PC]!=null)w[PC]=Ys0(f[PC],h);return w},ys0=(f,h)=>{let w={};if(f[bh]!=null)w[bh]=A(f[bh]);if(f[Af]!=null)w[Af]=M0(f[Af]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[gr]!=null)w[gr]=A(f[gr]);if(f[mr]!=null)w[mr]=A(f[mr]);if(f[_r]!=null)w[_r]=A(f[_r]);if(f[zw]!=null)w[zw]=M0(f[zw]);if(f[If]!=null)w[If]=M0(f[If]);if(f[Ww]!=null)w[Ww]=e0(f[Ww]);if(f[Bf]!=null)w[Bf]=e0(f[Bf]);if(f[Ff]!=null)w[Ff]=e0(f[Ff]);if(f[Lf]!=null)w[Lf]=M0(f[Lf]);if(f.ChildHealthChecks==="")w[Lw]=[];else if(f[Lw]!=null&&f[Lw][J8]!=null)w[Lw]=Ws0(A0(f[Lw][J8]),h);if(f[Cf]!=null)w[Cf]=e0(f[Cf]);if(f.Regions==="")w[Bw]=[];else if(f[Bw]!=null&&f[Bw][u0]!=null)w[Bw]=Os0(A0(f[Bw][u0]),h);if(f[Df]!=null)w[Df]=Bs0(f[Df],h);if(f[cr]!=null)w[cr]=A(f[cr]);if(f[IU]!=null)w[IU]=A(f[IU]);return w},js0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=A(f[u0]);if(f[bh]!=null)w[bh]=A(f[bh]);if(f[R8]!=null)w[R8]=f$0(f[R8],h);return w},Tk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return js0(w,h)})},Os0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},ls0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return SU(w,h)})},YU=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[p]!=null)w[p]=A(f[p]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f[NC]!=null)w[NC]=vs0(f[NC],h);if(f[I8]!=null)w[I8]=r1(f[I8]);if(f[I$]!=null)w[I$]=Ck(f[I$],h);return w},vs0=(f,h)=>{let w={};if(f[F0]!=null)w[F0]=A(f[F0]);if(f[B$]!=null)w[B$]=e0(f[B$]);return w},bs0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},ms0=(f,h)=>{let w={};if(f[r8]!=null)w[r8]=A(f[r8]);if(f[E8]!=null)w[E8]=A(f[E8]);return w},Uk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return YU(w,h)})},ds0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return is0(w,h)})},is0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=A(f[h0]);if(f[p]!=null)w[p]=A(f[p]);if(f[$8]!=null)w[$8]=ms0(f[$8],h);return w},Fk=(f,h)=>{let w={};if(f[p]!=null)w[p]=A(f[p]);if(f[dC]!=null)w[dC]=A(f[dC]);if(f[vC]!=null)w[vC]=M0(f[vC]);if(f[A8]!=null)w[A8]=A(f[A8]);if(f[G8]!=null)w[G8]=M0(f[G8]);if(f[DC]!=null)w[DC]=A(f[DC]);if(f[qC]!=null)w[qC]=M0(f[qC]);if(f[gC]!=null)w[gC]=M0(f[gC]);if(f[jC]!=null)w[jC]=A(f[jC]);if(f[T8]!=null)w[T8]=A(f[T8]);if(f[yC]!=null)w[yC]=A(f[yC]);if(f[kC]!=null)w[kC]=A(f[kC]);if(f[G1]!=null)w[G1]=A(f[G1]);if(f[W$]!=null)w[W$]=A(f[W$]);if(f[QC]!=null)w[QC]=j(o$(f[QC]));if(f[xC]!=null)w[xC]=j(o$(f[xC]));return w},cs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Fk(w,h)})},Ck=(f,h)=>{let w={};if(f[z8]!=null)w[z8]=A(f[z8]);if(f[OC]!=null)w[OC]=A(f[OC]);return w},gs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return xs0(w,h)})},xs0=(f,h)=>{let w={};if(f[T1]!=null)w[T1]=A(f[T1]);return w},V8=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[h0]!=null)w[h0]=A(f[h0]);if(f[rU]!=null)w[rU]=A(f[rU]);return w},_s0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return V8(w,h)})},ns0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},es0=(f,h)=>{let w={};if(f[y0]!=null)w[y0]=A(f[y0]);return w},as0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return es0(w,h)})},os0=(f,h)=>{let w={};if(f[p]!=null)w[p]=A(f[p]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[G$]!=null)w[G$]=A(f[G$]);if(f[R$]!=null)w[R$]=r1(f[R$]);if(f[u0]!=null)w[u0]=A(f[u0]);if(f[Yw]!=null)w[Yw]=Ds0(f[Yw],h);if(f[C$]!=null)w[C$]=A(f[C$]);if(f[L$]!=null)w[L$]=e0(f[L$]);if(f[p0]!=null)w[p0]=r1(f[p0]);if(f.ResourceRecords==="")w[r$]=[];else if(f[r$]!=null&&f[r$][RU]!=null)w[r$]=as0(A0(f[r$][RU]),h);if(f[Rw]!=null)w[Rw]=As0(f[Rw],h);if(f[ir]!=null)w[ir]=A(f[ir]);if(f[AU]!=null)w[AU]=A(f[AU]);if(f[Xw]!=null)w[Xw]=Ss0(f[Xw],h);if(f[Mw]!=null)w[Mw]=ks0(f[Mw],h);return w},ps0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return os0(w,h)})},Ik=(f,h)=>{let w={};if(f[L8]!=null)w[L8]=A(f[L8]);if(f[yf]!=null)w[yf]=A(f[yf]);if(f.Tags==="")w[vr]=[];else if(f[vr]!=null&&f[vr][XU]!=null)w[vr]=w$0(A0(f[vr][XU]),h);return w},us0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ik(w,h)})},ts0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=r1(f[y0]);return w},f$0=(f,h)=>{let w={};if(f[G1]!=null)w[G1]=A(f[G1]);if(f[VC]!=null)w[VC]=j(o$(f[VC]));return w},h$0=(f,h)=>{let w={};if(f[Kw]!=null)w[Kw]=A(f[Kw]);if(f[y0]!=null)w[y0]=A(f[y0]);return w},w$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return h$0(w,h)})},s$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return pr(w,h)})},pr=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[rh]!=null)w[rh]=M0(f[rh]);if(f[p]!=null)w[p]=A(f[p]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[wh]!=null)w[wh]=A(f[wh]);if(f[F0]!=null)w[F0]=A(f[F0]);return w},MU=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[h0]!=null)w[h0]=A(f[h0]);if(f[p]!=null)w[p]=A(f[p]);if(f[p0]!=null)w[p0]=r1(f[p0]);if(f[Y8]!=null)w[Y8]=A(f[Y8]);if(f[v0]!=null)w[v0]=A(f[v0]);if(f[z$]!=null)w[z$]=A(f[z$]);if(f[g1]!=null)w[g1]=M0(f[g1]);if(f[K8]!=null)w[K8]=A(f[K8]);return w},P8=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return MU(w,h)})},$$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return r$0(w,h)})},r$0=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[p]!=null)w[p]=A(f[p]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[_C]!=null)w[_C]=M0(f[_C]);if(f[M8]!=null)w[M8]=M0(f[M8]);return w},H8=(f,h)=>{let w={};if(f[er]!=null)w[er]=A(f[er]);if(f[nr]!=null)w[nr]=A(f[nr]);return w},Lk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return H8(w,h)})},Z=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var E$="Action",E$0="AliasHealthEnabled",Df="AlarmIdentifier",T$0="AlarmName",U$0="AddTags",Rw="AliasTarget",F$0="AssociateVPCComment",C$0="AssociateVPCWithHostedZoneRequest",sU="AWSRegion",T$="Arn",Aw="Bias",F0="Comment",I$0="ChangeAction",$U="ChangeBatch",Yr="CidrBlocks",MC="CidrBlock",qf="ContinentCode",L$0="CidrCollectionChange",B$0="CidrCollectionChangeAction",A$0="ChangeCidrCollectionRequest",G$0="CreateCidrCollectionRequest",Mr="CidrCollections",kf="CountryCode",QC="CreatedDate",Lw="ChildHealthChecks",W$0="CreateHealthCheckRequest",J8="ChildHealthCheck",z$0="CreateHostedZoneRequest",$0="ChangeInfo",Qr="CheckerIpRanges",U$="CollectionId",R$0="CreateKeySigningKeyRequest",Kr="CidrLocations",X$0="CidrLocationNameDefaultAllowed",S$0="CidrLocationNameDefaultNotAllowed",Y$0="CidrList",M$0="CidrNonce",Q$0="CollectionName",KC="ContinentName",ZC="CountryName",JC="ComparisonOperator",K$0="CreateQueryLoggingConfigRequest",q0="CallerReference",Xw="CidrRoutingConfig",Z$0="CreateReusableDelegationSetRequest",J$0="ChangeResourceRecordSetsRequest",VC="CheckedTime",V$0="ChangeTagsForResourceRequest",P$0="CreateTrafficPolicyInstanceRequest",H$0="CreateTrafficPolicyRequest",N$0="CreateTrafficPolicyVersionRequest",wU="CollectionVersion",D$0="CreateVPCAssociationAuthorizationRequest",PC="CloudWatchAlarmConfiguration",rU="CloudWatchLogsLogGroupArn",q$0="CloudWatchRegion",Bk="Changes",Ak="Change",RN="Cidr",HC="Collection",NC="Config",Sw="Coordinates",hh="Count",wh="Document",DC="DigestAlgorithmMnemonic",qC="DigestAlgorithmType",kC="DNSKEYRecord",Gf="DNSName",M1="DelegationSet",EU="DelegationSetId",yC="DSRecord",Zr="DelegationSets",jC="DigestValue",k$0="DeleteVPCAssociationAuthorizationRequest",y$0="DisassociateVPCComment",j$0="DisassociateVPCFromHostedZoneRequest",OC="Description",Ff="Disabled",Jr="Dimensions",XN="Dimension",O$0="EDNS0ClientSubnetIP",l$0="EDNS0ClientSubnetMask",lC="EvaluationPeriods",Cf="EnableSNI",F$="EvaluateTargetHealth",C$="Failover",mr="FullyQualifiedDomainName",If="FailureThreshold",vC="Flag",Yw="GeoLocation",v$0="GeoLocationContinentCode",b$0="GeoLocationCountryCode",dr="GeoLocationDetails",Vr="GeoLocationDetailsList",m$0="GeoLocationSubdivisionCode",Mw="GeoProximityLocation",Wf="HealthCheck",Qw="HealthCheckConfig",bC="HealthCheckCount",ir="HealthCheckId",d$0="HealthCheckNonce",Pf="HealthCheckObservations",zU="HealthCheckObservation",i$0="HealthCheckRegion",c$0="HealthCheckType",Gw="HealthCheckVersion",Pr="HealthChecks",Lf="HealthThreshold",V1="HostedZone",TU="HostedZoneConfig",mC="HostedZoneCount",h0="HostedZoneId",vh="HostedZoneIdMarker",Hr="HostedZoneSummaries",SN="HostedZoneSummary",g$0="HostedZoneType",Hf="HostedZones",Bf="Inverted",cr="InsufficientDataHealthStatus",bh="IPAddress",x$0="IsPrivateZone",C0="IsTruncated",I0="Id",Kw="Key",dC="KmsArn",iC="KeyManagementServiceArn",cC="KeySigningKey",Nr="KeySigningKeys",gC="KeyTag",Eh="Location",xC="LastModifiedDate",T1="LocationName",I$="LinkedService",_$0="ListTagsForResourcesRequest",_C="LatestVersion",UU="LocalZoneGroup",FU="Latitude",sh="Limit",CU="Longitude",x1="Marker",u="MaxItems",Ww="MeasureLatency",nC="MetricName",ur="MaxResults",L$="MultiValueAnswer",v0="Message",p="Name",eC="NextContinentCode",aC="NextCountryCode",oC="NextDNSName",pC="NextHostedZoneId",$h="NextMarker",uC="NextRecordIdentifier",tC="NextRecordName",f8="NextRecordType",Dr="NameServers",h8="NextSubdivisionCode",YN="NameServer",k0="NextToken",w8="Nameserver",s8="Namespace",N8="Nonce",$8="Owner",r8="OwningAccount",E8="OwningService",Af="Port",T8="PublicKey",B$="PrivateZone",U8="Period",F8="Protocol",mh="QueryLoggingConfig",qr="QueryLoggingConfigs",Bw="Regions",C8="ResponseCode",IU="RoutingControlArn",D8="ResourceDescription",MN="RecordDataEntry",n$0="RData",kr="RecordData",e$0="ResetElements",QN="ResettableElementName",yf="ResourceId",a$0="ResolverIP",o$0="ResourceIds",zw="RequestInterval",LU="RecordName",gr="ResourcePath",RU="ResourceRecord",yr="ResourceRecordSets",I8="ResourceRecordSetCount",p$0="ResourceRecordSetFailover",u$0="ResourceRecordSetIdentifier",t$0="ResourceRecordSetMultiValueAnswer",fr0="ResourceRecordSetRegion",hr0="ResourceRecordSetWeight",A$="ResourceRecordSet",wr0="RRType",r$="ResourceRecords",BU="RecordType",sr0="RemoveTagKeys",xr="ResourceTagSet",jr="ResourceTagSets",L8="ResourceType",u0="Region",G1="Status",B8="SubmittedAt",A8="SigningAlgorithmMnemonic",G8="SigningAlgorithmType",jf="SubdivisionCode",$r0="StartContinentCode",rr0="StartCountryCode",G$="SetIdentifier",Er0="SigningKeyName",Tr0="SigningKeyString",Ur0="SigningKeyStatus",W$="StatusMessage",W8="SubdivisionName",z8="ServicePrincipal",R8="StatusReport",Fr0="StartRecordIdentifier",Cr0="StartRecordName",Ir0="StartRecordType",_r="SearchString",Lr0="StartSubdivisionCode",X8="ServeSignature",S8="Statistic",Y8="State",Z0="Type",Gk="TagKey",Q1="TrafficPolicy",q8="TrafficPolicyComment",M8="TrafficPolicyCount",Wk="TrafficPolicyDocument",z$="TrafficPolicyId",Q8="TrafficPolicyInstanceCount",AU="TrafficPolicyInstanceId",GU="TrafficPolicyIdMarker",_1="TrafficPolicyInstanceNameMarker",n1="TrafficPolicyInstanceTypeMarker",W1="TrafficPolicyInstance",A1="TrafficPolicyInstances",Br0="TrafficPolicyName",Or="TrafficPolicySummaries",KN="TrafficPolicySummary",K8="TrafficPolicyType",g1="TrafficPolicyVersion",WU="TrafficPolicyVersionMarker",lr="TrafficPolicies",Ar0="TagResourceId",p0="TTL",Gr0="TagValue",XU="Tag",vr="Tags",Z8="Threshold",Wr0="UpdateHealthCheckRequest",zr0="UpdateHostedZoneCommentRequest",Rr0="UpdateTrafficPolicyCommentRequest",Xr0="UpdateTrafficPolicyInstanceRequest",Sr0="UUID",y0="Value",P0="VPC",nr="VPCId",er="VPCRegion",Nf="VPCs",rh="Version",R$="Weight",Yr0="continentcode",Mr0="countrycode",Qr0="delegationsetid",Kr0="dnsname",Zr0="edns0clientsubnetip",Jr0="edns0clientsubnetmask",Vr0="hostedzonetype",tr="hostedzoneid",Pr0="identifier",zk="id",Of="location",f4="maxresults",a1="maxitems",k8="marker",zf="member",S="message",br="messages",X$="nexttoken",Hr0="name",Nr0="recordname",Dr0="recordtype",qr0="resolverip",kr0="subdivisioncode",yr0="startcontinentcode",jr0="startcountrycode",Or0="startsubdivisioncode",lr0="type",vr0="trafficpolicyid",y8="trafficpolicyinstancename",j8="trafficpolicyinstancetype",br0="trafficpolicyversion",mr0="vpcid",c0='<?xml version="1.0" encoding="UTF-8"?>',dr0="version",ir0="vpcregion";class O8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(ZN).de(dD).build(){}D();k();J();class l8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(JN).de(iD).build(){}D();k();J();class v8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(VN).de(cD).build(){}D();k();J();class b8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),GN(w),O(w)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(PN).de(gD).build(){}D();k();J();class m8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(HN).de(xD).build(){}D();k();J();class d8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(NN).de(_D).build(){}D();k();J();class i8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(DN).de(nD).build(){}D();k();J();class c8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(qN).de(eD).build(){}D();k();J();class g8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(kN).de(aD).build(){}D();k();J();class x8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(yN).de(oD).build(){}D();k();J();class _8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(jN).de(pD).build(){}D();k();J();class n8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(ON).de(uD).build(){}D();k();J();class e8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(lN).de(tD).build(){}D();k();J();class a8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(vN).de(fq).build(){}D();k();J();class o8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(bN).de(hq).build(){}D();k();J();class p8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(mN).de(wq).build(){}D();k();J();class u8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(dN).de(sq).build(){}D();k();J();class t8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(iN).de($q).build(){}D();k();J();class fI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(cN).de(rq).build(){}D();k();J();class hI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(gN).de(Eq).build(){}D();k();J();class wI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(xN).de(Tq).build(){}D();k();J();class sI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(_N).de(Uq).build(){}D();k();J();class $I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(nN).de(Fq).build(){}D();k();J();class rI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(eN).de(Cq).build(){}D();k();J();class EI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(aN).de(Iq).build(){}D();k();J();class TI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(oN).de(Lq).build(){}D();k();J();class UI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(pN).de(Bq).build(){}D();k();J();class FI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(uN).de(Aq).build(){}D();k();J();class CI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(tN).de(Gq).build(){}D();k();J();class II extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(fD).de(Wq).build(){}D();k();J();class LI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(hD).de(zq).build(){}D();k();J();class BI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(wD).de(Rq).build(){}D();k();J();class AI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(sD).de(Xq).build(){}D();k();J();class GI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser($D).de(Sq).build(){}D();k();J();class WI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(rD).de(Yq).build(){}D();k();J();class zI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(ED).de(Mq).build(){}D();k();J();class RI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(TD).de(Qq).build(){}D();k();J();class XI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(UD).de(Kq).build(){}D();k();J();class SI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(FD).de(Zq).build(){}D();k();J();class YI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(CD).de(Jq).build(){}D();k();J();class MI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(ID).de(Vq).build(){}D();k();J();class QI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(LD).de(Pq).build(){}D();k();J();class KI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(BD).de(Hq).build(){}D();k();J();class ZI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(AD).de(Nq).build(){}D();k();J();class JI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(GD).de(Dq).build(){}D();k();J();class VI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(WD).de(qq).build(){}D();k();J();class PI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(zD).de(kq).build(){}D();k();J();class HI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(RD).de(yq).build(){}D();k();J();class NI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(XD).de(jq).build(){}D();k();J();class DI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(SD).de(Oq).build(){}D();k();J();class qI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(YD).de(lq).build(){}D();k();J();class kI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(QD).de(bq).build(){}D();k();J();class yI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(KD).de(mq).build(){}D();k();J();class jI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(MD).de(vq).build(){}D();k();J();class OI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(ZD).de(dq).build(){}D();k();J();class lI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(JD).de(iq).build(){}D();k();J();class vI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(VD).de(cq).build(){}D();k();J();class bI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(PD).de(gq).build(){}D();k();J();class mI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(HD).de(xq).build(){}D();k();J();class dI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(ND).de(_q).build(){}D();k();J();class iI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(qD).de(eq).build(){}D();k();J();class cI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(kD).de(aq).build(){}D();k();J();class gI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(DD).de(nq).build(){}D();k();J();class xI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(yD).de(oq).build(){}D();k();J();class _I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(jD).de(pq).build(){}D();k();J();class nI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(OD).de(uq).build(){}D();k();J();class eI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(lD).de(tq).build(){}D();k();J();class aI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(vD).de(fk).build(){}D();k();J();class oI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(bD).de(hk).build(){}D();k();J();class pI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(mD).de(wk).build(){}var cr0={ActivateKeySigningKeyCommand:O8,AssociateVPCWithHostedZoneCommand:l8,ChangeCidrCollectionCommand:v8,ChangeResourceRecordSetsCommand:b8,ChangeTagsForResourceCommand:m8,CreateCidrCollectionCommand:d8,CreateHealthCheckCommand:i8,CreateHostedZoneCommand:c8,CreateKeySigningKeyCommand:g8,CreateQueryLoggingConfigCommand:x8,CreateReusableDelegationSetCommand:_8,CreateTrafficPolicyCommand:n8,CreateTrafficPolicyInstanceCommand:e8,CreateTrafficPolicyVersionCommand:a8,CreateVPCAssociationAuthorizationCommand:o8,DeactivateKeySigningKeyCommand:p8,DeleteCidrCollectionCommand:u8,DeleteHealthCheckCommand:t8,DeleteHostedZoneCommand:fI,DeleteKeySigningKeyCommand:hI,DeleteQueryLoggingConfigCommand:wI,DeleteReusableDelegationSetCommand:sI,DeleteTrafficPolicyCommand:$I,DeleteTrafficPolicyInstanceCommand:rI,DeleteVPCAssociationAuthorizationCommand:EI,DisableHostedZoneDNSSECCommand:TI,DisassociateVPCFromHostedZoneCommand:UI,EnableHostedZoneDNSSECCommand:FI,GetAccountLimitCommand:CI,GetChangeCommand:II,GetCheckerIpRangesCommand:LI,GetDNSSECCommand:BI,GetGeoLocationCommand:AI,GetHealthCheckCommand:GI,GetHealthCheckCountCommand:WI,GetHealthCheckLastFailureReasonCommand:zI,GetHealthCheckStatusCommand:RI,GetHostedZoneCommand:XI,GetHostedZoneCountCommand:SI,GetHostedZoneLimitCommand:YI,GetQueryLoggingConfigCommand:MI,GetReusableDelegationSetCommand:QI,GetReusableDelegationSetLimitCommand:KI,GetTrafficPolicyCommand:ZI,GetTrafficPolicyInstanceCommand:JI,GetTrafficPolicyInstanceCountCommand:VI,ListCidrBlocksCommand:PI,ListCidrCollectionsCommand:HI,ListCidrLocationsCommand:NI,ListGeoLocationsCommand:DI,ListHealthChecksCommand:qI,ListHostedZonesCommand:jI,ListHostedZonesByNameCommand:kI,ListHostedZonesByVPCCommand:yI,ListQueryLoggingConfigsCommand:OI,ListResourceRecordSetsCommand:lI,ListReusableDelegationSetsCommand:vI,ListTagsForResourceCommand:bI,ListTagsForResourcesCommand:mI,ListTrafficPoliciesCommand:dI,ListTrafficPolicyInstancesCommand:gI,ListTrafficPolicyInstancesByHostedZoneCommand:iI,ListTrafficPolicyInstancesByPolicyCommand:cI,ListTrafficPolicyVersionsCommand:xI,ListVPCAssociationAuthorizationsCommand:_I,TestDNSAnswerCommand:nI,UpdateHealthCheckCommand:eI,UpdateHostedZoneCommentCommand:aI,UpdateTrafficPolicyCommentCommand:oI,UpdateTrafficPolicyInstanceCommand:pI};class dh extends SC{}Es(cr0,dh);E4();T4();U4();d$();Yh();var S$=o(m0(),1);rE();D();$w();J();var Rk=o(O0(),1);cf();var Xk=async(f,h,w)=>{return{operation:Xh(h).operation,region:await L1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function gr0(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var Sk=(f)=>{let h=[];switch(f.operation){default:h.push(gr0(f))}return h},Yk=(f)=>{return{...Rk.resolveAwsSdkSigV4Config(f)}};var Mk=(f)=>{return{...f,useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},c={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Qk={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.750.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/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 vk=o(O0(),1);z5();Yh();R5();$w();Kh();wr();X5();wf();var Ok=o(O0(),1);J();pw();S5();bs();D$();df();var Kk={["required"]:!1,type:"String"},Zk={["required"]:!0,default:!1,type:"Boolean"},Jk={["ref"]:"Endpoint"},qk={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},kk={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},lf={},Vk={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Pk={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},Hk=[qk],Nk=[kk],Dk=[{["ref"]:"Region"}],_r0={version:"1.0",parameters:{Region:Kk,UseDualStack:Zk,UseFIPS:Zk,Endpoint:Kk},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Jk]}],rules:[{conditions:Hk,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Nk,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Jk,properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:Dk}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:Dk,assign:"PartitionResult"}],rules:[{conditions:[qk,kk],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Vk]},Pk],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Hk,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Vk,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:lf,headers:lf},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Nk,rules:[{conditions:[Pk],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:lf,headers:lf},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:lf,headers:lf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},yk=_r0;var nr0=new gh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jk=(f,h={})=>{return nr0.get(f,()=>xh(yk,{endpointParams:f,logger:h.logger}))};t1.aws=_h;var lk=(f)=>{return{apiVersion:"2014-05-15",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??jk,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Sk,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new Ok.AwsSdkSigV4Signer}],logger:f?.logger??new _f,serviceId:f?.serviceId??"Route 53 Domains",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Jf,utf8Encoder:f?.utf8Encoder??vs}};J();Y5();J();var bk=(f)=>{Cs(process.version);let h=cs(f),w=()=>h().then(Fs),s=lk(f);vk.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??l5,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:Qk.version}),maxAttempts:f?.maxAttempts??z0(ws,f),region:f?.region??z0(Sh,{..._w,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...$s,default:async()=>(await w()).retryMode||Zh},f),sha256:f?.sha256??Fw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ws,useDualstackEndpoint:f?.useDualstackEndpoint??z0(gw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(xw,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};M5();F1();J();var mk=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},dk=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var QU=(f)=>f,ik=(f,h)=>{let w={...QU(gs(f)),...QU(Is(f)),...QU(Zw(f)),...QU(mk(f))};return h.forEach((s)=>s.configure(w)),{...f,...xs(w),...Ls(w),...Jw(w),...dk(w)}};class uI extends ww{config;constructor(...[f]){let h=bk(f||{}),w=Mk(h),s=jw(w),$=ss(s),r=nw($),E=Vw(r),T=uw(E),U=Yk(T),F=ik(U,f?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(iw(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(ew(this.config)),this.middlewareStack.use(Pw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(S$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Xk,identityProviderConfigProvider:async(C)=>new S$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(S$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();D();k();J();J();J();class o1 extends $f{constructor(f){super(f);Object.setPrototypeOf(this,o1.prototype)}}class KU extends o1{name="DomainLimitExceeded";$fault="client";constructor(f){super({name:"DomainLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,KU.prototype)}}class ZU extends o1{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,ZU.prototype)}}class JU extends o1{name="OperationLimitExceeded";$fault="client";constructor(f){super({name:"OperationLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,JU.prototype)}}class VU extends o1{name="UnsupportedTLD";$fault="client";constructor(f){super({name:"UnsupportedTLD",$fault:"client",...f});Object.setPrototypeOf(this,VU.prototype)}}class PU extends o1{name="DnssecLimitExceeded";$fault="client";constructor(f){super({name:"DnssecLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,PU.prototype)}}class HU extends o1{name="DuplicateRequest";$fault="client";requestId;constructor(f){super({name:"DuplicateRequest",$fault:"client",...f});Object.setPrototypeOf(this,HU.prototype),this.requestId=f.requestId}}class NU extends o1{name="TLDRulesViolation";$fault="client";constructor(f){super({name:"TLDRulesViolation",$fault:"client",...f});Object.setPrototypeOf(this,NU.prototype)}}var ck=(f)=>({...f,...f.Password&&{Password:U0}}),gk=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}});var xk=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.AbuseContactEmail&&{AbuseContactEmail:U0},...f.AbuseContactPhone&&{AbuseContactPhone:U0},...f.BillingContact&&{BillingContact:U0}}),_k=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),nk=(f)=>({...f,...f.emailAddress&&{emailAddress:U0}}),ek=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}}),ak=(f)=>({...f,...f.AuthCode&&{AuthCode:U0},...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),ok=(f)=>({...f,...f.Password&&{Password:U0}}),pk=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),uk=(f)=>({...f,...f.FIAuthKey&&{FIAuthKey:U0}});var s0=o(O0(),1);F1();J();var tk=async(f,h)=>{let w=T0("AcceptDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},fy=async(f,h)=>{let w=T0("AssociateDelegationSignerToDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},hy=async(f,h)=>{let w=T0("CancelDomainTransferToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},wy=async(f,h)=>{let w=T0("CheckDomainAvailability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},sy=async(f,h)=>{let w=T0("CheckDomainTransferability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},$y=async(f,h)=>{let w=T0("DeleteDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},ry=async(f,h)=>{let w=T0("DeleteTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ey=async(f,h)=>{let w=T0("DisableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ty=async(f,h)=>{let w=T0("DisableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Uy=async(f,h)=>{let w=T0("DisassociateDelegationSignerFromDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Fy=async(f,h)=>{let w=T0("EnableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Cy=async(f,h)=>{let w=T0("EnableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Iy=async(f,h)=>{let w=T0("GetContactReachabilityStatus"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ly=async(f,h)=>{let w=T0("GetDomainDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},By=async(f,h)=>{let w=T0("GetDomainSuggestions"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ay=async(f,h)=>{let w=T0("GetOperationDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Gy=async(f,h)=>{let w=T0("ListDomains"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Wy=async(f,h)=>{let w=T0("ListOperations"),s;return s=JSON.stringify(w40(f,h)),E0(h,w,"/",void 0,s)},zy=async(f,h)=>{let w=T0("ListPrices"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ry=async(f,h)=>{let w=T0("ListTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Xy=async(f,h)=>{let w=T0("PushDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Sy=async(f,h)=>{let w=T0("RegisterDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Yy=async(f,h)=>{let w=T0("RejectDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},My=async(f,h)=>{let w=T0("RenewDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Qy=async(f,h)=>{let w=T0("ResendContactReachabilityEmail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ky=async(f,h)=>{let w=T0("ResendOperationAuthorization"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Zy=async(f,h)=>{let w=T0("RetrieveDomainAuthCode"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Jy=async(f,h)=>{let w=T0("TransferDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Vy=async(f,h)=>{let w=T0("TransferDomainToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Py=async(f,h)=>{let w=T0("UpdateDomainContact"),s;return s=JSON.stringify(s40(f,h)),E0(h,w,"/",void 0,s)},Hy=async(f,h)=>{let w=T0("UpdateDomainContactPrivacy"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ny=async(f,h)=>{let w=T0("UpdateDomainNameservers"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Dy=async(f,h)=>{let w=T0("UpdateTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},qy=async(f,h)=>{let w=T0("ViewBilling"),s;return s=JSON.stringify($40(f,h)),E0(h,w,"/",void 0,s)},ky=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},yy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},jy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Oy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ly=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},vy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},by=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},my=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},dy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},iy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},cy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},gy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},xy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},_y=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=I40(w,h),{$metadata:f0(f),...s}},ny=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ey=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=L40(w,h),{$metadata:f0(f),...s}},ay=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=B40(w,h),{$metadata:f0(f),...s}},oy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=A40(w,h),{$metadata:f0(f),...s}},py=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=G40(w,h),{$metadata:f0(f),...s}},uy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ty=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await B1.collectBody(f.body,h),{$metadata:f0(f)}},fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},hj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},wj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},sj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},$j=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await B1.collectBody(f.body,h),{$metadata:f0(f)}},rj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ej=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Tj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Uj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Cj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ij=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Lj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=R40(w,h),{$metadata:f0(f),...s}},r0=async(f,h)=>{let w={...f,body:await s0.parseJsonErrorBody(f.body,h)},s=s0.loadRestJsonErrorCode(f,w.body);switch(s){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await ar0(w,h);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await pr0(w,h);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await ur0(w,h);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await f40(w,h);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await er0(w,h);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await or0(w,h);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await tr0(w,h);default:let $=w.body;return X40({output:f,parsedBody:$,errorCode:s})}},er0=async(f,h)=>{let w=f.body,s=v(w),$=new PU({$metadata:f0(f),...s});return l($,w)},ar0=async(f,h)=>{let w=f.body,s=v(w),$=new KU({$metadata:f0(f),...s});return l($,w)},or0=async(f,h)=>{let w=f.body,s=v(w),$=new HU({$metadata:f0(f),...s});return l($,w)},pr0=async(f,h)=>{let w=f.body,s=v(w),$=new ZU({$metadata:f0(f),...s});return l($,w)},ur0=async(f,h)=>{let w=f.body,s=v(w),$=new JU({$metadata:f0(f),...s});return l($,w)},tr0=async(f,h)=>{let w=f.body,s=v(w),$=new NU({$metadata:f0(f),...s});return l($,w)},f40=async(f,h)=>{let w=f.body,s=v(w),$=new VU({$metadata:f0(f),...s});return l($,w)},h40=(f,h)=>{return N0(f,{Currency:[],MaxPrice:fY})},w40=(f,h)=>{return N0(f,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:v,SubmittedSince:(w)=>w.getTime()/1000,Type:v})},s40=(f,h)=>{return N0(f,{AdminContact:v,BillingContact:v,Consent:(w)=>h40(w,h),DomainName:[],RegistrantContact:v,TechContact:v})},$40=(f,h)=>{return N0(f,{End:(w)=>w.getTime()/1000,Marker:[],MaxItems:[],Start:(w)=>w.getTime()/1000})},r40=(f,h)=>{return N0(f,{BillDate:(w)=>j(Qf(S1(w))),DomainName:A,InvoiceId:A,Operation:A,Price:lF})},E40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return r40(s,h)})},T40=(f,h)=>{return N0(f,{ChangeOwnershipPrice:(w)=>h4(w,h),Name:A,RegistrationPrice:(w)=>h4(w,h),RenewalPrice:(w)=>h4(w,h),RestorationPrice:(w)=>h4(w,h),TransferPrice:(w)=>h4(w,h)})},U40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return T40(s,h)})},F40=(f,h)=>{return N0(f,{AutoRenew:Vh,DomainName:A,Expiry:(w)=>j(Qf(S1(w))),TransferLock:Vh})},C40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return F40(s,h)})},I40=(f,h)=>{return N0(f,{AbuseContactEmail:A,AbuseContactPhone:A,AdminContact:v,AdminPrivacy:Vh,AutoRenew:Vh,BillingContact:v,BillingPrivacy:Vh,CreationDate:(w)=>j(Qf(S1(w))),DnsSec:A,DnssecKeys:v,DomainName:A,ExpirationDate:(w)=>j(Qf(S1(w))),Nameservers:v,RegistrantContact:v,RegistrantPrivacy:Vh,RegistrarName:A,RegistrarUrl:A,RegistryDomainId:A,Reseller:A,StatusList:v,TechContact:v,TechPrivacy:Vh,UpdatedDate:(w)=>j(Qf(S1(w))),WhoIsServer:A})},L40=(f,h)=>{return N0(f,{DomainName:A,LastUpdatedDate:(w)=>j(Qf(S1(w))),Message:A,OperationId:A,Status:A,StatusFlag:A,SubmittedDate:(w)=>j(Qf(S1(w))),Type:A})},B40=(f,h)=>{return N0(f,{Domains:(w)=>C40(w,h),NextPageMarker:A})},A40=(f,h)=>{return N0(f,{NextPageMarker:A,Operations:(w)=>z40(w,h)})},G40=(f,h)=>{return N0(f,{NextPageMarker:A,Prices:(w)=>U40(w,h)})},W40=(f,h)=>{return N0(f,{DomainName:A,LastUpdatedDate:(w)=>j(Qf(S1(w))),Message:A,OperationId:A,Status:A,StatusFlag:A,SubmittedDate:(w)=>j(Qf(S1(w))),Type:A})},z40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return W40(s,h)})},h4=(f,h)=>{return N0(f,{Currency:A,Price:lF})},R40=(f,h)=>{return N0(f,{BillingRecords:(w)=>E40(w,h),NextPageMarker:A})},f0=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var X40=Us(o1),E0=async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new n0(F)};function T0(f){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${f}`}}class tI extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(ck,void 0).ser(tk).de(ky).build(){}D();k();J();class fL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(fy).de(yy).build(){}D();k();J();class hL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(hy).de(jy).build(){}D();k();J();class wL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(wy).de(Oy).build(){}D();k();J();class sL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(gk,void 0).ser(sy).de(ly).build(){}D();k();J();class $L extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser($y).de(vy).build(){}D();k();J();class rL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(ry).de(by).build(){}D();k();J();class EL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(Ey).de(my).build(){}D();k();J();class TL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(Ty).de(dy).build(){}D();k();J();class UL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(Uy).de(iy).build(){}D();k();J();class FL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(Fy).de(cy).build(){}D();k();J();class CL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(Cy).de(gy).build(){}D();k();J();class IL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(Iy).de(xy).build(){}D();k();J();class LL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,xk).ser(Ly).de(_y).build(){}D();k();J();class BL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(By).de(ny).build(){}D();k();J();class AL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(Ay).de(ey).build(){}D();k();J();class GL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(Gy).de(ay).build(){}D();k();J();class WL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(Wy).de(oy).build(){}D();k();J();class zL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(zy).de(py).build(){}D();k();J();class RL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(Ry).de(uy).build(){}D();k();J();class XL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(Xy).de(ty).build(){}D();k();J();class SL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(_k,void 0).ser(Sy).de(fj).build(){}D();k();J();class YL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(Yy).de(hj).build(){}D();k();J();class ML extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(My).de(wj).build(){}D();k();J();class QL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,nk).ser(Qy).de(sj).build(){}D();k();J();class KL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(Ky).de($j).build(){}D();k();J();class ZL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,ek).ser(Zy).de(rj).build(){}D();k();J();class JL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(ak,void 0).ser(Jy).de(Ej).build(){}D();k();J();class VL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,ok).ser(Vy).de(Tj).build(){}D();k();J();class PL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(pk,void 0).ser(Py).de(Uj).build(){}D();k();J();class HL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(Hy).de(Fj).build(){}D();k();J();class NL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(uk,void 0).ser(Ny).de(Cj).build(){}D();k();J();class DL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(Dy).de(Ij).build(){}D();k();J();class qL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(qy).de(Lj).build(){}var S40={AcceptDomainTransferFromAnotherAwsAccountCommand:tI,AssociateDelegationSignerToDomainCommand:fL,CancelDomainTransferToAnotherAwsAccountCommand:hL,CheckDomainAvailabilityCommand:wL,CheckDomainTransferabilityCommand:sL,DeleteDomainCommand:$L,DeleteTagsForDomainCommand:rL,DisableDomainAutoRenewCommand:EL,DisableDomainTransferLockCommand:TL,DisassociateDelegationSignerFromDomainCommand:UL,EnableDomainAutoRenewCommand:FL,EnableDomainTransferLockCommand:CL,GetContactReachabilityStatusCommand:IL,GetDomainDetailCommand:LL,GetDomainSuggestionsCommand:BL,GetOperationDetailCommand:AL,ListDomainsCommand:GL,ListOperationsCommand:WL,ListPricesCommand:zL,ListTagsForDomainCommand:RL,PushDomainCommand:XL,RegisterDomainCommand:SL,RejectDomainTransferFromAnotherAwsAccountCommand:YL,RenewDomainCommand:ML,ResendContactReachabilityEmailCommand:QL,ResendOperationAuthorizationCommand:KL,RetrieveDomainAuthCodeCommand:ZL,TransferDomainCommand:JL,TransferDomainToAnotherAwsAccountCommand:VL,UpdateDomainContactCommand:PL,UpdateDomainContactPrivacyCommand:HL,UpdateDomainNameserversCommand:NL,UpdateTagsForDomainCommand:DL,ViewBillingCommand:qL};class w4 extends uI{}Es(S40,w4);import{runAction as Y40}from"@stacksjs/actions";import{config as Aj}from"@stacksjs/config";import{Action as M40}from"@stacksjs/enums";import{err as Th,handleError as vf,ok as Y$}from"@stacksjs/error-handling";import{log as P1}from"@stacksjs/logging";import{path as Q40}from"@stacksjs/path";import{fs as Bj}from"@stacksjs/storage";async function IO0(f){let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Th(vf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Th(vf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Th(vf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return await h.deleteHostedZone({Id:s.Id}),P1.info(`Deleted Hosted Zone for domain: ${f}`),Y$("success")}async function LO0(f){let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Th(vf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Th(vf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Th(vf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return P1.info(`Deleted DNS records for domain: ${f}`),Y$("success")}async function BO0(f){let h=new dh,s=(await h.listHostedZonesByName({DNSName:f})).HostedZones?.find((r)=>r.Name===`${f}.`);if(s)return Y$(s);let $=await h.createHostedZone({Name:f,CallerReference:`${Date.now()}`});if(!$.HostedZone)return Th(vf("Failed to create hosted zone"));return Y$($)}function K40(f){try{let h=Q40.projectConfigPath("dns.ts"),s=Bj.readFileSync(h,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${f.map(($)=>`'${$}'`).join(", ")}]`);Bj.writeFileSync(h,s,"utf-8"),P1.info("Nameservers have been set.")}catch(h){console.error("Error updating nameservers:",h)}}async function AO0(f){try{let h=new dh,{HostedZones:w}=await h.listHostedZonesByName({DNSName:f});if(!w)return Th(vf(`No hosted zones found for domain ${f}`));let s=w[0];if(s&&s.Name===`${f}.`)return Y$(s.Id);return Y$(null)}catch(h){return Th(vf(`Failed to find hosted zone for domain ${f}`,h))}}async function Z40(f){if(P1.debug("Getting nameservers for domain:",f),!f)return[];try{return(await new w4().getDomainDetail({DomainName:f}))?.Nameservers?.map((s)=>s.Name)||[]}catch(h){vf("Error getting domain detail",h)}}async function J40(f,h){if(!h)h=Aj.app.url;let w=await Z40(h);if(w&&f&&JSON.stringify(w.sort())!==JSON.stringify(f.sort()))return P1.info("Updating your domain nameservers to match the ones in your hosted zone..."),P1.debug("Hosted zone nameservers:",f),P1.debug("Domain nameservers:",w),await new w4().updateDomainNameservers({DomainName:h,Nameservers:f.map(($)=>({Name:$}))}),K40(f),P1.info("Nameservers updated."),!0;P1.success("Your nameservers are up to date.")}async function GO0(f){if(P1.debug("Checking if domain has been added to cloud..."),!f)f=Aj.app.url;P1.debug("domainName:",f);let h=new dh,w=await h.listHostedZonesByName({DNSName:f});if(P1.debug("Existing hosted zones:",w),!w||!w.HostedZones)return!1;let s=w.HostedZones.find(($)=>$.Name===`${f}.`);if(s){P1.debug("Hosted zone found:",s);let r=(await h.getHostedZone({Id:s.Id})).DelegationSet?.NameServers||[];return await J40(r,f),!0}return!1}async function WO0(f){return await Y40(M40.DomainsAdd,f)}import{Buffer as Sj}from"buffer";import{Buffer as bL}from"buffer";import l40 from"dgram";import v40 from"https";import b40 from"net";import m40 from"tls";import{URL as Wj}from"url";import{promises as d40}from"fs";import{platform as i40}from"os";var V40=Object.create,{getPrototypeOf:P40,defineProperty:Gj,getOwnPropertyNames:H40}=Object,N40=Object.prototype.hasOwnProperty,D40=(f,h,w)=>{w=f!=null?V40(P40(f)):{};let s=h||!f||!f.__esModule?Gj(w,"default",{value:f,enumerable:!0}):w;for(let $ of H40(f))if(!N40.call(s,$))Gj(s,$,{get:()=>f[$],enumerable:!0});return s},q40=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),k40=q40((f,h)=>{var w=process||{},s=w.argv||[],$=w.env||{},r=!(!!$.NO_COLOR||s.includes("--no-color"))&&(!!$.FORCE_COLOR||s.includes("--color")||w.platform==="win32"||(w.stdout||{}).isTTY&&$.TERM!=="dumb"||!!$.CI),E=(F,C,I=F)=>(L)=>{let G=""+L,X=G.indexOf(C,F.length);return~X?F+T(G,C,I,X)+C:F+G+C},T=(F,C,I,L)=>{let G="",X=0;do G+=F.substring(X,L)+I,X=L+C.length,L=F.indexOf(C,X);while(~L);return G+F.substring(X)},U=(F=r)=>{let C=F?E:()=>String;return{isColorSupported:F,reset:C("\x1B[0m","\x1B[0m"),bold:C("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:C("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:C("\x1B[3m","\x1B[23m"),underline:C("\x1B[4m","\x1B[24m"),inverse:C("\x1B[7m","\x1B[27m"),hidden:C("\x1B[8m","\x1B[28m"),strikethrough:C("\x1B[9m","\x1B[29m"),black:C("\x1B[30m","\x1B[39m"),red:C("\x1B[31m","\x1B[39m"),green:C("\x1B[32m","\x1B[39m"),yellow:C("\x1B[33m","\x1B[39m"),blue:C("\x1B[34m","\x1B[39m"),magenta:C("\x1B[35m","\x1B[39m"),cyan:C("\x1B[36m","\x1B[39m"),white:C("\x1B[37m","\x1B[39m"),gray:C("\x1B[90m","\x1B[39m"),bgBlack:C("\x1B[40m","\x1B[49m"),bgRed:C("\x1B[41m","\x1B[49m"),bgGreen:C("\x1B[42m","\x1B[49m"),bgYellow:C("\x1B[43m","\x1B[49m"),bgBlue:C("\x1B[44m","\x1B[49m"),bgMagenta:C("\x1B[45m","\x1B[49m"),bgCyan:C("\x1B[46m","\x1B[49m"),bgWhite:C("\x1B[47m","\x1B[49m"),blackBright:C("\x1B[90m","\x1B[39m"),redBright:C("\x1B[91m","\x1B[39m"),greenBright:C("\x1B[92m","\x1B[39m"),yellowBright:C("\x1B[93m","\x1B[39m"),blueBright:C("\x1B[94m","\x1B[39m"),magentaBright:C("\x1B[95m","\x1B[39m"),cyanBright:C("\x1B[96m","\x1B[39m"),whiteBright:C("\x1B[97m","\x1B[39m"),bgBlackBright:C("\x1B[100m","\x1B[49m"),bgRedBright:C("\x1B[101m","\x1B[49m"),bgGreenBright:C("\x1B[102m","\x1B[49m"),bgYellowBright:C("\x1B[103m","\x1B[49m"),bgBlueBright:C("\x1B[104m","\x1B[49m"),bgMagentaBright:C("\x1B[105m","\x1B[49m"),bgCyanBright:C("\x1B[106m","\x1B[49m"),bgWhiteBright:C("\x1B[107m","\x1B[49m")}};h.exports=U(),h.exports.createColors=U}),ih;((f)=>{f[f.A=1]="A",f[f.NS=2]="NS",f[f.CNAME=5]="CNAME",f[f.SOA=6]="SOA",f[f.PTR=12]="PTR",f[f.MX=15]="MX",f[f.TXT=16]="TXT",f[f.AAAA=28]="AAAA",f[f.SRV=33]="SRV",f[f.NAPTR=35]="NAPTR",f[f.OPT=41]="OPT",f[f.SSHFP=44]="SSHFP",f[f.TLSA=52]="TLSA",f[f.DNSKEY=48]="DNSKEY",f[f.CAA=257]="CAA"})(ih||={});var OL;((f)=>{f[f.IN=1]="IN",f[f.CH=3]="CH",f[f.HS=4]="HS"})(OL||={});var zj;((f)=>{f.Disable="disable",f.Hide="hide",f.Show="show"})(zj||={});var Rj;((f)=>{f[f.NoError=0]="NoError",f[f.FormErr=1]="FormErr",f[f.ServFail=2]="ServFail",f[f.NXDomain=3]="NXDomain",f[f.NotImp=4]="NotImp",f[f.Refused=5]="Refused",f[f.YXDomain=6]="YXDomain",f[f.YXRRSet=7]="YXRRSet",f[f.NXRRSet=8]="NXRRSet",f[f.NotAuth=9]="NotAuth",f[f.NotZone=10]="NotZone"})(Rj||={});var Xj;((f)=>{f.TruncatedPacket="TRUNCATED_PACKET",f.InvalidLength="INVALID_LENGTH",f.InvalidFormat="INVALID_FORMAT",f.InvalidName="INVALID_NAME",f.InvalidLabel="INVALID_LABEL",f.InvalidPointer="INVALID_POINTER",f.InvalidType="INVALID_TYPE",f.InvalidClass="INVALID_CLASS",f.NetworkError="NETWORK_ERROR"})(Xj||={});function y40(f){if(!f)return;let h=Array.isArray(f)?f:[f],w={};for(let s of h)if(s==="aa"||s==="authoritative")w.authoritative=!0;else if(s==="ad"||s==="authentic")w.authenticData=!0;else if(s==="cd"||s==="checking-disabled")w.checkingDisabled=!0;else if(s.startsWith("bufsize="))w.udpPayloadSize=Number.parseInt(s.split("=")[1]);return w}function S0(f,h,w){if(w)console.debug(`[dnsx:${f}] ${h}`)}var j40=12,O40=63;class s4{response=!1;opcode=0;authoritative=!1;truncated=!1;recursionDesired=!1;recursionAvailable=!1;authenticData=!1;checkingDisabled=!1;responseCode=0;static fromBuffer(f){let h=new s4,w=f.readUInt16BE(0);return h.response=(w&32768)!==0,h.opcode=(w&30720)>>>11,h.authoritative=(w&1024)!==0,h.truncated=(w&512)!==0,h.recursionDesired=(w&256)!==0,h.recursionAvailable=(w&128)!==0,h.authenticData=(w&32)!==0,h.checkingDisabled=(w&16)!==0,h.responseCode=w&15,h}toBuffer(){let f=Sj.alloc(2),h=0;if(this.response)h|=32768;if(h|=(this.opcode&15)<<11,this.authoritative)h|=1024;if(this.truncated)h|=512;if(this.recursionDesired)h|=256;if(this.recursionAvailable)h|=128;if(this.authenticData)h|=32;if(this.checkingDisabled)h|=16;return h|=this.responseCode&15,f.writeUInt16BE(h,0),f}}class lL{buffer;offset;nameOffsets;verbose;constructor(f=512,h){this.buffer=Sj.alloc(f),this.offset=0,this.nameOffsets=new Map,this.verbose=h}writeHeader(f,h,w){S0("encoder",`Writing DNS header: ${JSON.stringify({id:f,flags:{response:h.response,opcode:h.opcode,recursionDesired:h.recursionDesired},counts:w})}`,this.verbose),this.writeUint16(f);let s=h.toBuffer();this.buffer.set(s,this.offset),this.offset+=2,this.writeUint16(w.qdcount),this.writeUint16(w.ancount),this.writeUint16(w.nscount),this.writeUint16(w.arcount)}writeName(f){S0("encoder",`Writing DNS name: ${f}`,this.verbose);let h=f.split(".");for(let w of h){if(w.length>O40)throw new Error(`Label too long: ${w}`);this.buffer[this.offset++]=w.length,this.buffer.write(w,this.offset),this.offset+=w.length}this.buffer[this.offset++]=0}writeQuestion(f){this.writeName(f.name),this.writeUint16(f.type),this.writeUint16(f.class)}writeUint16(f){this.buffer.writeUInt16BE(f,this.offset),this.offset+=2}writeUint32(f){this.buffer.writeUInt32BE(f,this.offset),this.offset+=4}getBuffer(){return this.buffer.slice(0,this.offset)}}class vL{buffer;offset;constructor(f){this.buffer=f,this.offset=0}canRead(f){return this.offset+f<=this.buffer.length}readName(){let f=[],h=!1,w=this.offset;for(let s=0;s<5;s++){if(w>=this.buffer.length)throw new Error("Out of bounds access");let $=this.buffer[w];if($===0){if(!h)this.offset=w+1;break}if(($&192)===192){if(!this.canRead(2))throw new Error("Out of bounds access");if(!h)this.offset=w+2,h=!0;w=($&63)<<8|this.buffer[w+1];continue}if(w++,w+$>this.buffer.length)throw new Error("Out of bounds access");let r=this.buffer.slice(w,w+$).toString("ascii");f.push(r),w+=$}return f.join(".")}readHeader(){if(!this.canRead(j40))throw new Error(`Invalid DNS header size: ${this.buffer.length} bytes`);let f=this.readUint16(),h=s4.fromBuffer(this.buffer.slice(this.offset,this.offset+2));this.offset+=2;let w={qdcount:this.readUint16(),ancount:this.readUint16(),nscount:this.readUint16(),arcount:this.readUint16()};return{id:f,flags:h,counts:w}}readQuestion(){let f=this.readName();if(!this.canRead(4))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16();return{name:f,type:h,class:w}}readAnswer(){let f=this.readName();if(!this.canRead(10))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16(),s=this.readUint32(),$=this.readUint16();if(!this.canRead($))throw new Error("Out of bounds access");let r=this.readRData(h,$);return{name:f,type:h,class:w,ttl:s,data:r}}readRData(f,h){let w=this.offset,s;switch(f){case 1:if(h!==4)throw new Error("Invalid IPv4 length");s=this.readIPv4();break;case 28:if(h!==16)throw new Error("Invalid IPv6 length");s=this.readIPv6();break;case 15:if(h<3)throw new Error("Invalid MX record length");s={preference:this.readUint16(),exchange:this.readName()};break;case 16:s=this.readString(h);break;case 5:case 2:case 12:s=this.readName();break;default:s=this.buffer.slice(this.offset,this.offset+h).toString("hex"),this.offset+=h}if(this.offset-w!==h)this.offset=w+h;return s}readUint16(){if(!this.canRead(2))throw new Error("Out of bounds access");let f=this.buffer.readUInt16BE(this.offset);return this.offset+=2,f}readUint32(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=this.buffer.readUInt32BE(this.offset);return this.offset+=4,f}readIPv4(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=[];for(let h=0;h<4;h++)f.push(this.buffer[this.offset++]);return f.join(".")}readIPv6(){if(!this.canRead(16))throw new Error("Out of bounds access");let f=[];for(let h=0;h<8;h++)f.push(this.buffer.readUInt16BE(this.offset).toString(16)),this.offset+=2;return f.join(":")}readString(f){if(!this.canRead(f))throw new Error("Out of bounds access");let h=this.buffer.slice(this.offset,this.offset+f).toString();return this.offset+=f,h}}function Yj(f,h={}){let w=new lL(512,h.verbose),s=new s4;s.recursionDesired=!0,s.response=!1;let $=h.txid??h.id??Math.floor(Math.random()*65536);return w.writeHeader($,s,{qdcount:1,ancount:0,nscount:0,arcount:0}),w.writeQuestion({name:f.name,type:typeof f.type==="string"?ih[f.type]:f.type,class:f.class}),w.getBuffer()}function yL(f){let h=new vL(f);if((f.readUInt16BE(2)&32768)===0)throw new Error("Not a DNS response");let{id:w,flags:s,counts:$}=h.readHeader();for(let U=0;U<$.qdcount;U++)h.readQuestion();let r=[];for(let U=0;U<$.ancount;U++)r.push(h.readAnswer());let E=[];for(let U=0;U<$.nscount;U++)E.push(h.readAnswer());let T=[];for(let U=0;U<$.arcount;U++)T.push(h.readAnswer());return{id:w,flags:s,answers:r,authorities:E,additionals:T}}var Mj;((f)=>{f.UDP="udp",f.TCP="tcp",f.TLS="tls",f.HTTPS="https"})(Mj||={});class qU{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=l40.createSocket("udp4"),r,E,T=qU.DEFAULT_PORT;if(f.includes(":")){let[F,C]=f.split(":");E=F;let I=Number.parseInt(C,10);if(I>0&&I<65536)T=I}else E=f;$.on("error",(F)=>{clearTimeout(r),$.close(),s(F)}),$.on("message",(F)=>{clearTimeout(r),$.close(),w(F)}),r=setTimeout(()=>{$.close(),s(new Error("UDP query timed out"))},qU.TIMEOUT);let U=new Uint8Array(h.buffer,h.byteOffset,h.length);$.send(U,T,E,(F)=>{if(F)clearTimeout(r),$.close(),s(F)})})}}class kU{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=new b40.Socket,r,E=new Uint8Array(0),T=-1;$.on("error",(C)=>{clearTimeout(r),$.destroy(),s(C)}),$.on("data",(C)=>{let I=new Uint8Array(E.length+C.length);if(I.set(E),I.set(new Uint8Array(C.buffer,C.byteOffset,C.length),E.length),E=I,T===-1&&E.length>=2)T=new DataView(E.buffer,E.byteOffset).getUint16(0)+2;if(T!==-1&&E.length>=T)clearTimeout(r),$.destroy(),w(bL.from(E.slice(2,T)))}),r=setTimeout(()=>{$.destroy(),s(new Error("TCP query timed out"))},kU.TIMEOUT);let[U,F=kU.DEFAULT_PORT]=f.split(":");$.connect(Number(F),U,()=>{let C=new Uint8Array(2);new DataView(C.buffer).setUint16(0,h.length);let I=new Uint8Array(h.buffer,h.byteOffset,h.length),L=new Uint8Array(C.length+I.length);L.set(C),L.set(I,C.length),$.write(L,(G)=>{if(G)clearTimeout(r),$.destroy(),s(G)})})})}}class yU{static DEFAULT_PORT=853;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $={host:f.split(":")[0],port:Number(f.split(":")[1])||yU.DEFAULT_PORT,servername:f.split(":")[0]},r,E=m40.connect($,()=>{if(!E.authorized){E.destroy(),s(new Error("TLS authorization failed"));return}let F=new Uint8Array(2);new DataView(F.buffer).setUint16(0,h.length);let C=new Uint8Array(h.buffer,h.byteOffset,h.length),I=new Uint8Array(F.length+C.length);I.set(F),I.set(C,F.length),E.write(I,(L)=>{if(L)clearTimeout(r),E.destroy(),s(L)})}),T=new Uint8Array(0),U=-1;E.on("error",(F)=>{clearTimeout(r),E.destroy(),s(F)}),E.on("data",(F)=>{let C=new Uint8Array(T.length+F.length);if(C.set(T),C.set(new Uint8Array(F.buffer,F.byteOffset,F.length),T.length),T=C,U===-1&&T.length>=2)U=new DataView(T.buffer,T.byteOffset).getUint16(0)+2;if(U!==-1&&T.length>=U)clearTimeout(r),E.destroy(),w(bL.from(T.slice(2,U)))}),r=setTimeout(()=>{E.destroy(),s(new Error("TLS query timed out"))},yU.TIMEOUT)})}}class M${static TIMEOUT=5000;static CONTENT_TYPE="application/dns-message";async query(f,h){return new Promise((w,s)=>{let $;try{$=new Wj(f)}catch{$=new Wj(`https://${f}/dns-query`)}let r={method:"POST",headers:{"Content-Type":M$.CONTENT_TYPE,"Content-Length":h.length.toString(),Accept:M$.CONTENT_TYPE},timeout:M$.TIMEOUT},E=v40.request($,r,(T)=>{let U=[];T.on("data",(F)=>{U.push(new Uint8Array(F.buffer,F.byteOffset,F.length))}),T.on("end",()=>{if(T.statusCode!==200){s(new Error(`HTTPS query failed with status ${T.statusCode}`));return}let F=T.headers["content-type"];if(F!==M$.CONTENT_TYPE){s(new Error(`Invalid content type: ${F}`));return}let C=U.reduce((G,X)=>G+X.length,0),I=new Uint8Array(C),L=0;for(let G of U)I.set(G,L),L+=G.length;w(bL.from(I))})});E.on("error",s),E.on("timeout",()=>{E.destroy(),s(new Error("HTTPS query timed out"))}),E.write(new Uint8Array(h.buffer,h.byteOffset,h.length)),E.end()})}}function jL(f){switch(f){case"udp":return new qU;case"tcp":return new kU;case"tls":return new yU;case"https":return new M$}}class H1{options;static DEFAULT_NAMESERVER="1.1.1.1";static RESOLV_CONF_PATH="/etc/resolv.conf";static WINDOWS_DNS_KEY="SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Nameserver";validateDomainName(f){if(f.includes(".."))throw new Error(`Invalid domain name: ${f} (consecutive dots)`);if(f.startsWith(".")||f.endsWith("."))throw new Error(`Invalid domain name: ${f} (starts or ends with dot)`);if(f.length>253)throw new Error(`Domain name too long: ${f}`);let h=f.split(".");for(let w of h){if(w.length>63)throw new Error(`Label too long in domain: ${f}`);if(!/^[a-z0-9-]+$/i.test(w))throw new Error(`Invalid characters in domain label: ${w}`)}}validateRecordType(f){if(typeof f==="string"){if(!(f.toUpperCase()in ih))throw new Error(`Invalid record type: ${f}`)}else if(typeof f==="number"){if(!Object.values(ih).filter((h)=>typeof h==="number").includes(f))throw new Error(`Invalid record type number: ${f}`)}else throw new TypeError("Record type must be string or number")}constructor(f){this.options={transport:{type:"udp"},verbose:!1,...f},this.validateOptions()}async query(){try{let f=this.determineTransportType();S0("client",`Selected transport type: ${f}`,this.options.verbose);let h=jL(f);if(!h)throw new Error(`Failed to create transport for type: ${f}`);let w=[],s=await this.resolveNameserver();if(S0("client",`Resolved nameserver: ${s}`,this.options.verbose),!s)throw new Error("Failed to resolve nameserver");let $=this.buildQueries();S0("client",`Built ${$.length} queries`,this.options.verbose);for(let r of $){S0("client",`Processing query: ${JSON.stringify({query:r,nameserver:s,transportType:f})}`,this.options.verbose);let E=Yj(r,{txid:this.options.txid,edns:this.options.edns,tweaks:this.options.tweaks,verbose:this.options.verbose});S0("client",`Built DNS request: ${JSON.stringify({hexData:E.toString("hex"),length:E.length,txid:E.readUInt16BE(0),flags:E.readUInt16BE(2).toString(16)})}`,this.options.verbose);let T=this.options.retries||3;for(let U=0;U<T;U++)try{S0("client",`Attempt ${U+1}/${T}`,this.options.verbose);let F=await h.query(s,E);if(S0("client",`Received DNS response: ${JSON.stringify({hexData:F.toString("hex"),length:F.length,txid:F.readUInt16BE(0),flags:F.readUInt16BE(2).toString(16)})}`,this.options.verbose),F.length<12)throw new Error(`Response too short: ${F.length} bytes`);if(!(F.readUInt16BE(2)&32768))throw new Error("Response flag not set in DNS message");let C=yL(F);if(S0("client",`Parsed DNS response: ${JSON.stringify({id:C.id,answerCount:C.answers.length,authorityCount:C.authorities.length,additionalCount:C.additionals.length})}`,this.options.verbose),f==="udp"&&C.flags.truncated){S0("client","Response truncated, retrying with TCP",this.options.verbose);let I=await jL("tcp").query(s,E);w.push(yL(I))}else w.push(C);break}catch(F){if(S0("client",`Attempt ${U+1} failed: ${F.message}`,this.options.verbose),U===T-1)throw S0("client","All retry attempts failed",this.options.verbose),F;let C=2**U*1000;S0("client",`Waiting ${C}ms before retry`,this.options.verbose),await new Promise((I)=>setTimeout(I,C))}}if(w.length===0)throw new Error("No responses received");return w}catch(f){let h=f instanceof Error?f.message:"Unknown error occurred";throw S0("client",`Query failed with error: ${h}`,this.options.verbose),S0("client",`Full error: ${JSON.stringify(f)}`,this.options.verbose),new Error(`DNS query failed: ${h}`)}}buildQueries(){let f=[];if(!this.options.domains?.length)throw new Error("No domains specified");let h=Array.isArray(this.options.domains)?this.options.domains:[this.options.domains],w=this.resolveTypes(),s=this.resolveClasses();for(let $ of h)for(let r of w)for(let E of s)f.push({name:$,type:r,class:E});return S0("client",`Built queries: ${JSON.stringify(f)}`,this.options.verbose),f}resolveTypes(){if(!this.options.type)return[1];return(Array.isArray(this.options.type)?this.options.type:[this.options.type]).map((f)=>{if(this.validateRecordType(f),typeof f==="number")return f;let h=f.toUpperCase();return ih[h]})}resolveClasses(){if(!this.options.class)return[1];return(Array.isArray(this.options.class)?this.options.class:[this.options.class]).map((f)=>{if(typeof f==="number")return f;let h=f.toUpperCase(),w=OL[h];if(w===void 0)throw new Error(`Invalid query class: ${f}`);return w})}validateNameserver(f){if(f.startsWith("https://"))return!0;if(f.includes("%"))return!1;if(/^(?:\d{1,3}\.){3}\d{1,3}$/.test(f))return f.split(".").every((h)=>{let w=Number.parseInt(h,10);return w>=0&&w<=255});if(f.includes(":"))return!1;return!1}async resolveNameserver(){try{if(this.options.nameserver){if(S0("client",`Checking configured nameserver: ${this.options.nameserver}`,this.options.verbose),this.validateNameserver(this.options.nameserver))return this.options.nameserver}let f=i40();S0("client",`Resolving nameserver for platform: ${f}`,this.options.verbose);let h;if(f==="win32")h=await this.resolveWindowsNameserver();else h=await this.resolveUnixNameserver();if(this.validateNameserver(h))return h;return S0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){return S0("client",`Failed to resolve nameserver: ${f.message}`,this.options.verbose),S0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}}async resolveUnixNameserver(){try{let f=(await d40.readFile(H1.RESOLV_CONF_PATH,"utf-8")).split(`
|
|
60
|
+
`),h=[];for(let s of f){let $=s.trim();if($.startsWith("nameserver")){let[,r]=$.split(/\s+/);if(r&&!r.includes("%"))h.push(r)}}let w=h.find((s)=>!s.includes(":"));if(w)return S0("client",`Using IPv4 nameserver from resolv.conf: ${w}`,this.options.verbose),w;return S0("client",`No valid nameserver found in resolv.conf, using fallback: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){return S0("client",`Failed to read resolv.conf: ${f.message}`,this.options.verbose),S0("client",`Using fallback nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}}async resolveWindowsNameserver(){try{return S0("client",`Using default nameserver for Windows: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){throw S0("client",`Failed to get Windows nameserver: ${f.message}`,this.options.verbose),new Error("Failed to get Windows nameserver")}}determineTransportType(){if(this.options.https)return"https";if(this.options.tls)return"tls";if(this.options.tcp)return"tcp";if(this.options.udp)return"udp";if(typeof this.options.transport==="object")return this.options.transport.type||"udp";return"udp"}validateOptions(){if(this.options.domains)for(let f of Array.isArray(this.options.domains)?this.options.domains:[this.options.domains])this.validateDomainName(f);if(this.options.type){let f=Array.isArray(this.options.type)?this.options.type:[this.options.type];for(let h of f)this.validateRecordType(h)}if([this.options.udp,this.options.tcp,this.options.tls,this.options.https].filter(Boolean).length>1)throw new Error("Only one transport type can be specified");if(this.options.https&&!this.options.nameserver?.startsWith("https://"))throw new Error("HTTPS transport requires an HTTPS nameserver URL");S0("client","Options validation completed successfully",this.options.verbose)}}var c40=D40(k40(),1),g40={A:"green",AAAA:"green",CNAME:"yellow",MX:"cyan",NS:"red",PTR:"red",SOA:"magenta",SRV:"cyan",TXT:"yellow",CAA:"red",TLSA:"yellow"};function x40(f,h){if(h.json)return _40(f,h.showDuration);return n40(f,h)}function _40(f,h){let w={responses:f.map((s)=>({id:s.id,answers:s.answers.map(kL),authorities:s.authorities.map(kL),additionals:s.additionals.map(kL)}))};if(h!==void 0)w.duration={ms:h};return JSON.stringify(w,null,2)}function kL(f){let h={name:f.name,type:ih[f.type]||f.type,ttl:f.ttl};switch(f.type){case 1:case 28:return{...h,address:f.data};case 5:case 12:case 2:return{...h,target:f.data};case 15:return{...h,preference:f.data.preference,exchange:f.data.exchange};case 16:return{...h,text:f.data};case 33:return{...h,priority:f.data.priority,weight:f.data.weight,port:f.data.port,target:f.data.target};case 257:return{...h,flags:f.data.flags,tag:f.data.tag,value:f.data.value};default:return{...h,data:f.data}}}function n40(f,h){let w=[];for(let s of f){if(h.short){if(s.answers.length>0)w.push(DU(s.answers[0],h));continue}if(s.answers.length>0)for(let $ of s.answers)w.push(DU($,h));if(s.authorities.length>0){w.push(`
|
|
61
|
+
Authority Records:`);for(let $ of s.authorities)w.push(DU($,h))}if(s.additionals.length>0){w.push(`
|
|
62
|
+
Additional Records:`);for(let $ of s.additionals)w.push(DU($,h))}}if(h.showDuration!==void 0)w.push(`
|
|
63
|
+
Query time: ${a40(h.showDuration,h.rawSeconds)}`);return w.join(`
|
|
64
|
+
`)}function DU(f,h){let w=ih[f.type]||f.type.toString(),s=g40[w]||"white",$=h.colors.enabled?c40.default[s](w.padEnd(6)):w.padEnd(6),r=e40(f.ttl,h.rawSeconds).padStart(8),E;switch(f.type){case 1:case 28:E=f.data;break;case 5:case 12:case 2:E=f.data;break;case 15:E=`${f.data.preference} ${f.data.exchange}`;break;case 16:E=`"${f.data}"`;break;case 33:E=`${f.data.priority} ${f.data.weight} ${f.data.port} ${f.data.target}`;break;case 257:E=`${f.data.flags} ${f.data.tag} "${f.data.value}"`;break;default:E=JSON.stringify(f.data)}return`${$} ${r} ${f.name.padEnd(30)} ${E}`}function e40(f,h){if(h)return f.toString();if(f<60)return`${f}s`;if(f<3600){let $=Math.floor(f/60),r=f%60;return`${$}m${r}s`}if(f<86400){let $=Math.floor(f/3600),r=Math.floor(f%3600/60);return`${$}h${r}m`}let w=Math.floor(f/86400),s=Math.floor(f%86400/3600);return`${w}d${s}h`}function a40(f,h){if(h)return`${f}ms`;if(f<1000)return`${f}ms`;return`${(f/1000).toFixed(2)}s`}var{create:o40,defineProperty:Zj,getOwnPropertyDescriptor:p40,getOwnPropertyNames:u40,getPrototypeOf:t40}=Object,fE0=Object.prototype.hasOwnProperty,hE0=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),wE0=(f,h,w,s)=>{if(h&&typeof h=="object"||typeof h=="function")for(let $ of u40(h))!fE0.call(f,$)&&$!==w&&Zj(f,$,{get:()=>h[$],enumerable:!(s=p40(h,$))||s.enumerable});return f},sE0=(f,h,w)=>(w=f!=null?o40(t40(f)):{},wE0(h||!f||!f.__esModule?Zj(w,"default",{value:f,enumerable:!0}):w,f)),$E0=hE0((f,h)=>{function w(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}function s(E,T){for(var U="",F=0,C=-1,I=0,L,G=0;G<=E.length;++G){if(G<E.length)L=E.charCodeAt(G);else{if(L===47)break;L=47}if(L===47){if(!(C===G-1||I===1))if(C!==G-1&&I===2){if(U.length<2||F!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){var X=U.lastIndexOf("/");if(X!==U.length-1){X===-1?(U="",F=0):(U=U.slice(0,X),F=U.length-1-U.lastIndexOf("/")),C=G,I=0;continue}}else if(U.length===2||U.length===1){U="",F=0,C=G,I=0;continue}}T&&(U.length>0?U+="/..":U="..",F=2)}else U.length>0?U+="/"+E.slice(C+1,G):U=E.slice(C+1,G),F=G-C-1;C=G,I=0}else L===46&&I!==-1?++I:I=-1}return U}function $(E,T){var U=T.dir||T.root,F=T.base||(T.name||"")+(T.ext||"");return U?U===T.root?U+F:U+E+F:F}var r={resolve:function(){for(var E="",T=!1,U,F=arguments.length-1;F>=-1&&!T;F--){var C;F>=0?C=arguments[F]:(U===void 0&&(U=process.cwd()),C=U),w(C),C.length!==0&&(E=C+"/"+E,T=C.charCodeAt(0)===47)}return E=s(E,!T),T?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(w(E),E.length===0)return".";var T=E.charCodeAt(0)===47,U=E.charCodeAt(E.length-1)===47;return E=s(E,!T),E.length===0&&!T&&(E="."),E.length>0&&U&&(E+="/"),T?"/"+E:E},isAbsolute:function(E){return w(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,T=0;T<arguments.length;++T){var U=arguments[T];w(U),U.length>0&&(E===void 0?E=U:E+="/"+U)}return E===void 0?".":r.normalize(E)},relative:function(E,T){if(w(E),w(T),E===T||(E=r.resolve(E),T=r.resolve(T),E===T))return"";for(var U=1;U<E.length&&E.charCodeAt(U)===47;++U);for(var F=E.length,C=F-U,I=1;I<T.length&&T.charCodeAt(I)===47;++I);for(var L=T.length,G=L-I,X=C<G?C:G,Q=-1,M=0;M<=X;++M){if(M===X){if(G>X){if(T.charCodeAt(I+M)===47)return T.slice(I+M+1);if(M===0)return T.slice(I+M)}else C>X&&(E.charCodeAt(U+M)===47?Q=M:M===0&&(Q=0));break}var q=E.charCodeAt(U+M),N=T.charCodeAt(I+M);if(q!==N)break;q===47&&(Q=M)}var y="";for(M=U+Q+1;M<=F;++M)(M===F||E.charCodeAt(M)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+T.slice(I+Q):(I+=Q,T.charCodeAt(I)===47&&++I,T.slice(I))},_makeLong:function(E){return E},dirname:function(E){if(w(E),E.length===0)return".";for(var T=E.charCodeAt(0),U=T===47,F=-1,C=!0,I=E.length-1;I>=1;--I)if(T=E.charCodeAt(I),T===47){if(!C){F=I;break}}else C=!1;return F===-1?U?"/":".":U&&F===1?"//":E.slice(0,F)},basename:function(E,T){if(T!==void 0&&typeof T!="string")throw new TypeError('"ext" argument must be a string');w(E);var U=0,F=-1,C=!0,I;if(T!==void 0&&T.length>0&&T.length<=E.length){if(T.length===E.length&&T===E)return"";var L=T.length-1,G=-1;for(I=E.length-1;I>=0;--I){var X=E.charCodeAt(I);if(X===47){if(!C){U=I+1;break}}else G===-1&&(C=!1,G=I+1),L>=0&&(X===T.charCodeAt(L)?--L===-1&&(F=I):(L=-1,F=G))}return U===F?F=G:F===-1&&(F=E.length),E.slice(U,F)}else{for(I=E.length-1;I>=0;--I)if(E.charCodeAt(I)===47){if(!C){U=I+1;break}}else F===-1&&(C=!1,F=I+1);return F===-1?"":E.slice(U,F)}},extname:function(E){w(E);for(var T=-1,U=0,F=-1,C=!0,I=0,L=E.length-1;L>=0;--L){var G=E.charCodeAt(L);if(G===47){if(!C){U=L+1;break}continue}F===-1&&(C=!1,F=L+1),G===46?T===-1?T=L:I!==1&&(I=1):T!==-1&&(I=-1)}return T===-1||F===-1||I===0||I===1&&T===F-1&&T===U+1?"":E.slice(T,F)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return $("/",E)},parse:function(E){w(E);var T={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return T;var U=E.charCodeAt(0),F=U===47,C;F?(T.root="/",C=1):C=0;for(var I=-1,L=0,G=-1,X=!0,Q=E.length-1,M=0;Q>=C;--Q){if(U=E.charCodeAt(Q),U===47){if(!X){L=Q+1;break}continue}G===-1&&(X=!1,G=Q+1),U===46?I===-1?I=Q:M!==1&&(M=1):I!==-1&&(M=-1)}return I===-1||G===-1||M===0||M===1&&I===G-1&&I===L+1?G!==-1&&(L===0&&F?T.base=T.name=E.slice(1,G):T.base=T.name=E.slice(L,G)):(L===0&&F?(T.name=E.slice(1,I),T.base=E.slice(1,G)):(T.name=E.slice(L,I),T.base=E.slice(L,G)),T.ext=E.slice(I,G)),L>0?T.dir=E.slice(0,L-1):F&&(T.dir="/"),T},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,h.exports=r}),Jj=sE0($E0()),g0=Jj,rE0=Jj,Qj=function(f){return f},Vj=function(){throw new Error("Not implemented")};g0.parse??=Vj;rE0.parse??=Vj;var K$={resolve:g0.resolve.bind(g0),normalize:g0.normalize.bind(g0),isAbsolute:g0.isAbsolute.bind(g0),join:g0.join.bind(g0),relative:g0.relative.bind(g0),toNamespacedPath:Qj,dirname:g0.dirname.bind(g0),basename:g0.basename.bind(g0),extname:g0.extname.bind(g0),format:g0.format.bind(g0),parse:g0.parse.bind(g0),sep:"/",delimiter:":",win32:void 0,posix:void 0,_makeLong:Qj},Kj={sep:"\\",delimiter:";",win32:void 0,...K$,posix:K$};K$.win32=Kj.win32=Kj;K$.posix=K$;var{resolve:EE0,normalize:HO0,isAbsolute:NO0,join:DO0,relative:qO0,toNamespacedPath:kO0,dirname:yO0,basename:jO0,extname:OO0,format:lO0,parse:vO0,sep:bO0,delimiter:mO0}=K$;function jU(f,h){if(Array.isArray(h)&&!Array.isArray(f))return h;if(Array.isArray(h)&&Array.isArray(f))return h.map((s,$)=>{let r=f[$];if(Q$(s)&&Q$(r))return jU(r,s);return s});if(!Q$(h)||!Q$(f))return h;let w={...f};for(let s in h)if(Object.prototype.hasOwnProperty.call(h,s)){let $=h[s],r=w[s];if($===null||$===void 0)w[s]=$;else if(Q$($)&&Q$(r))w[s]=jU(r,$);else w[s]=$}return w}function Q$(f){return Boolean(f&&typeof f==="object"&&!Array.isArray(f))}async function TE0({name:f,cwd:h,defaultConfig:w,endpoint:s,headers:$={Accept:"application/json","Content-Type":"application/json"}}){if(typeof window==="undefined"){let r=EE0(h||"../../../",`${f}.config`);try{let E=await import(r),T=E.default||E;return jU(w,T)}catch(E){return w}}if(!s)return console.warn("An API endpoint is required to load the client config."),w;try{let r=await fetch(s,{method:"GET",headers:$});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);let E=await r.json();return jU(w,E)}catch(r){return console.error("Failed to load client config:",r),w}}var UE0={verbose:!0},dO0=await TE0({name:"dnsx",defaultConfig:UE0});export{K40 as writeNameserversToConfig,J40 as updateNameservers,yL as parseResponse,y40 as parseProtocolTweaks,GO0 as hasUserDomainBeenAddedToCloud,Z40 as getNameservers,x40 as formatOutput,AO0 as findHostedZone,LO0 as deleteHostedZoneRecords,IO0 as deleteHostedZone,S0 as debugLog,jL as createTransport,BO0 as createHostedZone,dO0 as config,Yj as buildQuery,WO0 as addDomain,Xj as WireError,Mj as TransportType,ih as RecordType,OL as QClass,zj as EDNSMode,Rj as DnsResponseCode,s4 as DnsFlags,lL as DnsEncoder,vL as DnsDecoder,H1 as DnsClient};
|