1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24757],{2448:(e,t,r)=>{r.d(t,{n:()=>n});var i=r(88869),s=r(19698);function n(e){let t,r="object"==typeof(t="string"==typeof e?(0,i.a)(e):e)&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let a="";for(let e=0;e<t.length;e+=3){let r=0,i=0;for(let n=e,a=Math.min(e+3,t.length);n<a;n++)r|=t[n]<<(a-n-1)*s.kQ,i+=s.kQ;let n=Math.ceil(i/s._w);r<<=n*s._w-i;for(let e=1;e<=n;e++){let t=(n-e)*s._w;a+=s.Kc[(r&s.OF<<t)>>t]}a+="==".slice(0,4-n)}return a}},3744:(e,t,r)=>{r.d(t,{P:()=>i});let i=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},4401:(e,t,r)=>{r.d(t,{K:()=>s});var i=r(32695);class s{config;middlewareStack=(0,i.o)();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:r}=e;r&&"function"==typeof t&&(e.protocol=new t(r))}send(e,t,r){let i,s="function"!=typeof t?t:void 0,n="function"==typeof t?t:r;if(void 0===s&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);let t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,s),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,s);if(!n)return i(e).then(e=>e.output);i(e).then(e=>n(null,e.output),e=>n(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},5008:(e,t,r)=>{r.d(t,{vL:()=>n,jB:()=>s});let i={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-east-2":{description:"Asia Pacific (Taipei)"},"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-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws 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-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supp
1ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso 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:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{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-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"},s=e=>{let{partitions:t}=i;for(let r of t){let{regions:t,outputs:i}=r;for(let[r,s]of Object.entries(t))if(r===e)return{...i,...s}}for(let r of t){let{regionRegex:t,outputs:i}=r;if(new RegExp(t).test(e))return{...i}}let r=t.find(e=>"aws"===e.id);if(!r)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},n=()=>""},6245:(e,t,r)=>{r.d(t,{h:()=>i});class i{authSchemes=new Map;constructor(e){for(let t in e){let r=e[t];void 0!==r&&this.authSchemes.set(t,r)}}getIdentityProvider(e){return this.authSchemes.get(e)}}},6329:(e,t,r)=>{r.d(t,{t:()=>i});let i=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t}},7347:(e,t,r)=>{r.d(t,{o:()=>i});let i=e=>encodeURIComponent(e).replace(/[!'()*]/g,s),s=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},9328:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(83092),s=r(70538);let n={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},a=e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!s.K.isInstance(r.request))return e(r);let n=(0,i.u)(t).selectedHttpAuthScheme;if(!n)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:o,signer:c}=n,l=await e({...r,request:await c.sign(r.request,o,a)}).catch((c.errorHandler||(e=>e=>{throw e}))(a));return(c.successHandler||((e,t)=>{}))(l.response,a),l},n)}})},10847:(e,t,r)=>{r.d(t,{c:()=>s});let i=[];function s(e){if("object"==typeof e)return e;if(i[e|=0])return i[e];let t={},r=0;for(let i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[i]=1);return i[e]=t}},13217:(e,t,r)=>{r.d(t,{sD:()=>ee,q1:()=>G});var i=r(83638),s=r(92508);class n extends s.T{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}class a extends n{name="DecryptionFailure";$fault="client";Message;constructor(e){super({name:"DecryptionFailure",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype),this.Message=e.Message}}class o extends n{name="InternalServiceError";$fault="server";Message;constructor(e){super({name:"InternalServiceError",$fault:"server",...e}),Object.setPrototypeOf(this,o.prototype),this.Message=e.Message}}class c extends n{name="InvalidNextTokenException";$fault="client";Message;constructor(e){super({name:"InvalidNextTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype),this.Message=e.Message}}class l extends n{name="InvalidParameterException";$fault="client";Message;constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype),this.Message=e.Message}}class u extends n{name="InvalidRequestException";$fault="client";Message;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype),this.Message=e.Message}}class d extends n{name="ResourceNotFoundException";$fault="client";Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,d.prototype),this.Message=e.Message}}class h extends n{name="EncryptionFailure";$fault="client";Message;constructor(e){super({name:"EncryptionFailure",$fault:"client",...e}),Object.setPrototypeOf(this,h.prototype),this.Message=e.Message}}class f extends n{name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,f.prototype),this.Message=e.Message}}class p extends n{name="MalformedPolicyDocumentException";$fault="client";Message;constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,p.prototype),this.Message=e.Message}}class m extends n{name="PreconditionNotMetException";$fault="client";Message;constructor(e){super({name:"PreconditionNotMetException",$fault:"client",...e}),Object.setPrototypeOf(this,m.prototype),this.Message=e.Message}}class g extends n{name="ResourceExistsException";$fault="client";Message;constructor(e){super({name:"ResourceExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,g.prototype),this.Message=e.Message}}class y extends n{name="PublicPolicyException";$fault="client";Message;constructor(e){super({name:"PublicPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,y.prototype),this.Message=e.Message}}
1let w="CreatedDate",b="Message",v="Name",S="SecretBinary",E="SecretId",x="SecretString",T="Value",R="VersionId",C="VersionStages",P="client",A="error",M="smithy.ts.sdk.synthetic.com.amazonaws.secretsmanager",$="com.amazonaws.secretsmanager",I=i.O.for(M);var k=[-3,M,"SecretsManagerServiceException",0,[],[]];I.registerError(k,n);let O=i.O.for($);var D=[-3,$,"DecryptionFailure",{[A]:P},[b],[0]];O.registerError(D,a);var N=[-3,$,"EncryptionFailure",{[A]:P},[b],[0]];O.registerError(N,h);var _=[-3,$,"InternalServiceError",{[A]:"server"},[b],[0]];O.registerError(_,o);var j=[-3,$,"InvalidNextTokenException",{[A]:P},[b],[0]];O.registerError(j,c);var U=[-3,$,"InvalidParameterException",{[A]:P},[b],[0]];O.registerError(U,l);var L=[-3,$,"InvalidRequestException",{[A]:P},[b],[0]];O.registerError(L,u);var z=[-3,$,"LimitExceededException",{[A]:P},[b],[0]];O.registerError(z,f);var F=[-3,$,"MalformedPolicyDocumentException",{[A]:P},[b],[0]];O.registerError(F,p);var q=[-3,$,"PreconditionNotMetException",{[A]:P},[b],[0]];O.registerError(q,m);var H=[-3,$,"PublicPolicyException",{[A]:P},[b],[0]];O.registerError(H,y);var B=[-3,$,"ResourceExistsException",{[A]:P},[b],[0]];O.registerError(B,g);var V=[-3,$,"ResourceNotFoundException",{[A]:P},[b],[0]];O.registerError(V,d);let G=[I,O];var W=[0,$,"SecretBinaryType",8,21],K=[0,$,"SecretStringType",8,0],J=[3,$,"ExternalSecretRotationMetadataItem",0,["Key",T],[0,0]],Q=[3,$,"GetSecretValueRequest",0,[E,R,"VersionStage"],[0,0,0],1],Y=[3,$,"GetSecretValueResponse",0,["ARN",v,R,S,x,C,w],[0,0,0,[()=>W,0],[()=>K,0],64,4]],X=[3,$,"RotationRulesType",0,["AutomaticallyAfterDays","Duration","ScheduleExpression"],[1,0,0]],Z=[3,$,"Tag",0,["Key",T],[0,0]],ee=[9,$,"GetSecretValue",0,()=>Q,()=>Y]},14339:(e,t,r)=>{r.d(t,{_:()=>ep});var i=r(46225),s=r(47472),n=r(89836),a=r(66419),o=r(51789),c=r(65422),l=r(6245),u=r(9328),d=r(4401),h=r(76636),f=r(99724),p=r(22326),m=r(57798),g=r(48565),y=r(94079),w=r(85449),b=r(83092),v=r(6329);let S=async(e,t,r)=>({operation:(0,b.u)(t).operation,region:await (0,v.t)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),E=e=>{let t=[];return e.operation,t.push({schemeId:"aws.auth#sigv4",signingProperties:{name:"secretsmanager",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}),t};var x=r(70300);let T={rE:"3.1059.0"};var R=r(19924),C=r(55714),P=r(58712),A=r(85551),M=r(32192),$=r(60024),I=r(63962),k=r(27966),O=r(38174),D=r(78160),N=r(72888),_=r(81408);class j extends _.p{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}var U=r(49998),L=r(67887),z=r(72933),F=r(2448),q=r(88869),H=r(3744),B=r(26306),V=r(33896),G=r(76811),W=r(76153),K=r(71833);let J="isSet",Q="PartitionResult",Y="booleanEquals",X="getAttr",Z="stringEquals",ee={ref:"Endpoint"},et={ref:Q},er={fn:X,argv:[et,"name"]},ei={},es=[{ref:"Region"}],en={conditions:[[J,[ee]],[J,es],["aws.partition",es,Q],[Y,[{ref:"UseFIPS"},!0]],[Y,[{ref:"UseDualStack"},!0]],[Y,[{fn:X,argv:[et,"supportsDualStack"]},!0]],[Y,[{fn:X,argv:[et,"supportsFIPS"]},!0]],[Z,[er,"aws"]],[Z,[er,"aws-cn"]],[Z,[er,"aws-us-gov"]]],results:[[-1],[-1,"Invalid Configuration: FIPS and custom endpoint are not supported"],[-1,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ee,ei],["https://secretsmanager-fips.{Region}.amazonaws.com",ei],["https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ei],[-1,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}",ei],[-1,"FIPS is enabled but this partition does not support FIPS"],["https://secretsmanager.{Region}.amazonaws.com",ei],["https://secretsmanager.{Region}.amazonaws.com.cn",ei],["https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",ei],[-1,"DualStack is enabled but this partition does not support DualStack"],["https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}",ei],[-1,"Invalid Configuration: Missing Region"]]},ea=new Int32Array([-1,1,-1,0,17,3,1,4,0x5f5e10e,2,5,0x5f5e10e,3,11,6,4,7,0x5f5e10d,5,8,0x5f5e10c,7,0x5f5e109,9,8,0x5f5e10a,10,9,0x5f5e109,0x5f5e10b,4,13,12,6,0x5f5e107,0x5f5e108,5,14,0x5f5e106,6,15,0x5f5e106,7,0x5f5e104,16,9,0x5f5e104,0x5f5e105,3,0x5f5e101,18,4,0x5f5e102,0x5f5e103]),eo=K.d.from(ea,2,en.conditions,en.results),ec=new V.k({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),el=(e,t={})=>ec.get(e,()=>(0,G.c)(eo,{endpointParams:e,logger:t.logger}));W.m.aws=B.U;var eu=r(13217),ed=r(53964),eh=r(72089),ef=r(72709);class ep extends d.K{config;constructor(...[e]){let t=(e=>{let t=(0,M.I)(e),r=()=>t().then(P.l),i=(e=>({apiVersion:"2017-10-17",base64Decoder:e?.base64Decoder??z.E,base64Encoder:e?.base64Encoder??F.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??el,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??E,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvi
1der:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new N.f2}],logger:e?.logger??new U.N,protocol:e?.protocol??j,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.secretsmanager",errorTypeRegistries:eu.q1,version:"2017-10-17",serviceTarget:"secretsmanager"},serviceId:e?.serviceId??"Secrets Manager",urlParser:e?.urlParser??L.D,utf8Decoder:e?.utf8Decoder??q.a,utf8Encoder:e?.utf8Encoder??H.P}))(e);return{...i,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??k.n,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,C.pf)({serviceId:i.serviceId,clientVersion:T.rE}),maxAttempts:e?.maxAttempts??I.Gz,region:e?.region??(0,A.B)("Region is missing"),requestHandler:O.N.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||I.L0),sha256:e?.sha256??R.I,streamCollector:e?.streamCollector??D.k,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve($.VW)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve($.Hj))}})(e||{});super(t),this.initConfig=t;let r=(0,x.v)(t),d=(0,i.D)(r),b=(0,m.$z)(d),_=(0,h.T)(b),B=(0,s.OV)(_),V=((e,t)=>{let r=Object.assign((0,ed.R)(e),(0,eh.xA)(e),(0,ef.e)(e),(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,i=e.credentials;return{setHttpAuthScheme(e){let r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){i=e},credentials:()=>i}})(e));return t.forEach(e=>e.configure(r)),Object.assign(e,(0,ed.$)(r),(0,eh.uv)(r),(0,ef.j)(r),(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}))(r))})((e=>Object.assign((0,w.h)(e),{authSchemePreference:(0,v.t)(e.authSchemePreference??[])}))((0,f.Co)(B)),e?.extensions||[]);this.config=V,this.middlewareStack.use((0,y.wq)(this.config)),this.middlewareStack.use((0,n.sM)(this.config)),this.middlewareStack.use((0,g.ey)(this.config)),this.middlewareStack.use((0,p.vK)(this.config)),this.middlewareStack.use((0,s.TC)(this.config)),this.middlewareStack.use((0,a.Y7)(this.config)),this.middlewareStack.use((0,o.n)(this.config)),this.middlewareStack.use((0,c.w)(this.config,{httpAuthSchemeParametersProvider:S,identityProviderConfigProvider:async e=>new l.h({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,u.l)(this.config))}destroy(){super.destroy()}}},16774:(e,t,r)=>{r.d(t,{F:()=>s});var i=r(88869);let s=e=>"string"==typeof e?(0,i.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},18164:(e,t,r)=>{r.d(t,{u:()=>c});var i=r(77577),s=r(32695),n=r(24286);let a="***SensitiveInformation***";function o(e,t){if(null==t)return t;let r=n.l1.of(e);if(r.getMergedTraits().sensitive)return a;
1if(r.isListSchema()){if(r.getValueSchema().getMergedTraits().sensitive)return a}else if(r.isMapSchema()){if(r.getKeySchema().getMergedTraits().sensitive||r.getValueSchema().getMergedTraits().sensitive)return a}else if(r.isStructSchema()&&"object"==typeof t){let e={};for(let[i,s]of r.structIterator())null!=t[i]&&(e[i]=o(s,t[i]));return e}return t}class c{middlewareStack=(0,s.o)();schema;static classBuilder(){return new l}resolveMiddlewareWithContext(e,t,r,{middlewareFn:s,clientName:n,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:c,smithyContext:l,additionalContext:u,CommandCtor:d}){for(let i of s.bind(this)(d,e,t,r))this.middlewareStack.use(i);let h=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:n,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:c,[i.V]:{commandInstance:this,...l},...u},{requestHandler:m}=t,g=r??{};return l.eventStream&&(g={isEventStream:!0,...g}),h.resolve(e=>m.handle(e.request,g),p)}}class l{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e,t=this;return e=class extends c{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super(),this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,s){let n=t._operationSchema,a=n?.[4]??n?.input,c=n?.[5]??n?.output;return this.resolveMiddlewareWithContext(r,i,s,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(n?o.bind(null,a):e=>e),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(n?o.bind(null,c):e=>e),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}},19698:(e,t,r)=>{r.d(t,{Kc:()=>n,OF:()=>c,_w:()=>a,kQ:()=>o,mh:()=>s});let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=Object.entries(i).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),n=i.split(""),a=6,o=8,c=63},19924:(e,t,r)=>{r.d(t,{I:()=>b});var i=r(81029).hp,s=void 0!==i&&i.from?function(e){return i.from(e,"utf8")}:e=>new TextEncoder().encode(e);function n(e){return e instanceof Uint8Array?e:"string"==typeof e?s(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function a(e){return"string"==typeof e?0===e.length:0===e.byteLength}var o={name:"SHA-256"},c={name:"HMAC",hash:o},l=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);let u={};function d(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}var h=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!a(e)){var t=n(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return d().crypto.subtle.sign(c,t,e.toHash).then(function(e){return new Uint8Array(e)})}):a(this.toHash)?Promise.resolve(l):Promise.resolve().then(function(){return d().crypto.subtle.digest(o,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){d().crypto.subtle.importKey("raw",n(e.secret),c,!1,["sign"]).then(t,r)}
1),this.key.catch(function(){}))},e}(),f=r(71450),p=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),m=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],g=function(){function e(){this.state=Int32Array.from(m),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var i=this.bufferLength;i<64;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<56;i++)t.setUint8(i,0);t.setUint32(56,Math.floor(e/0x100000000),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(32),i=0;i<8;i++)s[4*i]=this.state[i]>>>24&255,s[4*i+1]=this.state[i]>>>16&255,s[4*i+2]=this.state[i]>>>8&255,s[4*i+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],c=t[6],l=t[7],u=0;u<64;u++){if(u<16)this.temp[u]=(255&e[4*u])<<24|(255&e[4*u+1])<<16|(255&e[4*u+2])<<8|255&e[4*u+3];else{var d=this.temp[u-2],h=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,f=((d=this.temp[u-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[u]=(h+this.temp[u-7]|0)+(f+this.temp[u-16]|0)}var m=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&o^~a&c)|0)+(l+(p[u]+this.temp[u]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;l=c,c=o,o=a,a=n+m|0,n=s,s=i,i=r,r=m+g|0}t[0]+=r,t[1]+=i,t[2]+=s,t[3]+=n,t[4]+=a,t[5]+=o,t[6]+=c,t[7]+=l},e}(),y=function(){function e(e){this.secret=e,this.hash=new g,this.reset()}return e.prototype.update=function(e){if(!a(e)&&!this.error)try{this.hash.update(n(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,f.sH)(this,void 0,void 0,function(){return(0,f.YH)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new g,this.secret){this.outer=new g;var e=function(e){var t=n(e);if(t.byteLength>64){var r=new g;r.update(t),t=r.digest()}var i=new Uint8Array(64);return i.set(t),i}(this.secret),t=new Uint8Array(64);t.set(e);for(var r=0;r<64;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}(),w=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"],b=function(){function e(e){var t,r,i;if("object"==typeof(r=t=d())&&"object"==typeof r.crypto&&"function"==typeof r.crypto.getRandomValues&&"object"==typeof t.crypto.subtle&&(i=t.crypto.subtle)&&w.every(function(e){return"function"==typeof i[e]}))this.hash=new h(e);else this.hash=new y(e)}return e.prototype.update=function(e,t){this.hash.update(n(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}()},20543:(e,t,r)=>{r.d(t,{X:()=>s});let i=RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),s=(e,t=!1)=>
1{if(!t)return i.test(e);for(let t of e.split("."))if(!s(t))return!1;return!0}},21825:(e,t,r)=>{r.d(t,{Df:()=>s,G8:()=>i,XP:()=>n,l5:()=>a,ok:()=>o});let i=2e4,s=500,n=1,a="amz-sdk-invocation-id",o="amz-sdk-request"},22326:(e,t,r)=>{r.d(t,{vK:()=>a});var i=r(70538);let s="content-length",n={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},a=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{let n=t.request;if(i.K.isInstance(n)){let{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(s))try{let t=r(e);n.headers={...n.headers,[s]:String(t)}}catch(e){}}return e({...t,request:n})}),n)}})},24286:(e,t,r)=>{r.d(t,{l1:()=>c});var i=r(69715),s=r(10847);let n={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},a=[],o={};class c{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=c.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;let r=[],n=e,a=e;for(this._isMemberSchema=!1;u(n);)r.push(n[1]),n=n[0],a=(0,i.L)(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,(0,s.c)(t))}}else this.memberTraits=0;if(a instanceof c){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??a.memberName;return}if(this.schema=(0,i.L)(a),d(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!t)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){let t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(a[e])return a[e]}else if("string"==typeof e){if(o[e])return o[e]}else if(t&&e[n.ns])return e[n.ns];let r=(0,i.L)(e);if(r instanceof c)return r;if(u(r)){let[t,i]=r;if(t instanceof c)return Object.assign(t.getMergedTraits(),(0,s.c)(i)),t;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let l=new c(r);return t?e[n.ns]=l:"string"==typeof r?o[r]=l:"number"==typeof r?a[r]=l:l}getSchema(){let e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){let e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){let e=this.getSchema();if("object"!=typeof e)return!1;let t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){let e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){let e=this.getSchema();return 21===e||42===e}isTimestampSchema(){let e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return(0,s.c)(this.memberTraits)}getOwnTraits(){return(0,s.c)(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema();return l([e?15:r[4]??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s="number"==typeof e?63&e:e&&"object"==typeof e&&(r||i)?e[3+e[0]]:t?15:void 0;if(null!=s)return l([s,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();
1if(this.isStructSchema()&&t[4].includes(e)){let r=t[4].indexOf(e),i=t[5][r];return l(u(i)?i:[i,0],e)}if(this.isDocumentSchema())return l([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),t=e[4].length,r=e[n.it];if(r&&t===r.length)return void(yield*r);r=Array(t);for(let i=0;i<t;++i){let t=e[4][i],s=l([e[5][i],0],t);yield r[i]=[t,s]}e[n.it]=r}}function l(e,t){return e instanceof c?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new c(e,t)}let u=e=>Array.isArray(e)&&2===e.length,d=e=>Array.isArray(e)&&e.length>=5},26306:(e,t,r)=>{r.d(t,{U:()=>o});var i=r(76153),s=r(20543),n=r(44879);let a=(e,t=!1)=>{if(t){for(let t of e.split("."))if(!a(t))return!1;return!0}return!(!(0,s.X)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,n.o)(e))},o={isVirtualHostableS3Bucket:a,parseArn:e=>{let t=e.split(":");if(t.length<6)return null;let[r,i,s,n,a,...o]=t;return"arn"!==r||""===i||""===s||""===o.join(":")?null:{partition:i,service:s,region:n,accountId:a,resourceId:o.map(e=>e.split("/")).flat()}},partition:r(5008).jB};i.m.aws=o},27966:(e,t,r)=>{r.d(t,{n:()=>s});let i="function"==typeof TextEncoder?new TextEncoder:null,s=e=>{if("string"==typeof e){if(i)return i.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){let i=e.charCodeAt(r);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw Error(`Body Length computation failed for ${e}`)}},32192:(e,t,r)=>{r.d(t,{I:()=>s});let i=["in-region","cross-region","mobile","standard","legacy"],s=({defaultsMode:e}={})=>((e,t,r)=>{let i,s,n,a=async()=>{s||(s=e());try{i=await s,n=!0}finally{s=void 0}return i};return async e=>((!n||e?.forceRefresh)&&(i=await a()),i)})(async()=>{let t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(n()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${i.join(", ")}, got ${t}`)}}),n=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:r,downlink:i}=e?.connection;if("string"==typeof t&&"4g"!==t||Number(r)>100||10>Number(i))return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1}},32695:(e,t,r)=>{r.d(t,{o:()=>n});let i=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let e of t)r.push(e);return r},s=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,n=()=>{let e=[],t=[],r=!1,c=new Set,l=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(h.identifyOnResolve()),r),u=e=>{let t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t},d=(r=!1)=>{let n=[],c=[],l={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of i(t.name,t.aliases))l[e]=t;n.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of i(t.name,t.aliases))l[e]=t;c.push(t)}),c.forEach(e=>{if(e.toMiddleware){let t=l[e.toMiddleware];if(void 0===t){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${s(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),n.sort((e,t)=>a[t.step]-a[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]).map(u).reduce((e,t)=>(e.push(...t),e),[])},h={add:(t,r={})=>{let{name:n,override:a,aliases:o}=r,l={step:"initialize",priority:"normal",middleware:t,...r},u=i(n,o);if(u.length>0){if(u.some(e=>c.has(e))){if(!a)throw Error(`Duplicate middleware name '${s(n,o)}'`);for(let t of u){let r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===r)continue;let i=e[r];if(i.step!==l.step||l.priority!==i.priority)throw Error(`"${s(i.name,i.aliases)}" middleware with ${i.priority} priority in ${i.step} step cannot be overridden by "${s(n,o)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(r,1)}}for(let e of u)c.add(e)}e.push(l)},addRelativeTo:(e,r)=>{let{name:n,override:a,aliases:o}=r,l={middleware:e,...r},u=i(n,o);if(u.length>0){if(u.some(e=>c.has(e))){if(!a)throw Error(`Duplicate middleware name '${s(n,o)}'`);for(let e of u){let r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;let i=t[r];
1if(i.toMiddleware!==l.toMiddleware||i.relation!==l.relation)throw Error(`"${s(i.name,i.aliases)}" middleware ${i.relation} "${i.toMiddleware}" middleware cannot be overridden by "${s(n,o)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);t.splice(r,1)}}for(let e of u)c.add(e)}t.push(l)},clone:()=>l(n()),use:e=>{e.applyToStack(h)},remove:r=>"string"==typeof r?(r=>{let s=!1,n=e=>{let t=i(e.name,e.aliases);if(t.includes(r)){for(let e of(s=!0,t))c.delete(e);return!1}return!0};return e=e.filter(n),t=t.filter(n),s})(r):(r=>{let s=!1,n=e=>{if(e.middleware===r){for(let t of(s=!0,i(e.name,e.aliases)))c.delete(t);return!1}return!0};return e=e.filter(n),t=t.filter(n),s})(r),removeByTag:r=>{let s=!1,n=e=>{let{tags:t,name:n,aliases:a}=e;if(t&&t.includes(r)){for(let e of i(n,a))c.delete(e);return s=!0,!1}return!0};return e=e.filter(n),t=t.filter(n),s},concat:e=>{let t=l(n());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:l,identify:()=>d(!0).map(e=>{let t=e.step??e.relation+" "+e.toMiddleware;return s(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(let r of d().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(h.identify()),e}};return h},a={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o={high:3,normal:2,low:1}},33896:(e,t,r)=>{r.d(t,{k:()=>i});class i{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:r,done:i}=e.next();if(this.data.delete(r),i||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="",{parameters:r}=this;if(0===r.length)return!1;for(let i of r){let r=String(e[i]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}},37297:(e,t,r)=>{r.d(t,{Mu:()=>u,ec:()=>h,v4:()=>d});var i,s=r(72933),n=r(2448);function a(e,t,r,i){return class s extends Uint8Array{static fromString(e,r="utf-8"){if("string"==typeof e)return"base64"===r?s.mutate(i(e)):s.mutate(t(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,s.prototype),e}transformToString(t="utf-8"){return"base64"===t?r(this):e(this)}}}var o=r(88869),c=r(3744);let l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));Symbol.for("node-only");class u extends a(c.P,o.a,n.n,s.E){}let d=(i=e=>crypto.getRandomValues(e),"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return i(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,l[e[0]]+l[e[1]]+l[e[2]]+l[e[3]]+"-"+l[e[4]]+l[e[5]]+"-"+l[e[6]]+l[e[7]]+"-"+l[e[8]]+l[e[9]]+"-"+l[e[10]]+l[e[11]]+l[e[12]]+l[e[13]]+l[e[14]]+l[e[15]]}),h=d},37946:(e,t,r)=>{r.d(t,{GQ:()=>u,Qb:()=>c,bV:()=>l});let i=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],s=["TimeoutError","RequestTimeout","RequestTimeoutException"],n=[500,502,503,504],a=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],o=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],c=e=>e.$metadata?.httpStatusCode===429||i.includes(e.name)||e.$retryable?.throttling==!0,l=(e,t=0)=>e?.$retryable!==void 0||e.$metadata?.clockSkewCorrected||"InvalidSignatureException"===e.name&&e.message?.includes("Signature expired")||s.includes(e.name)||a.includes(e?.code||"")||o.includes(e?.code||"")||n.includes(e.$metadata?.httpStatusCode||0)||(e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||function(e){return"ERR_HTTP2_STREAM_ERROR"===e.code&&e.message.includes("NGHTTP2_REFUSED_STREAM")}(e)||void 0!==e.cause&&t<=10&&l(e.cause,t+1),u=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!l(e))return!0}return!1}},38174:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(7347),s=r(94790);
1function n(e,t){return new Request(e,t)}let a={supported:void 0};class o{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new o(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===a.supported&&(a.supported=!!("undefined"!=typeof Request&&"keepalive"in n("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);let o=r??this.config.requestTimeout,l=!0===this.config.keepAlive,u=this.config.credentials;if(t?.aborted)return Promise.reject(c(t));let d=e.path,h=function(e){let t=[];for(let r of Object.keys(e).sort()){let s=e[r];if(r=(0,i.o)(r),Array.isArray(s))for(let e=0,n=s.length;e<n;e++)t.push(`${r}=${(0,i.o)(s[e])}`);else{let e=r;(s||"string"==typeof s)&&(e+=`=${(0,i.o)(s)}`),t.push(e)}}return t.join("&")}(e.query||{});h&&(d+=`?${h}`),e.fragment&&(d+=`#${e.fragment}`);let f="";if(null!=e.username||null!=e.password){let t=e.username??"",r=e.password??"";f=`${t}:${r}@`}let{port:p,method:m}=e,g=`${e.protocol}//${f}${e.hostname}${p?`:${p}`:""}${d}`,y="GET"===m||"HEAD"===m?void 0:e.body,w={body:y,headers:new Headers(e.headers),method:m,credentials:u};this.config?.cache&&(w.cache=this.config.cache),y&&(w.duplex="half"),"undefined"!=typeof AbortController&&(w.signal=t),a.supported&&(w.keepalive=l),"function"==typeof this.config.requestInit&&Object.assign(w,this.config.requestInit(e));let b=()=>{},v=[fetch(n(g,w)).then(e=>{let t=e.headers,r={};for(let e of t.entries())r[e[0]]=e[1];return void 0==e.body?e.blob().then(t=>({response:new s.c({headers:r,reason:e.statusText,statusCode:e.status,body:t})})):{response:new s.c({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}}),function(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}(o)];return t&&v.push(new Promise((e,r)=>{let i=()=>{r(c(t))};"function"==typeof t.addEventListener?(t.addEventListener("abort",i,{once:!0}),b=()=>t.removeEventListener("abort",i)):t.onabort=i})),Promise.race(v).finally(b)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function c(e){let t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error("Request aborted");return e.name="AbortError",e.cause=t,e}let e=Error(String(t));return e.name="AbortError",e}let r=Error("Request aborted");return r.name="AbortError",r}},38905:(e,t,r)=>{r.d(t,{S:()=>s,v:()=>i});let i=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),s={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},44879:(e,t,r)=>{r.d(t,{o:()=>s});let i=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}$"),s=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]")},46225:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(95573);let s=void 0;function n(e){let t=(0,i.t)(e.userAgentAppId??s),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{let r=await t();if(!(void 0===r||"string"==typeof r&&r.length<=50)){let t=e.logger?.constructor?.name!=="NoOpLogger"&&e.logger?e.logger:console;"string"!=typeof r?t?.warn("userAgentAppId must be a string or undefined."):r.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}},47472:(e,t,r)=>{r.d(t,{OV:()=>s,TC:()=>a});var i=r(70538);function s(e){return e}let n={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},a=e=>({applyToStack:t=>{t.add(t=>async r=>{if(!i.K.isInstance(r.request))return t(r);let{request:s}=r,{handlerProtocol:n=""}=e.requestHandler.metadata||{};if(n.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 e=s.hostname;null!=s.port&&(e+=`:${s.port}`),s.headers.host=e}return t(r)},n)}})},48565:(e,t,r)=>{r.d(t,{ey:()=>w});let i=e=>e?.body instanceof ReadableStream;var s=r(49998),n=r(70538),a=r(37297),o=r(37946),c=r(21825),l=r(94790),u=r(71176);let d=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):"string"==typeof e?Error(e):Error(`AWS SDK error wrapper for ${e}`);function h(e){return t=>(r,i)=>async o=>{let l=await t.retryStrategy(),u=await t.maxAttempts();if(!p(l))return l?.mode&&(i.userAgent=[...i.userAgent||[],["cfg/retry-mode",l.mode]]),l.retry(r,o);{let h=await l.acquireInitialRetryToken((i.partition_id??"")+(i.__retryLongPoll?":longpoll":"")),p=Error(),g=0,y=0,{request:w}=o,b=n.K.isInstance(w);for(b&&(w.headers[c.l5]=(0,a.v4)());;)try{b&&(w.headers[c.ok]=`attempt=${g+1}; max=${u}`);let{response:e,output:t}=await r(o);return l.recordSuccess(h),t.$metadata.attempts=g+1,t.$metadata.totalRetryDelay=y,{response:e,output:t}}catch(a){let r=m(a,t.logger);if(p=d(a),b&&e(w))throw(i.logger instanceof s.N?console:i.logger)?.warn("An error was encountered in a non-retryable streaming request."),p;try{h=await l.refreshRetryTokenForRetry(h,r)}catch(e){throw p.$metadata||(p.$metadata={}),p.$metadata.attempts=g+1,p.$metadata.totalRetryDelay=y,p}g=h.getRetryCount();let n=h.getRetryDelay();y+=(h?.$retryLog?.acquisitionDelay??0)+n,n>0&&await f(n)}}}}let f=e=>new Promise(t=>
1setTimeout(t,e)),p=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,m=(e,t)=>{let r={error:e,errorType:g(e)},i=function(e,t){if(l.c.isInstance(e))for(let r of Object.keys(e.headers)){let i=r.toLowerCase();if("retry-after"===i){let i=e.headers[r],s=NaN;if(i.endsWith("GMT"))try{s=((0,u.xE)(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(i):Date.parse(i)>=Date.now()&&(s=(Date.parse(i)-Date.now())/1e3);if(isNaN(s))return;return new Date(Date.now()+1e3*s)}if("x-amz-retry-after"===i){let i=e.headers[r],s=Number(i);if(isNaN(s))return void t?.trace?.(`Failed to parse x-amz-retry-after=${i}`);return new Date(Date.now()+s)}}}(e.$response,t);return i&&(r.retryAfterHint=i),r},g=e=>(0,o.Qb)(e)?"THROTTLING":(0,o.bV)(e)?"TRANSIENT":(0,o.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",y={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};Symbol.for("node-only"),h(i);let w=function(e){let t=h(e);return e=>({applyToStack:r=>{r.add(t(e),y)}})}(i)},49998:(e,t,r)=>{r.d(t,{N:()=>i});class i{trace(){}debug(){}info(){}warn(){}error(){}}},51789:(e,t,r)=>{r.d(t,{n:()=>i});let i=e=>({applyToStack:e=>{}})},53964:(e,t,r)=>{r.d(t,{$:()=>s,R:()=>i});let i=e=>({setRegion(t){e.region=t},region:()=>e.region}),s=e=>({region:e.region()})},55714:(e,t,r)=>{r.d(t,{pf:()=>i});let i=({serviceId:e,clientVersion:t})=>async r=>{let i="undefined"!=typeof window?window.navigator:void 0,n=i?.userAgent??"",a=i?.userAgentData?.platform??s.os(n)??"other",o=i?.userAgentData?.brands??[],c=o[o.length-1],l=c?.brand??s.browser(n)??"unknown",u=c?.version??"unknown",d=[["aws-sdk-js",t],["ua","2.1"],[`os/${a}`,void 0],["lang/js"],["md/browser",`${l}_${u}`]];e&&d.push([`api/${e}`,t]);let h=await r?.userAgentAppId?.();return h&&d.push([`app/${h}`]),d},s={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0}},57268:(e,t,r)=>{r.d(t,{m:()=>i});let i=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},57798:(e,t,r)=>{r.d(t,{$z:()=>p});var i=r(6329),s=r(37946);class n{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),e?.errorType==="THROTTLING"||(0,s.Qb)(e?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(e=>n.setTimeoutFn(e,t)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}
1calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=Math.floor(2*this.getCurrentTimeInSeconds())/2;if(this.requestCount++,e>this.lastTxRateBucket){let t=this.requestCount/(e-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=e}}getPrecise(e){return parseFloat(e.toFixed(8))}}var a=r(21825),o=r(58048);class c{x=o.f.delay();computeNextBackoffDelay(e){return Math.floor(Math.random()*Math.min(this.x*2**e,a.G8))}setDelayBase(e){this.x=e}}class l{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};
1constructor(e,t,r,i){this.delay=e,this.count=t,this.cost=r,this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(a.G8,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var u=r(63962);let d={incompatible:1,attempts:2,capacity:3};class h{mode=u.cm.STANDARD;retryBackoffStrategy;capacity=a.Df;maxAttemptsProvider;baseDelay;constructor(e){"number"==typeof e?this.maxAttemptsProvider=async()=>e:"function"==typeof e?this.maxAttemptsProvider=e:e&&"object"==typeof e&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>u.Gz,this.baseDelay??=o.f.delay(),this.retryBackoffStrategy??=new c}async acquireInitialRetryToken(e){return new l(o.f.delay(),0,void 0,o.f.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts(),i=this.retryCode(e,t,r),s=0===i,n=e.isLongPoll?.();if(s||n){let r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?o.f.throttlingDelay():this.baseDelay);let a=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),c=a;if(t.retryAfterHint instanceof Date&&(c=Math.max(a,Math.min(t.retryAfterHint.getTime()-Date.now(),a+5e3))),s){let t=this.getCapacityCost(r);this.capacity-=t;let i=new l(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,c)),i.$retryLog.acquisitionDelay=c,i}{let e=o.f.v2026&&i===d.capacity&&n?c:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(a.Df,this.capacity+(e.getRetryCost()??a.XP))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${u.Gz}`),u.Gz}}retryCode(e,t,r){let i=e.getRetryCount()+1,s=this.isRetryableError(t.errorType)?0:d.incompatible,n=i<r?0:d.attempts,a=this.capacity>=this.getCapacityCost(t.errorType)?0:d.capacity;return s||n||a}getCapacityCost(e){return e===o.f.modifiedCostType()?o.f.throttlingCost():o.f.cost()}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class f{mode=u.cm.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:r}=t??{};this.rateLimiter=r??new n,this.standardRetryStrategy=new h(t?{maxAttempts:"number"==typeof e?e:3,...t}:e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let r=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),r}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}u.Gz;let p=(e,t)=>{let{retryStrategy:r,retryMode:s}=e,{defaultMaxAttempts:n=u.Gz,defaultBaseDelay:a=o.f.delay()}=t??{},c=(0,i.t)(e.maxAttempts??n),l=r?Promise.resolve(r):void 0,d=async()=>{let e=await c();return await (0,i.t)(s)()===u.cm.ADAPTIVE?new f(c,{maxAttempts:e,baseDelay:a}):new h({maxAttempts:e,baseDelay:a})};return Object.assign(e,{maxAttempts:c,retryStrategy:()=>l??=d()})};u.L0},58048:(e,t,r)=>{r.d(t,{f:()=>s});var i=r(87358);class s{static v2026=void 0!==i&&i.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return s.v2026?50:100}static throttlingDelay(){return s.v2026?1e3:500}static cost(){return s.v2026?14:5}static throttlingCost(){return s.v2026?5:10}static modifiedCostType(){return s.v2026?"THROTTLING":"TRANSIENT"}}},58521:(e,t,r)=>{r.d(t,{W:()=>ef});var i,s=r(46225),n=r(47472),a=r(89836),o=r(66419),c=r(51789),l=r(65422),u=r(6245),d=r(9328),h=r(4401),f=r(76636),p=r(99724),m=r(22326),g=r(57798),y=r(48565),w=r(94079),b=r(6329),v=r(85449),S=r(83092);let E=async(e,t,r)=>({operation:(0,S.u)(t).operation,region:await (0,b.t)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),x=e=>{let t=[];return e.operation,t.push({schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:e.region},propertiesExtractor:(e,t)=>
1({signingProperties:{config:e,context:t}})}),t};var T=r(38905);let R={rE:"3.1059.0"};var C=r(19924),P=r(55714),A=r(58712),M=r(85551),$=r(32192),I=r(60024),k=r(63962),O=r(27966),D=r(38174),N=r(78160);!function(e){e.ENV="env",e.CONFIG="shared config entry"}(i||(i={}));var _=r(72888),j=r(81408);class U extends j.p{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}var L=r(49998),z=r(67887),F=r(72933),q=r(2448),H=r(88869),B=r(3744),V=r(26306),G=r(33896),W=r(76811),K=r(76153),J=r(71833);let Q="isSet",Y="PartitionResult",X="booleanEquals",Z="getAttr",ee={ref:"Endpoint"},et={ref:Y},er={},ei=[{ref:"Region"}],es={conditions:[[Q,[ee]],[Q,ei],["aws.partition",ei,Y],[X,[{ref:"UseFIPS"},!0]],[X,[{ref:"UseDualStack"},!0]],["stringEquals",[{fn:Z,argv:[et,"name"]},"aws-us-gov"]],[X,[{fn:Z,argv:[et,"supportsFIPS"]},!0]],[X,[{fn:Z,argv:[et,"supportsDualStack"]},!0]]],results:[[-1],[-1,"Invalid Configuration: FIPS and custom endpoint are not supported"],[-1,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ee,er],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",er],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",er],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",er],[-1,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",er],[-1,"FIPS is enabled but this partition does not support FIPS"],[-1,"DualStack is enabled but this partition does not support DualStack"],[-1,"Invalid Configuration: Missing Region"]]},en=new Int32Array([-1,1,-1,0,14,3,1,4,0x5f5e10b,2,5,0x5f5e10b,3,8,6,4,7,0x5f5e104,7,0x5f5e105,0x5f5e10a,4,11,9,5,0x5f5e104,10,6,0x5f5e108,0x5f5e109,5,0x5f5e105,12,6,13,0x5f5e107,7,0x5f5e106,0x5f5e107,3,0x5f5e101,15,4,0x5f5e102,0x5f5e103]),ea=J.d.from(en,2,es.conditions,es.results),eo=new G.k({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ec=(e,t={})=>eo.get(e,()=>(0,W.c)(ea,{endpointParams:e,logger:t.logger}));K.m.aws=V.U;var el=r(71566),eu=r(53964),ed=r(72089),eh=r(72709);class ef extends h.K{config;constructor(...[e]){let t=(e=>{let t=(0,$.I)(e),r=()=>t().then(A.l),i=(e=>({apiVersion:"2010-08-01",base64Decoder:e?.base64Decoder??F.E,base64Encoder:e?.base64Encoder??q.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ec,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??x,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new _.f2}],logger:e?.logger??new L.N,protocol:e?.protocol??U,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:el.q1U,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:e?.serviceId??"CloudWatch",urlParser:e?.urlParser??z.D,utf8Decoder:e?.utf8Decoder??H.a,utf8Encoder:e?.utf8Encoder??B.P}))(e);return{...i,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??O.n,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,P.pf)({serviceId:i.serviceId,clientVersion:R.rE}),disableRequestCompression:e?.disableRequestCompression??!1,maxAttempts:e?.maxAttempts??k.Gz,region:e?.region??(0,M.B)("Region is missing"),requestHandler:D.N.create(e?.requestHandler??r),requestMinCompressionSizeBytes:e?.requestMinCompressionSizeBytes??10240,retryMode:e?.retryMode??(async()=>(await r()).retryMode||k.L0),sha256:e?.sha256??C.I,streamCollector:e?.streamCollector??N.k,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(I.VW)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(I.Hj))}})(e||{});super(t),this.initConfig=t;let r=(0,T.v)(t),i=(0,s.D)(r),h=(0,g.$z)(i),S=(0,f.T)(h),j=(0,n.OV)(S),V=((e,t)=>{let r=Object.assign((0,eu.R)(e),(0,ed.xA)(e),(0,eh.e)(e),(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,i=e.credentials;return{setHttpAuthScheme(e){let r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){i=e},credentials:()=>i}})(e));
1return t.forEach(e=>e.configure(r)),Object.assign(e,(0,eu.$)(r),(0,ed.uv)(r),(0,eh.j)(r),(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}))(r))})((e=>{let{disableRequestCompression:t,requestMinCompressionSizeBytes:r}=e;return Object.assign(e,{disableRequestCompression:(0,b.t)(t),requestMinCompressionSizeBytes:async()=>{let e=await (0,b.t)(r)();if(e<0||e>0xa00000)throw RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${e} is outside this range."`);return e}})})((e=>Object.assign((0,v.h)(e),{authSchemePreference:(0,b.t)(e.authSchemePreference??[])}))((0,p.Co)(j))),e?.extensions||[]);this.config=V,this.middlewareStack.use((0,w.wq)(this.config)),this.middlewareStack.use((0,a.sM)(this.config)),this.middlewareStack.use((0,y.ey)(this.config)),this.middlewareStack.use((0,m.vK)(this.config)),this.middlewareStack.use((0,n.TC)(this.config)),this.middlewareStack.use((0,o.Y7)(this.config)),this.middlewareStack.use((0,c.n)(this.config)),this.middlewareStack.use((0,l.w)(this.config,{httpAuthSchemeParametersProvider:E,identityProviderConfigProvider:async e=>new u.h({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,d.l)(this.config))}destroy(){super.destroy()}}},58712:(e,t,r)=>{r.d(t,{l:()=>i});let i=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},60024:(e,t,r)=>{r.d(t,{Hj:()=>s,VW:()=>i}),Symbol.for("node-only");let i=!1,s=!1},63962:(e,t,r)=>{var i;r.d(t,{Gz:()=>s,L0:()=>n,cm:()=>i}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(i||(i={}));let s=3,n=i.STANDARD},65422:(e,t,r)=>{r.d(t,{w:()=>n});var i=r(83092);let s={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},n=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(((e,t)=>(r,s)=>async n=>{let a=((e,t)=>{if(!t||0===t.length)return e;let r=[];for(let i of t)for(let t of e)t.schemeId.split("#")[1]===i&&r.push(t);for(let t of e)r.find(({schemeId:e})=>e===t.schemeId)||r.push(t);return r})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,s,n.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=function(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),c=(0,i.u)(s),l=[];for(let r of a){let i=o.get(r.schemeId);if(!i){l.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}let n=i.identityProvider(await t.identityProviderConfigProvider(e));if(!n){l.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:a={},signingProperties:u={}}=r.propertiesExtractor?.(e,s)||{};r.identityProperties=Object.assign(r.identityProperties||{},a),r.signingProperties=Object.assign(r.signingProperties||{},u),c.selectedHttpAuthScheme={httpAuthOption:r,identity:await n(r.identityProperties),signer:i.signer};break}if(!c.selectedHttpAuthScheme)throw Error(l.join("\n"));return r(n)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),s)}})},66419:(e,t,r)=>{r.d(t,{Y7:()=>s});let i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},s=e=>({applyToStack:e=>{e.add((e,t)=>async r=>{try{let i=await e(r),{clientName:s,commandName:n,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=o,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:h,...f}=i.output;return a?.info?.({clientName:s,commandName:n,input:u(r.input),output:d(f),metadata:h}),i}catch(c){let{clientName:e,commandName:i,logger:s,dynamoDbDocumentClientOptions:n={}}=t,{overrideInputFilterSensitiveLog:a}=n,o=a??t.inputFilterSensitiveLog;throw s?.error?.({clientName:e,commandName:i,input:o(r.input),error:c,metadata:c.$metadata}),c}},i)}})},67887:(e,t,r)=>{r.d(t,{D:()=>i});let i=e=>{let t;if("string"==typeof e)return i(new URL(e));let{hostname:r,pathname:s,port:n,protocol:a,search:o}=e;return o&&(t=function(e){let t={};if(e=e.replace(/^\?/,""))for(let r of e.split("&")){let[e,i=null]=r.split("=");e=decodeURIComponent(e),i&&(i=decodeURIComponent(i)),e in t?Array.isArray(t[e])?t[e].push(i):t[e]=[t[e],i]:t[e]=i}return t}(o)),{hostname:r,port:n?parseInt(n):void 0,protocol:a,path:s,query:t}}},69715:(e,t,r)=>{r.d(t,{L:()=>i});let i=e=>"function"==typeof e?e():e},70300:(e,t,r)=>{r.d(t,{S:()=>s,v:()=>i});let i=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"secretsmanager"}),s={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},70538:(e,t,r)=>{r.d(t,{K:()=>i});class i{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){var t;let r=new i({...e,headers:{...e.headers}});return r.query&&(r.query=Object.keys(t=r.query).reduce((e,r)=>{let i=t[r];return{...e,[r]:Array.isArray(i)?[...i]:i}},{})),r}static isInstance(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers}clone(){return i.clone(this)}}},71176:(e,t,r)=>{r.d(t,{JV:()=>y,l3:()=>T,t_:()=>b,xE:()=>x});let i=e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);
1if(!Number.isNaN(t))return String(t)!==String(e)&&p.warn(f(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},s=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),n=e=>{let t=i(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>s)throw TypeError(`Expected 32-bit float, got ${e}`);return t},a=e=>c(e,16),o=e=>c(e,8),c=(e,t)=>{let r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&l(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},l=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},u=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,d=e=>{let t=e.match(u);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},h=e=>"string"==typeof e?a(d(e)):a(e),f=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),p={warn:console.warn},m=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function y(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDay(),s=e.getUTCDate(),n=e.getUTCHours(),a=e.getUTCMinutes(),o=e.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,l=n<10?`0${n}`:`${n}`,u=a<10?`0${a}`:`${a}`,d=o<10?`0${o}`:`${o}`;return`${m[i]}, ${c} ${g[r]} ${t} ${l}:${u}:${d} GMT`}let w=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),b=e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-3339 date-times must be expressed as strings");let t=w.exec(e);if(!t)throw TypeError("Invalid RFC-3339 date-time value");let[r,i,s,n,a,o,c,l,u]=t,d=h(N(i)),f=R(d,k(s,"month",1,12),k(n,"day",1,31),{hours:a,minutes:o,seconds:c,fractionalMilliseconds:l});return"Z"!=u.toUpperCase()&&f.setTime(f.getTime()-D(u)),f},v=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$/),S=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$/),E=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})$/),x=e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-7231 date-times must be expressed as strings");let t=v.exec(e);if(t){let[e,r,i,s,n,a,o,c]=t;return R(h(N(s)),A(i),k(r,"day",1,31),{hours:n,minutes:a,seconds:o,fractionalMilliseconds:c})}if(t=S.exec(e)){let[e,r,i,s,n,a,o,c]=t;return P(R(C(s),A(i),k(r,"day",1,31),{hours:n,minutes:a,seconds:o,fractionalMilliseconds:c}))}if(t=E.exec(e)){let[e,r,i,s,n,a,o,c]=t;return R(h(N(c)),A(r),k(i.trimLeft(),"day",1,31),{hours:s,minutes:n,seconds:a,fractionalMilliseconds:o})}throw TypeError("Invalid RFC-7231 date-time value")},T=e=>{let t;if(null!=e){if("number"==typeof e)t=e;else if("string"==typeof e)t=(e=>"string"==typeof e?i(d(e)):i(e))(e);else if("object"==typeof e&&1===e.tag)t=e.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))}},R=(e,t,r,i)=>{let s=t-1;return $(e,s,r),new Date(Date.UTC(e,s,r,k(i.hours,"hour",0,23),k(i.minutes,"minute",0,59),k(i.seconds,"seconds",0,60),O(i.fractionalMilliseconds)))},C=e=>{let t=new Date().getUTCFullYear(),r=100*Math.floor(t/100)+h(N(e));return r<t?r+100:r},P=e=>e.getTime()-new Date().getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,A=e=>{let t=g.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},M=[31,28,31,30,31,30,31,31,30,31,30,31],$=(e,t,r)=>{let i=M[t];if(1===t&&I(e)&&(i=29),r>i)throw TypeError(`Invalid day for ${g[t]} in ${e}: ${r}`)},I=e=>e%4==0&&(e%100!=0||e%400==0),k=(e,t,r,i)=>{let s=(e=>"string"==typeof e?o(d(e)):o(e))(N(e));if(s<r||s>i)throw TypeError(`${t} must be between ${r} and ${i}, inclusive`);return s},O=e=>null==e?0:1e3*(e=>"string"==typeof e?n(d(e)):n(e))("0."+e),D=e=>{let t=e[0],r=1;if("+"==t)r=1;else if("-"==t)r=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*6e4},N=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},71566:(e,t,r)=>{r.d(t,{_pc:()=>eW,q1U:()=>ew});var i=r(83638),s=r(92508);class n extends s.T{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}class a extends n{name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype),this.Message=e.Message}}class o extends n{name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype),this.Message=e.Message}}class c extends n{name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}}class l extends n{name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}class u extends n{name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype)}}class d extends n{name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,d.prototype),this.Message=e.Message}}class h extends n{name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,h.prototype)}}class f extends n{name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,f.prototype)}}class p extends n{name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,p.prototype)}}class m extends n{name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,m.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}}class g extends n{name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,g.prototype)}}class y extends n{name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,y.prototype),this.Message=e.Message}}class w extends n{name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,w.prototype)}}class b extends n{name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,b.prototype)}}let v="AccountId",S="Dimensions",E="Entity",x="EvaluationCriteria",T="EntityMetricData",R="Expression",C="Label",P="Message",A="MetricCharacteristics",M="MetricData",$="MetricDataQueries",I="MetricMathAnomalyDetector",k="MetricName",O="MetricStat",D="Maximum",N="Metric",_="Minimum",j="Namespace",U="Name",L="Period",z="SampleCount",F="SingleMetricAnomalyDetector",q="Stat",H="State",B="Timestamp",V="Unit",G="Value",W="Values",K="awsQueryError",J="client",Q="error",Y="httpError",X="message",Z="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",ee="com.amazonaws.cloudwatch",et=i.O.for(Z);var er=[-3,Z,"CloudWatchServiceException",0,[],[]];et.registerError(er,n);let ei=i.O.for(ee);var es=[-3,ee,"ConcurrentModificationException",{[K]:["ConcurrentModificationException",429],[Q]:J,[Y]:429},[P],[0]];ei.registerError(es,a);var en=[-3,ee,"ConflictException",{[Q]:J,[Y]:409},[P],[0]];ei.registerError(en,o);var ea=[-3,ee,"DashboardInvalidInputError",{[K]:["InvalidParameterInput",400],[Q]:J,[Y]:400},[X,"dashboardValidationMessages"],[0,()=>eF]];ei.registerError(ea,c);var eo=[-3,ee,"DashboardNotFoundError",{[K]:["ResourceNotFound",404],[Q]:J,[Y]:404},[X],[0]];ei.registerError(eo,l);var ec=[-3,ee,"InternalServiceFault",{[K]:["InternalServiceError",500],[Q]:"server",[Y]:500},[P],[0]];ei.registerError(ec,d);var el=[-3,ee,"InvalidFormatFault",{[K]:["InvalidFormat",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(el,b);var eu=[-3,ee,"InvalidNextToken",{[K]:["InvalidNextToken",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(eu,g);var ed=[-3,ee,"InvalidParameterCombinationException",{[K]:["InvalidParameterCombination",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(ed,h);var eh=[-3,ee,"InvalidParameterValueException",{[K]:["InvalidParameterValue",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(eh,f);var ef=[-3,ee,"LimitExceededException",{[K]:["LimitExceededException",400],[Q]:J,[Y]:400},[P],[0]];ei.registerError(ef,y);var ep=[-3,ee,"LimitExceededFault",{[K]:["LimitExceeded",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(ep,w);var em=[-3,ee,"MissingRequiredParameterException",{[K]:["MissingParameter",400],[Q]:J,[Y]:400},[X],[0]];ei.registerError(em,p);var eg=[-3,ee,"ResourceNotFound",{[K]:["ResourceNotFound",404],[Q]:J,[Y]:404},[X],[0]];ei.registerError(eg,u);var ey=[-3,ee,"ResourceNotFoundException",{[K]:["ResourceNotFoundException",404],[Q]:J,[Y]:404},["ResourceType","ResourceId",P],[0,0,0]];ei.registerError(ey,m);let ew=[et,ei];
1var eb=[3,ee,"AlarmPromQLCriteria",0,["Query","PendingPeriod","RecoveryPeriod"],[0,1,1],1],ev=[3,ee,"AnomalyDetectorConfiguration",0,["ExcludedTimeRanges","MetricTimezone"],[()=>ez,0]],eS=[3,ee,"DashboardValidationMessage",0,["DataPath",P],[0,0]],eE=[3,ee,"Dimension",0,[U,G],[0,0],2],ex=[3,ee,E,0,["KeyAttributes","Attributes"],[128,128]],eT=[3,ee,T,0,[E,M],[()=>ex,()=>eB]],eR=[3,ee,"InsightRuleContributorDatapoint",0,[B,"ApproximateValue"],[4,1],2],eC=[3,ee,"ManagedRuleState",0,["RuleName",H],[0,0],2],eP=[3,ee,"MessageData",0,["Code",G],[0,0]],eA=[3,ee,N,0,[j,k,S],[0,0,()=>eq]],eM=[3,ee,A,0,["PeriodicSpikes"],[2]],e$=[3,ee,"MetricDataQuery",0,["Id",O,R,C,"ReturnData",L,v],[0,()=>eO,0,0,2,1,0],1],eI=[3,ee,"MetricDatum",0,[k,S,B,G,"StatisticValues",W,"Counts",V,"StorageResolution"],[0,()=>eq,4,1,()=>eU,65,65,0,1],1],ek=[3,ee,I,0,[$],[()=>eV]],eO=[3,ee,O,0,[N,L,q,V],[()=>eA,1,0,0],3],eD=[3,ee,"MetricStreamStatisticsMetric",0,[j,k],[0,0],2],eN=[3,ee,"PutMetricDataInput",0,[j,M,T,"StrictEntityValidation"],[0,()=>eB,()=>eH,2],1],e_=[3,ee,"Range",0,["StartTime","EndTime"],[4,4],2],ej=[3,ee,F,0,[v,j,k,S,q],[0,0,0,()=>eq,0]],eU=[3,ee,"StatisticSet",0,[z,"Sum",_,D],[1,1,1,1],4],eL=[3,ee,"Tag",0,["Key",G],[0,0],2],ez=[1,ee,"AnomalyDetectorExcludedTimeRanges",0,()=>e_],eF=[1,ee,"DashboardValidationMessages",0,()=>eS],eq=[1,ee,S,0,()=>eE],eH=[1,ee,"EntityMetricDataList",0,()=>eT],eB=[1,ee,M,0,()=>eI],eV=[1,ee,$,0,()=>e$],eG=[4,ee,x,0,["PromQLCriteria"],[()=>eb]],eW=[9,ee,"PutMetricData",0,()=>eN,()=>"unit"]},71833:(e,t,r)=>{r.d(t,{d:()=>i});class i{nodes;root;conditions;results;
1constructor(e,t,r,i){this.nodes=e,this.root=t,this.conditions=r,this.results=i}static from(e,t,r,s){return new i(e,t,r,s)}}},72089:(e,t,r)=>{var i;r.d(t,{xA:()=>n,uv:()=>a}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(i||(i={}));let s=Object.values(i),n=e=>Object.assign((e=>{let t=[];for(let r in i){let s=i[r];void 0!==e[s]&&t.push({algorithmId:()=>s,checksumConstructor:()=>e[s]})}for(let[r,i]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>i});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let i=r.algorithmId(),n=r.checksumConstructor();s.includes(i)?e.checksumAlgorithms[i.toUpperCase()]=n:e.checksumAlgorithms[i]=n,t.push(r)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)),a=e=>Object.assign((e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let r=e.algorithmId();s.includes(r)&&(t[r]=e.checksumConstructor())}),t})(e),(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t})(e))},72709:(e,t,r)=>{r.d(t,{e:()=>i,j:()=>s});let i=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),s=e=>({httpHandler:e.httpHandler()})},72888:(e,t,r)=>{r.d(t,{f2:()=>u});var i=r(70538);let s=e=>new Date(Date.now()+e);var n=r(94790);let a=e=>n.c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,o=(e,t)=>{let r=Date.parse(e);return Math.abs(s(t).getTime()-r)>=3e5?r-Date.now():t},c=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},l=async e=>{let t=c("context",e.context),r=c("config",e.config),i=t.endpointV2?.properties?.authSchemes?.[0],s=c("signer",r.signer),n=await s(i),a=e?.signingRegion;return{config:r,signer:n,signingRegion:a,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}};class u{async sign(e,t,r){if(!i.K.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let n=await l(r),{config:a,signer:o}=n,{signingRegion:c,signingName:u}=n,d=r.context;if(d?.authSchemes?.length){let[e,t]=d.authSchemes;e?.name==="sigv4a"&&t?.name==="sigv4"&&(c=t?.signingRegion??c,u=t?.signingName??u)}return await o.sign(e,{signingDate:s(a.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return t=>{let r=t.ServerTime??a(t.$response);if(r){let i=c("config",e.config),s=i.systemClockOffset;i.systemClockOffset=o(r,i.systemClockOffset),i.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let r=a(e);if(r){let e=c("config",t.config);e.systemClockOffset=o(r,e.systemClockOffset)}}}},72933:(e,t,r)=>{r.d(t,{E:()=>s});var i=r(19698);let s=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;let r=new ArrayBuffer(t),s=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,n=0;for(let s=t,a=t+3;s<=a;s++)if("="!==e[s]){if(!(e[s]in i.mh))throw TypeError(`Invalid character ${e[s]} in base64 string.`);r|=i.mh[e[s]]<<(a-s)*i._w,n+=i._w}else r>>=i._w;let a=t/4*3;r>>=n%i.kQ;let o=Math.floor(n/i.kQ);for(let e=0;e<o;e++){let t=(o-e-1)*i.kQ;s.setUint8(a+e,(r&255<<t)>>t)}}return new Uint8Array(r)}},75268:(e,t,r)=>{r.d(t,{z:()=>eT});var i,s=r(18164),n=r(99724),a=r(70538),o={},c=function(e,t,r,i,s){var n=new Worker(o[t]||(o[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return n.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var i=Error(r[0]);i.code=r[1],i.stack=r[2],s(i,null)}else s(null,t)},n.postMessage(r,i),n},l=Uint8Array,u=Uint16Array,d=Int32Array,h=new l([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new l([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),p=new l([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=function(e,t){for(var r=new u(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new d(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return{b:r,r:s}},g=m(h,2),y=g.b,w=g.r;y[28]=258,w[258]=28;for(var b=m(f,0),v=(b.b,b.r),S=new u(32768),E=0;E<32768;++E){var x=(43690&E)>>1|(21845&E)<<1;x=(61680&(x=(52428&x)>>2|(13107&x)<<2))>>4|(3855&x)<<4,S[E]=((65280&x)>>8|(255&x)<<8)>>1}for(var T=function(e,t,r){for(var i,s=e.length,n=0,a=new u(t);n<s;++n)e[n]&&++a[e[n]-1];var o=new u(t);for(n=1;n<t;++n)o[n]=o[n-1]+a[n-1]<<1;if(r){i=new u(1<<t);var c=15-t;for(n=0;n<s;++n)if(e[n])for(var l=n<<4|e[n],d=t-e[n],h=o[e[n]-1]++<<d,f=h|(1<<d)-1;h<=f;++h)i[S[h]>>c]=l}else for(n=0,i=new u(s);n<s;++n)e[n]&&(i[n]=S[o[e[n]-1]++]>>15-e[n]);return i},R=new l(288),E=0;E<144;++E)R[E]=8;for(var E=144;E<256;++E)R[E]=9;for(var E=256;E<280;++E)R[E]=7;for(var E=280;E<288;++E)R[E]=8;for(var C=new l(32),E=0;E<32;++E)C[E]=5;var P=T(R,9,0),A=T(C,5,0),M=function(e){return(e+7)/8|0},$=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new l(e.subarray(t,r))}
vendor: 6,471 bytes, line 1
1,I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],k=function(e,t,r){var i=Error(t||I[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,k),!r)throw i;return i},O=function(e,t,r){r<<=7&t;var i=t/8|0;e[i]|=r,e[i+1]|=r>>8},D=function(e,t,r){r<<=7&t;var i=t/8|0;e[i]|=r,e[i+1]|=r>>8,e[i+2]|=r>>16},N=function(e,t){for(var r=[],i=0;i<e.length;++i)e[i]&&r.push({s:i,f:e[i]});var s=r.length,n=r.slice();if(!s)return{t:q,l:0};if(1==s){var a=new l(r[0].s+1);return a[r[0].s]=1,{t:a,l:1}}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var o=r[0],c=r[1],d=0,h=1,f=2;for(r[0]={s:-1,f:o.f+c.f,l:o,r:c};h!=s-1;)o=r[r[d].f<r[f].f?d++:f++],c=r[d!=h&&r[d].f<r[f].f?d++:f++],r[h++]={s:-1,f:o.f+c.f,l:o,r:c};for(var p=n[0].s,i=1;i<s;++i)n[i].s>p&&(p=n[i].s);var m=new u(p+1),g=_(r[h-1],m,0);if(g>t){var i=0,y=0,w=g-t,b=1<<w;for(n.sort(function(e,t){return m[t.s]-m[e.s]||e.f-t.f});i<s;++i){var v=n[i].s;if(m[v]>t)y+=b-(1<<g-m[v]),m[v]=t;else break}for(y>>=w;y>0;){var S=n[i].s;m[S]<t?y-=1<<t-m[S]++-1:++i}for(;i>=0&&y;--i){var E=n[i].s;m[E]==t&&(--m[E],++y)}g=t}return{t:new l(m),l:g}},_=function(e,t,r){return -1==e.s?Math.max(_(e.l,t,r+1),_(e.r,t,r+1)):t[e.s]=r},j=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new u(++t),i=0,s=e[0],n=1,a=function(e){r[i++]=e},o=1;o<=t;++o)if(e[o]==s&&o!=t)++n;else{if(!s&&n>2){for(;n>138;n-=138)a(32754);n>2&&(a(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(a(s),--n;n>6;n-=6)a(8304);n>2&&(a(n-3<<5|8208),n=0)}for(;n--;)a(s);n=1,s=e[o]}return{c:r.subarray(0,i),n:t}},U=function(e,t){for(var r=0,i=0;i<t.length;++i)r+=e[i]*t[i];return r},L=function(e,t,r){var i=r.length,s=M(t+2);e[s]=255&i,e[s+1]=i>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var n=0;n<i;++n)e[s+n+4]=r[n];return(s+4+i)*8},z=function(e,t,r,i,s,n,a,o,c,l,d){O(t,d++,r),++s[256];for(var m,g,y,w,b=N(s,15),v=b.t,S=b.l,E=N(n,15),x=E.t,M=E.l,$=j(v),I=$.c,k=$.n,_=j(x),z=_.c,F=_.n,q=new u(19),H=0;H<I.length;++H)++q[31&I[H]];for(var H=0;H<z.length;++H)++q[31&z[H]];for(var B=N(q,7),V=B.t,G=B.l,W=19;W>4&&!V[p[W-1]];--W);var K=l+5<<3,J=U(s,R)+U(n,C)+a,Q=U(s,v)+U(n,x)+a+14+3*W+U(q,V)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&K<=J&&K<=Q)return L(t,d,e.subarray(c,c+l));if(O(t,d,1+(Q<J)),d+=2,Q<J){m=T(v,S,0),g=v,y=T(x,M,0),w=x;var Y=T(V,G,0);O(t,d,k-257),O(t,d+5,F-1),O(t,d+10,W-4),d+=14;for(var H=0;H<W;++H)O(t,d+3*H,V[p[H]]);d+=3*W;for(var X=[I,z],Z=0;Z<2;++Z)for(var ee=X[Z],H=0;H<ee.length;++H){var et=31&ee[H];O(t,d,Y[et]),d+=V[et],et>15&&(O(t,d,ee[H]>>5&127),d+=ee[H]>>12)}}else m=P,g=R,y=A,w=C;for(var H=0;H<o;++H){var er=i[H];if(er>255){var et=er>>18&31;D(t,d,m[et+257]),d+=g[et+257],et>7&&(O(t,d,er>>23&31),d+=h[et]);var ei=31&er;D(t,d,y[ei]),d+=w[ei],ei>3&&(D(t,d,er>>5&8191),d+=f[ei])}else D(t,d,m[er]),d+=g[er]}return D(t,d,m[256]),d+g[256]},F=new d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=new l(0),H=function(e,t,r,i,s,n){var a=n.z||e.length,o=new l(i+a+5*(1+Math.ceil(a/7e3))+s),c=o.subarray(i,o.length-s),p=n.l,m=7&(n.r||0);if(t){m&&(c[0]=n.r>>3);for(var g=F[t-1],y=g>>13,b=8191&g,S=(1<<r)-1,E=n.p||new u(32768),x=n.h||new u(S+1),T=Math.ceil(r/3),R=2*T,C=function(t){return(e[t]^e[t+1]<<T^e[t+2]<<R)&S},P=new d(25e3),A=new u(288),I=new u(32),k=0,O=0,D=n.i||0,N=0,_=n.w||0,j=0;D+2<a;++D){var U=C(D),q=32767&D,H=x[U];if(E[q]=H,x[U]=q,_<=D){var B=a-D;if((k>7e3||N>24576)&&(B>423||!p)){m=z(e,c,0,P,A,I,O,N,j,D-j,m),N=k=O=0,j=D;for(var V=0;V<286;++V)A[V]=0;for(var V=0;V<30;++V)I[V]=0}var G=2,W=0,K=b,J=q-H&32767;if(B>2&&U==C(D-J))for(var Q=Math.min(y,B)-1,Y=Math.min(32767,D),X=Math.min(258,B);J<=Y&&--K&&q!=H;){if(e[D+G]==e[D+G-J]){for(var Z=0;Z<X&&e[D+Z]==e[D+Z-J];++Z);if(Z>G){if(G=Z,W=J,Z>Q)break;for(var ee=Math.min(J,Z-2),et=0,V=0;V<ee;++V){var er=D-J+V&32767,ei=E[er],es=er-ei&32767;es>et&&(et=es,H=er)}}}H=E[q=H],J+=q-H&32767}if(W){P[N++]=0x10000000|w[G]<<18|v[W];var en=31&w[G],ea=31&v[W];O+=h[en]+f[ea],++A[257+en],++I[ea],_=D+G,++k}else P[N++]=e[D],++A[e[D]]}}for(D=Math.max(D,_);D<a;++D)P[N++]=e[D],++A[e[D]];m=z(e,c,p,P,A,I,O,N,j,D-j,m),p||(n.r=7&m|c[m/8|0]<<3,m-=7,n.h=x,n.p=E,n.i=D,n.w=_)}else{for(var D=n.w||0;D<a+p;D+=65535){var eo=D+65535;eo>=a&&(c[m/8|0]=p,eo=a),m=L(c,m+1,e.subarray(D,eo))}n.i=a}return $(o,0,i+M(m)+s)},B=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,i=9;--i;)r=(1&r&&-0x12477ce0)^r>>>1;e[t]=r}return e}(),V=function(){var e=-1;return{p:function(t){for(var r=e,i=0;i<t.length;++i)r=B[255&r^t[i]]^r>>>8;e=r},d:function(){return~e}}},G=function(e,t,r,i,s){if(!s&&(s={l:1},t.dictionary)){var n=t.dictionary.subarray(-32768),a=new l(n.length+e.length);a.set(n),a.set(e,n.length),e=a,s.w=n.length}return H(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,i,s)},W=function(e,t){var r={};for(var i in e)r[i]=e[i];for(var i in t)r[i]=t[i];return r},K=function(e,t,r){for(var i=e(),s=e.toString(),n=s.slice(s.indexOf("[")+1,s.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var o=i[a],c=n[a];if("function"==typeof o){t+=";"+c+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var d in t+=l,o.prototype)t+=";"+c+".prototype."+d+"="+o.prototype[d].toString();else t+=l}else r[c]=o}return t},J=[],Q=function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t},Y=function(e,t,r,i){if(!J[r]){for(var s="",n={},a=e.length-1,o=0;o<a;++o)s=K(e[o],s,n);J[r]={c:K(e[a],s,n),e:n}}var l=W({},J[r].e);return c(J[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,l,Q(l),i)},X=function(){return[l,u,d,h,f,p,w,v,P,R,A,C,S,F,q,T,O,D,N,_,j,U,L,z,M,$,H,G,el,ee]},Z=function(){return[en,ea,es,V,B]},ee=function(e){return postMessage(e,[e.buffer])},et=function(e,t,r,i,s,n){var a=Y(r,i,s,function(e,t){a.terminate(),n(e,t)});return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},er=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){return e.push(t.data[0],t.data[1])}},ei=function(e,t,r,i,s,n){var a,o=Y(e,i,s,function(e,r){e?(o.terminate(),t.ondata.call(t,e)):Array.isArray(r)?(r[1]&&o.terminate(),t.ondata.call(t,e,r[0],r[1])):n(r)});
1o.postMessage(r),t.push=function(e,r){t.ondata||k(5),a&&t.ondata(k(4,0,1),null,!!r),o.postMessage([e,a=r],[e.buffer])},t.terminate=function(){o.terminate()}},es=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},en=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&es(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var i=0;i<=r.length;++i)e[i+10]=r.charCodeAt(i)}},ea=function(e){return 10+(e.filename?e.filename.length+1:0)};function eo(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var ec=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new l(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return e.prototype.p=function(e,t){this.ondata(G(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||k(5),this.s.l&&k(4);var r=e.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new l(-32768&r);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;s&&(this.b.set(e.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(s),32768),this.s.z=e.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e}();function el(e,t){return G(e,t||{},0,0)}var eu=function(){function e(e,t){this.c=V(),this.l=0,this.v=1,ec.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,ec.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=G(e,this.o,this.v&&ea(this.o),t&&8,this.s);this.v&&(en(r,this.o),this.v=0),t&&(es(r,r.length-8,this.c.d()),es(r,r.length-4,this.l)),this.ondata(r,t)},e}(),ed=function(e,t){ei([X,Z,function(){return[er,ec,eu]}],this,eo.call(this,e,t),function(e){onmessage=er(new eu(e.data))},8)};function eh(e,t){t||(t={});var r=V(),i=e.length;r.p(e);var s=G(e,t,ea(t),8),n=s.length;return en(s,t),es(s,n-8,r.d()),es(s,n-4,i),s}var ef="undefined"!=typeof TextDecoder&&new TextDecoder;try{ef.decode(q,{stream:!0})}catch(e){}"function"==typeof queueMicrotask&&queueMicrotask;let ep=async e=>{let t,r=new ed,i=new TransformStream({start(e){r.ondata=(r,i,s)=>{r?e.error(r):(e.enqueue(i),s&&(t?t():e.terminate()))}},transform(e){r.push(e)},flush:()=>new Promise(e=>{t=e,r.push(new Uint8Array(0),!0)})});return e.pipeThrough(i)};var em=r(16774);let eg=async e=>new Promise((t,r)=>{!function(e,t,r){r||(r=t,t={}),"function"!=typeof r&&k(7),et(e,t,[X,Z,function(){return[eh]}],function(e){return ee(eh(e.data[0],e.data[1]))},2,r)}((0,em.F)(e||""),(e,i)=>{e?r(Error("Failure during compression: "+e.message)):t(i)})});(i||(i={})).GZIP="gzip";let ey=[i.GZIP];var ew=r(57268);let eb=e=>void 0!==e&&"string"!=typeof e&&!ArrayBuffer.isView(e)&&!(0,ew.m)(e),ev={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},eS=(e,t)=>({applyToStack:r=>{r.add(((e,t)=>(r,i)=>async s=>{if(!a.K.isInstance(s.request)||await e.disableRequestCompression())return r(s);let{request:n}=s,{body:o,headers:c}=n,{encodings:l,streamRequiresLength:u}=t,d=o,h=c;for(let t of l)if(ey.includes(t)){let r=!1;if(eb(o))if(u)throw Error("Compression is not supported for streaming blobs that require a length.");else d=await ep(o),r=!0;else{let t=e.bodyLengthChecker(o),i=await e.requestMinCompressionSizeBytes();t&&t>=i&&(d=await eg(o),r=!0)}if(r){(h=c["content-encoding"]?{...c,"content-encoding":`${c["content-encoding"]}, ${t}`}:{...c,"content-encoding":t})["content-encoding"].includes("gzip")&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]="L"}(i,"GZIP_REQUEST_COMPRESSION",0);break}}return r({...s,request:{...n,body:d,headers:h}})})(e,t),ev)}});var eE=r(38905),ex=r(71566);class eT extends s.u.classBuilder().ep(eE.S).m(function(e,t,r,i){return[(0,n.rD)(r,e.getEndpointParameterInstru
1ctions()),eS(r,{encodings:["gzip"]})]}).s("GraniteServiceVersion20100801","PutMetricData",{}).n("CloudWatchClient","PutMetricDataCommand").sc(ex._pc).build(){}},76153:(e,t,r)=>{r.d(t,{m:()=>i});let i={}},76636:(e,t,r)=>{r.d(t,{T:()=>a});var i=r(20543);let s=new Set,n=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),a=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw Error("Region is missing");return Object.assign(e,{region:async()=>{let e=(e=>n(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"==typeof t?await t():t);return((e,t=i.X)=>{if(s.has(e)||t(e))s.add(e);else if("*"===e)console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`)})(e),e},useFipsEndpoint:async()=>!!n("string"==typeof t?t:await t())||("function"!=typeof r?Promise.resolve(!!r):r())})}},76811:(e,t,r)=>{r.d(t,{c:()=>v});class i extends Error{constructor(e){super(e),this.name="EndpointError"}}function s(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${s(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(s).join(", ")})`:JSON.stringify(e,null,2)}var n,a=r(76153);let o=(e,t)=>(e=>{let t=e.split("."),r=[];for(let s of t){let t=s.indexOf("[");if(-1!==t){if(s.indexOf("]")!==s.length-1)throw new i(`Path: '${e}' does not end with ']'`);let n=s.slice(t+1,-1);if(Number.isNaN(parseInt(n)))throw new i(`Invalid array index: '${n}' in path: '${e}'`);0!==t&&r.push(s.slice(0,t)),r.push(n)}else r.push(s)}return r})(t).reduce((r,s)=>{if("object"!=typeof r)throw new i(`Index '${s}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let e=parseInt(s);return r[e<0?r.length+e:e]}return r[s]},e);var c=r(20543);!function(e){e.HTTP="http",e.HTTPS="https"}(n||(n={}));var l=r(44879);let u={[n.HTTP]:80,[n.HTTPS]:443},d={booleanEquals:(e,t)=>e===t,coalesce:function(...e){for(let t of e)if(null!=t)return t},getAttr:o,isSet:e=>null!=e,isValidHostLabel:c.X,ite:function(e,t,r){return e?t:r},not:e=>!e,parseURL:e=>{let t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){let{hostname:t,port:r,protocol:i="",path:s="",query:n={}}=e,a=new URL(`${i}//${t}${r?`:${r}`:""}${s}`);return a.search=Object.entries(n).map(([e,t])=>`${e}=${t}`).join("&"),a}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:i,hostname:s,pathname:a,protocol:o,search:c}=t;if(c)return null;let d=o.slice(0,-1);if(!Object.values(n).includes(d))return null;let h=(0,l.o)(s),f=r.includes(`${i}:${u[d]}`)||"string"==typeof e&&e.includes(`${i}:${u[d]}`),p=`${i}${f?`:${u[d]}`:""}`;return{scheme:d,authority:p,path:a,normalizedPath:a.endsWith("/")?a:`${a}/`,isIp:h}},split:function(e,t,r){if(1===r)return[e];if(""===e)return[""];let i=e.split(t);return 0===r?i:i.slice(0,r-1).concat(i.slice(1).join(t))},stringEquals:(e,t)=>e===t,substring:(e,t,r,i)=>null==e||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:i?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},h=(e,t)=>{let r=[],{referenceRecord:i,endpointParams:s}=t,n=0;for(;n<e.length;){let t=e.indexOf("{",n);if(-1===t){r.push(e.slice(n));break}r.push(e.slice(n,t));let a=e.indexOf("}",t);if(-1===a){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[a+1]&&(r.push(e.slice(t+1,a)),n=a+2);let c=e.substring(t+1,a);if(c.includes("#")){let[e,t]=c.split("#");r.push(o(i[e]??s[e],t))}else r.push(i[c]??s[c]);n=a+1}return r.join("")},f=(e,t,r)=>{if("string"==typeof e)return h(e,r);if(e.fn)return m.callFunction(e,r);if(e.ref)return(({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e])(e,r);throw new i(`'${t}': ${String(e)} is not a string, function or reference.`)},p=({fn:e,argv:t},r)=>{let i=Array(t.length);for(let e=0;e<i.length;++e){let s=t[e];"boolean"==typeof s||"number"==typeof s?i[e]=s:i[e]=m.evaluateExpression(s,"arg",r)}let s=e.indexOf(".");if(-1!==s){let t=a.m[e.slice(0,s)],r=t?.[e.slice(s+1)];if("function"==typeof r)return r(...i)}let n=d[e];if("function"==typeof n)return n(...i);throw Error(`function ${e} not loaded in endpointFunctions.`)},m={evaluateExpression:f,callFunction:p},g=(e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new i(`'${r}' is already defined in Reference Record.`);let n=p(e,t);t.logger?.debug?.(`endpoints evaluateCondition: ${s(e)} = ${s(n)}`);let a=""===n||!!n;return null!=r?{result:a,toAssign:{name:r,value:n}}:{result:a}},y=(e,t)=>Object.entries(e).reduce((e,[r,i])=>(e[r]=b.getEndpointProperty(i,t),e),{}),w=(e,t)=>{if(Array.isArray(e))return e.map(e=>w(e,t));switch(typeof e){case"string":return h(e,t);case"object":if(null===e)throw new i(`Unexpected endpoint property: ${e}`);return b.getEndpointProperties(e,t);case"boolean":return e;default:throw new i(`Unexpected endpoint property type: ${typeof e}`)}},b={getEndpointProperty:w,getEndpointProperties:y},v=(e,t)=>
1{let{nodes:r,root:s,results:n,conditions:a}=e,o=s,c={},l={referenceRecord:c,endpointParams:t.endpointParams,logger:t.logger};for(;1!==o&&-1!==o&&o<1e8;){let e=3*(Math.abs(o)-1),[t,i,s]=[r[e],r[e+1],r[e+2]],[n,u,d]=a[t],h=g({fn:n,assign:d,argv:u},l);if(h.toAssign){let{name:e,value:t}=h.toAssign;c[e]=t}o=o>=0===h.result?i:s}if(o>=1e8){let e=n[o-1e8];if(-1===e[0]){let[,t]=e;throw new i(f(t,"Error",l))}let[t,r,s]=e;return{url:((e,t)=>{let r=f(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new i(`Endpoint URL must be a string, got ${typeof r}`)})(t,l),properties:y(r,l),headers:Object.entries(s??{}??{}).reduce((e,[t,r])=>(e[t]=r.map(e=>{let r=f(e,"Header value entry",l);if("string"!=typeof r)throw new i(`Header '${t}' value '${r}' is not a string`);return r}),e),{})}}throw new i("No matching endpoint.")}},77577:(e,t,r)=>{r.d(t,{V:()=>i});let i="__smithy_context"},78160:(e,t,r)=>{r.d(t,{k:()=>s});var i=r(72933);let s=async e=>"function"==typeof Blob&&e instanceof Blob||e.constructor?.name==="Blob"?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):n(e):a(e);async function n(e){var t;let r=await (t=e,new Promise((e,r)=>{let i=new FileReader;i.onloadend=()=>{if(2!==i.readyState)return r(Error("Reader aborted too early"));let t=i.result??"",s=t.indexOf(","),n=s>-1?s+1:t.length;e(t.substring(n))},i.onabort=()=>r(Error("Read aborted")),i.onerror=()=>r(i.error),i.readAsDataURL(t)}));return new Uint8Array((0,i.E)(r))}async function a(e){let t=[],r=e.getReader(),i=!1,s=0;for(;!i;){let{done:e,value:n}=await r.read();n&&(t.push(n),s+=n.length),i=e}let n=new Uint8Array(s),a=0;for(let e of t)n.set(e,a),a+=e.length;return n}},80726:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(18164),s=r(99724),n=r(70300),a=r(13217);class o extends i.u.classBuilder().ep(n.S).m(function(e,t,r,i){return[(0,s.rD)(r,e.getEndpointParameterInstructions())]}).s("secretsmanager","GetSecretValue",{}).n("SecretsManagerClient","GetSecretValueCommand").sc(a.sD).build(){}},81408:(e,t,r)=>{r.d(t,{p:()=>D});var i=r(24286),s=r(70538),n=r(83638),a=r(10847),o=r(94790);class c{serdeContext;setSerdeContext(e){this.serdeContext=e}}class l extends c{options;compositeErrorRegistry;constructor(e){for(let t of(super(),this.options=e,this.compositeErrorRegistry=n.O.for(e.defaultNamespace),e.errorTypeRegistries??[]))this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return s.K}getResponseType(){return o.c}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){for(let[r,i]of(e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={}),t.url.searchParams.entries()))e.query[r]=i;if(t.headers)for(let r in t.headers)e.headers[r]=t.headers[r].join(", ");return e}if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let r in t.headers)e.headers[r]=t.headers[r];return e}setHostPrefix(e,t,r){if(this.serdeContext?.disableHostPrefix)return;let s=i.l1.of(t.input),n=(0,a.c)(t.traits??{});if(n.endpoint){let t=n.endpoint?.[0];if("string"==typeof t){for(let[e,i]of s.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let s=r[e];if("string"!=typeof s)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,s)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await r.e(38802).then(r.bind(r,38802));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,i,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}var u=r(37297);let d=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return u.Mu.mutate(e);if(!e)return u.Mu.mutate(new Uint8Array);let r=t.streamCollector(e);return u.Mu.mutate(await r)};class h extends l{async serializeRequest(e,t,r){let n,a=this.serializer,o={},c={},l=await r.endpoint(),u=i.l1.of(e?.input),d=u.getSchema(),h=t&&"object"==typeof t?t:{},f=new s.K({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:c,body:void 0});if(l&&(this.updateServiceEndpoint(f,l),this.setHostPrefix(f,e,h)),h){let e=u.getEventStreamMember();if(e){if(h[e]){let t={};for(let[r,i]of u.structIterator())r!==e&&h[r]&&(a.write(i,h[r]),t[r]=a.flush());n=await this.serializeEventStream({eventStream:h[e],requestSchema:u,initialRequest:t})}}else a.write(d,h),n=a.flush()}return f.headers=Object.assign(f.headers,c),f.query=o,f.body=n,f.method="POST",f}async deserializeResponse(e,t,r){let s=this.deserializer,n=i.l1.of(e.output),a={};if(r.statusCode>=300){let i=await d(r.body,t);throw i.byteLength>0&&Object.assign(a,await s.read(15,i)),await this.handleError(e,t,r,a,this.deserializeMetadata(r)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let e in r.headers){let t=r.headers[e];delete r.headers[e],r.headers[e.toLowerCase()]=t}let o=n.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:r,responseSchema:n,initialResponseContainer:a});else{let e=await d(r.body,t);e.byteLength>0&&Object.assign(a,await s.read(n,e))}return a.$metadata=this.deserializeMetadata(r),a}}var f=r(69715),p=r(92508);class m{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let r=t.getMemberSchemas(),i=Object.values(r).find(e=>!!e.getMergedTraits().httpPayload);if(i){let t=i.getMergedTraits().mediaType;return t?t:i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":e}if(!t.isUnitSchema()&&Object.values(r).find(e=>{let{httpQuery:t,httpQueryParams:r,httpHeader:i,httpLabel:s,httpPrefixHeaders:n}=e.getMergedTraits();return!t&&!r&&!i&&!s&&void 0===n}))return e}async getErrorSchemaOrThrowBaseException(e,t,r,i,s,n){let a=e;e.includes("#")&&([,a]=e.split("#"));let o={$metadata:s,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:n?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:o}}catch(s){i.message=i.message??i.Message??"UnknownError";let e=this.errorRegistry,t=e.getBaseException();if(t){let r=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new r({name:a}),o),i)}let r=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(Error(r),{name:a},o),i)}}compose(e,t,r){let i=r;t.includes("#")&&([i]=t.split("#"));let s=n.O.for(i),a=n.O.for("smithy.ts.sdk.synthetic."+r);e.copyFrom(s),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let r=e.Message??t.Message,i=(0,p.M)(e,t);r&&(i.message=r);let s=i.Error??{};s.Type=i.Error?.Type,s.Code=i.Error?.Code,s.Message=i.Error?.message??i.Error?.Message??r,i.Error=s;let n=i.$metadata.requestId;return n&&(i.RequestId=n),i}return(0,p.M)(e,t)}setQueryCompatError(e,t){let r=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=r){let[t,i]=r.split(";"),s=Object.keys(e),n={Code:t,Type:i};e.Code=t,e.Type=i;for(let t=0;t<s.length;t++){let r=s[t];n["message"===r?"Message":r]=e[r]}delete n.__type,e.Error=n}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(r){return e.find(e=>i.l1.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}class g{serdeContext;setSerdeContext(e){this.serdeContext=e}}function y(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();let{httpLabel:r,httpPrefixHeaders:i,httpHeader:s,httpQuery:n}=e.getMergedTraits();return(t.httpBindings?"string"==typeof i||s?6:n||r?5:void 0:void 0)??t.timestampFormat.default}let w=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};w.from=e=>e&&"object"==typeof e&&(e instanceof w||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?w(String(e)):w(JSON.stringify(e)),w.fromObject=w.from;var b=r(71176);let v=/^-?\d*(\.\d+)?$/;class S{string;type;constructor(e,t){if(this.string=e,this.type=t,!v.test(e))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){return!!e&&"object"==typeof e&&(S.prototype.isPrototypeOf(e)||"bigDecimal"===e.type&&v.test(e.string))}}var E=r(72933);class x{from;to;keys;constructor(e,t){this.from=e,this.to=t;let r=new Set(Object.keys(this.from));r.delete("__type"),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}function T(e,t,r){if(r?.source){let e=r.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)))return e.includes(".")?new S(e,"bigDecimal"):BigInt(e)}return t}var R=r(3744);let C=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),P=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>
1=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t};class A extends g{settings;constructor(e){super(),this.settings=e}async read(e,t){let r;return this._read(e,"string"==typeof t?JSON.parse(t,T):await d(t,r=this.serdeContext).then(e=>(r?.utf8Encoder??R.P)(e)).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name==="SyntaxError"&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}))}readObject(e,t){return this._read(e,t)}_read(e,t){let r=null!==t&&"object"==typeof t,s=i.l1.of(e);if(r){if(s.isStructSchema()){let e,r,i=s.isUnionSchema(),n={},{jsonName:a}=this.settings;for(let[o,c]of(a&&(r={}),i&&(e=new x(t,n)),s.structIterator())){let s=o;a&&(r[s=c.getMergedTraits().jsonName??s]=o),i&&e.mark(s),null!=t[s]&&(n[o]=this._read(c,t[s]))}if(i)e.writeUnknown();else if("string"==typeof t.__type)for(let e in t){let i=t[e],s=a?r[e]??e:e;s in n||(n[s]=i)}return n}if(Array.isArray(t)&&s.isListSchema()){let e=s.getValueSchema(),r=[];for(let i of t)r.push(this._read(e,i));return r}if(s.isMapSchema()){let e=s.getValueSchema(),r={};for(let i in t)r[i]=this._read(e,t[i]);return r}}if(s.isBlobSchema()&&"string"==typeof t)return(0,E.E)(t);let n=s.getMergedTraits().mediaType;if(s.isStringSchema()&&"string"==typeof t&&n)return"application/json"===n||n.endsWith("+json")?w.from(t):t;if(s.isTimestampSchema()&&null!=t)switch(y(s,this.settings)){case 5:return(0,b.t_)(t);case 6:return(0,b.xE)(t);case 7:return(0,b.l3)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(s.isBigDecimalSchema()&&void 0!=t)return t instanceof S?t:"bigDecimal"===t.type&&"string"in t?new S(t.string,t.type):new S(String(t),"bigDecimal");if(s.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(s.isDocumentSchema())if(!r)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let r in t){let i=t[r];i instanceof S?e[r]=i:e[r]=this._read(s,i)}return e}return t}}var M=r(2448);let $=String.fromCharCode(925);class I{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof S){let e=`${$+"nv"+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){let e=t.toString(),r=`${$+"b"+this.counter++}_`+e;return this.values.set(`"${r}"`,e),r}return t}}replaceInJson(e){if(0===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(let[t,r]of this.values)e=e.replace(t,r);return e}}class k extends g{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=i.l1.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if
1(!t)return JSON.stringify(this.buffer);let e=new I;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=i.l1.of(e).getName(!0))}_write(e,t,r){let s=null!==t&&"object"==typeof t,n=i.l1.of(e);if(s){if(n.isStructSchema()){let e,r={},{jsonName:i}=this.settings;i&&(e={});let s=0;for(let[a,o]of n.structIterator()){let c=this._write(o,t[a],n);if(void 0!==c){let t=a;i&&(t=o.getMergedTraits().jsonName??a,e[a]=t),r[t]=c,s++}}if(n.isUnionSchema()&&0===s){let{$unknown:e}=t;if(Array.isArray(e)){let[t,i]=e;r[t]=this._write(15,i)}}else if("string"==typeof t.__type)for(let s in t){let n=t[s],a=i?e[s]??s:s;a in r||(r[a]=this._write(15,n))}return r}if(Array.isArray(t)&&n.isListSchema()){let e=n.getValueSchema(),r=[],i=!!n.getMergedTraits().sparse;for(let s of t)(i||null!=s)&&r.push(this._write(e,s));return r}if(n.isMapSchema()){let e=n.getValueSchema(),r={},i=!!n.getMergedTraits().sparse;for(let s in t){let n=t[s];(i||null!=n)&&(r[s]=this._write(e,n))}return r}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??M.n)(t);if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))switch(y(n,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return(0,b.JV)(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}t instanceof S&&(this.useReplacer=!0)}
1if(!(null===t&&r?.isStructSchema())){if(n.isStringSchema()){if(void 0===t&&n.isIdempotencyToken())return(0,u.ec)();let e=n.getMergedTraits().mediaType;return null!=t&&e&&("application/json"===e||e.endsWith("+json"))?w.from(t):t}if("number"==typeof t&&n.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&n.isBlobSchema())return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??M.n)(t);if("bigint"==typeof t&&(this.useReplacer=!0),n.isDocumentSchema())if(!s)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let r in t){let i=t[r];i instanceof S?(this.useReplacer=!0,e[r]=i):e[r]=this._write(n,i)}return e}return t}}}class O extends g{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new k(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new A(this.settings);return e.setSerdeContext(this.serdeContext),e}}class D extends h{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:t}
1),this.serviceTarget=r,this.codec=s??new O({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new m(this.awsQueryCompatible)}async serializeRequest(e,t,r){let i=await super.serializeRequest(e,t,r);return i.path.endsWith("/")||(i.path+="/"),i.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,i.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(i.headers["x-amzn-query-mode"]="true"),"unit"!==(0,f.L)(e.input)&&i.body||(i.body="{}"),i}getPayloadCodec(){return this.codec}async handleError(e,t,r,s,n){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,r);let o=((e,t,r=!1)=>(({headers:e},t,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let i=C(e??{},"x-amzn-errortype");if(void 0!==i)return P(e[i]);break;case"code":let s=C(t??{},"code");if(s&&void 0!==t[s])return P(t[s]);break;case"type":if(t?.__type!==void 0)return P(t.__type)}})(e,t,r?["code","header","type"]:["type","code","header"]))(r,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,r,s,n,a?this.mixin.findQueryCompatibleError:void 0),u=i.l1.of(c),d=s.message??s.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),f={},p=this.codec.createDeserializer();for(let[e,t]of u.structIterator())null!=s[e]&&(f[e]=p.readObject(t,s[e]));throw a&&this.mixin.queryCompatOutput(s,f),this.mixin.decorateServiceException(Object.assign(h,l,{$fault:u.getMergedTraits().error,message:d},f),s)}}},83092:(e,t,r)=>{r.d(t,{u:()=>s});var i=r(77577);let s=e=>e[i.V]||(e[i.V]={})},83638:(e,t,r)=>{r.d(t,{O:()=>i});class i{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return i.registries.has(e)||i.registries.set(e,new i(e)),i.registries.get(e)}copyFrom(e){let{schemas:t,exceptions:r}=this;for(let[r,i]of e.schemas)t.has(r)||t.set(r,i);for(let[t,i]of e.exceptions)r.has(t)||r.set(t,i)}register(e,t){let r=this.normalizeShapeId(e);for(let e of[this,i.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){let t="#"+e,r=[];for(let[e,i]of this.schemas.entries())e.endsWith(t)&&r.push(i);if(1===r.length)return r[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){let r=e[1];for(let s of[this,i.for(r)])s.schemas.set(r+"#"+e[2],e),s.exceptions.set(e,t)}getErrorCtor(e){return this.exceptions.has(e)?this.exceptions.get(e):i.for(e[1]).exceptions.get(e)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,r]=e,i=t+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},84068:(e,t,r)=>{r.d(t,{a:()=>s});var i=r(67887);let s=e=>{if("object"==typeof e){if("url"in e){let t=(0,i.D)(e.url);if(e.headers)for(let r in t.headers={},e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ");return t}return e}return(0,i.D)(e)}},85449:(e,t,r)=>{r.d(t,{h:()=>B});var i,s=r(95573);let n=function(e){return a(e)&&e.expiration.getTime()-Date.now()<3e5},a=e=>void 0!==e.expiration,o={},c={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),o[e]=t,c[t]=e}function l(e){let t="";for(let r=0;r<e.byteLength;r++)t+=o[e[r]];return t}var u=r(16774),d=r(88869);class h{format(e){let t=[];for(let r of Object.keys(e)){let i=(0,d.a)(r);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of t)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([+!e.value]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let n=new Uint8Array(s.buffer);return n.set(e.value,3),n;case"string":let a=(0,d.a)(e.value),o=new DataView(new ArrayBuffer(3+a.byteLength));o.setUint8(0,7),o.setUint16(1,a.byteLength,!1);let l=new Uint8Array(o.buffer);return l.set(a,3),l;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(p.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!f.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let h=new Uint8Array(17);return h[0]=9,h.set(function(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let i=e.slice(r,r+2).toLowerCase();if(i in c)t[r/2]=c[i];else throw Error(`Cannot decode unrecognized sequence ${i} as hexadecimal`)}return t}(e.value.replace(/\-/g,"")),1),h}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(i||(i={}));let f=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class p{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(e));r>-1&&i>0;r--,i/=256)t[r]=i;return e<0&&m(t),new p(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&m(e),parseInt(l(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function m(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var g=r(6329),y=r(7347);
1let w="X-Amz-Date",b="X-Amz-Signature",v="X-Amz-Security-Token",S="authorization",E=w.toLowerCase(),x=[S,E,"date"],T=b.toLowerCase(),R="x-amz-content-sha256",C=v.toLowerCase(),P={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},A=/^proxy-/,M=/^sec-/,$="AWS4-HMAC-SHA256",I="aws4_request";class k{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:s,uriEscapePath:n=!0}){this.service=i,this.sha256=s,this.uriEscapePath=n,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,g.t)(r),this.credentialProvider=(0,g.t)(t)}createCanonicalRequest(e,t,r){let i=Object.keys(t).sort();return`${e.method} 2${this.getCanonicalPath(e)} 3${(({query:e={}})=>{let t=[],r={};for(let i of Object.keys(e)){if(i.toLowerCase()===T)continue;let s=(0,y.o)(i);t.push(s);let n=e[i];"string"==typeof n?r[s]=`${s}=${(0,y.o)(n)}`:Array.isArray(n)&&(r[s]=n.slice(0).reduce((e,t)=>e.concat([`${s}=${(0,y.o)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")})(e)} 4${i.map(e=>`${e}:${t[e]}`).join("\n")} 5 6${i.join(";")} 7${r}`}async createStringToSign(e,t,r,i){let s=new this.sha256;s.update((0,u.F)(r));let n=await s.digest();return`${i} 8${e} 9${t} 10${l(n)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let r of e.split("/"))r?.length!==0&&"."!==r&&(".."===r?t.pop():t.push(r));let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,y.o)(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}formatDate(e){var t;let r=("number"==typeof(t=e)?new Date(1e3*t):"string"==typeof t?new Date(Number(t)?1e3*Number(t):t):t).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}let O={},D=[],N=(e,t,r)=>`${e}/${t}/${r}/${I}`,_=async(e,t,r,i,s)=>{let n=await j(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${i}:${s}:${l(n)}:${t.sessionToken}`;if(a in O)return O[a];for(D.push(a);D.length>50;)delete O[D.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[r,i,s,I])o=await j(e,o,t);return O[a]=o},j=(e,t,r)=>{let i=new e(t);return i.update((0,u.F)(r)),i.digest()},U=({headers:e},t,r)=>{let i={};for(let s of Object.keys(e).sort()){if(void 0==e[s])continue;let n=s.toLowerCase();(!(n in P||t?.has(n)||A.test(n)||M.test(n))||r&&(!r||r.has(n)))&&(i[n]=e[s].trim().replace(/\s+/g," "))}return i};var L=r(57268);let z=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===R)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,L.m)(t)){let e=new r;return e.update((0,u.F)(t)),l(await e.digest())}return"UNSIGNED-PAYLOAD"};var F=r(70538);let q=e=>{for(let t of Object.keys((e=F.K.clone(e)).headers))x.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class H extends k{headerFormatter=new h;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:s,uriEscapePath:n=!0}){super({applyChecksum:e,credentials:t,region:r,service:i,sha256:s,uriEscapePath:n})}async presign(e,t={}
10){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:n,signableHeaders:a,hoistableHeaders:o,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:h,shortDate:f}=this.formatDate(r);if(i>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let p=N(f,d,l??this.service),m=((e,t={})=>{let{headers:r,query:i={}}=F.K.clone(e);for(let e of Object.keys(r)){let s=e.toLowerCase();("x-amz-"===s.slice(0,6)&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(i[e]=r[e],delete r[e])}return{...e,headers:r,query:i}})(q(e),{unhoistableHeaders:n,hoistableHeaders:o});u.sessionToken&&(m.query[v]=u.sessionToken),m.query["X-Amz-Algorithm"]=$,m.query["X-Amz-Credential"]=`${u.accessKeyId}/${p}`,m.query[w]=h,m.query["X-Amz-Expires"]=i.toString(10);let g=U(m,s,a);return m.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(g),m.query[b]=await this.get
10Signature(h,p,this.getSigningKey(u,d,f,l),this.createCanonicalRequest(m,g,await z(e,this.sha256))),m}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:i,signingRegion:s,signingService:n,eventStreamCredentials:a}){let o=s??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(r),d=N(c,o,n??this.service),h=await z({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=["AWS4-HMAC-SHA256-PAYLOAD",u,d,i,l(await f.digest()),h].join("\n");return this.signString(p,{signingDate:r,signingRegion:o,signingService:n,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:i,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:i,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:i,eventStreamCredentials:s}={}){let n=s??await this.credentialProvider();this.validateResolvedCredentials(n);let a=r??await this.regionProvider(),{shortDate:o}
10=this.formatDate(t),c=new this.sha256(await this.getSigningKey(n,a,o,i));return c.update((0,u.F)(e)),l(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:n}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let o=s??await this.regionProvider(),c=q(e),{longDate:l,shortDate:u}=this.formatDate(t),d=N(u,o,n??this.service);c.headers[E]=l,a.sessionToken&&(c.headers[C]=a.sessionToken);let h=await z(c,this.sha256);!((e,t)=>{for(let r of(e=e.toLowerCase(),Object.keys(t)))if(e===r.toLowerCase())return!0;return!1})(R,c.headers)&&this.applyChecksum&&(c.headers[R]=h);let f=U(c,i,r),p=await this.getSignature(l,d,this.getSigningKey(a,o,u,n),this.createCanonicalRequest(c,f,h));return c.headers[S]=`${$} Credential=${a.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(f)}, Signature=${p}`,c}async getSignature(e,t,r,i){let s=await this.createStringToSign(e,t,i,$),n=new this.sha256(await r);return n.update((0,u.F)(s)),l(await n.digest())}getSigningKey(e,t,r,i){return _(this.sha256,e,r,t,i||this.service)}}let B=e=>{let t,r,i=e.credentials,o=!!e.credentials;Object.defineProperty(e,"credentials",{set(r){r&&r!==i&&r!==t&&(o=!0);let c=function(e,{credentials:t,credentialDefaultProvider:r}){let i;return(i=t?t?.memoized?t:((e,t,r)=>{let i,s,n;if(void 0===e)return;let a="function"!=typeof e?async()=>Promise.resolve(e):e,o=!1,c=async e=>{s||(s=a(e));try{i=await s,n=!0,o=!1}finally{s=void 0}return i};return void 0===t?async e=>((!n||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!n||e?.forceRefresh)&&(i=await c(e)),o||(r(i)?t(i)&&await c(e):o=!0),i)})(t,n,a):r?(0,s.t)(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}).memoized=!0,i}(e,{credentials:i=r,credentialDefaultProvider:e.credentialDefaultProvider}),l=function(e,t){if(t.configBound)return t;let r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(e,c);if(o&&!l.attributed){let e="object"==typeof i&&null!==i;(t=async t=>{let r=await l(t);if(e&&(!r.$source||0===Object.keys(r.$source).length))return r.$source||(r.$source={}),r.$source.CREDENTIALS_CODE="e",r;return r}).memoized=l.memoized,t.configBound=l.configBound,t.attributed=!0}else t=l},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=i;let{signingEscapePath:c=!0,systemClockOffset:l=e.systemClockOffset||0,sha256:u}=e;return r=e.signer?(0,s.t)(e.signer):e.regionInfoProvider?()=>(0,s.t)(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,r])=>{let{signingRegion:i,signingService:s}=t;e.signingRegion=e.signingRegion||i||r,e.signingName=e.signingName||s||e.serviceId;let n={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:c};return new(e.signerConstructor||H)(n)}):async t=>{let r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await (0,s.t)(e.region)(),properties:{}},t)).signingRegion,i=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||i||e.serviceId;let n={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:c};return new(e.signerConstructor||H)(n)},Object.assign(e,{systemClockOffset:l,signingEscapePath:c,signer:r})}},85551:(e,t,r)=>{r.d(t,{B:()=>i});let i=e=>()=>Promise.reject(e)},88869:(e,t,r)=>{r.d(t,{a:()=>i});let i=e=>new TextEncoder().encode(e)},89836:(e,t,r)=>{r.d(t,{sM:()=>y});var i=r(70538),s=r(5008),n=r(63962),a=r(58048),o=r(87358);function c(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}a.f.v2026||="object"==typeof o&&o.env?.AWS_NEW_RETRIES_2026==="true";let l=/\d{12}\.ddb/;async function u(e,t,r){let i=r.request;if(i?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&c(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){let r=await t.retryStrategy();if("string"==typeof r.mode)switch(r.mode){case n.cm.ADAPTIVE:c(e,"RETRY_MODE_ADAPTIVE","F");break;case n.cm.STANDARD:c(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){let r=e.endpointV2;switch(String(r?.url?.hostname).match(l)&&c(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":c(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":c(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":c(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}let s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source)for(let[t,r]of(s.accountId&&c(e,"RESOLVED_ACCOUNT_ID","T"),Object.entries(s.$source??{})))c(e,t,r)}let d="user-agent",h="x-amz-user-agent",f=/[^!$%&'*+\-.^_`|~\w]/g,p=/[^!$%&'*+\-.^_`|~\w#]/g,m=e=>{let t=e[0].split("/").map(e=>e.replace(f,"-")).join("/"),r=e[1]?.replace(p,"-"),i=t.indexOf("/"),s=t.substring(0,i),n=t.substring(i+1);return"api"===s&&(n=n.toLowerCase()),[s,n,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},g={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},y=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let{request:a}=n;
10if(!i.K.isInstance(a))return t(n);let{headers:o}=a,c=r?.userAgent?.map(m)||[],l=(await e.defaultUserAgentProvider()).map(m);await u(r,e,n),l.push(`m/${function(e){let t="";for(let r in e){let i=e[r];if(t.length+i.length+1<=1024){t.length?t+=","+i:t+=i;continue}break}return t}(Object.assign({},r.__smithy_context?.features,r.__aws_sdk_context?.features))}`);let f=e?.customUserAgent?.map(m)||[],p=await e.userAgentAppId();p&&l.push(m(["app",`${p}`]));let g=(0,s.vL)(),y=(g?[g]:[]).concat([...l,...c,...f]).join(" "),w=[...l.filter(e=>e.startsWith("aws-sdk-")),...f].join(" ");return"browser"!==e.runtime?(w&&(o[h]=o[h]?`${o[d]} ${w}`:w),o[d]=y):o[h]=y,t({...n,request:a})})(e),g)}})},92508:(e,t,r)=>{r.d(t,{M:()=>s,T:()=>i});class i extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){return!!e&&(i.prototype.isPrototypeOf(e)||!!e.$fault&&!!e.$metadata&&("client"===e.$fault||"server"===e.$fault))}static[Symbol.hasInstance](e){return!!e&&(this===i?i.isInstance(e):!!i.isInstance(e)&&(e.name&&this.name?this.prototype.isPrototypeOf(e)||e.name===this.name:this.prototype.isPrototypeOf(e)))}}let s=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{(void 0==e[t]||""===e[t])&&(e[t]=r)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},94079:(e,t,r)=>{r.d(t,{wq:()=>u});var i=r(83092),s=r(94790);let n=(e,t,r,i,s)=>({name:t,namespace:e,traits:r,input:i,output:s}),a=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];var o=r(84068);let c={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},l={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function u(e){return{applyToStack:t=>{t.add((t,r)=>async s=>{let{operationSchema:a}=(0,i.u)(r),[,c,l,u,d,h]=a??[],f=r.endpointV2?async()=>(0,o.a)(r.endpointV2):e.endpoint,p=await e.protocol.serializeRequest(n(c,l,u,d,h),s.input,{...e,...r,endpoint:f});return t({...s,request:p})},l),t.add((t,r)=>async o=>{let{response:c}=await t(o),{operationSchema:l}=(0,i.u)(r),[,u,d,h,f,p]=l??[];try{let t=await e.protocol.deserializeResponse(n(u,d,h,f,p),{...e,...r},c);return{response:c,output:t}}catch(e){if(Object.defineProperty(e,"$response",{value:c,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){let t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n "+t}catch(e){r.logger&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(s.c.isInstance(c)){let{headers:t={},statusCode:r}=c,i=Object.entries(t);e.$metadata={httpStatusCode:r,requestId:a(/^x-[\w-]+-request-?id$/,i),extendedRequestId:a(/^x-[\w-]+-id-2$/,i),cfId:a(/^x-[\w-]+-cf-id$/,i)}}}catch(e){}}throw e}},c),e.protocol.setSerdeContext(e)}}}},94790:(e,t,r)=>{r.d(t,{c:()=>i});class i{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers}}},95573:(e,t,r)=>{r.d(t,{t:()=>i});let i=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t}},99724:(e,t,r)=>{r.d(t,{rD:()=>b,Co:()=>w});let i=async e=>void 0,s=async e=>{let t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),l(t)){if(!0===e.ForcePathStyle)throw Error("Path-style addressing cannot be used with ARN buckets")}else c(t)&&(-1===t.indexOf(".")||String(e.Endpoint).startsWith("http:"))&&t.toLowerCase()===t&&!(t.length<3)||(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},n=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,a=/(\d+\.){3}\d+/,o=/\.\./,c=e=>n.test(e)&&!a.test(e)&&!o.test(e),l=e=>{let[t,r,i,,,s]=e.split(":"),n="arn"===t&&e.split(":").length>=6,a=!!(n&&r&&i&&s);if(n&&!a)throw Error(`Invalid ARN: ${e}
10 was an invalid ARN.`);return a},u=(e,t,r,i=!1)=>{let s=async()=>{let s;if(i){let i=r.clientContextParams;s=i?.[e]??r[e]??r[t]}else s=r[e]??r[t];return"function"==typeof s?s():s};return"credentialScope"===e||"CredentialScope"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;let e=await s();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){let{protocol:t,hostname:r,port:i,path:s}=e;return`${t}//${r}${i?":"+i:""}${s}`}}return e}:s};var d=r(84068);function h(e){return async(t,r,i,s)=>{if(!i.isCustomEndpoint){let t;(t=i.serviceConfiguredEndpoint?await i.serviceConfiguredEndpoint():await e(i.serviceId))&&(i.endpoint=()=>Promise.resolve((0,d.a)(t)),i.isCustomEndpoint=!0)}let n=await f(t,r,i);if("function"!=typeof i.endpointProvider)throw Error("config.endpointProvider is not set.");let a=i.endpointProvider(n,s);if(i.isCustomEndpoint&&i.endpoint){let e=await i.endpoint();if(e?.headers)for(let[t,r]of(a.headers??={},Object.entries(e.headers)))a.headers[t]=Array.isArray(r)?r:[r]}return a}}let f=async(e,t,r)=>{let i={},n=t?.getEndpointParameterInstructions?.()||{};for(let[t,s]of Object.entries(n))switch(s.type){case"staticContextParams":i[t]=s.value;break;case"contextParams":i[t]=e[s.name];break;case"clientContextParams":case"builtInParams":i[t]=await u(s.name,t,r,"builtInParams"!==s.type)();break;case"operationContextParams":i[t]=s.get(e);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(n).length&&Object.assign(i,r),"s3"===String(r.serviceId).toLowerCase()&&await s(i),i};var p=r(83092);function m(e){let t=h(e);return({config:e,instructions:r})=>(i,s)=>async n=>{e.isCustomEndpoint&&(s.__smithy_context?s.__smithy_context.features||(s.__smithy_context.features={}):s.__smithy_context={features:{}},s.__smithy_context.features.ENDPOINT_OVERRIDE="N");let a=await t(n.input,{getEndpointParameterInstructions:()=>r},{...e},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let o=s.authSchemes?.[0];if(o){s.signing_region=o.signingRegion,s.signing_service=o.signingName;let e=(0,p.u)(s),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return i({...n})}}let g={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};var y=r(6329);h(i);let w=e=>{let t,r=e.tls??!0,{endpoint:s,useDualstackEndpoint:n,useFipsEndpoint:a}=e,o=Object.assign(e,{endpoint:null!=s?async()=>(0,d.a)(await (0,y.t)(s)()):void 0,tls:r,isCustomEndpoint:!!s,useDualstackEndpoint:(0,y.t)(n??!1),useFipsEndpoint:(0,y.t)(a??!1)});return o.serviceConfiguredEndpoint=async()=>(e.serviceId&&!t&&(t=i(e.serviceId)),t),o};m(i);let b=function(e){let t=m(e);return(e,r)=>({applyToStack:i=>{i.addRelativeTo(t({config:e,instructions:r}),g)}})}(i)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.