@larkup/cli 0.3.20 → 0.3.21

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 (38) hide show
  1. package/dist/{analytics-store-4EI56OLE.js → analytics-store-UU5MX3JA.js} +1 -1
  2. package/dist/bowser-KBMRPWZW.js +2100 -0
  3. package/dist/{chunk-AKBEY3S4.js → chunk-2PEO3NCV.js} +4 -4
  4. package/dist/{chunk-GYXT77I3.js → chunk-2QOWBHZK.js} +10 -10
  5. package/dist/{chunk-DTRGAEFR.js → chunk-4SOSQVIA.js} +4 -4
  6. package/dist/{chunk-HYYSI5FE.js → chunk-5YXDD2GC.js} +183 -174
  7. package/dist/{chunk-2QWAEE6L.js → chunk-6B7OTI2Y.js} +2 -2
  8. package/dist/{chunk-TFGGCUFR.js → chunk-D3H2VEHZ.js} +7 -7
  9. package/dist/{chunk-VZAREDRR.js → chunk-EFPXIMED.js} +3 -3
  10. package/dist/{chunk-PFTSXAZG.js → chunk-FDCIUBLI.js} +46 -27
  11. package/dist/{chunk-6HRBZ7QP.js → chunk-G5BURVQB.js} +3 -3
  12. package/dist/{chunk-ZH2A3TFQ.js → chunk-HTNZPVID.js} +99 -1154
  13. package/dist/{chunk-YOPP3ETL.js → chunk-JAIHHTKN.js} +111 -80
  14. package/dist/{chunk-54YIZOXQ.js → chunk-PTQR3VCA.js} +58 -26
  15. package/dist/{chunk-CUA3FHFQ.js → chunk-RUMUOFC7.js} +39 -26
  16. package/dist/{chunk-6VBJAFWY.js → chunk-RV756WXU.js} +85 -70
  17. package/dist/{chunk-FMBWCTFV.js → chunk-WSDGBXA3.js} +1223 -77
  18. package/dist/{dist-es-PY4YS7TC.js → dist-es-27PHRDP5.js} +7 -7
  19. package/dist/{dist-es-FEVR73CQ.js → dist-es-2OQPXBWH.js} +8 -8
  20. package/dist/{dist-es-CM7567P2.js → dist-es-DXUGAPLS.js} +8 -8
  21. package/dist/{dist-es-3SVFRI6P.js → dist-es-I2CSW44W.js} +248 -232
  22. package/dist/{dist-es-M6OXVHSI.js → dist-es-MNMQ7EY7.js} +2 -2
  23. package/dist/{dist-es-OB4H2RSG.js → dist-es-OOS7VNC3.js} +10 -10
  24. package/dist/{dist-es-ZDCXFYRX.js → dist-es-P55SOOJS.js} +5 -5
  25. package/dist/{dist-es-DC3KLBPR.js → dist-es-TVPOX7SI.js} +9 -9
  26. package/dist/{dist-es-IS5PH45I.js → dist-es-YACWQ6TD.js} +54 -37
  27. package/dist/{dist-es-KY7QTIEX.js → dist-es-ZM2PC6Y7.js} +22 -22
  28. package/dist/{event-streams-KOWL2S4G.js → event-streams-7VYAXCGO.js} +3 -3
  29. package/dist/index.js +11 -11
  30. package/dist/{loadSso-OLMNBQ4H.js → loadSso-MPKJCJHV.js} +23 -23
  31. package/dist/{signin-NBTUJ5KD.js → signin-WY5DIZ6I.js} +33 -26
  32. package/dist/{sso-oidc-WNK6HQX7.js → sso-oidc-6P6INS3W.js} +25 -25
  33. package/dist/{sts-TGY2Y4DZ.js → sts-2EDS5GKI.js} +28 -28
  34. package/dist/{tool-loader-GFMXFTMW.js → tool-loader-LURY25XY.js} +2 -2
  35. package/dist/{tool-registry-K74GICK5.js → tool-registry-I7553RRN.js} +1 -1
  36. package/package.json +3 -3
  37. package/dist/bowser-GZLEN3PD.js +0 -2821
  38. /package/dist/{chunk-SMQUSHD4.js → chunk-OXX5AQPP.js} +0 -0
@@ -1,22 +1,23 @@
1
1
  import {
2
2
  SignatureV4
3
- } from "./chunk-CUA3FHFQ.js";
3
+ } from "./chunk-RUMUOFC7.js";
4
4
  import {
5
5
  doesIdentityRequireRefresh,
6
6
  isIdentityExpired,
7
7
  memoizeIdentityProvider,
8
8
  normalizeProvider,
9
9
  setCredentialFeature
10
- } from "./chunk-6VBJAFWY.js";
10
+ } from "./chunk-RV756WXU.js";
11
11
  import {
12
12
  decorateServiceException,
13
13
  getValueFromTextNode
14
- } from "./chunk-YOPP3ETL.js";
14
+ } from "./chunk-JAIHHTKN.js";
15
15
  import {
16
16
  FromStringShapeDeserializer,
17
17
  HttpBindingProtocol,
18
18
  HttpInterceptingShapeDeserializer,
19
19
  HttpInterceptingShapeSerializer,
20
+ JsonCodec2,
20
21
  ProviderError,
21
22
  RpcProtocol,
22
23
  SelectorType,
@@ -24,34 +25,32 @@ import {
24
25
  collectBody,
25
26
  determineTimestampFormat,
26
27
  extendedEncodeURIComponent,
27
- loadConfig
28
- } from "./chunk-FMBWCTFV.js";
28
+ loadConfig,
29
+ loadRestJsonErrorCode
30
+ } from "./chunk-WSDGBXA3.js";
29
31
  import {
30
32
  HttpRequest,
31
33
  HttpResponse,
32
- LazyJsonString,
33
34
  NormalizedSchema,
34
35
  NumericValue,
36
+ SMITHY_CONTEXT_KEY,
35
37
  TypeRegistry,
36
38
  dateToUtcString,
37
39
  deref,
38
40
  fromBase64,
39
41
  generateIdempotencyToken,
40
- parseEpochTimestamp,
41
- parseRfc3339DateTimeWithOffset,
42
- parseRfc7231DateTime,
43
42
  toBase64,
44
43
  toUtf8
45
- } from "./chunk-HYYSI5FE.js";
44
+ } from "./chunk-5YXDD2GC.js";
46
45
 
47
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
46
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
48
47
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
49
48
  var getAgeHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.age ?? response.headers?.Age : void 0;
50
49
 
51
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
50
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
52
51
  var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
53
52
 
54
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
53
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
55
54
  var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => {
56
55
  if (ageHeader !== void 0) {
57
56
  return currentSystemClockOffset;
@@ -61,17 +60,21 @@ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequ
61
60
  if (timeRequestSent !== void 0 && timeResponseReceived - timeRequestSent > 9e5) {
62
61
  return currentSystemClockOffset;
63
62
  }
64
- const candidateSkew = timeRequestSent !== void 0 ? serverTime - (timeRequestSent + timeResponseReceived) / 2 : serverTime - timeResponseReceived;
65
- return candidateSkew;
63
+ return serverTime - timeResponseReceived;
66
64
  };
67
65
 
68
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
66
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
69
67
  var throwSigningPropertyError = (name, property) => {
70
68
  if (!property) {
71
69
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
72
70
  }
73
71
  return property;
74
72
  };
73
+ var hasEventStreamOutput = (signingProperties) => {
74
+ const context = signingProperties.context;
75
+ const eventStream = context?.[SMITHY_CONTEXT_KEY]?.eventStream;
76
+ return eventStream?.output === true;
77
+ };
75
78
  var validateSigningProperties = async (signingProperties) => {
76
79
  const context = throwSigningPropertyError("context", signingProperties.context);
77
80
  const config = throwSigningPropertyError("config", signingProperties.config);
@@ -107,7 +110,9 @@ var AwsSdkSigV4Signer = class {
107
110
  }
108
111
  const noSkewCorrection = await config.disableClockSkewCorrection?.() === true;
109
112
  signingProperties._disableClockSkewCorrection = noSkewCorrection;
110
- if (!noSkewCorrection) {
113
+ const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties);
114
+ signingProperties._skipClockSkewSampling = skipSkewSampling;
115
+ if (!skipSkewSampling) {
111
116
  signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
112
117
  signingProperties._requestSentAt = Date.now();
113
118
  }
@@ -121,7 +126,7 @@ var AwsSdkSigV4Signer = class {
121
126
  errorHandler(signingProperties) {
122
127
  return (error) => {
123
128
  const errorException = error;
124
- if (!signingProperties._disableClockSkewCorrection) {
129
+ if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) {
125
130
  const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
126
131
  if (serverTime) {
127
132
  const config = throwSigningPropertyError("config", signingProperties.config);
@@ -142,7 +147,7 @@ var AwsSdkSigV4Signer = class {
142
147
  };
143
148
  }
144
149
  successHandler(httpResponse, signingProperties) {
145
- if (signingProperties._disableClockSkewCorrection) {
150
+ if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) {
146
151
  return;
147
152
  }
148
153
  const dateHeader = getDateHeader(httpResponse);
@@ -155,7 +160,7 @@ var AwsSdkSigV4Signer = class {
155
160
  }
156
161
  };
157
162
 
158
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
163
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
159
164
  var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
160
165
  async sign(httpRequest, identity, signingProperties) {
161
166
  if (!HttpRequest.isInstance(httpRequest)) {
@@ -179,35 +184,38 @@ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
179
184
  }
180
185
  };
181
186
 
182
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
187
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
183
188
  var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
184
189
 
185
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
190
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
186
191
  var getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
187
192
 
188
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
193
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
189
194
  var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
190
195
  var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
191
196
  var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
192
197
  environmentVariableSelector: (env, options) => {
193
198
  if (options?.signingName) {
194
199
  const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
195
- if (bearerTokenKey in env)
200
+ if (bearerTokenKey in env) {
196
201
  return ["httpBearerAuth"];
202
+ }
197
203
  }
198
- if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
204
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
199
205
  return void 0;
206
+ }
200
207
  return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
201
208
  },
202
209
  configFileSelector: (profile) => {
203
- if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
210
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
204
211
  return void 0;
212
+ }
205
213
  return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
206
214
  },
207
215
  default: []
208
216
  };
209
217
 
210
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
218
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
211
219
  var resolveAwsSdkSigV4AConfig = (config) => {
212
220
  config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet);
213
221
  return config;
@@ -232,7 +240,7 @@ var NODE_SIGV4A_CONFIG_OPTIONS = {
232
240
  default: void 0
233
241
  };
234
242
 
235
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
243
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
236
244
  var bindResolveAwsSdkSigV4Config = (defaultDisableClockSkewCorrection) => (config) => {
237
245
  let inputCredentials = config.credentials;
238
246
  let isUserSupplied = !!config.credentials;
@@ -362,7 +370,7 @@ function bindCallerConfig(config, credentialsProvider) {
362
370
  return fn;
363
371
  }
364
372
 
365
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js
373
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js
366
374
  var ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
367
375
  var CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
368
376
  var NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
@@ -371,13 +379,13 @@ var NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
371
379
  default: false
372
380
  };
373
381
 
374
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js
382
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js
375
383
  var DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = loadConfig(NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS);
376
384
 
377
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
385
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
378
386
  var resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
379
387
 
380
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
388
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
381
389
  var ProtocolLib = class {
382
390
  queryCompat;
383
391
  errorRegistry;
@@ -511,1111 +519,7 @@ var ProtocolLib = class {
511
519
  }
512
520
  };
513
521
 
514
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
515
- var SerdeContextConfig = class {
516
- serdeContext;
517
- setSerdeContext(serdeContext) {
518
- this.serdeContext = serdeContext;
519
- }
520
- };
521
-
522
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
523
- var UnionSerde = class {
524
- from;
525
- to;
526
- keys;
527
- constructor(from, to) {
528
- this.from = from;
529
- this.to = to;
530
- const keys = Object.keys(this.from);
531
- const set = new Set(keys);
532
- set.delete("__type");
533
- this.keys = set;
534
- }
535
- mark(key) {
536
- this.keys.delete(key);
537
- }
538
- hasUnknown() {
539
- return this.keys.size === 1 && Object.keys(this.to).length === 0;
540
- }
541
- writeUnknown() {
542
- if (this.hasUnknown()) {
543
- const k = this.keys.values().next().value;
544
- const v = this.from[k];
545
- this.to.$unknown = [k, v];
546
- }
547
- }
548
- };
549
-
550
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js
551
- var canParseBuffer;
552
- function detectBufferParsing() {
553
- if (canParseBuffer === void 0) {
554
- try {
555
- if (typeof Buffer !== "function") {
556
- canParseBuffer = false;
557
- } else {
558
- const result = JSON.parse(Buffer.from([123, 125]));
559
- canParseBuffer = result !== null && typeof result === "object";
560
- }
561
- } catch {
562
- canParseBuffer = false;
563
- }
564
- }
565
- return canParseBuffer;
566
- }
567
-
568
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
569
- function jsonReviver(key, value, context) {
570
- if (context?.source) {
571
- const numericString = context.source;
572
- if (typeof value === "number") {
573
- const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
574
- if (inSafeRange) {
575
- if (isRepresentable(numericString, value)) {
576
- return value;
577
- }
578
- return new NumericValue(numericString, "bigDecimal");
579
- } else {
580
- if (isFractionalBigNumeric(numericString)) {
581
- return new NumericValue(numericString, "bigDecimal");
582
- }
583
- if (/[eE]/.test(numericString)) {
584
- return expandExponentToBigInt(numericString);
585
- }
586
- return BigInt(numericString);
587
- }
588
- }
589
- }
590
- return value;
591
- }
592
- function isFractionalBigNumeric(s) {
593
- const dotIndex = s.indexOf(".");
594
- if (dotIndex === -1) {
595
- return false;
596
- }
597
- const eIndex = s.search(/[eE]/);
598
- if (eIndex === -1) {
599
- return true;
600
- }
601
- const fracDigits = eIndex - dotIndex - 1;
602
- const exp = parseInt(s.slice(eIndex + 1), 10);
603
- return exp < fracDigits;
604
- }
605
- function isRepresentable(numericString, value) {
606
- if (numericString === String(value)) {
607
- return true;
608
- }
609
- if (Object.is(value, -0)) {
610
- return true;
611
- }
612
- if (/[eE]/.test(numericString)) {
613
- return expandToDecimal(numericString) === expandToDecimal(String(value));
614
- }
615
- const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
616
- const canonical = String(value);
617
- if (normalized === canonical) {
618
- return true;
619
- }
620
- if (/[eE]/.test(canonical)) {
621
- return normalized === expandToDecimal(canonical);
622
- }
623
- return false;
624
- }
625
- function expandToDecimal(s) {
626
- const negative = s.startsWith("-");
627
- const abs = negative ? s.slice(1) : s;
628
- const eIndex = abs.search(/[eE]/);
629
- let result;
630
- if (eIndex === -1) {
631
- result = abs;
632
- } else {
633
- const exp = parseInt(abs.slice(eIndex + 1), 10);
634
- const mantissa = abs.slice(0, eIndex);
635
- const dotIndex = mantissa.indexOf(".");
636
- let digits;
637
- let intLen;
638
- if (dotIndex === -1) {
639
- digits = mantissa;
640
- intLen = mantissa.length;
641
- } else {
642
- digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
643
- intLen = dotIndex;
644
- }
645
- digits = digits.replace(/0+$/, "") || "0";
646
- const newDotPos = intLen + exp;
647
- if (digits === "0") {
648
- result = "0";
649
- } else if (newDotPos <= 0) {
650
- result = "0." + "0".repeat(-newDotPos) + digits;
651
- } else if (newDotPos >= digits.length) {
652
- result = digits + "0".repeat(newDotPos - digits.length);
653
- } else {
654
- result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
655
- }
656
- }
657
- if (result.includes(".")) {
658
- result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
659
- }
660
- return (negative ? "-" : "") + result;
661
- }
662
- function expandExponentToBigInt(s) {
663
- const eIndex = s.search(/[eE]/);
664
- const exp = parseInt(s.slice(eIndex + 1), 10);
665
- const negative = s.startsWith("-");
666
- const mantissa = s.slice(negative ? 1 : 0, eIndex);
667
- const dotIndex = mantissa.indexOf(".");
668
- let digits;
669
- let shift;
670
- if (dotIndex === -1) {
671
- digits = mantissa;
672
- shift = exp;
673
- } else {
674
- digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
675
- const fracDigits = mantissa.length - dotIndex - 1;
676
- shift = exp - fracDigits;
677
- }
678
- digits = digits.replace(/0+$/, "") || "0";
679
- const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
680
- return negative ? -result : result;
681
- }
682
-
683
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js
684
- var REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
685
- function needsReviver(schema) {
686
- const ns = NormalizedSchema.of(schema);
687
- const raw = ns.getSchema();
688
- if (Array.isArray(raw) && ns.isStructSchema()) {
689
- if (REVIVER_SYMBOL in raw) {
690
- return raw[REVIVER_SYMBOL];
691
- }
692
- const result = _check(ns, /* @__PURE__ */ new Set());
693
- raw[REVIVER_SYMBOL] = result;
694
- return result;
695
- }
696
- return _check(ns, /* @__PURE__ */ new Set());
697
- }
698
- function _check(ns, seen) {
699
- const raw = ns.getSchema();
700
- if (seen.has(raw)) {
701
- return false;
702
- }
703
- seen.add(raw);
704
- if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
705
- return true;
706
- }
707
- if (ns.isStructSchema()) {
708
- for (const [, memberSchema] of ns.structIterator()) {
709
- if (_check(memberSchema, seen)) {
710
- return true;
711
- }
712
- }
713
- } else if (ns.isListSchema() || ns.isMapSchema()) {
714
- if (_check(ns.getValueSchema(), seen)) {
715
- return true;
716
- }
717
- } else if (ns.isDocumentSchema()) {
718
- return true;
719
- }
720
- return false;
721
- }
722
-
723
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
724
- var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
725
-
726
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
727
- async function parseJsonBody(streamBody, context, schema) {
728
- let parsingInput;
729
- if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
730
- const buffer = await collectBody(streamBody, context);
731
- if (typeof Buffer === "function") {
732
- if (Buffer.isBuffer(buffer)) {
733
- parsingInput = buffer;
734
- } else {
735
- parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
736
- }
737
- }
738
- }
739
- if (!parsingInput) {
740
- parsingInput = await collectBodyString(streamBody, context);
741
- }
742
- if (parsingInput.length === 0) {
743
- return {};
744
- }
745
- const reviver = schema && needsReviver(schema) ? jsonReviver : void 0;
746
- try {
747
- return JSON.parse(parsingInput, reviver);
748
- } catch (e) {
749
- if (e?.name === "SyntaxError") {
750
- Object.defineProperty(e, "$responseBodyText", {
751
- value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8")
752
- });
753
- }
754
- throw e;
755
- }
756
- }
757
- var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
758
- var sanitizeErrorCode = (rawValue) => {
759
- let cleanValue = rawValue;
760
- if (typeof cleanValue === "number") {
761
- cleanValue = cleanValue.toString();
762
- }
763
- if (cleanValue.indexOf(",") >= 0) {
764
- cleanValue = cleanValue.split(",")[0];
765
- }
766
- if (cleanValue.indexOf(":") >= 0) {
767
- cleanValue = cleanValue.split(":")[0];
768
- }
769
- if (cleanValue.indexOf("#") >= 0) {
770
- cleanValue = cleanValue.split("#")[1];
771
- }
772
- return cleanValue;
773
- };
774
- var loadRestJsonErrorCode = (output, data) => {
775
- return loadErrorCode(output, data, ["header", "code", "type"]);
776
- };
777
- var loadErrorCode = ({ headers }, data, order) => {
778
- while (order.length > 0) {
779
- const location = order.shift();
780
- switch (location) {
781
- case "header":
782
- const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
783
- if (headerKey !== void 0) {
784
- return sanitizeErrorCode(headers[headerKey]);
785
- }
786
- break;
787
- case "code":
788
- const codeKey = findKey(data ?? {}, "code");
789
- if (codeKey && data[codeKey] !== void 0) {
790
- return sanitizeErrorCode(data[codeKey]);
791
- }
792
- break;
793
- case "type":
794
- if (data?.__type !== void 0) {
795
- return sanitizeErrorCode(data.__type);
796
- }
797
- break;
798
- }
799
- }
800
- };
801
-
802
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js
803
- function writeKey(obj) {
804
- Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true });
805
- }
806
-
807
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js
808
- var JsonShapeDeserializer2 = class extends SerdeContextConfig {
809
- settings;
810
- constructor(settings) {
811
- super();
812
- this.settings = settings;
813
- }
814
- async read(schema, data) {
815
- const reviver = needsReviver(schema) ? jsonReviver : void 0;
816
- let parsed;
817
- if (typeof data === "string") {
818
- if (data.length === 0) {
819
- return {};
820
- }
821
- parsed = JSON.parse(data, reviver);
822
- } else if (data instanceof Uint8Array && detectBufferParsing()) {
823
- if (data.byteLength === 0) {
824
- return {};
825
- }
826
- const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
827
- parsed = JSON.parse(buf, reviver);
828
- } else {
829
- parsed = await parseJsonBody(data, this.serdeContext, schema);
830
- }
831
- return this._read(schema, parsed);
832
- }
833
- readObject(schema, data) {
834
- return this._read(schema, data);
835
- }
836
- _read(schema, value) {
837
- const isObject = value !== null && typeof value === "object";
838
- const ns = NormalizedSchema.of(schema);
839
- if (isObject) {
840
- if (ns.isStructSchema()) {
841
- return this._readStruct(ns, value);
842
- }
843
- if (Array.isArray(value) && ns.isListSchema()) {
844
- const listMember = ns.getValueSchema();
845
- if (this.needsTransform(listMember)) {
846
- for (let i = 0; i < value.length; ++i) {
847
- value[i] = this._read(listMember, value[i]);
848
- }
849
- }
850
- return value;
851
- }
852
- if (ns.isMapSchema()) {
853
- const mapMember = ns.getValueSchema();
854
- const map = value;
855
- if (this.needsTransform(mapMember)) {
856
- for (const k in map) {
857
- if (k === "__proto__") {
858
- writeKey(map);
859
- }
860
- map[k] = this._read(mapMember, map[k]);
861
- }
862
- }
863
- return map;
864
- }
865
- }
866
- if (ns.isBlobSchema() && typeof value === "string") {
867
- return fromBase64(value);
868
- }
869
- const mediaType = ns.getMergedTraits().mediaType;
870
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
871
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
872
- if (isJson) {
873
- return LazyJsonString.from(value);
874
- }
875
- return value;
876
- }
877
- if (ns.isTimestampSchema() && value != null) {
878
- const format = determineTimestampFormat(ns, this.settings);
879
- switch (format) {
880
- case 5:
881
- return parseRfc3339DateTimeWithOffset(value);
882
- case 6:
883
- return parseRfc7231DateTime(value);
884
- case 7:
885
- return parseEpochTimestamp(value);
886
- default:
887
- console.warn("Missing timestamp format, parsing value with Date constructor:", value);
888
- return new Date(value);
889
- }
890
- }
891
- if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
892
- return BigInt(value);
893
- }
894
- if (ns.isBigDecimalSchema() && value != void 0) {
895
- if (value instanceof NumericValue) {
896
- return value;
897
- }
898
- const untyped = value;
899
- if (untyped.type === "bigDecimal" && "string" in untyped) {
900
- return new NumericValue(untyped.string, untyped.type);
901
- }
902
- return new NumericValue(String(value), "bigDecimal");
903
- }
904
- if (ns.isNumericSchema() && typeof value === "string") {
905
- switch (value) {
906
- case "Infinity":
907
- return Infinity;
908
- case "-Infinity":
909
- return -Infinity;
910
- case "NaN":
911
- return NaN;
912
- }
913
- return value;
914
- }
915
- if (ns.isDocumentSchema()) {
916
- if (isObject) {
917
- if (Array.isArray(value)) {
918
- for (let i = 0; i < value.length; ++i) {
919
- const v = value[i];
920
- if (!(v instanceof NumericValue)) {
921
- value[i] = this._read(ns, v);
922
- }
923
- }
924
- } else {
925
- const doc = value;
926
- for (const k in doc) {
927
- if (k === "__proto__") {
928
- writeKey(doc);
929
- }
930
- const v = doc[k];
931
- if (!(v instanceof NumericValue)) {
932
- doc[k] = this._read(ns, v);
933
- }
934
- }
935
- }
936
- }
937
- }
938
- return value;
939
- }
940
- _readStruct(ns, record) {
941
- const union = ns.isUnionSchema();
942
- const out = {};
943
- let nameMap;
944
- const hasType = typeof record.__type === "string";
945
- const { jsonName } = this.settings;
946
- if (jsonName && hasType) {
947
- nameMap = {};
948
- }
949
- let unionSerde;
950
- if (union) {
951
- unionSerde = new UnionSerde(record, out);
952
- }
953
- for (const [memberName, memberSchema] of ns.structIterator()) {
954
- let fromKey = memberName;
955
- if (jsonName) {
956
- fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
957
- if (hasType) {
958
- nameMap[fromKey] = memberName;
959
- }
960
- }
961
- if (union) {
962
- unionSerde.mark(fromKey);
963
- }
964
- if (record[fromKey] != null) {
965
- out[memberName] = this._read(memberSchema, record[fromKey]);
966
- }
967
- }
968
- if (union) {
969
- unionSerde.writeUnknown();
970
- } else if (hasType) {
971
- for (const k in record) {
972
- const v = record[k];
973
- const t = jsonName ? nameMap[k] ?? k : k;
974
- if (!(t in out)) {
975
- out[t] = v;
976
- }
977
- }
978
- }
979
- return out;
980
- }
981
- needsTransform(ns) {
982
- if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
983
- return true;
984
- }
985
- if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
986
- return true;
987
- }
988
- if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
989
- return true;
990
- }
991
- return false;
992
- }
993
- };
994
-
995
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js
996
- var JsonBytesStringAdapter = class _JsonBytesStringAdapter extends Uint8Array {
997
- string = null;
998
- static allocUnsafe(bytes) {
999
- if (typeof Buffer === "function") {
1000
- const buffer = Buffer.allocUnsafe(bytes);
1001
- return new _JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
1002
- }
1003
- return new _JsonBytesStringAdapter(bytes);
1004
- }
1005
- toString() {
1006
- return this.s();
1007
- }
1008
- valueOf() {
1009
- return this.s();
1010
- }
1011
- includes(searchString, position) {
1012
- if (typeof searchString === "string") {
1013
- return this.s().includes(searchString, position);
1014
- }
1015
- return Uint8Array.prototype.includes.call(this, searchString, position);
1016
- }
1017
- indexOf(searchString, position) {
1018
- if (typeof searchString === "string") {
1019
- return this.s().indexOf(searchString, position);
1020
- }
1021
- return Uint8Array.prototype.indexOf.call(this, searchString, position);
1022
- }
1023
- lastIndexOf(searchString, position) {
1024
- if (typeof searchString === "string") {
1025
- return this.s().lastIndexOf(searchString, position);
1026
- }
1027
- const fn = Uint8Array.prototype.lastIndexOf;
1028
- if (position !== void 0) {
1029
- return fn.call(this, searchString, position);
1030
- }
1031
- return fn.call(this, searchString);
1032
- }
1033
- startsWith(searchString, position) {
1034
- return this.s().startsWith(searchString, position);
1035
- }
1036
- endsWith(searchString, endPosition) {
1037
- return this.s().endsWith(searchString, endPosition);
1038
- }
1039
- match(regexp) {
1040
- return this.s().match(regexp);
1041
- }
1042
- replace(searchValue, replaceValue) {
1043
- return this.s().replace(searchValue, replaceValue);
1044
- }
1045
- search(regexp) {
1046
- return this.s().search(regexp);
1047
- }
1048
- split(separator, limit) {
1049
- return this.s().split(separator, limit);
1050
- }
1051
- substring(start, end) {
1052
- return this.s().substring(start, end);
1053
- }
1054
- trim() {
1055
- return this.s().trim();
1056
- }
1057
- trimStart() {
1058
- return this.s().trimStart();
1059
- }
1060
- trimEnd() {
1061
- return this.s().trimEnd();
1062
- }
1063
- charAt(pos) {
1064
- return this.s().charAt(pos);
1065
- }
1066
- charCodeAt(index) {
1067
- return this.s().charCodeAt(index);
1068
- }
1069
- padStart(maxLength, fillString) {
1070
- return this.s().padStart(maxLength, fillString);
1071
- }
1072
- padEnd(maxLength, fillString) {
1073
- return this.s().padEnd(maxLength, fillString);
1074
- }
1075
- repeat(count) {
1076
- return this.s().repeat(count);
1077
- }
1078
- toUpperCase() {
1079
- return this.s().toUpperCase();
1080
- }
1081
- toLowerCase() {
1082
- return this.s().toLowerCase();
1083
- }
1084
- s() {
1085
- if (this.string == null) {
1086
- const n = Date.now();
1087
- if (n > warned + 6e4) {
1088
- console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error.");
1089
- warned = n;
1090
- }
1091
- this.string = toUtf8(this);
1092
- }
1093
- return this.string;
1094
- }
1095
- };
1096
- var warned = 0;
1097
-
1098
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js
1099
- var encoder = new TextEncoder();
1100
- var OPEN_BRACE = 123;
1101
- var CLOSE_BRACE = 125;
1102
- var OPEN_BRACKET = 91;
1103
- var CLOSE_BRACKET = 93;
1104
- var QUOTE = 34;
1105
- var COLON = 58;
1106
- var COMMA = 44;
1107
- var BACKSLASH = 92;
1108
- var TRUE = new Uint8Array([116, 114, 117, 101]);
1109
- var FALSE = new Uint8Array([102, 97, 108, 115, 101]);
1110
- var NULL = new Uint8Array([110, 117, 108, 108]);
1111
- var ESCAPE_TABLE = new Array(128).fill(null);
1112
- ESCAPE_TABLE[8] = "b";
1113
- ESCAPE_TABLE[9] = "t";
1114
- ESCAPE_TABLE[10] = "n";
1115
- ESCAPE_TABLE[12] = "f";
1116
- ESCAPE_TABLE[13] = "r";
1117
- ESCAPE_TABLE[34] = '"';
1118
- ESCAPE_TABLE[92] = "\\";
1119
- for (let i = 0; i < 32; i++) {
1120
- if (ESCAPE_TABLE[i] === null) {
1121
- ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
1122
- }
1123
- }
1124
- var INITIAL_BUFFER_SIZE = 2048;
1125
- function alloc(size) {
1126
- return JsonBytesStringAdapter.allocUnsafe(size);
1127
- }
1128
- var JsonShapeSerializer2 = class _JsonShapeSerializer2 extends SerdeContextConfig {
1129
- settings;
1130
- json;
1131
- i = 0;
1132
- rootSchema;
1133
- rawValue;
1134
- passthrough = false;
1135
- constructor(settings) {
1136
- super();
1137
- this.settings = settings;
1138
- this.json = alloc(INITIAL_BUFFER_SIZE);
1139
- }
1140
- write(schema, value) {
1141
- this.i = 0;
1142
- this.rawValue = value;
1143
- this.rootSchema = NormalizedSchema.of(schema);
1144
- this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
1145
- if (!this.passthrough) {
1146
- this.writeValue(this.rootSchema, value, void 0);
1147
- }
1148
- }
1149
- writeDiscriminatedDocument(schema, value) {
1150
- this.i = 0;
1151
- this.rootSchema = NormalizedSchema.of(schema);
1152
- const ns = this.rootSchema;
1153
- if (ns.isStructSchema() && value != null && typeof value === "object") {
1154
- this.writeValue(ns, value, void 0);
1155
- const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
1156
- const z = prefix.length;
1157
- this.ensure(z);
1158
- this.json.copyWithin(1 + z, 1, this.i);
1159
- encoder.encodeInto(prefix, this.json.subarray(1));
1160
- this.i += z;
1161
- } else {
1162
- this.writeValue(ns, value, void 0);
1163
- }
1164
- }
1165
- flush() {
1166
- this.rootSchema = void 0;
1167
- const finalPosition = this.i;
1168
- this.i = 0;
1169
- const raw = this.rawValue;
1170
- this.rawValue = void 0;
1171
- if (finalPosition === 0) {
1172
- return raw;
1173
- }
1174
- const result = this.json.subarray(0, finalPosition);
1175
- this.json = alloc(INITIAL_BUFFER_SIZE);
1176
- return result;
1177
- }
1178
- ensure(byteCount) {
1179
- const { i, json } = this;
1180
- if (i + byteCount > json.length) {
1181
- let newSize = json.length * 2;
1182
- while (newSize < i + byteCount) {
1183
- newSize *= 2;
1184
- }
1185
- const next = alloc(newSize);
1186
- next.set(this.json);
1187
- this.json = next;
1188
- }
1189
- }
1190
- writeAscii(s) {
1191
- const z = s.length;
1192
- this.ensure(z);
1193
- let { i, json } = this;
1194
- for (let j = 0; j < z; ++j) {
1195
- json[i] = s.charCodeAt(j);
1196
- i += 1;
1197
- }
1198
- this.i = i;
1199
- }
1200
- writeAsciiQuoted(s) {
1201
- const z = s.length;
1202
- this.ensure(z + 4);
1203
- let { json, i } = this;
1204
- json[i++] = QUOTE;
1205
- for (let j = 0; j < z; ++j) {
1206
- json[i++] = s.charCodeAt(j);
1207
- }
1208
- json[i++] = QUOTE;
1209
- this.i = i;
1210
- }
1211
- writeJsonString(s) {
1212
- this.ensure(s.length * 3 + 2);
1213
- this.json[this.i++] = QUOTE;
1214
- const z = s.length;
1215
- for (let j = 0; j < z; ++j) {
1216
- const c = s.charCodeAt(j);
1217
- if (c > 34 && c < 92) {
1218
- this.json[this.i++] = c;
1219
- } else if (c < 128) {
1220
- const esc = ESCAPE_TABLE[c];
1221
- if (esc !== null) {
1222
- this.ensure(esc.length + 1);
1223
- this.json[this.i++] = BACKSLASH;
1224
- for (let k = 0; k < esc.length; k++) {
1225
- this.json[this.i++] = esc.charCodeAt(k);
1226
- }
1227
- } else {
1228
- this.json[this.i++] = c;
1229
- }
1230
- } else if (c >= 55296 && c <= 56319) {
1231
- const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
1232
- if (next >= 56320 && next <= 57343) {
1233
- this.ensure(4);
1234
- const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
1235
- this.i += written;
1236
- ++j;
1237
- } else {
1238
- this.ensure(6);
1239
- this.writeUnicodeEscape(c);
1240
- }
1241
- } else if (c >= 56320 && c <= 57343) {
1242
- this.ensure(6);
1243
- this.writeUnicodeEscape(c);
1244
- } else {
1245
- let { i, json } = this;
1246
- if (c < 2048) {
1247
- json[i++] = 192 | c >> 6;
1248
- json[i++] = 128 | c & 63;
1249
- } else {
1250
- json[i++] = 224 | c >> 12;
1251
- json[i++] = 128 | c >> 6 & 63;
1252
- json[i++] = 128 | c & 63;
1253
- }
1254
- this.i = i;
1255
- }
1256
- }
1257
- this.json[this.i++] = QUOTE;
1258
- }
1259
- writeUnicodeEscape(code) {
1260
- let { json, i } = this;
1261
- json[i++] = BACKSLASH;
1262
- json[i++] = 117;
1263
- const hex = code.toString(16).padStart(4, "0");
1264
- for (let j = 0; j < 4; ++j) {
1265
- json[i++] = hex.charCodeAt(j);
1266
- }
1267
- this.i = i;
1268
- }
1269
- static B64 = (() => {
1270
- const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1271
- const table = new Uint8Array(64);
1272
- for (let i = 0; i < 64; ++i) {
1273
- table[i] = chars.charCodeAt(i);
1274
- }
1275
- return table;
1276
- })();
1277
- writeBase64(data) {
1278
- const b64Len = Math.ceil(data.length / 3) * 4;
1279
- this.ensure(b64Len + 2);
1280
- const json = this.json;
1281
- const B64 = _JsonShapeSerializer2.B64;
1282
- let i = this.i;
1283
- json[i++] = QUOTE;
1284
- const len = data.length;
1285
- const remainder = len % 3;
1286
- const mainLen = len - remainder;
1287
- for (let j = 0; j < mainLen; j += 3) {
1288
- const a = data[j];
1289
- const b = data[j + 1];
1290
- const c = data[j + 2];
1291
- json[i++] = B64[a >> 2];
1292
- json[i++] = B64[(a & 3) << 4 | b >> 4];
1293
- json[i++] = B64[(b & 15) << 2 | c >> 6];
1294
- json[i++] = B64[c & 63];
1295
- }
1296
- if (remainder === 2) {
1297
- const a = data[mainLen];
1298
- const b = data[mainLen + 1];
1299
- json[i++] = B64[a >> 2];
1300
- json[i++] = B64[(a & 3) << 4 | b >> 4];
1301
- json[i++] = B64[(b & 15) << 2];
1302
- json[i++] = 61;
1303
- } else if (remainder === 1) {
1304
- const a = data[mainLen];
1305
- json[i++] = B64[a >> 2];
1306
- json[i++] = B64[(a & 3) << 4];
1307
- json[i++] = 61;
1308
- json[i++] = 61;
1309
- }
1310
- json[i++] = QUOTE;
1311
- this.i = i;
1312
- }
1313
- writeValue(schema, value, container) {
1314
- if (value == null) {
1315
- if (container?.isStructSchema()) {
1316
- if (value === void 0) {
1317
- const ns2 = NormalizedSchema.of(schema);
1318
- if (ns2.isIdempotencyToken()) {
1319
- this.writeAsciiQuoted(generateIdempotencyToken());
1320
- return;
1321
- }
1322
- }
1323
- return;
1324
- }
1325
- this.ensure(4);
1326
- this.json.set(NULL, this.i);
1327
- this.i += 4;
1328
- return;
1329
- }
1330
- const ns = NormalizedSchema.of(schema);
1331
- const isObject = typeof value === "object";
1332
- if (ns.isStringSchema()) {
1333
- const mediaType = ns.getMergedTraits().mediaType;
1334
- if (mediaType) {
1335
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1336
- if (isJson) {
1337
- this.writeJsonString(LazyJsonString.from(value).toString());
1338
- return;
1339
- }
1340
- }
1341
- }
1342
- if (isObject) {
1343
- if (ns.isStructSchema()) {
1344
- this.writeStruct(ns, value);
1345
- return;
1346
- }
1347
- if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
1348
- this.writeList(ns, value, ns.isDocumentSchema());
1349
- return;
1350
- }
1351
- if (ns.isMapSchema()) {
1352
- this.writeMap(ns, value, false);
1353
- return;
1354
- }
1355
- if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
1356
- this.writeBase64(value);
1357
- return;
1358
- }
1359
- if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
1360
- this.writeTimestamp(ns, value);
1361
- return;
1362
- }
1363
- if (value instanceof NumericValue) {
1364
- this.writeAscii(value.string);
1365
- return;
1366
- }
1367
- if (ns.isDocumentSchema()) {
1368
- if (Array.isArray(value)) {
1369
- this.writeList(ns, value, true);
1370
- } else {
1371
- this.writeMap(ns, value, true);
1372
- }
1373
- return;
1374
- }
1375
- const json = JSON.stringify(value);
1376
- this.writeAscii(json);
1377
- return;
1378
- }
1379
- if (typeof value === "string") {
1380
- if (ns.isBlobSchema()) {
1381
- const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
1382
- this.writeAsciiQuoted(b64);
1383
- return;
1384
- }
1385
- this.writeJsonString(value);
1386
- return;
1387
- }
1388
- if (typeof value === "number") {
1389
- if (Math.abs(value) === Infinity || Number.isNaN(value)) {
1390
- this.writeAsciiQuoted(String(value));
1391
- return;
1392
- }
1393
- const numStr = String(value);
1394
- this.writeAscii(numStr);
1395
- return;
1396
- }
1397
- if (typeof value === "boolean") {
1398
- this.ensure(5);
1399
- let { i, json } = this;
1400
- if (value) {
1401
- json.set(TRUE, i);
1402
- i += 4;
1403
- } else {
1404
- json.set(FALSE, i);
1405
- i += 5;
1406
- }
1407
- this.i = i;
1408
- return;
1409
- }
1410
- if (typeof value === "bigint") {
1411
- this.writeAscii(value.toString());
1412
- return;
1413
- }
1414
- this.writeAscii(String(value));
1415
- }
1416
- writeStruct(ns, value) {
1417
- this.ensure(2);
1418
- this.json[this.i++] = OPEN_BRACE;
1419
- let wroteAny = false;
1420
- const hasType = typeof value.__type === "string";
1421
- let writtenKeys;
1422
- if (hasType) {
1423
- writtenKeys = /* @__PURE__ */ new Set();
1424
- }
1425
- for (const [memberName, memberSchema] of ns.structIterator()) {
1426
- const item = value[memberName];
1427
- if (item == null && !memberSchema.isIdempotencyToken()) {
1428
- continue;
1429
- }
1430
- if (wroteAny) {
1431
- this.ensure(1);
1432
- this.json[this.i++] = COMMA;
1433
- }
1434
- wroteAny = true;
1435
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
1436
- if (writtenKeys) {
1437
- writtenKeys.add(memberName);
1438
- writtenKeys.add(targetKey);
1439
- }
1440
- this.writeAsciiQuoted(targetKey);
1441
- this.json[this.i++] = COLON;
1442
- this.writeValue(memberSchema, item, ns);
1443
- }
1444
- if (!wroteAny && ns.isUnionSchema()) {
1445
- const { $unknown } = value;
1446
- if (Array.isArray($unknown)) {
1447
- const [k, v] = $unknown;
1448
- this.writeAsciiQuoted(k);
1449
- this.ensure(1);
1450
- this.json[this.i++] = COLON;
1451
- this.writeValue(15, v, ns);
1452
- }
1453
- } else if (hasType) {
1454
- for (const k in value) {
1455
- if (writtenKeys.has(k)) {
1456
- continue;
1457
- }
1458
- writtenKeys.add(k);
1459
- const v = value[k];
1460
- if (wroteAny) {
1461
- this.ensure(1);
1462
- this.json[this.i++] = COMMA;
1463
- }
1464
- wroteAny = true;
1465
- this.writeAsciiQuoted(k);
1466
- this.ensure(1);
1467
- this.json[this.i++] = COLON;
1468
- this.writeValue(15, v, void 0);
1469
- }
1470
- }
1471
- this.ensure(1);
1472
- this.json[this.i++] = CLOSE_BRACE;
1473
- }
1474
- writeList(ns, value, isDocument) {
1475
- const sparse = !!ns.getMergedTraits().sparse;
1476
- const valueSchema = ns.getValueSchema();
1477
- if (!isDocument) {
1478
- if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
1479
- let hasSpecials = false;
1480
- for (let i = 0; i < value.length; ++i) {
1481
- const v = value[i];
1482
- if (Number.isNaN(v) || v === Infinity || v === -Infinity || v == null && !sparse) {
1483
- hasSpecials = true;
1484
- break;
1485
- }
1486
- }
1487
- let json;
1488
- if (!hasSpecials) {
1489
- json = JSON.stringify(value);
1490
- } else {
1491
- const out = [];
1492
- for (let i = 0; i < value.length; ++i) {
1493
- const v = value[i];
1494
- if (v == null && !sparse)
1495
- continue;
1496
- if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
1497
- out.push(String(v));
1498
- } else {
1499
- out.push(v);
1500
- }
1501
- }
1502
- json = JSON.stringify(out);
1503
- }
1504
- this.ensure(json.length * 3);
1505
- this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
1506
- return;
1507
- }
1508
- }
1509
- this.ensure(2);
1510
- this.json[this.i++] = OPEN_BRACKET;
1511
- let wroteFirstItem = false;
1512
- for (let i = 0; i < value.length; ++i) {
1513
- const item = value[i];
1514
- if (isDocument ? item === void 0 : item == null && !sparse) {
1515
- continue;
1516
- }
1517
- if (wroteFirstItem) {
1518
- this.ensure(1);
1519
- this.json[this.i++] = COMMA;
1520
- }
1521
- this.writeValue(valueSchema, item, void 0);
1522
- wroteFirstItem = true;
1523
- }
1524
- this.ensure(1);
1525
- this.json[this.i++] = CLOSE_BRACKET;
1526
- }
1527
- writeMap(ns, value, isDocument) {
1528
- const sparse = !!ns.getMergedTraits().sparse;
1529
- const valueSchema = ns.getValueSchema();
1530
- if (!isDocument) {
1531
- if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
1532
- let modifications;
1533
- for (const k in value) {
1534
- const v = value[k];
1535
- if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
1536
- (modifications ??= {})[k] = v;
1537
- value[k] = String(v);
1538
- } else if (v === null && !sparse) {
1539
- (modifications ??= {})[k] = null;
1540
- value[k] = void 0;
1541
- }
1542
- }
1543
- const json = JSON.stringify(value);
1544
- if (modifications) {
1545
- Object.assign(value, modifications);
1546
- }
1547
- this.ensure(json.length * 3);
1548
- this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
1549
- return;
1550
- }
1551
- }
1552
- this.ensure(2);
1553
- this.json[this.i++] = OPEN_BRACE;
1554
- let first = true;
1555
- for (const k in value) {
1556
- const v = value[k];
1557
- if (isDocument ? v === void 0 : v == null && !sparse) {
1558
- continue;
1559
- }
1560
- if (!first) {
1561
- this.ensure(1);
1562
- this.json[this.i++] = COMMA;
1563
- }
1564
- first = false;
1565
- this.writeJsonString(k);
1566
- this.ensure(1);
1567
- this.json[this.i++] = COLON;
1568
- this.writeValue(valueSchema, v, void 0);
1569
- }
1570
- this.ensure(1);
1571
- this.json[this.i++] = CLOSE_BRACE;
1572
- }
1573
- writeTimestamp(ns, value) {
1574
- const format = determineTimestampFormat(ns, this.settings);
1575
- switch (format) {
1576
- case 5: {
1577
- const iso = value.toISOString().replace(".000Z", "Z");
1578
- this.writeAsciiQuoted(iso);
1579
- return;
1580
- }
1581
- case 6: {
1582
- this.writeAsciiQuoted(dateToUtcString(value));
1583
- return;
1584
- }
1585
- case 7: {
1586
- const epochSecs = String(value.getTime() / 1e3);
1587
- this.writeAscii(epochSecs);
1588
- return;
1589
- }
1590
- default: {
1591
- const epochSecs = String(value.getTime() / 1e3);
1592
- this.writeAscii(epochSecs);
1593
- return;
1594
- }
1595
- }
1596
- }
1597
- };
1598
-
1599
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js
1600
- var JsonCodec2 = class extends SerdeContextConfig {
1601
- settings;
1602
- constructor(settings) {
1603
- super();
1604
- this.settings = settings;
1605
- }
1606
- createSerializer() {
1607
- const serializer = new JsonShapeSerializer2(this.settings);
1608
- serializer.setSerdeContext(this.serdeContext);
1609
- return serializer;
1610
- }
1611
- createDeserializer() {
1612
- const deserializer = new JsonShapeDeserializer2(this.settings);
1613
- deserializer.setSerdeContext(this.serdeContext);
1614
- return deserializer;
1615
- }
1616
- };
1617
-
1618
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
522
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
1619
523
  var AwsRestJsonProtocol = class extends HttpBindingProtocol {
1620
524
  serializer;
1621
525
  deserializer;
@@ -1697,7 +601,7 @@ var AwsRestJsonProtocol = class extends HttpBindingProtocol {
1697
601
  }
1698
602
  };
1699
603
 
1700
- // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js
604
+ // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.42/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js
1701
605
  var ATTR_ESCAPE_RE = /[&<>"]/g;
1702
606
  var ATTR_ESCAPE_MAP = {
1703
607
  "&": "&amp;",
@@ -1709,7 +613,7 @@ function escapeAttribute(value) {
1709
613
  return value.replace(ATTR_ESCAPE_RE, (ch) => ATTR_ESCAPE_MAP[ch]);
1710
614
  }
1711
615
 
1712
- // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js
616
+ // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.42/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js
1713
617
  var ELEMENT_ESCAPE_RE = /[&"'<>\r\n\u0085\u2028]/g;
1714
618
  var ELEMENT_ESCAPE_MAP = {
1715
619
  "&": "&amp;",
@@ -1726,7 +630,7 @@ function escapeElement(value) {
1726
630
  return value.replace(ELEMENT_ESCAPE_RE, (ch) => ELEMENT_ESCAPE_MAP[ch]);
1727
631
  }
1728
632
 
1729
- // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-es/XmlText.js
633
+ // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.42/node_modules/@aws-sdk/xml-builder/dist-es/XmlText.js
1730
634
  var XmlText = class {
1731
635
  value;
1732
636
  constructor(value) {
@@ -1737,7 +641,7 @@ var XmlText = class {
1737
641
  }
1738
642
  };
1739
643
 
1740
- // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-es/XmlNode.js
644
+ // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.42/node_modules/@aws-sdk/xml-builder/dist-es/XmlNode.js
1741
645
  var XmlNode = class _XmlNode {
1742
646
  name;
1743
647
  children;
@@ -1825,8 +729,8 @@ var XmlNode = class _XmlNode {
1825
729
  }
1826
730
  };
1827
731
 
1828
- // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js
1829
- function writeKey2(obj) {
732
+ // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.42/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js
733
+ function writeKey(obj) {
1830
734
  Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true });
1831
735
  }
1832
736
  function parseXML(xml) {
@@ -1927,7 +831,7 @@ var AwsXmlParser = class _AwsXmlParser {
1927
831
  ++p.i;
1928
832
  p.trim();
1929
833
  if (name === "__proto__") {
1930
- writeKey2(attrs);
834
+ writeKey(attrs);
1931
835
  }
1932
836
  attrs[name] = p.readAttrValue();
1933
837
  hasAttrs = true;
@@ -2001,7 +905,7 @@ var AwsXmlParser = class _AwsXmlParser {
2001
905
  }
2002
906
  for (const child of childTags) {
2003
907
  if (child.tag === "__proto__") {
2004
- writeKey2(obj);
908
+ writeKey(obj);
2005
909
  }
2006
910
  if (child.tag in obj) {
2007
911
  if (Array.isArray(obj[child.tag])) {
@@ -2015,7 +919,7 @@ var AwsXmlParser = class _AwsXmlParser {
2015
919
  }
2016
920
  for (const [k, v] of Object.entries(attrs)) {
2017
921
  if (k === "__proto__") {
2018
- writeKey2(obj);
922
+ writeKey(obj);
2019
923
  }
2020
924
  obj[k] = v;
2021
925
  }
@@ -2059,7 +963,48 @@ var AwsXmlParser = class _AwsXmlParser {
2059
963
  }
2060
964
  };
2061
965
 
2062
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js
966
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
967
+ var SerdeContextConfig = class {
968
+ serdeContext;
969
+ setSerdeContext(serdeContext) {
970
+ this.serdeContext = serdeContext;
971
+ }
972
+ };
973
+
974
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
975
+ var UnionSerde = class {
976
+ from;
977
+ to;
978
+ keys;
979
+ constructor(from, to) {
980
+ this.from = from;
981
+ this.to = to;
982
+ const keys = Object.keys(this.from);
983
+ const set = new Set(keys);
984
+ set.delete("__type");
985
+ this.keys = set;
986
+ }
987
+ mark(key) {
988
+ this.keys.delete(key);
989
+ }
990
+ hasUnknown() {
991
+ return this.keys.size === 1 && Object.keys(this.to).length === 0;
992
+ }
993
+ writeUnknown() {
994
+ if (this.hasUnknown()) {
995
+ const k = this.keys.values().next().value;
996
+ const v = this.from[k];
997
+ this.to.$unknown = [k, v];
998
+ }
999
+ }
1000
+ };
1001
+
1002
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js
1003
+ function writeKey2(obj) {
1004
+ Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true });
1005
+ }
1006
+
1007
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js
2063
1008
  var XmlShapeDeserializer = class extends SerdeContextConfig {
2064
1009
  settings;
2065
1010
  stringDeserializer;
@@ -2137,7 +1082,7 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
2137
1082
  const key = entry[keyProperty];
2138
1083
  const value2 = entry[valueProperty];
2139
1084
  if (key === "__proto__") {
2140
- writeKey(buffer);
1085
+ writeKey2(buffer);
2141
1086
  }
2142
1087
  buffer[key] = this.readSchema(memberNs, value2);
2143
1088
  }
@@ -2203,7 +1148,7 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
2203
1148
  }
2204
1149
  };
2205
1150
 
2206
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
1151
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
2207
1152
  var QueryShapeSerializer = class extends SerdeContextConfig {
2208
1153
  settings;
2209
1154
  buffer;
@@ -2373,7 +1318,7 @@ var QueryShapeSerializer = class extends SerdeContextConfig {
2373
1318
  }
2374
1319
  };
2375
1320
 
2376
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js
1321
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js
2377
1322
  var AwsQueryProtocol = class extends RpcProtocol {
2378
1323
  options;
2379
1324
  serializer;
@@ -2503,7 +1448,7 @@ var AwsQueryProtocol = class extends RpcProtocol {
2503
1448
  }
2504
1449
  };
2505
1450
 
2506
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
1451
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
2507
1452
  var loadRestXmlErrorCode = (output, data) => {
2508
1453
  if (data?.Error?.Code !== void 0) {
2509
1454
  return data.Error.Code;
@@ -2516,7 +1461,7 @@ var loadRestXmlErrorCode = (output, data) => {
2516
1461
  }
2517
1462
  };
2518
1463
 
2519
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js
1464
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js
2520
1465
  var XmlShapeSerializer = class extends SerdeContextConfig {
2521
1466
  settings;
2522
1467
  stringBuffer;
@@ -2783,7 +1728,7 @@ var XmlShapeSerializer = class extends SerdeContextConfig {
2783
1728
  }
2784
1729
  };
2785
1730
 
2786
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js
1731
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js
2787
1732
  var XmlCodec = class extends SerdeContextConfig {
2788
1733
  settings;
2789
1734
  constructor(settings) {
@@ -2802,7 +1747,7 @@ var XmlCodec = class extends SerdeContextConfig {
2802
1747
  }
2803
1748
  };
2804
1749
 
2805
- // ../../node_modules/.pnpm/@aws-sdk+core@3.978.2/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js
1750
+ // ../../node_modules/.pnpm/@aws-sdk+core@3.979.1/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js
2806
1751
  var AwsRestXmlProtocol = class extends HttpBindingProtocol {
2807
1752
  codec;
2808
1753
  serializer;