sst 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constructs/Api.d.ts +1 -1
- package/credentials.js +3 -0
- package/package.json +2 -2
- package/runtime/handlers/node.js +4 -1
- package/sst.mjs +3 -4
- package/support/rds-migrator/index.mjs +2 -2
package/constructs/Api.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as apigV2Cors from "./util/apiGatewayV2Cors.js";
|
|
|
15
15
|
import * as apigV2Domain from "./util/apiGatewayV2Domain.js";
|
|
16
16
|
import * as apigV2AccessLog from "./util/apiGatewayV2AccessLog.js";
|
|
17
17
|
declare const PayloadFormatVersions: readonly ["1.0", "2.0"];
|
|
18
|
-
export type ApiPayloadFormatVersion = typeof PayloadFormatVersions[number];
|
|
18
|
+
export type ApiPayloadFormatVersion = (typeof PayloadFormatVersions)[number];
|
|
19
19
|
export type ApiAuthorizer = ApiUserPoolAuthorizer | ApiJwtAuthorizer | ApiLambdaAuthorizer;
|
|
20
20
|
interface ApiBaseAuthorizer {
|
|
21
21
|
/**
|
package/credentials.js
CHANGED
|
@@ -88,6 +88,9 @@ export function useAWSClient(client, force = false) {
|
|
|
88
88
|
Logger.debug("Created AWS client", client.name);
|
|
89
89
|
return result;
|
|
90
90
|
}
|
|
91
|
+
// @ts-expect-error
|
|
92
|
+
import stupid from "aws-sdk/lib/maintenance_mode_message.js";
|
|
93
|
+
stupid.suppress = true;
|
|
91
94
|
import aws from "aws-sdk";
|
|
92
95
|
import { useProject } from "./project.js";
|
|
93
96
|
const CredentialProviderChain = aws.CredentialProviderChain;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sst",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"bin": {
|
|
5
5
|
"sst": "cli/sst.js"
|
|
6
6
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"aws-cdk": "2.62.2",
|
|
55
55
|
"aws-cdk-lib": "2.62.2",
|
|
56
56
|
"aws-iot-device-sdk": "^2.2.12",
|
|
57
|
-
"aws-sdk": "^2.
|
|
57
|
+
"aws-sdk": "^2.1326.0",
|
|
58
58
|
"builtin-modules": "3.2.0",
|
|
59
59
|
"cdk-assets": "2.62.2",
|
|
60
60
|
"chalk": "^4.1.2",
|
package/runtime/handlers/node.js
CHANGED
|
@@ -22,7 +22,10 @@ export const useNodeHandler = Context.memo(async () => {
|
|
|
22
22
|
const result = cache[input.functionID];
|
|
23
23
|
if (!result)
|
|
24
24
|
return false;
|
|
25
|
-
const relative = path
|
|
25
|
+
const relative = path
|
|
26
|
+
.relative(project.paths.root, input.file)
|
|
27
|
+
.split(path.sep)
|
|
28
|
+
.join(path.posix.sep);
|
|
26
29
|
return Boolean(result.metafile?.inputs[relative]);
|
|
27
30
|
},
|
|
28
31
|
canHandle: (input) => input.startsWith("nodejs"),
|
package/sst.mjs
CHANGED
|
@@ -1595,6 +1595,7 @@ import { fromNodeProviderChain } from "@aws-sdk/credential-providers";
|
|
|
1595
1595
|
import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
1596
1596
|
import { SdkProvider } from "aws-cdk/lib/api/aws-auth/sdk-provider.js";
|
|
1597
1597
|
import { StandardRetryStrategy } from "@aws-sdk/middleware-retry";
|
|
1598
|
+
import stupid from "aws-sdk/lib/maintenance_mode_message.js";
|
|
1598
1599
|
import aws from "aws-sdk";
|
|
1599
1600
|
function useAWSClient(client, force = false) {
|
|
1600
1601
|
const cache = useClientCache();
|
|
@@ -1690,6 +1691,7 @@ var init_credentials = __esm({
|
|
|
1690
1691
|
return identity;
|
|
1691
1692
|
});
|
|
1692
1693
|
useClientCache = Context.memo(() => /* @__PURE__ */ new Map());
|
|
1694
|
+
stupid.suppress = true;
|
|
1693
1695
|
CredentialProviderChain = aws.CredentialProviderChain;
|
|
1694
1696
|
useAWSProvider = Context.memo(async () => {
|
|
1695
1697
|
Logger.debug("Loading v2 AWS SDK");
|
|
@@ -4868,10 +4870,7 @@ var init_node = __esm({
|
|
|
4868
4870
|
const result = cache[input.functionID];
|
|
4869
4871
|
if (!result)
|
|
4870
4872
|
return false;
|
|
4871
|
-
const relative = path10.relative(
|
|
4872
|
-
project.paths.root,
|
|
4873
|
-
input.file.split(path10.sep).join(path10.posix.sep)
|
|
4874
|
-
);
|
|
4873
|
+
const relative = path10.relative(project.paths.root, input.file).split(path10.sep).join(path10.posix.sep);
|
|
4875
4874
|
return Boolean(result.metafile?.inputs[relative]);
|
|
4876
4875
|
},
|
|
4877
4876
|
canHandle: (input) => input.startsWith("nodejs"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ap=Object.create;var ko=Object.defineProperty;var up=Object.getOwnPropertyDescriptor;var cp=Object.getOwnPropertyNames;var lp=Object.getPrototypeOf,fp=Object.prototype.hasOwnProperty;var s=(t,e)=>ko(t,"name",{value:e,configurable:!0}),re=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var dp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of cp(e))!fp.call(t,n)&&n!==r&&ko(t,n,{get:()=>e[n],enumerable:!(i=up(e,n))||i.enumerable});return t};var hp=(t,e,r)=>(r=t!=null?ap(lp(t)):{},dp(e||!t||!t.__esModule?ko(r,"default",{value:t,enumerable:!0}):r,t));var qs=P((q_,Zu)=>{var ra=Oe();function Qu(){}s(Qu,"JsonBuilder");Qu.prototype.build=function(t,e){return JSON.stringify(ks(t,e))};function ks(t,e){if(!(!e||t===void 0||t===null))switch(e.type){case"structure":return Jp(t,e);case"map":return Yp(t,e);case"list":return $p(t,e);default:return Qp(t,e)}}s(ks,"translate");function Jp(t,e){if(e.isDocument)return t;var r={};return ra.each(t,function(i,n){var o=e.members[i];if(o){if(o.location!=="body")return;var a=o.isLocationName?o.name:i,u=ks(n,o);u!==void 0&&(r[a]=u)}}),r}s(Jp,"translateStructure");function $p(t,e){var r=[];return ra.arrayEach(t,function(i){var n=ks(i,e.member);n!==void 0&&r.push(n)}),r}s($p,"translateList");function Yp(t,e){var r={};return ra.each(t,function(i,n){var o=ks(n,e.value);o!==void 0&&(r[i]=o)}),r}s(Yp,"translateMap");function Qp(t,e){return e.toWireFormat(t)}s(Qp,"translateScalar");Zu.exports=Qu});var Ms=P((M_,tc)=>{var ia=Oe();function ec(){}s(ec,"JsonParser");ec.prototype.parse=function(t,e){return Ls(JSON.parse(t),e)};function Ls(t,e){if(!(!e||t===void 0))switch(e.type){case"structure":return Zp(t,e);case"map":return tm(t,e);case"list":return em(t,e);default:return rm(t,e)}}s(Ls,"translate");function Zp(t,e){if(t!=null){if(e.isDocument)return t;var r={},i=e.members;return ia.each(i,function(n,o){var a=o.isLocationName?o.name:n;if(Object.prototype.hasOwnProperty.call(t,a)){var u=t[a],l=Ls(u,o);l!==void 0&&(r[n]=l)}}),r}}s(Zp,"translateStructure");function em(t,e){if(t!=null){var r=[];return ia.arrayEach(t,function(i){var n=Ls(i,e.member);n===void 0?r.push(null):r.push(n)}),r}}s(em,"translateList");function tm(t,e){if(t!=null){var r={};return ia.each(t,function(i,n){var o=Ls(n,e.value);o===void 0?r[i]=null:r[i]=o}),r}}s(tm,"translateMap");function rm(t,e){return e.toType(t)}s(rm,"translateScalar");tc.exports=ec});var Fs=P((W_,rc)=>{var Pn=Oe(),im=V();function nm(t){var e=t.service.config.hostPrefixEnabled;if(!e)return t;var r=t.service.api.operations[t.operation];if(sm(t))return t;if(r.endpoint&&r.endpoint.hostPrefix){var i=r.endpoint.hostPrefix,n=om(i,t.params,r.input);am(t.httpRequest.endpoint,n),um(t.httpRequest.endpoint.hostname)}return t}s(nm,"populateHostPrefix");function sm(t){var e=t.service.api,r=e.operations[t.operation],i=e.endpointOperation&&e.endpointOperation===Pn.string.lowerFirst(r.name);return r.endpointDiscoveryRequired!=="NULL"||i===!0}s(sm,"hasEndpointDiscover");function om(t,e,r){return Pn.each(r.members,function(i,n){if(n.hostLabel===!0){if(typeof e[i]!="string"||e[i]==="")throw Pn.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+i+"\\}","g");t=t.replace(o,e[i])}}),t}s(om,"expandHostPrefix");function am(t,e){t.host&&(t.host=e+t.host),t.hostname&&(t.hostname=e+t.hostname)}s(am,"prependEndpointPrefix");function um(t){var e=t.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;Pn.arrayEach(e,function(i){if(!i.length||i.length<1||i.length>63)throw Pn.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(i))throw im.util.error(new Error,{code:"ValidationError",message:i+" is not hostname compatible."})})}s(um,"validateHostname");rc.exports={populateHostPrefix:nm}});var Ws=P((U_,ic)=>{var cm=Oe(),lm=qs(),fm=Ms(),dm=Fs().populateHostPrefix;function hm(t){var e=t.httpRequest,r=t.service.api,i=r.targetPrefix+"."+r.operations[t.operation].name,n=r.jsonVersion||"1.0",o=r.operations[t.operation].input,a=new lm;n===1&&(n="1.0"),e.body=a.build(t.params||{},o),e.headers["Content-Type"]="application/x-amz-json-"+n,e.headers["X-Amz-Target"]=i,dm(t)}s(hm,"buildRequest");function pm(t){var e={},r=t.httpResponse;if(e.code=r.headers["x-amzn-errortype"]||"UnknownError",typeof e.code=="string"&&(e.code=e.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),n=i.__type||i.code||i.Code;n&&(e.code=n.split("#").pop()),e.code==="RequestEntityTooLarge"?e.message="Request body must be less than 1 MB":e.message=i.message||i.Message||null}catch{e.statusCode=r.statusCode,e.message=r.statusMessage}else e.statusCode=r.statusCode,e.message=r.statusCode.toString();t.error=cm.error(new Error,e)}s(pm,"extractError");function mm(t){var e=t.httpResponse.body.toString()||"{}";if(t.request.service.config.convertResponseTypes===!1)t.data=JSON.parse(e);else{var r=t.request.service.api.operations[t.request.operation],i=r.output||{},n=new fm;t.data=n.parse(e,i)}}s(mm,"extractData");ic.exports={buildRequest:hm,extractError:pm,extractData:mm}});var uc=P((z_,ac)=>{var na=Oe();function nc(){}s(nc,"QueryParamSerializer");nc.prototype.serialize=function(t,e,r){oc("",t,e,r)};function sc(t){return t.isQueryName||t.api.protocol!=="ec2"?t.name:t.name[0].toUpperCase()+t.name.substr(1)}s(sc,"ucfirst");function oc(t,e,r,i){na.each(r.members,function(n,o){var a=e[n];if(a!=null){var u=sc(o);u=t?t+"."+u:u,Bs(u,a,o,i)}})}s(oc,"serializeStructure");function ym(t,e,r,i){var n=1;na.each(e,function(o,a){var u=r.flattened?".":".entry.",l=u+n+++".",h=l+(r.key.name||"key"),y=l+(r.value.name||"value");Bs(t+h,o,r.key,i),Bs(t+y,a,r.value,i)})}s(ym,"serializeMap");function vm(t,e,r,i){var n=r.member||{};if(e.length===0){i.call(this,t,null);return}na.arrayEach(e,function(o,a){var u="."+(a+1);if(r.api.protocol==="ec2")u=u+"";else if(r.flattened){if(n.name){var l=t.split(".");l.pop(),l.push(sc(n)),t=l.join(".")}}else u="."+(n.name?n.name:"member")+u;Bs(t+u,o,n,i)})}s(vm,"serializeList");function Bs(t,e,r,i){e!=null&&(r.type==="structure"?oc(t,e,r,i):r.type==="list"?vm(t,e,r,i):r.type==="map"?ym(t,e,r,i):i(t,r.toWireFormat(e).toString()))}s(Bs,"serializeMember");ac.exports=nc});var sa=P((j_,cc)=>{var gm=Oe().memoizedProperty;function Nm(t,e,r,i){gm(this,i(t),function(){return r(t,e)})}s(Nm,"memoize");function wm(t,e,r,i,n){i=i||String;var o=this;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(Nm.call(o,a,t[a],r,i),n&&n(a,t[a]))}s(wm,"Collection");cc.exports=wm});var _n=P((X_,vc)=>{var xm=sa(),yr=Oe();function j(t,e,r){r!=null&&yr.property.apply(this,arguments)}s(j,"property");function ui(t,e){t.constructor.prototype[e]||yr.memoizedProperty.apply(this,arguments)}s(ui,"memoizedProperty");function ve(t,e,r){e=e||{},j(this,"shape",t.shape),j(this,"api",e.api,!1),j(this,"type",t.type),j(this,"enum",t.enum),j(this,"min",t.min),j(this,"max",t.max),j(this,"pattern",t.pattern),j(this,"location",t.location||this.location||"body"),j(this,"name",this.name||t.xmlName||t.queryName||t.locationName||r),j(this,"isStreaming",t.streaming||this.isStreaming||!1),j(this,"requiresLength",t.requiresLength,!1),j(this,"isComposite",t.isComposite||!1),j(this,"isShape",!0,!1),j(this,"isQueryName",Boolean(t.queryName),!1),j(this,"isLocationName",Boolean(t.locationName),!1),j(this,"isIdempotent",t.idempotencyToken===!0),j(this,"isJsonValue",t.jsonvalue===!0),j(this,"isSensitive",t.sensitive===!0||t.prototype&&t.prototype.sensitive===!0),j(this,"isEventStream",Boolean(t.eventstream),!1),j(this,"isEvent",Boolean(t.event),!1),j(this,"isEventPayload",Boolean(t.eventpayload),!1),j(this,"isEventHeader",Boolean(t.eventheader),!1),j(this,"isTimestampFormatSet",Boolean(t.timestampFormat)||t.prototype&&t.prototype.isTimestampFormatSet===!0,!1),j(this,"endpointDiscoveryId",Boolean(t.endpointdiscoveryid),!1),j(this,"hostLabel",Boolean(t.hostLabel),!1),e.documentation&&(j(this,"documentation",t.documentation),j(this,"documentationUrl",t.documentationUrl)),t.xmlAttribute&&j(this,"isXmlAttribute",t.xmlAttribute||!1),j(this,"defaultValue",null),this.toWireFormat=function(i){return i??""},this.toType=function(i){return i}}s(ve,"Shape");ve.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};ve.types={structure:lc,list:fc,map:dc,boolean:yc,timestamp:Em,float:Cm,integer:Sm,string:hc,base64:mc,binary:pc};ve.resolve=s(function(e,r){if(e.shape){var i=r.api.shapes[e.shape];if(!i)throw new Error("Cannot find shape reference: "+e.shape);return i}else return null},"resolve");ve.create=s(function(e,r,i){if(e.isShape)return e;var n=ve.resolve(e,r);if(n){var o=Object.keys(e);r.documentation||(o=o.filter(function(l){return!l.match(/documentation/)}));var a=s(function(){n.constructor.call(this,e,r,i)},"InlineShape");return a.prototype=n,new a}else{e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var u=e.type;if(ve.normalizedTypes[e.type]&&(e.type=ve.normalizedTypes[e.type]),ve.types[e.type])return new ve.types[e.type](e,r,i);throw new Error("Unrecognized shape type: "+u)}},"create");function oa(t){ve.apply(this,arguments),j(this,"isComposite",!0),t.flattened&&j(this,"flattened",t.flattened||!1)}s(oa,"CompositeShape");function lc(t,e){var r=this,i=null,n=!this.isShape;oa.apply(this,arguments),n&&(j(this,"defaultValue",function(){return{}}),j(this,"members",{}),j(this,"memberNames",[]),j(this,"required",[]),j(this,"isRequired",function(){return!1}),j(this,"isDocument",Boolean(t.document))),t.members&&(j(this,"members",new xm(t.members,e,function(o,a){return ve.create(a,e,o)})),ui(this,"memberNames",function(){return t.xmlOrder||Object.keys(t.members)}),t.event&&(ui(this,"eventPayloadMemberName",function(){for(var o=r.members,a=r.memberNames,u=0,l=a.length;u<l;u++)if(o[a[u]].isEventPayload)return a[u]}),ui(this,"eventHeaderMemberNames",function(){for(var o=r.members,a=r.memberNames,u=[],l=0,h=a.length;l<h;l++)o[a[l]].isEventHeader&&u.push(a[l]);return u}))),t.required&&(j(this,"required",t.required),j(this,"isRequired",function(o){if(!i){i={};for(var a=0;a<t.required.length;a++)i[t.required[a]]=!0}return i[o]},!1,!0)),j(this,"resultWrapper",t.resultWrapper||null),t.payload&&j(this,"payload",t.payload),typeof t.xmlNamespace=="string"?j(this,"xmlNamespaceUri",t.xmlNamespace):typeof t.xmlNamespace=="object"&&(j(this,"xmlNamespacePrefix",t.xmlNamespace.prefix),j(this,"xmlNamespaceUri",t.xmlNamespace.uri))}s(lc,"StructureShape");function fc(t,e){var r=this,i=!this.isShape;if(oa.apply(this,arguments),i&&j(this,"defaultValue",function(){return[]}),t.member&&ui(this,"member",function(){return ve.create(t.member,e)}),this.flattened){var n=this.name;ui(this,"name",function(){return r.member.name||n})}}s(fc,"ListShape");function dc(t,e){var r=!this.isShape;oa.apply(this,arguments),r&&(j(this,"defaultValue",function(){return{}}),j(this,"key",ve.create({type:"string"},e)),j(this,"value",ve.create({type:"string"},e))),t.key&&ui(this,"key",function(){return ve.create(t.key,e)}),t.value&&ui(this,"value",function(){return ve.create(t.value,e)})}s(dc,"MapShape");function Em(t){var e=this;if(ve.apply(this,arguments),t.timestampFormat)j(this,"timestampFormat",t.timestampFormat);else if(e.isTimestampFormatSet&&this.timestampFormat)j(this,"timestampFormat",this.timestampFormat);else if(this.location==="header")j(this,"timestampFormat","rfc822");else if(this.location==="querystring")j(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":j(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":j(this,"timestampFormat","iso8601");break}this.toType=function(r){return r==null?null:typeof r.toUTCString=="function"?r:typeof r=="string"||typeof r=="number"?yr.date.parseTimestamp(r):null},this.toWireFormat=function(r){return yr.date.format(r,e.timestampFormat)}}s(Em,"TimestampShape");function hc(){ve.apply(this,arguments);var t=["rest-xml","query","ec2"];this.toType=function(e){return e=this.api&&t.indexOf(this.api.protocol)>-1?e||"":e,this.isJsonValue?JSON.parse(e):e&&typeof e.toString=="function"?e.toString():e},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}s(hc,"StringShape");function Cm(){ve.apply(this,arguments),this.toType=function(t){return t==null?null:parseFloat(t)},this.toWireFormat=this.toType}s(Cm,"FloatShape");function Sm(){ve.apply(this,arguments),this.toType=function(t){return t==null?null:parseInt(t,10)},this.toWireFormat=this.toType}s(Sm,"IntegerShape");function pc(){ve.apply(this,arguments),this.toType=function(t){var e=yr.base64.decode(t);if(this.isSensitive&&yr.isNode()&&typeof yr.Buffer.alloc=="function"){var r=yr.Buffer.alloc(e.length,e);e.fill(0),e=r}return e},this.toWireFormat=yr.base64.encode}s(pc,"BinaryShape");function mc(){pc.apply(this,arguments)}s(mc,"Base64Shape");function yc(){ve.apply(this,arguments),this.toType=function(t){return typeof t=="boolean"?t:t==null?null:t==="true"}}s(yc,"BooleanShape");ve.shapes={StructureShape:lc,ListShape:fc,MapShape:dc,StringShape:hc,BooleanShape:yc,Base64Shape:mc};vc.exports=ve});var aa=P((J_,wc)=>{var Nc=V(),kn=Oe(),Tm=uc(),gc=_n(),bm=Fs().populateHostPrefix;function Am(t){var e=t.service.api.operations[t.operation],r=t.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:t.service.api.apiVersion,Action:e.name};var i=new Tm;i.serialize(t.params,e.input,function(n,o){r.params[n]=o}),r.body=kn.queryParamsToString(r.params),bm(t)}s(Am,"buildRequest");function Im(t){var e,r=t.httpResponse.body.toString();if(r.match("<UnknownOperationException"))e={Code:"UnknownOperation",Message:"Unknown operation "+t.request.operation};else try{e=new Nc.XML.Parser().parse(r)}catch{e={Code:t.httpResponse.statusCode,Message:t.httpResponse.statusMessage}}e.requestId&&!t.requestId&&(t.requestId=e.requestId),e.Errors&&(e=e.Errors),e.Error&&(e=e.Error),e.Code?t.error=kn.error(new Error,{code:e.Code,message:e.Message}):t.error=kn.error(new Error,{code:t.httpResponse.statusCode,message:null})}s(Im,"extractError");function Om(t){var e=t.request,r=e.service.api.operations[e.operation],i=r.output||{},n=i;if(n.resultWrapper){var o=gc.create({type:"structure"});o.members[n.resultWrapper]=i,o.memberNames=[n.resultWrapper],kn.property(i,"name",i.resultWrapper),i=o}var a=new Nc.XML.Parser;if(i&&i.members&&!i.members._XAMZRequestId){var u=gc.create({type:"string"},{api:{protocol:"query"}},"requestId");i.members._XAMZRequestId=u}var l=a.parse(t.httpResponse.body.toString(),i);t.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,n.resultWrapper&&l[n.resultWrapper]&&(kn.update(l,l[n.resultWrapper]),delete l[n.resultWrapper]),t.data=l}s(Om,"extractData");wc.exports={buildRequest:Am,extractError:Im,extractData:Om}});var qn=P((Y_,Ec)=>{var He=Oe(),Rm=Fs().populateHostPrefix;function Dm(t){t.httpRequest.method=t.service.api.operations[t.operation].httpMethod}s(Dm,"populateMethod");function xc(t,e,r,i){var n=[t,e].join("/");n=n.replace(/\/+/g,"/");var o={},a=!1;if(He.each(r.members,function(l,h){var y=i[l];if(y!=null)if(h.location==="uri"){var v=new RegExp("\\{"+h.name+"(\\+)?\\}");n=n.replace(v,function(S,O){var g=O?He.uriEscapePath:He.uriEscape;return g(String(y))})}else h.location==="querystring"&&(a=!0,h.type==="list"?o[h.name]=y.map(function(S){return He.uriEscape(h.member.toWireFormat(S).toString())}):h.type==="map"?He.each(y,function(S,O){Array.isArray(O)?o[S]=O.map(function(g){return He.uriEscape(String(g))}):o[S]=He.uriEscape(String(O))}):o[h.name]=He.uriEscape(h.toWireFormat(y).toString()))}),a){n+=n.indexOf("?")>=0?"&":"?";var u=[];He.arrayEach(Object.keys(o).sort(),function(l){Array.isArray(o[l])||(o[l]=[o[l]]);for(var h=0;h<o[l].length;h++)u.push(He.uriEscape(String(l))+"="+o[l][h])}),n+=u.join("&")}return n}s(xc,"generateURI");function Pm(t){var e=t.service.api.operations[t.operation],r=e.input,i=xc(t.httpRequest.endpoint.path,e.httpPath,r,t.params);t.httpRequest.path=i}s(Pm,"populateURI");function _m(t){var e=t.service.api.operations[t.operation];He.each(e.input.members,function(r,i){var n=t.params[r];n!=null&&(i.location==="headers"&&i.type==="map"?He.each(n,function(o,a){t.httpRequest.headers[i.name+o]=a}):i.location==="header"&&(n=i.toWireFormat(n).toString(),i.isJsonValue&&(n=He.base64.encode(n)),t.httpRequest.headers[i.name]=n))})}s(_m,"populateHeaders");function km(t){Dm(t),Pm(t),_m(t),Rm(t)}s(km,"buildRequest");function qm(){}s(qm,"extractError");function Lm(t){var e=t.request,r={},i=t.httpResponse,n=e.service.api.operations[e.operation],o=n.output,a={};He.each(i.headers,function(u,l){a[u.toLowerCase()]=l}),He.each(o.members,function(u,l){var h=(l.name||u).toLowerCase();if(l.location==="headers"&&l.type==="map"){r[u]={};var y=l.isLocationName?l.name:"",v=new RegExp("^"+y+"(.+)","i");He.each(i.headers,function(O,g){var N=O.match(v);N!==null&&(r[u][N[1]]=g)})}else if(l.location==="header"){if(a[h]!==void 0){var S=l.isJsonValue?He.base64.decode(a[h]):a[h];r[u]=l.toType(S)}}else l.location==="statusCode"&&(r[u]=parseInt(i.statusCode,10))}),t.data=r}s(Lm,"extractData");Ec.exports={buildRequest:km,extractError:qm,extractData:Lm,generateURI:xc}});var la=P((Z_,Ac)=>{var ca=Oe(),Sc=qn(),Tc=Ws(),Mm=qs(),Cc=Ms(),bc=["GET","HEAD","DELETE"];function Fm(t){var e=ca.getRequestPayloadShape(t);e===void 0&&bc.indexOf(t.httpRequest.method)>=0&&delete t.httpRequest.headers["Content-Length"]}s(Fm,"unsetContentLength");function Wm(t){var e=new Mm,r=t.service.api.operations[t.operation].input;if(r.payload){var i={},n=r.members[r.payload];i=t.params[r.payload],n.type==="structure"?(t.httpRequest.body=e.build(i||{},n),ua(t)):i!==void 0&&(t.httpRequest.body=i,(n.type==="binary"||n.isStreaming)&&ua(t,!0))}else t.httpRequest.body=e.build(t.params,r),ua(t)}s(Wm,"populateBody");function ua(t,e){if(!t.httpRequest.headers["Content-Type"]){var r=e?"binary/octet-stream":"application/json";t.httpRequest.headers["Content-Type"]=r}}s(ua,"applyContentTypeHeader");function Bm(t){Sc.buildRequest(t),bc.indexOf(t.httpRequest.method)<0&&Wm(t)}s(Bm,"buildRequest");function Um(t){Tc.extractError(t)}s(Um,"extractError");function Vm(t){Sc.extractData(t);var e=t.request,r=e.service.api.operations[e.operation],i=e.service.api.operations[e.operation].output||{},n,o=r.hasEventOutput;if(i.payload){var a=i.members[i.payload],u=t.httpResponse.body;if(a.isEventStream)n=new Cc,t.data[payload]=ca.createEventStream(AWS.HttpClient.streamsApiVersion===2?t.httpResponse.stream:u,n,a);else if(a.type==="structure"||a.type==="list"){var n=new Cc;t.data[i.payload]=n.parse(u,a)}else a.type==="binary"||a.isStreaming?t.data[i.payload]=u:t.data[i.payload]=a.toType(u)}else{var l=t.data;Tc.extractData(t),t.data=ca.merge(l,t.data)}}s(Vm,"extractData");Ac.exports={buildRequest:Bm,extractError:Um,extractData:Vm,unsetContentLength:Fm}});var da=P((tk,Ic)=>{var Vi=V(),Ln=Oe(),fa=qn();function zm(t){var e=t.service.api.operations[t.operation].input,r=new Vi.XML.Builder,i=t.params,n=e.payload;if(n){var o=e.members[n];if(i=i[n],i===void 0)return;if(o.type==="structure"){var a=o.name;t.httpRequest.body=r.toXML(i,o,a,!0)}else t.httpRequest.body=i}else t.httpRequest.body=r.toXML(i,e,e.name||e.shape||Ln.string.upperFirst(t.operation)+"Request")}s(zm,"populateBody");function Hm(t){fa.buildRequest(t),["GET","HEAD"].indexOf(t.httpRequest.method)<0&&zm(t)}s(Hm,"buildRequest");function jm(t){fa.extractError(t);var e;try{e=new Vi.XML.Parser().parse(t.httpResponse.body.toString())}catch{e={Code:t.httpResponse.statusCode,Message:t.httpResponse.statusMessage}}e.Errors&&(e=e.Errors),e.Error&&(e=e.Error),e.Code?t.error=Ln.error(new Error,{code:e.Code,message:e.Message}):t.error=Ln.error(new Error,{code:t.httpResponse.statusCode,message:null})}s(jm,"extractError");function Km(t){fa.extractData(t);var e,r=t.request,i=t.httpResponse.body,n=r.service.api.operations[r.operation],o=n.output,a=n.hasEventOutput,u=o.payload;if(u){var l=o.members[u];l.isEventStream?(e=new Vi.XML.Parser,t.data[u]=Ln.createEventStream(Vi.HttpClient.streamsApiVersion===2?t.httpResponse.stream:t.httpResponse.body,e,l)):l.type==="structure"?(e=new Vi.XML.Parser,t.data[u]=e.parse(i.toString(),l)):l.type==="binary"||l.isStreaming?t.data[u]=i:t.data[u]=l.toType(i)}else if(i.length>0){e=new Vi.XML.Parser;var h=e.parse(i.toString(),o);Ln.update(t.data,h)}}s(Km,"extractData");Ic.exports={buildRequest:Hm,extractError:jm,extractData:Km}});var Rc=P((ik,Oc)=>{function Xm(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}s(Xm,"escapeAttribute");Oc.exports={escapeAttribute:Xm}});var Pc=P((sk,Dc)=>{var Gm=Rc().escapeAttribute;function Mn(t,e){e===void 0&&(e=[]),this.name=t,this.children=e,this.attributes={}}s(Mn,"XmlNode");Mn.prototype.addAttribute=function(t,e){return this.attributes[t]=e,this};Mn.prototype.addChildNode=function(t){return this.children.push(t),this};Mn.prototype.removeAttribute=function(t){return delete this.attributes[t],this};Mn.prototype.toString=function(){for(var t=Boolean(this.children.length),e="<"+this.name,r=this.attributes,i=0,n=Object.keys(r);i<n.length;i++){var o=n[i],a=r[o];typeof a<"u"&&a!==null&&(e+=" "+o+'="'+Gm(""+a)+'"')}return e+=t?">"+this.children.map(function(u){return u.toString()}).join("")+"</"+this.name+">":"/>"};Dc.exports={XmlNode:Mn}});var kc=P((ak,_c)=>{function Jm(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}s(Jm,"escapeElement");_c.exports={escapeElement:Jm}});var Mc=P((ck,Lc)=>{var $m=kc().escapeElement;function qc(t){this.value=t}s(qc,"XmlText");qc.prototype.toString=function(){return $m(""+this.value)};Lc.exports={XmlText:qc}});var Uc=P((fk,Bc)=>{var Us=Oe(),ci=Pc().XmlNode,Ym=Mc().XmlText;function Fc(){}s(Fc,"XmlBuilder");Fc.prototype.toXML=function(t,e,r,i){var n=new ci(r);return Wc(n,e,!0),li(n,t,e),n.children.length>0||i?n.toString():""};function li(t,e,r){switch(r.type){case"structure":return Qm(t,e,r);case"map":return Zm(t,e,r);case"list":return ey(t,e,r);default:return ty(t,e,r)}}s(li,"serialize");function Qm(t,e,r){Us.arrayEach(r.memberNames,function(i){var n=r.members[i];if(n.location==="body"){var o=e[i],a=n.name;if(o!=null)if(n.isXmlAttribute)t.addAttribute(a,o);else if(n.flattened)li(t,o,n);else{var u=new ci(a);t.addChildNode(u),Wc(u,n),li(u,o,n)}}})}s(Qm,"serializeStructure");function Zm(t,e,r){var i=r.key.name||"key",n=r.value.name||"value";Us.each(e,function(o,a){var u=new ci(r.flattened?r.name:"entry");t.addChildNode(u);var l=new ci(i),h=new ci(n);u.addChildNode(l),u.addChildNode(h),li(l,o,r.key),li(h,a,r.value)})}s(Zm,"serializeMap");function ey(t,e,r){r.flattened?Us.arrayEach(e,function(i){var n=r.member.name||r.name,o=new ci(n);t.addChildNode(o),li(o,i,r.member)}):Us.arrayEach(e,function(i){var n=r.member.name||"member",o=new ci(n);t.addChildNode(o),li(o,i,r.member)})}s(ey,"serializeList");function ty(t,e,r){t.addChildNode(new Ym(r.toWireFormat(e)))}s(ty,"serializeScalar");function Wc(t,e,r){var i,n="xmlns";e.xmlNamespaceUri?(i=e.xmlNamespaceUri,e.xmlNamespacePrefix&&(n+=":"+e.xmlNamespacePrefix)):r&&e.api.xmlNamespaceUri&&(i=e.api.xmlNamespaceUri),i&&t.addAttribute(n,i)}s(Wc,"applyNamespaces");Bc.exports=Fc});var ha=P((hk,zc)=>{var Fn=_n(),Vc=Oe(),Jt=Vc.property,zi=Vc.memoizedProperty;function ry(t,e,r){var i=this;r=r||{},Jt(this,"name",e.name||t),Jt(this,"api",r.api,!1),e.http=e.http||{},Jt(this,"endpoint",e.endpoint),Jt(this,"httpMethod",e.http.method||"POST"),Jt(this,"httpPath",e.http.requestUri||"/"),Jt(this,"authtype",e.authtype||""),Jt(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var n=e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired;Jt(this,"httpChecksumRequired",n,!1),zi(this,"input",function(){return e.input?Fn.create(e.input,r):new Fn.create({type:"structure"},r)}),zi(this,"output",function(){return e.output?Fn.create(e.output,r):new Fn.create({type:"structure"},r)}),zi(this,"errors",function(){var o=[];if(!e.errors)return null;for(var a=0;a<e.errors.length;a++)o.push(Fn.create(e.errors[a],r));return o}),zi(this,"paginator",function(){return r.api.paginators[t]}),r.documentation&&(Jt(this,"documentation",e.documentation),Jt(this,"documentationUrl",e.documentationUrl)),zi(this,"idempotentMembers",function(){var o=[],a=i.input,u=a.members;if(!a.members)return o;for(var l in u)u.hasOwnProperty(l)&&u[l].isIdempotent===!0&&o.push(l);return o}),zi(this,"hasEventOutput",function(){var o=i.output;return iy(o)})}s(ry,"Operation");function iy(t){var e=t.members,r=t.payload;if(!t.members)return!1;if(r){var i=e[r];return i.isEventStream}for(var n in e)if(!e.hasOwnProperty(n)&&e[n].isEventStream===!0)return!0;return!1}s(iy,"hasEventStream");zc.exports=ry});var pa=P((mk,Hc)=>{var Wn=Oe().property;function ny(t,e){Wn(this,"inputToken",e.input_token),Wn(this,"limitKey",e.limit_key),Wn(this,"moreResults",e.more_results),Wn(this,"outputToken",e.output_token),Wn(this,"resultKey",e.result_key)}s(ny,"Paginator");Hc.exports=ny});var ma=P((vk,Kc)=>{var jc=Oe(),Vs=jc.property;function sy(t,e,r){r=r||{},Vs(this,"name",t),Vs(this,"api",r.api,!1),e.operation&&Vs(this,"operation",jc.string.lowerFirst(e.operation));var i=this,n=["type","description","delay","maxAttempts","acceptors"];n.forEach(function(o){var a=e[o];a&&Vs(i,o,a)})}s(sy,"ResourceWaiter");Kc.exports=sy});var ya=P((Nk,oy)=>{oy.exports={acm:{name:"ACM",cors:!0},apigateway:{name:"APIGateway",cors:!0},applicationautoscaling:{prefix:"application-autoscaling",name:"ApplicationAutoScaling",cors:!0},appstream:{name:"AppStream"},autoscaling:{name:"AutoScaling",cors:!0},batch:{name:"Batch"},budgets:{name:"Budgets"},clouddirectory:{name:"CloudDirectory",versions:["2016-05-10*"]},cloudformation:{name:"CloudFormation",cors:!0},cloudfront:{name:"CloudFront",versions:["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],cors:!0},cloudhsm:{name:"CloudHSM",cors:!0},cloudsearch:{name:"CloudSearch"},cloudsearchdomain:{name:"CloudSearchDomain"},cloudtrail:{name:"CloudTrail",cors:!0},cloudwatch:{prefix:"monitoring",name:"CloudWatch",cors:!0},cloudwatchevents:{prefix:"events",name:"CloudWatchEvents",versions:["2014-02-03*"],cors:!0},cloudwatchlogs:{prefix:"logs",name:"CloudWatchLogs",cors:!0},codebuild:{name:"CodeBuild",cors:!0},codecommit:{name:"CodeCommit",cors:!0},codedeploy:{name:"CodeDeploy",cors:!0},codepipeline:{name:"CodePipeline",cors:!0},cognitoidentity:{prefix:"cognito-identity",name:"CognitoIdentity",cors:!0},cognitoidentityserviceprovider:{prefix:"cognito-idp",name:"CognitoIdentityServiceProvider",cors:!0},cognitosync:{prefix:"cognito-sync",name:"CognitoSync",cors:!0},configservice:{prefix:"config",name:"ConfigService",cors:!0},cur:{name:"CUR",cors:!0},datapipeline:{name:"DataPipeline"},devicefarm:{name:"DeviceFarm",cors:!0},directconnect:{name:"DirectConnect",cors:!0},directoryservice:{prefix:"ds",name:"DirectoryService"},discovery:{name:"Discovery"},dms:{name:"DMS"},dynamodb:{name:"DynamoDB",cors:!0},dynamodbstreams:{prefix:"streams.dynamodb",name:"DynamoDBStreams",cors:!0},ec2:{name:"EC2",versions:["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],cors:!0},ecr:{name:"ECR",cors:!0},ecs:{name:"ECS",cors:!0},efs:{prefix:"elasticfilesystem",name:"EFS",cors:!0},elasticache:{name:"ElastiCache",versions:["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],cors:!0},elasticbeanstalk:{name:"ElasticBeanstalk",cors:!0},elb:{prefix:"elasticloadbalancing",name:"ELB",cors:!0},elbv2:{prefix:"elasticloadbalancingv2",name:"ELBv2",cors:!0},emr:{prefix:"elasticmapreduce",name:"EMR",cors:!0},es:{name:"ES"},elastictranscoder:{name:"ElasticTranscoder",cors:!0},firehose:{name:"Firehose",cors:!0},gamelift:{name:"GameLift",cors:!0},glacier:{name:"Glacier"},health:{name:"Health"},iam:{name:"IAM",cors:!0},importexport:{name:"ImportExport"},inspector:{name:"Inspector",versions:["2015-08-18*"],cors:!0},iot:{name:"Iot",cors:!0},iotdata:{prefix:"iot-data",name:"IotData",cors:!0},kinesis:{name:"Kinesis",cors:!0},kinesisanalytics:{name:"KinesisAnalytics"},kms:{name:"KMS",cors:!0},lambda:{name:"Lambda",cors:!0},lexruntime:{prefix:"runtime.lex",name:"LexRuntime",cors:!0},lightsail:{name:"Lightsail"},machinelearning:{name:"MachineLearning",cors:!0},marketplacecommerceanalytics:{name:"MarketplaceCommerceAnalytics",cors:!0},marketplacemetering:{prefix:"meteringmarketplace",name:"MarketplaceMetering"},mturk:{prefix:"mturk-requester",name:"MTurk",cors:!0},mobileanalytics:{name:"MobileAnalytics",cors:!0},opsworks:{name:"OpsWorks",cors:!0},opsworkscm:{name:"OpsWorksCM"},organizations:{name:"Organizations"},pinpoint:{name:"Pinpoint"},polly:{name:"Polly",cors:!0},rds:{name:"RDS",versions:["2014-09-01*"],cors:!0},redshift:{name:"Redshift",cors:!0},rekognition:{name:"Rekognition",cors:!0},resourcegroupstaggingapi:{name:"ResourceGroupsTaggingAPI"},route53:{name:"Route53",cors:!0},route53domains:{name:"Route53Domains",cors:!0},s3:{name:"S3",dualstackAvailable:!0,cors:!0},s3control:{name:"S3Control",dualstackAvailable:!0,xmlNoDefaultLists:!0},servicecatalog:{name:"ServiceCatalog",cors:!0},ses:{prefix:"email",name:"SES",cors:!0},shield:{name:"Shield"},simpledb:{prefix:"sdb",name:"SimpleDB"},sms:{name:"SMS"},snowball:{name:"Snowball"},sns:{name:"SNS",cors:!0},sqs:{name:"SQS",cors:!0},ssm:{name:"SSM",cors:!0},storagegateway:{name:"StorageGateway",cors:!0},stepfunctions:{prefix:"states",name:"StepFunctions"},sts:{name:"STS",cors:!0},support:{name:"Support"},swf:{name:"SWF"},xray:{name:"XRay",cors:!0},waf:{name:"WAF",cors:!0},wafregional:{prefix:"waf-regional",name:"WAFRegional"},workdocs:{name:"WorkDocs",cors:!0},workspaces:{name:"WorkSpaces"},codestar:{name:"CodeStar"},lexmodelbuildingservice:{prefix:"lex-models",name:"LexModelBuildingService",cors:!0},marketplaceentitlementservice:{prefix:"entitlement.marketplace",name:"MarketplaceEntitlementService"},athena:{name:"Athena",cors:!0},greengrass:{name:"Greengrass"},dax:{name:"DAX"},migrationhub:{prefix:"AWSMigrationHub",name:"MigrationHub"},cloudhsmv2:{name:"CloudHSMV2",cors:!0},glue:{name:"Glue"},mobile:{name:"Mobile"},pricing:{name:"Pricing",cors:!0},costexplorer:{prefix:"ce",name:"CostExplorer",cors:!0},mediaconvert:{name:"MediaConvert"},medialive:{name:"MediaLive"},mediapackage:{name:"MediaPackage"},mediastore:{name:"MediaStore"},mediastoredata:{prefix:"mediastore-data",name:"MediaStoreData",cors:!0},appsync:{name:"AppSync"},guardduty:{name:"GuardDuty"},mq:{name:"MQ"},comprehend:{name:"Comprehend",cors:!0},iotjobsdataplane:{prefix:"iot-jobs-data",name:"IoTJobsDataPlane"},kinesisvideoarchivedmedia:{prefix:"kinesis-video-archived-media",name:"KinesisVideoArchivedMedia",cors:!0},kinesisvideomedia:{prefix:"kinesis-video-media",name:"KinesisVideoMedia",cors:!0},kinesisvideo:{name:"KinesisVideo",cors:!0},sagemakerruntime:{prefix:"runtime.sagemaker",name:"SageMakerRuntime"},sagemaker:{name:"SageMaker"},translate:{name:"Translate",cors:!0},resourcegroups:{prefix:"resource-groups",name:"ResourceGroups",cors:!0},alexaforbusiness:{name:"AlexaForBusiness"},cloud9:{name:"Cloud9"},serverlessapplicationrepository:{prefix:"serverlessrepo",name:"ServerlessApplicationRepository"},servicediscovery:{name:"ServiceDiscovery"},workmail:{name:"WorkMail"},autoscalingplans:{prefix:"autoscaling-plans",name:"AutoScalingPlans"},transcribeservice:{prefix:"transcribe",name:"TranscribeService"},connect:{name:"Connect",cors:!0},acmpca:{prefix:"acm-pca",name:"ACMPCA"},fms:{name:"FMS"},secretsmanager:{name:"SecretsManager",cors:!0},iotanalytics:{name:"IoTAnalytics",cors:!0},iot1clickdevicesservice:{prefix:"iot1click-devices",name:"IoT1ClickDevicesService"},iot1clickprojects:{prefix:"iot1click-projects",name:"IoT1ClickProjects"},pi:{name:"PI"},neptune:{name:"Neptune"},mediatailor:{name:"MediaTailor"},eks:{name:"EKS"},macie:{name:"Macie"},dlm:{name:"DLM"},signer:{name:"Signer"},chime:{name:"Chime"},pinpointemail:{prefix:"pinpoint-email",name:"PinpointEmail"},ram:{name:"RAM"},route53resolver:{name:"Route53Resolver"},pinpointsmsvoice:{prefix:"sms-voice",name:"PinpointSMSVoice"},quicksight:{name:"QuickSight"},rdsdataservice:{prefix:"rds-data",name:"RDSDataService"},amplify:{name:"Amplify"},datasync:{name:"DataSync"},robomaker:{name:"RoboMaker"},transfer:{name:"Transfer"},globalaccelerator:{name:"GlobalAccelerator"},comprehendmedical:{name:"ComprehendMedical",cors:!0},kinesisanalyticsv2:{name:"KinesisAnalyticsV2"},mediaconnect:{name:"MediaConnect"},fsx:{name:"FSx"},securityhub:{name:"SecurityHub"},appmesh:{name:"AppMesh",versions:["2018-10-01*"]},licensemanager:{prefix:"license-manager",name:"LicenseManager"},kafka:{name:"Kafka"},apigatewaymanagementapi:{name:"ApiGatewayManagementApi"},apigatewayv2:{name:"ApiGatewayV2"},docdb:{name:"DocDB"},backup:{name:"Backup"},worklink:{name:"WorkLink"},textract:{name:"Textract"},managedblockchain:{name:"ManagedBlockchain"},mediapackagevod:{prefix:"mediapackage-vod",name:"MediaPackageVod"},groundstation:{name:"GroundStation"},iotthingsgraph:{name:"IoTThingsGraph"},iotevents:{name:"IoTEvents"},ioteventsdata:{prefix:"iotevents-data",name:"IoTEventsData"},personalize:{name:"Personalize",cors:!0},personalizeevents:{prefix:"personalize-events",name:"PersonalizeEvents",cors:!0},personalizeruntime:{prefix:"personalize-runtime",name:"PersonalizeRuntime",cors:!0},applicationinsights:{prefix:"application-insights",name:"ApplicationInsights"},servicequotas:{prefix:"service-quotas",name:"ServiceQuotas"},ec2instanceconnect:{prefix:"ec2-instance-connect",name:"EC2InstanceConnect"},eventbridge:{name:"EventBridge"},lakeformation:{name:"LakeFormation"},forecastservice:{prefix:"forecast",name:"ForecastService",cors:!0},forecastqueryservice:{prefix:"forecastquery",name:"ForecastQueryService",cors:!0},qldb:{name:"QLDB"},qldbsession:{prefix:"qldb-session",name:"QLDBSession"},workmailmessageflow:{name:"WorkMailMessageFlow"},codestarnotifications:{prefix:"codestar-notifications",name:"CodeStarNotifications"},savingsplans:{name:"SavingsPlans"},sso:{name:"SSO"},ssooidc:{prefix:"sso-oidc",name:"SSOOIDC"},marketplacecatalog:{prefix:"marketplace-catalog",name:"MarketplaceCatalog",cors:!0},dataexchange:{name:"DataExchange"},sesv2:{name:"SESV2"},migrationhubconfig:{prefix:"migrationhub-config",name:"MigrationHubConfig"},connectparticipant:{name:"ConnectParticipant"},appconfig:{name:"AppConfig"},iotsecuretunneling:{name:"IoTSecureTunneling"},wafv2:{name:"WAFV2"},elasticinference:{prefix:"elastic-inference",name:"ElasticInference"},imagebuilder:{name:"Imagebuilder"},schemas:{name:"Schemas"},accessanalyzer:{name:"AccessAnalyzer"},codegurureviewer:{prefix:"codeguru-reviewer",name:"CodeGuruReviewer"},codeguruprofiler:{name:"CodeGuruProfiler"},computeoptimizer:{prefix:"compute-optimizer",name:"ComputeOptimizer"},frauddetector:{name:"FraudDetector"},kendra:{name:"Kendra"},networkmanager:{name:"NetworkManager"},outposts:{name:"Outposts"},augmentedairuntime:{prefix:"sagemaker-a2i-runtime",name:"AugmentedAIRuntime"},ebs:{name:"EBS"},kinesisvideosignalingchannels:{prefix:"kinesis-video-signaling",name:"KinesisVideoSignalingChannels",cors:!0},detective:{name:"Detective"},codestarconnections:{prefix:"codestar-connections",name:"CodeStarconnections"},synthetics:{name:"Synthetics"},iotsitewise:{name:"IoTSiteWise"},macie2:{name:"Macie2"},codeartifact:{name:"CodeArtifact"},honeycode:{name:"Honeycode"},ivs:{name:"IVS"},braket:{name:"Braket"},identitystore:{name:"IdentityStore"},appflow:{name:"Appflow"},redshiftdata:{prefix:"redshift-data",name:"RedshiftData"},ssoadmin:{prefix:"sso-admin",name:"SSOAdmin"},timestreamquery:{prefix:"timestream-query",name:"TimestreamQuery"},timestreamwrite:{prefix:"timestream-write",name:"TimestreamWrite"},s3outposts:{name:"S3Outposts"},databrew:{name:"DataBrew"},servicecatalogappregistry:{prefix:"servicecatalog-appregistry",name:"ServiceCatalogAppRegistry"},networkfirewall:{prefix:"network-firewall",name:"NetworkFirewall"},mwaa:{name:"MWAA"},amplifybackend:{name:"AmplifyBackend"},appintegrations:{name:"AppIntegrations"},connectcontactlens:{prefix:"connect-contact-lens",name:"ConnectContactLens"},devopsguru:{prefix:"devops-guru",name:"DevOpsGuru"},ecrpublic:{prefix:"ecr-public",name:"ECRPUBLIC"},lookoutvision:{name:"LookoutVision"},sagemakerfeaturestoreruntime:{prefix:"sagemaker-featurestore-runtime",name:"SageMakerFeatureStoreRuntime"},customerprofiles:{prefix:"customer-profiles",name:"CustomerProfiles"},auditmanager:{name:"AuditManager"},emrcontainers:{prefix:"emr-containers",name:"EMRcontainers"},healthlake:{name:"HealthLake"},sagemakeredge:{prefix:"sagemaker-edge",name:"SagemakerEdge"},amp:{name:"Amp"},greengrassv2:{name:"GreengrassV2"},iotdeviceadvisor:{name:"IotDeviceAdvisor"},iotfleethub:{name:"IoTFleetHub"},iotwireless:{name:"IoTWireless"},location:{name:"Location",cors:!0},wellarchitected:{name:"WellArchitected"},lexmodelsv2:{prefix:"models.lex.v2",name:"LexModelsV2"},lexruntimev2:{prefix:"runtime.lex.v2",name:"LexRuntimeV2",cors:!0},fis:{name:"Fis"},lookoutmetrics:{name:"LookoutMetrics"},mgn:{name:"Mgn"},lookoutequipment:{name:"LookoutEquipment"},nimble:{name:"Nimble"},finspace:{name:"Finspace"},finspacedata:{prefix:"finspace-data",name:"Finspacedata"},ssmcontacts:{prefix:"ssm-contacts",name:"SSMContacts"},ssmincidents:{prefix:"ssm-incidents",name:"SSMIncidents"},applicationcostprofiler:{name:"ApplicationCostProfiler"},apprunner:{name:"AppRunner"},proton:{name:"Proton"},route53recoverycluster:{prefix:"route53-recovery-cluster",name:"Route53RecoveryCluster"},route53recoverycontrolconfig:{prefix:"route53-recovery-control-config",name:"Route53RecoveryControlConfig"},route53recoveryreadiness:{prefix:"route53-recovery-readiness",name:"Route53RecoveryReadiness"},chimesdkidentity:{prefix:"chime-sdk-identity",name:"ChimeSDKIdentity"},chimesdkmessaging:{prefix:"chime-sdk-messaging",name:"ChimeSDKMessaging"},snowdevicemanagement:{prefix:"snow-device-management",name:"SnowDeviceManagement"},memorydb:{name:"MemoryDB"},opensearch:{name:"OpenSearch"},kafkaconnect:{name:"KafkaConnect"},voiceid:{prefix:"voice-id",name:"VoiceID"},wisdom:{name:"Wisdom"},account:{name:"Account"},cloudcontrol:{name:"CloudControl"},grafana:{name:"Grafana"},panorama:{name:"Panorama"},chimesdkmeetings:{prefix:"chime-sdk-meetings",name:"ChimeSDKMeetings"},resiliencehub:{name:"Resiliencehub"},migrationhubstrategy:{name:"MigrationHubStrategy"},appconfigdata:{name:"AppConfigData"},drs:{name:"Drs"},migrationhubrefactorspaces:{prefix:"migration-hub-refactor-spaces",name:"MigrationHubRefactorSpaces"},evidently:{name:"Evidently"},inspector2:{name:"Inspector2"},rbin:{name:"Rbin"},rum:{name:"RUM"},backupgateway:{prefix:"backup-gateway",name:"BackupGateway"},iottwinmaker:{name:"IoTTwinMaker"},workspacesweb:{prefix:"workspaces-web",name:"WorkSpacesWeb"},amplifyuibuilder:{name:"AmplifyUIBuilder"},keyspaces:{name:"Keyspaces"},billingconductor:{name:"Billingconductor"},gamesparks:{name:"GameSparks"},pinpointsmsvoicev2:{prefix:"pinpoint-sms-voice-v2",name:"PinpointSMSVoiceV2"},ivschat:{name:"Ivschat"},chimesdkmediapipelines:{prefix:"chime-sdk-media-pipelines",name:"ChimeSDKMediaPipelines"},emrserverless:{prefix:"emr-serverless",name:"EMRServerless"},m2:{name:"M2"},connectcampaigns:{name:"ConnectCampaigns"},redshiftserverless:{prefix:"redshift-serverless",name:"RedshiftServerless"},rolesanywhere:{name:"RolesAnywhere"},licensemanagerusersubscriptions:{prefix:"license-manager-user-subscriptions",name:"LicenseManagerUserSubscriptions"},backupstorage:{name:"BackupStorage"},privatenetworks:{name:"PrivateNetworks"},supportapp:{prefix:"support-app",name:"SupportApp"},controltower:{name:"ControlTower"},iotfleetwise:{name:"IoTFleetWise"},migrationhuborchestrator:{name:"MigrationHubOrchestrator"},connectcases:{name:"ConnectCases"},resourceexplorer2:{prefix:"resource-explorer-2",name:"ResourceExplorer2"},scheduler:{name:"Scheduler"},chimesdkvoice:{prefix:"chime-sdk-voice",name:"ChimeSDKVoice"},iotroborunner:{prefix:"iot-roborunner",name:"IoTRoboRunner"},ssmsap:{prefix:"ssm-sap",name:"SsmSap"},oam:{name:"OAM"},arczonalshift:{prefix:"arc-zonal-shift",name:"ARCZonalShift"},omics:{name:"Omics"},opensearchserverless:{name:"OpenSearchServerless"},securitylake:{name:"SecurityLake"},simspaceweaver:{name:"SimSpaceWeaver"},docdbelastic:{prefix:"docdb-elastic",name:"DocDBElastic"},sagemakergeospatial:{prefix:"sagemaker-geospatial",name:"SageMakerGeospatial"},codecatalyst:{name:"CodeCatalyst"},pipes:{name:"Pipes"},sagemakermetrics:{prefix:"sagemaker-metrics",name:"SageMakerMetrics"},kinesisvideowebrtcstorage:{prefix:"kinesis-video-webrtc-storage",name:"KinesisVideoWebRTCStorage"},licensemanagerlinuxsubscriptions:{prefix:"license-manager-linux-subscriptions",name:"LicenseManagerLinuxSubscriptions"},kendraranking:{prefix:"kendra-ranking",name:"KendraRanking"},cleanrooms:{name:"CleanRooms"},cloudtraildata:{prefix:"cloudtrail-data",name:"CloudTrailData"},tnb:{name:"Tnb"}}});var va=P((wk,Gc)=>{var zs=sa(),ay=ha(),uy=_n(),cy=pa(),ly=ma(),Xc=ya(),Bn=Oe(),ge=Bn.property,fy=Bn.memoizedProperty;function dy(t,e){var r=this;t=t||{},e=e||{},e.api=this,t.metadata=t.metadata||{};var i=e.serviceIdentifier;delete e.serviceIdentifier,ge(this,"isApi",!0,!1),ge(this,"apiVersion",t.metadata.apiVersion),ge(this,"endpointPrefix",t.metadata.endpointPrefix),ge(this,"signingName",t.metadata.signingName),ge(this,"globalEndpoint",t.metadata.globalEndpoint),ge(this,"signatureVersion",t.metadata.signatureVersion),ge(this,"jsonVersion",t.metadata.jsonVersion),ge(this,"targetPrefix",t.metadata.targetPrefix),ge(this,"protocol",t.metadata.protocol),ge(this,"timestampFormat",t.metadata.timestampFormat),ge(this,"xmlNamespaceUri",t.metadata.xmlNamespace),ge(this,"abbreviation",t.metadata.serviceAbbreviation),ge(this,"fullName",t.metadata.serviceFullName),ge(this,"serviceId",t.metadata.serviceId),i&&Xc[i]&&ge(this,"xmlNoDefaultLists",Xc[i].xmlNoDefaultLists,!1),fy(this,"className",function(){var o=t.metadata.serviceAbbreviation||t.metadata.serviceFullName;return o?(o=o.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),o==="ElasticLoadBalancing"&&(o="ELB"),o):null});function n(o,a){a.endpointoperation===!0&&ge(r,"endpointOperation",Bn.string.lowerFirst(o)),a.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&ge(r,"hasRequiredEndpointDiscovery",a.endpointdiscovery.required===!0)}s(n,"addEndpointOperation"),ge(this,"operations",new zs(t.operations,e,function(o,a){return new ay(o,a,e)},Bn.string.lowerFirst,n)),ge(this,"shapes",new zs(t.shapes,e,function(o,a){return uy.create(a,e)})),ge(this,"paginators",new zs(t.paginators,e,function(o,a){return new cy(o,a,e)})),ge(this,"waiters",new zs(t.waiters,e,function(o,a){return new ly(o,a,e)},Bn.string.lowerFirst)),e.documentation&&(ge(this,"documentation",t.documentation),ge(this,"documentationUrl",t.documentationUrl)),ge(this,"awsQueryCompatible",t.metadata.awsQueryCompatible)}s(dy,"Api");Gc.exports=dy});var $c=P((Ek,Jc)=>{function Hs(t,e){if(!Hs.services.hasOwnProperty(t))throw new Error("InvalidService: Failed to load api for "+t);return Hs.services[t][e]}s(Hs,"apiLoader");Hs.services={};Jc.exports=Hs});var Yc=P(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var hy=function(){function t(e,r){this.key=e,this.value=r}return s(t,"LinkedListNode"),t}(),py=function(){function t(e){if(this.nodeMap={},this.size=0,typeof e!="number"||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return s(t,"LRUCache"),Object.defineProperty(t.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),t.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},t.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,r=e.prev;return r&&(r.next=void 0),e.prev=void 0,this.tailNode=r,this.size--,e}},t.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},t.prototype.get=function(e){if(this.nodeMap[e]){var r=this.nodeMap[e];return this.detachFromList(r),this.prependToList(r),r.value}},t.prototype.remove=function(e){if(this.nodeMap[e]){var r=this.nodeMap[e];this.detachFromList(r),delete this.nodeMap[e]}},t.prototype.put=function(e,r){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var i=this.removeFromTail(),n=i.key;delete this.nodeMap[n]}var o=new hy(e,r);this.nodeMap[e]=o,this.prependToList(o)},t.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),r=0;r<e.length;r++){var i=e[r],n=this.nodeMap[i];this.detachFromList(n),delete this.nodeMap[i]}},t}();ga.LRUCache=py});var Qc=P(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var my=Yc(),yy=1e3,vy=function(){function t(e){e===void 0&&(e=yy),this.maxSize=e,this.cache=new my.LRUCache(e)}return s(t,"EndpointCache"),Object.defineProperty(t.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),t.prototype.put=function(e,r){var i=typeof e!="string"?t.getKeyString(e):e,n=this.populateValue(r);this.cache.put(i,n)},t.prototype.get=function(e){var r=typeof e!="string"?t.getKeyString(e):e,i=Date.now(),n=this.cache.get(r);if(n){for(var o=n.length-1;o>=0;o--){var a=n[o];a.Expire<i&&n.splice(o,1)}if(n.length===0){this.cache.remove(r);return}}return n},t.getKeyString=function(e){for(var r=[],i=Object.keys(e).sort(),n=0;n<i.length;n++){var o=i[n];e[o]!==void 0&&r.push(e[o])}return r.join(" ")},t.prototype.populateValue=function(e){var r=Date.now();return e.map(function(i){return{Address:i.Address||"",Expire:r+(i.CachePeriodInMinutes||1)*60*1e3}})},t.prototype.empty=function(){this.cache.empty()},t.prototype.remove=function(e){var r=typeof e!="string"?t.getKeyString(e):e;this.cache.remove(r)},t}();Na.EndpointCache=vy});var wa=P((Ik,Zc)=>{var vr=V();vr.SequentialExecutor=vr.util.inherit({constructor:s(function(){this._events={}},"SequentialExecutor"),listeners:s(function(e){return this._events[e]?this._events[e].slice(0):[]},"listeners"),on:s(function(e,r,i){return this._events[e]?i?this._events[e].unshift(r):this._events[e].push(r):this._events[e]=[r],this},"on"),onAsync:s(function(e,r,i){return r._isAsync=!0,this.on(e,r,i)},"onAsync"),removeListener:s(function(e,r){var i=this._events[e];if(i){for(var n=i.length,o=-1,a=0;a<n;++a)i[a]===r&&(o=a);o>-1&&i.splice(o,1)}return this},"removeListener"),removeAllListeners:s(function(e){return e?delete this._events[e]:this._events={},this},"removeAllListeners"),emit:s(function(e,r,i){i||(i=s(function(){},"doneCallback"));var n=this.listeners(e),o=n.length;return this.callListeners(n,r,i),o>0},"emit"),callListeners:s(function(e,r,i,n){var o=this,a=n||null;function u(h){if(h&&(a=vr.util.error(a||new Error,h),o._haltHandlersOnError))return i.call(o,a);o.callListeners(e,r,i,a)}for(s(u,"callNextListener");e.length>0;){var l=e.shift();if(l._isAsync){l.apply(o,r.concat([u]));return}else{try{l.apply(o,r)}catch(h){a=vr.util.error(a||new Error,h)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},"callListeners"),addListeners:s(function(e){var r=this;return e._events&&(e=e._events),vr.util.each(e,function(i,n){typeof n=="function"&&(n=[n]),vr.util.arrayEach(n,function(o){r.on(i,o)})}),r},"addListeners"),addNamedListener:s(function(e,r,i,n){return this[e]=i,this.addListener(r,i,n),this},"addNamedListener"),addNamedAsyncListener:s(function(e,r,i,n){return i._isAsync=!0,this.addNamedListener(e,r,i,n)},"addNamedAsyncListener"),addNamedListeners:s(function(e){var r=this;return e(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this},"addNamedListeners")});vr.SequentialExecutor.prototype.addListener=vr.SequentialExecutor.prototype.on;Zc.exports=vr.SequentialExecutor});var el=P((Rk,gy)=>{gy.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":"globalSSL","cn-*/route53":{endpoint:"{service}.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{endpoint:"{service}.c2s.ic.gov",globalEndpoint:!0,signingRegion:"us-iso-east-1"},"us-isob-*/route53":{endpoint:"{service}.sc2s.sgov.gov",globalEndpoint:!0,signingRegion:"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{endpoint:"{service}.cn-north-1.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},fipsRules:{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{endpoint:"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{endpoint:"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{endpoint:"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{endpoint:"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{endpoint:"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{endpoint:"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},dualstackRules:{"*/*":{endpoint:"{service}.{region}.api.aws"},"cn-*/*":{endpoint:"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},dualstackFipsRules:{"*/*":{endpoint:"{service}-fips.{region}.api.aws"},"cn-*/*":{endpoint:"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0,signingRegion:"us-east-1"},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com",globalEndpoint:!0,signingRegion:"us-gov-west-1"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"},usIso:{endpoint:"{service}.{region}.c2s.ic.gov"},usIsob:{endpoint:"{service}.{region}.sc2s.sgov.gov"},fipsStandard:{endpoint:"{service}-fips.{region}.amazonaws.com"},fipsDotPrefix:{endpoint:"fips.{service}.{region}.amazonaws.com"},fipsWithoutRegion:{endpoint:"{service}-fips.amazonaws.com"},"fips.api.ecr":{endpoint:"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{endpoint:"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{endpoint:"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{endpoint:"runtime-fips.lex.{region}.amazonaws.com"},fipsWithServiceOnly:{endpoint:"{service}.{region}.amazonaws.com"},dualstackLegacy:{endpoint:"{service}.dualstack.{region}.amazonaws.com"},dualstackLegacyCn:{endpoint:"{service}.dualstack.{region}.amazonaws.com.cn"},dualstackFipsLegacy:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com"},dualstackFipsLegacyCn:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com.cn"},dualstackLegacyEc2:{endpoint:"api.ec2.{region}.aws"},dualstackByDefault:{endpoint:"{service}.{region}.api.aws"},fipsDualstackByDefault:{endpoint:"{service}-fips.{region}.api.aws"},globalDualstackByDefault:{endpoint:"{service}.global.api.aws"},fipsGlobalDualstackByDefault:{endpoint:"{service}-fips.global.api.aws"}}}});var rl=P((Dk,tl)=>{var Ny=Oe(),Un=el();function wy(t){if(!t)return null;var e=t.split("-");return e.length<3?null:e.slice(0,e.length-2).join("-")+"-*"}s(wy,"generateRegionPrefix");function xy(t){var e=t.config.region,r=wy(e),i=t.api.endpointPrefix;return[[e,i],[r,i],[e,"*"],[r,"*"],["*",i],["*","*"]].map(function(n){return n[0]&&n[1]?n.join("/"):null})}s(xy,"derivedKeys");function Ey(t,e){Ny.each(e,function(r,i){r!=="globalEndpoint"&&(t.config[r]===void 0||t.config[r]===null)&&(t.config[r]=i)})}s(Ey,"applyConfig");function Cy(t){for(var e=xy(t),r=t.config.useFipsEndpoint,i=t.config.useDualstackEndpoint,n=0;n<e.length;n++){var o=e[n];if(o){var a=r?i?Un.dualstackFipsRules:Un.fipsRules:i?Un.dualstackRules:Un.rules;if(Object.prototype.hasOwnProperty.call(a,o)){var u=a[o];typeof u=="string"&&(u=Un.patterns[u]),t.isGlobalEndpoint=!!u.globalEndpoint,u.signingRegion&&(t.signingRegion=u.signingRegion),u.signatureVersion||(u.signatureVersion="v4");var l=(t.api&&t.api.signatureVersion)==="bearer";Ey(t,Object.assign({},u,{signatureVersion:l?"bearer":u.signatureVersion}));return}}}}s(Cy,"configureEndpoint");function Sy(t){for(var e={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r="amazonaws.com",i=Object.keys(e),n=0;n<i.length;n++){var o=RegExp(i[n]),a=e[i[n]];if(o.test(t))return a}return r}s(Sy,"getEndpointSuffix");tl.exports={configureEndpoint:Cy,getEndpointSuffix:Sy}});var xa=P((_k,il)=>{function Ty(t){return typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))}s(Ty,"isFipsRegion");function by(t){return typeof t=="string"&&["aws-global","aws-us-gov-global"].includes(t)}s(by,"isGlobalRegion");function Ay(t){return["fips-aws-global","aws-fips","aws-global"].includes(t)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(t)?"us-gov-west-1":t.replace(/fips-(dkr-|prod-)?|-fips/,"")}s(Ay,"getRealRegion");il.exports={isFipsRegion:Ty,isGlobalRegion:by,getRealRegion:Ay}});var sl=P((qk,nl)=>{var U=V(),Iy=va(),Oy=rl(),Ea=U.util.inherit,Ry=0,js=xa();U.Service=Ea({constructor:s(function(e){if(!this.loadServiceClass)throw U.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var r=e.region;js.isFipsRegion(r)&&(e.region=js.getRealRegion(r),e.useFipsEndpoint=!0),js.isGlobalRegion(r)&&(e.region=js.getRealRegion(r))}typeof e.useDualstack=="boolean"&&typeof e.useDualstackEndpoint!="boolean"&&(e.useDualstackEndpoint=e.useDualstack)}var i=this.loadServiceClass(e||{});if(i){var n=U.util.copy(e),o=new i(e);return Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:!1,configurable:!0}),o._clientId=++Ry,o}this.initialize(e)},"Service"),initialize:s(function(e){var r=U.config[this.serviceIdentifier];if(this.config=new U.Config(U.config),r&&this.config.update(r,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||Oy.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),U.SequentialExecutor.call(this),U.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||U.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",s(function(o){process.nextTick(function(){i.eventHandler(o)})},"PUBLISH_API_CALL")),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",s(function(o){process.nextTick(function(){i.eventHandler(o)})},"PUBLISH_API_ATTEMPT"))}},"initialize"),validateService:s(function(){},"validateService"),loadServiceClass:s(function(e){var r=e;if(U.util.isEmpty(this.api)){if(r.apiConfig)return U.Service.defineServiceApi(this.constructor,r.apiConfig);if(this.constructor.services){r=new U.Config(U.config),r.update(e,!0);var i=r.apiVersions[this.constructor.serviceIdentifier];return i=i||r.apiVersion,this.getLatestServiceClass(i)}else return null}else return null},"loadServiceClass"),getLatestServiceClass:s(function(e){return e=this.getLatestServiceVersion(e),this.constructor.services[e]===null&&U.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},"getLatestServiceClass"),getLatestServiceVersion:s(function(e){if(!this.constructor.services||this.constructor.services.length===0)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?U.util.isType(e,Date)&&(e=U.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var r=Object.keys(this.constructor.services).sort(),i=null,n=r.length-1;n>=0;n--)if(r[n][r[n].length-1]!=="*"&&(i=r[n]),r[n].substr(0,10)<=e)return i;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},"getLatestServiceVersion"),api:{},defaultRetryCount:3,customizeRequests:s(function(e){if(!e)this.customRequestHandler=null;else if(typeof e=="function")this.customRequestHandler=e;else throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")},"customizeRequests"),makeRequest:s(function(e,r,i){if(typeof r=="function"&&(i=r,r=null),r=r||{},this.config.params){var n=this.api.operations[e];n&&(r=U.util.copy(r),U.util.each(this.config.params,function(a,u){n.input.members[a]&&(r[a]===void 0||r[a]===null)&&(r[a]=u)}))}var o=new U.Request(this,e,r);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),i&&o.send(i),o},"makeRequest"),makeUnauthenticatedRequest:s(function(e,r,i){typeof r=="function"&&(i=r,r={});var n=this.makeRequest(e,r).toUnauthenticated();return i?n.send(i):n},"makeUnauthenticatedRequest"),waitFor:s(function(e,r,i){var n=new U.ResourceWaiter(this,e);return n.wait(r,i)},"waitFor"),addAllRequestListeners:s(function(e){for(var r=[U.events,U.EventListeners.Core,this.serviceInterface(),U.EventListeners.CorePost],i=0;i<r.length;i++)r[i]&&e.addListeners(r[i]);this.config.paramValidation||e.removeListener("validate",U.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(U.EventListeners.Logger),this.setupRequestListeners(e),typeof this.constructor.prototype.customRequestHandler=="function"&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&typeof this.customRequestHandler=="function"&&this.customRequestHandler(e)},"addAllRequestListeners"),apiCallEvent:s(function(e){var r=e.service.api.operations[e.operation],i={Type:"ApiCall",Api:r?r.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(i.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var o=n.error,a=n.httpResponse.statusCode;a>299?(o.code&&(i.FinalAwsException=o.code),o.message&&(i.FinalAwsExceptionMessage=o.message)):((o.code||o.name)&&(i.FinalSdkException=o.code||o.name),o.message&&(i.FinalSdkExceptionMessage=o.message))}return i},"apiCallEvent"),apiAttemptEvent:s(function(e){var r=e.service.api.operations[e.operation],i={Type:"ApiCallAttempt",Api:r?r.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(i.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(i.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(i.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(i.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(i.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(i.XAmzId2=n.httpResponse.headers["x-amz-id-2"])),i},"apiAttemptEvent"),attemptFailEvent:s(function(e){var r=this.apiAttemptEvent(e),i=e.response,n=i.error;return i.httpResponse.statusCode>299?(n.code&&(r.AwsException=n.code),n.message&&(r.AwsExceptionMessage=n.message)):((n.code||n.name)&&(r.SdkException=n.code||n.name),n.message&&(r.SdkExceptionMessage=n.message)),r},"attemptFailEvent"),attachMonitoringEmitter:s(function(e){var r,i,n,o,a=0,u,l,h=this,y=!0;e.on("validate",function(){o=U.util.realClock.now(),l=Date.now()},y),e.on("sign",function(){i=U.util.realClock.now(),r=Date.now(),u=e.httpRequest.region,a++},y),e.on("validateResponse",function(){n=Math.round(U.util.realClock.now()-i)}),e.addNamedListener("API_CALL_ATTEMPT","success",s(function(){var S=h.apiAttemptEvent(e);S.Timestamp=r,S.AttemptLatency=n>=0?n:0,S.Region=u,h.emit("apiCallAttempt",[S])},"API_CALL_ATTEMPT")),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",s(function(){var S=h.attemptFailEvent(e);S.Timestamp=r,n=n||Math.round(U.util.realClock.now()-i),S.AttemptLatency=n>=0?n:0,S.Region=u,h.emit("apiCallAttempt",[S])},"API_CALL_ATTEMPT_RETRY")),e.addNamedListener("API_CALL","complete",s(function(){var S=h.apiCallEvent(e);if(S.AttemptCount=a,!(S.AttemptCount<=0)){S.Timestamp=l;var O=Math.round(U.util.realClock.now()-o);S.Latency=O>=0?O:0;var g=e.response;g.error&&g.error.retryable&&typeof g.retryCount=="number"&&typeof g.maxRetries=="number"&&g.retryCount>=g.maxRetries&&(S.MaxRetriesExceeded=1),h.emit("apiCall",[S])}},"API_CALL"))},"attachMonitoringEmitter"),setupRequestListeners:s(function(e){},"setupRequestListeners"),getSigningName:s(function(){return this.api.signingName||this.api.endpointPrefix},"getSigningName"),getSignerClass:s(function(e){var r,i=null,n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null,n=i?i.authtype:""}return this.config.signatureVersion?r=this.config.signatureVersion:n==="v4"||n==="v4-unsigned-body"?r="v4":n==="bearer"?r="bearer":r=this.api.signatureVersion,U.Signers.RequestSigner.getVersion(r)},"getSignerClass"),serviceInterface:s(function(){switch(this.api.protocol){case"ec2":return U.EventListeners.Query;case"query":return U.EventListeners.Query;case"json":return U.EventListeners.Json;case"rest-json":return U.EventListeners.RestJson;case"rest-xml":return U.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},"serviceInterface"),successfulResponse:s(function(e){return e.httpResponse.statusCode<300},"successfulResponse"),numRetries:s(function(){return this.config.maxRetries!==void 0?this.config.maxRetries:this.defaultRetryCount},"numRetries"),retryDelays:s(function(e,r){return U.util.calculateRetryDelay(e,this.config.retryDelayOptions,r)},"retryDelays"),retryableError:s(function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},"retryableError"),networkingError:s(function(e){return e.code==="NetworkingError"},"networkingError"),timeoutError:s(function(e){return e.code==="TimeoutError"},"timeoutError"),expiredCredentialsError:s(function(e){return e.code==="ExpiredTokenException"},"expiredCredentialsError"),clockSkewError:s(function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},"clockSkewError"),getSkewCorrectedDate:s(function(){return new Date(Date.now()+this.config.systemClockOffset)},"getSkewCorrectedDate"),applyClockOffset:s(function(e){e&&(this.config.systemClockOffset=e-Date.now())},"applyClockOffset"),isClockSkewed:s(function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},"isClockSkewed"),throttledError:s(function(e){if(e.statusCode===429)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},"throttledError"),endpointFromTemplate:s(function(e){if(typeof e!="string")return e;var r=e;return r=r.replace(/\{service\}/g,this.api.endpointPrefix),r=r.replace(/\{region\}/g,this.config.region),r=r.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http"),r},"endpointFromTemplate"),setEndpoint:s(function(e){this.endpoint=new U.Endpoint(e,this.config)},"setEndpoint"),paginationConfig:s(function(e,r){var i=this.api.operations[e].paginator;if(!i){if(r){var n=new Error;throw U.util.error(n,"No pagination configuration for "+e)}return null}return i},"paginationConfig")});U.util.update(U.Service,{defineMethods:s(function(e){U.util.each(e.prototype.api.operations,s(function(i){if(!e.prototype[i]){var n=e.prototype.api.operations[i];n.authtype==="none"?e.prototype[i]=function(o,a){return this.makeUnauthenticatedRequest(i,o,a)}:e.prototype[i]=function(o,a){return this.makeRequest(i,o,a)}}},"iterator"))},"defineMethods"),defineService:s(function(e,r,i){U.Service._serviceMap[e]=!0,Array.isArray(r)||(i=r,r=[]);var n=Ea(U.Service,i||{});if(typeof e=="string"){U.Service.addVersions(n,r);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else n.prototype.api=e,U.Service.defineMethods(n);if(U.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&U.util.clientSideMonitoring){var a=U.util.clientSideMonitoring.Publisher,u=U.util.clientSideMonitoring.configProvider,l=u();this.prototype.publisher=new a(l),l.enabled&&(U.Service._clientSideMonitoring=!0)}return U.SequentialExecutor.call(n.prototype),U.Service.addDefaultMonitoringListeners(n.prototype),n},"defineService"),addVersions:s(function(e,r){Array.isArray(r)||(r=[r]),e.services=e.services||{};for(var i=0;i<r.length;i++)e.services[r[i]]===void 0&&(e.services[r[i]]=null);e.apiVersions=Object.keys(e.services).sort()},"addVersions"),defineServiceApi:s(function(e,r,i){var n=Ea(e,{serviceIdentifier:e.serviceIdentifier});function o(a){a.isApi?n.prototype.api=a:n.prototype.api=new Iy(a,{serviceIdentifier:e.serviceIdentifier})}if(s(o,"setApi"),typeof r=="string"){if(i)o(i);else try{o(U.apiLoader(e.serviceIdentifier,r))}catch(a){throw U.util.error(a,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+r})}Object.prototype.hasOwnProperty.call(e.services,r)||(e.apiVersions=e.apiVersions.concat(r).sort()),e.services[r]=n}else o(r);return U.Service.defineMethods(n),n},"defineServiceApi"),hasService:function(t){return Object.prototype.hasOwnProperty.call(U.Service._serviceMap,t)},addDefaultMonitoringListeners:s(function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",s(function(i){var n=Object.getPrototypeOf(e);n._events&&n.emit("apiCallAttempt",[i])},"EVENTS_BUBBLE")),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",s(function(i){var n=Object.getPrototypeOf(e);n._events&&n.emit("apiCall",[i])},"CALL_EVENTS_BUBBLE"))},"addDefaultMonitoringListeners"),_serviceMap:{}});U.util.mixin(U.Service,U.SequentialExecutor);nl.exports=U.Service});var Ca=P(()=>{var Et=V();Et.Credentials=Et.util.inherit({constructor:s(function(){if(Et.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],arguments.length===1&&typeof arguments[0]=="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},"Credentials"),expiryWindow:15,needsRefresh:s(function(){var e=Et.util.date.getDate().getTime(),r=new Date(e+this.expiryWindow*1e3);return this.expireTime&&r>this.expireTime?!0:this.expired||!this.accessKeyId||!this.secretAccessKey},"needsRefresh"),get:s(function(e){var r=this;this.needsRefresh()?this.refresh(function(i){i||(r.expired=!1),e&&e(i)}):e&&e()},"get"),refresh:s(function(e){this.expired=!1,e()},"refresh"),coalesceRefresh:s(function(e,r){var i=this;i.refreshCallbacks.push(e)===1&&i.load(s(function(o){Et.util.arrayEach(i.refreshCallbacks,function(a){r?a(o):Et.util.defer(function(){a(o)})}),i.refreshCallbacks.length=0},"onLoad"))},"coalesceRefresh"),load:s(function(e){e()},"load")});Et.Credentials.addPromisesToClass=s(function(e){this.prototype.getPromise=Et.util.promisifyMethod("get",e),this.prototype.refreshPromise=Et.util.promisifyMethod("refresh",e)},"addPromisesToClass");Et.Credentials.deletePromisesFromClass=s(function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},"deletePromisesFromClass");Et.util.addPromises(Et.Credentials)});var Sa=P(()=>{var Lt=V();Lt.CredentialProviderChain=Lt.util.inherit(Lt.Credentials,{constructor:s(function(e){e?this.providers=e:this.providers=Lt.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},"CredentialProviderChain"),resolve:s(function(e){var r=this;if(r.providers.length===0)return e(new Error("No providers")),r;if(r.resolveCallbacks.push(e)===1){let a=function(u,l){if(!u&&l||i===n.length){Lt.util.arrayEach(r.resolveCallbacks,function(y){y(u,l)}),r.resolveCallbacks.length=0;return}var h=n[i++];typeof h=="function"?l=h.call():l=h,l.get?l.get(function(y){a(y,y?null:l)}):a(null,l)};var o=a;s(a,"resolveNext");var i=0,n=r.providers.slice(0);a()}return r},"resolve")});Lt.CredentialProviderChain.defaultProviders=[];Lt.CredentialProviderChain.addPromisesToClass=s(function(e){this.prototype.resolvePromise=Lt.util.promisifyMethod("resolve",e)},"addPromisesToClass");Lt.CredentialProviderChain.deletePromisesFromClass=s(function(){delete this.prototype.resolvePromise},"deletePromisesFromClass");Lt.util.addPromises(Lt.CredentialProviderChain)});var ol=P(()=>{var Ne=V();Ca();Sa();var Ks;Ne.Config=Ne.util.inherit({constructor:s(function(e){e===void 0&&(e={}),e=this.extractCredentials(e),Ne.util.each.call(this,this.keys,function(r,i){this.set(r,e[r],i)})},"Config"),getCredentials:s(function(e){var r=this;function i(u){e(u,u?null:r.credentials)}s(i,"finish");function n(u,l){return new Ne.util.error(l||new Error,{code:"CredentialsError",message:u,name:"CredentialsError"})}s(n,"credError");function o(){r.credentials.get(function(u){if(u){var l="Could not load credentials from "+r.credentials.constructor.name;u=n(l,u)}i(u)})}s(o,"getAsyncCredentials");function a(){var u=null;(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(u=n("Missing credentials")),i(u)}s(a,"getStaticCredentials"),r.credentials?typeof r.credentials.get=="function"?o():a():r.credentialProvider?r.credentialProvider.resolve(function(u,l){u&&(u=n("Could not load credentials from any providers",u)),r.credentials=l,i(u)}):i(n("No credentials to load"))},"getCredentials"),getToken:s(function(e){var r=this;function i(u){e(u,u?null:r.token)}s(i,"finish");function n(u,l){return new Ne.util.error(l||new Error,{code:"TokenError",message:u,name:"TokenError"})}s(n,"tokenError");function o(){r.token.get(function(u){if(u){var l="Could not load token from "+r.token.constructor.name;u=n(l,u)}i(u)})}s(o,"getAsyncToken");function a(){var u=null;r.token.token||(u=n("Missing token")),i(u)}s(a,"getStaticToken"),r.token?typeof r.token.get=="function"?o():a():r.tokenProvider?r.tokenProvider.resolve(function(u,l){u&&(u=n("Could not load token from any providers",u)),r.token=l,i(u)}):i(n("No token to load"))},"getToken"),update:s(function(e,r){r=r||!1,e=this.extractCredentials(e),Ne.util.each.call(this,e,function(i,n){(r||Object.prototype.hasOwnProperty.call(this.keys,i)||Ne.Service.hasService(i))&&this.set(i,n)})},"update"),loadFromPath:s(function(e){this.clear();var r=JSON.parse(Ne.util.readFileSync(e)),i=new Ne.FileSystemCredentials(e),n=new Ne.CredentialProviderChain;return n.providers.unshift(i),n.resolve(function(o,a){if(o)throw o;r.credentials=a}),this.constructor(r),this},"loadFromPath"),clear:s(function(){Ne.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},"clear"),set:s(function(e,r,i){r===void 0?(i===void 0&&(i=this.keys[e]),typeof i=="function"?this[e]=i.call(this):this[e]=i):e==="httpOptions"&&this[e]?this[e]=Ne.util.merge(this[e],r):this[e]=r},"set"),keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:s(function(e){return e.accessKeyId&&e.secretAccessKey&&(e=Ne.util.copy(e),e.credentials=new Ne.Credentials(e)),e},"extractCredentials"),setPromisesDependency:s(function(e){Ks=e,e===null&&typeof Promise=="function"&&(Ks=Promise);var r=[Ne.Request,Ne.Credentials,Ne.CredentialProviderChain];Ne.S3&&(r.push(Ne.S3),Ne.S3.ManagedUpload&&r.push(Ne.S3.ManagedUpload)),Ne.util.addPromises(r,Ks)},"setPromisesDependency"),getPromisesDependency:s(function(){return Ks},"getPromisesDependency")});Ne.config=new Ne.Config});var Gs=P(()=>{var je=V(),Xs=je.util.inherit;je.Endpoint=Xs({constructor:s(function(e,r){if(je.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof e>"u"||e===null)throw new Error("Invalid endpoint: "+e);if(typeof e!="string")return je.util.copy(e);if(!e.match(/^http/)){var i=r&&r.sslEnabled!==void 0?r.sslEnabled:je.config.sslEnabled;e=(i?"https":"http")+"://"+e}je.util.update(this,je.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port=this.protocol==="https:"?443:80},"Endpoint")});je.HttpRequest=Xs({constructor:s(function(e,r){e=new je.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=r,this._userAgent="",this.setUserAgent()},"HttpRequest"),setUserAgent:s(function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=je.util.userAgent()},"setUserAgent"),getUserAgentHeaderName:s(function(){var e=je.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},"getUserAgentHeaderName"),appendToUserAgent:s(function(e){typeof e=="string"&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},"appendToUserAgent"),getUserAgent:s(function(){return this._userAgent},"getUserAgent"),pathname:s(function(){return this.path.split("?",1)[0]},"pathname"),search:s(function(){var e=this.path.split("?",2)[1];return e?(e=je.util.queryStringParse(e),je.util.queryParamsToString(e)):""},"search"),updateEndpoint:s(function(e){var r=new je.Endpoint(e);this.endpoint=r,this.path=r.path||"/",this.headers.Host&&(this.headers.Host=r.host)},"updateEndpoint")});je.HttpResponse=Xs({constructor:s(function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},"HttpResponse"),createUnbufferedStream:s(function(){return this.streaming=!0,this.stream},"createUnbufferedStream")});je.HttpClient=Xs({});je.HttpClient.getInstance=s(function(){return this.singleton===void 0&&(this.singleton=new this),this.singleton},"getInstance")});var pl=P((Jk,hl)=>{var Le=V(),vt=Oe(),al=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function Js(t){var e=t.service,r=e.api||{},i=r.operations,n={};return e.config.region&&(n.region=e.config.region),r.serviceId&&(n.serviceId=r.serviceId),e.config.credentials.accessKeyId&&(n.accessKeyId=e.config.credentials.accessKeyId),n}s(Js,"getCacheKey");function cl(t,e,r){!r||e===void 0||e===null||r.type==="structure"&&r.required&&r.required.length>0&&vt.arrayEach(r.required,function(i){var n=r.members[i];if(n.endpointDiscoveryId===!0){var o=n.isLocationName?n.name:i;t[o]=String(e[i])}else cl(t,e[i],n)})}s(cl,"marshallCustomIdentifiersHelper");function $s(t,e){var r={};return cl(r,t.params,e),r}s($s,"marshallCustomIdentifiers");function ll(t){var e=t.service,r=e.api,i=r.operations?r.operations[t.operation]:void 0,n=i?i.input:void 0,o=$s(t,n),a=Js(t);Object.keys(o).length>0&&(a=vt.update(a,o),i&&(a.operation=i.name));var u=Le.endpointCache.get(a);if(!(u&&u.length===1&&u[0].Address===""))if(u&&u.length>0)t.httpRequest.updateEndpoint(u[0].Address);else{var l=e.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:o});dl(l),l.removeListener("validate",Le.EventListeners.Core.VALIDATE_PARAMETERS),l.removeListener("retry",Le.EventListeners.Core.RETRY_CHECK),Le.endpointCache.put(a,[{Address:"",CachePeriodInMinutes:1}]),l.send(function(h,y){y&&y.Endpoints?Le.endpointCache.put(a,y.Endpoints):h&&Le.endpointCache.put(a,[{Address:"",CachePeriodInMinutes:1}])})}}s(ll,"optionalDiscoverEndpoint");var gr={};function fl(t,e){var r=t.service,i=r.api,n=i.operations?i.operations[t.operation]:void 0,o=n?n.input:void 0,a=$s(t,o),u=Js(t);Object.keys(a).length>0&&(u=vt.update(u,a),n&&(u.operation=n.name));var l=Le.EndpointCache.getKeyString(u),h=Le.endpointCache.get(l);if(h&&h.length===1&&h[0].Address===""){gr[l]||(gr[l]=[]),gr[l].push({request:t,callback:e});return}else if(h&&h.length>0)t.httpRequest.updateEndpoint(h[0].Address),e();else{var y=r.makeRequest(i.endpointOperation,{Operation:n.name,Identifiers:a});y.removeListener("validate",Le.EventListeners.Core.VALIDATE_PARAMETERS),dl(y),Le.endpointCache.put(l,[{Address:"",CachePeriodInMinutes:60}]),y.send(function(v,S){if(v){if(t.response.error=vt.error(v,{retryable:!1}),Le.endpointCache.remove(u),gr[l]){var O=gr[l];vt.arrayEach(O,function(g){g.request.response.error=vt.error(v,{retryable:!1}),g.callback()}),delete gr[l]}}else if(S&&(Le.endpointCache.put(l,S.Endpoints),t.httpRequest.updateEndpoint(S.Endpoints[0].Address),gr[l])){var O=gr[l];vt.arrayEach(O,function(N){N.request.httpRequest.updateEndpoint(S.Endpoints[0].Address),N.callback()}),delete gr[l]}e()})}}s(fl,"requiredDiscoverEndpoint");function dl(t){var e=t.service.api,r=e.apiVersion;r&&!t.httpRequest.headers["x-amz-api-version"]&&(t.httpRequest.headers["x-amz-api-version"]=r)}s(dl,"addApiVersionHeader");function Ta(t){var e=t.error,r=t.httpResponse;if(e&&(e.code==="InvalidEndpointException"||r.statusCode===421)){var i=t.request,n=i.service.api.operations||{},o=n[i.operation]?n[i.operation].input:void 0,a=$s(i,o),u=Js(i);Object.keys(a).length>0&&(u=vt.update(u,a),n[i.operation]&&(u.operation=n[i.operation].name)),Le.endpointCache.remove(u)}}s(Ta,"invalidateCachedEndpoints");function Dy(t){if(t._originalConfig&&t._originalConfig.endpoint&&t._originalConfig.endpointDiscoveryEnabled===!0)throw vt.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var e=Le.config[t.serviceIdentifier]||{};return Boolean(Le.config.endpoint||e.endpoint||t._originalConfig&&t._originalConfig.endpoint)}s(Dy,"hasCustomEndpoint");function ul(t){return["false","0"].indexOf(t)>=0}s(ul,"isFalsy");function Py(t){var e=t.service||{};if(e.config.endpointDiscoveryEnabled!==void 0)return e.config.endpointDiscoveryEnabled;if(!vt.isBrowser()){for(var r=0;r<al.length;r++){var i=al[r];if(Object.prototype.hasOwnProperty.call(process.env,i)){if(process.env[i]===""||process.env[i]===void 0)throw vt.error(new Error,{code:"ConfigurationException",message:"environmental variable "+i+" cannot be set to nothing"});return!ul(process.env[i])}}var n={};try{n=Le.util.iniLoader?Le.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[Le.util.sharedConfigFileEnv]}):{}}catch{}var o=n[process.env.AWS_PROFILE||Le.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(o,"endpoint_discovery_enabled")){if(o.endpoint_discovery_enabled===void 0)throw vt.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!ul(o.endpoint_discovery_enabled)}}}s(Py,"resolveEndpointDiscoveryConfig");function _y(t,e){var r=t.service||{};if(Dy(r)||t.isPresigned())return e();var i=r.api.operations||{},n=i[t.operation],o=n?n.endpointDiscoveryRequired:"NULL",a=Py(t),u=r.api.hasRequiredEndpointDiscovery;switch((a||u)&&t.httpRequest.appendToUserAgent("endpoint-discovery"),o){case"OPTIONAL":(a||u)&&(ll(t),t.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",Ta)),e();break;case"REQUIRED":if(a===!1){t.response.error=vt.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+t.operation+"() requires it. Please check your configurations."}),e();break}t.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",Ta),fl(t,e);break;case"NULL":default:e();break}}s(_y,"discoverEndpoint");hl.exports={discoverEndpoint:_y,requiredDiscoverEndpoint:fl,optionalDiscoverEndpoint:ll,marshallCustomIdentifiers:$s,getCacheKey:Js,invalidateCachedEndpoint:Ta}});var vl=P(()=>{var ee=V(),Ur=wa(),ky=pl().discoverEndpoint;ee.EventListeners={Core:{}};function yl(t){if(!t.service.api.operations)return"";var e=t.service.api.operations[t.operation];return e?e.authtype:""}s(yl,"getOperationAuthtype");function ml(t){var e=t.service;return e.config.signatureVersion?e.config.signatureVersion:e.api.signatureVersion?e.api.signatureVersion:yl(t)}s(ml,"getIdentityType");ee.EventListeners={Core:new Ur().addNamedListeners(function(t,e){e("VALIDATE_CREDENTIALS","validate",s(function(n,o){if(!n.service.api.signatureVersion&&!n.service.config.signatureVersion)return o();var a=ml(n);if(a==="bearer"){n.service.config.getToken(function(u){u&&(n.response.error=ee.util.error(u,{code:"TokenError"})),o()});return}n.service.config.getCredentials(function(u){u&&(n.response.error=ee.util.error(u,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),o()})},"VALIDATE_CREDENTIALS")),t("VALIDATE_REGION","validate",s(function(n){if(!n.service.isGlobalEndpoint){var o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);n.service.config.region?o.test(n.service.config.region)||(n.response.error=ee.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):n.response.error=ee.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}},"VALIDATE_REGION")),t("BUILD_IDEMPOTENCY_TOKENS","validate",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var a=o.idempotentMembers;if(a.length){for(var u=ee.util.copy(n.params),l=0,h=a.length;l<h;l++)u[a[l]]||(u[a[l]]=ee.util.uuid.v4());n.params=u}}}},"BUILD_IDEMPOTENCY_TOKENS")),t("VALIDATE_PARAMETERS","validate",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation].input,a=n.service.config.paramValidation;new ee.ParamValidator(a).validate(o,n.params)}},"VALIDATE_PARAMETERS")),t("COMPUTE_CHECKSUM","afterBuild",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var a=n.httpRequest.body,u=a&&(ee.util.Buffer.isBuffer(a)||typeof a=="string"),l=n.httpRequest.headers;if(o.httpChecksumRequired&&n.service.config.computeChecksums&&u&&!l["Content-MD5"]){var h=ee.util.crypto.md5(a,"base64");l["Content-MD5"]=h}}}},"COMPUTE_CHECKSUM")),e("COMPUTE_SHA256","afterBuild",s(function(n,o){if(n.haltHandlersOnError(),!!n.service.api.operations){var a=n.service.api.operations[n.operation],u=a?a.authtype:"";if(!n.service.api.signatureVersion&&!u&&!n.service.config.signatureVersion)return o();if(n.service.getSignerClass(n)===ee.Signers.V4){var l=n.httpRequest.body||"";if(u.indexOf("unsigned-body")>=0)return n.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",o();ee.util.computeSha256(l,function(h,y){h?o(h):(n.httpRequest.headers["X-Amz-Content-Sha256"]=y,o())})}else o()}},"COMPUTE_SHA256")),t("SET_CONTENT_LENGTH","afterBuild",s(function(n){var o=yl(n),a=ee.util.getRequestPayloadShape(n);if(n.httpRequest.headers["Content-Length"]===void 0)try{var u=ee.util.string.byteLength(n.httpRequest.body);n.httpRequest.headers["Content-Length"]=u}catch(l){if(a&&a.isStreaming){if(a.requiresLength)throw l;if(o.indexOf("unsigned-body")>=0){n.httpRequest.headers["Transfer-Encoding"]="chunked";return}else throw l}throw l}},"SET_CONTENT_LENGTH")),t("SET_HTTP_HOST","afterBuild",s(function(n){n.httpRequest.headers.Host=n.httpRequest.endpoint.host},"SET_HTTP_HOST")),t("SET_TRACE_ID","afterBuild",s(function(n){var o="X-Amzn-Trace-Id";if(ee.util.isNode()&&!Object.hasOwnProperty.call(n.httpRequest.headers,o)){var a="AWS_LAMBDA_FUNCTION_NAME",u="_X_AMZN_TRACE_ID",l=process.env[a],h=process.env[u];typeof l=="string"&&l.length>0&&typeof h=="string"&&h.length>0&&(n.httpRequest.headers[o]=h)}},"SET_TRACE_ID")),t("RESTART","restart",s(function(){var n=this.response.error;!n||!n.retryable||(this.httpRequest=new ee.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)},"RESTART"));var r=!0;e("DISCOVER_ENDPOINT","sign",ky,r),e("SIGN","sign",s(function(n,o){var a=n.service,u=ml(n);if(!u||u.length===0)return o();u==="bearer"?a.config.getToken(function(l,h){if(l)return n.response.error=l,o();try{var y=a.getSignerClass(n),v=new y(n.httpRequest);v.addAuthorization(h)}catch(S){n.response.error=S}o()}):a.config.getCredentials(function(l,h){if(l)return n.response.error=l,o();try{var y=a.getSkewCorrectedDate(),v=a.getSignerClass(n),S=n.service.api.operations||{},O=S[n.operation],g=new v(n.httpRequest,a.getSigningName(n),{signatureCache:a.config.signatureCache,operation:O,signatureVersion:a.api.signatureVersion});g.setServiceClientId(a._clientId),delete n.httpRequest.headers.Authorization,delete n.httpRequest.headers.Date,delete n.httpRequest.headers["X-Amz-Date"],g.addAuthorization(h,y),n.signedAt=y}catch(N){n.response.error=N}o()})},"SIGN")),t("VALIDATE_RESPONSE","validateResponse",s(function(n){this.service.successfulResponse(n,this)?(n.data={},n.error=null):(n.data=null,n.error=ee.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))},"VALIDATE_RESPONSE")),t("ERROR","error",s(function(n,o){var a=o.request.service.api.awsQueryCompatible;if(a){var u=o.httpResponse.headers,l=u?u["x-amzn-query-error"]:void 0;l&&l.includes(";")&&(o.error.code=l.split(";")[0])}},"ERROR"),!0),e("SEND","send",s(function(n,o){n.httpResponse._abortCallback=o,n.error=null,n.data=null;function a(v){n.httpResponse.stream=v;var S=n.request.httpRequest.stream,O=n.request.service,g=O.api,N=n.request.operation,D=g.operations[N]||{};v.on("headers",s(function(p,C,R){if(n.request.emit("httpHeaders",[p,C,n,R]),!n.httpResponse.streaming)if(ee.HttpClient.streamsApiVersion===2){if(D.hasEventOutput&&O.successfulResponse(n)){n.request.emit("httpDone"),o();return}v.on("readable",s(function(){var T=v.read();T!==null&&n.request.emit("httpData",[T,n])},"onReadable"))}else v.on("data",s(function(T){n.request.emit("httpData",[T,n])},"onData"))},"onHeaders")),v.on("end",s(function(){if(!S||!S.didCallback){if(ee.HttpClient.streamsApiVersion===2&&D.hasEventOutput&&O.successfulResponse(n))return;n.request.emit("httpDone"),o()}},"onEnd"))}s(a,"callback");function u(v){v.on("sendProgress",s(function(O){n.request.emit("httpUploadProgress",[O,n])},"onSendProgress")),v.on("receiveProgress",s(function(O){n.request.emit("httpDownloadProgress",[O,n])},"onReceiveProgress"))}s(u,"progress");function l(v){if(v.code!=="RequestAbortedError"){var S=v.code==="TimeoutError"?v.code:"NetworkingError";v=ee.util.error(v,{code:S,region:n.request.httpRequest.region,hostname:n.request.httpRequest.endpoint.hostname,retryable:!0})}n.error=v,n.request.emit("httpError",[n.error,n],function(){o()})}s(l,"error");function h(){var v=ee.HttpClient.getInstance(),S=n.request.service.config.httpOptions||{};try{var O=v.handleRequest(n.request.httpRequest,S,a,l);u(O)}catch(g){l(g)}}s(h,"executeSend");var y=(n.request.service.getSkewCorrectedDate()-this.signedAt)/1e3;y>=60*10?this.emit("sign",[this],function(v){v?o(v):h()}):h()},"SEND")),t("HTTP_HEADERS","httpHeaders",s(function(n,o,a,u){a.httpResponse.statusCode=n,a.httpResponse.statusMessage=u,a.httpResponse.headers=o,a.httpResponse.body=ee.util.buffer.toBuffer(""),a.httpResponse.buffers=[],a.httpResponse.numBytes=0;var l=o.date||o.Date,h=a.request.service;if(l){var y=Date.parse(l);h.config.correctClockSkew&&h.isClockSkewed(y)&&h.applyClockOffset(y)}},"HTTP_HEADERS")),t("HTTP_DATA","httpData",s(function(n,o){if(n){if(ee.util.isNode()){o.httpResponse.numBytes+=n.length;var a=o.httpResponse.headers["content-length"],u={loaded:o.httpResponse.numBytes,total:a};o.request.emit("httpDownloadProgress",[u,o])}o.httpResponse.buffers.push(ee.util.buffer.toBuffer(n))}},"HTTP_DATA")),t("HTTP_DONE","httpDone",s(function(n){if(n.httpResponse.buffers&&n.httpResponse.buffers.length>0){var o=ee.util.buffer.concat(n.httpResponse.buffers);n.httpResponse.body=o}delete n.httpResponse.numBytes,delete n.httpResponse.buffers},"HTTP_DONE")),t("FINALIZE_ERROR","retry",s(function(n){n.httpResponse.statusCode&&(n.error.statusCode=n.httpResponse.statusCode,n.error.retryable===void 0&&(n.error.retryable=this.service.retryableError(n.error,this)))},"FINALIZE_ERROR")),t("INVALIDATE_CREDENTIALS","retry",s(function(n){if(n.error)switch(n.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":n.error.retryable=!0,n.request.service.config.credentials.expired=!0}},"INVALIDATE_CREDENTIALS")),t("EXPIRED_SIGNATURE","retry",s(function(n){var o=n.error;o&&typeof o.code=="string"&&typeof o.message=="string"&&o.code.match(/Signature/)&&o.message.match(/expired/)&&(n.error.retryable=!0)},"EXPIRED_SIGNATURE")),t("CLOCK_SKEWED","retry",s(function(n){n.error&&this.service.clockSkewError(n.error)&&this.service.config.correctClockSkew&&(n.error.retryable=!0)},"CLOCK_SKEWED")),t("REDIRECT","retry",s(function(n){n.error&&n.error.statusCode>=300&&n.error.statusCode<400&&n.httpResponse.headers.location&&(this.httpRequest.endpoint=new ee.Endpoint(n.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,n.error.redirect=!0,n.error.retryable=!0)},"REDIRECT")),t("RETRY_CHECK","retry",s(function(n){n.error&&(n.error.redirect&&n.redirectCount<n.maxRedirects?n.error.retryDelay=0:n.retryCount<n.maxRetries&&(n.error.retryDelay=this.service.retryDelays(n.retryCount,n.error)||0))},"RETRY_CHECK")),e("RESET_RETRY_STATE","afterRetry",s(function(n,o){var a,u=!1;n.error&&(a=n.error.retryDelay||0,n.error.retryable&&n.retryCount<n.maxRetries?(n.retryCount++,u=!0):n.error.redirect&&n.redirectCount<n.maxRedirects&&(n.redirectCount++,u=!0)),u&&a>=0?(n.error=null,setTimeout(o,a)):o()},"RESET_RETRY_STATE"))}),CorePost:new Ur().addNamedListeners(function(t){t("EXTRACT_REQUEST_ID","extractData",ee.util.extractRequestId),t("EXTRACT_REQUEST_ID","extractError",ee.util.extractRequestId),t("ENOTFOUND_ERROR","httpError",s(function(r){function i(o){return o.errno==="ENOTFOUND"||typeof o.errno=="number"&&typeof ee.util.getSystemErrorName=="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(ee.util.getSystemErrorName(o.errno)>=0)}if(s(i,"isDNSError"),r.code==="NetworkingError"&&i(r)){var n="Inaccessible host: `"+r.hostname+"' at port `"+r.port+"'. This service may not be available in the `"+r.region+"' region.";this.response.error=ee.util.error(new Error(n),{code:"UnknownEndpoint",region:r.region,hostname:r.hostname,retryable:!0,originalError:r})}},"ENOTFOUND_ERROR"))}),Logger:new Ur().addNamedListeners(function(t){t("LOG_REQUEST","complete",s(function(r){var i=r.request,n=i.service.config.logger;if(!n)return;function o(l,h){if(!h)return h;if(l.isSensitive)return"***SensitiveInformation***";switch(l.type){case"structure":var y={};return ee.util.each(h,function(O,g){Object.prototype.hasOwnProperty.call(l.members,O)?y[O]=o(l.members[O],g):y[O]=g}),y;case"list":var v=[];return ee.util.arrayEach(h,function(O,g){v.push(o(l.member,O))}),v;case"map":var S={};return ee.util.each(h,function(O,g){S[O]=o(l.value,g)}),S;default:return h}}s(o,"filterSensitiveLog");function a(){var l=r.request.service.getSkewCorrectedDate().getTime(),h=(l-i.startTime.getTime())/1e3,y=!!n.isTTY,v=r.httpResponse.statusCode,S=i.params;if(i.service.api.operations&&i.service.api.operations[i.operation]&&i.service.api.operations[i.operation].input){var O=i.service.api.operations[i.operation].input;S=o(O,i.params)}var g=re("util").inspect(S,!0,null),N="";return y&&(N+="\x1B[33m"),N+="[AWS "+i.service.serviceIdentifier+" "+v,N+=" "+h.toString()+"s "+r.retryCount+" retries]",y&&(N+="\x1B[0;1m"),N+=" "+ee.util.string.lowerFirst(i.operation),N+="("+g+")",y&&(N+="\x1B[0m"),N}s(a,"buildMessage");var u=a();typeof n.log=="function"?n.log(u):typeof n.write=="function"&&n.write(u+`
|
|
1
|
+
var ap=Object.create;var ko=Object.defineProperty;var up=Object.getOwnPropertyDescriptor;var cp=Object.getOwnPropertyNames;var lp=Object.getPrototypeOf,fp=Object.prototype.hasOwnProperty;var s=(t,e)=>ko(t,"name",{value:e,configurable:!0}),re=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var dp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of cp(e))!fp.call(t,n)&&n!==r&&ko(t,n,{get:()=>e[n],enumerable:!(i=up(e,n))||i.enumerable});return t};var hp=(t,e,r)=>(r=t!=null?ap(lp(t)):{},dp(e||!t||!t.__esModule?ko(r,"default",{value:t,enumerable:!0}):r,t));var qs=P((q_,Zu)=>{var ra=Oe();function Qu(){}s(Qu,"JsonBuilder");Qu.prototype.build=function(t,e){return JSON.stringify(ks(t,e))};function ks(t,e){if(!(!e||t===void 0||t===null))switch(e.type){case"structure":return Jp(t,e);case"map":return Yp(t,e);case"list":return $p(t,e);default:return Qp(t,e)}}s(ks,"translate");function Jp(t,e){if(e.isDocument)return t;var r={};return ra.each(t,function(i,n){var o=e.members[i];if(o){if(o.location!=="body")return;var a=o.isLocationName?o.name:i,u=ks(n,o);u!==void 0&&(r[a]=u)}}),r}s(Jp,"translateStructure");function $p(t,e){var r=[];return ra.arrayEach(t,function(i){var n=ks(i,e.member);n!==void 0&&r.push(n)}),r}s($p,"translateList");function Yp(t,e){var r={};return ra.each(t,function(i,n){var o=ks(n,e.value);o!==void 0&&(r[i]=o)}),r}s(Yp,"translateMap");function Qp(t,e){return e.toWireFormat(t)}s(Qp,"translateScalar");Zu.exports=Qu});var Ms=P((M_,tc)=>{var ia=Oe();function ec(){}s(ec,"JsonParser");ec.prototype.parse=function(t,e){return Ls(JSON.parse(t),e)};function Ls(t,e){if(!(!e||t===void 0))switch(e.type){case"structure":return Zp(t,e);case"map":return tm(t,e);case"list":return em(t,e);default:return rm(t,e)}}s(Ls,"translate");function Zp(t,e){if(t!=null){if(e.isDocument)return t;var r={},i=e.members;return ia.each(i,function(n,o){var a=o.isLocationName?o.name:n;if(Object.prototype.hasOwnProperty.call(t,a)){var u=t[a],l=Ls(u,o);l!==void 0&&(r[n]=l)}}),r}}s(Zp,"translateStructure");function em(t,e){if(t!=null){var r=[];return ia.arrayEach(t,function(i){var n=Ls(i,e.member);n===void 0?r.push(null):r.push(n)}),r}}s(em,"translateList");function tm(t,e){if(t!=null){var r={};return ia.each(t,function(i,n){var o=Ls(n,e.value);o===void 0?r[i]=null:r[i]=o}),r}}s(tm,"translateMap");function rm(t,e){return e.toType(t)}s(rm,"translateScalar");tc.exports=ec});var Fs=P((W_,rc)=>{var Pn=Oe(),im=V();function nm(t){var e=t.service.config.hostPrefixEnabled;if(!e)return t;var r=t.service.api.operations[t.operation];if(sm(t))return t;if(r.endpoint&&r.endpoint.hostPrefix){var i=r.endpoint.hostPrefix,n=om(i,t.params,r.input);am(t.httpRequest.endpoint,n),um(t.httpRequest.endpoint.hostname)}return t}s(nm,"populateHostPrefix");function sm(t){var e=t.service.api,r=e.operations[t.operation],i=e.endpointOperation&&e.endpointOperation===Pn.string.lowerFirst(r.name);return r.endpointDiscoveryRequired!=="NULL"||i===!0}s(sm,"hasEndpointDiscover");function om(t,e,r){return Pn.each(r.members,function(i,n){if(n.hostLabel===!0){if(typeof e[i]!="string"||e[i]==="")throw Pn.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+i+"\\}","g");t=t.replace(o,e[i])}}),t}s(om,"expandHostPrefix");function am(t,e){t.host&&(t.host=e+t.host),t.hostname&&(t.hostname=e+t.hostname)}s(am,"prependEndpointPrefix");function um(t){var e=t.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;Pn.arrayEach(e,function(i){if(!i.length||i.length<1||i.length>63)throw Pn.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(i))throw im.util.error(new Error,{code:"ValidationError",message:i+" is not hostname compatible."})})}s(um,"validateHostname");rc.exports={populateHostPrefix:nm}});var Ws=P((U_,ic)=>{var cm=Oe(),lm=qs(),fm=Ms(),dm=Fs().populateHostPrefix;function hm(t){var e=t.httpRequest,r=t.service.api,i=r.targetPrefix+"."+r.operations[t.operation].name,n=r.jsonVersion||"1.0",o=r.operations[t.operation].input,a=new lm;n===1&&(n="1.0"),e.body=a.build(t.params||{},o),e.headers["Content-Type"]="application/x-amz-json-"+n,e.headers["X-Amz-Target"]=i,dm(t)}s(hm,"buildRequest");function pm(t){var e={},r=t.httpResponse;if(e.code=r.headers["x-amzn-errortype"]||"UnknownError",typeof e.code=="string"&&(e.code=e.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),n=i.__type||i.code||i.Code;n&&(e.code=n.split("#").pop()),e.code==="RequestEntityTooLarge"?e.message="Request body must be less than 1 MB":e.message=i.message||i.Message||null}catch{e.statusCode=r.statusCode,e.message=r.statusMessage}else e.statusCode=r.statusCode,e.message=r.statusCode.toString();t.error=cm.error(new Error,e)}s(pm,"extractError");function mm(t){var e=t.httpResponse.body.toString()||"{}";if(t.request.service.config.convertResponseTypes===!1)t.data=JSON.parse(e);else{var r=t.request.service.api.operations[t.request.operation],i=r.output||{},n=new fm;t.data=n.parse(e,i)}}s(mm,"extractData");ic.exports={buildRequest:hm,extractError:pm,extractData:mm}});var uc=P((z_,ac)=>{var na=Oe();function nc(){}s(nc,"QueryParamSerializer");nc.prototype.serialize=function(t,e,r){oc("",t,e,r)};function sc(t){return t.isQueryName||t.api.protocol!=="ec2"?t.name:t.name[0].toUpperCase()+t.name.substr(1)}s(sc,"ucfirst");function oc(t,e,r,i){na.each(r.members,function(n,o){var a=e[n];if(a!=null){var u=sc(o);u=t?t+"."+u:u,Bs(u,a,o,i)}})}s(oc,"serializeStructure");function ym(t,e,r,i){var n=1;na.each(e,function(o,a){var u=r.flattened?".":".entry.",l=u+n+++".",h=l+(r.key.name||"key"),y=l+(r.value.name||"value");Bs(t+h,o,r.key,i),Bs(t+y,a,r.value,i)})}s(ym,"serializeMap");function vm(t,e,r,i){var n=r.member||{};if(e.length===0){i.call(this,t,null);return}na.arrayEach(e,function(o,a){var u="."+(a+1);if(r.api.protocol==="ec2")u=u+"";else if(r.flattened){if(n.name){var l=t.split(".");l.pop(),l.push(sc(n)),t=l.join(".")}}else u="."+(n.name?n.name:"member")+u;Bs(t+u,o,n,i)})}s(vm,"serializeList");function Bs(t,e,r,i){e!=null&&(r.type==="structure"?oc(t,e,r,i):r.type==="list"?vm(t,e,r,i):r.type==="map"?ym(t,e,r,i):i(t,r.toWireFormat(e).toString()))}s(Bs,"serializeMember");ac.exports=nc});var sa=P((j_,cc)=>{var gm=Oe().memoizedProperty;function Nm(t,e,r,i){gm(this,i(t),function(){return r(t,e)})}s(Nm,"memoize");function wm(t,e,r,i,n){i=i||String;var o=this;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(Nm.call(o,a,t[a],r,i),n&&n(a,t[a]))}s(wm,"Collection");cc.exports=wm});var _n=P((X_,vc)=>{var xm=sa(),yr=Oe();function j(t,e,r){r!=null&&yr.property.apply(this,arguments)}s(j,"property");function ui(t,e){t.constructor.prototype[e]||yr.memoizedProperty.apply(this,arguments)}s(ui,"memoizedProperty");function ve(t,e,r){e=e||{},j(this,"shape",t.shape),j(this,"api",e.api,!1),j(this,"type",t.type),j(this,"enum",t.enum),j(this,"min",t.min),j(this,"max",t.max),j(this,"pattern",t.pattern),j(this,"location",t.location||this.location||"body"),j(this,"name",this.name||t.xmlName||t.queryName||t.locationName||r),j(this,"isStreaming",t.streaming||this.isStreaming||!1),j(this,"requiresLength",t.requiresLength,!1),j(this,"isComposite",t.isComposite||!1),j(this,"isShape",!0,!1),j(this,"isQueryName",Boolean(t.queryName),!1),j(this,"isLocationName",Boolean(t.locationName),!1),j(this,"isIdempotent",t.idempotencyToken===!0),j(this,"isJsonValue",t.jsonvalue===!0),j(this,"isSensitive",t.sensitive===!0||t.prototype&&t.prototype.sensitive===!0),j(this,"isEventStream",Boolean(t.eventstream),!1),j(this,"isEvent",Boolean(t.event),!1),j(this,"isEventPayload",Boolean(t.eventpayload),!1),j(this,"isEventHeader",Boolean(t.eventheader),!1),j(this,"isTimestampFormatSet",Boolean(t.timestampFormat)||t.prototype&&t.prototype.isTimestampFormatSet===!0,!1),j(this,"endpointDiscoveryId",Boolean(t.endpointdiscoveryid),!1),j(this,"hostLabel",Boolean(t.hostLabel),!1),e.documentation&&(j(this,"documentation",t.documentation),j(this,"documentationUrl",t.documentationUrl)),t.xmlAttribute&&j(this,"isXmlAttribute",t.xmlAttribute||!1),j(this,"defaultValue",null),this.toWireFormat=function(i){return i??""},this.toType=function(i){return i}}s(ve,"Shape");ve.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};ve.types={structure:lc,list:fc,map:dc,boolean:yc,timestamp:Em,float:Cm,integer:Sm,string:hc,base64:mc,binary:pc};ve.resolve=s(function(e,r){if(e.shape){var i=r.api.shapes[e.shape];if(!i)throw new Error("Cannot find shape reference: "+e.shape);return i}else return null},"resolve");ve.create=s(function(e,r,i){if(e.isShape)return e;var n=ve.resolve(e,r);if(n){var o=Object.keys(e);r.documentation||(o=o.filter(function(l){return!l.match(/documentation/)}));var a=s(function(){n.constructor.call(this,e,r,i)},"InlineShape");return a.prototype=n,new a}else{e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var u=e.type;if(ve.normalizedTypes[e.type]&&(e.type=ve.normalizedTypes[e.type]),ve.types[e.type])return new ve.types[e.type](e,r,i);throw new Error("Unrecognized shape type: "+u)}},"create");function oa(t){ve.apply(this,arguments),j(this,"isComposite",!0),t.flattened&&j(this,"flattened",t.flattened||!1)}s(oa,"CompositeShape");function lc(t,e){var r=this,i=null,n=!this.isShape;oa.apply(this,arguments),n&&(j(this,"defaultValue",function(){return{}}),j(this,"members",{}),j(this,"memberNames",[]),j(this,"required",[]),j(this,"isRequired",function(){return!1}),j(this,"isDocument",Boolean(t.document))),t.members&&(j(this,"members",new xm(t.members,e,function(o,a){return ve.create(a,e,o)})),ui(this,"memberNames",function(){return t.xmlOrder||Object.keys(t.members)}),t.event&&(ui(this,"eventPayloadMemberName",function(){for(var o=r.members,a=r.memberNames,u=0,l=a.length;u<l;u++)if(o[a[u]].isEventPayload)return a[u]}),ui(this,"eventHeaderMemberNames",function(){for(var o=r.members,a=r.memberNames,u=[],l=0,h=a.length;l<h;l++)o[a[l]].isEventHeader&&u.push(a[l]);return u}))),t.required&&(j(this,"required",t.required),j(this,"isRequired",function(o){if(!i){i={};for(var a=0;a<t.required.length;a++)i[t.required[a]]=!0}return i[o]},!1,!0)),j(this,"resultWrapper",t.resultWrapper||null),t.payload&&j(this,"payload",t.payload),typeof t.xmlNamespace=="string"?j(this,"xmlNamespaceUri",t.xmlNamespace):typeof t.xmlNamespace=="object"&&(j(this,"xmlNamespacePrefix",t.xmlNamespace.prefix),j(this,"xmlNamespaceUri",t.xmlNamespace.uri))}s(lc,"StructureShape");function fc(t,e){var r=this,i=!this.isShape;if(oa.apply(this,arguments),i&&j(this,"defaultValue",function(){return[]}),t.member&&ui(this,"member",function(){return ve.create(t.member,e)}),this.flattened){var n=this.name;ui(this,"name",function(){return r.member.name||n})}}s(fc,"ListShape");function dc(t,e){var r=!this.isShape;oa.apply(this,arguments),r&&(j(this,"defaultValue",function(){return{}}),j(this,"key",ve.create({type:"string"},e)),j(this,"value",ve.create({type:"string"},e))),t.key&&ui(this,"key",function(){return ve.create(t.key,e)}),t.value&&ui(this,"value",function(){return ve.create(t.value,e)})}s(dc,"MapShape");function Em(t){var e=this;if(ve.apply(this,arguments),t.timestampFormat)j(this,"timestampFormat",t.timestampFormat);else if(e.isTimestampFormatSet&&this.timestampFormat)j(this,"timestampFormat",this.timestampFormat);else if(this.location==="header")j(this,"timestampFormat","rfc822");else if(this.location==="querystring")j(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":j(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":j(this,"timestampFormat","iso8601");break}this.toType=function(r){return r==null?null:typeof r.toUTCString=="function"?r:typeof r=="string"||typeof r=="number"?yr.date.parseTimestamp(r):null},this.toWireFormat=function(r){return yr.date.format(r,e.timestampFormat)}}s(Em,"TimestampShape");function hc(){ve.apply(this,arguments);var t=["rest-xml","query","ec2"];this.toType=function(e){return e=this.api&&t.indexOf(this.api.protocol)>-1?e||"":e,this.isJsonValue?JSON.parse(e):e&&typeof e.toString=="function"?e.toString():e},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}s(hc,"StringShape");function Cm(){ve.apply(this,arguments),this.toType=function(t){return t==null?null:parseFloat(t)},this.toWireFormat=this.toType}s(Cm,"FloatShape");function Sm(){ve.apply(this,arguments),this.toType=function(t){return t==null?null:parseInt(t,10)},this.toWireFormat=this.toType}s(Sm,"IntegerShape");function pc(){ve.apply(this,arguments),this.toType=function(t){var e=yr.base64.decode(t);if(this.isSensitive&&yr.isNode()&&typeof yr.Buffer.alloc=="function"){var r=yr.Buffer.alloc(e.length,e);e.fill(0),e=r}return e},this.toWireFormat=yr.base64.encode}s(pc,"BinaryShape");function mc(){pc.apply(this,arguments)}s(mc,"Base64Shape");function yc(){ve.apply(this,arguments),this.toType=function(t){return typeof t=="boolean"?t:t==null?null:t==="true"}}s(yc,"BooleanShape");ve.shapes={StructureShape:lc,ListShape:fc,MapShape:dc,StringShape:hc,BooleanShape:yc,Base64Shape:mc};vc.exports=ve});var aa=P((J_,wc)=>{var Nc=V(),kn=Oe(),Tm=uc(),gc=_n(),bm=Fs().populateHostPrefix;function Am(t){var e=t.service.api.operations[t.operation],r=t.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:t.service.api.apiVersion,Action:e.name};var i=new Tm;i.serialize(t.params,e.input,function(n,o){r.params[n]=o}),r.body=kn.queryParamsToString(r.params),bm(t)}s(Am,"buildRequest");function Im(t){var e,r=t.httpResponse.body.toString();if(r.match("<UnknownOperationException"))e={Code:"UnknownOperation",Message:"Unknown operation "+t.request.operation};else try{e=new Nc.XML.Parser().parse(r)}catch{e={Code:t.httpResponse.statusCode,Message:t.httpResponse.statusMessage}}e.requestId&&!t.requestId&&(t.requestId=e.requestId),e.Errors&&(e=e.Errors),e.Error&&(e=e.Error),e.Code?t.error=kn.error(new Error,{code:e.Code,message:e.Message}):t.error=kn.error(new Error,{code:t.httpResponse.statusCode,message:null})}s(Im,"extractError");function Om(t){var e=t.request,r=e.service.api.operations[e.operation],i=r.output||{},n=i;if(n.resultWrapper){var o=gc.create({type:"structure"});o.members[n.resultWrapper]=i,o.memberNames=[n.resultWrapper],kn.property(i,"name",i.resultWrapper),i=o}var a=new Nc.XML.Parser;if(i&&i.members&&!i.members._XAMZRequestId){var u=gc.create({type:"string"},{api:{protocol:"query"}},"requestId");i.members._XAMZRequestId=u}var l=a.parse(t.httpResponse.body.toString(),i);t.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,n.resultWrapper&&l[n.resultWrapper]&&(kn.update(l,l[n.resultWrapper]),delete l[n.resultWrapper]),t.data=l}s(Om,"extractData");wc.exports={buildRequest:Am,extractError:Im,extractData:Om}});var qn=P((Y_,Ec)=>{var He=Oe(),Rm=Fs().populateHostPrefix;function Dm(t){t.httpRequest.method=t.service.api.operations[t.operation].httpMethod}s(Dm,"populateMethod");function xc(t,e,r,i){var n=[t,e].join("/");n=n.replace(/\/+/g,"/");var o={},a=!1;if(He.each(r.members,function(l,h){var y=i[l];if(y!=null)if(h.location==="uri"){var v=new RegExp("\\{"+h.name+"(\\+)?\\}");n=n.replace(v,function(S,O){var g=O?He.uriEscapePath:He.uriEscape;return g(String(y))})}else h.location==="querystring"&&(a=!0,h.type==="list"?o[h.name]=y.map(function(S){return He.uriEscape(h.member.toWireFormat(S).toString())}):h.type==="map"?He.each(y,function(S,O){Array.isArray(O)?o[S]=O.map(function(g){return He.uriEscape(String(g))}):o[S]=He.uriEscape(String(O))}):o[h.name]=He.uriEscape(h.toWireFormat(y).toString()))}),a){n+=n.indexOf("?")>=0?"&":"?";var u=[];He.arrayEach(Object.keys(o).sort(),function(l){Array.isArray(o[l])||(o[l]=[o[l]]);for(var h=0;h<o[l].length;h++)u.push(He.uriEscape(String(l))+"="+o[l][h])}),n+=u.join("&")}return n}s(xc,"generateURI");function Pm(t){var e=t.service.api.operations[t.operation],r=e.input,i=xc(t.httpRequest.endpoint.path,e.httpPath,r,t.params);t.httpRequest.path=i}s(Pm,"populateURI");function _m(t){var e=t.service.api.operations[t.operation];He.each(e.input.members,function(r,i){var n=t.params[r];n!=null&&(i.location==="headers"&&i.type==="map"?He.each(n,function(o,a){t.httpRequest.headers[i.name+o]=a}):i.location==="header"&&(n=i.toWireFormat(n).toString(),i.isJsonValue&&(n=He.base64.encode(n)),t.httpRequest.headers[i.name]=n))})}s(_m,"populateHeaders");function km(t){Dm(t),Pm(t),_m(t),Rm(t)}s(km,"buildRequest");function qm(){}s(qm,"extractError");function Lm(t){var e=t.request,r={},i=t.httpResponse,n=e.service.api.operations[e.operation],o=n.output,a={};He.each(i.headers,function(u,l){a[u.toLowerCase()]=l}),He.each(o.members,function(u,l){var h=(l.name||u).toLowerCase();if(l.location==="headers"&&l.type==="map"){r[u]={};var y=l.isLocationName?l.name:"",v=new RegExp("^"+y+"(.+)","i");He.each(i.headers,function(O,g){var N=O.match(v);N!==null&&(r[u][N[1]]=g)})}else if(l.location==="header"){if(a[h]!==void 0){var S=l.isJsonValue?He.base64.decode(a[h]):a[h];r[u]=l.toType(S)}}else l.location==="statusCode"&&(r[u]=parseInt(i.statusCode,10))}),t.data=r}s(Lm,"extractData");Ec.exports={buildRequest:km,extractError:qm,extractData:Lm,generateURI:xc}});var la=P((Z_,Ac)=>{var ca=Oe(),Sc=qn(),Tc=Ws(),Mm=qs(),Cc=Ms(),bc=["GET","HEAD","DELETE"];function Fm(t){var e=ca.getRequestPayloadShape(t);e===void 0&&bc.indexOf(t.httpRequest.method)>=0&&delete t.httpRequest.headers["Content-Length"]}s(Fm,"unsetContentLength");function Wm(t){var e=new Mm,r=t.service.api.operations[t.operation].input;if(r.payload){var i={},n=r.members[r.payload];i=t.params[r.payload],n.type==="structure"?(t.httpRequest.body=e.build(i||{},n),ua(t)):i!==void 0&&(t.httpRequest.body=i,(n.type==="binary"||n.isStreaming)&&ua(t,!0))}else t.httpRequest.body=e.build(t.params,r),ua(t)}s(Wm,"populateBody");function ua(t,e){if(!t.httpRequest.headers["Content-Type"]){var r=e?"binary/octet-stream":"application/json";t.httpRequest.headers["Content-Type"]=r}}s(ua,"applyContentTypeHeader");function Bm(t){Sc.buildRequest(t),bc.indexOf(t.httpRequest.method)<0&&Wm(t)}s(Bm,"buildRequest");function Um(t){Tc.extractError(t)}s(Um,"extractError");function Vm(t){Sc.extractData(t);var e=t.request,r=e.service.api.operations[e.operation],i=e.service.api.operations[e.operation].output||{},n,o=r.hasEventOutput;if(i.payload){var a=i.members[i.payload],u=t.httpResponse.body;if(a.isEventStream)n=new Cc,t.data[payload]=ca.createEventStream(AWS.HttpClient.streamsApiVersion===2?t.httpResponse.stream:u,n,a);else if(a.type==="structure"||a.type==="list"){var n=new Cc;t.data[i.payload]=n.parse(u,a)}else a.type==="binary"||a.isStreaming?t.data[i.payload]=u:t.data[i.payload]=a.toType(u)}else{var l=t.data;Tc.extractData(t),t.data=ca.merge(l,t.data)}}s(Vm,"extractData");Ac.exports={buildRequest:Bm,extractError:Um,extractData:Vm,unsetContentLength:Fm}});var da=P((tk,Ic)=>{var Vi=V(),Ln=Oe(),fa=qn();function zm(t){var e=t.service.api.operations[t.operation].input,r=new Vi.XML.Builder,i=t.params,n=e.payload;if(n){var o=e.members[n];if(i=i[n],i===void 0)return;if(o.type==="structure"){var a=o.name;t.httpRequest.body=r.toXML(i,o,a,!0)}else t.httpRequest.body=i}else t.httpRequest.body=r.toXML(i,e,e.name||e.shape||Ln.string.upperFirst(t.operation)+"Request")}s(zm,"populateBody");function Hm(t){fa.buildRequest(t),["GET","HEAD"].indexOf(t.httpRequest.method)<0&&zm(t)}s(Hm,"buildRequest");function jm(t){fa.extractError(t);var e;try{e=new Vi.XML.Parser().parse(t.httpResponse.body.toString())}catch{e={Code:t.httpResponse.statusCode,Message:t.httpResponse.statusMessage}}e.Errors&&(e=e.Errors),e.Error&&(e=e.Error),e.Code?t.error=Ln.error(new Error,{code:e.Code,message:e.Message}):t.error=Ln.error(new Error,{code:t.httpResponse.statusCode,message:null})}s(jm,"extractError");function Km(t){fa.extractData(t);var e,r=t.request,i=t.httpResponse.body,n=r.service.api.operations[r.operation],o=n.output,a=n.hasEventOutput,u=o.payload;if(u){var l=o.members[u];l.isEventStream?(e=new Vi.XML.Parser,t.data[u]=Ln.createEventStream(Vi.HttpClient.streamsApiVersion===2?t.httpResponse.stream:t.httpResponse.body,e,l)):l.type==="structure"?(e=new Vi.XML.Parser,t.data[u]=e.parse(i.toString(),l)):l.type==="binary"||l.isStreaming?t.data[u]=i:t.data[u]=l.toType(i)}else if(i.length>0){e=new Vi.XML.Parser;var h=e.parse(i.toString(),o);Ln.update(t.data,h)}}s(Km,"extractData");Ic.exports={buildRequest:Hm,extractError:jm,extractData:Km}});var Rc=P((ik,Oc)=>{function Xm(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}s(Xm,"escapeAttribute");Oc.exports={escapeAttribute:Xm}});var Pc=P((sk,Dc)=>{var Gm=Rc().escapeAttribute;function Mn(t,e){e===void 0&&(e=[]),this.name=t,this.children=e,this.attributes={}}s(Mn,"XmlNode");Mn.prototype.addAttribute=function(t,e){return this.attributes[t]=e,this};Mn.prototype.addChildNode=function(t){return this.children.push(t),this};Mn.prototype.removeAttribute=function(t){return delete this.attributes[t],this};Mn.prototype.toString=function(){for(var t=Boolean(this.children.length),e="<"+this.name,r=this.attributes,i=0,n=Object.keys(r);i<n.length;i++){var o=n[i],a=r[o];typeof a<"u"&&a!==null&&(e+=" "+o+'="'+Gm(""+a)+'"')}return e+=t?">"+this.children.map(function(u){return u.toString()}).join("")+"</"+this.name+">":"/>"};Dc.exports={XmlNode:Mn}});var kc=P((ak,_c)=>{function Jm(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}s(Jm,"escapeElement");_c.exports={escapeElement:Jm}});var Mc=P((ck,Lc)=>{var $m=kc().escapeElement;function qc(t){this.value=t}s(qc,"XmlText");qc.prototype.toString=function(){return $m(""+this.value)};Lc.exports={XmlText:qc}});var Uc=P((fk,Bc)=>{var Us=Oe(),ci=Pc().XmlNode,Ym=Mc().XmlText;function Fc(){}s(Fc,"XmlBuilder");Fc.prototype.toXML=function(t,e,r,i){var n=new ci(r);return Wc(n,e,!0),li(n,t,e),n.children.length>0||i?n.toString():""};function li(t,e,r){switch(r.type){case"structure":return Qm(t,e,r);case"map":return Zm(t,e,r);case"list":return ey(t,e,r);default:return ty(t,e,r)}}s(li,"serialize");function Qm(t,e,r){Us.arrayEach(r.memberNames,function(i){var n=r.members[i];if(n.location==="body"){var o=e[i],a=n.name;if(o!=null)if(n.isXmlAttribute)t.addAttribute(a,o);else if(n.flattened)li(t,o,n);else{var u=new ci(a);t.addChildNode(u),Wc(u,n),li(u,o,n)}}})}s(Qm,"serializeStructure");function Zm(t,e,r){var i=r.key.name||"key",n=r.value.name||"value";Us.each(e,function(o,a){var u=new ci(r.flattened?r.name:"entry");t.addChildNode(u);var l=new ci(i),h=new ci(n);u.addChildNode(l),u.addChildNode(h),li(l,o,r.key),li(h,a,r.value)})}s(Zm,"serializeMap");function ey(t,e,r){r.flattened?Us.arrayEach(e,function(i){var n=r.member.name||r.name,o=new ci(n);t.addChildNode(o),li(o,i,r.member)}):Us.arrayEach(e,function(i){var n=r.member.name||"member",o=new ci(n);t.addChildNode(o),li(o,i,r.member)})}s(ey,"serializeList");function ty(t,e,r){t.addChildNode(new Ym(r.toWireFormat(e)))}s(ty,"serializeScalar");function Wc(t,e,r){var i,n="xmlns";e.xmlNamespaceUri?(i=e.xmlNamespaceUri,e.xmlNamespacePrefix&&(n+=":"+e.xmlNamespacePrefix)):r&&e.api.xmlNamespaceUri&&(i=e.api.xmlNamespaceUri),i&&t.addAttribute(n,i)}s(Wc,"applyNamespaces");Bc.exports=Fc});var ha=P((hk,zc)=>{var Fn=_n(),Vc=Oe(),Jt=Vc.property,zi=Vc.memoizedProperty;function ry(t,e,r){var i=this;r=r||{},Jt(this,"name",e.name||t),Jt(this,"api",r.api,!1),e.http=e.http||{},Jt(this,"endpoint",e.endpoint),Jt(this,"httpMethod",e.http.method||"POST"),Jt(this,"httpPath",e.http.requestUri||"/"),Jt(this,"authtype",e.authtype||""),Jt(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var n=e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired;Jt(this,"httpChecksumRequired",n,!1),zi(this,"input",function(){return e.input?Fn.create(e.input,r):new Fn.create({type:"structure"},r)}),zi(this,"output",function(){return e.output?Fn.create(e.output,r):new Fn.create({type:"structure"},r)}),zi(this,"errors",function(){var o=[];if(!e.errors)return null;for(var a=0;a<e.errors.length;a++)o.push(Fn.create(e.errors[a],r));return o}),zi(this,"paginator",function(){return r.api.paginators[t]}),r.documentation&&(Jt(this,"documentation",e.documentation),Jt(this,"documentationUrl",e.documentationUrl)),zi(this,"idempotentMembers",function(){var o=[],a=i.input,u=a.members;if(!a.members)return o;for(var l in u)u.hasOwnProperty(l)&&u[l].isIdempotent===!0&&o.push(l);return o}),zi(this,"hasEventOutput",function(){var o=i.output;return iy(o)})}s(ry,"Operation");function iy(t){var e=t.members,r=t.payload;if(!t.members)return!1;if(r){var i=e[r];return i.isEventStream}for(var n in e)if(!e.hasOwnProperty(n)&&e[n].isEventStream===!0)return!0;return!1}s(iy,"hasEventStream");zc.exports=ry});var pa=P((mk,Hc)=>{var Wn=Oe().property;function ny(t,e){Wn(this,"inputToken",e.input_token),Wn(this,"limitKey",e.limit_key),Wn(this,"moreResults",e.more_results),Wn(this,"outputToken",e.output_token),Wn(this,"resultKey",e.result_key)}s(ny,"Paginator");Hc.exports=ny});var ma=P((vk,Kc)=>{var jc=Oe(),Vs=jc.property;function sy(t,e,r){r=r||{},Vs(this,"name",t),Vs(this,"api",r.api,!1),e.operation&&Vs(this,"operation",jc.string.lowerFirst(e.operation));var i=this,n=["type","description","delay","maxAttempts","acceptors"];n.forEach(function(o){var a=e[o];a&&Vs(i,o,a)})}s(sy,"ResourceWaiter");Kc.exports=sy});var ya=P((Nk,oy)=>{oy.exports={acm:{name:"ACM",cors:!0},apigateway:{name:"APIGateway",cors:!0},applicationautoscaling:{prefix:"application-autoscaling",name:"ApplicationAutoScaling",cors:!0},appstream:{name:"AppStream"},autoscaling:{name:"AutoScaling",cors:!0},batch:{name:"Batch"},budgets:{name:"Budgets"},clouddirectory:{name:"CloudDirectory",versions:["2016-05-10*"]},cloudformation:{name:"CloudFormation",cors:!0},cloudfront:{name:"CloudFront",versions:["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],cors:!0},cloudhsm:{name:"CloudHSM",cors:!0},cloudsearch:{name:"CloudSearch"},cloudsearchdomain:{name:"CloudSearchDomain"},cloudtrail:{name:"CloudTrail",cors:!0},cloudwatch:{prefix:"monitoring",name:"CloudWatch",cors:!0},cloudwatchevents:{prefix:"events",name:"CloudWatchEvents",versions:["2014-02-03*"],cors:!0},cloudwatchlogs:{prefix:"logs",name:"CloudWatchLogs",cors:!0},codebuild:{name:"CodeBuild",cors:!0},codecommit:{name:"CodeCommit",cors:!0},codedeploy:{name:"CodeDeploy",cors:!0},codepipeline:{name:"CodePipeline",cors:!0},cognitoidentity:{prefix:"cognito-identity",name:"CognitoIdentity",cors:!0},cognitoidentityserviceprovider:{prefix:"cognito-idp",name:"CognitoIdentityServiceProvider",cors:!0},cognitosync:{prefix:"cognito-sync",name:"CognitoSync",cors:!0},configservice:{prefix:"config",name:"ConfigService",cors:!0},cur:{name:"CUR",cors:!0},datapipeline:{name:"DataPipeline"},devicefarm:{name:"DeviceFarm",cors:!0},directconnect:{name:"DirectConnect",cors:!0},directoryservice:{prefix:"ds",name:"DirectoryService"},discovery:{name:"Discovery"},dms:{name:"DMS"},dynamodb:{name:"DynamoDB",cors:!0},dynamodbstreams:{prefix:"streams.dynamodb",name:"DynamoDBStreams",cors:!0},ec2:{name:"EC2",versions:["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],cors:!0},ecr:{name:"ECR",cors:!0},ecs:{name:"ECS",cors:!0},efs:{prefix:"elasticfilesystem",name:"EFS",cors:!0},elasticache:{name:"ElastiCache",versions:["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],cors:!0},elasticbeanstalk:{name:"ElasticBeanstalk",cors:!0},elb:{prefix:"elasticloadbalancing",name:"ELB",cors:!0},elbv2:{prefix:"elasticloadbalancingv2",name:"ELBv2",cors:!0},emr:{prefix:"elasticmapreduce",name:"EMR",cors:!0},es:{name:"ES"},elastictranscoder:{name:"ElasticTranscoder",cors:!0},firehose:{name:"Firehose",cors:!0},gamelift:{name:"GameLift",cors:!0},glacier:{name:"Glacier"},health:{name:"Health"},iam:{name:"IAM",cors:!0},importexport:{name:"ImportExport"},inspector:{name:"Inspector",versions:["2015-08-18*"],cors:!0},iot:{name:"Iot",cors:!0},iotdata:{prefix:"iot-data",name:"IotData",cors:!0},kinesis:{name:"Kinesis",cors:!0},kinesisanalytics:{name:"KinesisAnalytics"},kms:{name:"KMS",cors:!0},lambda:{name:"Lambda",cors:!0},lexruntime:{prefix:"runtime.lex",name:"LexRuntime",cors:!0},lightsail:{name:"Lightsail"},machinelearning:{name:"MachineLearning",cors:!0},marketplacecommerceanalytics:{name:"MarketplaceCommerceAnalytics",cors:!0},marketplacemetering:{prefix:"meteringmarketplace",name:"MarketplaceMetering"},mturk:{prefix:"mturk-requester",name:"MTurk",cors:!0},mobileanalytics:{name:"MobileAnalytics",cors:!0},opsworks:{name:"OpsWorks",cors:!0},opsworkscm:{name:"OpsWorksCM"},organizations:{name:"Organizations"},pinpoint:{name:"Pinpoint"},polly:{name:"Polly",cors:!0},rds:{name:"RDS",versions:["2014-09-01*"],cors:!0},redshift:{name:"Redshift",cors:!0},rekognition:{name:"Rekognition",cors:!0},resourcegroupstaggingapi:{name:"ResourceGroupsTaggingAPI"},route53:{name:"Route53",cors:!0},route53domains:{name:"Route53Domains",cors:!0},s3:{name:"S3",dualstackAvailable:!0,cors:!0},s3control:{name:"S3Control",dualstackAvailable:!0,xmlNoDefaultLists:!0},servicecatalog:{name:"ServiceCatalog",cors:!0},ses:{prefix:"email",name:"SES",cors:!0},shield:{name:"Shield"},simpledb:{prefix:"sdb",name:"SimpleDB"},sms:{name:"SMS"},snowball:{name:"Snowball"},sns:{name:"SNS",cors:!0},sqs:{name:"SQS",cors:!0},ssm:{name:"SSM",cors:!0},storagegateway:{name:"StorageGateway",cors:!0},stepfunctions:{prefix:"states",name:"StepFunctions"},sts:{name:"STS",cors:!0},support:{name:"Support"},swf:{name:"SWF"},xray:{name:"XRay",cors:!0},waf:{name:"WAF",cors:!0},wafregional:{prefix:"waf-regional",name:"WAFRegional"},workdocs:{name:"WorkDocs",cors:!0},workspaces:{name:"WorkSpaces"},codestar:{name:"CodeStar"},lexmodelbuildingservice:{prefix:"lex-models",name:"LexModelBuildingService",cors:!0},marketplaceentitlementservice:{prefix:"entitlement.marketplace",name:"MarketplaceEntitlementService"},athena:{name:"Athena",cors:!0},greengrass:{name:"Greengrass"},dax:{name:"DAX"},migrationhub:{prefix:"AWSMigrationHub",name:"MigrationHub"},cloudhsmv2:{name:"CloudHSMV2",cors:!0},glue:{name:"Glue"},mobile:{name:"Mobile"},pricing:{name:"Pricing",cors:!0},costexplorer:{prefix:"ce",name:"CostExplorer",cors:!0},mediaconvert:{name:"MediaConvert"},medialive:{name:"MediaLive"},mediapackage:{name:"MediaPackage"},mediastore:{name:"MediaStore"},mediastoredata:{prefix:"mediastore-data",name:"MediaStoreData",cors:!0},appsync:{name:"AppSync"},guardduty:{name:"GuardDuty"},mq:{name:"MQ"},comprehend:{name:"Comprehend",cors:!0},iotjobsdataplane:{prefix:"iot-jobs-data",name:"IoTJobsDataPlane"},kinesisvideoarchivedmedia:{prefix:"kinesis-video-archived-media",name:"KinesisVideoArchivedMedia",cors:!0},kinesisvideomedia:{prefix:"kinesis-video-media",name:"KinesisVideoMedia",cors:!0},kinesisvideo:{name:"KinesisVideo",cors:!0},sagemakerruntime:{prefix:"runtime.sagemaker",name:"SageMakerRuntime"},sagemaker:{name:"SageMaker"},translate:{name:"Translate",cors:!0},resourcegroups:{prefix:"resource-groups",name:"ResourceGroups",cors:!0},alexaforbusiness:{name:"AlexaForBusiness"},cloud9:{name:"Cloud9"},serverlessapplicationrepository:{prefix:"serverlessrepo",name:"ServerlessApplicationRepository"},servicediscovery:{name:"ServiceDiscovery"},workmail:{name:"WorkMail"},autoscalingplans:{prefix:"autoscaling-plans",name:"AutoScalingPlans"},transcribeservice:{prefix:"transcribe",name:"TranscribeService"},connect:{name:"Connect",cors:!0},acmpca:{prefix:"acm-pca",name:"ACMPCA"},fms:{name:"FMS"},secretsmanager:{name:"SecretsManager",cors:!0},iotanalytics:{name:"IoTAnalytics",cors:!0},iot1clickdevicesservice:{prefix:"iot1click-devices",name:"IoT1ClickDevicesService"},iot1clickprojects:{prefix:"iot1click-projects",name:"IoT1ClickProjects"},pi:{name:"PI"},neptune:{name:"Neptune"},mediatailor:{name:"MediaTailor"},eks:{name:"EKS"},macie:{name:"Macie"},dlm:{name:"DLM"},signer:{name:"Signer"},chime:{name:"Chime"},pinpointemail:{prefix:"pinpoint-email",name:"PinpointEmail"},ram:{name:"RAM"},route53resolver:{name:"Route53Resolver"},pinpointsmsvoice:{prefix:"sms-voice",name:"PinpointSMSVoice"},quicksight:{name:"QuickSight"},rdsdataservice:{prefix:"rds-data",name:"RDSDataService"},amplify:{name:"Amplify"},datasync:{name:"DataSync"},robomaker:{name:"RoboMaker"},transfer:{name:"Transfer"},globalaccelerator:{name:"GlobalAccelerator"},comprehendmedical:{name:"ComprehendMedical",cors:!0},kinesisanalyticsv2:{name:"KinesisAnalyticsV2"},mediaconnect:{name:"MediaConnect"},fsx:{name:"FSx"},securityhub:{name:"SecurityHub"},appmesh:{name:"AppMesh",versions:["2018-10-01*"]},licensemanager:{prefix:"license-manager",name:"LicenseManager"},kafka:{name:"Kafka"},apigatewaymanagementapi:{name:"ApiGatewayManagementApi"},apigatewayv2:{name:"ApiGatewayV2"},docdb:{name:"DocDB"},backup:{name:"Backup"},worklink:{name:"WorkLink"},textract:{name:"Textract"},managedblockchain:{name:"ManagedBlockchain"},mediapackagevod:{prefix:"mediapackage-vod",name:"MediaPackageVod"},groundstation:{name:"GroundStation"},iotthingsgraph:{name:"IoTThingsGraph"},iotevents:{name:"IoTEvents"},ioteventsdata:{prefix:"iotevents-data",name:"IoTEventsData"},personalize:{name:"Personalize",cors:!0},personalizeevents:{prefix:"personalize-events",name:"PersonalizeEvents",cors:!0},personalizeruntime:{prefix:"personalize-runtime",name:"PersonalizeRuntime",cors:!0},applicationinsights:{prefix:"application-insights",name:"ApplicationInsights"},servicequotas:{prefix:"service-quotas",name:"ServiceQuotas"},ec2instanceconnect:{prefix:"ec2-instance-connect",name:"EC2InstanceConnect"},eventbridge:{name:"EventBridge"},lakeformation:{name:"LakeFormation"},forecastservice:{prefix:"forecast",name:"ForecastService",cors:!0},forecastqueryservice:{prefix:"forecastquery",name:"ForecastQueryService",cors:!0},qldb:{name:"QLDB"},qldbsession:{prefix:"qldb-session",name:"QLDBSession"},workmailmessageflow:{name:"WorkMailMessageFlow"},codestarnotifications:{prefix:"codestar-notifications",name:"CodeStarNotifications"},savingsplans:{name:"SavingsPlans"},sso:{name:"SSO"},ssooidc:{prefix:"sso-oidc",name:"SSOOIDC"},marketplacecatalog:{prefix:"marketplace-catalog",name:"MarketplaceCatalog",cors:!0},dataexchange:{name:"DataExchange"},sesv2:{name:"SESV2"},migrationhubconfig:{prefix:"migrationhub-config",name:"MigrationHubConfig"},connectparticipant:{name:"ConnectParticipant"},appconfig:{name:"AppConfig"},iotsecuretunneling:{name:"IoTSecureTunneling"},wafv2:{name:"WAFV2"},elasticinference:{prefix:"elastic-inference",name:"ElasticInference"},imagebuilder:{name:"Imagebuilder"},schemas:{name:"Schemas"},accessanalyzer:{name:"AccessAnalyzer"},codegurureviewer:{prefix:"codeguru-reviewer",name:"CodeGuruReviewer"},codeguruprofiler:{name:"CodeGuruProfiler"},computeoptimizer:{prefix:"compute-optimizer",name:"ComputeOptimizer"},frauddetector:{name:"FraudDetector"},kendra:{name:"Kendra"},networkmanager:{name:"NetworkManager"},outposts:{name:"Outposts"},augmentedairuntime:{prefix:"sagemaker-a2i-runtime",name:"AugmentedAIRuntime"},ebs:{name:"EBS"},kinesisvideosignalingchannels:{prefix:"kinesis-video-signaling",name:"KinesisVideoSignalingChannels",cors:!0},detective:{name:"Detective"},codestarconnections:{prefix:"codestar-connections",name:"CodeStarconnections"},synthetics:{name:"Synthetics"},iotsitewise:{name:"IoTSiteWise"},macie2:{name:"Macie2"},codeartifact:{name:"CodeArtifact"},honeycode:{name:"Honeycode"},ivs:{name:"IVS"},braket:{name:"Braket"},identitystore:{name:"IdentityStore"},appflow:{name:"Appflow"},redshiftdata:{prefix:"redshift-data",name:"RedshiftData"},ssoadmin:{prefix:"sso-admin",name:"SSOAdmin"},timestreamquery:{prefix:"timestream-query",name:"TimestreamQuery"},timestreamwrite:{prefix:"timestream-write",name:"TimestreamWrite"},s3outposts:{name:"S3Outposts"},databrew:{name:"DataBrew"},servicecatalogappregistry:{prefix:"servicecatalog-appregistry",name:"ServiceCatalogAppRegistry"},networkfirewall:{prefix:"network-firewall",name:"NetworkFirewall"},mwaa:{name:"MWAA"},amplifybackend:{name:"AmplifyBackend"},appintegrations:{name:"AppIntegrations"},connectcontactlens:{prefix:"connect-contact-lens",name:"ConnectContactLens"},devopsguru:{prefix:"devops-guru",name:"DevOpsGuru"},ecrpublic:{prefix:"ecr-public",name:"ECRPUBLIC"},lookoutvision:{name:"LookoutVision"},sagemakerfeaturestoreruntime:{prefix:"sagemaker-featurestore-runtime",name:"SageMakerFeatureStoreRuntime"},customerprofiles:{prefix:"customer-profiles",name:"CustomerProfiles"},auditmanager:{name:"AuditManager"},emrcontainers:{prefix:"emr-containers",name:"EMRcontainers"},healthlake:{name:"HealthLake"},sagemakeredge:{prefix:"sagemaker-edge",name:"SagemakerEdge"},amp:{name:"Amp"},greengrassv2:{name:"GreengrassV2"},iotdeviceadvisor:{name:"IotDeviceAdvisor"},iotfleethub:{name:"IoTFleetHub"},iotwireless:{name:"IoTWireless"},location:{name:"Location",cors:!0},wellarchitected:{name:"WellArchitected"},lexmodelsv2:{prefix:"models.lex.v2",name:"LexModelsV2"},lexruntimev2:{prefix:"runtime.lex.v2",name:"LexRuntimeV2",cors:!0},fis:{name:"Fis"},lookoutmetrics:{name:"LookoutMetrics"},mgn:{name:"Mgn"},lookoutequipment:{name:"LookoutEquipment"},nimble:{name:"Nimble"},finspace:{name:"Finspace"},finspacedata:{prefix:"finspace-data",name:"Finspacedata"},ssmcontacts:{prefix:"ssm-contacts",name:"SSMContacts"},ssmincidents:{prefix:"ssm-incidents",name:"SSMIncidents"},applicationcostprofiler:{name:"ApplicationCostProfiler"},apprunner:{name:"AppRunner"},proton:{name:"Proton"},route53recoverycluster:{prefix:"route53-recovery-cluster",name:"Route53RecoveryCluster"},route53recoverycontrolconfig:{prefix:"route53-recovery-control-config",name:"Route53RecoveryControlConfig"},route53recoveryreadiness:{prefix:"route53-recovery-readiness",name:"Route53RecoveryReadiness"},chimesdkidentity:{prefix:"chime-sdk-identity",name:"ChimeSDKIdentity"},chimesdkmessaging:{prefix:"chime-sdk-messaging",name:"ChimeSDKMessaging"},snowdevicemanagement:{prefix:"snow-device-management",name:"SnowDeviceManagement"},memorydb:{name:"MemoryDB"},opensearch:{name:"OpenSearch"},kafkaconnect:{name:"KafkaConnect"},voiceid:{prefix:"voice-id",name:"VoiceID"},wisdom:{name:"Wisdom"},account:{name:"Account"},cloudcontrol:{name:"CloudControl"},grafana:{name:"Grafana"},panorama:{name:"Panorama"},chimesdkmeetings:{prefix:"chime-sdk-meetings",name:"ChimeSDKMeetings"},resiliencehub:{name:"Resiliencehub"},migrationhubstrategy:{name:"MigrationHubStrategy"},appconfigdata:{name:"AppConfigData"},drs:{name:"Drs"},migrationhubrefactorspaces:{prefix:"migration-hub-refactor-spaces",name:"MigrationHubRefactorSpaces"},evidently:{name:"Evidently"},inspector2:{name:"Inspector2"},rbin:{name:"Rbin"},rum:{name:"RUM"},backupgateway:{prefix:"backup-gateway",name:"BackupGateway"},iottwinmaker:{name:"IoTTwinMaker"},workspacesweb:{prefix:"workspaces-web",name:"WorkSpacesWeb"},amplifyuibuilder:{name:"AmplifyUIBuilder"},keyspaces:{name:"Keyspaces"},billingconductor:{name:"Billingconductor"},gamesparks:{name:"GameSparks"},pinpointsmsvoicev2:{prefix:"pinpoint-sms-voice-v2",name:"PinpointSMSVoiceV2"},ivschat:{name:"Ivschat"},chimesdkmediapipelines:{prefix:"chime-sdk-media-pipelines",name:"ChimeSDKMediaPipelines"},emrserverless:{prefix:"emr-serverless",name:"EMRServerless"},m2:{name:"M2"},connectcampaigns:{name:"ConnectCampaigns"},redshiftserverless:{prefix:"redshift-serverless",name:"RedshiftServerless"},rolesanywhere:{name:"RolesAnywhere"},licensemanagerusersubscriptions:{prefix:"license-manager-user-subscriptions",name:"LicenseManagerUserSubscriptions"},backupstorage:{name:"BackupStorage"},privatenetworks:{name:"PrivateNetworks"},supportapp:{prefix:"support-app",name:"SupportApp"},controltower:{name:"ControlTower"},iotfleetwise:{name:"IoTFleetWise"},migrationhuborchestrator:{name:"MigrationHubOrchestrator"},connectcases:{name:"ConnectCases"},resourceexplorer2:{prefix:"resource-explorer-2",name:"ResourceExplorer2"},scheduler:{name:"Scheduler"},chimesdkvoice:{prefix:"chime-sdk-voice",name:"ChimeSDKVoice"},iotroborunner:{prefix:"iot-roborunner",name:"IoTRoboRunner"},ssmsap:{prefix:"ssm-sap",name:"SsmSap"},oam:{name:"OAM"},arczonalshift:{prefix:"arc-zonal-shift",name:"ARCZonalShift"},omics:{name:"Omics"},opensearchserverless:{name:"OpenSearchServerless"},securitylake:{name:"SecurityLake"},simspaceweaver:{name:"SimSpaceWeaver"},docdbelastic:{prefix:"docdb-elastic",name:"DocDBElastic"},sagemakergeospatial:{prefix:"sagemaker-geospatial",name:"SageMakerGeospatial"},codecatalyst:{name:"CodeCatalyst"},pipes:{name:"Pipes"},sagemakermetrics:{prefix:"sagemaker-metrics",name:"SageMakerMetrics"},kinesisvideowebrtcstorage:{prefix:"kinesis-video-webrtc-storage",name:"KinesisVideoWebRTCStorage"},licensemanagerlinuxsubscriptions:{prefix:"license-manager-linux-subscriptions",name:"LicenseManagerLinuxSubscriptions"},kendraranking:{prefix:"kendra-ranking",name:"KendraRanking"},cleanrooms:{name:"CleanRooms"},cloudtraildata:{prefix:"cloudtrail-data",name:"CloudTrailData"},tnb:{name:"Tnb"},internetmonitor:{name:"InternetMonitor"}}});var va=P((wk,Gc)=>{var zs=sa(),ay=ha(),uy=_n(),cy=pa(),ly=ma(),Xc=ya(),Bn=Oe(),ge=Bn.property,fy=Bn.memoizedProperty;function dy(t,e){var r=this;t=t||{},e=e||{},e.api=this,t.metadata=t.metadata||{};var i=e.serviceIdentifier;delete e.serviceIdentifier,ge(this,"isApi",!0,!1),ge(this,"apiVersion",t.metadata.apiVersion),ge(this,"endpointPrefix",t.metadata.endpointPrefix),ge(this,"signingName",t.metadata.signingName),ge(this,"globalEndpoint",t.metadata.globalEndpoint),ge(this,"signatureVersion",t.metadata.signatureVersion),ge(this,"jsonVersion",t.metadata.jsonVersion),ge(this,"targetPrefix",t.metadata.targetPrefix),ge(this,"protocol",t.metadata.protocol),ge(this,"timestampFormat",t.metadata.timestampFormat),ge(this,"xmlNamespaceUri",t.metadata.xmlNamespace),ge(this,"abbreviation",t.metadata.serviceAbbreviation),ge(this,"fullName",t.metadata.serviceFullName),ge(this,"serviceId",t.metadata.serviceId),i&&Xc[i]&&ge(this,"xmlNoDefaultLists",Xc[i].xmlNoDefaultLists,!1),fy(this,"className",function(){var o=t.metadata.serviceAbbreviation||t.metadata.serviceFullName;return o?(o=o.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),o==="ElasticLoadBalancing"&&(o="ELB"),o):null});function n(o,a){a.endpointoperation===!0&&ge(r,"endpointOperation",Bn.string.lowerFirst(o)),a.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&ge(r,"hasRequiredEndpointDiscovery",a.endpointdiscovery.required===!0)}s(n,"addEndpointOperation"),ge(this,"operations",new zs(t.operations,e,function(o,a){return new ay(o,a,e)},Bn.string.lowerFirst,n)),ge(this,"shapes",new zs(t.shapes,e,function(o,a){return uy.create(a,e)})),ge(this,"paginators",new zs(t.paginators,e,function(o,a){return new cy(o,a,e)})),ge(this,"waiters",new zs(t.waiters,e,function(o,a){return new ly(o,a,e)},Bn.string.lowerFirst)),e.documentation&&(ge(this,"documentation",t.documentation),ge(this,"documentationUrl",t.documentationUrl)),ge(this,"awsQueryCompatible",t.metadata.awsQueryCompatible)}s(dy,"Api");Gc.exports=dy});var $c=P((Ek,Jc)=>{function Hs(t,e){if(!Hs.services.hasOwnProperty(t))throw new Error("InvalidService: Failed to load api for "+t);return Hs.services[t][e]}s(Hs,"apiLoader");Hs.services={};Jc.exports=Hs});var Yc=P(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var hy=function(){function t(e,r){this.key=e,this.value=r}return s(t,"LinkedListNode"),t}(),py=function(){function t(e){if(this.nodeMap={},this.size=0,typeof e!="number"||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return s(t,"LRUCache"),Object.defineProperty(t.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),t.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},t.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,r=e.prev;return r&&(r.next=void 0),e.prev=void 0,this.tailNode=r,this.size--,e}},t.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},t.prototype.get=function(e){if(this.nodeMap[e]){var r=this.nodeMap[e];return this.detachFromList(r),this.prependToList(r),r.value}},t.prototype.remove=function(e){if(this.nodeMap[e]){var r=this.nodeMap[e];this.detachFromList(r),delete this.nodeMap[e]}},t.prototype.put=function(e,r){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var i=this.removeFromTail(),n=i.key;delete this.nodeMap[n]}var o=new hy(e,r);this.nodeMap[e]=o,this.prependToList(o)},t.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),r=0;r<e.length;r++){var i=e[r],n=this.nodeMap[i];this.detachFromList(n),delete this.nodeMap[i]}},t}();ga.LRUCache=py});var Qc=P(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var my=Yc(),yy=1e3,vy=function(){function t(e){e===void 0&&(e=yy),this.maxSize=e,this.cache=new my.LRUCache(e)}return s(t,"EndpointCache"),Object.defineProperty(t.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),t.prototype.put=function(e,r){var i=typeof e!="string"?t.getKeyString(e):e,n=this.populateValue(r);this.cache.put(i,n)},t.prototype.get=function(e){var r=typeof e!="string"?t.getKeyString(e):e,i=Date.now(),n=this.cache.get(r);if(n){for(var o=n.length-1;o>=0;o--){var a=n[o];a.Expire<i&&n.splice(o,1)}if(n.length===0){this.cache.remove(r);return}}return n},t.getKeyString=function(e){for(var r=[],i=Object.keys(e).sort(),n=0;n<i.length;n++){var o=i[n];e[o]!==void 0&&r.push(e[o])}return r.join(" ")},t.prototype.populateValue=function(e){var r=Date.now();return e.map(function(i){return{Address:i.Address||"",Expire:r+(i.CachePeriodInMinutes||1)*60*1e3}})},t.prototype.empty=function(){this.cache.empty()},t.prototype.remove=function(e){var r=typeof e!="string"?t.getKeyString(e):e;this.cache.remove(r)},t}();Na.EndpointCache=vy});var wa=P((Ik,Zc)=>{var vr=V();vr.SequentialExecutor=vr.util.inherit({constructor:s(function(){this._events={}},"SequentialExecutor"),listeners:s(function(e){return this._events[e]?this._events[e].slice(0):[]},"listeners"),on:s(function(e,r,i){return this._events[e]?i?this._events[e].unshift(r):this._events[e].push(r):this._events[e]=[r],this},"on"),onAsync:s(function(e,r,i){return r._isAsync=!0,this.on(e,r,i)},"onAsync"),removeListener:s(function(e,r){var i=this._events[e];if(i){for(var n=i.length,o=-1,a=0;a<n;++a)i[a]===r&&(o=a);o>-1&&i.splice(o,1)}return this},"removeListener"),removeAllListeners:s(function(e){return e?delete this._events[e]:this._events={},this},"removeAllListeners"),emit:s(function(e,r,i){i||(i=s(function(){},"doneCallback"));var n=this.listeners(e),o=n.length;return this.callListeners(n,r,i),o>0},"emit"),callListeners:s(function(e,r,i,n){var o=this,a=n||null;function u(h){if(h&&(a=vr.util.error(a||new Error,h),o._haltHandlersOnError))return i.call(o,a);o.callListeners(e,r,i,a)}for(s(u,"callNextListener");e.length>0;){var l=e.shift();if(l._isAsync){l.apply(o,r.concat([u]));return}else{try{l.apply(o,r)}catch(h){a=vr.util.error(a||new Error,h)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},"callListeners"),addListeners:s(function(e){var r=this;return e._events&&(e=e._events),vr.util.each(e,function(i,n){typeof n=="function"&&(n=[n]),vr.util.arrayEach(n,function(o){r.on(i,o)})}),r},"addListeners"),addNamedListener:s(function(e,r,i,n){return this[e]=i,this.addListener(r,i,n),this},"addNamedListener"),addNamedAsyncListener:s(function(e,r,i,n){return i._isAsync=!0,this.addNamedListener(e,r,i,n)},"addNamedAsyncListener"),addNamedListeners:s(function(e){var r=this;return e(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this},"addNamedListeners")});vr.SequentialExecutor.prototype.addListener=vr.SequentialExecutor.prototype.on;Zc.exports=vr.SequentialExecutor});var el=P((Rk,gy)=>{gy.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":"globalSSL","cn-*/route53":{endpoint:"{service}.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{endpoint:"{service}.c2s.ic.gov",globalEndpoint:!0,signingRegion:"us-iso-east-1"},"us-isob-*/route53":{endpoint:"{service}.sc2s.sgov.gov",globalEndpoint:!0,signingRegion:"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{endpoint:"{service}.cn-north-1.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},fipsRules:{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{endpoint:"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{endpoint:"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{endpoint:"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{endpoint:"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{endpoint:"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{endpoint:"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},dualstackRules:{"*/*":{endpoint:"{service}.{region}.api.aws"},"cn-*/*":{endpoint:"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},dualstackFipsRules:{"*/*":{endpoint:"{service}-fips.{region}.api.aws"},"cn-*/*":{endpoint:"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0,signingRegion:"us-east-1"},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com",globalEndpoint:!0,signingRegion:"us-gov-west-1"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"},usIso:{endpoint:"{service}.{region}.c2s.ic.gov"},usIsob:{endpoint:"{service}.{region}.sc2s.sgov.gov"},fipsStandard:{endpoint:"{service}-fips.{region}.amazonaws.com"},fipsDotPrefix:{endpoint:"fips.{service}.{region}.amazonaws.com"},fipsWithoutRegion:{endpoint:"{service}-fips.amazonaws.com"},"fips.api.ecr":{endpoint:"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{endpoint:"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{endpoint:"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{endpoint:"runtime-fips.lex.{region}.amazonaws.com"},fipsWithServiceOnly:{endpoint:"{service}.{region}.amazonaws.com"},dualstackLegacy:{endpoint:"{service}.dualstack.{region}.amazonaws.com"},dualstackLegacyCn:{endpoint:"{service}.dualstack.{region}.amazonaws.com.cn"},dualstackFipsLegacy:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com"},dualstackFipsLegacyCn:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com.cn"},dualstackLegacyEc2:{endpoint:"api.ec2.{region}.aws"},dualstackByDefault:{endpoint:"{service}.{region}.api.aws"},fipsDualstackByDefault:{endpoint:"{service}-fips.{region}.api.aws"},globalDualstackByDefault:{endpoint:"{service}.global.api.aws"},fipsGlobalDualstackByDefault:{endpoint:"{service}-fips.global.api.aws"}}}});var rl=P((Dk,tl)=>{var Ny=Oe(),Un=el();function wy(t){if(!t)return null;var e=t.split("-");return e.length<3?null:e.slice(0,e.length-2).join("-")+"-*"}s(wy,"generateRegionPrefix");function xy(t){var e=t.config.region,r=wy(e),i=t.api.endpointPrefix;return[[e,i],[r,i],[e,"*"],[r,"*"],["*",i],["*","*"]].map(function(n){return n[0]&&n[1]?n.join("/"):null})}s(xy,"derivedKeys");function Ey(t,e){Ny.each(e,function(r,i){r!=="globalEndpoint"&&(t.config[r]===void 0||t.config[r]===null)&&(t.config[r]=i)})}s(Ey,"applyConfig");function Cy(t){for(var e=xy(t),r=t.config.useFipsEndpoint,i=t.config.useDualstackEndpoint,n=0;n<e.length;n++){var o=e[n];if(o){var a=r?i?Un.dualstackFipsRules:Un.fipsRules:i?Un.dualstackRules:Un.rules;if(Object.prototype.hasOwnProperty.call(a,o)){var u=a[o];typeof u=="string"&&(u=Un.patterns[u]),t.isGlobalEndpoint=!!u.globalEndpoint,u.signingRegion&&(t.signingRegion=u.signingRegion),u.signatureVersion||(u.signatureVersion="v4");var l=(t.api&&t.api.signatureVersion)==="bearer";Ey(t,Object.assign({},u,{signatureVersion:l?"bearer":u.signatureVersion}));return}}}}s(Cy,"configureEndpoint");function Sy(t){for(var e={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r="amazonaws.com",i=Object.keys(e),n=0;n<i.length;n++){var o=RegExp(i[n]),a=e[i[n]];if(o.test(t))return a}return r}s(Sy,"getEndpointSuffix");tl.exports={configureEndpoint:Cy,getEndpointSuffix:Sy}});var xa=P((_k,il)=>{function Ty(t){return typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))}s(Ty,"isFipsRegion");function by(t){return typeof t=="string"&&["aws-global","aws-us-gov-global"].includes(t)}s(by,"isGlobalRegion");function Ay(t){return["fips-aws-global","aws-fips","aws-global"].includes(t)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(t)?"us-gov-west-1":t.replace(/fips-(dkr-|prod-)?|-fips/,"")}s(Ay,"getRealRegion");il.exports={isFipsRegion:Ty,isGlobalRegion:by,getRealRegion:Ay}});var sl=P((qk,nl)=>{var U=V(),Iy=va(),Oy=rl(),Ea=U.util.inherit,Ry=0,js=xa();U.Service=Ea({constructor:s(function(e){if(!this.loadServiceClass)throw U.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var r=e.region;js.isFipsRegion(r)&&(e.region=js.getRealRegion(r),e.useFipsEndpoint=!0),js.isGlobalRegion(r)&&(e.region=js.getRealRegion(r))}typeof e.useDualstack=="boolean"&&typeof e.useDualstackEndpoint!="boolean"&&(e.useDualstackEndpoint=e.useDualstack)}var i=this.loadServiceClass(e||{});if(i){var n=U.util.copy(e),o=new i(e);return Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:!1,configurable:!0}),o._clientId=++Ry,o}this.initialize(e)},"Service"),initialize:s(function(e){var r=U.config[this.serviceIdentifier];if(this.config=new U.Config(U.config),r&&this.config.update(r,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||Oy.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),U.SequentialExecutor.call(this),U.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||U.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",s(function(o){process.nextTick(function(){i.eventHandler(o)})},"PUBLISH_API_CALL")),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",s(function(o){process.nextTick(function(){i.eventHandler(o)})},"PUBLISH_API_ATTEMPT"))}},"initialize"),validateService:s(function(){},"validateService"),loadServiceClass:s(function(e){var r=e;if(U.util.isEmpty(this.api)){if(r.apiConfig)return U.Service.defineServiceApi(this.constructor,r.apiConfig);if(this.constructor.services){r=new U.Config(U.config),r.update(e,!0);var i=r.apiVersions[this.constructor.serviceIdentifier];return i=i||r.apiVersion,this.getLatestServiceClass(i)}else return null}else return null},"loadServiceClass"),getLatestServiceClass:s(function(e){return e=this.getLatestServiceVersion(e),this.constructor.services[e]===null&&U.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},"getLatestServiceClass"),getLatestServiceVersion:s(function(e){if(!this.constructor.services||this.constructor.services.length===0)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?U.util.isType(e,Date)&&(e=U.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var r=Object.keys(this.constructor.services).sort(),i=null,n=r.length-1;n>=0;n--)if(r[n][r[n].length-1]!=="*"&&(i=r[n]),r[n].substr(0,10)<=e)return i;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},"getLatestServiceVersion"),api:{},defaultRetryCount:3,customizeRequests:s(function(e){if(!e)this.customRequestHandler=null;else if(typeof e=="function")this.customRequestHandler=e;else throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")},"customizeRequests"),makeRequest:s(function(e,r,i){if(typeof r=="function"&&(i=r,r=null),r=r||{},this.config.params){var n=this.api.operations[e];n&&(r=U.util.copy(r),U.util.each(this.config.params,function(a,u){n.input.members[a]&&(r[a]===void 0||r[a]===null)&&(r[a]=u)}))}var o=new U.Request(this,e,r);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),i&&o.send(i),o},"makeRequest"),makeUnauthenticatedRequest:s(function(e,r,i){typeof r=="function"&&(i=r,r={});var n=this.makeRequest(e,r).toUnauthenticated();return i?n.send(i):n},"makeUnauthenticatedRequest"),waitFor:s(function(e,r,i){var n=new U.ResourceWaiter(this,e);return n.wait(r,i)},"waitFor"),addAllRequestListeners:s(function(e){for(var r=[U.events,U.EventListeners.Core,this.serviceInterface(),U.EventListeners.CorePost],i=0;i<r.length;i++)r[i]&&e.addListeners(r[i]);this.config.paramValidation||e.removeListener("validate",U.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(U.EventListeners.Logger),this.setupRequestListeners(e),typeof this.constructor.prototype.customRequestHandler=="function"&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&typeof this.customRequestHandler=="function"&&this.customRequestHandler(e)},"addAllRequestListeners"),apiCallEvent:s(function(e){var r=e.service.api.operations[e.operation],i={Type:"ApiCall",Api:r?r.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(i.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var o=n.error,a=n.httpResponse.statusCode;a>299?(o.code&&(i.FinalAwsException=o.code),o.message&&(i.FinalAwsExceptionMessage=o.message)):((o.code||o.name)&&(i.FinalSdkException=o.code||o.name),o.message&&(i.FinalSdkExceptionMessage=o.message))}return i},"apiCallEvent"),apiAttemptEvent:s(function(e){var r=e.service.api.operations[e.operation],i={Type:"ApiCallAttempt",Api:r?r.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(i.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(i.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(i.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(i.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(i.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(i.XAmzId2=n.httpResponse.headers["x-amz-id-2"])),i},"apiAttemptEvent"),attemptFailEvent:s(function(e){var r=this.apiAttemptEvent(e),i=e.response,n=i.error;return i.httpResponse.statusCode>299?(n.code&&(r.AwsException=n.code),n.message&&(r.AwsExceptionMessage=n.message)):((n.code||n.name)&&(r.SdkException=n.code||n.name),n.message&&(r.SdkExceptionMessage=n.message)),r},"attemptFailEvent"),attachMonitoringEmitter:s(function(e){var r,i,n,o,a=0,u,l,h=this,y=!0;e.on("validate",function(){o=U.util.realClock.now(),l=Date.now()},y),e.on("sign",function(){i=U.util.realClock.now(),r=Date.now(),u=e.httpRequest.region,a++},y),e.on("validateResponse",function(){n=Math.round(U.util.realClock.now()-i)}),e.addNamedListener("API_CALL_ATTEMPT","success",s(function(){var S=h.apiAttemptEvent(e);S.Timestamp=r,S.AttemptLatency=n>=0?n:0,S.Region=u,h.emit("apiCallAttempt",[S])},"API_CALL_ATTEMPT")),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",s(function(){var S=h.attemptFailEvent(e);S.Timestamp=r,n=n||Math.round(U.util.realClock.now()-i),S.AttemptLatency=n>=0?n:0,S.Region=u,h.emit("apiCallAttempt",[S])},"API_CALL_ATTEMPT_RETRY")),e.addNamedListener("API_CALL","complete",s(function(){var S=h.apiCallEvent(e);if(S.AttemptCount=a,!(S.AttemptCount<=0)){S.Timestamp=l;var O=Math.round(U.util.realClock.now()-o);S.Latency=O>=0?O:0;var g=e.response;g.error&&g.error.retryable&&typeof g.retryCount=="number"&&typeof g.maxRetries=="number"&&g.retryCount>=g.maxRetries&&(S.MaxRetriesExceeded=1),h.emit("apiCall",[S])}},"API_CALL"))},"attachMonitoringEmitter"),setupRequestListeners:s(function(e){},"setupRequestListeners"),getSigningName:s(function(){return this.api.signingName||this.api.endpointPrefix},"getSigningName"),getSignerClass:s(function(e){var r,i=null,n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null,n=i?i.authtype:""}return this.config.signatureVersion?r=this.config.signatureVersion:n==="v4"||n==="v4-unsigned-body"?r="v4":n==="bearer"?r="bearer":r=this.api.signatureVersion,U.Signers.RequestSigner.getVersion(r)},"getSignerClass"),serviceInterface:s(function(){switch(this.api.protocol){case"ec2":return U.EventListeners.Query;case"query":return U.EventListeners.Query;case"json":return U.EventListeners.Json;case"rest-json":return U.EventListeners.RestJson;case"rest-xml":return U.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},"serviceInterface"),successfulResponse:s(function(e){return e.httpResponse.statusCode<300},"successfulResponse"),numRetries:s(function(){return this.config.maxRetries!==void 0?this.config.maxRetries:this.defaultRetryCount},"numRetries"),retryDelays:s(function(e,r){return U.util.calculateRetryDelay(e,this.config.retryDelayOptions,r)},"retryDelays"),retryableError:s(function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},"retryableError"),networkingError:s(function(e){return e.code==="NetworkingError"},"networkingError"),timeoutError:s(function(e){return e.code==="TimeoutError"},"timeoutError"),expiredCredentialsError:s(function(e){return e.code==="ExpiredTokenException"},"expiredCredentialsError"),clockSkewError:s(function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},"clockSkewError"),getSkewCorrectedDate:s(function(){return new Date(Date.now()+this.config.systemClockOffset)},"getSkewCorrectedDate"),applyClockOffset:s(function(e){e&&(this.config.systemClockOffset=e-Date.now())},"applyClockOffset"),isClockSkewed:s(function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},"isClockSkewed"),throttledError:s(function(e){if(e.statusCode===429)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},"throttledError"),endpointFromTemplate:s(function(e){if(typeof e!="string")return e;var r=e;return r=r.replace(/\{service\}/g,this.api.endpointPrefix),r=r.replace(/\{region\}/g,this.config.region),r=r.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http"),r},"endpointFromTemplate"),setEndpoint:s(function(e){this.endpoint=new U.Endpoint(e,this.config)},"setEndpoint"),paginationConfig:s(function(e,r){var i=this.api.operations[e].paginator;if(!i){if(r){var n=new Error;throw U.util.error(n,"No pagination configuration for "+e)}return null}return i},"paginationConfig")});U.util.update(U.Service,{defineMethods:s(function(e){U.util.each(e.prototype.api.operations,s(function(i){if(!e.prototype[i]){var n=e.prototype.api.operations[i];n.authtype==="none"?e.prototype[i]=function(o,a){return this.makeUnauthenticatedRequest(i,o,a)}:e.prototype[i]=function(o,a){return this.makeRequest(i,o,a)}}},"iterator"))},"defineMethods"),defineService:s(function(e,r,i){U.Service._serviceMap[e]=!0,Array.isArray(r)||(i=r,r=[]);var n=Ea(U.Service,i||{});if(typeof e=="string"){U.Service.addVersions(n,r);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else n.prototype.api=e,U.Service.defineMethods(n);if(U.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&U.util.clientSideMonitoring){var a=U.util.clientSideMonitoring.Publisher,u=U.util.clientSideMonitoring.configProvider,l=u();this.prototype.publisher=new a(l),l.enabled&&(U.Service._clientSideMonitoring=!0)}return U.SequentialExecutor.call(n.prototype),U.Service.addDefaultMonitoringListeners(n.prototype),n},"defineService"),addVersions:s(function(e,r){Array.isArray(r)||(r=[r]),e.services=e.services||{};for(var i=0;i<r.length;i++)e.services[r[i]]===void 0&&(e.services[r[i]]=null);e.apiVersions=Object.keys(e.services).sort()},"addVersions"),defineServiceApi:s(function(e,r,i){var n=Ea(e,{serviceIdentifier:e.serviceIdentifier});function o(a){a.isApi?n.prototype.api=a:n.prototype.api=new Iy(a,{serviceIdentifier:e.serviceIdentifier})}if(s(o,"setApi"),typeof r=="string"){if(i)o(i);else try{o(U.apiLoader(e.serviceIdentifier,r))}catch(a){throw U.util.error(a,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+r})}Object.prototype.hasOwnProperty.call(e.services,r)||(e.apiVersions=e.apiVersions.concat(r).sort()),e.services[r]=n}else o(r);return U.Service.defineMethods(n),n},"defineServiceApi"),hasService:function(t){return Object.prototype.hasOwnProperty.call(U.Service._serviceMap,t)},addDefaultMonitoringListeners:s(function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",s(function(i){var n=Object.getPrototypeOf(e);n._events&&n.emit("apiCallAttempt",[i])},"EVENTS_BUBBLE")),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",s(function(i){var n=Object.getPrototypeOf(e);n._events&&n.emit("apiCall",[i])},"CALL_EVENTS_BUBBLE"))},"addDefaultMonitoringListeners"),_serviceMap:{}});U.util.mixin(U.Service,U.SequentialExecutor);nl.exports=U.Service});var Ca=P(()=>{var Et=V();Et.Credentials=Et.util.inherit({constructor:s(function(){if(Et.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],arguments.length===1&&typeof arguments[0]=="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},"Credentials"),expiryWindow:15,needsRefresh:s(function(){var e=Et.util.date.getDate().getTime(),r=new Date(e+this.expiryWindow*1e3);return this.expireTime&&r>this.expireTime?!0:this.expired||!this.accessKeyId||!this.secretAccessKey},"needsRefresh"),get:s(function(e){var r=this;this.needsRefresh()?this.refresh(function(i){i||(r.expired=!1),e&&e(i)}):e&&e()},"get"),refresh:s(function(e){this.expired=!1,e()},"refresh"),coalesceRefresh:s(function(e,r){var i=this;i.refreshCallbacks.push(e)===1&&i.load(s(function(o){Et.util.arrayEach(i.refreshCallbacks,function(a){r?a(o):Et.util.defer(function(){a(o)})}),i.refreshCallbacks.length=0},"onLoad"))},"coalesceRefresh"),load:s(function(e){e()},"load")});Et.Credentials.addPromisesToClass=s(function(e){this.prototype.getPromise=Et.util.promisifyMethod("get",e),this.prototype.refreshPromise=Et.util.promisifyMethod("refresh",e)},"addPromisesToClass");Et.Credentials.deletePromisesFromClass=s(function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},"deletePromisesFromClass");Et.util.addPromises(Et.Credentials)});var Sa=P(()=>{var Lt=V();Lt.CredentialProviderChain=Lt.util.inherit(Lt.Credentials,{constructor:s(function(e){e?this.providers=e:this.providers=Lt.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},"CredentialProviderChain"),resolve:s(function(e){var r=this;if(r.providers.length===0)return e(new Error("No providers")),r;if(r.resolveCallbacks.push(e)===1){let a=function(u,l){if(!u&&l||i===n.length){Lt.util.arrayEach(r.resolveCallbacks,function(y){y(u,l)}),r.resolveCallbacks.length=0;return}var h=n[i++];typeof h=="function"?l=h.call():l=h,l.get?l.get(function(y){a(y,y?null:l)}):a(null,l)};var o=a;s(a,"resolveNext");var i=0,n=r.providers.slice(0);a()}return r},"resolve")});Lt.CredentialProviderChain.defaultProviders=[];Lt.CredentialProviderChain.addPromisesToClass=s(function(e){this.prototype.resolvePromise=Lt.util.promisifyMethod("resolve",e)},"addPromisesToClass");Lt.CredentialProviderChain.deletePromisesFromClass=s(function(){delete this.prototype.resolvePromise},"deletePromisesFromClass");Lt.util.addPromises(Lt.CredentialProviderChain)});var ol=P(()=>{var Ne=V();Ca();Sa();var Ks;Ne.Config=Ne.util.inherit({constructor:s(function(e){e===void 0&&(e={}),e=this.extractCredentials(e),Ne.util.each.call(this,this.keys,function(r,i){this.set(r,e[r],i)})},"Config"),getCredentials:s(function(e){var r=this;function i(u){e(u,u?null:r.credentials)}s(i,"finish");function n(u,l){return new Ne.util.error(l||new Error,{code:"CredentialsError",message:u,name:"CredentialsError"})}s(n,"credError");function o(){r.credentials.get(function(u){if(u){var l="Could not load credentials from "+r.credentials.constructor.name;u=n(l,u)}i(u)})}s(o,"getAsyncCredentials");function a(){var u=null;(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(u=n("Missing credentials")),i(u)}s(a,"getStaticCredentials"),r.credentials?typeof r.credentials.get=="function"?o():a():r.credentialProvider?r.credentialProvider.resolve(function(u,l){u&&(u=n("Could not load credentials from any providers",u)),r.credentials=l,i(u)}):i(n("No credentials to load"))},"getCredentials"),getToken:s(function(e){var r=this;function i(u){e(u,u?null:r.token)}s(i,"finish");function n(u,l){return new Ne.util.error(l||new Error,{code:"TokenError",message:u,name:"TokenError"})}s(n,"tokenError");function o(){r.token.get(function(u){if(u){var l="Could not load token from "+r.token.constructor.name;u=n(l,u)}i(u)})}s(o,"getAsyncToken");function a(){var u=null;r.token.token||(u=n("Missing token")),i(u)}s(a,"getStaticToken"),r.token?typeof r.token.get=="function"?o():a():r.tokenProvider?r.tokenProvider.resolve(function(u,l){u&&(u=n("Could not load token from any providers",u)),r.token=l,i(u)}):i(n("No token to load"))},"getToken"),update:s(function(e,r){r=r||!1,e=this.extractCredentials(e),Ne.util.each.call(this,e,function(i,n){(r||Object.prototype.hasOwnProperty.call(this.keys,i)||Ne.Service.hasService(i))&&this.set(i,n)})},"update"),loadFromPath:s(function(e){this.clear();var r=JSON.parse(Ne.util.readFileSync(e)),i=new Ne.FileSystemCredentials(e),n=new Ne.CredentialProviderChain;return n.providers.unshift(i),n.resolve(function(o,a){if(o)throw o;r.credentials=a}),this.constructor(r),this},"loadFromPath"),clear:s(function(){Ne.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},"clear"),set:s(function(e,r,i){r===void 0?(i===void 0&&(i=this.keys[e]),typeof i=="function"?this[e]=i.call(this):this[e]=i):e==="httpOptions"&&this[e]?this[e]=Ne.util.merge(this[e],r):this[e]=r},"set"),keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:s(function(e){return e.accessKeyId&&e.secretAccessKey&&(e=Ne.util.copy(e),e.credentials=new Ne.Credentials(e)),e},"extractCredentials"),setPromisesDependency:s(function(e){Ks=e,e===null&&typeof Promise=="function"&&(Ks=Promise);var r=[Ne.Request,Ne.Credentials,Ne.CredentialProviderChain];Ne.S3&&(r.push(Ne.S3),Ne.S3.ManagedUpload&&r.push(Ne.S3.ManagedUpload)),Ne.util.addPromises(r,Ks)},"setPromisesDependency"),getPromisesDependency:s(function(){return Ks},"getPromisesDependency")});Ne.config=new Ne.Config});var Gs=P(()=>{var je=V(),Xs=je.util.inherit;je.Endpoint=Xs({constructor:s(function(e,r){if(je.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof e>"u"||e===null)throw new Error("Invalid endpoint: "+e);if(typeof e!="string")return je.util.copy(e);if(!e.match(/^http/)){var i=r&&r.sslEnabled!==void 0?r.sslEnabled:je.config.sslEnabled;e=(i?"https":"http")+"://"+e}je.util.update(this,je.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port=this.protocol==="https:"?443:80},"Endpoint")});je.HttpRequest=Xs({constructor:s(function(e,r){e=new je.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=r,this._userAgent="",this.setUserAgent()},"HttpRequest"),setUserAgent:s(function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=je.util.userAgent()},"setUserAgent"),getUserAgentHeaderName:s(function(){var e=je.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},"getUserAgentHeaderName"),appendToUserAgent:s(function(e){typeof e=="string"&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},"appendToUserAgent"),getUserAgent:s(function(){return this._userAgent},"getUserAgent"),pathname:s(function(){return this.path.split("?",1)[0]},"pathname"),search:s(function(){var e=this.path.split("?",2)[1];return e?(e=je.util.queryStringParse(e),je.util.queryParamsToString(e)):""},"search"),updateEndpoint:s(function(e){var r=new je.Endpoint(e);this.endpoint=r,this.path=r.path||"/",this.headers.Host&&(this.headers.Host=r.host)},"updateEndpoint")});je.HttpResponse=Xs({constructor:s(function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},"HttpResponse"),createUnbufferedStream:s(function(){return this.streaming=!0,this.stream},"createUnbufferedStream")});je.HttpClient=Xs({});je.HttpClient.getInstance=s(function(){return this.singleton===void 0&&(this.singleton=new this),this.singleton},"getInstance")});var pl=P((Jk,hl)=>{var Le=V(),vt=Oe(),al=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function Js(t){var e=t.service,r=e.api||{},i=r.operations,n={};return e.config.region&&(n.region=e.config.region),r.serviceId&&(n.serviceId=r.serviceId),e.config.credentials.accessKeyId&&(n.accessKeyId=e.config.credentials.accessKeyId),n}s(Js,"getCacheKey");function cl(t,e,r){!r||e===void 0||e===null||r.type==="structure"&&r.required&&r.required.length>0&&vt.arrayEach(r.required,function(i){var n=r.members[i];if(n.endpointDiscoveryId===!0){var o=n.isLocationName?n.name:i;t[o]=String(e[i])}else cl(t,e[i],n)})}s(cl,"marshallCustomIdentifiersHelper");function $s(t,e){var r={};return cl(r,t.params,e),r}s($s,"marshallCustomIdentifiers");function ll(t){var e=t.service,r=e.api,i=r.operations?r.operations[t.operation]:void 0,n=i?i.input:void 0,o=$s(t,n),a=Js(t);Object.keys(o).length>0&&(a=vt.update(a,o),i&&(a.operation=i.name));var u=Le.endpointCache.get(a);if(!(u&&u.length===1&&u[0].Address===""))if(u&&u.length>0)t.httpRequest.updateEndpoint(u[0].Address);else{var l=e.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:o});dl(l),l.removeListener("validate",Le.EventListeners.Core.VALIDATE_PARAMETERS),l.removeListener("retry",Le.EventListeners.Core.RETRY_CHECK),Le.endpointCache.put(a,[{Address:"",CachePeriodInMinutes:1}]),l.send(function(h,y){y&&y.Endpoints?Le.endpointCache.put(a,y.Endpoints):h&&Le.endpointCache.put(a,[{Address:"",CachePeriodInMinutes:1}])})}}s(ll,"optionalDiscoverEndpoint");var gr={};function fl(t,e){var r=t.service,i=r.api,n=i.operations?i.operations[t.operation]:void 0,o=n?n.input:void 0,a=$s(t,o),u=Js(t);Object.keys(a).length>0&&(u=vt.update(u,a),n&&(u.operation=n.name));var l=Le.EndpointCache.getKeyString(u),h=Le.endpointCache.get(l);if(h&&h.length===1&&h[0].Address===""){gr[l]||(gr[l]=[]),gr[l].push({request:t,callback:e});return}else if(h&&h.length>0)t.httpRequest.updateEndpoint(h[0].Address),e();else{var y=r.makeRequest(i.endpointOperation,{Operation:n.name,Identifiers:a});y.removeListener("validate",Le.EventListeners.Core.VALIDATE_PARAMETERS),dl(y),Le.endpointCache.put(l,[{Address:"",CachePeriodInMinutes:60}]),y.send(function(v,S){if(v){if(t.response.error=vt.error(v,{retryable:!1}),Le.endpointCache.remove(u),gr[l]){var O=gr[l];vt.arrayEach(O,function(g){g.request.response.error=vt.error(v,{retryable:!1}),g.callback()}),delete gr[l]}}else if(S&&(Le.endpointCache.put(l,S.Endpoints),t.httpRequest.updateEndpoint(S.Endpoints[0].Address),gr[l])){var O=gr[l];vt.arrayEach(O,function(N){N.request.httpRequest.updateEndpoint(S.Endpoints[0].Address),N.callback()}),delete gr[l]}e()})}}s(fl,"requiredDiscoverEndpoint");function dl(t){var e=t.service.api,r=e.apiVersion;r&&!t.httpRequest.headers["x-amz-api-version"]&&(t.httpRequest.headers["x-amz-api-version"]=r)}s(dl,"addApiVersionHeader");function Ta(t){var e=t.error,r=t.httpResponse;if(e&&(e.code==="InvalidEndpointException"||r.statusCode===421)){var i=t.request,n=i.service.api.operations||{},o=n[i.operation]?n[i.operation].input:void 0,a=$s(i,o),u=Js(i);Object.keys(a).length>0&&(u=vt.update(u,a),n[i.operation]&&(u.operation=n[i.operation].name)),Le.endpointCache.remove(u)}}s(Ta,"invalidateCachedEndpoints");function Dy(t){if(t._originalConfig&&t._originalConfig.endpoint&&t._originalConfig.endpointDiscoveryEnabled===!0)throw vt.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var e=Le.config[t.serviceIdentifier]||{};return Boolean(Le.config.endpoint||e.endpoint||t._originalConfig&&t._originalConfig.endpoint)}s(Dy,"hasCustomEndpoint");function ul(t){return["false","0"].indexOf(t)>=0}s(ul,"isFalsy");function Py(t){var e=t.service||{};if(e.config.endpointDiscoveryEnabled!==void 0)return e.config.endpointDiscoveryEnabled;if(!vt.isBrowser()){for(var r=0;r<al.length;r++){var i=al[r];if(Object.prototype.hasOwnProperty.call(process.env,i)){if(process.env[i]===""||process.env[i]===void 0)throw vt.error(new Error,{code:"ConfigurationException",message:"environmental variable "+i+" cannot be set to nothing"});return!ul(process.env[i])}}var n={};try{n=Le.util.iniLoader?Le.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[Le.util.sharedConfigFileEnv]}):{}}catch{}var o=n[process.env.AWS_PROFILE||Le.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(o,"endpoint_discovery_enabled")){if(o.endpoint_discovery_enabled===void 0)throw vt.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!ul(o.endpoint_discovery_enabled)}}}s(Py,"resolveEndpointDiscoveryConfig");function _y(t,e){var r=t.service||{};if(Dy(r)||t.isPresigned())return e();var i=r.api.operations||{},n=i[t.operation],o=n?n.endpointDiscoveryRequired:"NULL",a=Py(t),u=r.api.hasRequiredEndpointDiscovery;switch((a||u)&&t.httpRequest.appendToUserAgent("endpoint-discovery"),o){case"OPTIONAL":(a||u)&&(ll(t),t.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",Ta)),e();break;case"REQUIRED":if(a===!1){t.response.error=vt.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+t.operation+"() requires it. Please check your configurations."}),e();break}t.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",Ta),fl(t,e);break;case"NULL":default:e();break}}s(_y,"discoverEndpoint");hl.exports={discoverEndpoint:_y,requiredDiscoverEndpoint:fl,optionalDiscoverEndpoint:ll,marshallCustomIdentifiers:$s,getCacheKey:Js,invalidateCachedEndpoint:Ta}});var vl=P(()=>{var ee=V(),Ur=wa(),ky=pl().discoverEndpoint;ee.EventListeners={Core:{}};function yl(t){if(!t.service.api.operations)return"";var e=t.service.api.operations[t.operation];return e?e.authtype:""}s(yl,"getOperationAuthtype");function ml(t){var e=t.service;return e.config.signatureVersion?e.config.signatureVersion:e.api.signatureVersion?e.api.signatureVersion:yl(t)}s(ml,"getIdentityType");ee.EventListeners={Core:new Ur().addNamedListeners(function(t,e){e("VALIDATE_CREDENTIALS","validate",s(function(n,o){if(!n.service.api.signatureVersion&&!n.service.config.signatureVersion)return o();var a=ml(n);if(a==="bearer"){n.service.config.getToken(function(u){u&&(n.response.error=ee.util.error(u,{code:"TokenError"})),o()});return}n.service.config.getCredentials(function(u){u&&(n.response.error=ee.util.error(u,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),o()})},"VALIDATE_CREDENTIALS")),t("VALIDATE_REGION","validate",s(function(n){if(!n.service.isGlobalEndpoint){var o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);n.service.config.region?o.test(n.service.config.region)||(n.response.error=ee.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):n.response.error=ee.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}},"VALIDATE_REGION")),t("BUILD_IDEMPOTENCY_TOKENS","validate",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var a=o.idempotentMembers;if(a.length){for(var u=ee.util.copy(n.params),l=0,h=a.length;l<h;l++)u[a[l]]||(u[a[l]]=ee.util.uuid.v4());n.params=u}}}},"BUILD_IDEMPOTENCY_TOKENS")),t("VALIDATE_PARAMETERS","validate",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation].input,a=n.service.config.paramValidation;new ee.ParamValidator(a).validate(o,n.params)}},"VALIDATE_PARAMETERS")),t("COMPUTE_CHECKSUM","afterBuild",s(function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var a=n.httpRequest.body,u=a&&(ee.util.Buffer.isBuffer(a)||typeof a=="string"),l=n.httpRequest.headers;if(o.httpChecksumRequired&&n.service.config.computeChecksums&&u&&!l["Content-MD5"]){var h=ee.util.crypto.md5(a,"base64");l["Content-MD5"]=h}}}},"COMPUTE_CHECKSUM")),e("COMPUTE_SHA256","afterBuild",s(function(n,o){if(n.haltHandlersOnError(),!!n.service.api.operations){var a=n.service.api.operations[n.operation],u=a?a.authtype:"";if(!n.service.api.signatureVersion&&!u&&!n.service.config.signatureVersion)return o();if(n.service.getSignerClass(n)===ee.Signers.V4){var l=n.httpRequest.body||"";if(u.indexOf("unsigned-body")>=0)return n.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",o();ee.util.computeSha256(l,function(h,y){h?o(h):(n.httpRequest.headers["X-Amz-Content-Sha256"]=y,o())})}else o()}},"COMPUTE_SHA256")),t("SET_CONTENT_LENGTH","afterBuild",s(function(n){var o=yl(n),a=ee.util.getRequestPayloadShape(n);if(n.httpRequest.headers["Content-Length"]===void 0)try{var u=ee.util.string.byteLength(n.httpRequest.body);n.httpRequest.headers["Content-Length"]=u}catch(l){if(a&&a.isStreaming){if(a.requiresLength)throw l;if(o.indexOf("unsigned-body")>=0){n.httpRequest.headers["Transfer-Encoding"]="chunked";return}else throw l}throw l}},"SET_CONTENT_LENGTH")),t("SET_HTTP_HOST","afterBuild",s(function(n){n.httpRequest.headers.Host=n.httpRequest.endpoint.host},"SET_HTTP_HOST")),t("SET_TRACE_ID","afterBuild",s(function(n){var o="X-Amzn-Trace-Id";if(ee.util.isNode()&&!Object.hasOwnProperty.call(n.httpRequest.headers,o)){var a="AWS_LAMBDA_FUNCTION_NAME",u="_X_AMZN_TRACE_ID",l=process.env[a],h=process.env[u];typeof l=="string"&&l.length>0&&typeof h=="string"&&h.length>0&&(n.httpRequest.headers[o]=h)}},"SET_TRACE_ID")),t("RESTART","restart",s(function(){var n=this.response.error;!n||!n.retryable||(this.httpRequest=new ee.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)},"RESTART"));var r=!0;e("DISCOVER_ENDPOINT","sign",ky,r),e("SIGN","sign",s(function(n,o){var a=n.service,u=ml(n);if(!u||u.length===0)return o();u==="bearer"?a.config.getToken(function(l,h){if(l)return n.response.error=l,o();try{var y=a.getSignerClass(n),v=new y(n.httpRequest);v.addAuthorization(h)}catch(S){n.response.error=S}o()}):a.config.getCredentials(function(l,h){if(l)return n.response.error=l,o();try{var y=a.getSkewCorrectedDate(),v=a.getSignerClass(n),S=n.service.api.operations||{},O=S[n.operation],g=new v(n.httpRequest,a.getSigningName(n),{signatureCache:a.config.signatureCache,operation:O,signatureVersion:a.api.signatureVersion});g.setServiceClientId(a._clientId),delete n.httpRequest.headers.Authorization,delete n.httpRequest.headers.Date,delete n.httpRequest.headers["X-Amz-Date"],g.addAuthorization(h,y),n.signedAt=y}catch(N){n.response.error=N}o()})},"SIGN")),t("VALIDATE_RESPONSE","validateResponse",s(function(n){this.service.successfulResponse(n,this)?(n.data={},n.error=null):(n.data=null,n.error=ee.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))},"VALIDATE_RESPONSE")),t("ERROR","error",s(function(n,o){var a=o.request.service.api.awsQueryCompatible;if(a){var u=o.httpResponse.headers,l=u?u["x-amzn-query-error"]:void 0;l&&l.includes(";")&&(o.error.code=l.split(";")[0])}},"ERROR"),!0),e("SEND","send",s(function(n,o){n.httpResponse._abortCallback=o,n.error=null,n.data=null;function a(v){n.httpResponse.stream=v;var S=n.request.httpRequest.stream,O=n.request.service,g=O.api,N=n.request.operation,D=g.operations[N]||{};v.on("headers",s(function(p,C,R){if(n.request.emit("httpHeaders",[p,C,n,R]),!n.httpResponse.streaming)if(ee.HttpClient.streamsApiVersion===2){if(D.hasEventOutput&&O.successfulResponse(n)){n.request.emit("httpDone"),o();return}v.on("readable",s(function(){var T=v.read();T!==null&&n.request.emit("httpData",[T,n])},"onReadable"))}else v.on("data",s(function(T){n.request.emit("httpData",[T,n])},"onData"))},"onHeaders")),v.on("end",s(function(){if(!S||!S.didCallback){if(ee.HttpClient.streamsApiVersion===2&&D.hasEventOutput&&O.successfulResponse(n))return;n.request.emit("httpDone"),o()}},"onEnd"))}s(a,"callback");function u(v){v.on("sendProgress",s(function(O){n.request.emit("httpUploadProgress",[O,n])},"onSendProgress")),v.on("receiveProgress",s(function(O){n.request.emit("httpDownloadProgress",[O,n])},"onReceiveProgress"))}s(u,"progress");function l(v){if(v.code!=="RequestAbortedError"){var S=v.code==="TimeoutError"?v.code:"NetworkingError";v=ee.util.error(v,{code:S,region:n.request.httpRequest.region,hostname:n.request.httpRequest.endpoint.hostname,retryable:!0})}n.error=v,n.request.emit("httpError",[n.error,n],function(){o()})}s(l,"error");function h(){var v=ee.HttpClient.getInstance(),S=n.request.service.config.httpOptions||{};try{var O=v.handleRequest(n.request.httpRequest,S,a,l);u(O)}catch(g){l(g)}}s(h,"executeSend");var y=(n.request.service.getSkewCorrectedDate()-this.signedAt)/1e3;y>=60*10?this.emit("sign",[this],function(v){v?o(v):h()}):h()},"SEND")),t("HTTP_HEADERS","httpHeaders",s(function(n,o,a,u){a.httpResponse.statusCode=n,a.httpResponse.statusMessage=u,a.httpResponse.headers=o,a.httpResponse.body=ee.util.buffer.toBuffer(""),a.httpResponse.buffers=[],a.httpResponse.numBytes=0;var l=o.date||o.Date,h=a.request.service;if(l){var y=Date.parse(l);h.config.correctClockSkew&&h.isClockSkewed(y)&&h.applyClockOffset(y)}},"HTTP_HEADERS")),t("HTTP_DATA","httpData",s(function(n,o){if(n){if(ee.util.isNode()){o.httpResponse.numBytes+=n.length;var a=o.httpResponse.headers["content-length"],u={loaded:o.httpResponse.numBytes,total:a};o.request.emit("httpDownloadProgress",[u,o])}o.httpResponse.buffers.push(ee.util.buffer.toBuffer(n))}},"HTTP_DATA")),t("HTTP_DONE","httpDone",s(function(n){if(n.httpResponse.buffers&&n.httpResponse.buffers.length>0){var o=ee.util.buffer.concat(n.httpResponse.buffers);n.httpResponse.body=o}delete n.httpResponse.numBytes,delete n.httpResponse.buffers},"HTTP_DONE")),t("FINALIZE_ERROR","retry",s(function(n){n.httpResponse.statusCode&&(n.error.statusCode=n.httpResponse.statusCode,n.error.retryable===void 0&&(n.error.retryable=this.service.retryableError(n.error,this)))},"FINALIZE_ERROR")),t("INVALIDATE_CREDENTIALS","retry",s(function(n){if(n.error)switch(n.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":n.error.retryable=!0,n.request.service.config.credentials.expired=!0}},"INVALIDATE_CREDENTIALS")),t("EXPIRED_SIGNATURE","retry",s(function(n){var o=n.error;o&&typeof o.code=="string"&&typeof o.message=="string"&&o.code.match(/Signature/)&&o.message.match(/expired/)&&(n.error.retryable=!0)},"EXPIRED_SIGNATURE")),t("CLOCK_SKEWED","retry",s(function(n){n.error&&this.service.clockSkewError(n.error)&&this.service.config.correctClockSkew&&(n.error.retryable=!0)},"CLOCK_SKEWED")),t("REDIRECT","retry",s(function(n){n.error&&n.error.statusCode>=300&&n.error.statusCode<400&&n.httpResponse.headers.location&&(this.httpRequest.endpoint=new ee.Endpoint(n.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,n.error.redirect=!0,n.error.retryable=!0)},"REDIRECT")),t("RETRY_CHECK","retry",s(function(n){n.error&&(n.error.redirect&&n.redirectCount<n.maxRedirects?n.error.retryDelay=0:n.retryCount<n.maxRetries&&(n.error.retryDelay=this.service.retryDelays(n.retryCount,n.error)||0))},"RETRY_CHECK")),e("RESET_RETRY_STATE","afterRetry",s(function(n,o){var a,u=!1;n.error&&(a=n.error.retryDelay||0,n.error.retryable&&n.retryCount<n.maxRetries?(n.retryCount++,u=!0):n.error.redirect&&n.redirectCount<n.maxRedirects&&(n.redirectCount++,u=!0)),u&&a>=0?(n.error=null,setTimeout(o,a)):o()},"RESET_RETRY_STATE"))}),CorePost:new Ur().addNamedListeners(function(t){t("EXTRACT_REQUEST_ID","extractData",ee.util.extractRequestId),t("EXTRACT_REQUEST_ID","extractError",ee.util.extractRequestId),t("ENOTFOUND_ERROR","httpError",s(function(r){function i(o){return o.errno==="ENOTFOUND"||typeof o.errno=="number"&&typeof ee.util.getSystemErrorName=="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(ee.util.getSystemErrorName(o.errno)>=0)}if(s(i,"isDNSError"),r.code==="NetworkingError"&&i(r)){var n="Inaccessible host: `"+r.hostname+"' at port `"+r.port+"'. This service may not be available in the `"+r.region+"' region.";this.response.error=ee.util.error(new Error(n),{code:"UnknownEndpoint",region:r.region,hostname:r.hostname,retryable:!0,originalError:r})}},"ENOTFOUND_ERROR"))}),Logger:new Ur().addNamedListeners(function(t){t("LOG_REQUEST","complete",s(function(r){var i=r.request,n=i.service.config.logger;if(!n)return;function o(l,h){if(!h)return h;if(l.isSensitive)return"***SensitiveInformation***";switch(l.type){case"structure":var y={};return ee.util.each(h,function(O,g){Object.prototype.hasOwnProperty.call(l.members,O)?y[O]=o(l.members[O],g):y[O]=g}),y;case"list":var v=[];return ee.util.arrayEach(h,function(O,g){v.push(o(l.member,O))}),v;case"map":var S={};return ee.util.each(h,function(O,g){S[O]=o(l.value,g)}),S;default:return h}}s(o,"filterSensitiveLog");function a(){var l=r.request.service.getSkewCorrectedDate().getTime(),h=(l-i.startTime.getTime())/1e3,y=!!n.isTTY,v=r.httpResponse.statusCode,S=i.params;if(i.service.api.operations&&i.service.api.operations[i.operation]&&i.service.api.operations[i.operation].input){var O=i.service.api.operations[i.operation].input;S=o(O,i.params)}var g=re("util").inspect(S,!0,null),N="";return y&&(N+="\x1B[33m"),N+="[AWS "+i.service.serviceIdentifier+" "+v,N+=" "+h.toString()+"s "+r.retryCount+" retries]",y&&(N+="\x1B[0;1m"),N+=" "+ee.util.string.lowerFirst(i.operation),N+="("+g+")",y&&(N+="\x1B[0m"),N}s(a,"buildMessage");var u=a();typeof n.log=="function"?n.log(u):typeof n.write=="function"&&n.write(u+`
|
|
2
2
|
`)},"LOG_REQUEST"))}),Json:new Ur().addNamedListeners(function(t){var e=Ws();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),Rest:new Ur().addNamedListeners(function(t){var e=qn();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),RestJson:new Ur().addNamedListeners(function(t){var e=la();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError),t("UNSET_CONTENT_LENGTH","afterBuild",e.unsetContentLength)}),RestXml:new Ur().addNamedListeners(function(t){var e=da();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)}),Query:new Ur().addNamedListeners(function(t){var e=aa();t("BUILD","build",e.buildRequest),t("EXTRACT_DATA","extractData",e.extractData),t("EXTRACT_ERROR","extractError",e.extractError)})}});var Nl=P((eq,gl)=>{function ba(t,e){this.currentState=e||null,this.states=t||{}}s(ba,"AcceptorStateMachine");ba.prototype.runTo=s(function(e,r,i,n){typeof e=="function"&&(n=i,i=r,r=e,e=null);var o=this,a=o.states[o.currentState];a.fn.call(i||o,n,function(u){if(u)if(a.fail)o.currentState=a.fail;else return r?r.call(i,u):null;else if(a.accept)o.currentState=a.accept;else return r?r.call(i):null;if(o.currentState===e)return r?r.call(i,u):null;o.runTo(e,r,i,u)})},"runTo");ba.prototype.addState=s(function(e,r,i,n){return typeof r=="function"?(n=r,r=null,i=null):typeof i=="function"&&(n=i,i=null),this.currentState||(this.currentState=e),this.states[e]={accept:r,fail:i,fn:n},this},"addState");gl.exports=ba});var Qs=P(Ys=>{(function(t){"use strict";function e(d){return d!==null?Object.prototype.toString.call(d)==="[object Array]":!1}s(e,"isArray");function r(d){return d!==null?Object.prototype.toString.call(d)==="[object Object]":!1}s(r,"isObject");function i(d,x){if(d===x)return!0;var b=Object.prototype.toString.call(d);if(b!==Object.prototype.toString.call(x))return!1;if(e(d)===!0){if(d.length!==x.length)return!1;for(var k=0;k<d.length;k++)if(i(d[k],x[k])===!1)return!1;return!0}if(r(d)===!0){var L={};for(var B in d)if(hasOwnProperty.call(d,B)){if(i(d[B],x[B])===!1)return!1;L[B]=!0}for(var Y in x)if(hasOwnProperty.call(x,Y)&&L[Y]!==!0)return!1;return!0}return!1}s(i,"strictDeepEqual");function n(d){if(d===""||d===!1||d===null)return!0;if(e(d)&&d.length===0)return!0;if(r(d)){for(var x in d)if(d.hasOwnProperty(x))return!1;return!0}else return!1}s(n,"isFalse");function o(d){for(var x=Object.keys(d),b=[],k=0;k<x.length;k++)b.push(d[x[k]]);return b}s(o,"objValues");function a(d,x){var b={};for(var k in d)b[k]=d[k];for(var L in x)b[L]=x[L];return b}s(a,"merge");var u;typeof String.prototype.trimLeft=="function"?u=s(function(d){return d.trimLeft()},"trimLeft"):u=s(function(d){return d.match(/^\s*(.*)/)[1]},"trimLeft");var l=0,h=1,y=2,v=3,S=4,O=5,g=6,N=7,D=8,E=9,p={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},C="EOF",R="UnquotedIdentifier",_="QuotedIdentifier",T="Rbracket",A="Rparen",w="Comma",K="Colon",X="Rbrace",F="Number",se="Current",We="Expref",Fe="Pipe",bt="Or",Z="And",Cr="EQ",Sr="GT",Tr="LT",Nt="GTE",br="LTE",wi="NE",At="Flatten",Ut="Star",Kr="Filter",m="Dot",f="Not",q="Lbrace",I="Lbracket",te="Lparen",we="Literal",be={".":m,"*":Ut,",":w,":":K,"{":q,"}":X,"]":T,"(":te,")":A,"@":se},Je={"<":!0,">":!0,"=":!0,"!":!0},wt={" ":!0," ":!0,"\n":!0};function Ar(d){return d>="a"&&d<="z"||d>="A"&&d<="Z"||d==="_"}s(Ar,"isAlpha");function De(d){return d>="0"&&d<="9"||d==="-"}s(De,"isNum");function It(d){return d>="a"&&d<="z"||d>="A"&&d<="Z"||d>="0"&&d<="9"||d==="_"}s(It,"isAlphaNum");function Gi(){}s(Gi,"Lexer"),Gi.prototype={tokenize:function(d){var x=[];this._current=0;for(var b,k,L;this._current<d.length;)if(Ar(d[this._current]))b=this._current,k=this._consumeUnquotedIdentifier(d),x.push({type:R,value:k,start:b});else if(be[d[this._current]]!==void 0)x.push({type:be[d[this._current]],value:d[this._current],start:this._current}),this._current++;else if(De(d[this._current]))L=this._consumeNumber(d),x.push(L);else if(d[this._current]==="[")L=this._consumeLBracket(d),x.push(L);else if(d[this._current]==='"')b=this._current,k=this._consumeQuotedIdentifier(d),x.push({type:_,value:k,start:b});else if(d[this._current]==="'")b=this._current,k=this._consumeRawStringLiteral(d),x.push({type:we,value:k,start:b});else if(d[this._current]==="`"){b=this._current;var B=this._consumeLiteral(d);x.push({type:we,value:B,start:b})}else if(Je[d[this._current]]!==void 0)x.push(this._consumeOperator(d));else if(wt[d[this._current]]!==void 0)this._current++;else if(d[this._current]==="&")b=this._current,this._current++,d[this._current]==="&"?(this._current++,x.push({type:Z,value:"&&",start:b})):x.push({type:We,value:"&",start:b});else if(d[this._current]==="|")b=this._current,this._current++,d[this._current]==="|"?(this._current++,x.push({type:bt,value:"||",start:b})):x.push({type:Fe,value:"|",start:b});else{var Y=new Error("Unknown character:"+d[this._current]);throw Y.name="LexerError",Y}return x},_consumeUnquotedIdentifier:function(d){var x=this._current;for(this._current++;this._current<d.length&&It(d[this._current]);)this._current++;return d.slice(x,this._current)},_consumeQuotedIdentifier:function(d){var x=this._current;this._current++;for(var b=d.length;d[this._current]!=='"'&&this._current<b;){var k=this._current;d[k]==="\\"&&(d[k+1]==="\\"||d[k+1]==='"')?k+=2:k++,this._current=k}return this._current++,JSON.parse(d.slice(x,this._current))},_consumeRawStringLiteral:function(d){var x=this._current;this._current++;for(var b=d.length;d[this._current]!=="'"&&this._current<b;){var k=this._current;d[k]==="\\"&&(d[k+1]==="\\"||d[k+1]==="'")?k+=2:k++,this._current=k}this._current++;var L=d.slice(x+1,this._current-1);return L.replace("\\'","'")},_consumeNumber:function(d){var x=this._current;this._current++;for(var b=d.length;De(d[this._current])&&this._current<b;)this._current++;var k=parseInt(d.slice(x,this._current));return{type:F,value:k,start:x}},_consumeLBracket:function(d){var x=this._current;return this._current++,d[this._current]==="?"?(this._current++,{type:Kr,value:"[?",start:x}):d[this._current]==="]"?(this._current++,{type:At,value:"[]",start:x}):{type:I,value:"[",start:x}},_consumeOperator:function(d){var x=this._current,b=d[x];if(this._current++,b==="!")return d[this._current]==="="?(this._current++,{type:wi,value:"!=",start:x}):{type:f,value:"!",start:x};if(b==="<")return d[this._current]==="="?(this._current++,{type:br,value:"<=",start:x}):{type:Tr,value:"<",start:x};if(b===">")return d[this._current]==="="?(this._current++,{type:Nt,value:">=",start:x}):{type:Sr,value:">",start:x};if(b==="="&&d[this._current]==="=")return this._current++,{type:Cr,value:"==",start:x}},_consumeLiteral:function(d){this._current++;for(var x=this._current,b=d.length,k;d[this._current]!=="`"&&this._current<b;){var L=this._current;d[L]==="\\"&&(d[L+1]==="\\"||d[L+1]==="`")?L+=2:L++,this._current=L}var B=u(d.slice(x,this._current));return B=B.replace("\\`","`"),this._looksLikeJSON(B)?k=JSON.parse(B):k=JSON.parse('"'+B+'"'),this._current++,k},_looksLikeJSON:function(d){var x='[{"',b=["true","false","null"],k="-0123456789";if(d==="")return!1;if(x.indexOf(d[0])>=0)return!0;if(b.indexOf(d)>=0)return!0;if(k.indexOf(d[0])>=0)try{return JSON.parse(d),!0}catch{return!1}else return!1}};var J={};J[C]=0,J[R]=0,J[_]=0,J[T]=0,J[A]=0,J[w]=0,J[X]=0,J[F]=0,J[se]=0,J[We]=0,J[Fe]=1,J[bt]=2,J[Z]=3,J[Cr]=5,J[Sr]=5,J[Tr]=5,J[Nt]=5,J[br]=5,J[wi]=5,J[At]=9,J[Ut]=20,J[Kr]=21,J[m]=40,J[f]=45,J[q]=50,J[I]=55,J[te]=60;function Xr(){}s(Xr,"Parser"),Xr.prototype={parse:function(d){this._loadTokens(d),this.index=0;var x=this.expression(0);if(this._lookahead(0)!==C){var b=this._lookaheadToken(0),k=new Error("Unexpected token type: "+b.type+", value: "+b.value);throw k.name="ParserError",k}return x},_loadTokens:function(d){var x=new Gi,b=x.tokenize(d);b.push({type:C,value:"",start:d.length}),this.tokens=b},expression:function(d){var x=this._lookaheadToken(0);this._advance();for(var b=this.nud(x),k=this._lookahead(0);d<J[k];)this._advance(),b=this.led(k,b),k=this._lookahead(0);return b},_lookahead:function(d){return this.tokens[this.index+d].type},_lookaheadToken:function(d){return this.tokens[this.index+d]},_advance:function(){this.index++},nud:function(d){var x,b,k;switch(d.type){case we:return{type:"Literal",value:d.value};case R:return{type:"Field",name:d.value};case _:var L={type:"Field",name:d.value};if(this._lookahead(0)===te)throw new Error("Quoted identifier not allowed for function names.");return L;case f:return b=this.expression(J.Not),{type:"NotExpression",children:[b]};case Ut:return x={type:"Identity"},b=null,this._lookahead(0)===T?b={type:"Identity"}:b=this._parseProjectionRHS(J.Star),{type:"ValueProjection",children:[x,b]};case Kr:return this.led(d.type,{type:"Identity"});case q:return this._parseMultiselectHash();case At:return x={type:At,children:[{type:"Identity"}]},b=this._parseProjectionRHS(J.Flatten),{type:"Projection",children:[x,b]};case I:return this._lookahead(0)===F||this._lookahead(0)===K?(b=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},b)):this._lookahead(0)===Ut&&this._lookahead(1)===T?(this._advance(),this._advance(),b=this._parseProjectionRHS(J.Star),{type:"Projection",children:[{type:"Identity"},b]}):this._parseMultiselectList();case se:return{type:se};case We:return k=this.expression(J.Expref),{type:"ExpressionReference",children:[k]};case te:for(var B=[];this._lookahead(0)!==A;)this._lookahead(0)===se?(k={type:se},this._advance()):k=this.expression(0),B.push(k);return this._match(A),B[0];default:this._errorToken(d)}},led:function(d,x){var b;switch(d){case m:var k=J.Dot;return this._lookahead(0)!==Ut?(b=this._parseDotRHS(k),{type:"Subexpression",children:[x,b]}):(this._advance(),b=this._parseProjectionRHS(k),{type:"ValueProjection",children:[x,b]});case Fe:return b=this.expression(J.Pipe),{type:Fe,children:[x,b]};case bt:return b=this.expression(J.Or),{type:"OrExpression",children:[x,b]};case Z:return b=this.expression(J.And),{type:"AndExpression",children:[x,b]};case te:for(var L=x.name,B=[],Y,oe;this._lookahead(0)!==A;)this._lookahead(0)===se?(Y={type:se},this._advance()):Y=this.expression(0),this._lookahead(0)===w&&this._match(w),B.push(Y);return this._match(A),oe={type:"Function",name:L,children:B},oe;case Kr:var Qe=this.expression(0);return this._match(T),this._lookahead(0)===At?b={type:"Identity"}:b=this._parseProjectionRHS(J.Filter),{type:"FilterProjection",children:[x,b,Qe]};case At:var er={type:At,children:[x]},ke=this._parseProjectionRHS(J.Flatten);return{type:"Projection",children:[er,ke]};case Cr:case wi:case Sr:case Nt:case Tr:case br:return this._parseComparator(x,d);case I:var G=this._lookaheadToken(0);return G.type===F||G.type===K?(b=this._parseIndexExpression(),this._projectIfSlice(x,b)):(this._match(Ut),this._match(T),b=this._parseProjectionRHS(J.Star),{type:"Projection",children:[x,b]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(d){if(this._lookahead(0)===d)this._advance();else{var x=this._lookaheadToken(0),b=new Error("Expected "+d+", got: "+x.type);throw b.name="ParserError",b}},_errorToken:function(d){var x=new Error("Invalid token ("+d.type+'): "'+d.value+'"');throw x.name="ParserError",x},_parseIndexExpression:function(){if(this._lookahead(0)===K||this._lookahead(1)===K)return this._parseSliceExpression();var d={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(T),d},_projectIfSlice:function(d,x){var b={type:"IndexExpression",children:[d,x]};return x.type==="Slice"?{type:"Projection",children:[b,this._parseProjectionRHS(J.Star)]}:b},_parseSliceExpression:function(){for(var d=[null,null,null],x=0,b=this._lookahead(0);b!==T&&x<3;){if(b===K)x++,this._advance();else if(b===F)d[x]=this._lookaheadToken(0).value,this._advance();else{var k=this._lookahead(0),L=new Error("Syntax error, unexpected token: "+k.value+"("+k.type+")");throw L.name="Parsererror",L}b=this._lookahead(0)}return this._match(T),{type:"Slice",children:d}},_parseComparator:function(d,x){var b=this.expression(J[x]);return{type:"Comparator",name:x,children:[d,b]}},_parseDotRHS:function(d){var x=this._lookahead(0),b=[R,_,Ut];if(b.indexOf(x)>=0)return this.expression(d);if(x===I)return this._match(I),this._parseMultiselectList();if(x===q)return this._match(q),this._parseMultiselectHash()},_parseProjectionRHS:function(d){var x;if(J[this._lookahead(0)]<10)x={type:"Identity"};else if(this._lookahead(0)===I)x=this.expression(d);else if(this._lookahead(0)===Kr)x=this.expression(d);else if(this._lookahead(0)===m)this._match(m),x=this._parseDotRHS(d);else{var b=this._lookaheadToken(0),k=new Error("Sytanx error, unexpected token: "+b.value+"("+b.type+")");throw k.name="ParserError",k}return x},_parseMultiselectList:function(){for(var d=[];this._lookahead(0)!==T;){var x=this.expression(0);if(d.push(x),this._lookahead(0)===w&&(this._match(w),this._lookahead(0)===T))throw new Error("Unexpected token Rbracket")}return this._match(T),{type:"MultiSelectList",children:d}},_parseMultiselectHash:function(){for(var d=[],x=[R,_],b,k,L,B;;){if(b=this._lookaheadToken(0),x.indexOf(b.type)<0)throw new Error("Expecting an identifier token, got: "+b.type);if(k=b.value,this._advance(),this._match(K),L=this.expression(0),B={type:"KeyValuePair",name:k,value:L},d.push(B),this._lookahead(0)===w)this._match(w);else if(this._lookahead(0)===X){this._match(X);break}}return{type:"MultiSelectHash",children:d}}};function Ji(d){this.runtime=d}s(Ji,"TreeInterpreter"),Ji.prototype={search:function(d,x){return this.visit(d,x)},visit:function(d,x){var b,k,L,B,Y,oe,Qe,er,ke,G;switch(d.type){case"Field":return x!==null&&r(x)?(oe=x[d.name],oe===void 0?null:oe):null;case"Subexpression":for(L=this.visit(d.children[0],x),G=1;G<d.children.length;G++)if(L=this.visit(d.children[1],L),L===null)return null;return L;case"IndexExpression":return Qe=this.visit(d.children[0],x),er=this.visit(d.children[1],Qe),er;case"Index":if(!e(x))return null;var tr=d.value;return tr<0&&(tr=x.length+tr),L=x[tr],L===void 0&&(L=null),L;case"Slice":if(!e(x))return null;var op=d.children.slice(0),Io=this.computeSliceParams(x.length,op),tu=Io[0],ru=Io[1],Oo=Io[2];if(L=[],Oo>0)for(G=tu;G<ru;G+=Oo)L.push(x[G]);else for(G=tu;G>ru;G+=Oo)L.push(x[G]);return L;case"Projection":var Ot=this.visit(d.children[0],x);if(!e(Ot))return null;for(ke=[],G=0;G<Ot.length;G++)k=this.visit(d.children[1],Ot[G]),k!==null&&ke.push(k);return ke;case"ValueProjection":if(Ot=this.visit(d.children[0],x),!r(Ot))return null;ke=[];var iu=o(Ot);for(G=0;G<iu.length;G++)k=this.visit(d.children[1],iu[G]),k!==null&&ke.push(k);return ke;case"FilterProjection":if(Ot=this.visit(d.children[0],x),!e(Ot))return null;var Ro=[],nu=[];for(G=0;G<Ot.length;G++)b=this.visit(d.children[2],Ot[G]),n(b)||Ro.push(Ot[G]);for(var Do=0;Do<Ro.length;Do++)k=this.visit(d.children[1],Ro[Do]),k!==null&&nu.push(k);return nu;case"Comparator":switch(B=this.visit(d.children[0],x),Y=this.visit(d.children[1],x),d.name){case Cr:L=i(B,Y);break;case wi:L=!i(B,Y);break;case Sr:L=B>Y;break;case Nt:L=B>=Y;break;case Tr:L=B<Y;break;case br:L=B<=Y;break;default:throw new Error("Unknown comparator: "+d.name)}return L;case At:var Po=this.visit(d.children[0],x);if(!e(Po))return null;var fs=[];for(G=0;G<Po.length;G++)k=Po[G],e(k)?fs.push.apply(fs,k):fs.push(k);return fs;case"Identity":return x;case"MultiSelectList":if(x===null)return null;for(ke=[],G=0;G<d.children.length;G++)ke.push(this.visit(d.children[G],x));return ke;case"MultiSelectHash":if(x===null)return null;ke={};var _o;for(G=0;G<d.children.length;G++)_o=d.children[G],ke[_o.name]=this.visit(_o.value,x);return ke;case"OrExpression":return b=this.visit(d.children[0],x),n(b)&&(b=this.visit(d.children[1],x)),b;case"AndExpression":return B=this.visit(d.children[0],x),n(B)===!0?B:this.visit(d.children[1],x);case"NotExpression":return B=this.visit(d.children[0],x),n(B);case"Literal":return d.value;case Fe:return Qe=this.visit(d.children[0],x),this.visit(d.children[1],Qe);case se:return x;case"Function":var su=[];for(G=0;G<d.children.length;G++)su.push(this.visit(d.children[G],x));return this.runtime.callFunction(d.name,su);case"ExpressionReference":var ou=d.children[0];return ou.jmespathType=We,ou;default:throw new Error("Unknown node type: "+d.type)}},computeSliceParams:function(d,x){var b=x[0],k=x[1],L=x[2],B=[null,null,null];if(L===null)L=1;else if(L===0){var Y=new Error("Invalid slice, step cannot be 0");throw Y.name="RuntimeError",Y}var oe=L<0;return b===null?b=oe?d-1:0:b=this.capSliceRange(d,b,L),k===null?k=oe?-1:d:k=this.capSliceRange(d,k,L),B[0]=b,B[1]=k,B[2]=L,B},capSliceRange:function(d,x,b){return x<0?(x+=d,x<0&&(x=b<0?-1:0)):x>=d&&(x=b<0?d-1:d),x}};function eu(d){this._interpreter=d,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[l]}]},avg:{_func:this._functionAvg,_signature:[{types:[D]}]},ceil:{_func:this._functionCeil,_signature:[{types:[l]}]},contains:{_func:this._functionContains,_signature:[{types:[y,v]},{types:[h]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[y]},{types:[y]}]},floor:{_func:this._functionFloor,_signature:[{types:[l]}]},length:{_func:this._functionLength,_signature:[{types:[y,v,S]}]},map:{_func:this._functionMap,_signature:[{types:[g]},{types:[v]}]},max:{_func:this._functionMax,_signature:[{types:[D,E]}]},merge:{_func:this._functionMerge,_signature:[{types:[S],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[v]},{types:[g]}]},sum:{_func:this._functionSum,_signature:[{types:[D]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[y]},{types:[y]}]},min:{_func:this._functionMin,_signature:[{types:[D,E]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[v]},{types:[g]}]},type:{_func:this._functionType,_signature:[{types:[h]}]},keys:{_func:this._functionKeys,_signature:[{types:[S]}]},values:{_func:this._functionValues,_signature:[{types:[S]}]},sort:{_func:this._functionSort,_signature:[{types:[E,D]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[v]},{types:[g]}]},join:{_func:this._functionJoin,_signature:[{types:[y]},{types:[E]}]},reverse:{_func:this._functionReverse,_signature:[{types:[y,v]}]},to_array:{_func:this._functionToArray,_signature:[{types:[h]}]},to_string:{_func:this._functionToString,_signature:[{types:[h]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[h]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[h],variadic:!0}]}}}s(eu,"Runtime"),eu.prototype={callFunction:function(d,x){var b=this.functionTable[d];if(b===void 0)throw new Error("Unknown function: "+d+"()");return this._validateArgs(d,x,b._signature),b._func.call(this,x)},_validateArgs:function(d,x,b){var k;if(b[b.length-1].variadic){if(x.length<b.length)throw k=b.length===1?" argument":" arguments",new Error("ArgumentError: "+d+"() takes at least"+b.length+k+" but received "+x.length)}else if(x.length!==b.length)throw k=b.length===1?" argument":" arguments",new Error("ArgumentError: "+d+"() takes "+b.length+k+" but received "+x.length);for(var L,B,Y,oe=0;oe<b.length;oe++){Y=!1,L=b[oe].types,B=this._getTypeName(x[oe]);for(var Qe=0;Qe<L.length;Qe++)if(this._typeMatches(B,L[Qe],x[oe])){Y=!0;break}if(!Y){var er=L.map(function(ke){return p[ke]}).join(",");throw new Error("TypeError: "+d+"() expected argument "+(oe+1)+" to be type "+er+" but received type "+p[B]+" instead.")}}},_typeMatches:function(d,x,b){if(x===h)return!0;if(x===E||x===D||x===v){if(x===v)return d===v;if(d===v){var k;x===D?k=l:x===E&&(k=y);for(var L=0;L<b.length;L++)if(!this._typeMatches(this._getTypeName(b[L]),k,b[L]))return!1;return!0}}else return d===x},_getTypeName:function(d){switch(Object.prototype.toString.call(d)){case"[object String]":return y;case"[object Number]":return l;case"[object Array]":return v;case"[object Boolean]":return O;case"[object Null]":return N;case"[object Object]":return d.jmespathType===We?g:S}},_functionStartsWith:function(d){return d[0].lastIndexOf(d[1])===0},_functionEndsWith:function(d){var x=d[0],b=d[1];return x.indexOf(b,x.length-b.length)!==-1},_functionReverse:function(d){var x=this._getTypeName(d[0]);if(x===y){for(var b=d[0],k="",L=b.length-1;L>=0;L--)k+=b[L];return k}else{var B=d[0].slice(0);return B.reverse(),B}},_functionAbs:function(d){return Math.abs(d[0])},_functionCeil:function(d){return Math.ceil(d[0])},_functionAvg:function(d){for(var x=0,b=d[0],k=0;k<b.length;k++)x+=b[k];return x/b.length},_functionContains:function(d){return d[0].indexOf(d[1])>=0},_functionFloor:function(d){return Math.floor(d[0])},_functionLength:function(d){return r(d[0])?Object.keys(d[0]).length:d[0].length},_functionMap:function(d){for(var x=[],b=this._interpreter,k=d[0],L=d[1],B=0;B<L.length;B++)x.push(b.visit(k,L[B]));return x},_functionMerge:function(d){for(var x={},b=0;b<d.length;b++){var k=d[b];for(var L in k)x[L]=k[L]}return x},_functionMax:function(d){if(d[0].length>0){var x=this._getTypeName(d[0][0]);if(x===l)return Math.max.apply(Math,d[0]);for(var b=d[0],k=b[0],L=1;L<b.length;L++)k.localeCompare(b[L])<0&&(k=b[L]);return k}else return null},_functionMin:function(d){if(d[0].length>0){var x=this._getTypeName(d[0][0]);if(x===l)return Math.min.apply(Math,d[0]);for(var b=d[0],k=b[0],L=1;L<b.length;L++)b[L].localeCompare(k)<0&&(k=b[L]);return k}else return null},_functionSum:function(d){for(var x=0,b=d[0],k=0;k<b.length;k++)x+=b[k];return x},_functionType:function(d){switch(this._getTypeName(d[0])){case l:return"number";case y:return"string";case v:return"array";case S:return"object";case O:return"boolean";case g:return"expref";case N:return"null"}},_functionKeys:function(d){return Object.keys(d[0])},_functionValues:function(d){for(var x=d[0],b=Object.keys(x),k=[],L=0;L<b.length;L++)k.push(x[b[L]]);return k},_functionJoin:function(d){var x=d[0],b=d[1];return b.join(x)},_functionToArray:function(d){return this._getTypeName(d[0])===v?d[0]:[d[0]]},_functionToString:function(d){return this._getTypeName(d[0])===y?d[0]:JSON.stringify(d[0])},_functionToNumber:function(d){var x=this._getTypeName(d[0]),b;return x===l?d[0]:x===y&&(b=+d[0],!isNaN(b))?b:null},_functionNotNull:function(d){for(var x=0;x<d.length;x++)if(this._getTypeName(d[x])!==N)return d[x];return null},_functionSort:function(d){var x=d[0].slice(0);return x.sort(),x},_functionSortBy:function(d){var x=d[0].slice(0);if(x.length===0)return x;var b=this._interpreter,k=d[1],L=this._getTypeName(b.visit(k,x[0]));if([l,y].indexOf(L)<0)throw new Error("TypeError");for(var B=this,Y=[],oe=0;oe<x.length;oe++)Y.push([oe,x[oe]]);Y.sort(function(er,ke){var G=b.visit(k,er[1]),tr=b.visit(k,ke[1]);if(B._getTypeName(G)!==L)throw new Error("TypeError: expected "+L+", received "+B._getTypeName(G));if(B._getTypeName(tr)!==L)throw new Error("TypeError: expected "+L+", received "+B._getTypeName(tr));return G>tr?1:G<tr?-1:er[0]-ke[0]});for(var Qe=0;Qe<Y.length;Qe++)x[Qe]=Y[Qe][1];return x},_functionMaxBy:function(d){for(var x=d[1],b=d[0],k=this.createKeyFunction(x,[l,y]),L=-1/0,B,Y,oe=0;oe<b.length;oe++)Y=k(b[oe]),Y>L&&(L=Y,B=b[oe]);return B},_functionMinBy:function(d){for(var x=d[1],b=d[0],k=this.createKeyFunction(x,[l,y]),L=1/0,B,Y,oe=0;oe<b.length;oe++)Y=k(b[oe]),Y<L&&(L=Y,B=b[oe]);return B},createKeyFunction:function(d,x){var b=this,k=this._interpreter,L=s(function(B){var Y=k.visit(d,B);if(x.indexOf(b._getTypeName(Y))<0){var oe="TypeError: expected one of "+x+", received "+b._getTypeName(Y);throw new Error(oe)}return Y},"keyFunc");return L}};function ip(d){var x=new Xr,b=x.parse(d);return b}s(ip,"compile");function np(d){var x=new Gi;return x.tokenize(d)}s(np,"tokenize");function sp(d,x){var b=new Xr,k=new eu,L=new Ji(k);k._interpreter=L;var B=b.parse(x);return L.search(B,d)}s(sp,"search"),t.tokenize=np,t.compile=ip,t.search=sp,t.strictDeepEqual=i})(typeof Ys>"u"?Ys.jmespath={}:Ys)});var xl=P(()=>{var ce=V(),wl=Nl(),qy=ce.util.inherit,Zs=ce.util.domain,Ly=Qs(),My={success:1,error:1,complete:1};function Fy(t){return Object.prototype.hasOwnProperty.call(My,t._asm.currentState)}s(Fy,"isTerminalState");var Aa=new wl;Aa.setupStates=function(){var t=s(function(e,r){var i=this;i._haltHandlersOnError=!1,i.emit(i._asm.currentState,function(n){if(n)if(Fy(i))if(Zs&&i.domain instanceof Zs.Domain)n.domainEmitter=i,n.domain=i.domain,n.domainThrown=!1,i.domain.emit("error",n);else throw n;else i.response.error=n,r(n);else r(i.response.error)})},"transition");this.addState("validate","build","error",t),this.addState("build","afterBuild","restart",t),this.addState("afterBuild","sign","restart",t),this.addState("sign","send","retry",t),this.addState("retry","afterRetry","afterRetry",t),this.addState("afterRetry","sign","error",t),this.addState("send","validateResponse","retry",t),this.addState("validateResponse","extractData","extractError",t),this.addState("extractError","extractData","retry",t),this.addState("extractData","success","retry",t),this.addState("restart","build","error",t),this.addState("success","complete","complete",t),this.addState("error","complete","complete",t),this.addState("complete",null,null,t)};Aa.setupStates();ce.Request=qy({constructor:s(function(e,r,i){var n=e.endpoint,o=e.config.region,a=e.config.customUserAgent;e.signingRegion?o=e.signingRegion:e.isGlobalEndpoint&&(o="us-east-1"),this.domain=Zs&&Zs.active,this.service=e,this.operation=r,this.params=i||{},this.httpRequest=new ce.HttpRequest(n,o),this.httpRequest.appendToUserAgent(a),this.startTime=e.getSkewCorrectedDate(),this.response=new ce.Response(this),this._asm=new wl(Aa.states,"validate"),this._haltHandlersOnError=!1,ce.SequentialExecutor.call(this),this.emit=this.emitEvent},"Request"),send:s(function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(r){e.call(r,r.error,r.data)})),this.runTo(),this.response},"send"),build:s(function(e){return this.runTo("send",e)},"build"),runTo:s(function(e,r){return this._asm.runTo(e,r,this),this},"runTo"),abort:s(function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",s(function(r){r.error=ce.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})},"addAbortedError")),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},"abort"),eachPage:s(function(e){e=ce.util.fn.makeAsync(e,3);function r(i){e.call(i,i.error,i.data,function(n){n!==!1&&(i.hasNextPage()?i.nextPage().on("complete",r).send():e.call(i,null,null,ce.util.fn.noop))})}s(r,"wrappedCallback"),this.on("complete",r).send()},"eachPage"),eachItem:s(function(e){var r=this;function i(n,o){if(n)return e(n,null);if(o===null)return e(null,null);var a=r.service.paginationConfig(r.operation),u=a.resultKey;Array.isArray(u)&&(u=u[0]);var l=Ly.search(o,u),h=!0;return ce.util.arrayEach(l,function(y){if(h=e(null,y),h===!1)return ce.util.abort}),h}s(i,"wrappedCallback"),this.eachPage(i)},"eachItem"),isPageable:s(function(){return!!this.service.paginationConfig(this.operation)},"isPageable"),createReadStream:s(function(){var e=ce.util.stream,r=this,i=null;return ce.HttpClient.streamsApiVersion===2?(i=new e.PassThrough,process.nextTick(function(){r.send()})):(i=new e.Stream,i.readable=!0,i.sent=!1,i.on("newListener",function(n){!i.sent&&n==="data"&&(i.sent=!0,process.nextTick(function(){r.send()}))})),this.on("error",function(n){i.emit("error",n)}),this.on("httpHeaders",s(function(o,a,u){if(o<300){r.removeListener("httpData",ce.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",ce.EventListeners.Core.HTTP_ERROR),r.on("httpError",s(function(N){u.error=N,u.error.retryable=!1},"streamHttpError"));var l=!1,h;if(r.httpRequest.method!=="HEAD"&&(h=parseInt(a["content-length"],10)),h!==void 0&&!isNaN(h)&&h>=0){l=!0;var y=0}var v=s(function(){l&&y!==h?i.emit("error",ce.util.error(new Error("Stream content length mismatch. Received "+y+" of "+h+" bytes."),{code:"StreamContentLengthMismatch"})):ce.HttpClient.streamsApiVersion===2?i.end():i.emit("end")},"checkContentLengthAndEmit"),S=u.httpResponse.createUnbufferedStream();if(ce.HttpClient.streamsApiVersion===2)if(l){var O=new e.PassThrough;O._write=function(g){return g&&g.length&&(y+=g.length),e.PassThrough.prototype._write.apply(this,arguments)},O.on("end",v),i.on("error",function(g){l=!1,S.unpipe(O),O.emit("end"),O.end()}),S.pipe(O).pipe(i,{end:!1})}else S.pipe(i);else l&&S.on("data",function(g){g&&g.length&&(y+=g.length)}),S.on("data",function(g){i.emit("data",g)}),S.on("end",v);S.on("error",function(g){l=!1,i.emit("error",g)})}},"streamHeaders")),i},"createReadStream"),emitEvent:s(function(e,r,i){typeof r=="function"&&(i=r,r=null),i||(i=s(function(){},"done")),r||(r=this.eventParameters(e,this.response));var n=ce.SequentialExecutor.prototype.emit;n.call(this,e,r,function(o){o&&(this.response.error=o),i.call(this,o)})},"emit"),eventParameters:s(function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},"eventParameters"),presign:s(function(e,r){return!r&&typeof e=="function"&&(r=e,e=null),new ce.Signers.Presign().sign(this.toGet(),e,r)},"presign"),isPresigned:s(function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},"isPresigned"),toUnauthenticated:s(function(){return this._unAuthenticated=!0,this.removeListener("validate",ce.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",ce.EventListeners.Core.SIGN),this},"toUnauthenticated"),toGet:s(function(){return(this.service.api.protocol==="query"||this.service.api.protocol==="ec2")&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},"toGet"),buildAsGet:s(function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},"buildAsGet"),haltHandlersOnError:s(function(){this._haltHandlersOnError=!0},"haltHandlersOnError")});ce.Request.addPromisesToClass=s(function(e){this.prototype.promise=s(function(){var i=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(n,o){i.on("complete",function(a){a.error?o(a.error):n(Object.defineProperty(a.data||{},"$response",{value:a}))}),i.runTo()})},"promise")},"addPromisesToClass");ce.Request.deletePromisesFromClass=s(function(){delete this.prototype.promise},"deletePromisesFromClass");ce.util.addPromises(ce.Request);ce.util.mixin(ce.Request,ce.SequentialExecutor)});var Cl=P(()=>{var Vn=V(),Wy=Vn.util.inherit,El=Qs();Vn.Response=Wy({constructor:s(function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new Vn.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},"Response"),nextPage:s(function(e){var r,i=this.request.service,n=this.request.operation;try{r=i.paginationConfig(n,!0)}catch(l){this.error=l}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=Vn.util.copy(this.request.params);if(this.nextPageTokens){var a=r.inputToken;typeof a=="string"&&(a=[a]);for(var u=0;u<a.length;u++)o[a[u]]=this.nextPageTokens[u];return i.makeRequest(this.request.operation,o,e)}else return e?e(null,null):null},"nextPage"),hasNextPage:s(function(){if(this.cacheNextPageTokens(),this.nextPageTokens)return!0;if(this.nextPageTokens!==void 0)return!1},"hasNextPage"),cacheNextPageTokens:s(function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!El.search(this.data,e.moreResults))return this.nextPageTokens;var r=e.outputToken;return typeof r=="string"&&(r=[r]),Vn.util.arrayEach.call(this,r,function(i){var n=El.search(this.data,i);n&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(n))}),this.nextPageTokens},"cacheNextPageTokens")})});var Tl=P(()=>{var fi=V(),By=fi.util.inherit,Hi=Qs();function Sl(t){var e=t.request._waiter,r=e.config.acceptors,i=!1,n="retry";r.forEach(function(o){if(!i){var a=e.matchers[o.matcher];a&&a(t,o.expected,o.argument)&&(i=!0,n=o.state)}}),!i&&t.error&&(n="failure"),n==="success"?e.setSuccess(t):e.setError(t,n==="retry")}s(Sl,"CHECK_ACCEPTORS");fi.ResourceWaiter=By({constructor:s(function(e,r){this.service=e,this.state=r,this.loadWaiterConfig(this.state)},"constructor"),service:null,state:null,config:null,matchers:{path:function(t,e,r){try{var i=Hi.search(t.data,r)}catch{return!1}return Hi.strictDeepEqual(i,e)},pathAll:function(t,e,r){try{var i=Hi.search(t.data,r)}catch{return!1}Array.isArray(i)||(i=[i]);var n=i.length;if(!n)return!1;for(var o=0;o<n;o++)if(!Hi.strictDeepEqual(i[o],e))return!1;return!0},pathAny:function(t,e,r){try{var i=Hi.search(t.data,r)}catch{return!1}Array.isArray(i)||(i=[i]);for(var n=i.length,o=0;o<n;o++)if(Hi.strictDeepEqual(i[o],e))return!0;return!1},status:function(t,e){var r=t.httpResponse.statusCode;return typeof r=="number"&&r===e},error:function(t,e){return typeof e=="string"&&t.error?e===t.error.code:e===!!t.error}},listeners:new fi.SequentialExecutor().addNamedListeners(function(t){t("RETRY_CHECK","retry",function(e){var r=e.request._waiter;e.error&&e.error.code==="ResourceNotReady"&&(e.error.retryDelay=(r.config.delay||0)*1e3)}),t("CHECK_OUTPUT","extractData",Sl),t("CHECK_ERROR","extractError",Sl)}),wait:s(function(e,r){typeof e=="function"&&(r=e,e=void 0),e&&e.$waiter&&(e=fi.util.copy(e),typeof e.$waiter.delay=="number"&&(this.config.delay=e.$waiter.delay),typeof e.$waiter.maxAttempts=="number"&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var i=this.service.makeRequest(this.config.operation,e);return i._waiter=this,i.response.maxRetries=this.config.maxAttempts,i.addListeners(this.listeners),r&&i.send(r),i},"wait"),setSuccess:s(function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},"setSuccess"),setError:s(function(e,r){e.data=null,e.error=fi.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:r})},"setError"),loadWaiterConfig:s(function(e){if(!this.service.api.waiters[e])throw new fi.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=fi.util.copy(this.service.api.waiters[e])},"loadWaiterConfig")})});var Al=P((hq,bl)=>{var Nr=V(),Uy=Nr.util.inherit;Nr.Signers.V2=Uy(Nr.Signers.RequestSigner,{addAuthorization:s(function(e,r){r||(r=Nr.util.date.getDate());var i=this.request;i.params.Timestamp=Nr.util.date.iso8601(r),i.params.SignatureVersion="2",i.params.SignatureMethod="HmacSHA256",i.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(i.params.SecurityToken=e.sessionToken),delete i.params.Signature,i.params.Signature=this.signature(e),i.body=Nr.util.queryParamsToString(i.params),i.headers["Content-Length"]=i.body.length},"addAuthorization"),signature:s(function(e){return Nr.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},"signature"),stringToSign:s(function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(Nr.util.queryParamsToString(this.request.params)),e.join(`
|
|
3
3
|
`)},"stringToSign")});bl.exports=Nr.Signers.V2});var Ia=P((mq,Il)=>{var $t=V(),Vy=$t.util.inherit;$t.Signers.V3=Vy($t.Signers.RequestSigner,{addAuthorization:s(function(e,r){var i=$t.util.date.rfc822(r);this.request.headers["X-Amz-Date"]=i,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},"addAuthorization"),authorization:s(function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},"authorization"),signedHeaders:s(function(){var e=[];return $t.util.arrayEach(this.headersToSign(),s(function(i){e.push(i.toLowerCase())},"iterator")),e.sort().join(";")},"signedHeaders"),canonicalHeaders:s(function(){var e=this.request.headers,r=[];return $t.util.arrayEach(this.headersToSign(),s(function(n){r.push(n.toLowerCase().trim()+":"+String(e[n]).trim())},"iterator")),r.sort().join(`
|
|
4
4
|
`)+`
|
|
@@ -13,7 +13,7 @@ var ap=Object.create;var ko=Object.defineProperty;var up=Object.getOwnPropertyDe
|
|
|
13
13
|
* `);throw n="There were "+this.errors.length+` validation errors:
|
|
14
14
|
* `+n,Mt.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else{if(this.errors.length===1)throw this.errors[0];return!0}},"validate"),fail:s(function(e,r){this.errors.push(Mt.util.error(new Error(r),{code:e}))},"fail"),validateStructure:s(function(e,r,i){if(e.isDocument)return!0;this.validateType(r,i,["object"],"structure");for(var n,o=0;e.required&&o<e.required.length;o++){n=e.required[o];var a=r[n];a==null&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+i)}for(n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var u=r[n],l=e.members[n];if(l!==void 0){var h=[i,n].join(".");this.validateMember(l,u,h)}else u!=null&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+i)}return!0},"validateStructure"),validateMember:s(function(e,r,i){switch(e.type){case"structure":return this.validateStructure(e,r,i);case"list":return this.validateList(e,r,i);case"map":return this.validateMap(e,r,i);default:return this.validateScalar(e,r,i)}},"validateMember"),validateList:s(function(e,r,i){if(this.validateType(r,i,[Array])){this.validateRange(e,r.length,i,"list member count");for(var n=0;n<r.length;n++)this.validateMember(e.member,r[n],i+"["+n+"]")}},"validateList"),validateMap:s(function(e,r,i){if(this.validateType(r,i,["object"],"map")){var n=0;for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(this.validateMember(e.key,o,i+"[key='"+o+"']"),this.validateMember(e.value,r[o],i+"['"+o+"']"),n++);this.validateRange(e,n,i,"map member count")}},"validateMap"),validateScalar:s(function(e,r,i){switch(e.type){case null:case void 0:case"string":return this.validateString(e,r,i);case"base64":case"binary":return this.validatePayload(r,i);case"integer":case"float":return this.validateNumber(e,r,i);case"boolean":return this.validateType(r,i,["boolean"]);case"timestamp":return this.validateType(r,i,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+i)}},"validateScalar"),validateString:s(function(e,r,i){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),r!==null&&this.validateType(r,i,n)&&(this.validateEnum(e,r,i),this.validateRange(e,r.length,i,"string length"),this.validatePattern(e,r,i),this.validateUri(e,r,i))},"validateString"),validateUri:s(function(e,r,i){e.location==="uri"&&r.length===0&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+i)},"validateUri"),validatePattern:s(function(e,r,i){this.validation.pattern&&e.pattern!==void 0&&(new RegExp(e.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+e.pattern+"/ for "+i))},"validatePattern"),validateRange:s(function(e,r,i,n){this.validation.min&&e.min!==void 0&&r<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+r+" for "+i),this.validation.max&&e.max!==void 0&&r>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+r+" for "+i)},"validateRange"),validateEnum:s(function(e,r,i){this.validation.enum&&e.enum!==void 0&&e.enum.indexOf(r)===-1&&this.fail("EnumError","Found string value of "+r+", but expected "+e.enum.join("|")+" for "+i)},"validateRange"),validateType:s(function(e,r,i,n){if(e==null)return!1;for(var o=!1,a=0;a<i.length;a++){if(typeof i[a]=="string"){if(typeof e===i[a])return!0}else if(i[a]instanceof RegExp){if((e||"").toString().match(i[a]))return!0}else{if(e instanceof i[a]||Mt.util.isType(e,i[a]))return!0;!n&&!o&&(i=i.slice()),i[a]=Mt.util.typeName(i[a])}o=!0}var u=n;u||(u=i.join(", ").replace(/,([^,]+)$/,", or$1"));var l=u.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+l+" "+u),!1},"validateType"),validateNumber:s(function(e,r,i){if(r!=null){if(typeof r=="string"){var n=parseFloat(r);n.toString()===r&&(r=n)}this.validateType(r,i,["number"])&&this.validateRange(e,r,i,"numeric value")}},"validateNumber"),validatePayload:s(function(e,r){if(e!=null&&typeof e!="string"&&!(e&&typeof e.byteLength=="number")){if(Mt.util.isNode()){var i=Mt.util.stream.Stream;if(Mt.util.Buffer.isBuffer(e)||e instanceof i)return}else if(typeof Blob!==void 0&&e instanceof Blob)return;var n=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e){for(var o=0;o<n.length;o++)if(Mt.util.isType(e,n[o])||Mt.util.typeName(e.constructor)===n[o])return}this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}},"validatePayload")})});var Hl=P((Lq,Oa)=>{var Yy=[`We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
|
|
15
15
|
`,"Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check the migration guide at https://a.co/7PzMCcy"].join(`
|
|
16
|
-
`);Oa.exports={suppress:!1};function Qy(){typeof process<"u"&&typeof process.emitWarning=="function"&&process.emitWarning(Yy,{type:"NOTE"})}s(Qy,"emitWarning");setTimeout(function(){Oa.exports.suppress||Qy()},0)});var V=P((Fq,jl)=>{var wr={util:Oe()},Zy={};Zy.toString();jl.exports=wr;wr.util.update(wr,{VERSION:"2.1323.0",Signers:{},Protocol:{Json:Ws(),Query:aa(),Rest:qn(),RestJson:la(),RestXml:da()},XML:{Builder:Uc(),Parser:null},JSON:{Builder:qs(),Parser:Ms()},Model:{Api:va(),Operation:ha(),Shape:_n(),Paginator:pa(),ResourceWaiter:ma()},apiLoader:$c(),EndpointCache:Qc().EndpointCache});wa();sl();ol();Gs();vl();xl();Cl();Tl();Vl();zl();Hl();wr.events=new wr.SequentialExecutor;wr.util.memoizedProperty(wr,"endpointCache",function(){return new wr.EndpointCache(wr.config.endpointCacheSize)},!0)});var Da=P(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=rv;var ev=tv(re("crypto"));function tv(t){return t&&t.__esModule?t:{default:t}}s(tv,"_interopRequireDefault");function rv(){return ev.default.randomBytes(16)}s(rv,"rng")});var so=P(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var Kl=[];for(jn=0;jn<256;++jn)Kl[jn]=(jn+256).toString(16).substr(1);var jn;function iv(t,e){var r=e||0,i=Kl;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}s(iv,"bytesToUuid");var nv=iv;no.default=nv});var Jl=P(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var sv=Gl(Da()),ov=Gl(so());function Gl(t){return t&&t.__esModule?t:{default:t}}s(Gl,"_interopRequireDefault");var Xl,Pa,_a=0,ka=0;function av(t,e,r){var i=e&&r||0,n=e||[];t=t||{};var o=t.node||Xl,a=t.clockseq!==void 0?t.clockseq:Pa;if(o==null||a==null){var u=t.random||(t.rng||sv.default)();o==null&&(o=Xl=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),a==null&&(a=Pa=(u[6]<<8|u[7])&16383)}var l=t.msecs!==void 0?t.msecs:new Date().getTime(),h=t.nsecs!==void 0?t.nsecs:ka+1,y=l-_a+(h-ka)/1e4;if(y<0&&t.clockseq===void 0&&(a=a+1&16383),(y<0||l>_a)&&t.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_a=l,ka=h,Pa=a,l+=122192928e5;var v=((l&268435455)*1e4+h)%4294967296;n[i++]=v>>>24&255,n[i++]=v>>>16&255,n[i++]=v>>>8&255,n[i++]=v&255;var S=l/4294967296*1e4&268435455;n[i++]=S>>>8&255,n[i++]=S&255,n[i++]=S>>>24&15|16,n[i++]=S>>>16&255,n[i++]=a>>>8|128,n[i++]=a&255;for(var O=0;O<6;++O)n[i+O]=o[O];return e||(0,ov.default)(n)}s(av,"v1");var uv=av;oo.default=uv});var qa=P(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.default=hv;di.URL=di.DNS=void 0;var cv=lv(so());function lv(t){return t&&t.__esModule?t:{default:t}}s(lv,"_interopRequireDefault");function fv(t){var e=[];return t.replace(/[a-fA-F0-9]{2}/g,function(r){e.push(parseInt(r,16))}),e}s(fv,"uuidToBytes");function dv(t){t=unescape(encodeURIComponent(t));for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}s(dv,"stringToBytes");var $l="6ba7b810-9dad-11d1-80b4-00c04fd430c8";di.DNS=$l;var Yl="6ba7b811-9dad-11d1-80b4-00c04fd430c8";di.URL=Yl;function hv(t,e,r){var i=s(function(n,o,a,u){var l=a&&u||0;if(typeof n=="string"&&(n=dv(n)),typeof o=="string"&&(o=fv(o)),!Array.isArray(n))throw TypeError("value must be an array of bytes");if(!Array.isArray(o)||o.length!==16)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var h=r(o.concat(n));if(h[6]=h[6]&15|e,h[8]=h[8]&63|128,a)for(var y=0;y<16;++y)a[l+y]=h[y];return a||(0,cv.default)(h)},"generateUUID");try{i.name=t}catch{}return i.DNS=$l,i.URL=Yl,i}s(hv,"_default")});var Ql=P(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var pv=mv(re("crypto"));function mv(t){return t&&t.__esModule?t:{default:t}}s(mv,"_interopRequireDefault");function yv(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),pv.default.createHash("md5").update(t).digest()}s(yv,"md5");var vv=yv;ao.default=vv});var ef=P(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var gv=Zl(qa()),Nv=Zl(Ql());function Zl(t){return t&&t.__esModule?t:{default:t}}s(Zl,"_interopRequireDefault");var wv=(0,gv.default)("v3",48,Nv.default),xv=wv;uo.default=xv});var rf=P(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var Ev=tf(Da()),Cv=tf(so());function tf(t){return t&&t.__esModule?t:{default:t}}s(tf,"_interopRequireDefault");function Sv(t,e,r){var i=e&&r||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var n=t.random||(t.rng||Ev.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=n[o];return e||(0,Cv.default)(n)}s(Sv,"v4");var Tv=Sv;co.default=Tv});var nf=P(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var bv=Av(re("crypto"));function Av(t){return t&&t.__esModule?t:{default:t}}s(Av,"_interopRequireDefault");function Iv(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),bv.default.createHash("sha1").update(t).digest()}s(Iv,"sha1");var Ov=Iv;lo.default=Ov});var of=P(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=void 0;var Rv=sf(qa()),Dv=sf(nf());function sf(t){return t&&t.__esModule?t:{default:t}}s(sf,"_interopRequireDefault");var Pv=(0,Rv.default)("v5",80,Dv.default),_v=Pv;fo.default=_v});var af=P(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Object.defineProperty(Ki,"v1",{enumerable:!0,get:function(){return kv.default}});Object.defineProperty(Ki,"v3",{enumerable:!0,get:function(){return qv.default}});Object.defineProperty(Ki,"v4",{enumerable:!0,get:function(){return Lv.default}});Object.defineProperty(Ki,"v5",{enumerable:!0,get:function(){return Mv.default}});var kv=ho(Jl()),qv=ho(ef()),Lv=ho(rf()),Mv=ho(of());function ho(t){return t&&t.__esModule?t:{default:t}}s(ho,"_interopRequireDefault")});var Oe=P((sL,uf)=>{var Ct,M={environment:"nodejs",engine:s(function(){if(M.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},"engine"),userAgent:s(function(){var e=M.environment,r="aws-sdk-"+e+"/"+V().VERSION;return e==="nodejs"&&(r+=" "+M.engine()),r},"userAgent"),uriEscape:s(function(e){var r=encodeURIComponent(e);return r=r.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),r=r.replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()}),r},"uriEscape"),uriEscapePath:s(function(e){var r=[];return M.arrayEach(e.split("/"),function(i){r.push(M.uriEscape(i))}),r.join("/")},"uriEscapePath"),urlParse:s(function(e){return M.url.parse(e)},"urlParse"),urlFormat:s(function(e){return M.url.format(e)},"urlFormat"),queryStringParse:s(function(e){return M.querystring.parse(e)},"queryStringParse"),queryParamsToString:s(function(e){var r=[],i=M.uriEscape,n=Object.keys(e).sort();return M.arrayEach(n,function(o){var a=e[o],u=i(o),l=u+"=";if(Array.isArray(a)){var h=[];M.arrayEach(a,function(y){h.push(i(y))}),l=u+"="+h.sort().join("&"+u+"=")}else a!=null&&(l=u+"="+i(a));r.push(l)}),r.join("&")},"queryParamsToString"),readFileSync:s(function(e){return M.isBrowser()?null:re("fs").readFileSync(e,"utf-8")},"readFileSync"),base64:{encode:s(function(e){if(typeof e=="number")throw M.error(new Error("Cannot base64 encode number "+e));if(e===null||typeof e>"u")return e;var r=M.buffer.toBuffer(e);return r.toString("base64")},"encode64"),decode:s(function(e){if(typeof e=="number")throw M.error(new Error("Cannot base64 decode number "+e));return e===null||typeof e>"u"?e:M.buffer.toBuffer(e,"base64")},"decode64")},buffer:{toBuffer:function(t,e){return typeof M.Buffer.from=="function"&&M.Buffer.from!==Uint8Array.from?M.Buffer.from(t,e):new M.Buffer(t,e)},alloc:function(t,e,r){if(typeof t!="number")throw new Error("size passed to alloc must be a number.");if(typeof M.Buffer.alloc=="function")return M.Buffer.alloc(t,e,r);var i=new M.Buffer(t);return e!==void 0&&typeof i.fill=="function"&&i.fill(e,void 0,void 0,r),i},toStream:s(function(e){M.Buffer.isBuffer(e)||(e=M.buffer.toBuffer(e));var r=new M.stream.Readable,i=0;return r._read=function(n){if(i>=e.length)return r.push(null);var o=i+n;o>e.length&&(o=e.length),r.push(e.slice(i,o)),i=o},r},"toStream"),concat:function(t){var e=0,r=0,i=null,n;for(n=0;n<t.length;n++)e+=t[n].length;for(i=M.buffer.alloc(e),n=0;n<t.length;n++)t[n].copy(i,r),r+=t[n].length;return i}},string:{byteLength:s(function(e){if(e==null)return 0;if(typeof e=="string"&&(e=M.buffer.toBuffer(e)),typeof e.byteLength=="number")return e.byteLength;if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")return re("fs").lstatSync(e.path).size;throw M.error(new Error("Cannot determine length of "+e),{object:e})},"byteLength"),upperFirst:s(function(e){return e[0].toUpperCase()+e.substr(1)},"upperFirst"),lowerFirst:s(function(e){return e[0].toLowerCase()+e.substr(1)},"lowerFirst")},ini:{parse:s(function(e){var r,i={};return M.arrayEach(e.split(/\r?\n/),function(n){n=n.split(/(^|\s)[;#]/)[0].trim();var o=n[0]==="["&&n[n.length-1]==="]";if(o){if(r=n.substring(1,n.length-1),r==="__proto__"||r.split(/\s/)[1]==="__proto__")throw M.error(new Error("Cannot load profile name '"+r+"' from shared ini file."))}else if(r){var a=n.indexOf("="),u=0,l=n.length-1,h=a!==-1&&a!==u&&a!==l;if(h){var y=n.substring(0,a).trim(),v=n.substring(a+1).trim();i[r]=i[r]||{},i[r][y]=v}}}),i},"string")},fn:{noop:function(){},callback:function(t){if(t)throw t},makeAsync:s(function(e,r){return r&&r<=e.length?e:function(){var i=Array.prototype.slice.call(arguments,0),n=i.pop(),o=e.apply(null,i);n(o)}},"makeAsync")},date:{getDate:s(function(){return Ct||(Ct=V()),Ct.config.systemClockOffset?new Date(new Date().getTime()+Ct.config.systemClockOffset):new Date},"getDate"),iso8601:s(function(e){return e===void 0&&(e=M.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},"iso8601"),rfc822:s(function(e){return e===void 0&&(e=M.date.getDate()),e.toUTCString()},"rfc822"),unixTimestamp:s(function(e){return e===void 0&&(e=M.date.getDate()),e.getTime()/1e3},"unixTimestamp"),from:s(function(e){return typeof e=="number"?new Date(e*1e3):new Date(e)},"format"),format:s(function(e,r){return r||(r="iso8601"),M.date[r](M.date.from(e))},"format"),parseTimestamp:s(function(e){if(typeof e=="number")return new Date(e*1e3);if(e.match(/^\d+$/))return new Date(e*1e3);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw M.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})},"parseTimestamp")},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:s(function(e){var r=M.crypto.crc32Table,i=-1;typeof e=="string"&&(e=M.buffer.toBuffer(e));for(var n=0;n<e.length;n++){var o=e.readUInt8(n);i=i>>>8^r[(i^o)&255]}return(i^-1)>>>0},"crc32"),hmac:s(function(e,r,i,n){return i||(i="binary"),i==="buffer"&&(i=void 0),n||(n="sha256"),typeof r=="string"&&(r=M.buffer.toBuffer(r)),M.crypto.lib.createHmac(n,e).update(r).digest(i)},"hmac"),md5:s(function(e,r,i){return M.crypto.hash("md5",e,r,i)},"md5"),sha256:s(function(e,r,i){return M.crypto.hash("sha256",e,r,i)},"sha256"),hash:function(t,e,r,i){var n=M.crypto.createHash(t);r||(r="binary"),r==="buffer"&&(r=void 0),typeof e=="string"&&(e=M.buffer.toBuffer(e));var o=M.arraySliceFn(e),a=M.Buffer.isBuffer(e);if(M.isBrowser()&&typeof ArrayBuffer<"u"&&e&&e.buffer instanceof ArrayBuffer&&(a=!0),i&&typeof e=="object"&&typeof e.on=="function"&&!a)e.on("data",function(v){n.update(v)}),e.on("error",function(v){i(v)}),e.on("end",function(){i(null,n.digest(r))});else if(i&&o&&!a&&typeof FileReader<"u"){var u=0,l=1024*512,h=new FileReader;h.onerror=function(){i(new Error("Failed to read data."))},h.onload=function(){var v=new M.Buffer(new Uint8Array(h.result));n.update(v),u+=v.length,h._continueReading()},h._continueReading=function(){if(u>=e.size){i(null,n.digest(r));return}var v=u+l;v>e.size&&(v=e.size),h.readAsArrayBuffer(o.call(e,u,v))},h._continueReading()}else{M.isBrowser()&&typeof e=="object"&&!a&&(e=new M.Buffer(new Uint8Array(e)));var y=n.update(e).digest(r);return i&&i(null,y),y}},toHex:s(function(e){for(var r=[],i=0;i<e.length;i++)r.push(("0"+e.charCodeAt(i).toString(16)).substr(-2,2));return r.join("")},"toHex"),createHash:s(function(e){return M.crypto.lib.createHash(e)},"createHash")},abort:{},each:s(function(e,r){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r.call(this,i,e[i]);if(n===M.abort)break}},"each"),arrayEach:s(function(e,r){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r.call(this,e[i],parseInt(i,10));if(n===M.abort)break}},"arrayEach"),update:s(function(e,r){return M.each(r,s(function(n,o){e[n]=o},"iterator")),e},"update"),merge:s(function(e,r){return M.update(M.copy(e),r)},"merge"),copy:s(function(e){if(e==null)return e;var r={};for(var i in e)r[i]=e[i];return r},"copy"),isEmpty:s(function(e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))return!1;return!0},"isEmpty"),arraySliceFn:s(function(e){var r=e.slice||e.webkitSlice||e.mozSlice;return typeof r=="function"?r:null},"arraySliceFn"),isType:s(function(e,r){return typeof r=="function"&&(r=M.typeName(r)),Object.prototype.toString.call(e)==="[object "+r+"]"},"isType"),typeName:s(function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var r=e.toString(),i=r.match(/^\s*function (.+)\(/);return i?i[1]:r},"typeName"),error:s(function(e,r){var i=null;return typeof e.message=="string"&&e.message!==""&&(typeof r=="string"||r&&r.message)&&(i=M.copy(e),i.message=e.message),e.message=e.message||null,typeof r=="string"?e.message=r:typeof r=="object"&&r!==null&&(M.update(e,r),r.message&&(e.message=r.message),(r.code||r.name)&&(e.code=r.code||r.name),r.stack&&(e.stack=r.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(r&&r.name||e.name||e.code||"Error"),e.time=new Date,i&&(e.originalError=i),e},"error"),inherit:s(function(e,r){var i=null;if(r===void 0)r=e,e=Object,i={};else{var n=s(function(){},"ConstructorWrapper");n.prototype=e.prototype,i=new n}return r.constructor===Object&&(r.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),r.constructor.prototype=i,M.update(r.constructor.prototype,r),r.constructor.__super__=e,r.constructor},"inherit"),mixin:s(function(){for(var e=arguments[0],r=1;r<arguments.length;r++)for(var i in arguments[r].prototype){var n=arguments[r].prototype[i];i!=="constructor"&&(e.prototype[i]=n)}return e},"mixin"),hideProperties:s(function(e,r){typeof Object.defineProperty=="function"&&M.arrayEach(r,function(i){Object.defineProperty(e,i,{enumerable:!1,writable:!0,configurable:!0})})},"hideProperties"),property:s(function(e,r,i,n,o){var a={configurable:!0,enumerable:n!==void 0?n:!0};typeof i=="function"&&!o?a.get=i:(a.value=i,a.writable=!0),Object.defineProperty(e,r,a)},"property"),memoizedProperty:s(function(e,r,i,n){var o=null;M.property(e,r,function(){return o===null&&(o=i()),o},n)},"memoizedProperty"),hoistPayloadMember:s(function(e){var r=e.request,i=r.operation,n=r.service.api.operations[i],o=n.output;if(o.payload&&!n.hasEventOutput){var a=o.members[o.payload],u=e.data[o.payload];a.type==="structure"&&M.each(u,function(l,h){M.property(e.data,l,h,!1)})}},"hoistPayloadMember"),computeSha256:s(function(e,r){if(M.isNode()){var i=M.stream.Stream,n=re("fs");if(typeof i=="function"&&e instanceof i)if(typeof e.path=="string"){var o={};typeof e.start=="number"&&(o.start=e.start),typeof e.end=="number"&&(o.end=e.end),e=n.createReadStream(e.path,o)}else return r(new Error("Non-file stream objects are not supported with SigV4"))}M.crypto.sha256(e,"hex",function(a,u){a?r(a):r(null,u)})},"computeSha256"),isClockSkewed:s(function(e){if(e)return M.property(Ct.config,"isClockSkewed",Math.abs(new Date().getTime()-e)>=3e5,!1),Ct.config.isClockSkewed},"isClockSkewed"),applyClockOffset:s(function(e){e&&(Ct.config.systemClockOffset=e-new Date().getTime())},"applyClockOffset"),extractRequestId:s(function(e){var r=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!r&&e.data&&e.data.ResponseMetadata&&(r=e.data.ResponseMetadata.RequestId),r&&(e.requestId=r),e.error&&(e.error.requestId=r)},"extractRequestId"),addPromises:s(function(e,r){var i=!1;r===void 0&&Ct&&Ct.config&&(r=Ct.config.getPromisesDependency()),r===void 0&&typeof Promise<"u"&&(r=Promise),typeof r!="function"&&(i=!0),Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];i?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(r)}},"addPromises"),promisifyMethod:s(function(e,r){return s(function(){var n=this,o=Array.prototype.slice.call(arguments);return new r(function(a,u){o.push(function(l,h){l?u(l):a(h)}),n[e].apply(n,o)})},"promise")},"promisifyMethod"),isDualstackAvailable:s(function(e){if(!e)return!1;var r=ya();return typeof e!="string"&&(e=e.serviceIdentifier),typeof e!="string"||!r.hasOwnProperty(e)?!1:!!r[e].dualstackAvailable},"isDualstackAvailable"),calculateRetryDelay:s(function(e,r,i){r||(r={});var n=r.customBackoff||null;if(typeof n=="function")return n(e,i);var o=typeof r.base=="number"?r.base:100,a=Math.random()*(Math.pow(2,e)*o);return a},"calculateRetryDelay"),handleRequestWithRetries:s(function(e,r,i){r||(r={});var n=Ct.HttpClient.getInstance(),o=r.httpOptions||{},a=0,u=s(function(h){var y=r.maxRetries||0;if(h&&h.code==="TimeoutError"&&(h.retryable=!0),h&&h.retryable&&a<y){var v=M.calculateRetryDelay(a,r.retryDelayOptions,h);if(v>=0){a++,setTimeout(l,v+(h.retryAfter||0));return}}i(h)},"errCallback"),l=s(function(){var h="";n.handleRequest(e,o,function(y){y.on("data",function(v){h+=v.toString()}),y.on("end",function(){var v=y.statusCode;if(v<300)i(null,h);else{var S=parseInt(y.headers["retry-after"],10)*1e3||0,O=M.error(new Error,{statusCode:v,retryable:v>=500||v===429});S&&O.retryable&&(O.retryAfter=S),u(O)}})},u)},"sendRequest");Ct.util.defer(l)},"handleRequestWithRetries"),uuid:{v4:s(function(){return af().v4()},"uuidV4")},convertPayloadToString:s(function(e){var r=e.request,i=r.operation,n=r.service.api.operations[i].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},"convertPayloadToString"),defer:s(function(e){typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick(e):typeof setImmediate=="function"?setImmediate(e):setTimeout(e,0)},"defer"),getRequestPayloadShape:s(function(e){var r=e.service.api.operations;if(r){var i=(r||{})[e.operation];if(!(!i||!i.input||!i.input.payload))return i.input.members[i.input.payload]}},"getRequestPayloadShape"),getProfilesFromSharedConfig:s(function(e,r){var i={},n={};if(process.env[M.configOptInEnv])var n=e.loadFrom({isConfig:!0,filename:process.env[M.sharedConfigFileEnv]});var o={};try{var o=e.loadFrom({filename:r||process.env[M.configOptInEnv]&&process.env[M.sharedCredentialsFileEnv]})}catch(h){if(!process.env[M.configOptInEnv])throw h}for(var a=0,u=Object.keys(n);a<u.length;a++)i[u[a]]=l(i[u[a]]||{},n[u[a]]);for(var a=0,u=Object.keys(o);a<u.length;a++)i[u[a]]=l(i[u[a]]||{},o[u[a]]);return i;function l(h,y){for(var v=0,S=Object.keys(y);v<S.length;v++)h[S[v]]=y[S[v]];return h}},"getProfilesFromSharedConfig"),ARN:{validate:s(function(e){return e&&e.indexOf("arn:")===0&&e.split(":").length>=6},"validateARN"),parse:s(function(e){var r=e.split(":");return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}},"parseARN"),build:s(function(e){if(e.service===void 0||e.region===void 0||e.accountId===void 0||e.resource===void 0)throw M.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource},"buildARN")},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};uf.exports=M});var df=P((aL,ff)=>{var Fv=V().util,cf=re("stream").Transform,lf=Fv.buffer.alloc;function Kn(t){cf.call(this,t),this.currentMessageTotalLength=0,this.currentMessagePendingLength=0,this.currentMessage=null,this.messageLengthBuffer=null}s(Kn,"EventMessageChunkerStream");Kn.prototype=Object.create(cf.prototype);Kn.prototype._transform=function(t,e,r){for(var i=t.length,n=0;n<i;){if(!this.currentMessage){var o=i-n;this.messageLengthBuffer||(this.messageLengthBuffer=lf(4));var a=Math.min(4-this.currentMessagePendingLength,o);if(t.copy(this.messageLengthBuffer,this.currentMessagePendingLength,n,n+a),this.currentMessagePendingLength+=a,n+=a,this.currentMessagePendingLength<4)break;this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)),this.messageLengthBuffer=null}var u=Math.min(this.currentMessageTotalLength-this.currentMessagePendingLength,i-n);t.copy(this.currentMessage,this.currentMessagePendingLength,n,n+u),this.currentMessagePendingLength+=u,n+=u,this.currentMessageTotalLength&&this.currentMessageTotalLength===this.currentMessagePendingLength&&(this.push(this.currentMessage),this.currentMessage=null,this.currentMessageTotalLength=0,this.currentMessagePendingLength=0)}r()};Kn.prototype._flush=function(t){this.currentMessageTotalLength?this.currentMessageTotalLength===this.currentMessagePendingLength?t(null,this.currentMessage):t(new Error("Truncated event message received.")):t()};Kn.prototype.allocateMessage=function(t){if(typeof t!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+t);this.currentMessageTotalLength=t,this.currentMessagePendingLength=4,this.currentMessage=lf(t),this.currentMessage.writeUInt32BE(t,0)};ff.exports={EventMessageChunkerStream:Kn}});var yf=P((cL,mf)=>{var hf=V().util,Wv=hf.buffer.toBuffer;function Xn(t){if(t.length!==8)throw new Error("Int64 buffers must be exactly 8 bytes");hf.Buffer.isBuffer(t)||(t=Wv(t)),this.bytes=t}s(Xn,"Int64");Xn.fromNumber=function(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var e=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)e[r]=i;return t<0&&pf(e),new Xn(e)};Xn.prototype.valueOf=function(){var t=this.bytes.slice(0),e=t[0]&128;return e&&pf(t),parseInt(t.toString("hex"),16)*(e?-1:1)};Xn.prototype.toString=function(){return String(this.valueOf())};function pf(t){for(var e=0;e<8;e++)t[e]^=255;for(var e=7;e>-1&&(t[e]++,t[e]===0);e--);}s(pf,"negate");mf.exports={Int64:Xn}});var Nf=P((fL,gf)=>{var po=V().util,Bv=po.buffer.toBuffer,vf=4,mo=vf*2,Gn=4,Uv=mo+Gn*2;function Vv(t){if(po.Buffer.isBuffer(t)||(t=Bv(t)),t.length<Uv)throw new Error("Provided message too short to accommodate event stream message overhead");if(t.length!==t.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var e=t.readUInt32BE(mo);if(e!==po.crypto.crc32(t.slice(0,mo)))throw new Error("The prelude checksum specified in the message ("+e+") does not match the calculated CRC32 checksum.");var r=t.readUInt32BE(t.length-Gn);if(r!==po.crypto.crc32(t.slice(0,t.length-Gn)))throw new Error("The message checksum did not match the expected value of "+r);var i=mo+Gn,n=i+t.readUInt32BE(vf);return{headers:t.slice(i,n),body:t.slice(n,t.length-Gn)}}s(Vv,"splitMessage");gf.exports={splitMessage:Vv}});var Cf=P((hL,Ef)=>{var wf=yf().Int64,zv=Nf().splitMessage,xf="boolean",Hv="byte",jv="short",Kv="integer",Xv="long",Gv="binary",Jv="string",$v="timestamp",Yv="uuid";function Qv(t){for(var e={},r=0;r<t.length;){var i=t.readUInt8(r++),n=t.slice(r,r+i).toString();switch(r+=i,t.readUInt8(r++)){case 0:e[n]={type:xf,value:!0};break;case 1:e[n]={type:xf,value:!1};break;case 2:e[n]={type:Hv,value:t.readInt8(r++)};break;case 3:e[n]={type:jv,value:t.readInt16BE(r)},r+=2;break;case 4:e[n]={type:Kv,value:t.readInt32BE(r)},r+=4;break;case 5:e[n]={type:Xv,value:new wf(t.slice(r,r+8))},r+=8;break;case 6:var o=t.readUInt16BE(r);r+=2,e[n]={type:Gv,value:t.slice(r,r+o)},r+=o;break;case 7:var a=t.readUInt16BE(r);r+=2,e[n]={type:Jv,value:t.slice(r,r+a).toString()},r+=a;break;case 8:e[n]={type:$v,value:new Date(new wf(t.slice(r,r+8)).valueOf())},r+=8;break;case 9:var u=t.slice(r,r+16).toString("hex");r+=16,e[n]={type:Yv,value:u.substr(0,8)+"-"+u.substr(8,4)+"-"+u.substr(12,4)+"-"+u.substr(16,4)+"-"+u.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return e}s(Qv,"parseHeaders");function Zv(t){var e=zv(t);return{headers:Qv(e.headers),body:e.body}}s(Zv,"parseMessage");Ef.exports={parseMessage:Zv}});var La=P((mL,Sf)=>{var eg=Cf().parseMessage;function tg(t,e,r){var i=eg(e),n=i.headers[":message-type"];if(n){if(n.value==="error")throw rg(i);if(n.value!=="event")return}var o=i.headers[":event-type"],a=r.members[o.value];if(a){var u={},l=a.eventPayloadMemberName;if(l){var h=a.members[l];h.type==="binary"?u[l]=i.body:u[l]=t.parse(i.body.toString(),h)}for(var y=a.eventHeaderMemberNames,v=0;v<y.length;v++){var S=y[v];i.headers[S]&&(u[S]=a.members[S].toType(i.headers[S].value))}var O={};return O[o.value]=u,O}}s(tg,"parseEvent");function rg(t){var e=t.headers[":error-code"],r=t.headers[":error-message"],i=new Error(r.value||r);return i.code=i.name=e.value||e,i}s(rg,"parseError");Sf.exports={parseEvent:tg}});var Af=P((vL,bf)=>{var Tf=re("stream").Transform,ig=La().parseEvent;function Ma(t){t=t||{},t.readableObjectMode=!0,Tf.call(this,t),this._readableState.objectMode=!0,this.parser=t.parser,this.eventStreamModel=t.eventStreamModel}s(Ma,"EventUnmarshallerStream");Ma.prototype=Object.create(Tf.prototype);Ma.prototype._transform=function(t,e,r){try{var i=ig(this.parser,t,this.eventStreamModel);return this.push(i),r()}catch(n){r(n)}};bf.exports={EventUnmarshallerStream:Ma}});var Of=P((NL,If)=>{var ng=df().EventMessageChunkerStream,sg=Af().EventUnmarshallerStream;function og(t,e,r){var i=new sg({parser:e,eventStreamModel:r}),n=new ng;return t.pipe(n).pipe(i),t.on("error",function(o){n.emit("error",o)}),n.on("error",function(o){i.emit("error",o)}),i}s(og,"createEventStream");If.exports={createEventStream:og}});var Df=P((xL,Rf)=>{function ag(t){for(var e=[],r=0;r<t.length;){var i=t.readInt32BE(r),n=t.slice(r,i+r);r+=i,e.push(n)}return e}s(ag,"eventMessageChunker");Rf.exports={eventMessageChunker:ag}});var _f=P((CL,Pf)=>{var ug=Df().eventMessageChunker,cg=La().parseEvent;function lg(t,e,r){for(var i=ug(t),n=[],o=0;o<i.length;o++)n.push(cg(e,i[o],r));return n}s(lg,"createEventStream");Pf.exports={createEventStream:lg}});var qf=P((TL,kf)=>{kf.exports={now:s(function(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6},"now")}});var Mf=P((AL,Lf)=>{var fg=V().util,dg=re("dgram"),hg=fg.buffer.toBuffer,pg=1024*8;function hi(t){t=t||{},this.enabled=t.enabled||!1,this.port=t.port||31e3,this.clientId=t.clientId||"",this.address=t.host||"127.0.0.1",this.clientId.length>255&&(this.clientId=this.clientId.substr(0,255)),this.messagesInFlight=0}s(hi,"Publisher");hi.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};hi.prototype.trimFields=function(t){for(var e=Object.keys(this.fieldsToTrim),r=0,i=e.length;r<i;r++){var n=e[r];if(t.hasOwnProperty(n)){var o=this.fieldsToTrim[n],a=t[n];a&&a.length>o&&(t[n]=a.substr(0,o))}}return t};hi.prototype.eventHandler=function(t){t.ClientId=this.clientId,this.trimFields(t);var e=hg(JSON.stringify(t));!this.enabled||e.length>pg||this.publishDatagram(e)};hi.prototype.publishDatagram=function(t){var e=this,r=this.getClient();this.messagesInFlight++,this.client.send(t,0,t.length,this.port,this.address,function(i,n){--e.messagesInFlight<=0&&e.destroyClient()})};hi.prototype.getClient=function(){return this.client||(this.client=dg.createSocket("udp4")),this.client};hi.prototype.destroyClient=function(){this.client&&(this.client.close(),this.client=void 0)};Lf.exports={Publisher:hi}});var Bf=P((OL,Wf)=>{var Fa=V();function mg(){var t={port:void 0,clientId:void 0,enabled:void 0,host:void 0};return yg(t)||vg(t),Ff(t)}s(mg,"resolveMonitoringConfig");function yg(t){return t.port=t.port||process.env.AWS_CSM_PORT,t.enabled=t.enabled||process.env.AWS_CSM_ENABLED,t.clientId=t.clientId||process.env.AWS_CSM_CLIENT_ID,t.host=t.host||process.env.AWS_CSM_HOST,t.port&&t.enabled&&t.clientId&&t.host||["false","0"].indexOf(t.enabled)>=0}s(yg,"fromEnvironment");function vg(t){var e;try{var r=Fa.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[Fa.util.sharedConfigFileEnv]}),e=r[process.env.AWS_PROFILE||Fa.util.defaultProfile]}catch{return!1}return e?(t.port=t.port||e.csm_port,t.enabled=t.enabled||e.csm_enabled,t.clientId=t.clientId||e.csm_client_id,t.host=t.host||e.csm_host,t.port&&t.enabled&&t.clientId&&t.host):t}s(vg,"fromConfigFile");function Ff(t){var e=["false","0",void 0];return!t.enabled||e.indexOf(t.enabled.toLowerCase())>=0?t.enabled=!1:t.enabled=!0,t.port=t.port?parseInt(t.port,10):void 0,t}s(Ff,"toJSType");Wf.exports=mg});var Wa=P((DL,zf)=>{var Xi=V(),Uf=re("os"),gg=re("path");function Vf(t){return Xi.util.ini.parse(Xi.util.readFileSync(t))}s(Vf,"parseFile");function Ng(t){var e={};return Object.keys(t).forEach(function(r){/^sso-session\s/.test(r)||Object.defineProperty(e,r.replace(/^profile\s/,""),{value:t[r],enumerable:!0})}),e}s(Ng,"getProfiles");function wg(t){var e={};return Object.keys(t).forEach(function(r){/^sso-session\s/.test(r)&&Object.defineProperty(e,r.replace(/^sso-session\s/,""),{value:t[r],enumerable:!0})}),e}s(wg,"getSsoSessions");Xi.IniLoader=Xi.util.inherit({constructor:s(function(){this.resolvedProfiles={},this.resolvedSsoSessions={}},"IniLoader"),clearCachedFiles:s(function(){this.resolvedProfiles={},this.resolvedSsoSessions={}},"clearCachedFiles"),loadFrom:s(function(e){e=e||{};var r=e.isConfig===!0,i=e.filename||this.getDefaultFilePath(r);if(!this.resolvedProfiles[i]){var n=Vf(i);r?Object.defineProperty(this.resolvedProfiles,i,{value:Ng(n)}):Object.defineProperty(this.resolvedProfiles,i,{value:n})}return this.resolvedProfiles[i]},"loadFrom"),loadSsoSessionsFrom:s(function(e){e=e||{};var r=e.filename||this.getDefaultFilePath(!0);if(!this.resolvedSsoSessions[r]){var i=Vf(r);Object.defineProperty(this.resolvedSsoSessions,r,{value:wg(i)})}return this.resolvedSsoSessions[r]},"loadSsoSessionsFrom"),getDefaultFilePath:s(function(e){return gg.join(this.getHomeDir(),".aws",e?"config":"credentials")},"getDefaultFilePath"),getHomeDir:s(function(){var e=process.env,r=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(r)return r;if(typeof Uf.homedir=="function")return Uf.homedir();throw Xi.util.error(new Error("Cannot load credentials, HOME path not set"))},"getHomeDir")});var xg=Xi.IniLoader;zf.exports={IniLoader:xg}});var jf=P((_L,Hf)=>{var Eg=Wa().IniLoader;Hf.exports.iniLoader=new Eg});var Xf=P((kL,Kf)=>{var Jn=V();function Ba(t,e){if(typeof t=="string"){if(["legacy","regional"].indexOf(t.toLowerCase())>=0)return t.toLowerCase();throw Jn.util.error(new Error,e)}}s(Ba,"validateRegionalEndpointsFlagValue");function Cg(t,e){t=t||{};var r;if(t[e.clientConfig]&&(r=Ba(t[e.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+e.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+t[e.clientConfig]+'".'}),r)||!Jn.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,e.env)){var i=process.env[e.env];if(r=Ba(i,{code:"InvalidEnvironmentalVariable",message:"invalid "+e.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[e.env]+'".'}),r)return r}var n={};try{var o=Jn.util.getProfilesFromSharedConfig(Jn.util.iniLoader);n=o[process.env.AWS_PROFILE||Jn.util.defaultProfile]}catch{}if(n&&Object.prototype.hasOwnProperty.call(n,e.sharedConfig)){var a=n[e.sharedConfig];if(r=Ba(a,{code:"InvalidConfiguration",message:"invalid "+e.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+n[e.sharedConfig]+'".'}),r)return r}return r}s(Cg,"resolveRegionalEndpointsFlag");Kf.exports=Cg});var Gf=P(()=>{var yo=V(),Sg=Xf(),Tg="AWS_STS_REGIONAL_ENDPOINTS",bg="sts_regional_endpoints";yo.util.update(yo.STS.prototype,{credentialsFrom:s(function(e,r){return e?(r||(r=new yo.TemporaryCredentials),r.expired=!1,r.accessKeyId=e.Credentials.AccessKeyId,r.secretAccessKey=e.Credentials.SecretAccessKey,r.sessionToken=e.Credentials.SessionToken,r.expireTime=e.Credentials.Expiration,r):null},"credentialsFrom"),assumeRoleWithWebIdentity:s(function(e,r){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,r)},"assumeRoleWithWebIdentity"),assumeRoleWithSAML:s(function(e,r){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,r)},"assumeRoleWithSAML"),setupRequestListeners:s(function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},"setupRequestListeners"),optInRegionalEndpoint:s(function(e){var r=e.service,i=r.config;if(i.stsRegionalEndpoints=Sg(r._originalConfig,{env:Tg,sharedConfig:bg,clientConfig:"stsRegionalEndpoints"}),i.stsRegionalEndpoints==="regional"&&r.isGlobalEndpoint){if(!i.region)throw yo.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var n=i.endpoint.indexOf(".amazonaws.com"),o=i.endpoint.substring(0,n)+"."+i.region+i.endpoint.substring(n);e.httpRequest.updateEndpoint(o),e.httpRequest.region=i.region}},"optInRegionalEndpoint")})});var Jf=P((WL,Ag)=>{Ag.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{},SourceIdentity:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Si"},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},SourceIdentity:{}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Si"},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{},SourceIdentity:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Si"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{},SourceIdentity:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Si"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Si"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Si:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sn:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}});var $f=P((BL,Ig)=>{Ig.exports={pagination:{}}});var Vr=P((UL,Qf)=>{go();var vo=V(),Og=vo.Service,Yf=vo.apiLoader;Yf.services.sts={};vo.STS=Og.defineService("sts",["2011-06-15"]);Gf();Object.defineProperty(Yf.services.sts,"2011-06-15",{get:s(function(){var e=Jf();return e.paginators=$f().pagination,e},"get"),enumerable:!0,configurable:!0});Qf.exports=vo.STS});var Zf=P(()=>{var pi=V(),Rg=Vr();pi.TemporaryCredentials=pi.util.inherit(pi.Credentials,{constructor:s(function(e,r){pi.Credentials.call(this),this.loadMasterCredentials(r),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},"TemporaryCredentials"),refresh:s(function(e){this.coalesceRefresh(e||pi.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.masterCredentials.get(function(){r.service.config.credentials=r.masterCredentials;var i=r.params.RoleArn?r.service.assumeRole:r.service.getSessionToken;i.call(r.service,function(n,o){n||r.service.credentialsFrom(o,r),e(n)})})},"load"),loadMasterCredentials:s(function(e){for(this.masterCredentials=e||pi.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;typeof this.masterCredentials.get!="function"&&(this.masterCredentials=new pi.Credentials(this.masterCredentials))},"loadMasterCredentials"),createClients:function(){this.service=this.service||new Rg({params:this.params})}})});var ed=P(()=>{var Zt=V(),Dg=Vr();Zt.ChainableTemporaryCredentials=Zt.util.inherit(Zt.Credentials,{constructor:s(function(e){Zt.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var r=Zt.util.copy(e.params)||{};if(r.RoleArn&&(r.RoleSessionName=r.RoleSessionName||"temporary-credentials"),r.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!="function")throw new Zt.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var i=Zt.util.merge({params:r,credentials:e.masterCredentials||Zt.config.credentials},e.stsConfig||{});this.service=new Dg(i)},"ChainableTemporaryCredentials"),refresh:s(function(e){this.coalesceRefresh(e||Zt.util.fn.callback)},"refresh"),load:s(function(e){var r=this,i=r.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(n,o){var a={};if(n){e(n);return}o&&(a.TokenCode=o),r.service[i](a,function(u,l){u||r.service.credentialsFrom(l,r),e(u)})})},"load"),getTokenCode:s(function(e){var r=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;i instanceof Error&&(o=i.message),e(Zt.util.error(new Error("Error fetching MFA token: "+o),{code:r.errorCode}));return}e(null,n)}):e(null)},"getTokenCode")})});var td=P(()=>{var mi=V(),Pg=Vr();mi.WebIdentityCredentials=mi.util.inherit(mi.Credentials,{constructor:s(function(e,r){mi.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=mi.util.copy(r||{})},"WebIdentityCredentials"),refresh:s(function(e){this.coalesceRefresh(e||mi.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.service.assumeRoleWithWebIdentity(function(i,n){r.data=null,i||(r.data=n,r.service.credentialsFrom(n,r)),e(i)})},"load"),createClients:function(){if(!this.service){var t=mi.util.merge({},this._clientConfig);t.params=this.params,this.service=new Pg(t)}}})});var rd=P((QL,_g)=>{_g.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}},authtype:"none"},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}},authtype:"none"},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},authtype:"none"},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},PrincipalTags:{shape:"S1s"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetPrincipalTagAttributeMap:{input:{type:"structure",required:["IdentityPoolId","IdentityProviderName"],members:{IdentityPoolId:{},IdentityProviderName:{}}},output:{type:"structure",members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},SetPrincipalTagAttributeMap:{input:{type:"structure",required:["IdentityPoolId","IdentityProviderName"],members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}},output:{type:"structure",members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}},authtype:"none"},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}},S1s:{type:"map",key:{},value:{}}}}});var id=P((ZL,kg)=>{kg.exports={pagination:{ListIdentityPools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"IdentityPools"}}}});var od=P((eM,sd)=>{go();var No=V(),qg=No.Service,nd=No.apiLoader;nd.services.cognitoidentity={};No.CognitoIdentity=qg.defineService("cognitoidentity",["2014-06-30"]);Object.defineProperty(nd.services.cognitoidentity,"2014-06-30",{get:s(function(){var e=rd();return e.paginators=id().pagination,e},"get"),enumerable:!0,configurable:!0});sd.exports=No.CognitoIdentity});var ad=P(()=>{var Ft=V(),Lg=od(),Mg=Vr();Ft.CognitoIdentityCredentials=Ft.util.inherit(Ft.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:s(function(e,r){Ft.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=Ft.util.copy(r||{}),this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){return i.loadCachedId(),i._identityId||i.params.IdentityId},set:function(n){i._identityId=n}})},"CognitoIdentityCredentials"),refresh:s(function(e){this.coalesceRefresh(e||Ft.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.data=null,r._identityId=null,r.getId(function(i){i?(r.clearIdOnNotAuthorized(i),e(i)):r.params.RoleArn?r.getCredentialsFromSTS(e):r.getCredentialsForIdentity(e)})},"load"),clearCachedId:s(function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,r=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+r],delete this.storage[this.localStorageKey.providers+e+r]},"clearCache"),clearIdOnNotAuthorized:s(function(e){var r=this;e.code=="NotAuthorizedException"&&r.clearCachedId()},"clearIdOnNotAuthorized"),getId:s(function(e){var r=this;if(typeof r.params.IdentityId=="string")return e(null,r.params.IdentityId);r.cognito.getId(function(i,n){!i&&n.IdentityId?(r.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(i)})},"getId"),loadCredentials:s(function(e,r){!e||!r||(r.expired=!1,r.accessKeyId=e.Credentials.AccessKeyId,r.secretAccessKey=e.Credentials.SecretKey,r.sessionToken=e.Credentials.SessionToken,r.expireTime=e.Credentials.Expiration)},"loadCredentials"),getCredentialsForIdentity:s(function(e){var r=this;r.cognito.getCredentialsForIdentity(function(i,n){i?r.clearIdOnNotAuthorized(i):(r.cacheId(n),r.data=n,r.loadCredentials(r.data,r)),e(i)})},"getCredentialsForIdentity"),getCredentialsFromSTS:s(function(e){var r=this;r.cognito.getOpenIdToken(function(i,n){i?(r.clearIdOnNotAuthorized(i),e(i)):(r.cacheId(n),r.params.WebIdentityToken=n.Token,r.webIdentityCredentials.refresh(function(o){o||(r.data=r.webIdentityCredentials.data,r.sts.credentialsFrom(r.data,r)),e(o)}))})},"getCredentialsFromSTS"),loadCachedId:s(function(){var e=this;if(Ft.util.isBrowser()&&!e.params.IdentityId){var r=e.getStorage("id");if(r&&e.params.Logins){var i=Object.keys(e.params.Logins),n=(e.getStorage("providers")||"").split(","),o=n.filter(function(a){return i.indexOf(a)!==-1});o.length!==0&&(e.params.IdentityId=r)}else r&&(e.params.IdentityId=r)}},"loadCachedId"),createClients:function(){var t=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new Ft.WebIdentityCredentials(this.params,t),!this.cognito){var e=Ft.util.merge({},t);e.params=this.params,this.cognito=new Lg(e)}this.sts=this.sts||new Mg(t)},cacheId:s(function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,Ft.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},"cacheId"),getStorage:s(function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},"getStorage"),setStorage:s(function(e,r){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=r}catch{}},"setStorage"),storage:function(){try{var t=Ft.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage=="object"?window.localStorage:{};return t["aws.test-storage"]="foobar",delete t["aws.test-storage"],t}catch{return{}}}()})});var ud=P(()=>{var $n=V(),Fg=Vr();$n.SAMLCredentials=$n.util.inherit($n.Credentials,{constructor:s(function(e){$n.Credentials.call(this),this.expired=!0,this.params=e},"SAMLCredentials"),refresh:s(function(e){this.coalesceRefresh(e||$n.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.service.assumeRoleWithSAML(function(i,n){i||r.service.credentialsFrom(n,r),e(i)})},"load"),createClients:function(){this.service=this.service||new Fg({params:this.params})}})});var Ua=P(()=>{var lt=V(),Wg=re("child_process"),cd=lt.util.iniLoader;lt.ProcessCredentials=lt.util.inherit(lt.Credentials,{constructor:s(function(e){lt.Credentials.call(this),e=e||{},this.filename=e.filename,this.profile=e.profile||process.env.AWS_PROFILE||lt.util.defaultProfile,this.get(e.callback||lt.util.fn.noop)},"ProcessCredentials"),load:s(function(e){var r=this;try{var i=lt.util.getProfilesFromSharedConfig(cd,this.filename),n=i[this.profile]||{};if(Object.keys(n).length===0)throw lt.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"});if(n.credential_process)this.loadViaCredentialProcess(n,function(o,a){o?e(o,null):(r.expired=!1,r.accessKeyId=a.AccessKeyId,r.secretAccessKey=a.SecretAccessKey,r.sessionToken=a.SessionToken,a.Expiration&&(r.expireTime=new Date(a.Expiration)),e(null))});else throw lt.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}catch(o){e(o)}},"load"),loadViaCredentialProcess:s(function(e,r){Wg.exec(e.credential_process,{env:process.env},function(i,n,o){if(i)r(lt.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null);else try{var a=JSON.parse(n);if(a.Expiration){var u=lt.util.date.getDate(),l=new Date(a.Expiration);if(l<u)throw Error("credential_process returned expired credentials")}if(a.Version!==1)throw Error("credential_process does not return Version == 1");r(null,a)}catch(h){r(lt.util.error(new Error(h.message),{code:"ProcessCredentialsProviderFailure"}),null)}})},"loadViaCredentialProcess"),refresh:s(function(e){cd.clearCachedFiles(),this.coalesceRefresh(e||lt.util.fn.callback)},"refresh")})});var wo=P(Va=>{(function(){Va.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
16
|
+
`);Oa.exports={suppress:!1};function Qy(){typeof process<"u"&&typeof process.emitWarning=="function"&&process.emitWarning(Yy,{type:"NOTE"})}s(Qy,"emitWarning");setTimeout(function(){Oa.exports.suppress||Qy()},0)});var V=P((Fq,jl)=>{var wr={util:Oe()},Zy={};Zy.toString();jl.exports=wr;wr.util.update(wr,{VERSION:"2.1326.0",Signers:{},Protocol:{Json:Ws(),Query:aa(),Rest:qn(),RestJson:la(),RestXml:da()},XML:{Builder:Uc(),Parser:null},JSON:{Builder:qs(),Parser:Ms()},Model:{Api:va(),Operation:ha(),Shape:_n(),Paginator:pa(),ResourceWaiter:ma()},apiLoader:$c(),EndpointCache:Qc().EndpointCache});wa();sl();ol();Gs();vl();xl();Cl();Tl();Vl();zl();Hl();wr.events=new wr.SequentialExecutor;wr.util.memoizedProperty(wr,"endpointCache",function(){return new wr.EndpointCache(wr.config.endpointCacheSize)},!0)});var Da=P(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=rv;var ev=tv(re("crypto"));function tv(t){return t&&t.__esModule?t:{default:t}}s(tv,"_interopRequireDefault");function rv(){return ev.default.randomBytes(16)}s(rv,"rng")});var so=P(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var Kl=[];for(jn=0;jn<256;++jn)Kl[jn]=(jn+256).toString(16).substr(1);var jn;function iv(t,e){var r=e||0,i=Kl;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}s(iv,"bytesToUuid");var nv=iv;no.default=nv});var Jl=P(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var sv=Gl(Da()),ov=Gl(so());function Gl(t){return t&&t.__esModule?t:{default:t}}s(Gl,"_interopRequireDefault");var Xl,Pa,_a=0,ka=0;function av(t,e,r){var i=e&&r||0,n=e||[];t=t||{};var o=t.node||Xl,a=t.clockseq!==void 0?t.clockseq:Pa;if(o==null||a==null){var u=t.random||(t.rng||sv.default)();o==null&&(o=Xl=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),a==null&&(a=Pa=(u[6]<<8|u[7])&16383)}var l=t.msecs!==void 0?t.msecs:new Date().getTime(),h=t.nsecs!==void 0?t.nsecs:ka+1,y=l-_a+(h-ka)/1e4;if(y<0&&t.clockseq===void 0&&(a=a+1&16383),(y<0||l>_a)&&t.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_a=l,ka=h,Pa=a,l+=122192928e5;var v=((l&268435455)*1e4+h)%4294967296;n[i++]=v>>>24&255,n[i++]=v>>>16&255,n[i++]=v>>>8&255,n[i++]=v&255;var S=l/4294967296*1e4&268435455;n[i++]=S>>>8&255,n[i++]=S&255,n[i++]=S>>>24&15|16,n[i++]=S>>>16&255,n[i++]=a>>>8|128,n[i++]=a&255;for(var O=0;O<6;++O)n[i+O]=o[O];return e||(0,ov.default)(n)}s(av,"v1");var uv=av;oo.default=uv});var qa=P(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.default=hv;di.URL=di.DNS=void 0;var cv=lv(so());function lv(t){return t&&t.__esModule?t:{default:t}}s(lv,"_interopRequireDefault");function fv(t){var e=[];return t.replace(/[a-fA-F0-9]{2}/g,function(r){e.push(parseInt(r,16))}),e}s(fv,"uuidToBytes");function dv(t){t=unescape(encodeURIComponent(t));for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}s(dv,"stringToBytes");var $l="6ba7b810-9dad-11d1-80b4-00c04fd430c8";di.DNS=$l;var Yl="6ba7b811-9dad-11d1-80b4-00c04fd430c8";di.URL=Yl;function hv(t,e,r){var i=s(function(n,o,a,u){var l=a&&u||0;if(typeof n=="string"&&(n=dv(n)),typeof o=="string"&&(o=fv(o)),!Array.isArray(n))throw TypeError("value must be an array of bytes");if(!Array.isArray(o)||o.length!==16)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var h=r(o.concat(n));if(h[6]=h[6]&15|e,h[8]=h[8]&63|128,a)for(var y=0;y<16;++y)a[l+y]=h[y];return a||(0,cv.default)(h)},"generateUUID");try{i.name=t}catch{}return i.DNS=$l,i.URL=Yl,i}s(hv,"_default")});var Ql=P(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var pv=mv(re("crypto"));function mv(t){return t&&t.__esModule?t:{default:t}}s(mv,"_interopRequireDefault");function yv(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),pv.default.createHash("md5").update(t).digest()}s(yv,"md5");var vv=yv;ao.default=vv});var ef=P(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var gv=Zl(qa()),Nv=Zl(Ql());function Zl(t){return t&&t.__esModule?t:{default:t}}s(Zl,"_interopRequireDefault");var wv=(0,gv.default)("v3",48,Nv.default),xv=wv;uo.default=xv});var rf=P(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var Ev=tf(Da()),Cv=tf(so());function tf(t){return t&&t.__esModule?t:{default:t}}s(tf,"_interopRequireDefault");function Sv(t,e,r){var i=e&&r||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var n=t.random||(t.rng||Ev.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e)for(var o=0;o<16;++o)e[i+o]=n[o];return e||(0,Cv.default)(n)}s(Sv,"v4");var Tv=Sv;co.default=Tv});var nf=P(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var bv=Av(re("crypto"));function Av(t){return t&&t.__esModule?t:{default:t}}s(Av,"_interopRequireDefault");function Iv(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),bv.default.createHash("sha1").update(t).digest()}s(Iv,"sha1");var Ov=Iv;lo.default=Ov});var of=P(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=void 0;var Rv=sf(qa()),Dv=sf(nf());function sf(t){return t&&t.__esModule?t:{default:t}}s(sf,"_interopRequireDefault");var Pv=(0,Rv.default)("v5",80,Dv.default),_v=Pv;fo.default=_v});var af=P(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Object.defineProperty(Ki,"v1",{enumerable:!0,get:function(){return kv.default}});Object.defineProperty(Ki,"v3",{enumerable:!0,get:function(){return qv.default}});Object.defineProperty(Ki,"v4",{enumerable:!0,get:function(){return Lv.default}});Object.defineProperty(Ki,"v5",{enumerable:!0,get:function(){return Mv.default}});var kv=ho(Jl()),qv=ho(ef()),Lv=ho(rf()),Mv=ho(of());function ho(t){return t&&t.__esModule?t:{default:t}}s(ho,"_interopRequireDefault")});var Oe=P((sL,uf)=>{var Ct,M={environment:"nodejs",engine:s(function(){if(M.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},"engine"),userAgent:s(function(){var e=M.environment,r="aws-sdk-"+e+"/"+V().VERSION;return e==="nodejs"&&(r+=" "+M.engine()),r},"userAgent"),uriEscape:s(function(e){var r=encodeURIComponent(e);return r=r.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),r=r.replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()}),r},"uriEscape"),uriEscapePath:s(function(e){var r=[];return M.arrayEach(e.split("/"),function(i){r.push(M.uriEscape(i))}),r.join("/")},"uriEscapePath"),urlParse:s(function(e){return M.url.parse(e)},"urlParse"),urlFormat:s(function(e){return M.url.format(e)},"urlFormat"),queryStringParse:s(function(e){return M.querystring.parse(e)},"queryStringParse"),queryParamsToString:s(function(e){var r=[],i=M.uriEscape,n=Object.keys(e).sort();return M.arrayEach(n,function(o){var a=e[o],u=i(o),l=u+"=";if(Array.isArray(a)){var h=[];M.arrayEach(a,function(y){h.push(i(y))}),l=u+"="+h.sort().join("&"+u+"=")}else a!=null&&(l=u+"="+i(a));r.push(l)}),r.join("&")},"queryParamsToString"),readFileSync:s(function(e){return M.isBrowser()?null:re("fs").readFileSync(e,"utf-8")},"readFileSync"),base64:{encode:s(function(e){if(typeof e=="number")throw M.error(new Error("Cannot base64 encode number "+e));if(e===null||typeof e>"u")return e;var r=M.buffer.toBuffer(e);return r.toString("base64")},"encode64"),decode:s(function(e){if(typeof e=="number")throw M.error(new Error("Cannot base64 decode number "+e));return e===null||typeof e>"u"?e:M.buffer.toBuffer(e,"base64")},"decode64")},buffer:{toBuffer:function(t,e){return typeof M.Buffer.from=="function"&&M.Buffer.from!==Uint8Array.from?M.Buffer.from(t,e):new M.Buffer(t,e)},alloc:function(t,e,r){if(typeof t!="number")throw new Error("size passed to alloc must be a number.");if(typeof M.Buffer.alloc=="function")return M.Buffer.alloc(t,e,r);var i=new M.Buffer(t);return e!==void 0&&typeof i.fill=="function"&&i.fill(e,void 0,void 0,r),i},toStream:s(function(e){M.Buffer.isBuffer(e)||(e=M.buffer.toBuffer(e));var r=new M.stream.Readable,i=0;return r._read=function(n){if(i>=e.length)return r.push(null);var o=i+n;o>e.length&&(o=e.length),r.push(e.slice(i,o)),i=o},r},"toStream"),concat:function(t){var e=0,r=0,i=null,n;for(n=0;n<t.length;n++)e+=t[n].length;for(i=M.buffer.alloc(e),n=0;n<t.length;n++)t[n].copy(i,r),r+=t[n].length;return i}},string:{byteLength:s(function(e){if(e==null)return 0;if(typeof e=="string"&&(e=M.buffer.toBuffer(e)),typeof e.byteLength=="number")return e.byteLength;if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")return re("fs").lstatSync(e.path).size;throw M.error(new Error("Cannot determine length of "+e),{object:e})},"byteLength"),upperFirst:s(function(e){return e[0].toUpperCase()+e.substr(1)},"upperFirst"),lowerFirst:s(function(e){return e[0].toLowerCase()+e.substr(1)},"lowerFirst")},ini:{parse:s(function(e){var r,i={};return M.arrayEach(e.split(/\r?\n/),function(n){n=n.split(/(^|\s)[;#]/)[0].trim();var o=n[0]==="["&&n[n.length-1]==="]";if(o){if(r=n.substring(1,n.length-1),r==="__proto__"||r.split(/\s/)[1]==="__proto__")throw M.error(new Error("Cannot load profile name '"+r+"' from shared ini file."))}else if(r){var a=n.indexOf("="),u=0,l=n.length-1,h=a!==-1&&a!==u&&a!==l;if(h){var y=n.substring(0,a).trim(),v=n.substring(a+1).trim();i[r]=i[r]||{},i[r][y]=v}}}),i},"string")},fn:{noop:function(){},callback:function(t){if(t)throw t},makeAsync:s(function(e,r){return r&&r<=e.length?e:function(){var i=Array.prototype.slice.call(arguments,0),n=i.pop(),o=e.apply(null,i);n(o)}},"makeAsync")},date:{getDate:s(function(){return Ct||(Ct=V()),Ct.config.systemClockOffset?new Date(new Date().getTime()+Ct.config.systemClockOffset):new Date},"getDate"),iso8601:s(function(e){return e===void 0&&(e=M.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},"iso8601"),rfc822:s(function(e){return e===void 0&&(e=M.date.getDate()),e.toUTCString()},"rfc822"),unixTimestamp:s(function(e){return e===void 0&&(e=M.date.getDate()),e.getTime()/1e3},"unixTimestamp"),from:s(function(e){return typeof e=="number"?new Date(e*1e3):new Date(e)},"format"),format:s(function(e,r){return r||(r="iso8601"),M.date[r](M.date.from(e))},"format"),parseTimestamp:s(function(e){if(typeof e=="number")return new Date(e*1e3);if(e.match(/^\d+$/))return new Date(e*1e3);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw M.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})},"parseTimestamp")},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:s(function(e){var r=M.crypto.crc32Table,i=-1;typeof e=="string"&&(e=M.buffer.toBuffer(e));for(var n=0;n<e.length;n++){var o=e.readUInt8(n);i=i>>>8^r[(i^o)&255]}return(i^-1)>>>0},"crc32"),hmac:s(function(e,r,i,n){return i||(i="binary"),i==="buffer"&&(i=void 0),n||(n="sha256"),typeof r=="string"&&(r=M.buffer.toBuffer(r)),M.crypto.lib.createHmac(n,e).update(r).digest(i)},"hmac"),md5:s(function(e,r,i){return M.crypto.hash("md5",e,r,i)},"md5"),sha256:s(function(e,r,i){return M.crypto.hash("sha256",e,r,i)},"sha256"),hash:function(t,e,r,i){var n=M.crypto.createHash(t);r||(r="binary"),r==="buffer"&&(r=void 0),typeof e=="string"&&(e=M.buffer.toBuffer(e));var o=M.arraySliceFn(e),a=M.Buffer.isBuffer(e);if(M.isBrowser()&&typeof ArrayBuffer<"u"&&e&&e.buffer instanceof ArrayBuffer&&(a=!0),i&&typeof e=="object"&&typeof e.on=="function"&&!a)e.on("data",function(v){n.update(v)}),e.on("error",function(v){i(v)}),e.on("end",function(){i(null,n.digest(r))});else if(i&&o&&!a&&typeof FileReader<"u"){var u=0,l=1024*512,h=new FileReader;h.onerror=function(){i(new Error("Failed to read data."))},h.onload=function(){var v=new M.Buffer(new Uint8Array(h.result));n.update(v),u+=v.length,h._continueReading()},h._continueReading=function(){if(u>=e.size){i(null,n.digest(r));return}var v=u+l;v>e.size&&(v=e.size),h.readAsArrayBuffer(o.call(e,u,v))},h._continueReading()}else{M.isBrowser()&&typeof e=="object"&&!a&&(e=new M.Buffer(new Uint8Array(e)));var y=n.update(e).digest(r);return i&&i(null,y),y}},toHex:s(function(e){for(var r=[],i=0;i<e.length;i++)r.push(("0"+e.charCodeAt(i).toString(16)).substr(-2,2));return r.join("")},"toHex"),createHash:s(function(e){return M.crypto.lib.createHash(e)},"createHash")},abort:{},each:s(function(e,r){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r.call(this,i,e[i]);if(n===M.abort)break}},"each"),arrayEach:s(function(e,r){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r.call(this,e[i],parseInt(i,10));if(n===M.abort)break}},"arrayEach"),update:s(function(e,r){return M.each(r,s(function(n,o){e[n]=o},"iterator")),e},"update"),merge:s(function(e,r){return M.update(M.copy(e),r)},"merge"),copy:s(function(e){if(e==null)return e;var r={};for(var i in e)r[i]=e[i];return r},"copy"),isEmpty:s(function(e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))return!1;return!0},"isEmpty"),arraySliceFn:s(function(e){var r=e.slice||e.webkitSlice||e.mozSlice;return typeof r=="function"?r:null},"arraySliceFn"),isType:s(function(e,r){return typeof r=="function"&&(r=M.typeName(r)),Object.prototype.toString.call(e)==="[object "+r+"]"},"isType"),typeName:s(function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var r=e.toString(),i=r.match(/^\s*function (.+)\(/);return i?i[1]:r},"typeName"),error:s(function(e,r){var i=null;return typeof e.message=="string"&&e.message!==""&&(typeof r=="string"||r&&r.message)&&(i=M.copy(e),i.message=e.message),e.message=e.message||null,typeof r=="string"?e.message=r:typeof r=="object"&&r!==null&&(M.update(e,r),r.message&&(e.message=r.message),(r.code||r.name)&&(e.code=r.code||r.name),r.stack&&(e.stack=r.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(r&&r.name||e.name||e.code||"Error"),e.time=new Date,i&&(e.originalError=i),e},"error"),inherit:s(function(e,r){var i=null;if(r===void 0)r=e,e=Object,i={};else{var n=s(function(){},"ConstructorWrapper");n.prototype=e.prototype,i=new n}return r.constructor===Object&&(r.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),r.constructor.prototype=i,M.update(r.constructor.prototype,r),r.constructor.__super__=e,r.constructor},"inherit"),mixin:s(function(){for(var e=arguments[0],r=1;r<arguments.length;r++)for(var i in arguments[r].prototype){var n=arguments[r].prototype[i];i!=="constructor"&&(e.prototype[i]=n)}return e},"mixin"),hideProperties:s(function(e,r){typeof Object.defineProperty=="function"&&M.arrayEach(r,function(i){Object.defineProperty(e,i,{enumerable:!1,writable:!0,configurable:!0})})},"hideProperties"),property:s(function(e,r,i,n,o){var a={configurable:!0,enumerable:n!==void 0?n:!0};typeof i=="function"&&!o?a.get=i:(a.value=i,a.writable=!0),Object.defineProperty(e,r,a)},"property"),memoizedProperty:s(function(e,r,i,n){var o=null;M.property(e,r,function(){return o===null&&(o=i()),o},n)},"memoizedProperty"),hoistPayloadMember:s(function(e){var r=e.request,i=r.operation,n=r.service.api.operations[i],o=n.output;if(o.payload&&!n.hasEventOutput){var a=o.members[o.payload],u=e.data[o.payload];a.type==="structure"&&M.each(u,function(l,h){M.property(e.data,l,h,!1)})}},"hoistPayloadMember"),computeSha256:s(function(e,r){if(M.isNode()){var i=M.stream.Stream,n=re("fs");if(typeof i=="function"&&e instanceof i)if(typeof e.path=="string"){var o={};typeof e.start=="number"&&(o.start=e.start),typeof e.end=="number"&&(o.end=e.end),e=n.createReadStream(e.path,o)}else return r(new Error("Non-file stream objects are not supported with SigV4"))}M.crypto.sha256(e,"hex",function(a,u){a?r(a):r(null,u)})},"computeSha256"),isClockSkewed:s(function(e){if(e)return M.property(Ct.config,"isClockSkewed",Math.abs(new Date().getTime()-e)>=3e5,!1),Ct.config.isClockSkewed},"isClockSkewed"),applyClockOffset:s(function(e){e&&(Ct.config.systemClockOffset=e-new Date().getTime())},"applyClockOffset"),extractRequestId:s(function(e){var r=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!r&&e.data&&e.data.ResponseMetadata&&(r=e.data.ResponseMetadata.RequestId),r&&(e.requestId=r),e.error&&(e.error.requestId=r)},"extractRequestId"),addPromises:s(function(e,r){var i=!1;r===void 0&&Ct&&Ct.config&&(r=Ct.config.getPromisesDependency()),r===void 0&&typeof Promise<"u"&&(r=Promise),typeof r!="function"&&(i=!0),Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];i?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(r)}},"addPromises"),promisifyMethod:s(function(e,r){return s(function(){var n=this,o=Array.prototype.slice.call(arguments);return new r(function(a,u){o.push(function(l,h){l?u(l):a(h)}),n[e].apply(n,o)})},"promise")},"promisifyMethod"),isDualstackAvailable:s(function(e){if(!e)return!1;var r=ya();return typeof e!="string"&&(e=e.serviceIdentifier),typeof e!="string"||!r.hasOwnProperty(e)?!1:!!r[e].dualstackAvailable},"isDualstackAvailable"),calculateRetryDelay:s(function(e,r,i){r||(r={});var n=r.customBackoff||null;if(typeof n=="function")return n(e,i);var o=typeof r.base=="number"?r.base:100,a=Math.random()*(Math.pow(2,e)*o);return a},"calculateRetryDelay"),handleRequestWithRetries:s(function(e,r,i){r||(r={});var n=Ct.HttpClient.getInstance(),o=r.httpOptions||{},a=0,u=s(function(h){var y=r.maxRetries||0;if(h&&h.code==="TimeoutError"&&(h.retryable=!0),h&&h.retryable&&a<y){var v=M.calculateRetryDelay(a,r.retryDelayOptions,h);if(v>=0){a++,setTimeout(l,v+(h.retryAfter||0));return}}i(h)},"errCallback"),l=s(function(){var h="";n.handleRequest(e,o,function(y){y.on("data",function(v){h+=v.toString()}),y.on("end",function(){var v=y.statusCode;if(v<300)i(null,h);else{var S=parseInt(y.headers["retry-after"],10)*1e3||0,O=M.error(new Error,{statusCode:v,retryable:v>=500||v===429});S&&O.retryable&&(O.retryAfter=S),u(O)}})},u)},"sendRequest");Ct.util.defer(l)},"handleRequestWithRetries"),uuid:{v4:s(function(){return af().v4()},"uuidV4")},convertPayloadToString:s(function(e){var r=e.request,i=r.operation,n=r.service.api.operations[i].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},"convertPayloadToString"),defer:s(function(e){typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick(e):typeof setImmediate=="function"?setImmediate(e):setTimeout(e,0)},"defer"),getRequestPayloadShape:s(function(e){var r=e.service.api.operations;if(r){var i=(r||{})[e.operation];if(!(!i||!i.input||!i.input.payload))return i.input.members[i.input.payload]}},"getRequestPayloadShape"),getProfilesFromSharedConfig:s(function(e,r){var i={},n={};if(process.env[M.configOptInEnv])var n=e.loadFrom({isConfig:!0,filename:process.env[M.sharedConfigFileEnv]});var o={};try{var o=e.loadFrom({filename:r||process.env[M.configOptInEnv]&&process.env[M.sharedCredentialsFileEnv]})}catch(h){if(!process.env[M.configOptInEnv])throw h}for(var a=0,u=Object.keys(n);a<u.length;a++)i[u[a]]=l(i[u[a]]||{},n[u[a]]);for(var a=0,u=Object.keys(o);a<u.length;a++)i[u[a]]=l(i[u[a]]||{},o[u[a]]);return i;function l(h,y){for(var v=0,S=Object.keys(y);v<S.length;v++)h[S[v]]=y[S[v]];return h}},"getProfilesFromSharedConfig"),ARN:{validate:s(function(e){return e&&e.indexOf("arn:")===0&&e.split(":").length>=6},"validateARN"),parse:s(function(e){var r=e.split(":");return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}},"parseARN"),build:s(function(e){if(e.service===void 0||e.region===void 0||e.accountId===void 0||e.resource===void 0)throw M.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource},"buildARN")},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};uf.exports=M});var df=P((aL,ff)=>{var Fv=V().util,cf=re("stream").Transform,lf=Fv.buffer.alloc;function Kn(t){cf.call(this,t),this.currentMessageTotalLength=0,this.currentMessagePendingLength=0,this.currentMessage=null,this.messageLengthBuffer=null}s(Kn,"EventMessageChunkerStream");Kn.prototype=Object.create(cf.prototype);Kn.prototype._transform=function(t,e,r){for(var i=t.length,n=0;n<i;){if(!this.currentMessage){var o=i-n;this.messageLengthBuffer||(this.messageLengthBuffer=lf(4));var a=Math.min(4-this.currentMessagePendingLength,o);if(t.copy(this.messageLengthBuffer,this.currentMessagePendingLength,n,n+a),this.currentMessagePendingLength+=a,n+=a,this.currentMessagePendingLength<4)break;this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)),this.messageLengthBuffer=null}var u=Math.min(this.currentMessageTotalLength-this.currentMessagePendingLength,i-n);t.copy(this.currentMessage,this.currentMessagePendingLength,n,n+u),this.currentMessagePendingLength+=u,n+=u,this.currentMessageTotalLength&&this.currentMessageTotalLength===this.currentMessagePendingLength&&(this.push(this.currentMessage),this.currentMessage=null,this.currentMessageTotalLength=0,this.currentMessagePendingLength=0)}r()};Kn.prototype._flush=function(t){this.currentMessageTotalLength?this.currentMessageTotalLength===this.currentMessagePendingLength?t(null,this.currentMessage):t(new Error("Truncated event message received.")):t()};Kn.prototype.allocateMessage=function(t){if(typeof t!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+t);this.currentMessageTotalLength=t,this.currentMessagePendingLength=4,this.currentMessage=lf(t),this.currentMessage.writeUInt32BE(t,0)};ff.exports={EventMessageChunkerStream:Kn}});var yf=P((cL,mf)=>{var hf=V().util,Wv=hf.buffer.toBuffer;function Xn(t){if(t.length!==8)throw new Error("Int64 buffers must be exactly 8 bytes");hf.Buffer.isBuffer(t)||(t=Wv(t)),this.bytes=t}s(Xn,"Int64");Xn.fromNumber=function(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var e=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)e[r]=i;return t<0&&pf(e),new Xn(e)};Xn.prototype.valueOf=function(){var t=this.bytes.slice(0),e=t[0]&128;return e&&pf(t),parseInt(t.toString("hex"),16)*(e?-1:1)};Xn.prototype.toString=function(){return String(this.valueOf())};function pf(t){for(var e=0;e<8;e++)t[e]^=255;for(var e=7;e>-1&&(t[e]++,t[e]===0);e--);}s(pf,"negate");mf.exports={Int64:Xn}});var Nf=P((fL,gf)=>{var po=V().util,Bv=po.buffer.toBuffer,vf=4,mo=vf*2,Gn=4,Uv=mo+Gn*2;function Vv(t){if(po.Buffer.isBuffer(t)||(t=Bv(t)),t.length<Uv)throw new Error("Provided message too short to accommodate event stream message overhead");if(t.length!==t.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var e=t.readUInt32BE(mo);if(e!==po.crypto.crc32(t.slice(0,mo)))throw new Error("The prelude checksum specified in the message ("+e+") does not match the calculated CRC32 checksum.");var r=t.readUInt32BE(t.length-Gn);if(r!==po.crypto.crc32(t.slice(0,t.length-Gn)))throw new Error("The message checksum did not match the expected value of "+r);var i=mo+Gn,n=i+t.readUInt32BE(vf);return{headers:t.slice(i,n),body:t.slice(n,t.length-Gn)}}s(Vv,"splitMessage");gf.exports={splitMessage:Vv}});var Cf=P((hL,Ef)=>{var wf=yf().Int64,zv=Nf().splitMessage,xf="boolean",Hv="byte",jv="short",Kv="integer",Xv="long",Gv="binary",Jv="string",$v="timestamp",Yv="uuid";function Qv(t){for(var e={},r=0;r<t.length;){var i=t.readUInt8(r++),n=t.slice(r,r+i).toString();switch(r+=i,t.readUInt8(r++)){case 0:e[n]={type:xf,value:!0};break;case 1:e[n]={type:xf,value:!1};break;case 2:e[n]={type:Hv,value:t.readInt8(r++)};break;case 3:e[n]={type:jv,value:t.readInt16BE(r)},r+=2;break;case 4:e[n]={type:Kv,value:t.readInt32BE(r)},r+=4;break;case 5:e[n]={type:Xv,value:new wf(t.slice(r,r+8))},r+=8;break;case 6:var o=t.readUInt16BE(r);r+=2,e[n]={type:Gv,value:t.slice(r,r+o)},r+=o;break;case 7:var a=t.readUInt16BE(r);r+=2,e[n]={type:Jv,value:t.slice(r,r+a).toString()},r+=a;break;case 8:e[n]={type:$v,value:new Date(new wf(t.slice(r,r+8)).valueOf())},r+=8;break;case 9:var u=t.slice(r,r+16).toString("hex");r+=16,e[n]={type:Yv,value:u.substr(0,8)+"-"+u.substr(8,4)+"-"+u.substr(12,4)+"-"+u.substr(16,4)+"-"+u.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return e}s(Qv,"parseHeaders");function Zv(t){var e=zv(t);return{headers:Qv(e.headers),body:e.body}}s(Zv,"parseMessage");Ef.exports={parseMessage:Zv}});var La=P((mL,Sf)=>{var eg=Cf().parseMessage;function tg(t,e,r){var i=eg(e),n=i.headers[":message-type"];if(n){if(n.value==="error")throw rg(i);if(n.value!=="event")return}var o=i.headers[":event-type"],a=r.members[o.value];if(a){var u={},l=a.eventPayloadMemberName;if(l){var h=a.members[l];h.type==="binary"?u[l]=i.body:u[l]=t.parse(i.body.toString(),h)}for(var y=a.eventHeaderMemberNames,v=0;v<y.length;v++){var S=y[v];i.headers[S]&&(u[S]=a.members[S].toType(i.headers[S].value))}var O={};return O[o.value]=u,O}}s(tg,"parseEvent");function rg(t){var e=t.headers[":error-code"],r=t.headers[":error-message"],i=new Error(r.value||r);return i.code=i.name=e.value||e,i}s(rg,"parseError");Sf.exports={parseEvent:tg}});var Af=P((vL,bf)=>{var Tf=re("stream").Transform,ig=La().parseEvent;function Ma(t){t=t||{},t.readableObjectMode=!0,Tf.call(this,t),this._readableState.objectMode=!0,this.parser=t.parser,this.eventStreamModel=t.eventStreamModel}s(Ma,"EventUnmarshallerStream");Ma.prototype=Object.create(Tf.prototype);Ma.prototype._transform=function(t,e,r){try{var i=ig(this.parser,t,this.eventStreamModel);return this.push(i),r()}catch(n){r(n)}};bf.exports={EventUnmarshallerStream:Ma}});var Of=P((NL,If)=>{var ng=df().EventMessageChunkerStream,sg=Af().EventUnmarshallerStream;function og(t,e,r){var i=new sg({parser:e,eventStreamModel:r}),n=new ng;return t.pipe(n).pipe(i),t.on("error",function(o){n.emit("error",o)}),n.on("error",function(o){i.emit("error",o)}),i}s(og,"createEventStream");If.exports={createEventStream:og}});var Df=P((xL,Rf)=>{function ag(t){for(var e=[],r=0;r<t.length;){var i=t.readInt32BE(r),n=t.slice(r,i+r);r+=i,e.push(n)}return e}s(ag,"eventMessageChunker");Rf.exports={eventMessageChunker:ag}});var _f=P((CL,Pf)=>{var ug=Df().eventMessageChunker,cg=La().parseEvent;function lg(t,e,r){for(var i=ug(t),n=[],o=0;o<i.length;o++)n.push(cg(e,i[o],r));return n}s(lg,"createEventStream");Pf.exports={createEventStream:lg}});var qf=P((TL,kf)=>{kf.exports={now:s(function(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6},"now")}});var Mf=P((AL,Lf)=>{var fg=V().util,dg=re("dgram"),hg=fg.buffer.toBuffer,pg=1024*8;function hi(t){t=t||{},this.enabled=t.enabled||!1,this.port=t.port||31e3,this.clientId=t.clientId||"",this.address=t.host||"127.0.0.1",this.clientId.length>255&&(this.clientId=this.clientId.substr(0,255)),this.messagesInFlight=0}s(hi,"Publisher");hi.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};hi.prototype.trimFields=function(t){for(var e=Object.keys(this.fieldsToTrim),r=0,i=e.length;r<i;r++){var n=e[r];if(t.hasOwnProperty(n)){var o=this.fieldsToTrim[n],a=t[n];a&&a.length>o&&(t[n]=a.substr(0,o))}}return t};hi.prototype.eventHandler=function(t){t.ClientId=this.clientId,this.trimFields(t);var e=hg(JSON.stringify(t));!this.enabled||e.length>pg||this.publishDatagram(e)};hi.prototype.publishDatagram=function(t){var e=this,r=this.getClient();this.messagesInFlight++,this.client.send(t,0,t.length,this.port,this.address,function(i,n){--e.messagesInFlight<=0&&e.destroyClient()})};hi.prototype.getClient=function(){return this.client||(this.client=dg.createSocket("udp4")),this.client};hi.prototype.destroyClient=function(){this.client&&(this.client.close(),this.client=void 0)};Lf.exports={Publisher:hi}});var Bf=P((OL,Wf)=>{var Fa=V();function mg(){var t={port:void 0,clientId:void 0,enabled:void 0,host:void 0};return yg(t)||vg(t),Ff(t)}s(mg,"resolveMonitoringConfig");function yg(t){return t.port=t.port||process.env.AWS_CSM_PORT,t.enabled=t.enabled||process.env.AWS_CSM_ENABLED,t.clientId=t.clientId||process.env.AWS_CSM_CLIENT_ID,t.host=t.host||process.env.AWS_CSM_HOST,t.port&&t.enabled&&t.clientId&&t.host||["false","0"].indexOf(t.enabled)>=0}s(yg,"fromEnvironment");function vg(t){var e;try{var r=Fa.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[Fa.util.sharedConfigFileEnv]}),e=r[process.env.AWS_PROFILE||Fa.util.defaultProfile]}catch{return!1}return e?(t.port=t.port||e.csm_port,t.enabled=t.enabled||e.csm_enabled,t.clientId=t.clientId||e.csm_client_id,t.host=t.host||e.csm_host,t.port&&t.enabled&&t.clientId&&t.host):t}s(vg,"fromConfigFile");function Ff(t){var e=["false","0",void 0];return!t.enabled||e.indexOf(t.enabled.toLowerCase())>=0?t.enabled=!1:t.enabled=!0,t.port=t.port?parseInt(t.port,10):void 0,t}s(Ff,"toJSType");Wf.exports=mg});var Wa=P((DL,zf)=>{var Xi=V(),Uf=re("os"),gg=re("path");function Vf(t){return Xi.util.ini.parse(Xi.util.readFileSync(t))}s(Vf,"parseFile");function Ng(t){var e={};return Object.keys(t).forEach(function(r){/^sso-session\s/.test(r)||Object.defineProperty(e,r.replace(/^profile\s/,""),{value:t[r],enumerable:!0})}),e}s(Ng,"getProfiles");function wg(t){var e={};return Object.keys(t).forEach(function(r){/^sso-session\s/.test(r)&&Object.defineProperty(e,r.replace(/^sso-session\s/,""),{value:t[r],enumerable:!0})}),e}s(wg,"getSsoSessions");Xi.IniLoader=Xi.util.inherit({constructor:s(function(){this.resolvedProfiles={},this.resolvedSsoSessions={}},"IniLoader"),clearCachedFiles:s(function(){this.resolvedProfiles={},this.resolvedSsoSessions={}},"clearCachedFiles"),loadFrom:s(function(e){e=e||{};var r=e.isConfig===!0,i=e.filename||this.getDefaultFilePath(r);if(!this.resolvedProfiles[i]){var n=Vf(i);r?Object.defineProperty(this.resolvedProfiles,i,{value:Ng(n)}):Object.defineProperty(this.resolvedProfiles,i,{value:n})}return this.resolvedProfiles[i]},"loadFrom"),loadSsoSessionsFrom:s(function(e){e=e||{};var r=e.filename||this.getDefaultFilePath(!0);if(!this.resolvedSsoSessions[r]){var i=Vf(r);Object.defineProperty(this.resolvedSsoSessions,r,{value:wg(i)})}return this.resolvedSsoSessions[r]},"loadSsoSessionsFrom"),getDefaultFilePath:s(function(e){return gg.join(this.getHomeDir(),".aws",e?"config":"credentials")},"getDefaultFilePath"),getHomeDir:s(function(){var e=process.env,r=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(r)return r;if(typeof Uf.homedir=="function")return Uf.homedir();throw Xi.util.error(new Error("Cannot load credentials, HOME path not set"))},"getHomeDir")});var xg=Xi.IniLoader;zf.exports={IniLoader:xg}});var jf=P((_L,Hf)=>{var Eg=Wa().IniLoader;Hf.exports.iniLoader=new Eg});var Xf=P((kL,Kf)=>{var Jn=V();function Ba(t,e){if(typeof t=="string"){if(["legacy","regional"].indexOf(t.toLowerCase())>=0)return t.toLowerCase();throw Jn.util.error(new Error,e)}}s(Ba,"validateRegionalEndpointsFlagValue");function Cg(t,e){t=t||{};var r;if(t[e.clientConfig]&&(r=Ba(t[e.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+e.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+t[e.clientConfig]+'".'}),r)||!Jn.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,e.env)){var i=process.env[e.env];if(r=Ba(i,{code:"InvalidEnvironmentalVariable",message:"invalid "+e.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[e.env]+'".'}),r)return r}var n={};try{var o=Jn.util.getProfilesFromSharedConfig(Jn.util.iniLoader);n=o[process.env.AWS_PROFILE||Jn.util.defaultProfile]}catch{}if(n&&Object.prototype.hasOwnProperty.call(n,e.sharedConfig)){var a=n[e.sharedConfig];if(r=Ba(a,{code:"InvalidConfiguration",message:"invalid "+e.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+n[e.sharedConfig]+'".'}),r)return r}return r}s(Cg,"resolveRegionalEndpointsFlag");Kf.exports=Cg});var Gf=P(()=>{var yo=V(),Sg=Xf(),Tg="AWS_STS_REGIONAL_ENDPOINTS",bg="sts_regional_endpoints";yo.util.update(yo.STS.prototype,{credentialsFrom:s(function(e,r){return e?(r||(r=new yo.TemporaryCredentials),r.expired=!1,r.accessKeyId=e.Credentials.AccessKeyId,r.secretAccessKey=e.Credentials.SecretAccessKey,r.sessionToken=e.Credentials.SessionToken,r.expireTime=e.Credentials.Expiration,r):null},"credentialsFrom"),assumeRoleWithWebIdentity:s(function(e,r){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,r)},"assumeRoleWithWebIdentity"),assumeRoleWithSAML:s(function(e,r){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,r)},"assumeRoleWithSAML"),setupRequestListeners:s(function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},"setupRequestListeners"),optInRegionalEndpoint:s(function(e){var r=e.service,i=r.config;if(i.stsRegionalEndpoints=Sg(r._originalConfig,{env:Tg,sharedConfig:bg,clientConfig:"stsRegionalEndpoints"}),i.stsRegionalEndpoints==="regional"&&r.isGlobalEndpoint){if(!i.region)throw yo.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var n=i.endpoint.indexOf(".amazonaws.com"),o=i.endpoint.substring(0,n)+"."+i.region+i.endpoint.substring(n);e.httpRequest.updateEndpoint(o),e.httpRequest.region=i.region}},"optInRegionalEndpoint")})});var Jf=P((WL,Ag)=>{Ag.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{},SourceIdentity:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Si"},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},SourceIdentity:{}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Si"},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{},SourceIdentity:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Si"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sn"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{},SourceIdentity:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Si"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Si"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Si:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sn:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}});var $f=P((BL,Ig)=>{Ig.exports={pagination:{}}});var Vr=P((UL,Qf)=>{go();var vo=V(),Og=vo.Service,Yf=vo.apiLoader;Yf.services.sts={};vo.STS=Og.defineService("sts",["2011-06-15"]);Gf();Object.defineProperty(Yf.services.sts,"2011-06-15",{get:s(function(){var e=Jf();return e.paginators=$f().pagination,e},"get"),enumerable:!0,configurable:!0});Qf.exports=vo.STS});var Zf=P(()=>{var pi=V(),Rg=Vr();pi.TemporaryCredentials=pi.util.inherit(pi.Credentials,{constructor:s(function(e,r){pi.Credentials.call(this),this.loadMasterCredentials(r),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},"TemporaryCredentials"),refresh:s(function(e){this.coalesceRefresh(e||pi.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.masterCredentials.get(function(){r.service.config.credentials=r.masterCredentials;var i=r.params.RoleArn?r.service.assumeRole:r.service.getSessionToken;i.call(r.service,function(n,o){n||r.service.credentialsFrom(o,r),e(n)})})},"load"),loadMasterCredentials:s(function(e){for(this.masterCredentials=e||pi.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;typeof this.masterCredentials.get!="function"&&(this.masterCredentials=new pi.Credentials(this.masterCredentials))},"loadMasterCredentials"),createClients:function(){this.service=this.service||new Rg({params:this.params})}})});var ed=P(()=>{var Zt=V(),Dg=Vr();Zt.ChainableTemporaryCredentials=Zt.util.inherit(Zt.Credentials,{constructor:s(function(e){Zt.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var r=Zt.util.copy(e.params)||{};if(r.RoleArn&&(r.RoleSessionName=r.RoleSessionName||"temporary-credentials"),r.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!="function")throw new Zt.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var i=Zt.util.merge({params:r,credentials:e.masterCredentials||Zt.config.credentials},e.stsConfig||{});this.service=new Dg(i)},"ChainableTemporaryCredentials"),refresh:s(function(e){this.coalesceRefresh(e||Zt.util.fn.callback)},"refresh"),load:s(function(e){var r=this,i=r.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(n,o){var a={};if(n){e(n);return}o&&(a.TokenCode=o),r.service[i](a,function(u,l){u||r.service.credentialsFrom(l,r),e(u)})})},"load"),getTokenCode:s(function(e){var r=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;i instanceof Error&&(o=i.message),e(Zt.util.error(new Error("Error fetching MFA token: "+o),{code:r.errorCode}));return}e(null,n)}):e(null)},"getTokenCode")})});var td=P(()=>{var mi=V(),Pg=Vr();mi.WebIdentityCredentials=mi.util.inherit(mi.Credentials,{constructor:s(function(e,r){mi.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=mi.util.copy(r||{})},"WebIdentityCredentials"),refresh:s(function(e){this.coalesceRefresh(e||mi.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.service.assumeRoleWithWebIdentity(function(i,n){r.data=null,i||(r.data=n,r.service.credentialsFrom(n,r)),e(i)})},"load"),createClients:function(){if(!this.service){var t=mi.util.merge({},this._clientConfig);t.params=this.params,this.service=new Pg(t)}}})});var rd=P((QL,_g)=>{_g.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}},authtype:"none"},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}},authtype:"none"},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},authtype:"none"},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},PrincipalTags:{shape:"S1s"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetPrincipalTagAttributeMap:{input:{type:"structure",required:["IdentityPoolId","IdentityProviderName"],members:{IdentityPoolId:{},IdentityProviderName:{}}},output:{type:"structure",members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},SetPrincipalTagAttributeMap:{input:{type:"structure",required:["IdentityPoolId","IdentityProviderName"],members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}},output:{type:"structure",members:{IdentityPoolId:{},IdentityProviderName:{},UseDefaults:{type:"boolean"},PrincipalTags:{shape:"S1s"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}},authtype:"none"},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}},S1s:{type:"map",key:{},value:{}}}}});var id=P((ZL,kg)=>{kg.exports={pagination:{ListIdentityPools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"IdentityPools"}}}});var od=P((eM,sd)=>{go();var No=V(),qg=No.Service,nd=No.apiLoader;nd.services.cognitoidentity={};No.CognitoIdentity=qg.defineService("cognitoidentity",["2014-06-30"]);Object.defineProperty(nd.services.cognitoidentity,"2014-06-30",{get:s(function(){var e=rd();return e.paginators=id().pagination,e},"get"),enumerable:!0,configurable:!0});sd.exports=No.CognitoIdentity});var ad=P(()=>{var Ft=V(),Lg=od(),Mg=Vr();Ft.CognitoIdentityCredentials=Ft.util.inherit(Ft.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:s(function(e,r){Ft.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=Ft.util.copy(r||{}),this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){return i.loadCachedId(),i._identityId||i.params.IdentityId},set:function(n){i._identityId=n}})},"CognitoIdentityCredentials"),refresh:s(function(e){this.coalesceRefresh(e||Ft.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.data=null,r._identityId=null,r.getId(function(i){i?(r.clearIdOnNotAuthorized(i),e(i)):r.params.RoleArn?r.getCredentialsFromSTS(e):r.getCredentialsForIdentity(e)})},"load"),clearCachedId:s(function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,r=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+r],delete this.storage[this.localStorageKey.providers+e+r]},"clearCache"),clearIdOnNotAuthorized:s(function(e){var r=this;e.code=="NotAuthorizedException"&&r.clearCachedId()},"clearIdOnNotAuthorized"),getId:s(function(e){var r=this;if(typeof r.params.IdentityId=="string")return e(null,r.params.IdentityId);r.cognito.getId(function(i,n){!i&&n.IdentityId?(r.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(i)})},"getId"),loadCredentials:s(function(e,r){!e||!r||(r.expired=!1,r.accessKeyId=e.Credentials.AccessKeyId,r.secretAccessKey=e.Credentials.SecretKey,r.sessionToken=e.Credentials.SessionToken,r.expireTime=e.Credentials.Expiration)},"loadCredentials"),getCredentialsForIdentity:s(function(e){var r=this;r.cognito.getCredentialsForIdentity(function(i,n){i?r.clearIdOnNotAuthorized(i):(r.cacheId(n),r.data=n,r.loadCredentials(r.data,r)),e(i)})},"getCredentialsForIdentity"),getCredentialsFromSTS:s(function(e){var r=this;r.cognito.getOpenIdToken(function(i,n){i?(r.clearIdOnNotAuthorized(i),e(i)):(r.cacheId(n),r.params.WebIdentityToken=n.Token,r.webIdentityCredentials.refresh(function(o){o||(r.data=r.webIdentityCredentials.data,r.sts.credentialsFrom(r.data,r)),e(o)}))})},"getCredentialsFromSTS"),loadCachedId:s(function(){var e=this;if(Ft.util.isBrowser()&&!e.params.IdentityId){var r=e.getStorage("id");if(r&&e.params.Logins){var i=Object.keys(e.params.Logins),n=(e.getStorage("providers")||"").split(","),o=n.filter(function(a){return i.indexOf(a)!==-1});o.length!==0&&(e.params.IdentityId=r)}else r&&(e.params.IdentityId=r)}},"loadCachedId"),createClients:function(){var t=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new Ft.WebIdentityCredentials(this.params,t),!this.cognito){var e=Ft.util.merge({},t);e.params=this.params,this.cognito=new Lg(e)}this.sts=this.sts||new Mg(t)},cacheId:s(function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,Ft.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},"cacheId"),getStorage:s(function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},"getStorage"),setStorage:s(function(e,r){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=r}catch{}},"setStorage"),storage:function(){try{var t=Ft.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage=="object"?window.localStorage:{};return t["aws.test-storage"]="foobar",delete t["aws.test-storage"],t}catch{return{}}}()})});var ud=P(()=>{var $n=V(),Fg=Vr();$n.SAMLCredentials=$n.util.inherit($n.Credentials,{constructor:s(function(e){$n.Credentials.call(this),this.expired=!0,this.params=e},"SAMLCredentials"),refresh:s(function(e){this.coalesceRefresh(e||$n.util.fn.callback)},"refresh"),load:s(function(e){var r=this;r.createClients(),r.service.assumeRoleWithSAML(function(i,n){i||r.service.credentialsFrom(n,r),e(i)})},"load"),createClients:function(){this.service=this.service||new Fg({params:this.params})}})});var Ua=P(()=>{var lt=V(),Wg=re("child_process"),cd=lt.util.iniLoader;lt.ProcessCredentials=lt.util.inherit(lt.Credentials,{constructor:s(function(e){lt.Credentials.call(this),e=e||{},this.filename=e.filename,this.profile=e.profile||process.env.AWS_PROFILE||lt.util.defaultProfile,this.get(e.callback||lt.util.fn.noop)},"ProcessCredentials"),load:s(function(e){var r=this;try{var i=lt.util.getProfilesFromSharedConfig(cd,this.filename),n=i[this.profile]||{};if(Object.keys(n).length===0)throw lt.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"});if(n.credential_process)this.loadViaCredentialProcess(n,function(o,a){o?e(o,null):(r.expired=!1,r.accessKeyId=a.AccessKeyId,r.secretAccessKey=a.SecretAccessKey,r.sessionToken=a.SessionToken,a.Expiration&&(r.expireTime=new Date(a.Expiration)),e(null))});else throw lt.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}catch(o){e(o)}},"load"),loadViaCredentialProcess:s(function(e,r){Wg.exec(e.credential_process,{env:process.env},function(i,n,o){if(i)r(lt.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null);else try{var a=JSON.parse(n);if(a.Expiration){var u=lt.util.date.getDate(),l=new Date(a.Expiration);if(l<u)throw Error("credential_process returned expired credentials")}if(a.Version!==1)throw Error("credential_process does not return Version == 1");r(null,a)}catch(h){r(lt.util.error(new Error(h.message),{code:"ProcessCredentialsProviderFailure"}),null)}})},"loadViaCredentialProcess"),refresh:s(function(e){cd.clearCachedFiles(),this.coalesceRefresh(e||lt.util.fn.callback)},"refresh")})});var wo=P(Va=>{(function(){Va.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
17
17
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Va)});var xr=P((ld,yi)=>{(function(){var t,e,r,i,n,o,a=[].slice,u={}.hasOwnProperty;t=s(function(){var l,h,y,v,S,O;if(O=arguments[0],S=2<=arguments.length?a.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(l=0,y=S.length;l<y;l++)if(v=S[l],v!=null)for(h in v)u.call(v,h)&&(O[h]=v[h]);return O},"assign"),i=s(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=s(function(l){var h;return!!l&&((h=typeof l)=="function"||h==="object")},"isObject"),e=s(function(l){return i(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),r=s(function(l){var h;if(e(l))return!l.length;for(h in l)if(u.call(l,h))return!1;return!0},"isEmpty"),o=s(function(l){var h,y;return n(l)&&(y=Object.getPrototypeOf(l))&&(h=y.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},"isPlainObject"),yi.exports.assign=t,yi.exports.isFunction=i,yi.exports.isObject=n,yi.exports.isArray=e,yi.exports.isEmpty=r,yi.exports.isPlainObject=o}).call(ld)});var za=P((fd,dd)=>{(function(){var t;dd.exports=t=function(){function e(r,i,n){if(this.options=r.options,this.stringify=r.stringify,i==null)throw new Error("Missing attribute name of element "+r.name);if(n==null)throw new Error("Missing attribute value for attribute "+i+" of element "+r.name);this.name=this.stringify.attName(i),this.value=this.stringify.attValue(n)}return s(e,"XMLAttribute"),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(r){return this.options.writer.set(r).attribute(this)},e}()}).call(fd)});var Yn=P((hd,pd)=>{(function(){var t,e,r,i,n,o,a=s(function(l,h){for(var y in h)u.call(h,y)&&(l[y]=h[y]);function v(){this.constructor=l}return s(v,"ctor"),v.prototype=h.prototype,l.prototype=new v,l.__super__=h.prototype,l},"extend"),u={}.hasOwnProperty;o=xr(),n=o.isObject,i=o.isFunction,r=ft(),t=za(),pd.exports=e=function(l){a(h,l);function h(y,v,S){if(h.__super__.constructor.call(this,y),v==null)throw new Error("Missing element name");this.name=this.stringify.eleName(v),this.attributes={},S!=null&&this.attribute(S),y.isDocument&&(this.isRoot=!0,this.documentObject=y,y.rootObject=this)}return s(h,"XMLElement"),h.prototype.clone=function(){var y,v,S,O;S=Object.create(this),S.isRoot&&(S.documentObject=null),S.attributes={},O=this.attributes;for(v in O)u.call(O,v)&&(y=O[v],S.attributes[v]=y.clone());return S.children=[],this.children.forEach(function(g){var N;return N=g.clone(),N.parent=S,S.children.push(N)}),S},h.prototype.attribute=function(y,v){var S,O;if(y!=null&&(y=y.valueOf()),n(y))for(S in y)u.call(y,S)&&(O=y[S],this.attribute(S,O));else i(v)&&(v=v.apply()),(!this.options.skipNullAttributes||v!=null)&&(this.attributes[y]=new t(this,y,v));return this},h.prototype.removeAttribute=function(y){var v,S,O;if(y==null)throw new Error("Missing attribute name");if(y=y.valueOf(),Array.isArray(y))for(S=0,O=y.length;S<O;S++)v=y[S],delete this.attributes[v];else delete this.attributes[y];return this},h.prototype.toString=function(y){return this.options.writer.set(y).element(this)},h.prototype.att=function(y,v){return this.attribute(y,v)},h.prototype.a=function(y,v){return this.attribute(y,v)},h}(r)}).call(hd)});var Qn=P((md,yd)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;e=ft(),yd.exports=t=function(n){r(o,n);function o(a,u){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(u)}return s(o,"XMLCData"),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},o}(e)}).call(md)});var Zn=P((vd,gd)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;e=ft(),gd.exports=t=function(n){r(o,n);function o(a,u){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing comment text");this.text=this.stringify.comment(u)}return s(o,"XMLComment"),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},o}(e)}).call(vd)});var es=P((Nd,wd)=>{(function(){var t,e,r,i=s(function(o,a){for(var u in a)n.call(a,u)&&(o[u]=a[u]);function l(){this.constructor=o}return s(l,"ctor"),l.prototype=a.prototype,o.prototype=new l,o.__super__=a.prototype,o},"extend"),n={}.hasOwnProperty;r=xr().isObject,e=ft(),wd.exports=t=function(o){i(a,o);function a(u,l,h,y){var v;a.__super__.constructor.call(this,u),r(l)&&(v=l,l=v.version,h=v.encoding,y=v.standalone),l||(l="1.0"),this.version=this.stringify.xmlVersion(l),h!=null&&(this.encoding=this.stringify.xmlEncoding(h)),y!=null&&(this.standalone=this.stringify.xmlStandalone(y))}return s(a,"XMLDeclaration"),a.prototype.toString=function(u){return this.options.writer.set(u).declaration(this)},a}(e)}).call(Nd)});var ts=P((xd,Ed)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;e=ft(),Ed.exports=t=function(n){r(o,n);function o(a,u,l,h,y,v){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing DTD element name");if(l==null)throw new Error("Missing DTD attribute name");if(!h)throw new Error("Missing DTD attribute type");if(!y)throw new Error("Missing DTD attribute default");if(y.indexOf("#")!==0&&(y="#"+y),!y.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(v&&!y.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(u),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(h),this.defaultValue=this.stringify.dtdAttDefault(v),this.defaultValueType=y}return s(o,"XMLDTDAttList"),o.prototype.toString=function(a){return this.options.writer.set(a).dtdAttList(this)},o}(e)}).call(xd)});var rs=P((Cd,Sd)=>{(function(){var t,e,r,i=s(function(o,a){for(var u in a)n.call(a,u)&&(o[u]=a[u]);function l(){this.constructor=o}return s(l,"ctor"),l.prototype=a.prototype,o.prototype=new l,o.__super__=a.prototype,o},"extend"),n={}.hasOwnProperty;r=xr().isObject,e=ft(),Sd.exports=t=function(o){i(a,o);function a(u,l,h,y){if(a.__super__.constructor.call(this,u),h==null)throw new Error("Missing entity name");if(y==null)throw new Error("Missing entity value");if(this.pe=!!l,this.name=this.stringify.eleName(h),!r(y))this.value=this.stringify.dtdEntityValue(y);else{if(!y.pubID&&!y.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(y.pubID&&!y.sysID)throw new Error("System identifier is required for a public external entity");if(y.pubID!=null&&(this.pubID=this.stringify.dtdPubID(y.pubID)),y.sysID!=null&&(this.sysID=this.stringify.dtdSysID(y.sysID)),y.nData!=null&&(this.nData=this.stringify.dtdNData(y.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}}return s(a,"XMLDTDEntity"),a.prototype.toString=function(u){return this.options.writer.set(u).dtdEntity(this)},a}(e)}).call(Cd)});var is=P((Td,bd)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;e=ft(),bd.exports=t=function(n){r(o,n);function o(a,u,l){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing DTD element name");l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.eleName(u),this.value=this.stringify.dtdElementValue(l)}return s(o,"XMLDTDElement"),o.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},o}(e)}).call(Td)});var ns=P((Ad,Id)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;e=ft(),Id.exports=t=function(n){r(o,n);function o(a,u,l){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing notation name");if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(u),l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return s(o,"XMLDTDNotation"),o.prototype.toString=function(a){return this.options.writer.set(a).dtdNotation(this)},o}(e)}).call(Ad)});var ss=P((Od,Rd)=>{(function(){var t,e,r,i,n,o,a,u=s(function(h,y){for(var v in y)l.call(y,v)&&(h[v]=y[v]);function S(){this.constructor=h}return s(S,"ctor"),S.prototype=y.prototype,h.prototype=new S,h.__super__=y.prototype,h},"extend"),l={}.hasOwnProperty;a=xr().isObject,o=ft(),t=ts(),r=rs(),e=is(),i=ns(),Rd.exports=n=function(h){u(y,h);function y(v,S,O){var g,N;y.__super__.constructor.call(this,v),this.documentObject=v,a(S)&&(g=S,S=g.pubID,O=g.sysID),O==null&&(N=[S,O],O=N[0],S=N[1]),S!=null&&(this.pubID=this.stringify.dtdPubID(S)),O!=null&&(this.sysID=this.stringify.dtdSysID(O))}return s(y,"XMLDocType"),y.prototype.element=function(v,S){var O;return O=new e(this,v,S),this.children.push(O),this},y.prototype.attList=function(v,S,O,g,N){var D;return D=new t(this,v,S,O,g,N),this.children.push(D),this},y.prototype.entity=function(v,S){var O;return O=new r(this,!1,v,S),this.children.push(O),this},y.prototype.pEntity=function(v,S){var O;return O=new r(this,!0,v,S),this.children.push(O),this},y.prototype.notation=function(v,S){var O;return O=new i(this,v,S),this.children.push(O),this},y.prototype.toString=function(v){return this.options.writer.set(v).docType(this)},y.prototype.ele=function(v,S){return this.element(v,S)},y.prototype.att=function(v,S,O,g,N){return this.attList(v,S,O,g,N)},y.prototype.ent=function(v,S){return this.entity(v,S)},y.prototype.pent=function(v,S){return this.pEntity(v,S)},y.prototype.not=function(v,S){return this.notation(v,S)},y.prototype.up=function(){return this.root()||this.documentObject},y}(o)}).call(Od)});var os=P((Dd,Pd)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;t=ft(),Pd.exports=e=function(n){r(o,n);function o(a,u){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing raw text");this.value=this.stringify.raw(u)}return s(o,"XMLRaw"),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},o}(t)}).call(Dd)});var as=P((_d,kd)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;t=ft(),kd.exports=e=function(n){r(o,n);function o(a,u){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing element text");this.value=this.stringify.eleText(u)}return s(o,"XMLText"),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(a){return this.options.writer.set(a).text(this)},o}(t)}).call(_d)});var us=P((qd,Ld)=>{(function(){var t,e,r=s(function(n,o){for(var a in o)i.call(o,a)&&(n[a]=o[a]);function u(){this.constructor=n}return s(u,"ctor"),u.prototype=o.prototype,n.prototype=new u,n.__super__=o.prototype,n},"extend"),i={}.hasOwnProperty;t=ft(),Ld.exports=e=function(n){r(o,n);function o(a,u,l){if(o.__super__.constructor.call(this,a),u==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(u),l&&(this.value=this.stringify.insValue(l))}return s(o,"XMLProcessingInstruction"),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},o}(t)}).call(qd)});var ft=P((Md,Fd)=>{(function(){var t,e,r,i,n,o,a,u,l,h,y,v,S,O={}.hasOwnProperty;S=xr(),v=S.isObject,y=S.isFunction,h=S.isEmpty,n=null,t=null,e=null,r=null,i=null,u=null,l=null,a=null,Fd.exports=o=function(){function g(N){this.parent=N,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],n||(n=Yn(),t=Qn(),e=Zn(),r=es(),i=ss(),u=os(),l=as(),a=us())}return s(g,"XMLNode"),g.prototype.element=function(N,D,E){var p,C,R,_,T,A,w,K,X,F;if(A=null,D==null&&(D={}),D=D.valueOf(),v(D)||(X=[D,E],E=X[0],D=X[1]),N!=null&&(N=N.valueOf()),Array.isArray(N))for(R=0,w=N.length;R<w;R++)C=N[R],A=this.element(C);else if(y(N))A=this.element(N.apply());else if(v(N)){for(T in N)if(O.call(N,T))if(F=N[T],y(F)&&(F=F.apply()),v(F)&&h(F)&&(F=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&T.indexOf(this.stringify.convertAttKey)===0)A=this.attribute(T.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F))for(_=0,K=F.length;_<K;_++)C=F[_],p={},p[T]=C,A=this.element(p);else v(F)?(A=this.element(T),A.element(F)):A=this.element(T,F)}else!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?A=this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&N.indexOf(this.stringify.convertCDataKey)===0?A=this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&N.indexOf(this.stringify.convertCommentKey)===0?A=this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&N.indexOf(this.stringify.convertRawKey)===0?A=this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&N.indexOf(this.stringify.convertPIKey)===0?A=this.instruction(N.substr(this.stringify.convertPIKey.length),E):A=this.node(N,D,E);if(A==null)throw new Error("Could not create any elements with: "+N);return A},g.prototype.insertBefore=function(N,D,E){var p,C,R;if(this.isRoot)throw new Error("Cannot insert elements at root level");return C=this.parent.children.indexOf(this),R=this.parent.children.splice(C),p=this.parent.element(N,D,E),Array.prototype.push.apply(this.parent.children,R),p},g.prototype.insertAfter=function(N,D,E){var p,C,R;if(this.isRoot)throw new Error("Cannot insert elements at root level");return C=this.parent.children.indexOf(this),R=this.parent.children.splice(C+1),p=this.parent.element(N,D,E),Array.prototype.push.apply(this.parent.children,R),p},g.prototype.remove=function(){var N,D;if(this.isRoot)throw new Error("Cannot remove the root element");return N=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[N,N-N+1].concat(D=[])),this.parent},g.prototype.node=function(N,D,E){var p,C;return N!=null&&(N=N.valueOf()),D||(D={}),D=D.valueOf(),v(D)||(C=[D,E],E=C[0],D=C[1]),p=new n(this,N,D),E!=null&&p.text(E),this.children.push(p),p},g.prototype.text=function(N){var D;return D=new l(this,N),this.children.push(D),this},g.prototype.cdata=function(N){var D;return D=new t(this,N),this.children.push(D),this},g.prototype.comment=function(N){var D;return D=new e(this,N),this.children.push(D),this},g.prototype.commentBefore=function(N){var D,E,p;return E=this.parent.children.indexOf(this),p=this.parent.children.splice(E),D=this.parent.comment(N),Array.prototype.push.apply(this.parent.children,p),this},g.prototype.commentAfter=function(N){var D,E,p;return E=this.parent.children.indexOf(this),p=this.parent.children.splice(E+1),D=this.parent.comment(N),Array.prototype.push.apply(this.parent.children,p),this},g.prototype.raw=function(N){var D;return D=new u(this,N),this.children.push(D),this},g.prototype.instruction=function(N,D){var E,p,C,R,_;if(N!=null&&(N=N.valueOf()),D!=null&&(D=D.valueOf()),Array.isArray(N))for(R=0,_=N.length;R<_;R++)E=N[R],this.instruction(E);else if(v(N))for(E in N)O.call(N,E)&&(p=N[E],this.instruction(E,p));else y(D)&&(D=D.apply()),C=new a(this,N,D),this.children.push(C);return this},g.prototype.instructionBefore=function(N,D){var E,p,C;return p=this.parent.children.indexOf(this),C=this.parent.children.splice(p),E=this.parent.instruction(N,D),Array.prototype.push.apply(this.parent.children,C),this},g.prototype.instructionAfter=function(N,D){var E,p,C;return p=this.parent.children.indexOf(this),C=this.parent.children.splice(p+1),E=this.parent.instruction(N,D),Array.prototype.push.apply(this.parent.children,C),this},g.prototype.declaration=function(N,D,E){var p,C;return p=this.document(),C=new r(p,N,D,E),p.children[0]instanceof r?p.children[0]=C:p.children.unshift(C),p.root()||p},g.prototype.doctype=function(N,D){var E,p,C,R,_,T,A,w,K,X;for(p=this.document(),C=new i(p,N,D),K=p.children,R=_=0,A=K.length;_<A;R=++_)if(E=K[R],E instanceof i)return p.children[R]=C,C;for(X=p.children,R=T=0,w=X.length;T<w;R=++T)if(E=X[R],E.isRoot)return p.children.splice(R,0,C),C;return p.children.push(C),C},g.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},g.prototype.root=function(){var N;for(N=this;N;){if(N.isDocument)return N.rootObject;if(N.isRoot)return N;N=N.parent}},g.prototype.document=function(){var N;for(N=this;N;){if(N.isDocument)return N;N=N.parent}},g.prototype.end=function(N){return this.document().end(N)},g.prototype.prev=function(){var N;if(N=this.parent.children.indexOf(this),N<1)throw new Error("Already at the first node");return this.parent.children[N-1]},g.prototype.next=function(){var N;if(N=this.parent.children.indexOf(this),N===-1||N===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[N+1]},g.prototype.importDocument=function(N){var D;return D=N.root().clone(),D.parent=this,D.isRoot=!1,this.children.push(D),this},g.prototype.ele=function(N,D,E){return this.element(N,D,E)},g.prototype.nod=function(N,D,E){return this.node(N,D,E)},g.prototype.txt=function(N){return this.text(N)},g.prototype.dat=function(N){return this.cdata(N)},g.prototype.com=function(N){return this.comment(N)},g.prototype.ins=function(N,D){return this.instruction(N,D)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(N,D,E){return this.declaration(N,D,E)},g.prototype.dtd=function(N,D){return this.doctype(N,D)},g.prototype.e=function(N,D,E){return this.element(N,D,E)},g.prototype.n=function(N,D,E){return this.node(N,D,E)},g.prototype.t=function(N){return this.text(N)},g.prototype.d=function(N){return this.cdata(N)},g.prototype.c=function(N){return this.comment(N)},g.prototype.r=function(N){return this.raw(N)},g.prototype.i=function(N,D){return this.instruction(N,D)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(N){return this.importDocument(N)},g}()}).call(Md)});var Ha=P((Wd,Bd)=>{(function(){var t,e=s(function(i,n){return function(){return i.apply(n,arguments)}},"bind"),r={}.hasOwnProperty;Bd.exports=t=function(){function i(n){this.assertLegalChar=e(this.assertLegalChar,this);var o,a,u;n||(n={}),this.noDoubleEncoding=n.noDoubleEncoding,a=n.stringify||{};for(o in a)r.call(a,o)&&(u=a[o],this[o]=u)}return s(i,"XMLStringifier"),i.prototype.eleName=function(n){return n=""+n||"",this.assertLegalChar(n)},i.prototype.eleText=function(n){return n=""+n||"",this.assertLegalChar(this.elEscape(n))},i.prototype.cdata=function(n){return n=""+n||"",n=n.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(n)},i.prototype.comment=function(n){if(n=""+n||"",n.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+n);return this.assertLegalChar(n)},i.prototype.raw=function(n){return""+n||""},i.prototype.attName=function(n){return n=""+n||""},i.prototype.attValue=function(n){return n=""+n||"",this.attEscape(n)},i.prototype.insTarget=function(n){return""+n||""},i.prototype.insValue=function(n){if(n=""+n||"",n.match(/\?>/))throw new Error("Invalid processing instruction value: "+n);return n},i.prototype.xmlVersion=function(n){if(n=""+n||"",!n.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+n);return n},i.prototype.xmlEncoding=function(n){if(n=""+n||"",!n.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+n);return n},i.prototype.xmlStandalone=function(n){return n?"yes":"no"},i.prototype.dtdPubID=function(n){return""+n||""},i.prototype.dtdSysID=function(n){return""+n||""},i.prototype.dtdElementValue=function(n){return""+n||""},i.prototype.dtdAttType=function(n){return""+n||""},i.prototype.dtdAttDefault=function(n){return n!=null?""+n||"":n},i.prototype.dtdEntityValue=function(n){return""+n||""},i.prototype.dtdNData=function(n){return""+n||""},i.prototype.convertAttKey="@",i.prototype.convertPIKey="?",i.prototype.convertTextKey="#text",i.prototype.convertCDataKey="#cdata",i.prototype.convertCommentKey="#comment",i.prototype.convertRawKey="#raw",i.prototype.assertLegalChar=function(n){var o;if(o=n.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),o)throw new Error("Invalid character in string: "+n+" at index "+o.index);return n},i.prototype.elEscape=function(n){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(n){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(Wd)});var ja=P((Ud,Vd)=>{(function(){var t,e={}.hasOwnProperty;Vd.exports=t=function(){function r(i){var n,o,a,u,l,h,y,v,S;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(o=i.allowEmpty)!=null?o:!1,this.pretty?(this.indent=(a=i.indent)!=null?a:" ",this.newline=(u=i.newline)!=null?u:`
|
|
18
18
|
`,this.offset=(l=i.offset)!=null?l:0,this.dontprettytextnodes=(h=i.dontprettytextnodes)!=null?h:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(y=i.spacebeforeslash)!=null?y:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,v=i.writer||{};for(n in v)e.call(v,n)&&(S=v[n],this[n]=S)}return s(r,"XMLWriterBase"),r.prototype.set=function(i){var n,o,a;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
|
19
19
|
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=i.writer||{};for(n in o)e.call(o,n)&&(a=o[n],this[n]=a);return this},r.prototype.space=function(i){var n;return this.pretty?(n=(i||0)+this.offset+1,n>0?new Array(n).join(this.indent):""):""},r}()}).call(Ud)});var xo=P((zd,Hd)=>{(function(){var t,e,r,i,n,o,a,u,l,h,y,v,S,O,g=s(function(D,E){for(var p in E)N.call(E,p)&&(D[p]=E[p]);function C(){this.constructor=D}return s(C,"ctor"),C.prototype=E.prototype,D.prototype=new C,D.__super__=E.prototype,D},"extend"),N={}.hasOwnProperty;a=es(),u=ss(),t=Qn(),e=Zn(),l=Yn(),y=os(),S=as(),h=us(),r=ts(),i=is(),n=rs(),o=ns(),O=ja(),Hd.exports=v=function(D){g(E,D);function E(p){E.__super__.constructor.call(this,p)}return s(E,"XMLStringWriter"),E.prototype.document=function(p){var C,R,_,T,A;for(this.textispresent=!1,T="",A=p.children,R=0,_=A.length;R<_;R++)C=A[R],T+=function(){switch(!1){case!(C instanceof a):return this.declaration(C);case!(C instanceof u):return this.docType(C);case!(C instanceof e):return this.comment(C);case!(C instanceof h):return this.processingInstruction(C);default:return this.element(C,0)}}.call(this);return this.pretty&&T.slice(-this.newline.length)===this.newline&&(T=T.slice(0,-this.newline.length)),T},E.prototype.attribute=function(p){return" "+p.name+'="'+p.value+'"'},E.prototype.cdata=function(p,C){return this.space(C)+"<![CDATA["+p.text+"]]>"+this.newline},E.prototype.comment=function(p,C){return this.space(C)+"<!-- "+p.text+" -->"+this.newline},E.prototype.declaration=function(p,C){var R;return R=this.space(C),R+='<?xml version="'+p.version+'"',p.encoding!=null&&(R+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(R+=' standalone="'+p.standalone+'"'),R+=this.spacebeforeslash+"?>",R+=this.newline,R},E.prototype.docType=function(p,C){var R,_,T,A,w;if(C||(C=0),A=this.space(C),A+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?A+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(A+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(A+=" [",A+=this.newline,w=p.children,_=0,T=w.length;_<T;_++)R=w[_],A+=function(){switch(!1){case!(R instanceof r):return this.dtdAttList(R,C+1);case!(R instanceof i):return this.dtdElement(R,C+1);case!(R instanceof n):return this.dtdEntity(R,C+1);case!(R instanceof o):return this.dtdNotation(R,C+1);case!(R instanceof t):return this.cdata(R,C+1);case!(R instanceof e):return this.comment(R,C+1);case!(R instanceof h):return this.processingInstruction(R,C+1);default:throw new Error("Unknown DTD node type: "+R.constructor.name)}}.call(this);A+="]"}return A+=this.spacebeforeslash+">",A+=this.newline,A},E.prototype.element=function(p,C){var R,_,T,A,w,K,X,F,se,We,Fe,bt,Z;C||(C=0),Z=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),bt=this.space(C),F="",F+=bt+"<"+p.name,se=p.attributes;for(X in se)N.call(se,X)&&(R=se[X],F+=this.attribute(R));if(p.children.length===0||p.children.every(function(Cr){return Cr.value===""}))this.allowEmpty?F+="></"+p.name+">"+this.newline:F+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&p.children.length===1&&p.children[0].value!=null)F+=">",F+=p.children[0].value,F+="</"+p.name+">"+this.newline;else{if(this.dontprettytextnodes){for(We=p.children,T=0,w=We.length;T<w;T++)if(_=We[T],_.value!=null){this.textispresent++,Z=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,bt=this.space(C)),F+=">"+this.newline,Fe=p.children,A=0,K=Fe.length;A<K;A++)_=Fe[A],F+=function(){switch(!1){case!(_ instanceof t):return this.cdata(_,C+1);case!(_ instanceof e):return this.comment(_,C+1);case!(_ instanceof l):return this.element(_,C+1);case!(_ instanceof y):return this.raw(_,C+1);case!(_ instanceof S):return this.text(_,C+1);case!(_ instanceof h):return this.processingInstruction(_,C+1);default:throw new Error("Unknown XML node type: "+_.constructor.name)}}.call(this);Z&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F+=bt+"</"+p.name+">"+this.newline}return F},E.prototype.processingInstruction=function(p,C){var R;return R=this.space(C)+"<?"+p.target,p.value&&(R+=" "+p.value),R+=this.spacebeforeslash+"?>"+this.newline,R},E.prototype.raw=function(p,C){return this.space(C)+p.value+this.newline},E.prototype.text=function(p,C){return this.space(C)+p.value+this.newline},E.prototype.dtdAttList=function(p,C){var R;return R=this.space(C)+"<!ATTLIST "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(R+=" "+p.defaultValueType),p.defaultValue&&(R+=' "'+p.defaultValue+'"'),R+=this.spacebeforeslash+">"+this.newline,R},E.prototype.dtdElement=function(p,C){return this.space(C)+"<!ELEMENT "+p.name+" "+p.value+this.spacebeforeslash+">"+this.newline},E.prototype.dtdEntity=function(p,C){var R;return R=this.space(C)+"<!ENTITY",p.pe&&(R+=" %"),R+=" "+p.name,p.value?R+=' "'+p.value+'"':(p.pubID&&p.sysID?R+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(R+=' SYSTEM "'+p.sysID+'"'),p.nData&&(R+=" NDATA "+p.nData)),R+=this.spacebeforeslash+">"+this.newline,R},E.prototype.dtdNotation=function(p,C){var R;return R=this.space(C)+"<!NOTATION "+p.name,p.pubID&&p.sysID?R+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?R+=' PUBLIC "'+p.pubID+'"':p.sysID&&(R+=' SYSTEM "'+p.sysID+'"'),R+=this.spacebeforeslash+">"+this.newline,R},E.prototype.openNode=function(p,C){var R,_,T,A;if(C||(C=0),p instanceof l){T=this.space(C)+"<"+p.name,A=p.attributes;for(_ in A)N.call(A,_)&&(R=A[_],T+=this.attribute(R));return T+=(p.children?">":"/>")+this.newline,T}else return T=this.space(C)+"<!DOCTYPE "+p.rootNodeName,p.pubID&&p.sysID?T+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(T+=' SYSTEM "'+p.sysID+'"'),T+=(p.children?" [":">")+this.newline,T},E.prototype.closeNode=function(p,C){switch(C||(C=0),!1){case!(p instanceof l):return this.space(C)+"</"+p.name+">"+this.newline;case!(p instanceof u):return this.space(C)+"]>"+this.newline}},E}(O)}).call(zd)});var Xd=P((jd,Kd)=>{(function(){var t,e,r,i,n,o=s(function(u,l){for(var h in l)a.call(l,h)&&(u[h]=l[h]);function y(){this.constructor=u}return s(y,"ctor"),y.prototype=l.prototype,u.prototype=new y,u.__super__=l.prototype,u},"extend"),a={}.hasOwnProperty;n=xr().isPlainObject,e=ft(),i=Ha(),r=xo(),Kd.exports=t=function(u){o(l,u);function l(h){l.__super__.constructor.call(this,null),h||(h={}),h.writer||(h.writer=new r),this.options=h,this.stringify=new i(h),this.isDocument=!0}return s(l,"XMLDocument"),l.prototype.end=function(h){var y;return h?n(h)&&(y=h,h=this.options.writer.set(y)):h=this.options.writer,h.document(this)},l.prototype.toString=function(h){return this.options.writer.set(h).document(this)},l}(e)}).call(jd)});var $d=P((Gd,Jd)=>{(function(){var t,e,r,i,n,o,a,u,l,h,y,v,S,O,g,N,D,E,p,C,R={}.hasOwnProperty;C=xr(),E=C.isObject,D=C.isFunction,p=C.isPlainObject,y=Yn(),e=Qn(),r=Zn(),S=os(),N=as(),v=us(),u=es(),l=ss(),i=ts(),o=rs(),n=is(),a=ns(),t=za(),g=Ha(),O=xo(),Jd.exports=h=function(){function _(T,A,w){var K;T||(T={}),T.writer?p(T.writer)&&(K=T.writer,T.writer=new O(K)):T.writer=new O(T),this.options=T,this.writer=T.writer,this.stringify=new g(T),this.onDataCallback=A||function(){},this.onEndCallback=w||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return s(_,"XMLDocumentCB"),_.prototype.node=function(T,A,w){var K;if(T==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),T=T.valueOf(),A==null&&(A={}),A=A.valueOf(),E(A)||(K=[A,w],w=K[0],A=K[1]),this.currentNode=new y(this,T,A),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,w!=null&&this.text(w),this},_.prototype.element=function(T,A,w){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(T,A,w)},_.prototype.attribute=function(T,A){var w,K;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(T!=null&&(T=T.valueOf()),E(T))for(w in T)R.call(T,w)&&(K=T[w],this.attribute(w,K));else D(A)&&(A=A.apply()),(!this.options.skipNullAttributes||A!=null)&&(this.currentNode.attributes[T]=new t(this,T,A));return this},_.prototype.text=function(T){var A;return this.openCurrent(),A=new N(this,T),this.onData(this.writer.text(A,this.currentLevel+1)),this},_.prototype.cdata=function(T){var A;return this.openCurrent(),A=new e(this,T),this.onData(this.writer.cdata(A,this.currentLevel+1)),this},_.prototype.comment=function(T){var A;return this.openCurrent(),A=new r(this,T),this.onData(this.writer.comment(A,this.currentLevel+1)),this},_.prototype.raw=function(T){var A;return this.openCurrent(),A=new S(this,T),this.onData(this.writer.raw(A,this.currentLevel+1)),this},_.prototype.instruction=function(T,A){var w,K,X,F,se;if(this.openCurrent(),T!=null&&(T=T.valueOf()),A!=null&&(A=A.valueOf()),Array.isArray(T))for(w=0,F=T.length;w<F;w++)K=T[w],this.instruction(K);else if(E(T))for(K in T)R.call(T,K)&&(X=T[K],this.instruction(K,X));else D(A)&&(A=A.apply()),se=new v(this,T,A),this.onData(this.writer.processingInstruction(se,this.currentLevel+1));return this},_.prototype.declaration=function(T,A,w){var K;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return K=new u(this,T,A,w),this.onData(this.writer.declaration(K,this.currentLevel+1)),this},_.prototype.doctype=function(T,A,w){if(this.openCurrent(),T==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new l(this,A,w),this.currentNode.rootNodeName=T,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_.prototype.dtdElement=function(T,A){var w;return this.openCurrent(),w=new n(this,T,A),this.onData(this.writer.dtdElement(w,this.currentLevel+1)),this},_.prototype.attList=function(T,A,w,K,X){var F;return this.openCurrent(),F=new i(this,T,A,w,K,X),this.onData(this.writer.dtdAttList(F,this.currentLevel+1)),this},_.prototype.entity=function(T,A){var w;return this.openCurrent(),w=new o(this,!1,T,A),this.onData(this.writer.dtdEntity(w,this.currentLevel+1)),this},_.prototype.pEntity=function(T,A){var w;return this.openCurrent(),w=new o(this,!0,T,A),this.onData(this.writer.dtdEntity(w,this.currentLevel+1)),this},_.prototype.notation=function(T,A){var w;return this.openCurrent(),w=new a(this,T,A),this.onData(this.writer.dtdNotation(w,this.currentLevel+1)),this},_.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},_.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_.prototype.openNode=function(T){if(!T.isOpen)return!this.root&&this.currentLevel===0&&T instanceof y&&(this.root=T),this.onData(this.writer.openNode(T,this.currentLevel)),T.isOpen=!0},_.prototype.closeNode=function(T){if(!T.isClosed)return this.onData(this.writer.closeNode(T,this.currentLevel)),T.isClosed=!0},_.prototype.onData=function(T){return this.documentStarted=!0,this.onDataCallback(T)},_.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_.prototype.ele=function(){return this.element.apply(this,arguments)},_.prototype.nod=function(T,A,w){return this.node(T,A,w)},_.prototype.txt=function(T){return this.text(T)},_.prototype.dat=function(T){return this.cdata(T)},_.prototype.com=function(T){return this.comment(T)},_.prototype.ins=function(T,A){return this.instruction(T,A)},_.prototype.dec=function(T,A,w){return this.declaration(T,A,w)},_.prototype.dtd=function(T,A,w){return this.doctype(T,A,w)},_.prototype.e=function(T,A,w){return this.element(T,A,w)},_.prototype.n=function(T,A,w){return this.node(T,A,w)},_.prototype.t=function(T){return this.text(T)},_.prototype.d=function(T){return this.cdata(T)},_.prototype.c=function(T){return this.comment(T)},_.prototype.r=function(T){return this.raw(T)},_.prototype.i=function(T,A){return this.instruction(T,A)},_.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_.prototype.ent=function(T,A){return this.entity(T,A)},_.prototype.pent=function(T,A){return this.pEntity(T,A)},_.prototype.not=function(T,A){return this.notation(T,A)},_}()}).call(Gd)});var Zd=P((Yd,Qd)=>{(function(){var t,e,r,i,n,o,a,u,l,h,y,v,S,O,g=s(function(D,E){for(var p in E)N.call(E,p)&&(D[p]=E[p]);function C(){this.constructor=D}return s(C,"ctor"),C.prototype=E.prototype,D.prototype=new C,D.__super__=E.prototype,D},"extend"),N={}.hasOwnProperty;a=es(),u=ss(),t=Qn(),e=Zn(),l=Yn(),y=os(),S=as(),h=us(),r=ts(),i=is(),n=rs(),o=ns(),O=ja(),Qd.exports=v=function(D){g(E,D);function E(p,C){E.__super__.constructor.call(this,C),this.stream=p}return s(E,"XMLStreamWriter"),E.prototype.document=function(p){var C,R,_,T,A,w,K,X;for(w=p.children,R=0,T=w.length;R<T;R++)C=w[R],C.isLastRootNode=!1;for(p.children[p.children.length-1].isLastRootNode=!0,K=p.children,X=[],_=0,A=K.length;_<A;_++)switch(C=K[_],!1){case!(C instanceof a):X.push(this.declaration(C));break;case!(C instanceof u):X.push(this.docType(C));break;case!(C instanceof e):X.push(this.comment(C));break;case!(C instanceof h):X.push(this.processingInstruction(C));break;default:X.push(this.element(C))}return X},E.prototype.attribute=function(p){return this.stream.write(" "+p.name+'="'+p.value+'"')},E.prototype.cdata=function(p,C){return this.stream.write(this.space(C)+"<![CDATA["+p.text+"]]>"+this.endline(p))},E.prototype.comment=function(p,C){return this.stream.write(this.space(C)+"<!-- "+p.text+" -->"+this.endline(p))},E.prototype.declaration=function(p,C){return this.stream.write(this.space(C)),this.stream.write('<?xml version="'+p.version+'"'),p.encoding!=null&&this.stream.write(' encoding="'+p.encoding+'"'),p.standalone!=null&&this.stream.write(' standalone="'+p.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(p))},E.prototype.docType=function(p,C){var R,_,T,A;if(C||(C=0),this.stream.write(this.space(C)),this.stream.write("<!DOCTYPE "+p.root().name),p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(p)),A=p.children,_=0,T=A.length;_<T;_++)switch(R=A[_],!1){case!(R instanceof r):this.dtdAttList(R,C+1);break;case!(R instanceof i):this.dtdElement(R,C+1);break;case!(R instanceof n):this.dtdEntity(R,C+1);break;case!(R instanceof o):this.dtdNotation(R,C+1);break;case!(R instanceof t):this.cdata(R,C+1);break;case!(R instanceof e):this.comment(R,C+1);break;case!(R instanceof h):this.processingInstruction(R,C+1);break;default:throw new Error("Unknown DTD node type: "+R.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(p))},E.prototype.element=function(p,C){var R,_,T,A,w,K,X,F;C||(C=0),F=this.space(C),this.stream.write(F+"<"+p.name),K=p.attributes;for(w in K)N.call(K,w)&&(R=K[w],this.attribute(R));if(p.children.length===0||p.children.every(function(se){return se.value===""}))this.allowEmpty?this.stream.write("></"+p.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&p.children.length===1&&p.children[0].value!=null)this.stream.write(">"),this.stream.write(p.children[0].value),this.stream.write("</"+p.name+">");else{for(this.stream.write(">"+this.newline),X=p.children,T=0,A=X.length;T<A;T++)switch(_=X[T],!1){case!(_ instanceof t):this.cdata(_,C+1);break;case!(_ instanceof e):this.comment(_,C+1);break;case!(_ instanceof l):this.element(_,C+1);break;case!(_ instanceof y):this.raw(_,C+1);break;case!(_ instanceof S):this.text(_,C+1);break;case!(_ instanceof h):this.processingInstruction(_,C+1);break;default:throw new Error("Unknown XML node type: "+_.constructor.name)}this.stream.write(F+"</"+p.name+">")}return this.stream.write(this.endline(p))},E.prototype.processingInstruction=function(p,C){return this.stream.write(this.space(C)+"<?"+p.target),p.value&&this.stream.write(" "+p.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(p))},E.prototype.raw=function(p,C){return this.stream.write(this.space(C)+p.value+this.endline(p))},E.prototype.text=function(p,C){return this.stream.write(this.space(C)+p.value+this.endline(p))},E.prototype.dtdAttList=function(p,C){return this.stream.write(this.space(C)+"<!ATTLIST "+p.elementName+" "+p.attributeName+" "+p.attributeType),p.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+p.defaultValueType),p.defaultValue&&this.stream.write(' "'+p.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},E.prototype.dtdElement=function(p,C){return this.stream.write(this.space(C)+"<!ELEMENT "+p.name+" "+p.value),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},E.prototype.dtdEntity=function(p,C){return this.stream.write(this.space(C)+"<!ENTITY"),p.pe&&this.stream.write(" %"),this.stream.write(" "+p.name),p.value?this.stream.write(' "'+p.value+'"'):(p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),p.nData&&this.stream.write(" NDATA "+p.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},E.prototype.dtdNotation=function(p,C){return this.stream.write(this.space(C)+"<!NOTATION "+p.name),p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.pubID?this.stream.write(' PUBLIC "'+p.pubID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(p))},E.prototype.endline=function(p){return p.isLastRootNode?"":this.newline},E}(O)}).call(Yd)});var th=P((eh,cs)=>{(function(){var t,e,r,i,n,o,a;a=xr(),n=a.assign,o=a.isFunction,t=Xd(),e=$d(),i=xo(),r=Zd(),cs.exports.create=function(u,l,h,y){var v,S;if(u==null)throw new Error("Root element needs a name");return y=n({},l,h,y),v=new t(y),S=v.element(u),y.headless||(v.declaration(y),(y.pubID!=null||y.sysID!=null)&&v.doctype(y)),S},cs.exports.begin=function(u,l,h){var y;return o(u)&&(y=[u,l],l=y[0],h=y[1],u={}),l?new e(u,l,h):new t(u)},cs.exports.stringWriter=function(u){return new i(u)},cs.exports.streamWriter=function(u,l){return new r(u,l)}}).call(eh)});var rh=P(Ka=>{(function(){"use strict";var t,e,r,i,n,o={}.hasOwnProperty;t=th(),e=wo().defaults,i=s(function(a){return typeof a=="string"&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},"requiresCDATA"),n=s(function(a){return"<![CDATA["+r(a)+"]]>"},"wrapCDATA"),r=s(function(a){return a.replace("]]>","]]]]><![CDATA[>")},"escapeCDATA"),Ka.Builder=function(){function a(u){var l,h,y;this.options={},h=e["0.2"];for(l in h)o.call(h,l)&&(y=h[l],this.options[l]=y);for(l in u)o.call(u,l)&&(y=u[l],this.options[l]=y)}return s(a,"Builder"),a.prototype.buildObject=function(u){var l,h,y,v,S;return l=this.options.attrkey,h=this.options.charkey,Object.keys(u).length===1&&this.options.rootName===e["0.2"].rootName?(S=Object.keys(u)[0],u=u[S]):S=this.options.rootName,y=function(O){return function(g,N){var D,E,p,C,R,_;if(typeof N!="object")O.options.cdata&&i(N)?g.raw(n(N)):g.txt(N);else if(Array.isArray(N)){for(C in N)if(o.call(N,C)){E=N[C];for(R in E)p=E[R],g=y(g.ele(R),p).up()}}else for(R in N)if(o.call(N,R))if(E=N[R],R===l){if(typeof E=="object")for(D in E)_=E[D],g=g.att(D,_)}else if(R===h)O.options.cdata&&i(E)?g=g.raw(n(E)):g=g.txt(E);else if(Array.isArray(E))for(C in E)o.call(E,C)&&(p=E[C],typeof p=="string"?O.options.cdata&&i(p)?g=g.ele(R).raw(n(p)).up():g=g.ele(R,p).up():g=y(g.ele(R),p).up());else typeof E=="object"?g=y(g.ele(R),E).up():typeof E=="string"&&O.options.cdata&&i(E)?g=g.ele(R).raw(n(E)).up():(E==null&&(E=""),g=g.ele(R,E.toString()).up());return g}}(this),v=t.create(S,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),y(v,u).end(this.options.renderOpts)},a}()}).call(Ka)});var ih=P(Eo=>{(function(t){t.parser=function(m,f){return new r(m,f)},t.SAXParser=r,t.SAXStream=h,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(m,f){if(!(this instanceof r))return new r(m,f);var q=this;n(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=f||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!m,q.noscript=!!(m||q.opt.noscript),q.state=w.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(g)),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),X(q,"onready")}s(r,"SAXParser"),Object.create||(Object.create=function(m){function f(){}s(f,"F"),f.prototype=m;var q=new f;return q}),Object.keys||(Object.keys=function(m){var f=[];for(var q in m)m.hasOwnProperty(q)&&f.push(q);return f});function i(m){for(var f=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,I=0,te=e.length;I<te;I++){var we=m[e[I]].length;if(we>f)switch(e[I]){case"textNode":se(m);break;case"cdata":F(m,"oncdata",m.cdata),m.cdata="";break;case"script":F(m,"onscript",m.script),m.script="";break;default:Fe(m,"Max buffer length exceeded: "+e[I])}q=Math.max(q,we)}var be=t.MAX_BUFFER_LENGTH-q;m.bufferCheckPosition=be+m.position}s(i,"checkBufferLength");function n(m){for(var f=0,q=e.length;f<q;f++)m[e[f]]=""}s(n,"clearBuffers");function o(m){se(m),m.cdata!==""&&(F(m,"oncdata",m.cdata),m.cdata=""),m.script!==""&&(F(m,"onscript",m.script),m.script="")}s(o,"flushBuffers"),r.prototype={end:function(){bt(this)},write:Kr,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var a;try{a=re("stream").Stream}catch{a=s(function(){},"Stream")}var u=t.EVENTS.filter(function(m){return m!=="error"&&m!=="end"});function l(m,f){return new h(m,f)}s(l,"createStream");function h(m,f){if(!(this instanceof h))return new h(m,f);a.apply(this),this._parser=new r(m,f),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function(I){q.emit("error",I),q._parser.error=null},this._decoder=null,u.forEach(function(I){Object.defineProperty(q,"on"+I,{get:function(){return q._parser["on"+I]},set:function(te){if(!te)return q.removeAllListeners(I),q._parser["on"+I]=te,te;q.on(I,te)},enumerable:!0,configurable:!1})})}s(h,"SAXStream"),h.prototype=Object.create(a.prototype,{constructor:{value:h}}),h.prototype.write=function(m){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(m)){if(!this._decoder){var f=re("string_decoder").StringDecoder;this._decoder=new f("utf8")}m=this._decoder.write(m)}return this._parser.write(m.toString()),this.emit("data",m),!0},h.prototype.end=function(m){return m&&m.length&&this.write(m),this._parser.end(),!0},h.prototype.on=function(m,f){var q=this;return!q._parser["on"+m]&&u.indexOf(m)!==-1&&(q._parser["on"+m]=function(){var I=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);I.splice(0,0,m),q.emit.apply(q,I)}),a.prototype.on.call(q,m,f)};var y="[CDATA[",v="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",g={xml:S,xmlns:O},N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function C(m){return m===" "||m===`
|