dynamic-mui 2.0.26 → 2.1.0

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.
Files changed (73) hide show
  1. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +237 -0
  2. package/dist/XmlShapeDeserializer-XKJAoqLc.js +1 -0
  3. package/dist/ai/client.d.ts +2 -0
  4. package/dist/ai/index.d.ts +4 -0
  5. package/dist/ai/mapping.d.ts +14 -0
  6. package/dist/ai/react/AIFill.d.ts +25 -0
  7. package/dist/ai/react/AIForm.d.ts +29 -0
  8. package/dist/ai/react/AIFormGenerator.d.ts +20 -0
  9. package/dist/ai/react/AISchemaReview.d.ts +18 -0
  10. package/dist/ai/react/AITextAssist.d.ts +35 -0
  11. package/dist/ai/react/AIVisionImport.d.ts +21 -0
  12. package/dist/ai/react/index.d.ts +6 -0
  13. package/dist/ai/types.d.ts +107 -0
  14. package/dist/components/FormGenerator.d.ts +14 -1
  15. package/dist/components/controls/AddressField/addressfield.d.ts +2 -0
  16. package/dist/components/controls/Alert/alert.d.ts +3 -0
  17. package/dist/components/controls/Button/button.d.ts +3 -0
  18. package/dist/components/controls/CascadeSelect/cascadeselect.d.ts +2 -0
  19. package/dist/components/controls/ChipSelect/chipselect.d.ts +3 -0
  20. package/dist/components/controls/ColorPicker/colorpicker.d.ts +3 -0
  21. package/dist/components/controls/Computed/computed.d.ts +7 -0
  22. package/dist/components/controls/ConsentField/consentfield.d.ts +3 -0
  23. package/dist/components/controls/CurrencyField/currencyfield.d.ts +2 -0
  24. package/dist/components/controls/DateRangePicker/daterangepicker.d.ts +3 -0
  25. package/dist/components/controls/FileUpload/fileupload.d.ts +3 -0
  26. package/dist/components/controls/FormWizard/formwizard.d.ts +2 -0
  27. package/dist/components/controls/GeoField/geofield.d.ts +6 -0
  28. package/dist/components/controls/KeyValueField/keyvaluefield.d.ts +2 -0
  29. package/dist/components/controls/MarkdownEditor/markdowneditor.d.ts +3 -0
  30. package/dist/components/controls/MatrixField/matrixfield.d.ts +3 -0
  31. package/dist/components/controls/NumberStepper/numberstepper.d.ts +2 -0
  32. package/dist/components/controls/OtpField/otpfield.d.ts +2 -0
  33. package/dist/components/controls/PasswordField/passwordfield.d.ts +2 -0
  34. package/dist/components/controls/PhoneField/phonefield.d.ts +2 -0
  35. package/dist/components/controls/Rating/rating.d.ts +3 -0
  36. package/dist/components/controls/Slider/slider.d.ts +3 -0
  37. package/dist/components/controls/SummaryField/summaryfield.d.ts +7 -0
  38. package/dist/components/controls/TagsInput/tagsinput.d.ts +3 -0
  39. package/dist/components/controls/ToggleButtons/togglebuttons.d.ts +3 -0
  40. package/dist/components/controls/index.d.ts +50 -0
  41. package/dist/date-utils-CFUUt6NL.js +4 -0
  42. package/dist/date-utils-pGzaKb0p.mjs +477 -0
  43. package/dist/dynamic-mui.cjs.js +469 -1
  44. package/dist/dynamic-mui.es.js +102548 -7
  45. package/dist/index-BW8_rRff.js +7 -0
  46. package/dist/index-BXFVK_GX.js +1 -0
  47. package/dist/index-CVqLvm8B.js +1 -0
  48. package/dist/index-Cr6Wp_S-.mjs +3141 -0
  49. package/dist/{index-BGfWFaIb.mjs → index-DA0XouZs.mjs} +16 -16
  50. package/dist/index-DKS5Sz9e.js +14 -0
  51. package/dist/index-DcWfyXJp.mjs +92 -0
  52. package/dist/index-MllWgTJ5.mjs +9372 -0
  53. package/dist/index.browser-BSu11T_q.mjs +363 -0
  54. package/dist/index.browser-By7-GABP.js +4 -0
  55. package/dist/index.d.ts +1 -0
  56. package/dist/loadCognitoIdentity-DtYTy-DW.js +1 -0
  57. package/dist/loadCognitoIdentity-DzdR91GB.mjs +872 -0
  58. package/dist/loadSts-Cic6UToN.mjs +593 -0
  59. package/dist/loadSts-csbFP6zX.js +1 -0
  60. package/dist/noAuth-B8ui2kBg.mjs +71 -0
  61. package/dist/noAuth-JPA2o4dt.js +1 -0
  62. package/dist/playground/AIContext.d.ts +18 -0
  63. package/dist/playground/AIPanel.d.ts +10 -0
  64. package/dist/types.d.ts +81 -10
  65. package/dist/util/helper.d.ts +2 -30
  66. package/dist/util/premiumStyles.d.ts +27 -0
  67. package/dist/util/rules.d.ts +35 -0
  68. package/package.json +2 -2
  69. package/dist/index-BHROoqH4.js +0 -1
  70. package/dist/index-S6BQaF_5.js +0 -465
  71. package/dist/index-Wtsz8Yiv.mjs +0 -102315
  72. package/dist/loadCognitoIdentity-CiUaDv6q.mjs +0 -935
  73. package/dist/loadCognitoIdentity-DN_MCNUl.js +0 -1
@@ -1,4 +1,4 @@
1
- import { t as z, s as x } from "./index-Wtsz8Yiv.mjs";
1
+ import { t as z, f as x } from "./date-utils-pGzaKb0p.mjs";
2
2
  class T {
3
3
  marshaller;
4
4
  serializer;
@@ -9,13 +9,13 @@ class T {
9
9
  this.marshaller = i, this.serializer = n, this.deserializer = o, this.serdeContext = c, this.defaultContentType = y;
10
10
  }
11
11
  async serializeEventStream({ eventStream: i, requestSchema: n, initialRequest: o }) {
12
- const c = this.marshaller, y = n.getEventStreamMember(), p = n.getMemberSchema(y), d = this.serializer, f = this.defaultContentType, h = /* @__PURE__ */ Symbol("initialRequestMarker"), S = {
12
+ const c = this.marshaller, y = n.getEventStreamMember(), p = n.getMemberSchema(y), d = this.serializer, u = this.defaultContentType, h = /* @__PURE__ */ Symbol("initialRequestMarker"), S = {
13
13
  async *[Symbol.asyncIterator]() {
14
14
  if (o) {
15
15
  const r = {
16
16
  ":event-type": { type: "string", value: "initial-request" },
17
17
  ":message-type": { type: "string", value: "event" },
18
- ":content-type": { type: "string", value: f }
18
+ ":content-type": { type: "string", value: u }
19
19
  };
20
20
  d.write(n, o);
21
21
  const t = d.flush();
@@ -40,7 +40,7 @@ class T {
40
40
  headers: {
41
41
  ":event-type": { type: "string", value: l },
42
42
  ":message-type": { type: "string", value: "event" },
43
- ":content-type": { type: "string", value: m ?? f },
43
+ ":content-type": { type: "string", value: m ?? u },
44
44
  ...e
45
45
  },
46
46
  body: a
@@ -48,29 +48,29 @@ class T {
48
48
  });
49
49
  }
50
50
  async deserializeEventStream({ response: i, responseSchema: n, initialResponseContainer: o }) {
51
- const c = this.marshaller, y = n.getEventStreamMember(), d = n.getMemberSchema(y).getMemberSchemas(), f = /* @__PURE__ */ Symbol("initialResponseMarker"), h = c.deserialize(i.body, async (t) => {
51
+ const c = this.marshaller, y = n.getEventStreamMember(), d = n.getMemberSchema(y).getMemberSchemas(), u = /* @__PURE__ */ Symbol("initialResponseMarker"), h = c.deserialize(i.body, async (t) => {
52
52
  const e = Object.keys(t).find((l) => l !== "__type") ?? "", a = t[e].body;
53
53
  if (e === "initial-response") {
54
54
  const l = await this.deserializer.read(n, a);
55
55
  return delete l[y], {
56
- [f]: !0,
56
+ [u]: !0,
57
57
  ...l
58
58
  };
59
59
  } else if (e in d) {
60
60
  const l = d[e];
61
61
  if (l.isStructSchema()) {
62
62
  const m = {};
63
- let u = !1;
63
+ let f = !1;
64
64
  for (const [s, g] of l.structIterator()) {
65
65
  const { eventHeader: v, eventPayload: w } = g.getMergedTraits();
66
- if (u = u || !!(v || w), w)
66
+ if (f = f || !!(v || w), w)
67
67
  g.isBlobSchema() ? m[s] = a : g.isStringSchema() ? m[s] = (this.serdeContext?.utf8Encoder ?? z)(a) : g.isStructSchema() && (m[s] = await this.deserializer.read(g, a));
68
68
  else if (v) {
69
69
  const b = t[e].headers[s]?.value;
70
70
  b != null && (g.isNumericSchema() ? b && typeof b == "object" && "bytes" in b ? m[s] = BigInt(b.toString()) : m[s] = Number(b) : m[s] = b);
71
71
  }
72
72
  }
73
- if (u)
73
+ if (f)
74
74
  return {
75
75
  [e]: m
76
76
  };
@@ -89,7 +89,7 @@ class T {
89
89
  }), S = h[Symbol.asyncIterator](), r = await S.next();
90
90
  if (r.done)
91
91
  return h;
92
- if (r.value?.[f]) {
92
+ if (r.value?.[u]) {
93
93
  if (!n)
94
94
  throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
95
95
  for (const [t, e] of Object.entries(r.value))
@@ -97,7 +97,7 @@ class T {
97
97
  }
98
98
  return {
99
99
  async *[Symbol.asyncIterator]() {
100
- for (r?.value?.[f] || (yield r.value); ; ) {
100
+ for (r?.value?.[u] || (yield r.value); ; ) {
101
101
  const { done: t, value: e } = await S.next();
102
102
  if (t)
103
103
  break;
@@ -109,8 +109,8 @@ class T {
109
109
  writeEventBody(i, n, o) {
110
110
  const c = this.serializer;
111
111
  let y = i, p = null, d;
112
- const f = n.getSchema()[4].includes(i), h = {};
113
- if (f) {
112
+ const u = n.getSchema()[4].includes(i), h = {};
113
+ if (u) {
114
114
  const t = n.getMemberSchema(i);
115
115
  if (t.isStructSchema()) {
116
116
  for (const [e, a] of t.structIterator()) {
@@ -118,11 +118,11 @@ class T {
118
118
  if (m)
119
119
  p = e;
120
120
  else if (l) {
121
- const u = o[i][e];
121
+ const f = o[i][e];
122
122
  let s = "binary";
123
- a.isNumericSchema() ? (-2) ** 31 <= u && u <= 2 ** 31 - 1 ? s = "integer" : s = "long" : a.isTimestampSchema() ? s = "timestamp" : a.isStringSchema() ? s = "string" : a.isBooleanSchema() && (s = "boolean"), u != null && (h[e] = {
123
+ a.isNumericSchema() ? (-2) ** 31 <= f && f <= 2 ** 31 - 1 ? s = "integer" : s = "long" : a.isTimestampSchema() ? s = "timestamp" : a.isStringSchema() ? s = "string" : a.isBooleanSchema() && (s = "boolean"), f != null && (h[e] = {
124
124
  type: s,
125
- value: u
125
+ value: f
126
126
  }, delete o[i][e]);
127
127
  }
128
128
  }
@@ -0,0 +1,14 @@
1
+ "use strict";const y=require("./date-utils-CFUUt6NL.js"),Nt=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),$t=t=>({httpHandler:t.httpHandler()});var q;(function(t){t.HTTP="http",t.HTTPS="https"})(q||(q={}));var Y;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Y||(Y={}));const ge="__smithy_context";function Ye(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}function x(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}const xe=t=>y.HttpResponse.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,be=t=>new Date(Date.now()+t),Ut=(t,e)=>Math.abs(be(e).getTime()-t)>=3e5,_e=(t,e)=>{const r=Date.parse(t);return Ut(r,e)?r-Date.now():e},B=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},Je=async t=>{const e=B("context",t.context),r=B("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],i=await B("signer",r.signer)(n),o=t?.signingRegion,c=t?.signingRegionSet,u=t?.signingName;return{config:r,signer:i,signingRegion:o,signingRegionSet:c,signingName:u}};class Ht{async sign(e,r,n){if(!y.HttpRequest.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const s=await Je(n),{config:i,signer:o}=s;let{signingRegion:c,signingName:u}=s;const a=n.context;if(a?.authSchemes?.length??!1){const[d,l]=a.authSchemes;d?.name==="sigv4a"&&l?.name==="sigv4"&&(c=l?.signingRegion??c,u=l?.signingName??u)}return await o.sign(e,{signingDate:be(i.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return r=>{const n=r.ServerTime??xe(r.$response);if(n){const s=B("config",e.config),i=s.systemClockOffset;s.systemClockOffset=_e(n,s.systemClockOffset),s.systemClockOffset!==i&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const n=xe(e);if(n){const s=B("config",r.config);s.systemClockOffset=_e(n,s.systemClockOffset)}}}const L=t=>t[ge]||(t[ge]={}),I=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Lt=(t,e)=>{if(!e||e.length===0)return t;const r=[];for(const n of e)for(const s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(const n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r};function Ft(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const zt=(t,e)=>(r,n)=>async s=>{const i=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),o=t.authSchemePreference?await t.authSchemePreference():[],c=Lt(i,o),u=Ft(t.httpAuthSchemes),a=L(n),h=[];for(const d of c){const l=u.get(d.schemeId);if(!l){h.push(`HttpAuthScheme \`${d.schemeId}\` was not enabled for this service.`);continue}const f=l.identityProvider(await e.identityProviderConfigProvider(t));if(!f){h.push(`HttpAuthScheme \`${d.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:g={},signingProperties:m={}}=d.propertiesExtractor?.(t,n)||{};d.identityProperties=Object.assign(d.identityProperties||{},g),d.signingProperties=Object.assign(d.signingProperties||{},m),a.selectedHttpAuthScheme={httpAuthOption:d,identity:await f(d.identityProperties),signer:l.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(h.join(`
2
+ `));return r(s)},Bt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},jt=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(zt(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Bt)}}),qt={name:"serializerMiddleware"},Vt=t=>e=>{throw e},Gt=(t,e)=>{},Wt=t=>(e,r)=>async n=>{if(!y.HttpRequest.isInstance(n.request))return e(n);const i=L(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:c,signer:u}=i,a=await e({...n,request:await u.sign(n.request,c,o)}).catch((u.errorHandler||Vt)(o));return(u.successHandler||Gt)(a.response,o),a},Ze={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Kt=t=>({applyToStack:e=>{e.addRelativeTo(Wt(),Ze)}}),$=t=>typeof t=="string"?y.fromUtf8(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t);class M extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?M.mutate(y.fromBase64(e)):M.mutate(y.fromUtf8(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,M.prototype),e}transformToString(e="utf-8"){return e==="base64"?y.toBase64(this):y.toUtf8(this)}}const Xt=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return M.mutate(t);if(!t)return M.mutate(new Uint8Array);const r=e.streamCollector(t);return M.mutate(await r)},X=t=>typeof t=="function"?t():t,et=(t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),Qt=t=>(e,r)=>async n=>{const{response:s}=await e(n),{operationSchema:i}=L(r),[,o,c,u,a,h]=i??[];try{const d=await t.protocol.deserializeResponse(et(o,c,u,a,h),{...t,...r},s);return{response:s,output:d}}catch(d){if(Object.defineProperty(d,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in d)){const l="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{d.message+=`
3
+ `+l}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(l):r.logger?.warn?.(l)}typeof d.$responseBodyText<"u"&&d.$response&&(d.$response.body=d.$responseBodyText);try{if(y.HttpResponse.isInstance(s)){const{headers:f={}}=s,g=Object.entries(f);d.$metadata={httpStatusCode:s.statusCode,requestId:ie(/^x-[\w-]+-request-?id$/,g),extendedRequestId:ie(/^x-[\w-]+-id-2$/,g),cfId:ie(/^x-[\w-]+-cf-id$/,g)}}}catch{}}throw d}},ie=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],Yt=t=>(e,r)=>async n=>{const{operationSchema:s}=L(r),[,i,o,c,u,a]=s??[],h=r.endpointV2?.url&&t.urlParser?async()=>t.urlParser(r.endpointV2.url):t.endpoint,d=await t.protocol.serializeRequest(et(i,o,c,u,a),n.input,{...t,...r,endpoint:h});return e({...n,request:d})},Jt={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Zt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function er(t){return{applyToStack:e=>{e.add(Yt(t),Zt),e.add(Qt(t),Jt),t.protocol.setSerdeContext(t)}}}function D(t){if(typeof t=="object")return t;t=t|0;const e={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return e}const Ie={it:Symbol.for("@smithy/nor-struct-it")};class A{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=A.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;const n=[];let s=e,i=e;for(this._isMemberSchema=!1;oe(s);)n.push(s[1]),s=s[0],i=X(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let o=n.length-1;o>=0;--o){const c=n[o];Object.assign(this.memberTraits,D(c))}}else this.memberTraits=0;if(i instanceof A){const o=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},o,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??i.memberName;return}if(this.schema=X(i),tr(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){const r=X(e);if(r instanceof A)return r;if(oe(r)){const[n,s]=r;if(n instanceof A)return Object.assign(n.getMergedTraits(),D(s)),n;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new A(r)}getSchema(){const e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){const{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!="object")return!1;const r=e[0];return r===3||r===-3||r===4}isUnionSchema(){const e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return D(this.memberTraits)}getOwnTraits(){return D(this.traits)}getKeySchema(){const[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const n=this.getSchema(),s=e?15:n[4]??0;return z([s,0],"key")}getValueSchema(){const e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(i!=null)return z([i,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){const n=r[4].indexOf(e),s=r[5][n];return z(oe(s)?s:[s,0],e)}if(this.isDocumentSchema())return z([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),r=e[4].length;let n=e[Ie.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;s<r;++s){const i=e[4][s],o=z([e[5][s],0],i);yield n[s]=[i,o]}e[Ie.it]=n}}function z(t,e){if(t instanceof A)return Object.assign(t,{memberName:e,_isMemberSchema:!0});const r=A;return new r(t,e)}const oe=t=>Array.isArray(t)&&t.length===2,tr=t=>Array.isArray(t)&&t.length>=5;class T{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n}static for(e){return T.registries.has(e)||T.registries.set(e,new T(e)),T.registries.get(e)}copyFrom(e){const{schemas:r,exceptions:n}=this;for(const[s,i]of e.schemas)r.has(s)||r.set(s,i);for(const[s,i]of e.exceptions)n.has(s)||n.set(s,i)}register(e,r){const n=this.normalizeShapeId(e);for(const s of[this,T.for(n.split("#")[0])])s.schemas.set(n,r)}getSchema(e){const r=this.normalizeShapeId(e);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(e,r){const n=e,s=n[1];for(const i of[this,T.for(s)])i.schemas.set(s+"#"+n[2],n),i.exceptions.set(n,r)}getErrorCtor(e){const r=e;return this.exceptions.has(r)?this.exceptions.get(r):T.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}const Oe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),b=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),tt=()=>{if(Oe)return Oe();const t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,b[t[0]]+b[t[1]]+b[t[2]]+b[t[3]]+"-"+b[t[4]]+b[t[5]]+"-"+b[t[6]]+b[t[7]]+"-"+b[t[8]]+b[t[9]]+"-"+b[t[10]]+b[t[11]]+b[t[12]]+b[t[13]]+b[t[14]]+b[t[15]]},k=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};k.from=t=>t&&typeof t=="object"&&(t instanceof k||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?k(String(t)):k(JSON.stringify(t));k.fromObject=k.from;const Pe=/^-?\d*(\.\d+)?$/;class Ee{string;type;constructor(e,r){if(this.string=e,this.type=r,!Pe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;const r=e;return Ee.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&Pe.test(r.string)}}class rt{serdeContext;setSerdeContext(e){this.serdeContext=e}}class rr extends rt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=T.for(e.defaultNamespace);for(const r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return y.HttpRequest}getResponseType(){return y.HttpResponse}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(const[n,s]of r.url.searchParams.entries())e.query[n]=s;return e}else return e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},e}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;const s=A.of(r.input),i=D(r.traits??{});if(i.endpoint){let o=i.endpoint?.[0];if(typeof o=="string"){const c=[...s.structIterator()].filter(([,u])=>u.getMergedTraits().hostLabel);for(const[u]of c){const a=n[u];if(typeof a!="string")throw new Error(`@smithy/core/schema - ${u} in input must be a string as hostLabel.`);o=o.replace(`{${u}}`,a)}e.hostname=o+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await Promise.resolve().then(()=>require("./index-BXFVK_GX.js"));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}function nr(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();const{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:i}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:i||r?5:void 0:void 0)??e.timestampFormat.default}function sr(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}class ir{authSchemes=new Map;constructor(e){for(const[r,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(r,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}const or=t=>function(r){return nt(r)&&r.expiration.getTime()-Date.now()<t},ar=3e5,cr=or(ar),nt=t=>t.expiration!==void 0,ur=(t,e,r)=>{if(t===void 0)return;const n=typeof t!="function"?async()=>Promise.resolve(t):t;let s,i,o,c=!1;const u=async a=>{i||(i=n(a));try{s=await i,o=!0,c=!1}finally{i=void 0}return s};return e===void 0?async a=>((!o||a?.forceRefresh)&&(s=await u(a)),s):async a=>((!o||a?.forceRefresh)&&(s=await u(a)),c?s:r(s)?(e(s)&&await u(a),s):(c=!0,s))},dr=(t,e,r)=>{let n,s,i,o=!1;const c=async()=>{s||(s=t());try{n=await s,i=!0,o=!1}finally{s=void 0}return n};return async u=>((!i||u?.forceRefresh)&&(n=await c()),n)},lr="X-Amz-Algorithm",fr="X-Amz-Credential",st="X-Amz-Date",hr="X-Amz-SignedHeaders",pr="X-Amz-Expires",it="X-Amz-Signature",ot="X-Amz-Security-Token",at="authorization",ct=st.toLowerCase(),gr="date",mr=[at,ct,gr],yr=it.toLowerCase(),me="x-amz-content-sha256",wr=ot.toLowerCase(),Sr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},br=/^proxy-/,Er=/^sec-/,ae="AWS4-HMAC-SHA256",Rr="AWS4-HMAC-SHA256-PAYLOAD",vr="UNSIGNED-PAYLOAD",Tr=50,ut="aws4_request",Ar=3600*24*7,W={},ce=[],ue=(t,e,r)=>`${t}/${e}/${r}/${ut}`,Cr=async(t,e,r,n,s)=>{const i=await ke(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${s}:${y.toHex(i)}:${e.sessionToken}`;if(o in W)return W[o];for(ce.push(o);ce.length>Tr;)delete W[ce.shift()];let c=`AWS4${e.secretAccessKey}`;for(const u of[r,n,s,ut])c=await ke(t,c,u);return W[o]=c},ke=(t,e,r)=>{const n=new t(e);return n.update($(r)),n.digest()},Me=({headers:t},e,r)=>{const n={};for(const s of Object.keys(t).sort()){if(t[s]==null)continue;const i=s.toLowerCase();(i in Sr||e?.has(i)||br.test(i)||Er.test(i))&&(!r||r&&!r.has(i))||(n[i]=t[s].trim().replace(/\s+/g," "))}return n},dt=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",de=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===me)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||dt(e)){const n=new r;return n.update($(e)),y.toHex(await n.digest())}return vr};class xr{format(e){const r=[];for(const i of Object.keys(e)){const o=y.fromUtf8(i);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[i]))}const n=new Uint8Array(r.reduce((i,o)=>i+o.byteLength,0));let s=0;for(const i of r)n.set(i,s),s+=i.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const c=y.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);const a=new Uint8Array(u.buffer);return a.set(c,3),a;case"timestamp":const h=new Uint8Array(9);return h[0]=8,h.set(Re.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!_r.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set(y.fromHex(e.value.replace(/\-/g,"")),1),d}}}var De;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(De||(De={}));const _r=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Re{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&Ne(r),new Re(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&Ne(e),parseInt(y.toHex(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function Ne(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const Ir=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},Or=(t,e={})=>{const{headers:r,query:n={}}=y.HttpRequest.clone(t);for(const s of Object.keys(r)){const i=s.toLowerCase();(i.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(i)||e.hoistableHeaders?.has(i))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},$e=t=>{t=y.HttpRequest.clone(t);for(const e of Object.keys(t.headers))mr.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},Pr=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t)){if(n.toLowerCase()===yr)continue;const s=y.escapeUri(n);e.push(s);const i=t[n];typeof i=="string"?r[s]=`${s}=${y.escapeUri(i)}`:Array.isArray(i)&&(r[s]=i.slice(0).reduce((o,c)=>o.concat([`${s}=${y.escapeUri(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},kr=t=>Mr(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Mr=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class Dr{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:i,uriEscapePath:o=!0}){this.service=s,this.sha256=i,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=I(n),this.credentialProvider=I(r)}createCanonicalRequest(e,r,n){const s=Object.keys(r).sort();return`${e.method}
4
+ ${this.getCanonicalPath(e)}
5
+ ${Pr(e)}
6
+ ${s.map(i=>`${i}:${r[i]}`).join(`
7
+ `)}
8
+
9
+ ${s.join(";")}
10
+ ${n}`}async createStringToSign(e,r,n,s){const i=new this.sha256;i.update($(n));const o=await i.digest();return`${s}
11
+ ${e}
12
+ ${r}
13
+ ${y.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const i of e.split("/"))i?.length!==0&&i!=="."&&(i===".."?r.pop():r.push(i));const n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return y.escapeUri(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){const r=kr(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class ye extends Dr{headerFormatter=new xr;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:i,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:i,uriEscapePath:o})}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:c,hoistableHeaders:u,signingRegion:a,signingService:h}=r,d=await this.credentialProvider();this.validateResolvedCredentials(d);const l=a??await this.regionProvider(),{longDate:f,shortDate:g}=this.formatDate(n);if(s>Ar)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=ue(g,l,h??this.service),p=Or($e(e),{unhoistableHeaders:o,hoistableHeaders:u});d.sessionToken&&(p.query[ot]=d.sessionToken),p.query[lr]=ae,p.query[fr]=`${d.accessKeyId}/${m}`,p.query[st]=f,p.query[pr]=s.toString(10);const w=Me(p,i,c);return p.query[hr]=this.getCanonicalHeaderList(w),p.query[it]=await this.getSignature(f,m,this.getSigningKey(d,l,g,h),this.createCanonicalRequest(p,w,await de(e,this.sha256))),p}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:i,signingService:o}){const c=i??await this.regionProvider(),{shortDate:u,longDate:a}=this.formatDate(n),h=ue(u,c,o??this.service),d=await de({headers:{},body:r},this.sha256),l=new this.sha256;l.update(e);const f=y.toHex(await l.digest()),g=[Rr,a,h,s,f,d].join(`
14
+ `);return this.signString(g,{signingDate:n,signingRegion:c,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature}).then(o=>({message:e.message,signature:o}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const o=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,o,c,s));return u.update($(e)),y.toHex(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:i,signingService:o}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const u=i??await this.regionProvider(),a=$e(e),{longDate:h,shortDate:d}=this.formatDate(r),l=ue(d,u,o??this.service);a.headers[ct]=h,c.sessionToken&&(a.headers[wr]=c.sessionToken);const f=await de(a,this.sha256);!Ir(me,a.headers)&&this.applyChecksum&&(a.headers[me]=f);const g=Me(a,s,n),m=await this.getSignature(h,l,this.getSigningKey(c,u,d,o),this.createCanonicalRequest(a,g,f));return a.headers[at]=`${ae} Credential=${c.accessKeyId}/${l}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${m}`,a}async getSignature(e,r,n,s){const i=await this.createStringToSign(e,r,s,ae),o=new this.sha256(await n);return o.update($(i)),y.toHex(await o.digest())}getSigningKey(e,r,n,s){return Cr(this.sha256,e,n,r,s||this.service)}}const Nr=t=>{let e=t.credentials,r=!!t.credentials,n;Object.defineProperty(t,"credentials",{set(a){a&&a!==e&&a!==n&&(r=!0),e=a;const h=$r(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),d=Ur(t,h);if(r&&!d.attributed){const l=typeof e=="object"&&e!==null;n=async f=>{const m=await d(f);return l&&(!m.$source||Object.keys(m.$source).length===0)?Ye(m,"CREDENTIALS_CODE","e"):m},n.memoized=d.memoized,n.configBound=d.configBound,n.attributed=!0}else n=d},get(){return n},enumerable:!0,configurable:!0}),t.credentials=e;const{signingEscapePath:s=!0,systemClockOffset:i=t.systemClockOffset||0,sha256:o}=t;let c;return t.signer?c=y.normalizeProvider(t.signer):t.regionInfoProvider?c=()=>y.normalizeProvider(t.region)().then(async a=>[await t.regionInfoProvider(a,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},a]).then(([a,h])=>{const{signingRegion:d,signingService:l}=a;t.signingRegion=t.signingRegion||d||h,t.signingName=t.signingName||l||t.serviceId;const f={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:o,uriEscapePath:s},g=t.signerConstructor||ye;return new g(f)}):c=async a=>{a=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await y.normalizeProvider(t.region)(),properties:{}},a);const h=a.signingRegion,d=a.signingName;t.signingRegion=t.signingRegion||h,t.signingName=t.signingName||d||t.serviceId;const l={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:o,uriEscapePath:s},f=t.signerConstructor||ye;return new f(l)},Object.assign(t,{systemClockOffset:i,signingEscapePath:s,signer:c})};function $r(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=ur(e,cr,nt):r?n=y.normalizeProvider(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function Ur(t,e){if(e.configBound)return e;const r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}const Ue=typeof TextEncoder=="function"?new TextEncoder:null,Hr=t=>{if(typeof t=="string"){if(Ue)return Ue.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},P=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},_=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,J=()=>{let t=[],e=[],r=!1;const n=new Set,s=d=>d.sort((l,f)=>He[f.step]-He[l.step]||Le[f.priority||"normal"]-Le[l.priority||"normal"]),i=d=>{let l=!1;const f=g=>{const m=P(g.name,g.aliases);if(m.includes(d)){l=!0;for(const p of m)n.delete(p);return!1}return!0};return t=t.filter(f),e=e.filter(f),l},o=d=>{let l=!1;const f=g=>{if(g.middleware===d){l=!0;for(const m of P(g.name,g.aliases))n.delete(m);return!1}return!0};return t=t.filter(f),e=e.filter(f),l},c=d=>(t.forEach(l=>{d.add(l.middleware,{...l})}),e.forEach(l=>{d.addRelativeTo(l.middleware,{...l})}),d.identifyOnResolve?.(h.identifyOnResolve()),d),u=d=>{const l=[];return d.before.forEach(f=>{f.before.length===0&&f.after.length===0?l.push(f):l.push(...u(f))}),l.push(d),d.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?l.push(f):l.push(...u(f))}),l},a=(d=!1)=>{const l=[],f=[],g={};return t.forEach(p=>{const w={...p,before:[],after:[]};for(const S of P(w.name,w.aliases))g[S]=w;l.push(w)}),e.forEach(p=>{const w={...p,before:[],after:[]};for(const S of P(w.name,w.aliases))g[S]=w;f.push(w)}),f.forEach(p=>{if(p.toMiddleware){const w=g[p.toMiddleware];if(w===void 0){if(d)return;throw new Error(`${p.toMiddleware} is not found when adding ${_(p.name,p.aliases)} middleware ${p.relation} ${p.toMiddleware}`)}p.relation==="after"&&w.after.push(p),p.relation==="before"&&w.before.push(p)}}),s(l).map(u).reduce((p,w)=>(p.push(...w),p),[])},h={add:(d,l={})=>{const{name:f,override:g,aliases:m}=l,p={step:"initialize",priority:"normal",middleware:d,...l},w=P(f,m);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${_(f,m)}'`);for(const S of w){const C=t.findIndex(F=>F.name===S||F.aliases?.some(se=>se===S));if(C===-1)continue;const E=t[C];if(E.step!==p.step||p.priority!==E.priority)throw new Error(`"${_(E.name,E.aliases)}" middleware with ${E.priority} priority in ${E.step} step cannot be overridden by "${_(f,m)}" middleware with ${p.priority} priority in ${p.step} step.`);t.splice(C,1)}}for(const S of w)n.add(S)}t.push(p)},addRelativeTo:(d,l)=>{const{name:f,override:g,aliases:m}=l,p={middleware:d,...l},w=P(f,m);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${_(f,m)}'`);for(const S of w){const C=e.findIndex(F=>F.name===S||F.aliases?.some(se=>se===S));if(C===-1)continue;const E=e[C];if(E.toMiddleware!==p.toMiddleware||E.relation!==p.relation)throw new Error(`"${_(E.name,E.aliases)}" middleware ${E.relation} "${E.toMiddleware}" middleware cannot be overridden by "${_(f,m)}" middleware ${p.relation} "${p.toMiddleware}" middleware.`);e.splice(C,1)}}for(const S of w)n.add(S)}e.push(p)},clone:()=>c(J()),use:d=>{d.applyToStack(h)},remove:d=>typeof d=="string"?i(d):o(d),removeByTag:d=>{let l=!1;const f=g=>{const{tags:m,name:p,aliases:w}=g;if(m&&m.includes(d)){const S=P(p,w);for(const C of S)n.delete(C);return l=!0,!1}return!0};return t=t.filter(f),e=e.filter(f),l},concat:d=>{const l=c(J());return l.use(d),l.identifyOnResolve(r||l.identifyOnResolve()||(d.identifyOnResolve?.()??!1)),l},applyToStack:c,identify:()=>a(!0).map(d=>{const l=d.step??d.relation+" "+d.toMiddleware;return _(d.name,d.aliases)+" - "+l}),identifyOnResolve(d){return typeof d=="boolean"&&(r=d),r},resolve:(d,l)=>{for(const f of a().map(g=>g.middleware).reverse())d=f(d,l);return r&&console.log(h.identify()),d}};return h},He={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Le={high:3,normal:2,low:1};class Lr{config;middlewareStack=J();initConfig;handlers;constructor(e){this.config=e;const{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){const s=typeof r!="function"?r:void 0,i=typeof r=="function"?r:n,o=s===void 0&&this.config.cacheMiddleware===!0;let c;if(o){this.handlers||(this.handlers=new WeakMap);const u=this.handlers;u.has(e.constructor)?c=u.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),u.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(i)c(e).then(u=>i(null,u.output),u=>i(u)).catch(()=>{});else return c(e).then(u=>u.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const le="***SensitiveInformation***";function we(t,e){if(e==null)return e;const r=A.of(t);if(r.getMergedTraits().sensitive)return le;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return le}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return le}else if(r.isStructSchema()&&typeof e=="object"){const n=e,s={};for(const[i,o]of r.structIterator())n[i]!=null&&(s[i]=we(o,n[i]));return s}return e}class lt{middlewareStack=J();schema;static classBuilder(){return new Fr}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:i,commandName:o,inputFilterSensitiveLog:c,outputFilterSensitiveLog:u,smithyContext:a,additionalContext:h,CommandCtor:d}){for(const p of s.bind(this)(d,e,r,n))this.middlewareStack.use(p);const l=e.concat(this.middlewareStack),{logger:f}=r,g={logger:f,clientName:i,commandName:o,inputFilterSensitiveLog:c,outputFilterSensitiveLog:u,[ge]:{commandInstance:this,...a},...h},{requestHandler:m}=r;return l.resolve(p=>m.handle(p.request,n||{}),g)}}class Fr{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let r;return r=class extends lt{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,i){const o=e._operationSchema,c=o?.[4]??o?.input,u=o?.[5]??o?.output;return this.resolveMiddlewareWithContext(n,s,i,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?we.bind(null,c):a=>a),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?we.bind(null,u):a=>a),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}class N extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const r=e;return N.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;const r=e;return this===N?N.isInstance(e):N.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}}const Fe=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},zr=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Br=t=>{const e=[];for(const r in Y){const n=Y[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},jr=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},qr=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Vr=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},Gr=t=>Object.assign(Br(t),qr(t)),Wr=t=>Object.assign(jr(t),Vr(t));class ft{trace(){}debug(){}info(){}warn(){}error(){}}class Kr{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){const n=r.getMemberSchemas(),s=Object.values(n).find(i=>!!i.getMergedTraits().httpPayload);if(s){const i=s.getMergedTraits().mediaType;return i||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(o=>{const{httpQuery:c,httpQueryParams:u,httpHeader:a,httpLabel:h,httpPrefixHeaders:d}=o.getMergedTraits();return!c&&!u&&!a&&!h&&d===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,i,o){let c=r,u=e;e.includes("#")&&([c,u]=e.split("#"));const a={$metadata:i,$fault:n.statusCode<500?"client":"server"},h=T.for(c);try{return{errorSchema:o?.(h,u)??h.getSchema(e),errorMetadata:a}}catch{s.message=s.message??s.Message??"UnknownError";const l=T.for("smithy.ts.sdk.synthetic."+c),f=l.getBaseException();if(f){const g=l.getErrorCtor(f)??Error;throw this.decorateServiceException(Object.assign(new g({name:u}),a),s)}throw this.decorateServiceException(Object.assign(new Error(u),a),s)}}decorateServiceException(e,r={}){if(this.queryCompat){const n=e.Message??r.Message,s=Fe(e,r);n&&(s.message=n),s.Error={...s.Error,Type:s.Error?.Type,Code:s.Error?.Code,Message:s.Error?.message??s.Error?.Message??n};const i=s.$metadata.requestId;return i&&(s.RequestId=i),s}return Fe(e,r)}setQueryCompatError(e,r){const n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){const[s,i]=n.split(";"),o=Object.entries(e),c={Code:s,Type:i};Object.assign(e,c);for(const[u,a]of o)c[u==="message"?"Message":u]=a;delete c.__type,e.Error=c}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(s=>A.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}class Xr{serdeContext;setSerdeContext(e){this.serdeContext=e}}class Qr{from;to;keys;constructor(e,r){this.from=e,this.to=r,this.keys=new Set(Object.keys(this.from).filter(n=>n!=="__type"))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}function ht(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function c(h){try{a(n.next(h))}catch(d){o(d)}}function u(h){try{a(n.throw(h))}catch(d){o(d)}}function a(h){h.done?i(h.value):s(h.value).then(c,u)}a((n=n.apply(t,e||[])).next())})}function pt(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(h){return u([a,h])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(r=0)),r;)try{if(n=1,s&&(i=a[0]&2?s.return:a[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,a[1])).done)return i;switch(s=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,s=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=e.call(t,r)}catch(h){a=[6,h],s=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Yr(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}const Jr=t=>new TextEncoder().encode(t);var Zr=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:Jr;function U(t){return t instanceof Uint8Array?t:typeof t=="string"?Zr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function Z(t){return typeof t=="string"?t.length===0:t.byteLength===0}function en(t){return t}const tn=t=>e=>async r=>{if(!y.HttpRequest.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let i=n.hostname;n.port!=null&&(i+=`:${n.port}`),n.headers.host=i}return e(r)},rn={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},nn=t=>({applyToStack:e=>{e.add(tn(t),rn)}}),sn=()=>(t,e)=>async r=>{try{const n=await t(r),{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:a}=c,h=u??e.inputFilterSensitiveLog,d=a??e.outputFilterSensitiveLog,{$metadata:l,...f}=n.output;return o?.info?.({clientName:s,commandName:i,input:h(r.input),output:d(f),metadata:l}),n}catch(n){const{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:u}=c,a=u??e.inputFilterSensitiveLog;throw o?.error?.({clientName:s,commandName:i,input:a(r.input),error:n,metadata:n.$metadata}),n}},on={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},an=t=>({applyToStack:e=>{e.add(sn(),on)}}),cn={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},un=()=>t=>async e=>t(e),dn=t=>({applyToStack:e=>{e.add(un(),cn)}}),ln=void 0;function fn(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function hn(t){const e=y.normalizeProvider(t.userAgentAppId??ln),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{const n=await e();if(!fn(n)){const s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}class pn{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){const n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){const s=this.data.keys();let i=0;for(;;){const{value:o,done:c}=s.next();if(this.data.delete(o),c||++i>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="";const{parameters:n}=this;if(n.length===0)return!1;for(const s of n){const i=String(e[s]??"");if(i.includes("|;"))return!1;r+=i+"|;"}return r}}const gn=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),ve=t=>gn.test(t)||t.startsWith("[")&&t.endsWith("]"),mn=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),G=(t,e=!1)=>{if(!e)return mn.test(t);const r=t.split(".");for(const n of r)if(!G(n))return!1;return!0},ee={},V="endpoints";function O(t){return typeof t!="object"||t==null?t:"ref"in t?`$${O(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(O).join(", ")})`:JSON.stringify(t,null,2)}class R extends Error{constructor(e){super(e),this.name="EndpointError"}}const yn=(t,e)=>t===e,wn=t=>{const e=t.split("."),r=[];for(const n of e){const s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new R(`Path: '${t}' does not end with ']'`);const i=n.slice(s+1,-1);if(Number.isNaN(parseInt(i)))throw new R(`Invalid array index: '${i}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(i)}else r.push(n)}return r},gt=(t,e)=>wn(e).reduce((r,n)=>{if(typeof r!="object")throw new R(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),Sn=t=>t!=null,bn=t=>!t,fe={[q.HTTP]:80,[q.HTTPS]:443},En=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:l,port:f,protocol:g="",path:m="",query:p={}}=t,w=new URL(`${g}//${l}${f?`:${f}`:""}${m}`);return w.search=Object.entries(p).map(([S,C])=>`${S}=${C}`).join("&"),w}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:s,pathname:i,protocol:o,search:c}=e;if(c)return null;const u=o.slice(0,-1);if(!Object.values(q).includes(u))return null;const a=ve(s),h=r.includes(`${n}:${fe[u]}`)||typeof t=="string"&&t.includes(`${n}:${fe[u]}`),d=`${n}${h?`:${fe[u]}`:""}`;return{scheme:u,authority:d,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:a}},Rn=(t,e)=>t===e,vn=(t,e,r,n)=>e>=r||t.length<r?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r),Tn=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),An={booleanEquals:yn,getAttr:gt,isSet:Sn,isValidHostLabel:G,not:bn,parseURL:En,stringEquals:Rn,substring:vn,uriEncode:Tn},mt=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let s=0;for(;s<t.length;){const i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));const o=t.indexOf("}",i);if(o===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[o+1]==="}"&&(r.push(t.slice(i+1,o)),s=o+2);const c=t.substring(i+1,o);if(c.includes("#")){const[u,a]=c.split("#");r.push(gt(n[u],a))}else r.push(n[c]);s=o+1}return r.join("")},Cn=({ref:t},e)=>({...e.endpointParams,...e.referenceRecord})[t],ne=(t,e,r)=>{if(typeof t=="string")return mt(t,r);if(t.fn)return wt.callFunction(t,r);if(t.ref)return Cn(t,r);throw new R(`'${e}': ${String(t)} is not a string, function or reference.`)},yt=({fn:t,argv:e},r)=>{const n=e.map(i=>["boolean","number"].includes(typeof i)?i:wt.evaluateExpression(i,"arg",r)),s=t.split(".");return s[0]in ee&&s[1]!=null?ee[s[0]][s[1]](...n):An[t](...n)},wt={evaluateExpression:ne,callFunction:yt},xn=({assign:t,...e},r)=>{if(t&&t in r.referenceRecord)throw new R(`'${t}' is already defined in Reference Record.`);const n=yt(e,r);return r.logger?.debug?.(`${V} evaluateCondition: ${O(e)} = ${O(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Te=(t=[],e)=>{const r={};for(const n of t){const{result:s,toAssign:i}=xn(n,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!s)return{result:s};i&&(r[i.name]=i.value,e.logger?.debug?.(`${V} assign: ${i.name} := ${O(i.value)}`))}return{result:!0,referenceRecord:r}},_n=(t,e)=>Object.entries(t).reduce((r,[n,s])=>({...r,[n]:s.map(i=>{const o=ne(i,"Header value entry",e);if(typeof o!="string")throw new R(`Header '${n}' value '${o}' is not a string`);return o})}),{}),St=(t,e)=>Object.entries(t).reduce((r,[n,s])=>({...r,[n]:Et.getEndpointProperty(s,e)}),{}),bt=(t,e)=>{if(Array.isArray(t))return t.map(r=>bt(r,e));switch(typeof t){case"string":return mt(t,e);case"object":if(t===null)throw new R(`Unexpected endpoint property: ${t}`);return Et.getEndpointProperties(t,e);case"boolean":return t;default:throw new R(`Unexpected endpoint property type: ${typeof t}`)}},Et={getEndpointProperty:bt,getEndpointProperties:St},In=(t,e)=>{const r=ne(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new R(`Endpoint URL must be a string, got ${typeof r}`)},On=(t,e)=>{const{conditions:r,endpoint:n}=t,{result:s,referenceRecord:i}=Te(r,e);if(!s)return;const o={...e,referenceRecord:{...e.referenceRecord,...i}},{url:c,properties:u,headers:a}=n;return e.logger?.debug?.(`${V} Resolving endpoint from template: ${O(n)}`),{...a!=null&&{headers:_n(a,o)},...u!=null&&{properties:St(u,o)},url:In(c,o)}},Pn=(t,e)=>{const{conditions:r,error:n}=t,{result:s,referenceRecord:i}=Te(r,e);if(s)throw new R(ne(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...i}}))},Rt=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=On(r,e);if(n)return n}else if(r.type==="error")Pn(r,e);else if(r.type==="tree"){const n=vt.evaluateTreeRule(r,e);if(n)return n}else throw new R(`Unknown endpoint rule: ${r}`);throw new R("Rules evaluation failed")},kn=(t,e)=>{const{conditions:r,rules:n}=t,{result:s,referenceRecord:i}=Te(r,e);if(s)return vt.evaluateRules(n,{...e,referenceRecord:{...e.referenceRecord,...i}})},vt={evaluateRules:Rt,evaluateTreeRule:kn},Mn=(t,e)=>{const{endpointParams:r,logger:n}=e,{parameters:s,rules:i}=t;e.logger?.debug?.(`${V} Initial EndpointParams: ${O(r)}`);const o=Object.entries(s).filter(([,a])=>a.default!=null).map(([a,h])=>[a,h.default]);if(o.length>0)for(const[a,h]of o)r[a]=r[a]??h;const c=Object.entries(s).filter(([,a])=>a.required).map(([a])=>a);for(const a of c)if(r[a]==null)throw new R(`Missing required parameter: '${a}'`);const u=Rt(i,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${V} Resolved endpoint: ${O(u)}`),u},Tt=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!Tt(r))return!1;return!0}return!(!G(t)||t.length<3||t.length>63||t!==t.toLowerCase()||ve(t))},ze=":",Dn="/",Nn=t=>{const e=t.split(ze);if(e.length<6)return null;const[r,n,s,i,o,...c]=e;if(r!=="arn"||n===""||s===""||c.join(ze)==="")return null;const u=c.map(a=>a.split(Dn)).flat();return{partition:n,service:s,region:i,accountId:o,resourceId:u}},$n=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],Un={partitions:$n};let Hn=Un;const Ln=t=>{const{partitions:e}=Hn;for(const n of e){const{regions:s,outputs:i}=n;for(const[o,c]of Object.entries(s))if(o===t)return{...i,...c}}for(const n of e){const{regionRegex:s,outputs:i}=n;if(new RegExp(s).test(t))return{...i}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},At={isVirtualHostableS3Bucket:Tt,parseArn:Nn,partition:Ln};ee.aws=At;function Fn(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}const te=t=>{if(typeof t=="string")return te(new URL(t));const{hostname:e,pathname:r,port:n,protocol:s,search:i}=t;let o;return i&&(o=Fn(i)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:o}},zn=/\d{12}\.ddb/;async function Bn(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&x(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){const i=await e.retryStrategy();typeof i.acquireInitialRetryToken=="function"?i.constructor?.name?.includes("Adaptive")?x(t,"RETRY_MODE_ADAPTIVE","F"):x(t,"RETRY_MODE_STANDARD","E"):x(t,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){const i=t.endpointV2;switch(String(i?.url?.hostname).match(zn)&&x(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":x(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":x(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":x(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const i=s;i.accountId&&x(t,"RESOLVED_ACCOUNT_ID","T");for(const[o,c]of Object.entries(i.$source??{}))x(t,o,c)}}const Be="user-agent",he="x-amz-user-agent",je=" ",pe="/",jn=/[^!$%&'*+\-.^_`|~\w]/g,qn=/[^!$%&'*+\-.^_`|~\w#]/g,qe="-",Vn=1024;function Gn(t){let e="";for(const r in t){const n=t[r];if(e.length+n.length+1<=Vn){e.length?e+=","+n:e+=n;continue}break}return e}const Wn=t=>(e,r)=>async n=>{const{request:s}=n;if(!y.HttpRequest.isInstance(s))return e(n);const{headers:i}=s,o=r?.userAgent?.map(K)||[],c=(await t.defaultUserAgentProvider()).map(K);await Bn(r,t,n);const u=r;c.push(`m/${Gn(Object.assign({},r.__smithy_context?.features,u.__aws_sdk_context?.features))}`);const a=t?.customUserAgent?.map(K)||[],h=await t.userAgentAppId();h&&c.push(K(["app",`${h}`]));const d=[].concat([...c,...o,...a]).join(je),l=[...c.filter(f=>f.startsWith("aws-sdk-")),...a].join(je);return t.runtime!=="browser"?(l&&(i[he]=i[he]?`${i[Be]} ${l}`:l),i[Be]=d):i[he]=d,e({...n,request:s})},K=t=>{const e=t[0].split(pe).map(o=>o.replace(jn,qe)).join(pe),r=t[1]?.replace(qn,qe),n=e.indexOf(pe),s=e.substring(0,n);let i=e.substring(n+1);return s==="api"&&(i=i.toLowerCase()),[s,i,r].filter(o=>o&&o.length>0).reduce((o,c,u)=>{switch(u){case 0:return c;case 1:return`${o}/${c}`;default:return`${o}#${c}`}},"")},Kn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Xn=t=>({applyToStack:e=>{e.add(Wn(t),Kn)}}),Qn=!1,Yn=!1,Ve=new Set,Jn=(t,e=G)=>{if(!Ve.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else Ve.add(t)},Ct=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),Zn=t=>Ct(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,es=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{const n=typeof e=="function"?await e():e,s=Zn(n);return Jn(s),s},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return Ct(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})},Ge="content-length";function ts(t){return e=>async r=>{const n=r.request;if(y.HttpRequest.isInstance(n)){const{body:s,headers:i}=n;if(s&&Object.keys(i).map(o=>o.toLowerCase()).indexOf(Ge)===-1)try{const o=t(s);n.headers={...n.headers,[Ge]:String(o)}}catch{}}return e({...r,request:n})}}const rs={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ns=t=>({applyToStack:e=>{e.add(ts(t.bodyLengthChecker),rs)}}),ss=async t=>{const e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),us(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!cs(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},is=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,os=/(\d+\.){3}\d+/,as=/\.\./,cs=t=>is.test(t)&&!os.test(t)&&!as.test(t),us=t=>{const[e,r,n,,,s]=t.split(":"),i=e==="arn"&&t.split(":").length>=6,o=!!(i&&r&&n&&s);if(i&&!o)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return o},ds=(t,e,r,n=!1)=>{const s=async()=>{let i;return n?i=r.clientContextParams?.[t]??r[t]??r[e]:i=r[t]??r[e],typeof i=="function"?i():i};return t==="credentialScope"||e==="CredentialScope"?async()=>{const i=typeof r.credentials=="function"?await r.credentials():r.credentials;return i?.credentialScope??i?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{const i=typeof r.credentials=="function"?await r.credentials():r.credentials;return i?.accountId??i?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;const i=await s();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:o,hostname:c,port:u,path:a}=i;return`${o}//${c}${u?":"+u:""}${a}`}}return i}:s},xt=async t=>{},_t=t=>typeof t=="object"?"url"in t?te(t.url):t:te(t),ls=async(t,e,r,n)=>{if(!r.isCustomEndpoint){let o;r.serviceConfiguredEndpoint?o=await r.serviceConfiguredEndpoint():o=await xt(r.serviceId),o&&(r.endpoint=()=>Promise.resolve(_t(o)),r.isCustomEndpoint=!0)}const s=await It(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(s,n)},It=async(t,e,r)=>{const n={},s=e?.getEndpointParameterInstructions?.()||{};for(const[i,o]of Object.entries(s))switch(o.type){case"staticContextParams":n[i]=o.value;break;case"contextParams":n[i]=t[o.name];break;case"clientContextParams":case"builtInParams":n[i]=await ds(o.name,i,r,o.type!=="builtInParams")();break;case"operationContextParams":n[i]=o.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await ss(n),n},fs=({config:t,instructions:e})=>(r,n)=>async s=>{t.isCustomEndpoint&&sr(n,"ENDPOINT_OVERRIDE","N");const i=await ls(s.input,{getEndpointParameterInstructions(){return e}},{...t},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const o=n.authSchemes?.[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const u=L(n)?.selectedHttpAuthScheme?.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...s})},hs={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:qt.name},ps=(t,e)=>({applyToStack:r=>{r.addRelativeTo(fs({config:t,instructions:e}),hs)}}),gs=t=>{const e=t.tls??!0,{endpoint:r,useDualstackEndpoint:n,useFipsEndpoint:s}=t,i=r!=null?async()=>_t(await I(r)()):void 0,c=Object.assign(t,{endpoint:i,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:I(n??!1),useFipsEndpoint:I(s??!1)});let u;return c.serviceConfiguredEndpoint=async()=>(t.serviceId&&!u&&(u=xt(t.serviceId)),u),c};var H;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(H||(H={}));const re=3,ms=H.STANDARD,ys=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ws=["TimeoutError","RequestTimeout","RequestTimeoutException"],Ss=[500,502,503,504],bs=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Es=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],Rs=t=>t?.$retryable!==void 0,vs=t=>t.$metadata?.clockSkewCorrected,Ts=t=>{const e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Ot=t=>t.$metadata?.httpStatusCode===429||ys.includes(t.name)||t.$retryable?.throttling==!0,Ae=(t,e=0)=>Rs(t)||vs(t)||ws.includes(t.name)||bs.includes(t?.code||"")||Es.includes(t?.code||"")||Ss.includes(t.$metadata?.httpStatusCode||0)||Ts(t)||t.cause!==void 0&&e<=10&&Ae(t.cause,e+1),As=t=>{if(t.$metadata?.httpStatusCode!==void 0){const e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Ae(t)}return!1};class Ce{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>Ce.setTimeoutFn(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),Ot(e)){const s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const Se=100,Pt=20*1e3,Cs=500,We=500,xs=5,_s=10,Is=1,Os="amz-sdk-invocation-id",Ps="amz-sdk-request",ks=()=>{let t=Se;return{computeNextBackoffDelay:n=>Math.floor(Math.min(Pt,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},Ke=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(Pt,t),getRetryCost:()=>r});class kt{maxAttempts;mode=H.STANDARD;capacity=We;retryBackoffStrategy=ks();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return Ke({retryDelay:Se,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const s=r.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?Cs:Se);const i=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,i):i,c=this.getCapacityCost(s);return this.capacity-=c,Ke({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:c})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(We,this.capacity+(e.getRetryCost()??Is))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${re}`),re}}shouldRetry(e,r,n){return e.getRetryCount()+1<n&&this.capacity>=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?_s:xs}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class Ms{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=H.ADAPTIVE;constructor(e,r){this.maxAttemptsProvider=e;const{rateLimiter:n}=r??{};this.rateLimiter=n??new Ce,this.standardRetryStrategy=new kt(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const Ds=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),Ns=t=>{const{retryStrategy:e,retryMode:r,maxAttempts:n}=t,s=I(n??re);return Object.assign(t,{maxAttempts:s,retryStrategy:async()=>e||(await I(r)()===H.ADAPTIVE?new Ms(s):new kt(s))})},$s=t=>t?.body instanceof ReadableStream,Us=t=>(e,r)=>async n=>{let s=await t.retryStrategy();const i=await t.maxAttempts();if(Hs(s)){s=s;let o=await s.acquireInitialRetryToken(r.partition_id),c=new Error,u=0,a=0;const{request:h}=n,d=y.HttpRequest.isInstance(h);for(d&&(h.headers[Os]=tt());;)try{d&&(h.headers[Ps]=`attempt=${u+1}; max=${i}`);const{response:l,output:f}=await e(n);return s.recordSuccess(o),f.$metadata.attempts=u+1,f.$metadata.totalRetryDelay=a,{response:l,output:f}}catch(l){const f=Ls(l);if(c=Ds(l),d&&$s(h))throw(r.logger instanceof ft?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{o=await s.refreshRetryTokenForRetry(o,f)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=a,c}u=o.getRetryCount();const g=o.getRetryDelay();a+=g,await new Promise(m=>setTimeout(m,g))}}else return s=s,s?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(e,n)},Hs=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",Ls=t=>{const e={error:t,errorType:Fs(t)},r=js(t.$response);return r&&(e.retryAfterHint=r),e},Fs=t=>Ot(t)?"THROTTLING":Ae(t)?"TRANSIENT":As(t)?"SERVER_ERROR":"CLIENT_ERROR",zs={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Bs=t=>({applyToStack:e=>{e.add(Us(t),zs)}}),js=t=>{if(!y.HttpResponse.isInstance(t))return;const e=Object.keys(t.headers).find(i=>i.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)},qs={};function j(){return typeof window<"u"?window:typeof self<"u"?self:qs}var Vs=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function Mt(t){if(Gs(t)&&typeof t.crypto.subtle=="object"){var e=t.crypto.subtle;return Ws(e)}return!1}function Gs(t){if(typeof t=="object"&&typeof t.crypto=="object"){var e=t.crypto.getRandomValues;return typeof e=="function"}return!1}function Ws(t){return t&&Vs.every(function(e){return typeof t[e]=="function"})}var Dt={name:"SHA-256"},Xe={name:"HMAC",hash:Dt},Ks=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Xs=(function(){function t(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return t.prototype.update=function(e){if(!Z(e)){var r=U(e),n=new Uint8Array(this.toHash.byteLength+r.byteLength);n.set(this.toHash,0),n.set(r,this.toHash.byteLength),this.toHash=n}},t.prototype.digest=function(){var e=this;return this.key?this.key.then(function(r){return j().crypto.subtle.sign(Xe,r,e.toHash).then(function(n){return new Uint8Array(n)})}):Z(this.toHash)?Promise.resolve(Ks):Promise.resolve().then(function(){return j().crypto.subtle.digest(Dt,e.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},t.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,n){j().crypto.subtle.importKey("raw",U(e.secret),Xe,!1,["sign"]).then(r,n)}),this.key.catch(function(){}))},t})(),v=64,Qs=32,Ys=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Js=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Zs=Math.pow(2,53)-1,Q=(function(){function t(){this.state=Int32Array.from(Js),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Zs)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[r++],n--,this.bufferLength===v&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%v>=v-8){for(var s=this.bufferLength;s<v;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<v-8;s++)r.setUint8(s,0);r.setUint32(v-8,Math.floor(e/4294967296),!0),r.setUint32(v-4,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(Qs),s=0;s<8;s++)i[s*4]=this.state[s]>>>24&255,i[s*4+1]=this.state[s]>>>16&255,i[s*4+2]=this.state[s]>>>8&255,i[s*4+3]=this.state[s]>>>0&255;return i},t.prototype.hashBuffer=function(){for(var e=this,r=e.buffer,n=e.state,s=n[0],i=n[1],o=n[2],c=n[3],u=n[4],a=n[5],h=n[6],d=n[7],l=0;l<v;l++){if(l<16)this.temp[l]=(r[l*4]&255)<<24|(r[l*4+1]&255)<<16|(r[l*4+2]&255)<<8|r[l*4+3]&255;else{var f=this.temp[l-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[l-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[l]=(g+this.temp[l-7]|0)+(m+this.temp[l-16]|0)}var p=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&a^~u&h)|0)+(d+(Ys[l]+this.temp[l]|0)|0)|0,w=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&i^s&o^i&o)|0;d=h,h=a,a=u,u=c+p|0,c=o,o=i,i=s,s=p+w|0}n[0]+=s,n[1]+=i,n[2]+=o,n[3]+=c,n[4]+=u,n[5]+=a,n[6]+=h,n[7]+=d},t})(),ei=(function(){function t(e){this.secret=e,this.hash=new Q,this.reset()}return t.prototype.update=function(e){if(!(Z(e)||this.error))try{this.hash.update(U(e))}catch(r){this.error=r}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return ht(this,void 0,void 0,function(){return pt(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new Q,this.secret){this.outer=new Q;var e=ti(this.secret),r=new Uint8Array(v);r.set(e);for(var n=0;n<v;n++)e[n]^=54,r[n]^=92;this.hash.update(e),this.outer.update(r);for(var n=0;n<e.byteLength;n++)e[n]=0}},t})();function ti(t){var e=U(t);if(e.byteLength>v){var r=new Q;r.update(e),e=r.digest()}var n=new Uint8Array(v);return n.set(e),n}var ri=(function(){function t(e){Mt(j())?this.hash=new Xs(e):this.hash=new ei(e)}return t.prototype.update=function(e,r){this.hash.update(U(e))},t.prototype.digest=function(){return this.hash.digest()},t.prototype.reset=function(){this.hash.reset()},t})();const ni=({serviceId:t,clientVersion:e})=>async r=>{const n=typeof window<"u"?window.navigator:void 0,s=n?.userAgent??"",i=n?.userAgentData?.platform??Qe.os(s)??"other",o=void 0,c=n?.userAgentData?.brands??[],u=c[c.length-1],a=u?.brand??Qe.browser(s)??"unknown",h=u?.version??"unknown",d=[["aws-sdk-js",e],["ua","2.1"],[`os/${i}`,o],["lang/js"],["md/browser",`${a}_${h}`]];t&&d.push([`api/${t}`,e]);const l=await r?.userAgentAppId?.();return l&&d.push([`app/${l}`]),d},Qe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}},si=t=>()=>Promise.reject(t),ii=["in-region","cross-region","mobile","standard","legacy"],oi=({defaultsMode:t}={})=>dr(async()=>{const e=typeof t=="function"?await t():t;switch(e?.toLowerCase()){case"auto":return Promise.resolve(ai()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ii.join(", ")}, got ${e}`)}}),ai=()=>{const t=window?.navigator;if(t?.connection){const{effectiveType:e,rtt:r,downlink:n}=t?.connection;if(typeof e=="string"&&e!=="4g"||Number(r)>100||Number(n)<10)return!0}return t?.userAgentData?.mobile||typeof t?.maxTouchPoints=="number"&&t?.maxTouchPoints>1},ci=t=>({setRegion(e){t.region=e},region(){return t.region}}),ui=t=>({region:t.region()});exports.AwsSdkSigV4Signer=Ht;exports.Client=Lr;exports.Command=lt;exports.DEFAULT_MAX_ATTEMPTS=re;exports.DEFAULT_RETRY_MODE=ms;exports.DEFAULT_USE_DUALSTACK_ENDPOINT=Qn;exports.DEFAULT_USE_FIPS_ENDPOINT=Yn;exports.DefaultIdentityProviderConfig=ir;exports.EndpointCache=pn;exports.HttpProtocol=rr;exports.LazyJsonString=k;exports.NoOpLogger=ft;exports.NormalizedSchema=A;exports.NumericValue=Ee;exports.ProtocolLib=Kr;exports.SerdeContext=rt;exports.SerdeContextConfig=Xr;exports.ServiceException=N;exports.Sha256=ri;exports.SignatureV4=ye;exports.TypeRegistry=T;exports.UnionSerde=Qr;exports.__awaiter=ht;exports.__generator=pt;exports.__values=Yr;exports.awsEndpointFunctions=At;exports.calculateBodyLength=Hr;exports.collectBody=Xt;exports.convertToBuffer=U;exports.createDefaultUserAgentProvider=ni;exports.customEndpointFunctions=ee;exports.deref=X;exports.determineTimestampFormat=nr;exports.getAwsRegionExtensionConfiguration=ci;exports.getContentLengthPlugin=ns;exports.getDefaultExtensionConfiguration=Gr;exports.getEndpointPlugin=ps;exports.getHostHeaderPlugin=nn;exports.getHttpAuthSchemeEndpointRuleSetPlugin=jt;exports.getHttpHandlerExtensionConfiguration=Nt;exports.getHttpSigningPlugin=Kt;exports.getLoggerPlugin=an;exports.getRecursionDetectionPlugin=dn;exports.getRetryPlugin=Bs;exports.getSchemaSerdePlugin=er;exports.getSkewCorrectedDate=be;exports.getSmithyContext=L;exports.getUserAgentPlugin=Xn;exports.httpSigningMiddlewareOptions=Ze;exports.invalidProvider=si;exports.isArrayBuffer=dt;exports.isEmptyData=Z;exports.isIpAddress=ve;exports.isValidHostLabel=G;exports.loadConfigsForDefaultMode=zr;exports.locateWindow=j;exports.normalizeProvider=I;exports.parseUrl=te;exports.resolveAwsRegionExtensionConfiguration=ui;exports.resolveAwsSdkSigV4Config=Nr;exports.resolveDefaultRuntimeConfig=Wr;exports.resolveDefaultsModeConfig=oi;exports.resolveEndpoint=Mn;exports.resolveEndpointConfig=gs;exports.resolveHostHeaderConfig=en;exports.resolveHttpHandlerRuntimeConfig=$t;exports.resolveParams=It;exports.resolveRegionConfig=es;exports.resolveRetryConfig=Ns;exports.resolveUserAgentConfig=hn;exports.setCredentialFeature=Ye;exports.setFeature=x;exports.supportsWebCrypto=Mt;exports.toUint8Array=$;exports.translateTraits=D;exports.v4=tt;exports.validateSigningProperties=Je;
@@ -0,0 +1,92 @@
1
+ import { c as R, A as S, S as A } from "./loadSts-Cic6UToN.mjs";
2
+ import { a as K, b as L, d as _, e as H, f as M, g as U, h as j, C as N, E as z, i as B, I as F, j as V, k as G, l as J, m as Q, n as X, M as Y, o as Z, P as O, p as ee, q as te, r as ne, R as oe, s as se, t as ie, u as re, T as ae, v as ce } from "./loadSts-Cic6UToN.mjs";
3
+ import { C as E, g as y, s as l } from "./index-Cr6Wp_S-.mjs";
4
+ import { a as de } from "./index-Cr6Wp_S-.mjs";
5
+ function I() {
6
+ return async () => "us-east-1";
7
+ }
8
+ class x extends E.classBuilder().ep(R).m(function(t, o, s, n) {
9
+ return [y(s, t.getEndpointParameterInstructions())];
10
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(S).build() {
11
+ }
12
+ const $ = (e) => {
13
+ if (typeof e?.Arn == "string") {
14
+ const t = e.Arn.split(":");
15
+ if (t.length > 4 && t[4] !== "")
16
+ return t[4];
17
+ }
18
+ }, T = async (e, t, o, s = {}) => {
19
+ const n = typeof e == "function" ? await e() : e, a = typeof t == "function" ? await t() : t;
20
+ let i = "";
21
+ const r = n ?? a ?? (i = await I()());
22
+ return o?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${n} (credential provider clientConfig)`, `${a} (contextual client)`, `${i} (STS default: AWS_REGION, profile region, or us-east-1)`), r;
23
+ }, W = (e, t) => {
24
+ let o;
25
+ return async (s) => {
26
+ if (!o) {
27
+ const { logger: d = e?.parentClientConfig?.logger, profile: u = e?.parentClientConfig?.profile, region: m, requestHandler: c = e?.parentClientConfig?.requestHandler, credentialProviderLogger: p, userAgentAppId: g = e?.parentClientConfig?.userAgentAppId } = e, f = await T(m, e?.parentClientConfig?.region, p, {}), C = !P(c);
28
+ o = new t({
29
+ ...e,
30
+ userAgentAppId: g,
31
+ profile: u,
32
+ region: f,
33
+ requestHandler: C ? c : void 0,
34
+ logger: d
35
+ });
36
+ }
37
+ const { Credentials: n, AssumedRoleUser: a } = await o.send(new x(s));
38
+ if (!n || !n.AccessKeyId || !n.SecretAccessKey)
39
+ throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);
40
+ const i = $(a), r = {
41
+ accessKeyId: n.AccessKeyId,
42
+ secretAccessKey: n.SecretAccessKey,
43
+ sessionToken: n.SessionToken,
44
+ expiration: n.Expiration,
45
+ ...n.CredentialScope && { credentialScope: n.CredentialScope },
46
+ ...i && { accountId: i }
47
+ };
48
+ return i && l(r, "RESOLVED_ACCOUNT_ID", "T"), l(r, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"), r;
49
+ };
50
+ }, P = (e) => e?.metadata?.handlerProtocol === "h2", D = (e, t) => t ? class extends e {
51
+ constructor(s) {
52
+ super(s);
53
+ for (const n of t)
54
+ this.middlewareStack.use(n);
55
+ }
56
+ } : e, k = (e = {}, t) => W(e, D(A, t));
57
+ export {
58
+ E as $Command,
59
+ K as AssumeRole$,
60
+ L as AssumeRoleCommand,
61
+ _ as AssumeRoleRequest$,
62
+ H as AssumeRoleResponse$,
63
+ S as AssumeRoleWithWebIdentity$,
64
+ x as AssumeRoleWithWebIdentityCommand,
65
+ M as AssumeRoleWithWebIdentityRequest$,
66
+ U as AssumeRoleWithWebIdentityResponse$,
67
+ j as AssumedRoleUser$,
68
+ N as Credentials$,
69
+ z as ExpiredTokenException,
70
+ B as ExpiredTokenException$,
71
+ F as IDPCommunicationErrorException,
72
+ V as IDPCommunicationErrorException$,
73
+ G as IDPRejectedClaimException,
74
+ J as IDPRejectedClaimException$,
75
+ Q as InvalidIdentityTokenException,
76
+ X as InvalidIdentityTokenException$,
77
+ Y as MalformedPolicyDocumentException,
78
+ Z as MalformedPolicyDocumentException$,
79
+ O as PackedPolicyTooLargeException,
80
+ ee as PackedPolicyTooLargeException$,
81
+ te as PolicyDescriptorType$,
82
+ ne as ProvidedContext$,
83
+ oe as RegionDisabledException,
84
+ se as RegionDisabledException$,
85
+ A as STSClient,
86
+ ie as STSServiceException,
87
+ re as STSServiceException$,
88
+ ae as Tag$,
89
+ de as __Client,
90
+ ce as errorTypeRegistries,
91
+ k as getDefaultRoleAssumerWithWebIdentity
92
+ };