@junando/core 0.11.0 → 0.11.1

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/index.d.ts +729 -1928
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +1866 -10363
  4. package/dist/index.js.map +1 -0
  5. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  6. package/dist/shared/metrics/index.d.ts +29 -0
  7. package/dist/shared/metrics/index.d.ts.map +1 -0
  8. package/dist/shared/metrics/index.js +131 -0
  9. package/dist/shared/metrics/index.js.map +1 -0
  10. package/package.json +11 -11
  11. package/dist/chunk-3OJNTHWB.js +0 -225
  12. package/dist/chunk-5LNMHOUT.js +0 -229
  13. package/dist/chunk-72FU6SG6.js +0 -236
  14. package/dist/chunk-7SYJ764U.js +0 -579
  15. package/dist/chunk-AZU6S4RC.js +0 -11
  16. package/dist/chunk-BGPI5BQ5.js +0 -27
  17. package/dist/chunk-DKQSWD3S.js +0 -46
  18. package/dist/chunk-H4ND7Z4R.js +0 -504
  19. package/dist/chunk-HVICRLMN.js +0 -742
  20. package/dist/chunk-ID7PWYSN.js +0 -12
  21. package/dist/chunk-KU245W3C.js +0 -16
  22. package/dist/chunk-L67CO4EG.js +0 -1038
  23. package/dist/chunk-MLKGABMK.js +0 -9
  24. package/dist/chunk-MQ4JUE6V.js +0 -447
  25. package/dist/chunk-N5AJP37P.js +0 -385
  26. package/dist/chunk-SIDCDO4Q.js +0 -1315
  27. package/dist/chunk-TDZF3WAT.js +0 -3824
  28. package/dist/chunk-VMBT3R2K.js +0 -0
  29. package/dist/chunk-WWHXKECU.js +0 -100
  30. package/dist/chunk-ZKH7AMP3.js +0 -42
  31. package/dist/chunk-ZOU3QHNL.js +0 -28
  32. package/dist/dist-es-CBFEDVZZ.js +0 -493
  33. package/dist/dist-es-ROXOWRKX.js +0 -22
  34. package/dist/dist-es-S3QCFNII.js +0 -327
  35. package/dist/dist-es-SQCUDQ4Y.js +0 -90
  36. package/dist/dist-es-UWOSB3KA.js +0 -72
  37. package/dist/dist-es-VXERFT35.js +0 -172
  38. package/dist/dist-es-Y44CAW7E.js +0 -385
  39. package/dist/event-streams-2IMLK3TK.js +0 -252
  40. package/dist/event-streams-NLZW3NHF.js +0 -1376
  41. package/dist/loadSso-T6VCDGCZ.js +0 -558
  42. package/dist/signin-BC6ZNJCV.js +0 -653
  43. package/dist/sso-oidc-PTS5E3NX.js +0 -793
  44. package/dist/sts-JSJ57UXB.js +0 -6108
@@ -1,9 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- export {
8
- __export
9
- };
@@ -1,447 +0,0 @@
1
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js
2
- var expectNumber = (value) => {
3
- if (value === null || value === void 0) {
4
- return void 0;
5
- }
6
- if (typeof value === "string") {
7
- const parsed = parseFloat(value);
8
- if (!Number.isNaN(parsed)) {
9
- if (String(parsed) !== String(value)) {
10
- logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
11
- }
12
- return parsed;
13
- }
14
- }
15
- if (typeof value === "number") {
16
- return value;
17
- }
18
- throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
19
- };
20
- var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
21
- var expectFloat32 = (value) => {
22
- const expected = expectNumber(value);
23
- if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
24
- if (Math.abs(expected) > MAX_FLOAT) {
25
- throw new TypeError(`Expected 32-bit float, got ${value}`);
26
- }
27
- }
28
- return expected;
29
- };
30
- var expectLong = (value) => {
31
- if (value === null || value === void 0) {
32
- return void 0;
33
- }
34
- if (Number.isInteger(value) && !Number.isNaN(value)) {
35
- return value;
36
- }
37
- throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
38
- };
39
- var expectShort = (value) => expectSizedInt(value, 16);
40
- var expectByte = (value) => expectSizedInt(value, 8);
41
- var expectSizedInt = (value, size) => {
42
- const expected = expectLong(value);
43
- if (expected !== void 0 && castInt(expected, size) !== expected) {
44
- throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
45
- }
46
- return expected;
47
- };
48
- var castInt = (value, size) => {
49
- switch (size) {
50
- case 32:
51
- return Int32Array.of(value)[0];
52
- case 16:
53
- return Int16Array.of(value)[0];
54
- case 8:
55
- return Int8Array.of(value)[0];
56
- }
57
- };
58
- var strictParseFloat32 = (value) => {
59
- if (typeof value == "string") {
60
- return expectFloat32(parseNumber(value));
61
- }
62
- return expectFloat32(value);
63
- };
64
- var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
65
- var parseNumber = (value) => {
66
- const matches = value.match(NUMBER_REGEX);
67
- if (matches === null || matches[0].length !== value.length) {
68
- throw new TypeError(`Expected real number, got implicit NaN`);
69
- }
70
- return parseFloat(value);
71
- };
72
- var strictParseShort = (value) => {
73
- if (typeof value === "string") {
74
- return expectShort(parseNumber(value));
75
- }
76
- return expectShort(value);
77
- };
78
- var strictParseByte = (value) => {
79
- if (typeof value === "string") {
80
- return expectByte(parseNumber(value));
81
- }
82
- return expectByte(value);
83
- };
84
- var stackTraceWarning = (message) => {
85
- return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
86
- };
87
- var logger = {
88
- warn: console.warn
89
- };
90
-
91
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js
92
- var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
93
- var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
94
- function dateToUtcString(date) {
95
- const year = date.getUTCFullYear();
96
- const month = date.getUTCMonth();
97
- const dayOfWeek = date.getUTCDay();
98
- const dayOfMonthInt = date.getUTCDate();
99
- const hoursInt = date.getUTCHours();
100
- const minutesInt = date.getUTCMinutes();
101
- const secondsInt = date.getUTCSeconds();
102
- const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
103
- const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
104
- const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
105
- const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
106
- return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
107
- }
108
- var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
109
- var parseRfc3339DateTime = (value) => {
110
- if (value === null || value === void 0) {
111
- return void 0;
112
- }
113
- if (typeof value !== "string") {
114
- throw new TypeError("RFC-3339 date-times must be expressed as strings");
115
- }
116
- const match = RFC3339.exec(value);
117
- if (!match) {
118
- throw new TypeError("Invalid RFC-3339 date-time value");
119
- }
120
- const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;
121
- const year = strictParseShort(stripLeadingZeroes(yearStr));
122
- const month = parseDateValue(monthStr, "month", 1, 12);
123
- const day = parseDateValue(dayStr, "day", 1, 31);
124
- return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
125
- };
126
- var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);
127
- var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
128
- var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
129
- var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);
130
- var parseRfc7231DateTime = (value) => {
131
- if (value === null || value === void 0) {
132
- return void 0;
133
- }
134
- if (typeof value !== "string") {
135
- throw new TypeError("RFC-7231 date-times must be expressed as strings");
136
- }
137
- let match = IMF_FIXDATE.exec(value);
138
- if (match) {
139
- const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
140
- return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
141
- }
142
- match = RFC_850_DATE.exec(value);
143
- if (match) {
144
- const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
145
- return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
146
- hours,
147
- minutes,
148
- seconds,
149
- fractionalMilliseconds
150
- }));
151
- }
152
- match = ASC_TIME.exec(value);
153
- if (match) {
154
- const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
155
- return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
156
- }
157
- throw new TypeError("Invalid RFC-7231 date-time value");
158
- };
159
- var buildDate = (year, month, day, time) => {
160
- const adjustedMonth = month - 1;
161
- validateDayOfMonth(year, adjustedMonth, day);
162
- return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds)));
163
- };
164
- var parseTwoDigitYear = (value) => {
165
- const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
166
- const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
167
- if (valueInThisCentury < thisYear) {
168
- return valueInThisCentury + 100;
169
- }
170
- return valueInThisCentury;
171
- };
172
- var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
173
- var adjustRfc850Year = (input) => {
174
- if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
175
- return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
176
- }
177
- return input;
178
- };
179
- var parseMonthByShortName = (value) => {
180
- const monthIdx = MONTHS.indexOf(value);
181
- if (monthIdx < 0) {
182
- throw new TypeError(`Invalid month: ${value}`);
183
- }
184
- return monthIdx + 1;
185
- };
186
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
187
- var validateDayOfMonth = (year, month, day) => {
188
- let maxDays = DAYS_IN_MONTH[month];
189
- if (month === 1 && isLeapYear(year)) {
190
- maxDays = 29;
191
- }
192
- if (day > maxDays) {
193
- throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
194
- }
195
- };
196
- var isLeapYear = (year) => {
197
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
198
- };
199
- var parseDateValue = (value, type, lower, upper) => {
200
- const dateVal = strictParseByte(stripLeadingZeroes(value));
201
- if (dateVal < lower || dateVal > upper) {
202
- throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
203
- }
204
- return dateVal;
205
- };
206
- var parseMilliseconds = (value) => {
207
- if (value === null || value === void 0) {
208
- return 0;
209
- }
210
- return strictParseFloat32("0." + value) * 1e3;
211
- };
212
- var stripLeadingZeroes = (value) => {
213
- let idx = 0;
214
- while (idx < value.length - 1 && value.charAt(idx) === "0") {
215
- idx++;
216
- }
217
- if (idx === 0) {
218
- return value;
219
- }
220
- return value.slice(idx);
221
- };
222
-
223
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js
224
- var SHORT_TO_HEX = {};
225
- var HEX_TO_SHORT = {};
226
- for (let i = 0; i < 256; i++) {
227
- let encodedByte = i.toString(16).toLowerCase();
228
- if (encodedByte.length === 1) {
229
- encodedByte = `0${encodedByte}`;
230
- }
231
- SHORT_TO_HEX[i] = encodedByte;
232
- HEX_TO_SHORT[encodedByte] = i;
233
- }
234
- function fromHex(encoded) {
235
- if (encoded.length % 2 !== 0) {
236
- throw new Error("Hex encoded strings must have an even number length");
237
- }
238
- const out = new Uint8Array(encoded.length / 2);
239
- for (let i = 0; i < encoded.length; i += 2) {
240
- const encodedByte = encoded.slice(i, i + 2).toLowerCase();
241
- if (encodedByte in HEX_TO_SHORT) {
242
- out[i / 2] = HEX_TO_SHORT[encodedByte];
243
- } else {
244
- throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
245
- }
246
- }
247
- return out;
248
- }
249
- function toHex(bytes) {
250
- let out = "";
251
- for (let i = 0; i < bytes.byteLength; i++) {
252
- out += SHORT_TO_HEX[bytes[i]];
253
- }
254
- return out;
255
- }
256
-
257
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js
258
- var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
259
-
260
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js
261
- var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
262
- if (!isArrayBuffer(input)) {
263
- throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
264
- }
265
- return Buffer.from(input, offset, length);
266
- };
267
- var fromString = (input, encoding) => {
268
- if (typeof input !== "string") {
269
- throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
270
- }
271
- return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
272
- };
273
-
274
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.js
275
- var fromUtf8 = (input) => {
276
- const buf = fromString(input, "utf8");
277
- return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
278
- };
279
-
280
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.js
281
- var toUtf8 = (input) => {
282
- if (typeof input === "string") {
283
- return input;
284
- }
285
- if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
286
- throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
287
- }
288
- return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
289
- };
290
-
291
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/index.js
292
- import { getRandomValues } from "crypto";
293
-
294
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js
295
- var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
296
- function bindV4(getRandomValues2) {
297
- if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
298
- return () => crypto.randomUUID();
299
- }
300
- return () => {
301
- const rnds = new Uint8Array(16);
302
- getRandomValues2(rnds);
303
- rnds[6] = rnds[6] & 15 | 64;
304
- rnds[8] = rnds[8] & 63 | 128;
305
- return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
306
- };
307
- }
308
-
309
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.js
310
- var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
311
- var fromBase64 = (input) => {
312
- if (input.length * 3 % 4 !== 0) {
313
- throw new TypeError(`Incorrect padding on base64 string.`);
314
- }
315
- if (!BASE64_REGEX.exec(input)) {
316
- throw new TypeError(`Invalid base64 string.`);
317
- }
318
- const buffer = fromString(input, "base64");
319
- return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
320
- };
321
-
322
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.js
323
- var toBase64 = (_input) => {
324
- let input;
325
- if (typeof _input === "string") {
326
- input = fromUtf8(_input);
327
- } else {
328
- input = _input;
329
- }
330
- if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
331
- throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
332
- }
333
- return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64");
334
- };
335
-
336
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.js
337
- import { ReadStream, fstatSync, lstatSync } from "fs";
338
- var calculateBodyLength = (body) => {
339
- if (!body) {
340
- return 0;
341
- }
342
- if (typeof body === "string") {
343
- return Buffer.byteLength(body);
344
- } else if (typeof body.byteLength === "number") {
345
- return body.byteLength;
346
- } else if (typeof body.size === "number") {
347
- return body.size;
348
- } else if (typeof body.start === "number" && typeof body.end === "number") {
349
- return body.end + 1 - body.start;
350
- } else if (body instanceof ReadStream) {
351
- if (body.path != null) {
352
- return lstatSync(body.path).size;
353
- } else if (typeof body.fd === "number") {
354
- return fstatSync(body.fd).size;
355
- }
356
- }
357
- throw new Error(`Body Length computation failed for ${body}`);
358
- };
359
-
360
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js
361
- var toUint8Array = (data) => {
362
- if (typeof data === "string") {
363
- return fromUtf8(data);
364
- }
365
- if (ArrayBuffer.isView(data)) {
366
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
367
- }
368
- return new Uint8Array(data);
369
- };
370
-
371
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js
372
- import { createHash, createHmac } from "crypto";
373
- var Hash = class {
374
- algorithmIdentifier;
375
- secret;
376
- hash;
377
- constructor(algorithmIdentifier, secret) {
378
- this.algorithmIdentifier = algorithmIdentifier;
379
- this.secret = secret;
380
- this.reset();
381
- }
382
- update(toHash, encoding) {
383
- this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
384
- }
385
- digest() {
386
- return Promise.resolve(this.hash.digest());
387
- }
388
- reset() {
389
- this.hash = this.secret ? createHmac(this.algorithmIdentifier, castSourceData(this.secret)) : createHash(this.algorithmIdentifier);
390
- }
391
- };
392
- function castSourceData(toCast, encoding) {
393
- if (Buffer.isBuffer(toCast)) {
394
- return toCast;
395
- }
396
- if (typeof toCast === "string") {
397
- return fromString(toCast, encoding);
398
- }
399
- if (ArrayBuffer.isView(toCast)) {
400
- return fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength);
401
- }
402
- return fromArrayBuffer(toCast);
403
- }
404
-
405
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js
406
- var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
407
- static fromString(source, encoding = "utf-8") {
408
- if (typeof source === "string") {
409
- if (encoding === "base64") {
410
- return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
411
- }
412
- return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
413
- }
414
- throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
415
- }
416
- static mutate(source) {
417
- Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
418
- return source;
419
- }
420
- transformToString(encoding = "utf-8") {
421
- if (encoding === "base64") {
422
- return toBase64(this);
423
- }
424
- return toUtf8(this);
425
- }
426
- };
427
-
428
- // ../../node_modules/.pnpm/@smithy+core@3.24.1/node_modules/@smithy/core/dist-es/submodules/serde/index.js
429
- var _getRandomValues = getRandomValues;
430
- var v4 = bindV4(_getRandomValues);
431
-
432
- export {
433
- dateToUtcString,
434
- parseRfc3339DateTime,
435
- parseRfc7231DateTime,
436
- fromHex,
437
- toHex,
438
- fromBase64,
439
- fromUtf8,
440
- toBase64,
441
- calculateBodyLength,
442
- toUint8Array,
443
- toUtf8,
444
- Hash,
445
- Uint8ArrayBlobAdapter,
446
- v4
447
- };