@larkup/cli 0.3.20 → 0.3.22

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 (44) hide show
  1. package/dist/{analytics-store-4EI56OLE.js → analytics-store-6SZQ7JBE.js} +1 -1
  2. package/dist/bowser-KBMRPWZW.js +2100 -0
  3. package/dist/{chunk-CUA3FHFQ.js → chunk-3HURSQNH.js} +39 -26
  4. package/dist/{chunk-AKBEY3S4.js → chunk-4Y7OLVDR.js} +4 -4
  5. package/dist/{chunk-YOPP3ETL.js → chunk-5LXQQ3B5.js} +111 -80
  6. package/dist/{chunk-2QWAEE6L.js → chunk-5UNSW2YQ.js} +2 -2
  7. package/dist/{chunk-HYYSI5FE.js → chunk-5YXDD2GC.js} +183 -174
  8. package/dist/{chunk-ZH2A3TFQ.js → chunk-CQRTVM3R.js} +99 -1154
  9. package/dist/{chunk-54YIZOXQ.js → chunk-G4JLV4D2.js} +58 -26
  10. package/dist/chunk-G542PEOG.js +215 -0
  11. package/dist/chunk-JKTTCUZ3.js +653 -0
  12. package/dist/chunk-M4T7TRRC.js +2461 -0
  13. package/dist/chunk-MEKWGOS5.js +76 -0
  14. package/dist/{chunk-6VBJAFWY.js → chunk-MTXSOKLF.js} +97 -77
  15. package/dist/chunk-NMIRIGDS.js +1445 -0
  16. package/dist/chunk-SUBMQE2G.js +1280 -0
  17. package/dist/{chunk-SMQUSHD4.js → chunk-TBMEIDA5.js} +39 -2
  18. package/dist/{chunk-FMBWCTFV.js → chunk-TEVXZRMI.js} +1222 -87
  19. package/dist/{chunk-VZAREDRR.js → chunk-TX2W2TDD.js} +3 -3
  20. package/dist/{chunk-6HRBZ7QP.js → chunk-VMIDDBSU.js} +3 -3
  21. package/dist/{chunk-DTRGAEFR.js → chunk-YL567TPU.js} +4 -4
  22. package/dist/{dist-es-CM7567P2.js → dist-es-64SQQSB2.js} +8 -8
  23. package/dist/{dist-es-DC3KLBPR.js → dist-es-EYJKNFZZ.js} +9 -9
  24. package/dist/{dist-es-PY4YS7TC.js → dist-es-GCJ2YN2W.js} +12 -9
  25. package/dist/{dist-es-KY7QTIEX.js → dist-es-HOKTEA4H.js} +22 -22
  26. package/dist/{dist-es-ZDCXFYRX.js → dist-es-I5PEXU6M.js} +5 -5
  27. package/dist/{dist-es-IS5PH45I.js → dist-es-IBDQOMV4.js} +67 -43
  28. package/dist/{dist-es-M6OXVHSI.js → dist-es-KLJ57YTV.js} +2 -2
  29. package/dist/{dist-es-3SVFRI6P.js → dist-es-RSHHKZQR.js} +251 -237
  30. package/dist/{dist-es-OB4H2RSG.js → dist-es-SM3XZOJI.js} +10 -10
  31. package/dist/{dist-es-FEVR73CQ.js → dist-es-WKOKSFRW.js} +8 -8
  32. package/dist/{chunk-PFTSXAZG.js → event-streams-DE7Y6VJA.js} +59 -40
  33. package/dist/{event-streams-KOWL2S4G.js → event-streams-DO25HTN4.js} +2 -3
  34. package/dist/index.js +22 -27
  35. package/dist/{loadSso-OLMNBQ4H.js → loadSso-RBMT5EPI.js} +68 -62
  36. package/dist/{signin-NBTUJ5KD.js → signin-S7FYOH5Y.js} +79 -66
  37. package/dist/{sso-oidc-WNK6HQX7.js → sso-oidc-YVLODDDB.js} +71 -65
  38. package/dist/{sts-TGY2Y4DZ.js → sts-R6CUYWGQ.js} +77 -71
  39. package/dist/{tool-loader-GFMXFTMW.js → tool-loader-ZRVSMB4T.js} +2 -2
  40. package/dist/{tool-registry-K74GICK5.js → tool-registry-FLO7V4FK.js} +1 -1
  41. package/package.json +13 -13
  42. package/dist/bowser-GZLEN3PD.js +0 -2821
  43. package/dist/chunk-GYXT77I3.js +0 -515
  44. package/dist/chunk-TFGGCUFR.js +0 -126
@@ -17,16 +17,20 @@ import {
17
17
  hasOwn,
18
18
  isValidHostLabel,
19
19
  isValidHostname,
20
+ parseEpochTimestamp,
21
+ parseRfc3339DateTimeWithOffset,
22
+ parseRfc7231DateTime,
20
23
  quoteHeader,
21
24
  sdkStreamMixin,
22
25
  splitEvery,
23
26
  splitHeader,
24
27
  toBase64,
25
28
  toUtf8,
26
- translateTraits
27
- } from "./chunk-HYYSI5FE.js";
29
+ translateTraits,
30
+ writeKey
31
+ } from "./chunk-5YXDD2GC.js";
28
32
 
29
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
33
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
30
34
  var ProviderError = class _ProviderError extends Error {
31
35
  name = "ProviderError";
32
36
  tryNextLink;
@@ -50,7 +54,7 @@ var ProviderError = class _ProviderError extends Error {
50
54
  }
51
55
  };
52
56
 
53
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
57
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
54
58
  var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
55
59
  name = "CredentialsProviderError";
56
60
  constructor(message, options = true) {
@@ -59,15 +63,15 @@ var CredentialsProviderError = class _CredentialsProviderError extends ProviderE
59
63
  }
60
64
  };
61
65
 
62
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
66
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
63
67
  var ENV_PROFILE = "AWS_PROFILE";
64
68
  var DEFAULT_PROFILE = "default";
65
69
  var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
66
70
 
67
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
71
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
68
72
  import { join } from "path";
69
73
 
70
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
74
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
71
75
  import { homedir } from "os";
72
76
  import { sep } from "path";
73
77
  var homeDirCache = {};
@@ -79,29 +83,33 @@ var getHomeDirCacheKey = () => {
79
83
  };
80
84
  var getHomeDir = () => {
81
85
  const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
82
- if (HOME)
86
+ if (HOME) {
83
87
  return HOME;
84
- if (USERPROFILE)
88
+ }
89
+ if (USERPROFILE) {
85
90
  return USERPROFILE;
86
- if (HOMEPATH)
91
+ }
92
+ if (HOMEPATH) {
87
93
  return `${HOMEDRIVE}${HOMEPATH}`;
94
+ }
88
95
  const homeDirCacheKey = getHomeDirCacheKey();
89
- if (!homeDirCache[homeDirCacheKey])
96
+ if (!homeDirCache[homeDirCacheKey]) {
90
97
  homeDirCache[homeDirCacheKey] = homedir();
98
+ }
91
99
  return homeDirCache[homeDirCacheKey];
92
100
  };
93
101
 
94
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
102
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
95
103
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
96
104
  var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
97
105
 
98
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
106
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
99
107
  import { join as join3 } from "path";
100
108
 
101
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
109
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
102
110
  var CONFIG_PREFIX_SEPARATOR = ".";
103
111
 
104
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
112
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
105
113
  var getConfigData = (data) => Object.entries(data).filter(([key]) => {
106
114
  const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
107
115
  if (indexOfSeparator === -1) {
@@ -117,12 +125,12 @@ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
117
125
  ...data.default && { default: data.default }
118
126
  });
119
127
 
120
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
128
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
121
129
  import { join as join2 } from "path";
122
130
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
123
131
  var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
124
132
 
125
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
133
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
126
134
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
127
135
  var profileNameBlockList = ["__proto__", "profile __proto__"];
128
136
  var parseIni = (iniData) => {
@@ -171,7 +179,7 @@ var parseIni = (iniData) => {
171
179
  return map;
172
180
  };
173
181
 
174
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
182
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
175
183
  import { readFile as fsReadFile } from "fs/promises";
176
184
  var filePromises = {};
177
185
  var fileIntercept = {};
@@ -185,7 +193,7 @@ var readFile = (path, options) => {
185
193
  return filePromises[path];
186
194
  };
187
195
 
188
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
196
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
189
197
  var swallowError = () => ({});
190
198
  var loadSharedConfigFiles = async (init = {}) => {
191
199
  const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
@@ -213,14 +221,14 @@ var loadSharedConfigFiles = async (init = {}) => {
213
221
  };
214
222
  };
215
223
 
216
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
224
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
217
225
  var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
218
226
 
219
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
227
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
220
228
  var swallowError2 = () => ({});
221
229
  var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
222
230
 
223
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
231
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
224
232
  var mergeConfigFiles = (...files) => {
225
233
  const merged = {};
226
234
  for (const file of files) {
@@ -235,16 +243,16 @@ var mergeConfigFiles = (...files) => {
235
243
  return merged;
236
244
  };
237
245
 
238
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
246
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
239
247
  var parseKnownFiles = async (init) => {
240
248
  const parsedFiles = await loadSharedConfigFiles(init);
241
249
  return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
242
250
  };
243
251
 
244
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
252
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
245
253
  import { readFile as readFile2 } from "fs/promises";
246
254
 
247
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
255
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
248
256
  import { createHash } from "crypto";
249
257
  import { join as join4 } from "path";
250
258
  var getSSOTokenFilepath = (id) => {
@@ -253,7 +261,7 @@ var getSSOTokenFilepath = (id) => {
253
261
  return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
254
262
  };
255
263
 
256
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
264
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
257
265
  var tokenIntercept = {};
258
266
  var getSSOTokenFromFile = async (id) => {
259
267
  if (tokenIntercept[id]) {
@@ -264,7 +272,7 @@ var getSSOTokenFromFile = async (id) => {
264
272
  return JSON.parse(ssoTokenText);
265
273
  };
266
274
 
267
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
275
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
268
276
  var externalDataInterceptor = {
269
277
  getFileRecord() {
270
278
  return fileIntercept;
@@ -280,7 +288,7 @@ var externalDataInterceptor = {
280
288
  }
281
289
  };
282
290
 
283
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
291
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
284
292
  var chain = (...providers) => async () => {
285
293
  if (providers.length === 0) {
286
294
  throw new ProviderError("No providers in chain");
@@ -301,7 +309,7 @@ var chain = (...providers) => async () => {
301
309
  throw lastProviderError;
302
310
  };
303
311
 
304
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
312
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
305
313
  var memoize = (provider, isExpired, requiresRefresh) => {
306
314
  let resolved;
307
315
  let pending;
@@ -347,7 +355,7 @@ var memoize = (provider, isExpired, requiresRefresh) => {
347
355
  };
348
356
  };
349
357
 
350
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
358
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
351
359
  function getSelectorName(functionString) {
352
360
  try {
353
361
  const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
@@ -360,7 +368,7 @@ function getSelectorName(functionString) {
360
368
  }
361
369
  }
362
370
 
363
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
371
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
364
372
  var fromEnv = (envVarSelector, options) => async () => {
365
373
  try {
366
374
  const config = envVarSelector(process.env, options);
@@ -373,7 +381,7 @@ var fromEnv = (envVarSelector, options) => async () => {
373
381
  }
374
382
  };
375
383
 
376
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
384
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
377
385
  var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
378
386
  const profile = getProfileName(init);
379
387
  const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
@@ -392,21 +400,21 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
392
400
  }
393
401
  };
394
402
 
395
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
403
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
396
404
  var fromValue = (staticValue) => () => Promise.resolve(staticValue);
397
405
 
398
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
406
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
399
407
  var isFunction = (func) => typeof func === "function";
400
408
  var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
401
409
 
402
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
410
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
403
411
  var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
404
412
  const { signingName, logger } = configuration;
405
413
  const envOptions = { signingName, logger };
406
414
  return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
407
415
  };
408
416
 
409
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
417
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
410
418
  var validRegions = /* @__PURE__ */ new Set();
411
419
  var checkRegion = (region, check = isValidHostLabel) => {
412
420
  if (!validRegions.has(region) && !check(region)) {
@@ -420,13 +428,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
420
428
  }
421
429
  };
422
430
 
423
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
431
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
424
432
  var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
425
433
 
426
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
434
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
427
435
  var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
428
436
 
429
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
437
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
430
438
  var resolveRegionConfig = (input) => {
431
439
  const { region, useFipsEndpoint } = input;
432
440
  if (!region) {
@@ -449,34 +457,28 @@ var resolveRegionConfig = (input) => {
449
457
  });
450
458
  };
451
459
 
452
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
453
- var TokenProviderError = class _TokenProviderError extends ProviderError {
454
- name = "TokenProviderError";
455
- constructor(message, options = true) {
456
- super(message, options);
457
- Object.setPrototypeOf(this, _TokenProviderError.prototype);
458
- }
459
- };
460
-
461
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
460
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
462
461
  var booleanSelector = (obj, key, type) => {
463
- if (!(key in obj))
462
+ if (!(key in obj)) {
464
463
  return void 0;
465
- if (obj[key] === "true")
464
+ }
465
+ if (obj[key] === "true") {
466
466
  return true;
467
- if (obj[key] === "false")
467
+ }
468
+ if (obj[key] === "false") {
468
469
  return false;
470
+ }
469
471
  throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
470
472
  };
471
473
 
472
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
474
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
473
475
  var SelectorType;
474
476
  (function(SelectorType2) {
475
477
  SelectorType2["ENV"] = "env";
476
478
  SelectorType2["CONFIG"] = "shared config entry";
477
479
  })(SelectorType || (SelectorType = {}));
478
480
 
479
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
481
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
480
482
  var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
481
483
  var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
482
484
  var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
@@ -485,7 +487,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
485
487
  default: false
486
488
  };
487
489
 
488
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
490
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
489
491
  var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
490
492
  var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
491
493
  var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
@@ -494,7 +496,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
494
496
  default: false
495
497
  };
496
498
 
497
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
499
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
498
500
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
499
501
  var AWS_REGION_ENV = "AWS_REGION";
500
502
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -505,7 +507,7 @@ var IMDS_TOKEN_PATH = "/latest/api/token";
505
507
  var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
506
508
  var X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
507
509
 
508
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
510
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
509
511
  var TIMEOUT_MS = 1e3;
510
512
  var NEG_CACHE_TTL_MS = 6e4;
511
513
  var negativeCacheUntil = 0;
@@ -595,7 +597,7 @@ var imdsRequest = async (options) => {
595
597
  });
596
598
  };
597
599
 
598
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
600
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
599
601
  var REGION_ENV_NAME = "AWS_REGION";
600
602
  var REGION_INI_NAME = "region";
601
603
  var NODE_REGION_CONFIG_OPTIONS = {
@@ -613,7 +615,7 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
613
615
  preferredFile: "credentials"
614
616
  };
615
617
 
616
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
618
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
617
619
  var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
618
620
  var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
619
621
  var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
@@ -626,7 +628,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
626
628
  default: "legacy"
627
629
  };
628
630
 
629
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
631
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
630
632
  var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
631
633
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
632
634
  switch (mode?.toLowerCase()) {
@@ -666,7 +668,7 @@ var inferPhysicalRegion = async () => {
666
668
  return getInstanceMetadataRegion();
667
669
  };
668
670
 
669
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js
671
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js
670
672
  var CONTENT_LENGTH_HEADER = "content-length";
671
673
  function contentLengthMiddleware(bodyLengthChecker) {
672
674
  return (next) => async (args) => {
@@ -704,7 +706,7 @@ var getContentLengthPlugin = (options) => ({
704
706
  }
705
707
  });
706
708
 
707
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
709
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
708
710
  var collectBody = async (streamBody = new Uint8Array(), context) => {
709
711
  if (streamBody instanceof Uint8Array) {
710
712
  return Uint8ArrayBlobAdapter.mutate(streamBody);
@@ -716,14 +718,14 @@ var collectBody = async (streamBody = new Uint8Array(), context) => {
716
718
  return Uint8ArrayBlobAdapter.mutate(await fromContext);
717
719
  };
718
720
 
719
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
721
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
720
722
  function extendedEncodeURIComponent(str) {
721
723
  return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
722
724
  return "%" + c.charCodeAt(0).toString(16).toUpperCase();
723
725
  });
724
726
  }
725
727
 
726
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
728
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
727
729
  var SerdeContext = class {
728
730
  serdeContext;
729
731
  setSerdeContext(serdeContext) {
@@ -731,7 +733,7 @@ var SerdeContext = class {
731
733
  }
732
734
  };
733
735
 
734
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
736
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
735
737
  var HttpProtocol = class extends SerdeContext {
736
738
  options;
737
739
  compositeErrorRegistry;
@@ -774,8 +776,9 @@ var HttpProtocol = class extends SerdeContext {
774
776
  }
775
777
  if (endpoint.headers) {
776
778
  for (const name in endpoint.headers) {
777
- if (!hasOwn(endpoint.headers, name))
779
+ if (!hasOwn(endpoint.headers, name)) {
778
780
  continue;
781
+ }
779
782
  request.headers[name] = endpoint.headers[name].join(", ");
780
783
  }
781
784
  }
@@ -790,8 +793,9 @@ var HttpProtocol = class extends SerdeContext {
790
793
  };
791
794
  if (endpoint.headers) {
792
795
  for (const name in endpoint.headers) {
793
- if (!hasOwn(endpoint.headers, name))
796
+ if (!hasOwn(endpoint.headers, name)) {
794
797
  continue;
798
+ }
795
799
  request.headers[name] = endpoint.headers[name];
796
800
  }
797
801
  }
@@ -887,7 +891,7 @@ var HttpProtocol = class extends SerdeContext {
887
891
  });
888
892
  }
889
893
  async loadEventStreamCapability() {
890
- const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-KOWL2S4G.js");
894
+ const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-DO25HTN4.js");
891
895
  const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider);
892
896
  return new EventStreamSerde({
893
897
  marshaller,
@@ -925,7 +929,7 @@ var HttpProtocol = class extends SerdeContext {
925
929
  }
926
930
  };
927
931
 
928
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
932
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
929
933
  var HttpBindingProtocol = class extends HttpProtocol {
930
934
  async serializeRequest(operationSchema, _input, context) {
931
935
  const input = _input && typeof _input === "object" ? _input : {};
@@ -1008,8 +1012,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1008
1012
  headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
1009
1013
  } else if (typeof memberTraits.httpPrefixHeaders === "string") {
1010
1014
  for (const key in inputMemberValue) {
1011
- if (!hasOwn(inputMemberValue, key))
1015
+ if (!hasOwn(inputMemberValue, key)) {
1012
1016
  continue;
1017
+ }
1013
1018
  const val = inputMemberValue[key];
1014
1019
  const amalgam = memberTraits.httpPrefixHeaders + key;
1015
1020
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
@@ -1053,8 +1058,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1053
1058
  const traits = ns.getMergedTraits();
1054
1059
  if (traits.httpQueryParams) {
1055
1060
  for (const key in data) {
1056
- if (!hasOwn(data, key))
1061
+ if (!hasOwn(data, key)) {
1057
1062
  continue;
1063
+ }
1058
1064
  if (!(key in query)) {
1059
1065
  const val = data[key];
1060
1066
  const valueSchema = ns.getValueSchema();
@@ -1097,8 +1103,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1097
1103
  throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
1098
1104
  }
1099
1105
  for (const header in response.headers) {
1100
- if (!hasOwn(response.headers, header))
1106
+ if (!hasOwn(response.headers, header)) {
1101
1107
  continue;
1108
+ }
1102
1109
  const value = response.headers[header];
1103
1110
  delete response.headers[header];
1104
1111
  response.headers[header.toLowerCase()] = value;
@@ -1177,8 +1184,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1177
1184
  } else if (memberTraits.httpPrefixHeaders !== void 0) {
1178
1185
  dataObject[memberName] = {};
1179
1186
  for (const header in response.headers) {
1180
- if (!hasOwn(response.headers, header))
1187
+ if (!hasOwn(response.headers, header)) {
1181
1188
  continue;
1189
+ }
1182
1190
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
1183
1191
  const value = response.headers[header];
1184
1192
  const valueSchema = memberSchema.getValueSchema();
@@ -1197,7 +1205,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
1197
1205
  }
1198
1206
  };
1199
1207
 
1200
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
1208
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
1201
1209
  var RpcProtocol = class extends HttpProtocol {
1202
1210
  async serializeRequest(operationSchema, _input, context) {
1203
1211
  const serializer = this.serializer;
@@ -1253,7 +1261,7 @@ var RpcProtocol = class extends HttpProtocol {
1253
1261
  const deserializer = this.deserializer;
1254
1262
  const ns = NormalizedSchema.of(operationSchema.output);
1255
1263
  const dataObject = {};
1256
- if (response.statusCode >= 300) {
1264
+ if (this.isErrorResponse(response.statusCode)) {
1257
1265
  const bytes = await collectBody(response.body, context);
1258
1266
  if (bytes.byteLength > 0) {
1259
1267
  Object.assign(dataObject, await deserializer.read(15, bytes));
@@ -1262,8 +1270,9 @@ var RpcProtocol = class extends HttpProtocol {
1262
1270
  throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
1263
1271
  }
1264
1272
  for (const header in response.headers) {
1265
- if (!hasOwn(response.headers, header))
1273
+ if (!hasOwn(response.headers, header)) {
1266
1274
  continue;
1275
+ }
1267
1276
  const value = response.headers[header];
1268
1277
  delete response.headers[header];
1269
1278
  response.headers[header.toLowerCase()] = value;
@@ -1284,9 +1293,12 @@ var RpcProtocol = class extends HttpProtocol {
1284
1293
  dataObject.$metadata = this.deserializeMetadata(response);
1285
1294
  return dataObject;
1286
1295
  }
1296
+ isErrorResponse(statusCode) {
1297
+ return statusCode >= 300;
1298
+ }
1287
1299
  };
1288
1300
 
1289
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1301
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1290
1302
  function determineTimestampFormat(ns, settings) {
1291
1303
  if (settings.timestampFormat.useTrait) {
1292
1304
  if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) {
@@ -1298,7 +1310,7 @@ function determineTimestampFormat(ns, settings) {
1298
1310
  return bindingFormat ?? settings.timestampFormat.default;
1299
1311
  }
1300
1312
 
1301
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1313
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1302
1314
  var FromStringShapeDeserializer = class extends SerdeContext {
1303
1315
  settings;
1304
1316
  constructor(settings) {
@@ -1360,7 +1372,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
1360
1372
  }
1361
1373
  };
1362
1374
 
1363
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
1375
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
1364
1376
  var HttpInterceptingShapeDeserializer = class extends SerdeContext {
1365
1377
  codecDeserializer;
1366
1378
  stringDeserializer;
@@ -1399,7 +1411,7 @@ var HttpInterceptingShapeDeserializer = class extends SerdeContext {
1399
1411
  }
1400
1412
  };
1401
1413
 
1402
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
1414
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
1403
1415
  var ToStringShapeSerializer = class extends SerdeContext {
1404
1416
  settings;
1405
1417
  stringBuffer = "";
@@ -1486,7 +1498,7 @@ var ToStringShapeSerializer = class extends SerdeContext {
1486
1498
  }
1487
1499
  };
1488
1500
 
1489
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
1501
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
1490
1502
  var HttpInterceptingShapeSerializer = class {
1491
1503
  codecSerializer;
1492
1504
  stringSerializer;
@@ -1519,11 +1531,14 @@ var HttpInterceptingShapeSerializer = class {
1519
1531
  }
1520
1532
  };
1521
1533
 
1522
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js
1534
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js
1523
1535
  var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
1524
1536
  if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
1525
1537
  runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
1526
1538
  }
1539
+ if (runtimeConfig.defaultSocketTimeout) {
1540
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"), runtimeConfig.defaultSocketTimeout);
1541
+ }
1527
1542
  return {
1528
1543
  setHttpHandler(handler) {
1529
1544
  runtimeConfig.requestHandler = handler;
@@ -1545,11 +1560,11 @@ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
1545
1560
  };
1546
1561
  };
1547
1562
 
1548
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js
1563
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js
1549
1564
  var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
1550
1565
  var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
1551
1566
 
1552
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js
1567
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js
1553
1568
  function buildQueryString(query) {
1554
1569
  const parts = [];
1555
1570
  for (let key of Object.keys(query).sort()) {
@@ -1570,16 +1585,1134 @@ function buildQueryString(query) {
1570
1585
  return parts.join("&");
1571
1586
  }
1572
1587
 
1588
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
1589
+ var SerdeContextConfig = class {
1590
+ serdeContext;
1591
+ setSerdeContext(serdeContext) {
1592
+ this.serdeContext = serdeContext;
1593
+ }
1594
+ };
1595
+
1596
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js
1597
+ var UnionSerde = class {
1598
+ from;
1599
+ to;
1600
+ keys;
1601
+ constructor(from, to) {
1602
+ this.from = from;
1603
+ this.to = to;
1604
+ const keys = Object.keys(this.from);
1605
+ const set = new Set(keys);
1606
+ set.delete("__type");
1607
+ this.keys = set;
1608
+ }
1609
+ mark(key) {
1610
+ this.keys.delete(key);
1611
+ }
1612
+ hasUnknown() {
1613
+ return this.keys.size === 1 && Object.keys(this.to).length === 0;
1614
+ }
1615
+ writeUnknown() {
1616
+ if (this.hasUnknown()) {
1617
+ const k = this.keys.values().next().value;
1618
+ const v = this.from[k];
1619
+ this.to.$unknown = [k, v];
1620
+ }
1621
+ }
1622
+ };
1623
+
1624
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js
1625
+ var canParseBuffer;
1626
+ function detectBufferParsing() {
1627
+ if (canParseBuffer === void 0) {
1628
+ try {
1629
+ if (typeof Buffer !== "function") {
1630
+ canParseBuffer = false;
1631
+ } else {
1632
+ const result = JSON.parse(Buffer.from([123, 125]));
1633
+ canParseBuffer = result !== null && typeof result === "object";
1634
+ }
1635
+ } catch {
1636
+ canParseBuffer = false;
1637
+ }
1638
+ }
1639
+ return canParseBuffer;
1640
+ }
1641
+
1642
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js
1643
+ function jsonReviver(key, value, context) {
1644
+ if (context?.source) {
1645
+ const numericString = context.source;
1646
+ if (typeof value === "number") {
1647
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
1648
+ if (inSafeRange) {
1649
+ if (isRepresentable(numericString, value)) {
1650
+ return value;
1651
+ }
1652
+ return new NumericValue(numericString, "bigDecimal");
1653
+ } else {
1654
+ if (isFractionalBigNumeric(numericString)) {
1655
+ return new NumericValue(numericString, "bigDecimal");
1656
+ }
1657
+ if (/[eE]/.test(numericString)) {
1658
+ return expandExponentToBigInt(numericString);
1659
+ }
1660
+ return BigInt(numericString);
1661
+ }
1662
+ }
1663
+ }
1664
+ return value;
1665
+ }
1666
+ function isFractionalBigNumeric(s) {
1667
+ const dotIndex = s.indexOf(".");
1668
+ if (dotIndex === -1) {
1669
+ return false;
1670
+ }
1671
+ const eIndex = s.search(/[eE]/);
1672
+ if (eIndex === -1) {
1673
+ return true;
1674
+ }
1675
+ const fracDigits = eIndex - dotIndex - 1;
1676
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1677
+ return exp < fracDigits;
1678
+ }
1679
+ function isRepresentable(numericString, value) {
1680
+ if (numericString === String(value)) {
1681
+ return true;
1682
+ }
1683
+ if (Object.is(value, -0)) {
1684
+ return true;
1685
+ }
1686
+ if (/[eE]/.test(numericString)) {
1687
+ return expandToDecimal(numericString) === expandToDecimal(String(value));
1688
+ }
1689
+ const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1690
+ const canonical = String(value);
1691
+ if (normalized === canonical) {
1692
+ return true;
1693
+ }
1694
+ if (/[eE]/.test(canonical)) {
1695
+ return normalized === expandToDecimal(canonical);
1696
+ }
1697
+ return false;
1698
+ }
1699
+ function expandToDecimal(s) {
1700
+ const negative = s.startsWith("-");
1701
+ const abs = negative ? s.slice(1) : s;
1702
+ const eIndex = abs.search(/[eE]/);
1703
+ let result;
1704
+ if (eIndex === -1) {
1705
+ result = abs;
1706
+ } else {
1707
+ const exp = parseInt(abs.slice(eIndex + 1), 10);
1708
+ const mantissa = abs.slice(0, eIndex);
1709
+ const dotIndex = mantissa.indexOf(".");
1710
+ let digits;
1711
+ let intLen;
1712
+ if (dotIndex === -1) {
1713
+ digits = mantissa;
1714
+ intLen = mantissa.length;
1715
+ } else {
1716
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1717
+ intLen = dotIndex;
1718
+ }
1719
+ digits = digits.replace(/0+$/, "") || "0";
1720
+ const newDotPos = intLen + exp;
1721
+ if (digits === "0") {
1722
+ result = "0";
1723
+ } else if (newDotPos <= 0) {
1724
+ result = "0." + "0".repeat(-newDotPos) + digits;
1725
+ } else if (newDotPos >= digits.length) {
1726
+ result = digits + "0".repeat(newDotPos - digits.length);
1727
+ } else {
1728
+ result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
1729
+ }
1730
+ }
1731
+ if (result.includes(".")) {
1732
+ result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1733
+ }
1734
+ return (negative ? "-" : "") + result;
1735
+ }
1736
+ function expandExponentToBigInt(s) {
1737
+ const eIndex = s.search(/[eE]/);
1738
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1739
+ const negative = s.startsWith("-");
1740
+ const mantissa = s.slice(negative ? 1 : 0, eIndex);
1741
+ const dotIndex = mantissa.indexOf(".");
1742
+ let digits;
1743
+ let shift;
1744
+ if (dotIndex === -1) {
1745
+ digits = mantissa;
1746
+ shift = exp;
1747
+ } else {
1748
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1749
+ const fracDigits = mantissa.length - dotIndex - 1;
1750
+ shift = exp - fracDigits;
1751
+ }
1752
+ digits = digits.replace(/0+$/, "") || "0";
1753
+ const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
1754
+ return negative ? -result : result;
1755
+ }
1756
+
1757
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js
1758
+ var REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
1759
+ function needsReviver(schema) {
1760
+ const ns = NormalizedSchema.of(schema);
1761
+ const raw = ns.getSchema();
1762
+ if (Array.isArray(raw) && ns.isStructSchema()) {
1763
+ if (REVIVER_SYMBOL in raw) {
1764
+ return raw[REVIVER_SYMBOL];
1765
+ }
1766
+ const result = _check(ns, /* @__PURE__ */ new Set());
1767
+ raw[REVIVER_SYMBOL] = result;
1768
+ return result;
1769
+ }
1770
+ return _check(ns, /* @__PURE__ */ new Set());
1771
+ }
1772
+ function _check(ns, seen) {
1773
+ const raw = ns.getSchema();
1774
+ if (seen.has(raw)) {
1775
+ return false;
1776
+ }
1777
+ seen.add(raw);
1778
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1779
+ return true;
1780
+ }
1781
+ if (ns.isStructSchema()) {
1782
+ for (const [, memberSchema] of ns.structIterator()) {
1783
+ if (_check(memberSchema, seen)) {
1784
+ return true;
1785
+ }
1786
+ }
1787
+ } else if (ns.isListSchema() || ns.isMapSchema()) {
1788
+ if (_check(ns.getValueSchema(), seen)) {
1789
+ return true;
1790
+ }
1791
+ } else if (ns.isDocumentSchema()) {
1792
+ return true;
1793
+ }
1794
+ return false;
1795
+ }
1796
+
1797
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/common.js
1798
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
1799
+
1800
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js
1801
+ async function parseJsonBody(streamBody, context, schema) {
1802
+ let parsingInput;
1803
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
1804
+ const buffer = await collectBody(streamBody, context);
1805
+ if (typeof Buffer === "function") {
1806
+ if (Buffer.isBuffer(buffer)) {
1807
+ parsingInput = buffer;
1808
+ } else {
1809
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
1810
+ }
1811
+ }
1812
+ }
1813
+ if (!parsingInput) {
1814
+ parsingInput = await collectBodyString(streamBody, context);
1815
+ }
1816
+ if (parsingInput.length === 0) {
1817
+ return {};
1818
+ }
1819
+ const reviver = schema && needsReviver(schema) ? jsonReviver : void 0;
1820
+ try {
1821
+ return JSON.parse(parsingInput, reviver);
1822
+ } catch (e) {
1823
+ if (e?.name === "SyntaxError") {
1824
+ Object.defineProperty(e, "$responseBodyText", {
1825
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8")
1826
+ });
1827
+ }
1828
+ throw e;
1829
+ }
1830
+ }
1831
+ var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1832
+ var sanitizeErrorCode = (rawValue) => {
1833
+ let cleanValue = rawValue;
1834
+ if (typeof cleanValue === "number") {
1835
+ cleanValue = cleanValue.toString();
1836
+ }
1837
+ if (cleanValue.indexOf(",") >= 0) {
1838
+ cleanValue = cleanValue.split(",")[0];
1839
+ }
1840
+ if (cleanValue.indexOf(":") >= 0) {
1841
+ cleanValue = cleanValue.split(":")[0];
1842
+ }
1843
+ if (cleanValue.indexOf("#") >= 0) {
1844
+ cleanValue = cleanValue.split("#")[1];
1845
+ }
1846
+ return cleanValue;
1847
+ };
1848
+ var loadRestJsonErrorCode = (output, data) => {
1849
+ return loadErrorCode(output, data, ["header", "code", "type"]);
1850
+ };
1851
+ var loadErrorCode = ({ headers }, data, order) => {
1852
+ while (order.length > 0) {
1853
+ const location = order.shift();
1854
+ switch (location) {
1855
+ case "header":
1856
+ const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
1857
+ if (headerKey !== void 0) {
1858
+ return sanitizeErrorCode(headers[headerKey]);
1859
+ }
1860
+ break;
1861
+ case "code":
1862
+ const codeKey = findKey(data ?? {}, "code");
1863
+ if (codeKey && data[codeKey] !== void 0) {
1864
+ return sanitizeErrorCode(data[codeKey]);
1865
+ }
1866
+ break;
1867
+ case "type":
1868
+ if (data?.__type !== void 0) {
1869
+ return sanitizeErrorCode(data.__type);
1870
+ }
1871
+ break;
1872
+ }
1873
+ }
1874
+ };
1875
+
1876
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js
1877
+ var JsonShapeDeserializer2 = class extends SerdeContextConfig {
1878
+ settings;
1879
+ constructor(settings) {
1880
+ super();
1881
+ this.settings = settings;
1882
+ }
1883
+ async read(schema, data) {
1884
+ const reviver = needsReviver(schema) ? jsonReviver : void 0;
1885
+ let parsed;
1886
+ if (typeof data === "string") {
1887
+ if (data.length === 0) {
1888
+ return {};
1889
+ }
1890
+ parsed = JSON.parse(data, reviver);
1891
+ } else if (data instanceof Uint8Array && detectBufferParsing()) {
1892
+ if (data.byteLength === 0) {
1893
+ return {};
1894
+ }
1895
+ const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
1896
+ parsed = JSON.parse(buf, reviver);
1897
+ } else {
1898
+ parsed = await parseJsonBody(data, this.serdeContext, schema);
1899
+ }
1900
+ return this._read(schema, parsed);
1901
+ }
1902
+ readObject(schema, data) {
1903
+ return this._read(schema, data);
1904
+ }
1905
+ _read(schema, value) {
1906
+ const isObject = value !== null && typeof value === "object";
1907
+ const ns = NormalizedSchema.of(schema);
1908
+ if (isObject) {
1909
+ if (ns.isStructSchema()) {
1910
+ return this._readStruct(ns, value);
1911
+ }
1912
+ if (Array.isArray(value) && ns.isListSchema()) {
1913
+ const listMember = ns.getValueSchema();
1914
+ if (this.needsTransform(listMember)) {
1915
+ for (let i = 0; i < value.length; ++i) {
1916
+ value[i] = this._read(listMember, value[i]);
1917
+ }
1918
+ }
1919
+ return value;
1920
+ }
1921
+ if (ns.isMapSchema()) {
1922
+ const mapMember = ns.getValueSchema();
1923
+ const map = value;
1924
+ if (this.needsTransform(mapMember)) {
1925
+ for (const k in map) {
1926
+ if (!hasOwn(map, k)) {
1927
+ continue;
1928
+ }
1929
+ if (k === "__proto__") {
1930
+ writeKey(map);
1931
+ }
1932
+ map[k] = this._read(mapMember, map[k]);
1933
+ }
1934
+ }
1935
+ return map;
1936
+ }
1937
+ }
1938
+ if (ns.isBlobSchema() && typeof value === "string") {
1939
+ return fromBase64(value);
1940
+ }
1941
+ const mediaType = ns.getMergedTraits().mediaType;
1942
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
1943
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1944
+ if (isJson) {
1945
+ return LazyJsonString.from(value);
1946
+ }
1947
+ return value;
1948
+ }
1949
+ if (ns.isTimestampSchema() && value != null) {
1950
+ const format = determineTimestampFormat(ns, this.settings);
1951
+ switch (format) {
1952
+ case 5:
1953
+ return parseRfc3339DateTimeWithOffset(value);
1954
+ case 6:
1955
+ return parseRfc7231DateTime(value);
1956
+ case 7:
1957
+ return parseEpochTimestamp(value);
1958
+ default:
1959
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
1960
+ return new Date(value);
1961
+ }
1962
+ }
1963
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
1964
+ return BigInt(value);
1965
+ }
1966
+ if (ns.isBigDecimalSchema() && value != void 0) {
1967
+ if (value instanceof NumericValue) {
1968
+ return value;
1969
+ }
1970
+ const untyped = value;
1971
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
1972
+ return new NumericValue(untyped.string, untyped.type);
1973
+ }
1974
+ return new NumericValue(String(value), "bigDecimal");
1975
+ }
1976
+ if (ns.isNumericSchema() && typeof value === "string") {
1977
+ switch (value) {
1978
+ case "Infinity":
1979
+ return Infinity;
1980
+ case "-Infinity":
1981
+ return -Infinity;
1982
+ case "NaN":
1983
+ return NaN;
1984
+ }
1985
+ return value;
1986
+ }
1987
+ if (ns.isDocumentSchema()) {
1988
+ if (isObject) {
1989
+ if (Array.isArray(value)) {
1990
+ for (let i = 0; i < value.length; ++i) {
1991
+ const v = value[i];
1992
+ if (!(v instanceof NumericValue)) {
1993
+ value[i] = this._read(ns, v);
1994
+ }
1995
+ }
1996
+ } else {
1997
+ const doc = value;
1998
+ for (const k in doc) {
1999
+ if (!hasOwn(doc, k)) {
2000
+ continue;
2001
+ }
2002
+ if (k === "__proto__") {
2003
+ writeKey(doc);
2004
+ }
2005
+ const v = doc[k];
2006
+ if (!(v instanceof NumericValue)) {
2007
+ doc[k] = this._read(ns, v);
2008
+ }
2009
+ }
2010
+ }
2011
+ }
2012
+ }
2013
+ return value;
2014
+ }
2015
+ _readStruct(ns, record) {
2016
+ const union = ns.isUnionSchema();
2017
+ const out = {};
2018
+ let nameMap;
2019
+ const hasType = typeof record.__type === "string";
2020
+ const { jsonName } = this.settings;
2021
+ if (jsonName && hasType) {
2022
+ nameMap = {};
2023
+ }
2024
+ let unionSerde;
2025
+ if (union) {
2026
+ unionSerde = new UnionSerde(record, out);
2027
+ }
2028
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2029
+ let fromKey = memberName;
2030
+ if (jsonName) {
2031
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
2032
+ if (hasType) {
2033
+ nameMap[fromKey] = memberName;
2034
+ }
2035
+ }
2036
+ if (union) {
2037
+ unionSerde.mark(fromKey);
2038
+ }
2039
+ if (record[fromKey] != null) {
2040
+ out[memberName] = this._read(memberSchema, record[fromKey]);
2041
+ }
2042
+ }
2043
+ if (union) {
2044
+ unionSerde.writeUnknown();
2045
+ } else if (hasType) {
2046
+ for (const k in record) {
2047
+ if (!hasOwn(record, k)) {
2048
+ continue;
2049
+ }
2050
+ const v = record[k];
2051
+ const t = jsonName ? nameMap[k] ?? k : k;
2052
+ if (!(t in out)) {
2053
+ out[t] = v;
2054
+ }
2055
+ }
2056
+ }
2057
+ return out;
2058
+ }
2059
+ needsTransform(ns) {
2060
+ if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema() || ns.isNumericSchema()) {
2061
+ return true;
2062
+ }
2063
+ if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
2064
+ return true;
2065
+ }
2066
+ if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
2067
+ return true;
2068
+ }
2069
+ return false;
2070
+ }
2071
+ };
2072
+
2073
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js
2074
+ var JsonBytesStringAdapter = class _JsonBytesStringAdapter extends Uint8Array {
2075
+ string = null;
2076
+ static allocUnsafe(bytes) {
2077
+ if (typeof Buffer === "function") {
2078
+ const buffer = Buffer.allocUnsafe(bytes);
2079
+ return new _JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
2080
+ }
2081
+ return new _JsonBytesStringAdapter(bytes);
2082
+ }
2083
+ toString() {
2084
+ return this.s();
2085
+ }
2086
+ valueOf() {
2087
+ return this.s();
2088
+ }
2089
+ includes(searchString, position) {
2090
+ if (typeof searchString === "string") {
2091
+ return this.s().includes(searchString, position);
2092
+ }
2093
+ return Uint8Array.prototype.includes.call(this, searchString, position);
2094
+ }
2095
+ indexOf(searchString, position) {
2096
+ if (typeof searchString === "string") {
2097
+ return this.s().indexOf(searchString, position);
2098
+ }
2099
+ return Uint8Array.prototype.indexOf.call(this, searchString, position);
2100
+ }
2101
+ lastIndexOf(searchString, position) {
2102
+ if (typeof searchString === "string") {
2103
+ return this.s().lastIndexOf(searchString, position);
2104
+ }
2105
+ const fn = Uint8Array.prototype.lastIndexOf;
2106
+ if (position !== void 0) {
2107
+ return fn.call(this, searchString, position);
2108
+ }
2109
+ return fn.call(this, searchString);
2110
+ }
2111
+ startsWith(searchString, position) {
2112
+ return this.s().startsWith(searchString, position);
2113
+ }
2114
+ endsWith(searchString, endPosition) {
2115
+ return this.s().endsWith(searchString, endPosition);
2116
+ }
2117
+ match(regexp) {
2118
+ return this.s().match(regexp);
2119
+ }
2120
+ replace(searchValue, replaceValue) {
2121
+ return this.s().replace(searchValue, replaceValue);
2122
+ }
2123
+ search(regexp) {
2124
+ return this.s().search(regexp);
2125
+ }
2126
+ split(separator, limit) {
2127
+ return this.s().split(separator, limit);
2128
+ }
2129
+ substring(start, end) {
2130
+ return this.s().substring(start, end);
2131
+ }
2132
+ trim() {
2133
+ return this.s().trim();
2134
+ }
2135
+ trimStart() {
2136
+ return this.s().trimStart();
2137
+ }
2138
+ trimEnd() {
2139
+ return this.s().trimEnd();
2140
+ }
2141
+ charAt(pos) {
2142
+ return this.s().charAt(pos);
2143
+ }
2144
+ charCodeAt(index) {
2145
+ return this.s().charCodeAt(index);
2146
+ }
2147
+ padStart(maxLength, fillString) {
2148
+ return this.s().padStart(maxLength, fillString);
2149
+ }
2150
+ padEnd(maxLength, fillString) {
2151
+ return this.s().padEnd(maxLength, fillString);
2152
+ }
2153
+ repeat(count) {
2154
+ return this.s().repeat(count);
2155
+ }
2156
+ toUpperCase() {
2157
+ return this.s().toUpperCase();
2158
+ }
2159
+ toLowerCase() {
2160
+ return this.s().toLowerCase();
2161
+ }
2162
+ s() {
2163
+ if (this.string == null) {
2164
+ const n = Date.now();
2165
+ if (n > warned + 6e4) {
2166
+ 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.");
2167
+ warned = n;
2168
+ }
2169
+ this.string = toUtf8(this);
2170
+ }
2171
+ return this.string;
2172
+ }
2173
+ };
2174
+ var warned = 0;
2175
+
2176
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js
2177
+ var encoder = new TextEncoder();
2178
+ var OPEN_BRACE = 123;
2179
+ var CLOSE_BRACE = 125;
2180
+ var OPEN_BRACKET = 91;
2181
+ var CLOSE_BRACKET = 93;
2182
+ var QUOTE = 34;
2183
+ var COLON = 58;
2184
+ var COMMA = 44;
2185
+ var BACKSLASH = 92;
2186
+ var TRUE = new Uint8Array([116, 114, 117, 101]);
2187
+ var FALSE = new Uint8Array([102, 97, 108, 115, 101]);
2188
+ var NULL = new Uint8Array([110, 117, 108, 108]);
2189
+ var ESCAPE_TABLE = new Array(128).fill(null);
2190
+ ESCAPE_TABLE[8] = "b";
2191
+ ESCAPE_TABLE[9] = "t";
2192
+ ESCAPE_TABLE[10] = "n";
2193
+ ESCAPE_TABLE[12] = "f";
2194
+ ESCAPE_TABLE[13] = "r";
2195
+ ESCAPE_TABLE[34] = '"';
2196
+ ESCAPE_TABLE[92] = "\\";
2197
+ for (let i = 0; i < 32; i++) {
2198
+ if (ESCAPE_TABLE[i] === null) {
2199
+ ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
2200
+ }
2201
+ }
2202
+ var INITIAL_BUFFER_SIZE = 2048;
2203
+ function alloc(size) {
2204
+ return JsonBytesStringAdapter.allocUnsafe(size);
2205
+ }
2206
+ var JsonShapeSerializer2 = class _JsonShapeSerializer2 extends SerdeContextConfig {
2207
+ settings;
2208
+ json;
2209
+ i = 0;
2210
+ rootSchema;
2211
+ rawValue;
2212
+ passthrough = false;
2213
+ constructor(settings) {
2214
+ super();
2215
+ this.settings = settings;
2216
+ this.json = alloc(INITIAL_BUFFER_SIZE);
2217
+ }
2218
+ write(schema, value) {
2219
+ this.i = 0;
2220
+ this.rawValue = value;
2221
+ this.rootSchema = NormalizedSchema.of(schema);
2222
+ this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
2223
+ if (!this.passthrough) {
2224
+ this.writeValue(this.rootSchema, value, void 0);
2225
+ }
2226
+ }
2227
+ writeDiscriminatedDocument(schema, value) {
2228
+ this.i = 0;
2229
+ this.rootSchema = NormalizedSchema.of(schema);
2230
+ const ns = this.rootSchema;
2231
+ if (ns.isStructSchema() && value != null && typeof value === "object") {
2232
+ this.writeValue(ns, value, void 0);
2233
+ const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
2234
+ const z = prefix.length;
2235
+ this.ensure(z);
2236
+ this.json.copyWithin(1 + z, 1, this.i);
2237
+ encoder.encodeInto(prefix, this.json.subarray(1));
2238
+ this.i += z;
2239
+ } else {
2240
+ this.writeValue(ns, value, void 0);
2241
+ }
2242
+ }
2243
+ flush() {
2244
+ this.rootSchema = void 0;
2245
+ const finalPosition = this.i;
2246
+ this.i = 0;
2247
+ const raw = this.rawValue;
2248
+ this.rawValue = void 0;
2249
+ if (finalPosition === 0) {
2250
+ return raw;
2251
+ }
2252
+ const result = this.json.subarray(0, finalPosition);
2253
+ this.json = alloc(INITIAL_BUFFER_SIZE);
2254
+ return result;
2255
+ }
2256
+ ensure(byteCount) {
2257
+ const { i, json } = this;
2258
+ if (i + byteCount > json.length) {
2259
+ let newSize = json.length * 2;
2260
+ while (newSize < i + byteCount) {
2261
+ newSize *= 2;
2262
+ }
2263
+ const next = alloc(newSize);
2264
+ next.set(this.json);
2265
+ this.json = next;
2266
+ }
2267
+ }
2268
+ writeAscii(s) {
2269
+ const z = s.length;
2270
+ this.ensure(z);
2271
+ let { i, json } = this;
2272
+ for (let j = 0; j < z; ++j) {
2273
+ json[i] = s.charCodeAt(j);
2274
+ i += 1;
2275
+ }
2276
+ this.i = i;
2277
+ }
2278
+ writeAsciiQuoted(s) {
2279
+ const z = s.length;
2280
+ this.ensure(z + 4);
2281
+ let { json, i } = this;
2282
+ json[i++] = QUOTE;
2283
+ for (let j = 0; j < z; ++j) {
2284
+ json[i++] = s.charCodeAt(j);
2285
+ }
2286
+ json[i++] = QUOTE;
2287
+ this.i = i;
2288
+ }
2289
+ writeJsonString(s) {
2290
+ const z = s.length;
2291
+ this.ensure(z * 3 + 2);
2292
+ this.json[this.i++] = QUOTE;
2293
+ for (let j = 0; j < z; ++j) {
2294
+ const c = s.charCodeAt(j);
2295
+ if (c > 34 && c < 92) {
2296
+ this.json[this.i++] = c;
2297
+ } else if (c < 128) {
2298
+ const esc = ESCAPE_TABLE[c];
2299
+ if (esc !== null) {
2300
+ this.ensure(esc.length + 1 + (z - j - 1) * 3 + 1);
2301
+ this.json[this.i++] = BACKSLASH;
2302
+ for (let k = 0; k < esc.length; k++) {
2303
+ this.json[this.i++] = esc.charCodeAt(k);
2304
+ }
2305
+ } else {
2306
+ this.json[this.i++] = c;
2307
+ }
2308
+ } else if (c >= 55296 && c <= 56319) {
2309
+ const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
2310
+ if (next >= 56320 && next <= 57343) {
2311
+ this.ensure(4);
2312
+ const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
2313
+ this.i += written;
2314
+ ++j;
2315
+ } else {
2316
+ this.ensure(6 + (z - j - 1) * 3 + 1);
2317
+ this.writeUnicodeEscape(c);
2318
+ }
2319
+ } else if (c >= 56320 && c <= 57343) {
2320
+ this.ensure(6 + (z - j - 1) * 3 + 1);
2321
+ this.writeUnicodeEscape(c);
2322
+ } else {
2323
+ let { i, json } = this;
2324
+ if (c < 2048) {
2325
+ json[i++] = 192 | c >> 6;
2326
+ json[i++] = 128 | c & 63;
2327
+ } else {
2328
+ json[i++] = 224 | c >> 12;
2329
+ json[i++] = 128 | c >> 6 & 63;
2330
+ json[i++] = 128 | c & 63;
2331
+ }
2332
+ this.i = i;
2333
+ }
2334
+ }
2335
+ this.json[this.i++] = QUOTE;
2336
+ }
2337
+ writeUnicodeEscape(code) {
2338
+ let { json, i } = this;
2339
+ json[i++] = BACKSLASH;
2340
+ json[i++] = 117;
2341
+ const hex = code.toString(16).padStart(4, "0");
2342
+ for (let j = 0; j < 4; ++j) {
2343
+ json[i++] = hex.charCodeAt(j);
2344
+ }
2345
+ this.i = i;
2346
+ }
2347
+ static B64 = (() => {
2348
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2349
+ const table = new Uint8Array(64);
2350
+ for (let i = 0; i < 64; ++i) {
2351
+ table[i] = chars.charCodeAt(i);
2352
+ }
2353
+ return table;
2354
+ })();
2355
+ writeBase64(data) {
2356
+ const b64Len = Math.ceil(data.length / 3) * 4;
2357
+ this.ensure(b64Len + 2);
2358
+ const json = this.json;
2359
+ const B64 = _JsonShapeSerializer2.B64;
2360
+ let i = this.i;
2361
+ json[i++] = QUOTE;
2362
+ const len = data.length;
2363
+ const remainder = len % 3;
2364
+ const mainLen = len - remainder;
2365
+ for (let j = 0; j < mainLen; j += 3) {
2366
+ const a = data[j];
2367
+ const b = data[j + 1];
2368
+ const c = data[j + 2];
2369
+ json[i++] = B64[a >> 2];
2370
+ json[i++] = B64[(a & 3) << 4 | b >> 4];
2371
+ json[i++] = B64[(b & 15) << 2 | c >> 6];
2372
+ json[i++] = B64[c & 63];
2373
+ }
2374
+ if (remainder === 2) {
2375
+ const a = data[mainLen];
2376
+ const b = data[mainLen + 1];
2377
+ json[i++] = B64[a >> 2];
2378
+ json[i++] = B64[(a & 3) << 4 | b >> 4];
2379
+ json[i++] = B64[(b & 15) << 2];
2380
+ json[i++] = 61;
2381
+ } else if (remainder === 1) {
2382
+ const a = data[mainLen];
2383
+ json[i++] = B64[a >> 2];
2384
+ json[i++] = B64[(a & 3) << 4];
2385
+ json[i++] = 61;
2386
+ json[i++] = 61;
2387
+ }
2388
+ json[i++] = QUOTE;
2389
+ this.i = i;
2390
+ }
2391
+ writeValue(schema, value, container) {
2392
+ if (value == null) {
2393
+ if (container?.isStructSchema()) {
2394
+ if (value === void 0) {
2395
+ const ns2 = NormalizedSchema.of(schema);
2396
+ if (ns2.isIdempotencyToken()) {
2397
+ this.writeAsciiQuoted(generateIdempotencyToken());
2398
+ return;
2399
+ }
2400
+ }
2401
+ return;
2402
+ }
2403
+ this.ensure(4);
2404
+ this.json.set(NULL, this.i);
2405
+ this.i += 4;
2406
+ return;
2407
+ }
2408
+ const ns = NormalizedSchema.of(schema);
2409
+ const isObject = typeof value === "object";
2410
+ if (ns.isStringSchema()) {
2411
+ const mediaType = ns.getMergedTraits().mediaType;
2412
+ if (mediaType) {
2413
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
2414
+ if (isJson) {
2415
+ this.writeJsonString(LazyJsonString.from(value).toString());
2416
+ return;
2417
+ }
2418
+ }
2419
+ }
2420
+ if (this.settings.bigNumberAsString && value != null && (ns.isBigIntegerSchema() || ns.isBigDecimalSchema())) {
2421
+ const asString = value instanceof NumericValue ? value.string : String(value);
2422
+ this.writeAsciiQuoted(asString);
2423
+ return;
2424
+ }
2425
+ if (isObject) {
2426
+ if (ns.isStructSchema()) {
2427
+ this.writeStruct(ns, value);
2428
+ return;
2429
+ }
2430
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
2431
+ this.writeList(ns, value, ns.isDocumentSchema());
2432
+ return;
2433
+ }
2434
+ if (ns.isMapSchema()) {
2435
+ this.writeMap(ns, value, false);
2436
+ return;
2437
+ }
2438
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
2439
+ this.writeBase64(value);
2440
+ return;
2441
+ }
2442
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
2443
+ this.writeTimestamp(ns, value);
2444
+ return;
2445
+ }
2446
+ if (value instanceof NumericValue) {
2447
+ this.writeAscii(value.string);
2448
+ return;
2449
+ }
2450
+ if (ns.isDocumentSchema()) {
2451
+ if (Array.isArray(value)) {
2452
+ this.writeList(ns, value, true);
2453
+ } else {
2454
+ this.writeMap(ns, value, true);
2455
+ }
2456
+ return;
2457
+ }
2458
+ const json = JSON.stringify(value);
2459
+ this.writeAscii(json);
2460
+ return;
2461
+ }
2462
+ if (typeof value === "string") {
2463
+ if (ns.isBlobSchema()) {
2464
+ const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
2465
+ this.writeAsciiQuoted(b64);
2466
+ return;
2467
+ }
2468
+ this.writeJsonString(value);
2469
+ return;
2470
+ }
2471
+ if (typeof value === "number") {
2472
+ if (Math.abs(value) === Infinity || Number.isNaN(value)) {
2473
+ this.writeAsciiQuoted(String(value));
2474
+ return;
2475
+ }
2476
+ const numStr = String(value);
2477
+ this.writeAscii(numStr);
2478
+ return;
2479
+ }
2480
+ if (typeof value === "boolean") {
2481
+ this.ensure(5);
2482
+ let { i, json } = this;
2483
+ if (value) {
2484
+ json.set(TRUE, i);
2485
+ i += 4;
2486
+ } else {
2487
+ json.set(FALSE, i);
2488
+ i += 5;
2489
+ }
2490
+ this.i = i;
2491
+ return;
2492
+ }
2493
+ if (typeof value === "bigint") {
2494
+ this.writeAscii(value.toString());
2495
+ return;
2496
+ }
2497
+ this.writeAscii(String(value));
2498
+ }
2499
+ writeStruct(ns, value) {
2500
+ this.ensure(2);
2501
+ this.json[this.i++] = OPEN_BRACE;
2502
+ let wroteAny = false;
2503
+ const hasType = typeof value.__type === "string";
2504
+ let writtenKeys;
2505
+ if (hasType) {
2506
+ writtenKeys = /* @__PURE__ */ new Set();
2507
+ }
2508
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2509
+ const item = value[memberName];
2510
+ if (item == null && !memberSchema.isIdempotencyToken()) {
2511
+ continue;
2512
+ }
2513
+ if (wroteAny) {
2514
+ this.ensure(1);
2515
+ this.json[this.i++] = COMMA;
2516
+ }
2517
+ wroteAny = true;
2518
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
2519
+ if (writtenKeys) {
2520
+ writtenKeys.add(memberName);
2521
+ writtenKeys.add(targetKey);
2522
+ }
2523
+ this.writeAsciiQuoted(targetKey);
2524
+ this.json[this.i++] = COLON;
2525
+ this.writeValue(memberSchema, item, ns);
2526
+ }
2527
+ if (!wroteAny && ns.isUnionSchema()) {
2528
+ const { $unknown } = value;
2529
+ if (Array.isArray($unknown)) {
2530
+ const [k, v] = $unknown;
2531
+ this.writeAsciiQuoted(k);
2532
+ this.ensure(1);
2533
+ this.json[this.i++] = COLON;
2534
+ this.writeValue(15, v, ns);
2535
+ }
2536
+ } else if (hasType) {
2537
+ for (const k in value) {
2538
+ if (writtenKeys.has(k)) {
2539
+ continue;
2540
+ }
2541
+ writtenKeys.add(k);
2542
+ const v = value[k];
2543
+ if (wroteAny) {
2544
+ this.ensure(1);
2545
+ this.json[this.i++] = COMMA;
2546
+ }
2547
+ wroteAny = true;
2548
+ this.writeAsciiQuoted(k);
2549
+ this.ensure(1);
2550
+ this.json[this.i++] = COLON;
2551
+ this.writeValue(15, v, void 0);
2552
+ }
2553
+ }
2554
+ this.ensure(1);
2555
+ this.json[this.i++] = CLOSE_BRACE;
2556
+ }
2557
+ writeList(ns, value, isDocument) {
2558
+ const sparse = !!ns.getMergedTraits().sparse;
2559
+ const valueSchema = ns.getValueSchema();
2560
+ if (!isDocument) {
2561
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2562
+ let hasSpecials = false;
2563
+ for (let i = 0; i < value.length; ++i) {
2564
+ const v = value[i];
2565
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity || v == null && !sparse) {
2566
+ hasSpecials = true;
2567
+ break;
2568
+ }
2569
+ }
2570
+ let json;
2571
+ if (!hasSpecials) {
2572
+ json = JSON.stringify(value);
2573
+ } else {
2574
+ const out = [];
2575
+ for (let i = 0; i < value.length; ++i) {
2576
+ const v = value[i];
2577
+ if (v == null && !sparse) {
2578
+ continue;
2579
+ }
2580
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2581
+ out.push(String(v));
2582
+ } else {
2583
+ out.push(v);
2584
+ }
2585
+ }
2586
+ json = JSON.stringify(out);
2587
+ }
2588
+ this.ensure(json.length * 3);
2589
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
2590
+ return;
2591
+ }
2592
+ }
2593
+ this.ensure(2);
2594
+ this.json[this.i++] = OPEN_BRACKET;
2595
+ let wroteFirstItem = false;
2596
+ for (let i = 0; i < value.length; ++i) {
2597
+ const item = value[i];
2598
+ if (isDocument ? item === void 0 : item == null && !sparse) {
2599
+ continue;
2600
+ }
2601
+ if (wroteFirstItem) {
2602
+ this.ensure(1);
2603
+ this.json[this.i++] = COMMA;
2604
+ }
2605
+ this.writeValue(valueSchema, item, void 0);
2606
+ wroteFirstItem = true;
2607
+ }
2608
+ this.ensure(1);
2609
+ this.json[this.i++] = CLOSE_BRACKET;
2610
+ }
2611
+ writeMap(ns, value, isDocument) {
2612
+ const sparse = !!ns.getMergedTraits().sparse;
2613
+ const valueSchema = ns.getValueSchema();
2614
+ if (!isDocument) {
2615
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2616
+ let modifications;
2617
+ for (const k in value) {
2618
+ if (!hasOwn(value, k)) {
2619
+ continue;
2620
+ }
2621
+ const v = value[k];
2622
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2623
+ (modifications ??= {})[k] = v;
2624
+ value[k] = String(v);
2625
+ } else if (v === null && !sparse) {
2626
+ (modifications ??= {})[k] = null;
2627
+ value[k] = void 0;
2628
+ }
2629
+ }
2630
+ const json = JSON.stringify(value);
2631
+ if (modifications) {
2632
+ Object.assign(value, modifications);
2633
+ }
2634
+ this.ensure(json.length * 3);
2635
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
2636
+ return;
2637
+ }
2638
+ }
2639
+ this.ensure(2);
2640
+ this.json[this.i++] = OPEN_BRACE;
2641
+ let first = true;
2642
+ for (const k in value) {
2643
+ if (!hasOwn(value, k)) {
2644
+ continue;
2645
+ }
2646
+ const v = value[k];
2647
+ if (isDocument ? v === void 0 : v == null && !sparse) {
2648
+ continue;
2649
+ }
2650
+ if (!first) {
2651
+ this.ensure(1);
2652
+ this.json[this.i++] = COMMA;
2653
+ }
2654
+ first = false;
2655
+ this.writeJsonString(k);
2656
+ this.ensure(1);
2657
+ this.json[this.i++] = COLON;
2658
+ this.writeValue(valueSchema, v, void 0);
2659
+ }
2660
+ this.ensure(1);
2661
+ this.json[this.i++] = CLOSE_BRACE;
2662
+ }
2663
+ writeTimestamp(ns, value) {
2664
+ const format = determineTimestampFormat(ns, this.settings);
2665
+ switch (format) {
2666
+ case 5: {
2667
+ const iso = value.toISOString().replace(".000Z", "Z");
2668
+ this.writeAsciiQuoted(iso);
2669
+ return;
2670
+ }
2671
+ case 6: {
2672
+ this.writeAsciiQuoted(dateToUtcString(value));
2673
+ return;
2674
+ }
2675
+ case 7: {
2676
+ const epochSecs = String(value.getTime() / 1e3);
2677
+ this.writeAscii(epochSecs);
2678
+ return;
2679
+ }
2680
+ default: {
2681
+ const epochSecs = String(value.getTime() / 1e3);
2682
+ this.writeAscii(epochSecs);
2683
+ return;
2684
+ }
2685
+ }
2686
+ }
2687
+ };
2688
+
2689
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js
2690
+ var JsonCodec2 = class extends SerdeContextConfig {
2691
+ settings;
2692
+ constructor(settings) {
2693
+ super();
2694
+ this.settings = settings;
2695
+ }
2696
+ createSerializer() {
2697
+ const serializer = new JsonShapeSerializer2(this.settings);
2698
+ serializer.setSerdeContext(this.serdeContext);
2699
+ return serializer;
2700
+ }
2701
+ createDeserializer() {
2702
+ const deserializer = new JsonShapeDeserializer2(this.settings);
2703
+ deserializer.setSerdeContext(this.serdeContext);
2704
+ return deserializer;
2705
+ }
2706
+ };
2707
+
1573
2708
  export {
1574
2709
  ProviderError,
1575
2710
  CredentialsProviderError,
1576
- TokenProviderError,
1577
2711
  chain,
1578
2712
  booleanSelector,
1579
2713
  SelectorType,
1580
2714
  ENV_PROFILE,
1581
2715
  getProfileName,
1582
- getSSOTokenFilepath,
1583
2716
  getSSOTokenFromFile,
1584
2717
  CONFIG_PREFIX_SEPARATOR,
1585
2718
  loadSsoSessionData,
@@ -1604,5 +2737,7 @@ export {
1604
2737
  resolveHttpHandlerRuntimeConfig,
1605
2738
  getContentLengthPlugin,
1606
2739
  escapeUri,
1607
- buildQueryString
2740
+ buildQueryString,
2741
+ loadRestJsonErrorCode,
2742
+ JsonCodec2
1608
2743
  };