@awsesh/core 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1185 -1169
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,22 +4,38 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
16
32
|
return to;
|
|
17
33
|
};
|
|
18
34
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
19
35
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
20
36
|
|
|
21
|
-
// ../../node_modules
|
|
22
|
-
var require_dist_cjs = __commonJS((exports)
|
|
37
|
+
// ../../node_modules/@smithy/types/dist-cjs/index.js
|
|
38
|
+
var require_dist_cjs = __commonJS(function(exports) {
|
|
23
39
|
exports.HttpAuthLocation = undefined;
|
|
24
40
|
(function(HttpAuthLocation) {
|
|
25
41
|
HttpAuthLocation["HEADER"] = "header";
|
|
@@ -102,8 +118,8 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
102
118
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
103
119
|
});
|
|
104
120
|
|
|
105
|
-
// ../../node_modules
|
|
106
|
-
var require_dist_cjs2 = __commonJS((exports)
|
|
121
|
+
// ../../node_modules/@smithy/protocol-http/dist-cjs/index.js
|
|
122
|
+
var require_dist_cjs2 = __commonJS(function(exports) {
|
|
107
123
|
var types = require_dist_cjs();
|
|
108
124
|
var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
109
125
|
return {
|
|
@@ -261,8 +277,8 @@ var require_dist_cjs2 = __commonJS((exports) => {
|
|
|
261
277
|
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
|
262
278
|
});
|
|
263
279
|
|
|
264
|
-
// ../../node_modules
|
|
265
|
-
var require_dist_cjs3 = __commonJS((exports)
|
|
280
|
+
// ../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
|
|
281
|
+
var require_dist_cjs3 = __commonJS(function(exports) {
|
|
266
282
|
var protocolHttp = require_dist_cjs2();
|
|
267
283
|
function resolveHostHeaderConfig(input) {
|
|
268
284
|
return input;
|
|
@@ -301,8 +317,8 @@ var require_dist_cjs3 = __commonJS((exports) => {
|
|
|
301
317
|
exports.resolveHostHeaderConfig = resolveHostHeaderConfig;
|
|
302
318
|
});
|
|
303
319
|
|
|
304
|
-
// ../../node_modules
|
|
305
|
-
var require_dist_cjs4 = __commonJS((exports)
|
|
320
|
+
// ../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
|
|
321
|
+
var require_dist_cjs4 = __commonJS(function(exports) {
|
|
306
322
|
var loggerMiddleware = () => (next, context) => async (args) => {
|
|
307
323
|
try {
|
|
308
324
|
const response = await next(args);
|
|
@@ -349,8 +365,8 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
349
365
|
exports.loggerMiddlewareOptions = loggerMiddlewareOptions;
|
|
350
366
|
});
|
|
351
367
|
|
|
352
|
-
// ../../node_modules
|
|
353
|
-
var require_invoke_store = __commonJS((exports)
|
|
368
|
+
// ../../node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
|
|
369
|
+
var require_invoke_store = __commonJS(function(exports) {
|
|
354
370
|
var async_hooks = __require("async_hooks");
|
|
355
371
|
var noGlobalAwsLambda = process.env["AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA"] === "1" || process.env["AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA"] === "true";
|
|
356
372
|
if (!noGlobalAwsLambda) {
|
|
@@ -413,8 +429,8 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
413
429
|
exports.InvokeStore = InvokeStore;
|
|
414
430
|
});
|
|
415
431
|
|
|
416
|
-
// ../../node_modules
|
|
417
|
-
var require_recursionDetectionMiddleware = __commonJS((exports)
|
|
432
|
+
// ../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js
|
|
433
|
+
var require_recursionDetectionMiddleware = __commonJS(function(exports) {
|
|
418
434
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
419
435
|
exports.recursionDetectionMiddleware = undefined;
|
|
420
436
|
var lambda_invoke_store_1 = require_invoke_store();
|
|
@@ -447,8 +463,8 @@ var require_recursionDetectionMiddleware = __commonJS((exports) => {
|
|
|
447
463
|
exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
|
448
464
|
});
|
|
449
465
|
|
|
450
|
-
// ../../node_modules
|
|
451
|
-
var require_dist_cjs5 = __commonJS((exports)
|
|
466
|
+
// ../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
|
|
467
|
+
var require_dist_cjs5 = __commonJS(function(exports) {
|
|
452
468
|
var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
|
|
453
469
|
var recursionDetectionMiddlewareOptions = {
|
|
454
470
|
step: "build",
|
|
@@ -474,8 +490,8 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
474
490
|
});
|
|
475
491
|
});
|
|
476
492
|
|
|
477
|
-
// ../../node_modules
|
|
478
|
-
var require_dist_cjs6 = __commonJS((exports)
|
|
493
|
+
// ../../node_modules/@smithy/util-middleware/dist-cjs/index.js
|
|
494
|
+
var require_dist_cjs6 = __commonJS(function(exports) {
|
|
479
495
|
var types = require_dist_cjs();
|
|
480
496
|
var getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
|
|
481
497
|
var normalizeProvider = (input) => {
|
|
@@ -488,8 +504,8 @@ var require_dist_cjs6 = __commonJS((exports) => {
|
|
|
488
504
|
exports.normalizeProvider = normalizeProvider;
|
|
489
505
|
});
|
|
490
506
|
|
|
491
|
-
// ../../node_modules
|
|
492
|
-
var require_dist_cjs7 = __commonJS((exports)
|
|
507
|
+
// ../../node_modules/@smithy/middleware-serde/dist-cjs/index.js
|
|
508
|
+
var require_dist_cjs7 = __commonJS(function(exports) {
|
|
493
509
|
var protocolHttp = require_dist_cjs2();
|
|
494
510
|
var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
|
|
495
511
|
const { response } = await next(args);
|
|
@@ -580,14 +596,14 @@ var require_dist_cjs7 = __commonJS((exports) => {
|
|
|
580
596
|
exports.serializerMiddlewareOption = serializerMiddlewareOption;
|
|
581
597
|
});
|
|
582
598
|
|
|
583
|
-
// ../../node_modules
|
|
584
|
-
var require_dist_cjs8 = __commonJS((exports)
|
|
599
|
+
// ../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js
|
|
600
|
+
var require_dist_cjs8 = __commonJS(function(exports) {
|
|
585
601
|
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
586
602
|
exports.isArrayBuffer = isArrayBuffer;
|
|
587
603
|
});
|
|
588
604
|
|
|
589
|
-
// ../../node_modules
|
|
590
|
-
var require_dist_cjs9 = __commonJS((exports)
|
|
605
|
+
// ../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js
|
|
606
|
+
var require_dist_cjs9 = __commonJS(function(exports) {
|
|
591
607
|
var isArrayBuffer = require_dist_cjs8();
|
|
592
608
|
var buffer = __require("buffer");
|
|
593
609
|
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
@@ -606,8 +622,8 @@ var require_dist_cjs9 = __commonJS((exports) => {
|
|
|
606
622
|
exports.fromString = fromString;
|
|
607
623
|
});
|
|
608
624
|
|
|
609
|
-
// ../../node_modules
|
|
610
|
-
var require_fromBase64 = __commonJS((exports)
|
|
625
|
+
// ../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js
|
|
626
|
+
var require_fromBase64 = __commonJS(function(exports) {
|
|
611
627
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
612
628
|
exports.fromBase64 = undefined;
|
|
613
629
|
var util_buffer_from_1 = require_dist_cjs9();
|
|
@@ -625,8 +641,8 @@ var require_fromBase64 = __commonJS((exports) => {
|
|
|
625
641
|
exports.fromBase64 = fromBase64;
|
|
626
642
|
});
|
|
627
643
|
|
|
628
|
-
// ../../node_modules
|
|
629
|
-
var require_dist_cjs10 = __commonJS((exports)
|
|
644
|
+
// ../../node_modules/@smithy/util-utf8/dist-cjs/index.js
|
|
645
|
+
var require_dist_cjs10 = __commonJS(function(exports) {
|
|
630
646
|
var utilBufferFrom = require_dist_cjs9();
|
|
631
647
|
var fromUtf8 = (input) => {
|
|
632
648
|
const buf = utilBufferFrom.fromString(input, "utf8");
|
|
@@ -655,8 +671,8 @@ var require_dist_cjs10 = __commonJS((exports) => {
|
|
|
655
671
|
exports.toUtf8 = toUtf8;
|
|
656
672
|
});
|
|
657
673
|
|
|
658
|
-
// ../../node_modules
|
|
659
|
-
var require_toBase64 = __commonJS((exports)
|
|
674
|
+
// ../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js
|
|
675
|
+
var require_toBase64 = __commonJS(function(exports) {
|
|
660
676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
661
677
|
exports.toBase64 = undefined;
|
|
662
678
|
var util_buffer_from_1 = require_dist_cjs9();
|
|
@@ -676,8 +692,8 @@ var require_toBase64 = __commonJS((exports) => {
|
|
|
676
692
|
exports.toBase64 = toBase64;
|
|
677
693
|
});
|
|
678
694
|
|
|
679
|
-
// ../../node_modules
|
|
680
|
-
var require_dist_cjs11 = __commonJS((exports)
|
|
695
|
+
// ../../node_modules/@smithy/util-base64/dist-cjs/index.js
|
|
696
|
+
var require_dist_cjs11 = __commonJS(function(exports) {
|
|
681
697
|
var fromBase64 = require_fromBase64();
|
|
682
698
|
var toBase64 = require_toBase64();
|
|
683
699
|
Object.keys(fromBase64).forEach(function(k) {
|
|
@@ -700,8 +716,8 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
700
716
|
});
|
|
701
717
|
});
|
|
702
718
|
|
|
703
|
-
// ../../node_modules
|
|
704
|
-
var require_ChecksumStream = __commonJS((exports)
|
|
719
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js
|
|
720
|
+
var require_ChecksumStream = __commonJS(function(exports) {
|
|
705
721
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
706
722
|
exports.ChecksumStream = undefined;
|
|
707
723
|
var util_base64_1 = require_dist_cjs11();
|
|
@@ -753,8 +769,8 @@ var require_ChecksumStream = __commonJS((exports) => {
|
|
|
753
769
|
exports.ChecksumStream = ChecksumStream;
|
|
754
770
|
});
|
|
755
771
|
|
|
756
|
-
// ../../node_modules
|
|
757
|
-
var require_stream_type_check = __commonJS((exports)
|
|
772
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js
|
|
773
|
+
var require_stream_type_check = __commonJS(function(exports) {
|
|
758
774
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
759
775
|
exports.isBlob = exports.isReadableStream = undefined;
|
|
760
776
|
var isReadableStream = (stream) => typeof ReadableStream === "function" && (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
|
|
@@ -765,8 +781,8 @@ var require_stream_type_check = __commonJS((exports) => {
|
|
|
765
781
|
exports.isBlob = isBlob;
|
|
766
782
|
});
|
|
767
783
|
|
|
768
|
-
// ../../node_modules
|
|
769
|
-
var require_ChecksumStream_browser = __commonJS((exports)
|
|
784
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js
|
|
785
|
+
var require_ChecksumStream_browser = __commonJS(function(exports) {
|
|
770
786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
771
787
|
exports.ChecksumStream = undefined;
|
|
772
788
|
var ReadableStreamRef = typeof ReadableStream === "function" ? ReadableStream : function() {};
|
|
@@ -776,8 +792,8 @@ var require_ChecksumStream_browser = __commonJS((exports) => {
|
|
|
776
792
|
exports.ChecksumStream = ChecksumStream;
|
|
777
793
|
});
|
|
778
794
|
|
|
779
|
-
// ../../node_modules
|
|
780
|
-
var require_createChecksumStream_browser = __commonJS((exports)
|
|
795
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js
|
|
796
|
+
var require_createChecksumStream_browser = __commonJS(function(exports) {
|
|
781
797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
782
798
|
exports.createChecksumStream = undefined;
|
|
783
799
|
var util_base64_1 = require_dist_cjs11();
|
|
@@ -816,8 +832,8 @@ var require_createChecksumStream_browser = __commonJS((exports) => {
|
|
|
816
832
|
exports.createChecksumStream = createChecksumStream;
|
|
817
833
|
});
|
|
818
834
|
|
|
819
|
-
// ../../node_modules
|
|
820
|
-
var require_createChecksumStream = __commonJS((exports)
|
|
835
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js
|
|
836
|
+
var require_createChecksumStream = __commonJS(function(exports) {
|
|
821
837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
822
838
|
exports.createChecksumStream = createChecksumStream;
|
|
823
839
|
var stream_type_check_1 = require_stream_type_check();
|
|
@@ -831,8 +847,8 @@ var require_createChecksumStream = __commonJS((exports) => {
|
|
|
831
847
|
}
|
|
832
848
|
});
|
|
833
849
|
|
|
834
|
-
// ../../node_modules
|
|
835
|
-
var require_ByteArrayCollector = __commonJS((exports)
|
|
850
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js
|
|
851
|
+
var require_ByteArrayCollector = __commonJS(function(exports) {
|
|
836
852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
837
853
|
exports.ByteArrayCollector = undefined;
|
|
838
854
|
|
|
@@ -871,8 +887,8 @@ var require_ByteArrayCollector = __commonJS((exports) => {
|
|
|
871
887
|
exports.ByteArrayCollector = ByteArrayCollector;
|
|
872
888
|
});
|
|
873
889
|
|
|
874
|
-
// ../../node_modules
|
|
875
|
-
var require_createBufferedReadableStream = __commonJS((exports)
|
|
890
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js
|
|
891
|
+
var require_createBufferedReadableStream = __commonJS(function(exports) {
|
|
876
892
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
877
893
|
exports.createBufferedReadable = undefined;
|
|
878
894
|
exports.createBufferedReadableStream = createBufferedReadableStream;
|
|
@@ -885,7 +901,7 @@ var require_createBufferedReadableStream = __commonJS((exports) => {
|
|
|
885
901
|
const reader = upstream.getReader();
|
|
886
902
|
let streamBufferingLoggedWarning = false;
|
|
887
903
|
let bytesSeen = 0;
|
|
888
|
-
const buffers = ["", new ByteArrayCollector_1.ByteArrayCollector((
|
|
904
|
+
const buffers = ["", new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size))];
|
|
889
905
|
let mode = -1;
|
|
890
906
|
const pull = async (controller) => {
|
|
891
907
|
const { value, done } = await reader.read();
|
|
@@ -974,8 +990,8 @@ var require_createBufferedReadableStream = __commonJS((exports) => {
|
|
|
974
990
|
}
|
|
975
991
|
});
|
|
976
992
|
|
|
977
|
-
// ../../node_modules
|
|
978
|
-
var require_createBufferedReadable = __commonJS((exports)
|
|
993
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js
|
|
994
|
+
var require_createBufferedReadable = __commonJS(function(exports) {
|
|
979
995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
980
996
|
exports.createBufferedReadable = createBufferedReadable;
|
|
981
997
|
var node_stream_1 = __require("node:stream");
|
|
@@ -991,8 +1007,8 @@ var require_createBufferedReadable = __commonJS((exports) => {
|
|
|
991
1007
|
let bytesSeen = 0;
|
|
992
1008
|
const buffers = [
|
|
993
1009
|
"",
|
|
994
|
-
new ByteArrayCollector_1.ByteArrayCollector((
|
|
995
|
-
new ByteArrayCollector_1.ByteArrayCollector((
|
|
1010
|
+
new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size)),
|
|
1011
|
+
new ByteArrayCollector_1.ByteArrayCollector((size) => Buffer.from(new Uint8Array(size)))
|
|
996
1012
|
];
|
|
997
1013
|
let mode = -1;
|
|
998
1014
|
upstream.on("data", (chunk) => {
|
|
@@ -1036,8 +1052,8 @@ var require_createBufferedReadable = __commonJS((exports) => {
|
|
|
1036
1052
|
}
|
|
1037
1053
|
});
|
|
1038
1054
|
|
|
1039
|
-
// ../../node_modules
|
|
1040
|
-
var require_getAwsChunkedEncodingStream = __commonJS((exports)
|
|
1055
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
|
|
1056
|
+
var require_getAwsChunkedEncodingStream = __commonJS(function(exports) {
|
|
1041
1057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1042
1058
|
exports.getAwsChunkedEncodingStream = undefined;
|
|
1043
1059
|
var stream_1 = __require("stream");
|
|
@@ -1071,8 +1087,8 @@ var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
|
|
|
1071
1087
|
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
1072
1088
|
});
|
|
1073
1089
|
|
|
1074
|
-
// ../../node_modules
|
|
1075
|
-
var require_headStream_browser = __commonJS((exports)
|
|
1090
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
|
|
1091
|
+
var require_headStream_browser = __commonJS(function(exports) {
|
|
1076
1092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1077
1093
|
exports.headStream = headStream;
|
|
1078
1094
|
async function headStream(stream, bytes) {
|
|
@@ -1107,8 +1123,8 @@ var require_headStream_browser = __commonJS((exports) => {
|
|
|
1107
1123
|
}
|
|
1108
1124
|
});
|
|
1109
1125
|
|
|
1110
|
-
// ../../node_modules
|
|
1111
|
-
var require_headStream = __commonJS((exports)
|
|
1126
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/headStream.js
|
|
1127
|
+
var require_headStream = __commonJS(function(exports) {
|
|
1112
1128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1113
1129
|
exports.headStream = undefined;
|
|
1114
1130
|
var stream_1 = __require("stream");
|
|
@@ -1128,8 +1144,8 @@ var require_headStream = __commonJS((exports) => {
|
|
|
1128
1144
|
});
|
|
1129
1145
|
collector.on("error", reject);
|
|
1130
1146
|
collector.on("finish", function() {
|
|
1131
|
-
const
|
|
1132
|
-
resolve(
|
|
1147
|
+
const bytes = new Uint8Array(Buffer.concat(this.buffers));
|
|
1148
|
+
resolve(bytes);
|
|
1133
1149
|
});
|
|
1134
1150
|
});
|
|
1135
1151
|
};
|
|
@@ -1153,8 +1169,8 @@ var require_headStream = __commonJS((exports) => {
|
|
|
1153
1169
|
}
|
|
1154
1170
|
});
|
|
1155
1171
|
|
|
1156
|
-
// ../../node_modules
|
|
1157
|
-
var require_dist_cjs12 = __commonJS((exports)
|
|
1172
|
+
// ../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js
|
|
1173
|
+
var require_dist_cjs12 = __commonJS(function(exports) {
|
|
1158
1174
|
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
1159
1175
|
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1160
1176
|
var escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
|
@@ -1162,8 +1178,8 @@ var require_dist_cjs12 = __commonJS((exports) => {
|
|
|
1162
1178
|
exports.escapeUriPath = escapeUriPath;
|
|
1163
1179
|
});
|
|
1164
1180
|
|
|
1165
|
-
// ../../node_modules
|
|
1166
|
-
var require_dist_cjs13 = __commonJS((exports)
|
|
1181
|
+
// ../../node_modules/@smithy/querystring-builder/dist-cjs/index.js
|
|
1182
|
+
var require_dist_cjs13 = __commonJS(function(exports) {
|
|
1167
1183
|
var utilUriEscape = require_dist_cjs12();
|
|
1168
1184
|
function buildQueryString(query) {
|
|
1169
1185
|
const parts = [];
|
|
@@ -1187,8 +1203,8 @@ var require_dist_cjs13 = __commonJS((exports) => {
|
|
|
1187
1203
|
exports.buildQueryString = buildQueryString;
|
|
1188
1204
|
});
|
|
1189
1205
|
|
|
1190
|
-
// ../../node_modules
|
|
1191
|
-
var require_dist_cjs14 = __commonJS((exports)
|
|
1206
|
+
// ../../node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
1207
|
+
var require_dist_cjs14 = __commonJS(function(exports) {
|
|
1192
1208
|
var protocolHttp = require_dist_cjs2();
|
|
1193
1209
|
var querystringBuilder = require_dist_cjs13();
|
|
1194
1210
|
var http = __require("http");
|
|
@@ -1844,14 +1860,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1844
1860
|
callback();
|
|
1845
1861
|
}
|
|
1846
1862
|
}
|
|
1847
|
-
var streamCollector = (
|
|
1848
|
-
if (isReadableStreamInstance(
|
|
1849
|
-
return collectReadableStream(
|
|
1863
|
+
var streamCollector = (stream) => {
|
|
1864
|
+
if (isReadableStreamInstance(stream)) {
|
|
1865
|
+
return collectReadableStream(stream);
|
|
1850
1866
|
}
|
|
1851
1867
|
return new Promise((resolve, reject) => {
|
|
1852
1868
|
const collector = new Collector;
|
|
1853
|
-
|
|
1854
|
-
|
|
1869
|
+
stream.pipe(collector);
|
|
1870
|
+
stream.on("error", (err) => {
|
|
1855
1871
|
collector.end();
|
|
1856
1872
|
reject(err);
|
|
1857
1873
|
});
|
|
@@ -1862,10 +1878,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1862
1878
|
});
|
|
1863
1879
|
});
|
|
1864
1880
|
};
|
|
1865
|
-
var isReadableStreamInstance = (
|
|
1866
|
-
async function collectReadableStream(
|
|
1881
|
+
var isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
|
|
1882
|
+
async function collectReadableStream(stream) {
|
|
1867
1883
|
const chunks = [];
|
|
1868
|
-
const reader =
|
|
1884
|
+
const reader = stream.getReader();
|
|
1869
1885
|
let isDone = false;
|
|
1870
1886
|
let length = 0;
|
|
1871
1887
|
while (!isDone) {
|
|
@@ -1890,8 +1906,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1890
1906
|
exports.streamCollector = streamCollector;
|
|
1891
1907
|
});
|
|
1892
1908
|
|
|
1893
|
-
// ../../node_modules
|
|
1894
|
-
var require_dist_cjs15 = __commonJS((exports)
|
|
1909
|
+
// ../../node_modules/@smithy/fetch-http-handler/dist-cjs/index.js
|
|
1910
|
+
var require_dist_cjs15 = __commonJS(function(exports) {
|
|
1895
1911
|
var protocolHttp = require_dist_cjs2();
|
|
1896
1912
|
var querystringBuilder = require_dist_cjs13();
|
|
1897
1913
|
var utilBase64 = require_dist_cjs11();
|
|
@@ -1995,12 +2011,12 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
1995
2011
|
}
|
|
1996
2012
|
const hasReadableStream = response.body != null;
|
|
1997
2013
|
if (!hasReadableStream) {
|
|
1998
|
-
return response.blob().then((
|
|
2014
|
+
return response.blob().then((body) => ({
|
|
1999
2015
|
response: new protocolHttp.HttpResponse({
|
|
2000
2016
|
headers: transformedHeaders,
|
|
2001
2017
|
reason: response.statusText,
|
|
2002
2018
|
statusCode: response.status,
|
|
2003
|
-
body
|
|
2019
|
+
body
|
|
2004
2020
|
})
|
|
2005
2021
|
}));
|
|
2006
2022
|
}
|
|
@@ -2101,8 +2117,8 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
2101
2117
|
exports.streamCollector = streamCollector;
|
|
2102
2118
|
});
|
|
2103
2119
|
|
|
2104
|
-
// ../../node_modules
|
|
2105
|
-
var require_dist_cjs16 = __commonJS((exports)
|
|
2120
|
+
// ../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js
|
|
2121
|
+
var require_dist_cjs16 = __commonJS(function(exports) {
|
|
2106
2122
|
var SHORT_TO_HEX = {};
|
|
2107
2123
|
var HEX_TO_SHORT = {};
|
|
2108
2124
|
for (let i = 0;i < 256; i++) {
|
|
@@ -2139,8 +2155,8 @@ var require_dist_cjs16 = __commonJS((exports) => {
|
|
|
2139
2155
|
exports.toHex = toHex;
|
|
2140
2156
|
});
|
|
2141
2157
|
|
|
2142
|
-
// ../../node_modules
|
|
2143
|
-
var require_sdk_stream_mixin_browser = __commonJS((exports)
|
|
2158
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js
|
|
2159
|
+
var require_sdk_stream_mixin_browser = __commonJS(function(exports) {
|
|
2144
2160
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2145
2161
|
exports.sdkStreamMixin = undefined;
|
|
2146
2162
|
var fetch_http_handler_1 = require_dist_cjs15();
|
|
@@ -2204,8 +2220,8 @@ var require_sdk_stream_mixin_browser = __commonJS((exports) => {
|
|
|
2204
2220
|
var isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
|
|
2205
2221
|
});
|
|
2206
2222
|
|
|
2207
|
-
// ../../node_modules
|
|
2208
|
-
var require_sdk_stream_mixin = __commonJS((exports)
|
|
2223
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
|
|
2224
|
+
var require_sdk_stream_mixin = __commonJS(function(exports) {
|
|
2209
2225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2210
2226
|
exports.sdkStreamMixin = undefined;
|
|
2211
2227
|
var node_http_handler_1 = require_dist_cjs14();
|
|
@@ -2259,8 +2275,8 @@ var require_sdk_stream_mixin = __commonJS((exports) => {
|
|
|
2259
2275
|
exports.sdkStreamMixin = sdkStreamMixin;
|
|
2260
2276
|
});
|
|
2261
2277
|
|
|
2262
|
-
// ../../node_modules
|
|
2263
|
-
var require_splitStream_browser = __commonJS((exports)
|
|
2278
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js
|
|
2279
|
+
var require_splitStream_browser = __commonJS(function(exports) {
|
|
2264
2280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2265
2281
|
exports.splitStream = splitStream;
|
|
2266
2282
|
async function splitStream(stream) {
|
|
@@ -2272,8 +2288,8 @@ var require_splitStream_browser = __commonJS((exports) => {
|
|
|
2272
2288
|
}
|
|
2273
2289
|
});
|
|
2274
2290
|
|
|
2275
|
-
// ../../node_modules
|
|
2276
|
-
var require_splitStream = __commonJS((exports)
|
|
2291
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/splitStream.js
|
|
2292
|
+
var require_splitStream = __commonJS(function(exports) {
|
|
2277
2293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2278
2294
|
exports.splitStream = splitStream;
|
|
2279
2295
|
var stream_1 = __require("stream");
|
|
@@ -2291,8 +2307,8 @@ var require_splitStream = __commonJS((exports) => {
|
|
|
2291
2307
|
}
|
|
2292
2308
|
});
|
|
2293
2309
|
|
|
2294
|
-
// ../../node_modules
|
|
2295
|
-
var require_dist_cjs17 = __commonJS((exports)
|
|
2310
|
+
// ../../node_modules/@smithy/util-stream/dist-cjs/index.js
|
|
2311
|
+
var require_dist_cjs17 = __commonJS(function(exports) {
|
|
2296
2312
|
var utilBase64 = require_dist_cjs11();
|
|
2297
2313
|
var utilUtf8 = require_dist_cjs10();
|
|
2298
2314
|
var ChecksumStream = require_ChecksumStream();
|
|
@@ -2400,8 +2416,8 @@ var require_dist_cjs17 = __commonJS((exports) => {
|
|
|
2400
2416
|
});
|
|
2401
2417
|
});
|
|
2402
2418
|
|
|
2403
|
-
// ../../node_modules
|
|
2404
|
-
var require_schema = __commonJS((exports)
|
|
2419
|
+
// ../../node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
2420
|
+
var require_schema = __commonJS(function(exports) {
|
|
2405
2421
|
var protocolHttp = require_dist_cjs2();
|
|
2406
2422
|
var utilMiddleware = require_dist_cjs6();
|
|
2407
2423
|
var deref = (schemaRef) => {
|
|
@@ -2430,14 +2446,14 @@ var require_schema = __commonJS((exports) => {
|
|
|
2430
2446
|
response,
|
|
2431
2447
|
output: parsed
|
|
2432
2448
|
};
|
|
2433
|
-
} catch (
|
|
2434
|
-
Object.defineProperty(
|
|
2449
|
+
} catch (error) {
|
|
2450
|
+
Object.defineProperty(error, "$response", {
|
|
2435
2451
|
value: response
|
|
2436
2452
|
});
|
|
2437
|
-
if (!("$metadata" in
|
|
2453
|
+
if (!("$metadata" in error)) {
|
|
2438
2454
|
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
2439
2455
|
try {
|
|
2440
|
-
|
|
2456
|
+
error.message += `
|
|
2441
2457
|
` + hint;
|
|
2442
2458
|
} catch (e) {
|
|
2443
2459
|
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
|
@@ -2446,16 +2462,16 @@ var require_schema = __commonJS((exports) => {
|
|
|
2446
2462
|
context.logger?.warn?.(hint);
|
|
2447
2463
|
}
|
|
2448
2464
|
}
|
|
2449
|
-
if (typeof
|
|
2450
|
-
if (
|
|
2451
|
-
|
|
2465
|
+
if (typeof error.$responseBodyText !== "undefined") {
|
|
2466
|
+
if (error.$response) {
|
|
2467
|
+
error.$response.body = error.$responseBodyText;
|
|
2452
2468
|
}
|
|
2453
2469
|
}
|
|
2454
2470
|
try {
|
|
2455
2471
|
if (protocolHttp.HttpResponse.isInstance(response)) {
|
|
2456
2472
|
const { headers = {} } = response;
|
|
2457
2473
|
const headerEntries = Object.entries(headers);
|
|
2458
|
-
|
|
2474
|
+
error.$metadata = {
|
|
2459
2475
|
httpStatusCode: response.statusCode,
|
|
2460
2476
|
requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
|
|
2461
2477
|
extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
|
|
@@ -2464,7 +2480,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2464
2480
|
}
|
|
2465
2481
|
} catch (e) {}
|
|
2466
2482
|
}
|
|
2467
|
-
throw
|
|
2483
|
+
throw error;
|
|
2468
2484
|
}
|
|
2469
2485
|
};
|
|
2470
2486
|
var findHeader = (pattern, headers) => {
|
|
@@ -2519,8 +2535,8 @@ var require_schema = __commonJS((exports) => {
|
|
|
2519
2535
|
static [Symbol.hasInstance](lhs) {
|
|
2520
2536
|
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
2521
2537
|
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
2522
|
-
const
|
|
2523
|
-
return
|
|
2538
|
+
const list = lhs;
|
|
2539
|
+
return list.symbol === this.symbol;
|
|
2524
2540
|
}
|
|
2525
2541
|
return isPrototype;
|
|
2526
2542
|
}
|
|
@@ -2767,7 +2783,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2767
2783
|
return !!streaming || this.getSchema() === 42;
|
|
2768
2784
|
}
|
|
2769
2785
|
isIdempotencyToken() {
|
|
2770
|
-
const match = (
|
|
2786
|
+
const match = (traits) => (traits & 4) === 4 || !!traits?.idempotencyToken;
|
|
2771
2787
|
const { normalizedTraits, traits, memberTraits } = this;
|
|
2772
2788
|
return match(normalizedTraits) || match(traits) || match(memberTraits);
|
|
2773
2789
|
}
|
|
@@ -2802,10 +2818,10 @@ var require_schema = __commonJS((exports) => {
|
|
|
2802
2818
|
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
|
|
2803
2819
|
}
|
|
2804
2820
|
getMemberSchema(memberName) {
|
|
2805
|
-
const
|
|
2806
|
-
if (this.isStructSchema() &&
|
|
2807
|
-
const i =
|
|
2808
|
-
const memberSchema =
|
|
2821
|
+
const struct = this.getSchema();
|
|
2822
|
+
if (this.isStructSchema() && struct[4].includes(memberName)) {
|
|
2823
|
+
const i = struct[4].indexOf(memberName);
|
|
2824
|
+
const memberSchema = struct[5][i];
|
|
2809
2825
|
return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
|
|
2810
2826
|
}
|
|
2811
2827
|
if (this.isDocumentSchema()) {
|
|
@@ -2839,9 +2855,9 @@ var require_schema = __commonJS((exports) => {
|
|
|
2839
2855
|
if (!this.isStructSchema()) {
|
|
2840
2856
|
throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
2841
2857
|
}
|
|
2842
|
-
const
|
|
2843
|
-
for (let i = 0;i <
|
|
2844
|
-
yield [
|
|
2858
|
+
const struct = this.getSchema();
|
|
2859
|
+
for (let i = 0;i < struct[4].length; ++i) {
|
|
2860
|
+
yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
|
|
2845
2861
|
}
|
|
2846
2862
|
}
|
|
2847
2863
|
}
|
|
@@ -2985,8 +3001,8 @@ var require_schema = __commonJS((exports) => {
|
|
|
2985
3001
|
exports.translateTraits = translateTraits;
|
|
2986
3002
|
});
|
|
2987
3003
|
|
|
2988
|
-
// ../../node_modules
|
|
2989
|
-
var require_tslib = __commonJS((exports, module)
|
|
3004
|
+
// ../../node_modules/tslib/tslib.js
|
|
3005
|
+
var require_tslib = __commonJS(function(exports, module) {
|
|
2990
3006
|
var __extends;
|
|
2991
3007
|
var __assign;
|
|
2992
3008
|
var __rest;
|
|
@@ -3415,8 +3431,8 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
3415
3431
|
};
|
|
3416
3432
|
}
|
|
3417
3433
|
function settle(resolve, reject, d, v) {
|
|
3418
|
-
Promise.resolve(v).then(function(
|
|
3419
|
-
resolve({ value:
|
|
3434
|
+
Promise.resolve(v).then(function(v) {
|
|
3435
|
+
resolve({ value: v, done: d });
|
|
3420
3436
|
}, reject);
|
|
3421
3437
|
}
|
|
3422
3438
|
};
|
|
@@ -3434,10 +3450,10 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
3434
3450
|
o["default"] = v;
|
|
3435
3451
|
};
|
|
3436
3452
|
var ownKeys = function(o) {
|
|
3437
|
-
ownKeys = Object.getOwnPropertyNames || function(
|
|
3453
|
+
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
3438
3454
|
var ar = [];
|
|
3439
|
-
for (var k in
|
|
3440
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3455
|
+
for (var k in o)
|
|
3456
|
+
if (Object.prototype.hasOwnProperty.call(o, k))
|
|
3441
3457
|
ar[ar.length] = k;
|
|
3442
3458
|
return ar;
|
|
3443
3459
|
};
|
|
@@ -3590,8 +3606,8 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
3590
3606
|
});
|
|
3591
3607
|
});
|
|
3592
3608
|
|
|
3593
|
-
// ../../node_modules
|
|
3594
|
-
var require_randomUUID = __commonJS((exports)
|
|
3609
|
+
// ../../node_modules/@smithy/uuid/dist-cjs/randomUUID.js
|
|
3610
|
+
var require_randomUUID = __commonJS(function(exports) {
|
|
3595
3611
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3596
3612
|
exports.randomUUID = undefined;
|
|
3597
3613
|
var tslib_1 = require_tslib();
|
|
@@ -3599,8 +3615,8 @@ var require_randomUUID = __commonJS((exports) => {
|
|
|
3599
3615
|
exports.randomUUID = crypto_1.default.randomUUID.bind(crypto_1.default);
|
|
3600
3616
|
});
|
|
3601
3617
|
|
|
3602
|
-
// ../../node_modules
|
|
3603
|
-
var require_dist_cjs18 = __commonJS((exports)
|
|
3618
|
+
// ../../node_modules/@smithy/uuid/dist-cjs/index.js
|
|
3619
|
+
var require_dist_cjs18 = __commonJS(function(exports) {
|
|
3604
3620
|
var randomUUID = require_randomUUID();
|
|
3605
3621
|
var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
3606
3622
|
var v4 = () => {
|
|
@@ -3616,8 +3632,8 @@ var require_dist_cjs18 = __commonJS((exports) => {
|
|
|
3616
3632
|
exports.v4 = v4;
|
|
3617
3633
|
});
|
|
3618
3634
|
|
|
3619
|
-
// ../../node_modules
|
|
3620
|
-
var require_serde = __commonJS((exports)
|
|
3635
|
+
// ../../node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3636
|
+
var require_serde = __commonJS(function(exports) {
|
|
3621
3637
|
var uuid = require_dist_cjs18();
|
|
3622
3638
|
var copyDocumentWithTransform = (source, schemaRef, transform = (_) => _) => source;
|
|
3623
3639
|
var parseBoolean = (value) => {
|
|
@@ -3848,19 +3864,19 @@ var require_serde = __commonJS((exports) => {
|
|
|
3848
3864
|
};
|
|
3849
3865
|
var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
3850
3866
|
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
3851
|
-
function dateToUtcString(
|
|
3852
|
-
const
|
|
3853
|
-
const month =
|
|
3854
|
-
const dayOfWeek =
|
|
3855
|
-
const dayOfMonthInt =
|
|
3856
|
-
const hoursInt =
|
|
3857
|
-
const minutesInt =
|
|
3858
|
-
const secondsInt =
|
|
3867
|
+
function dateToUtcString(date) {
|
|
3868
|
+
const year = date.getUTCFullYear();
|
|
3869
|
+
const month = date.getUTCMonth();
|
|
3870
|
+
const dayOfWeek = date.getUTCDay();
|
|
3871
|
+
const dayOfMonthInt = date.getUTCDate();
|
|
3872
|
+
const hoursInt = date.getUTCHours();
|
|
3873
|
+
const minutesInt = date.getUTCMinutes();
|
|
3874
|
+
const secondsInt = date.getUTCSeconds();
|
|
3859
3875
|
const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
|
|
3860
3876
|
const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
|
|
3861
3877
|
const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
|
|
3862
3878
|
const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
|
|
3863
|
-
return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${
|
|
3879
|
+
return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
|
|
3864
3880
|
}
|
|
3865
3881
|
var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
|
|
3866
3882
|
var parseRfc3339DateTime = (value) => {
|
|
@@ -3875,10 +3891,10 @@ var require_serde = __commonJS((exports) => {
|
|
|
3875
3891
|
throw new TypeError("Invalid RFC-3339 date-time value");
|
|
3876
3892
|
}
|
|
3877
3893
|
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
3878
|
-
const
|
|
3894
|
+
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
|
3879
3895
|
const month = parseDateValue(monthStr, "month", 1, 12);
|
|
3880
3896
|
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
3881
|
-
return buildDate(
|
|
3897
|
+
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
3882
3898
|
};
|
|
3883
3899
|
var RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);
|
|
3884
3900
|
var parseRfc3339DateTimeWithOffset = (value) => {
|
|
@@ -3893,14 +3909,14 @@ var require_serde = __commonJS((exports) => {
|
|
|
3893
3909
|
throw new TypeError("Invalid RFC-3339 date-time value");
|
|
3894
3910
|
}
|
|
3895
3911
|
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
|
|
3896
|
-
const
|
|
3912
|
+
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
|
3897
3913
|
const month = parseDateValue(monthStr, "month", 1, 12);
|
|
3898
3914
|
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
3899
|
-
const
|
|
3915
|
+
const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
3900
3916
|
if (offsetStr.toUpperCase() != "Z") {
|
|
3901
|
-
|
|
3917
|
+
date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
|
|
3902
3918
|
}
|
|
3903
|
-
return
|
|
3919
|
+
return date;
|
|
3904
3920
|
};
|
|
3905
3921
|
var IMF_FIXDATE$1 = 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$/);
|
|
3906
3922
|
var RFC_850_DATE$1 = 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$/);
|
|
@@ -3953,10 +3969,10 @@ var require_serde = __commonJS((exports) => {
|
|
|
3953
3969
|
}
|
|
3954
3970
|
return new Date(Math.round(valueAsDouble * 1000));
|
|
3955
3971
|
};
|
|
3956
|
-
var buildDate = (
|
|
3972
|
+
var buildDate = (year, month, day, time) => {
|
|
3957
3973
|
const adjustedMonth = month - 1;
|
|
3958
|
-
validateDayOfMonth(
|
|
3959
|
-
return new Date(Date.UTC(
|
|
3974
|
+
validateDayOfMonth(year, adjustedMonth, day);
|
|
3975
|
+
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)));
|
|
3960
3976
|
};
|
|
3961
3977
|
var parseTwoDigitYear = (value) => {
|
|
3962
3978
|
const thisYear = new Date().getUTCFullYear();
|
|
@@ -3981,17 +3997,17 @@ var require_serde = __commonJS((exports) => {
|
|
|
3981
3997
|
return monthIdx + 1;
|
|
3982
3998
|
};
|
|
3983
3999
|
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
3984
|
-
var validateDayOfMonth = (
|
|
4000
|
+
var validateDayOfMonth = (year, month, day) => {
|
|
3985
4001
|
let maxDays = DAYS_IN_MONTH[month];
|
|
3986
|
-
if (month === 1 && isLeapYear(
|
|
4002
|
+
if (month === 1 && isLeapYear(year)) {
|
|
3987
4003
|
maxDays = 29;
|
|
3988
4004
|
}
|
|
3989
4005
|
if (day > maxDays) {
|
|
3990
|
-
throw new TypeError(`Invalid day for ${MONTHS[month]} in ${
|
|
4006
|
+
throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
|
|
3991
4007
|
}
|
|
3992
4008
|
};
|
|
3993
|
-
var isLeapYear = (
|
|
3994
|
-
return
|
|
4009
|
+
var isLeapYear = (year) => {
|
|
4010
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
3995
4011
|
};
|
|
3996
4012
|
var parseDateValue = (value, type, lower, upper) => {
|
|
3997
4013
|
const dateVal = strictParseByte(stripLeadingZeroes(value));
|
|
@@ -4106,14 +4122,14 @@ var require_serde = __commonJS((exports) => {
|
|
|
4106
4122
|
range(hours, 0, 23);
|
|
4107
4123
|
range(minutes, 0, 59);
|
|
4108
4124
|
range(seconds, 0, 60);
|
|
4109
|
-
const
|
|
4110
|
-
|
|
4125
|
+
const date = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0));
|
|
4126
|
+
date.setUTCFullYear(Number(yearStr));
|
|
4111
4127
|
if (offsetStr.toUpperCase() != "Z") {
|
|
4112
4128
|
const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [undefined, "+", 0, 0];
|
|
4113
4129
|
const scalar = sign === "-" ? 1 : -1;
|
|
4114
|
-
|
|
4130
|
+
date.setTime(date.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1000 + Number(offsetM) * 60 * 1000));
|
|
4115
4131
|
}
|
|
4116
|
-
return
|
|
4132
|
+
return date;
|
|
4117
4133
|
};
|
|
4118
4134
|
var _parseRfc7231DateTime = (value) => {
|
|
4119
4135
|
if (value == null) {
|
|
@@ -4124,29 +4140,29 @@ var require_serde = __commonJS((exports) => {
|
|
|
4124
4140
|
}
|
|
4125
4141
|
let day;
|
|
4126
4142
|
let month;
|
|
4127
|
-
let
|
|
4143
|
+
let year;
|
|
4128
4144
|
let hour;
|
|
4129
4145
|
let minute;
|
|
4130
4146
|
let second;
|
|
4131
4147
|
let fraction;
|
|
4132
4148
|
let matches;
|
|
4133
4149
|
if (matches = IMF_FIXDATE.exec(value)) {
|
|
4134
|
-
[, day, month,
|
|
4150
|
+
[, day, month, year, hour, minute, second, fraction] = matches;
|
|
4135
4151
|
} else if (matches = RFC_850_DATE.exec(value)) {
|
|
4136
|
-
[, day, month,
|
|
4137
|
-
|
|
4152
|
+
[, day, month, year, hour, minute, second, fraction] = matches;
|
|
4153
|
+
year = (Number(year) + 1900).toString();
|
|
4138
4154
|
} else if (matches = ASC_TIME.exec(value)) {
|
|
4139
|
-
[, month, day, hour, minute, second, fraction,
|
|
4155
|
+
[, month, day, hour, minute, second, fraction, year] = matches;
|
|
4140
4156
|
}
|
|
4141
|
-
if (
|
|
4142
|
-
const timestamp = Date.UTC(Number(
|
|
4157
|
+
if (year && second) {
|
|
4158
|
+
const timestamp = Date.UTC(Number(year), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
|
|
4143
4159
|
range(day, 1, 31);
|
|
4144
4160
|
range(hour, 0, 23);
|
|
4145
4161
|
range(minute, 0, 59);
|
|
4146
4162
|
range(second, 0, 60);
|
|
4147
|
-
const
|
|
4148
|
-
|
|
4149
|
-
return
|
|
4163
|
+
const date = new Date(timestamp);
|
|
4164
|
+
date.setUTCFullYear(Number(year));
|
|
4165
|
+
return date;
|
|
4150
4166
|
}
|
|
4151
4167
|
throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
|
|
4152
4168
|
};
|
|
@@ -4208,12 +4224,12 @@ var require_serde = __commonJS((exports) => {
|
|
|
4208
4224
|
values.push(value.slice(anchor));
|
|
4209
4225
|
return values.map((v) => {
|
|
4210
4226
|
v = v.trim();
|
|
4211
|
-
const
|
|
4212
|
-
if (
|
|
4227
|
+
const z = v.length;
|
|
4228
|
+
if (z < 2) {
|
|
4213
4229
|
return v;
|
|
4214
4230
|
}
|
|
4215
|
-
if (v[0] === `"` && v[
|
|
4216
|
-
v = v.slice(1,
|
|
4231
|
+
if (v[0] === `"` && v[z - 1] === `"`) {
|
|
4232
|
+
v = v.slice(1, z - 1);
|
|
4217
4233
|
}
|
|
4218
4234
|
return v.replace(/\\"/g, '"');
|
|
4219
4235
|
});
|
|
@@ -4293,8 +4309,8 @@ var require_serde = __commonJS((exports) => {
|
|
|
4293
4309
|
exports.strictParseShort = strictParseShort;
|
|
4294
4310
|
});
|
|
4295
4311
|
|
|
4296
|
-
// ../../node_modules
|
|
4297
|
-
var require_event_streams = __commonJS((exports)
|
|
4312
|
+
// ../../node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
4313
|
+
var require_event_streams = __commonJS(function(exports) {
|
|
4298
4314
|
var utilUtf8 = require_dist_cjs10();
|
|
4299
4315
|
|
|
4300
4316
|
class EventStreamSerde {
|
|
@@ -4492,8 +4508,8 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
4492
4508
|
exports.EventStreamSerde = EventStreamSerde;
|
|
4493
4509
|
});
|
|
4494
4510
|
|
|
4495
|
-
// ../../node_modules
|
|
4496
|
-
var require_protocols = __commonJS((exports)
|
|
4511
|
+
// ../../node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
4512
|
+
var require_protocols = __commonJS(function(exports) {
|
|
4497
4513
|
var utilStream = require_dist_cjs17();
|
|
4498
4514
|
var schema = require_schema();
|
|
4499
4515
|
var serde = require_serde();
|
|
@@ -4625,7 +4641,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4625
4641
|
getDefaultContentType() {
|
|
4626
4642
|
throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
|
|
4627
4643
|
}
|
|
4628
|
-
async deserializeHttpMessage(
|
|
4644
|
+
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
|
4629
4645
|
return [];
|
|
4630
4646
|
}
|
|
4631
4647
|
getEventStreamMarshaller() {
|
|
@@ -4959,17 +4975,17 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4959
4975
|
return dataObject;
|
|
4960
4976
|
}
|
|
4961
4977
|
}
|
|
4962
|
-
var resolvedPath = (
|
|
4978
|
+
var resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
4963
4979
|
if (input != null && input[memberName] !== undefined) {
|
|
4964
4980
|
const labelValue = labelValueProvider();
|
|
4965
4981
|
if (labelValue.length <= 0) {
|
|
4966
4982
|
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
4967
4983
|
}
|
|
4968
|
-
|
|
4984
|
+
resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue));
|
|
4969
4985
|
} else {
|
|
4970
4986
|
throw new Error("No value provided for input HTTP label: " + memberName + ".");
|
|
4971
4987
|
}
|
|
4972
|
-
return
|
|
4988
|
+
return resolvedPath;
|
|
4973
4989
|
};
|
|
4974
4990
|
function requestBuilder(input, context) {
|
|
4975
4991
|
return new RequestBuilder(input, context);
|
|
@@ -5278,8 +5294,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
5278
5294
|
exports.resolvedPath = resolvedPath;
|
|
5279
5295
|
});
|
|
5280
5296
|
|
|
5281
|
-
// ../../node_modules
|
|
5282
|
-
var require_dist_cjs19 = __commonJS((exports)
|
|
5297
|
+
// ../../node_modules/@smithy/core/dist-cjs/index.js
|
|
5298
|
+
var require_dist_cjs19 = __commonJS(function(exports) {
|
|
5283
5299
|
var types = require_dist_cjs();
|
|
5284
5300
|
var utilMiddleware = require_dist_cjs6();
|
|
5285
5301
|
var middlewareSerde = require_dist_cjs7();
|
|
@@ -5610,8 +5626,8 @@ var require_dist_cjs19 = __commonJS((exports) => {
|
|
|
5610
5626
|
exports.setFeature = setFeature;
|
|
5611
5627
|
});
|
|
5612
5628
|
|
|
5613
|
-
// ../../node_modules
|
|
5614
|
-
var require_dist_cjs20 = __commonJS((exports)
|
|
5629
|
+
// ../../node_modules/@smithy/util-endpoints/dist-cjs/index.js
|
|
5630
|
+
var require_dist_cjs20 = __commonJS(function(exports) {
|
|
5615
5631
|
var types = require_dist_cjs();
|
|
5616
5632
|
|
|
5617
5633
|
class EndpointCache {
|
|
@@ -5745,8 +5761,8 @@ var require_dist_cjs20 = __commonJS((exports) => {
|
|
|
5745
5761
|
return value;
|
|
5746
5762
|
}
|
|
5747
5763
|
if (typeof value === "object" && "hostname" in value) {
|
|
5748
|
-
const { hostname
|
|
5749
|
-
const url = new URL(`${
|
|
5764
|
+
const { hostname, port, protocol = "", path = "", query = {} } = value;
|
|
5765
|
+
const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`);
|
|
5750
5766
|
url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&");
|
|
5751
5767
|
return url;
|
|
5752
5768
|
}
|
|
@@ -6039,8 +6055,8 @@ var require_dist_cjs20 = __commonJS((exports) => {
|
|
|
6039
6055
|
exports.resolveEndpoint = resolveEndpoint;
|
|
6040
6056
|
});
|
|
6041
6057
|
|
|
6042
|
-
// ../../node_modules
|
|
6043
|
-
var require_dist_cjs21 = __commonJS((exports)
|
|
6058
|
+
// ../../node_modules/@smithy/querystring-parser/dist-cjs/index.js
|
|
6059
|
+
var require_dist_cjs21 = __commonJS(function(exports) {
|
|
6044
6060
|
function parseQueryString(querystring) {
|
|
6045
6061
|
const query = {};
|
|
6046
6062
|
querystring = querystring.replace(/^\?/, "");
|
|
@@ -6065,8 +6081,8 @@ var require_dist_cjs21 = __commonJS((exports) => {
|
|
|
6065
6081
|
exports.parseQueryString = parseQueryString;
|
|
6066
6082
|
});
|
|
6067
6083
|
|
|
6068
|
-
// ../../node_modules
|
|
6069
|
-
var require_dist_cjs22 = __commonJS((exports)
|
|
6084
|
+
// ../../node_modules/@smithy/url-parser/dist-cjs/index.js
|
|
6085
|
+
var require_dist_cjs22 = __commonJS(function(exports) {
|
|
6070
6086
|
var querystringParser = require_dist_cjs21();
|
|
6071
6087
|
var parseUrl = (url) => {
|
|
6072
6088
|
if (typeof url === "string") {
|
|
@@ -6088,8 +6104,8 @@ var require_dist_cjs22 = __commonJS((exports) => {
|
|
|
6088
6104
|
exports.parseUrl = parseUrl;
|
|
6089
6105
|
});
|
|
6090
6106
|
|
|
6091
|
-
// ../../node_modules
|
|
6092
|
-
var require_dist_cjs23 = __commonJS((exports)
|
|
6107
|
+
// ../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
|
|
6108
|
+
var require_dist_cjs23 = __commonJS(function(exports) {
|
|
6093
6109
|
var utilEndpoints = require_dist_cjs20();
|
|
6094
6110
|
var urlParser = require_dist_cjs22();
|
|
6095
6111
|
var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
@@ -6121,12 +6137,12 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
6121
6137
|
const segments = value.split(ARN_DELIMITER);
|
|
6122
6138
|
if (segments.length < 6)
|
|
6123
6139
|
return null;
|
|
6124
|
-
const [arn,
|
|
6125
|
-
if (arn !== "arn" ||
|
|
6140
|
+
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
6141
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
6126
6142
|
return null;
|
|
6127
6143
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
6128
6144
|
return {
|
|
6129
|
-
partition
|
|
6145
|
+
partition,
|
|
6130
6146
|
service,
|
|
6131
6147
|
region,
|
|
6132
6148
|
accountId,
|
|
@@ -6414,9 +6430,9 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
6414
6430
|
var selectedPartitionsInfo = partitionsInfo;
|
|
6415
6431
|
var selectedUserAgentPrefix = "";
|
|
6416
6432
|
var partition = (value) => {
|
|
6417
|
-
const { partitions
|
|
6418
|
-
for (const
|
|
6419
|
-
const { regions, outputs } =
|
|
6433
|
+
const { partitions } = selectedPartitionsInfo;
|
|
6434
|
+
for (const partition of partitions) {
|
|
6435
|
+
const { regions, outputs } = partition;
|
|
6420
6436
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
6421
6437
|
if (region === value) {
|
|
6422
6438
|
return {
|
|
@@ -6426,15 +6442,15 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
6426
6442
|
}
|
|
6427
6443
|
}
|
|
6428
6444
|
}
|
|
6429
|
-
for (const
|
|
6430
|
-
const { regionRegex, outputs } =
|
|
6445
|
+
for (const partition of partitions) {
|
|
6446
|
+
const { regionRegex, outputs } = partition;
|
|
6431
6447
|
if (new RegExp(regionRegex).test(value)) {
|
|
6432
6448
|
return {
|
|
6433
6449
|
...outputs
|
|
6434
6450
|
};
|
|
6435
6451
|
}
|
|
6436
6452
|
}
|
|
6437
|
-
const DEFAULT_PARTITION =
|
|
6453
|
+
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
6438
6454
|
if (!DEFAULT_PARTITION) {
|
|
6439
6455
|
throw new Error("Provided region was not found in the partition array or regex," + " and default partition with id 'aws' doesn't exist.");
|
|
6440
6456
|
}
|
|
@@ -6442,8 +6458,8 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
6442
6458
|
...DEFAULT_PARTITION.outputs
|
|
6443
6459
|
};
|
|
6444
6460
|
};
|
|
6445
|
-
var setPartitionInfo = (
|
|
6446
|
-
selectedPartitionsInfo =
|
|
6461
|
+
var setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
|
6462
|
+
selectedPartitionsInfo = partitionsInfo;
|
|
6447
6463
|
selectedUserAgentPrefix = userAgentPrefix;
|
|
6448
6464
|
};
|
|
6449
6465
|
var useDefaultPartitionInfo = () => {
|
|
@@ -6501,8 +6517,8 @@ var require_dist_cjs23 = __commonJS((exports) => {
|
|
|
6501
6517
|
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
|
6502
6518
|
});
|
|
6503
6519
|
|
|
6504
|
-
// ../../node_modules
|
|
6505
|
-
var require_dist_cjs24 = __commonJS((exports)
|
|
6520
|
+
// ../../node_modules/@smithy/property-provider/dist-cjs/index.js
|
|
6521
|
+
var require_dist_cjs24 = __commonJS(function(exports) {
|
|
6506
6522
|
class ProviderError extends Error {
|
|
6507
6523
|
name = "ProviderError";
|
|
6508
6524
|
tryNextLink;
|
|
@@ -6613,8 +6629,8 @@ var require_dist_cjs24 = __commonJS((exports) => {
|
|
|
6613
6629
|
exports.memoize = memoize;
|
|
6614
6630
|
});
|
|
6615
6631
|
|
|
6616
|
-
// ../../node_modules
|
|
6617
|
-
var require_client = __commonJS((exports)
|
|
6632
|
+
// ../../node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
6633
|
+
var require_client = __commonJS(function(exports) {
|
|
6618
6634
|
var state = {
|
|
6619
6635
|
warningEmitted: false
|
|
6620
6636
|
};
|
|
@@ -6661,8 +6677,8 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
6661
6677
|
exports.state = state;
|
|
6662
6678
|
});
|
|
6663
6679
|
|
|
6664
|
-
// ../../node_modules
|
|
6665
|
-
var require_dist_cjs25 = __commonJS((exports)
|
|
6680
|
+
// ../../node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
6681
|
+
var require_dist_cjs25 = __commonJS(function(exports) {
|
|
6666
6682
|
var utilHexEncoding = require_dist_cjs16();
|
|
6667
6683
|
var utilUtf8 = require_dist_cjs10();
|
|
6668
6684
|
var isArrayBuffer = require_dist_cjs8();
|
|
@@ -6932,10 +6948,10 @@ var require_dist_cjs25 = __commonJS((exports) => {
|
|
|
6932
6948
|
if (typeof value === "string") {
|
|
6933
6949
|
serialized[encodedKey] = `${encodedKey}=${utilUriEscape.escapeUri(value)}`;
|
|
6934
6950
|
} else if (Array.isArray(value)) {
|
|
6935
|
-
serialized[encodedKey] = value.slice(0).reduce((encoded,
|
|
6951
|
+
serialized[encodedKey] = value.slice(0).reduce((encoded, value) => encoded.concat([`${encodedKey}=${utilUriEscape.escapeUri(value)}`]), []).sort().join("&");
|
|
6936
6952
|
}
|
|
6937
6953
|
}
|
|
6938
|
-
return keys.sort().map((key) => serialized[key]).filter((
|
|
6954
|
+
return keys.sort().map((key) => serialized[key]).filter((serialized) => serialized).join("&");
|
|
6939
6955
|
};
|
|
6940
6956
|
var iso8601 = (time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
6941
6957
|
var toDate = (time) => {
|
|
@@ -7185,8 +7201,8 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
|
|
|
7185
7201
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
7186
7202
|
});
|
|
7187
7203
|
|
|
7188
|
-
// ../../node_modules
|
|
7189
|
-
var require_dist_cjs26 = __commonJS((exports)
|
|
7204
|
+
// ../../node_modules/@smithy/util-body-length-browser/dist-cjs/index.js
|
|
7205
|
+
var require_dist_cjs26 = __commonJS(function(exports) {
|
|
7190
7206
|
var TEXT_ENCODER = typeof TextEncoder == "function" ? new TextEncoder : null;
|
|
7191
7207
|
var calculateBodyLength = (body) => {
|
|
7192
7208
|
if (typeof body === "string") {
|
|
@@ -7214,8 +7230,8 @@ var require_dist_cjs26 = __commonJS((exports) => {
|
|
|
7214
7230
|
exports.calculateBodyLength = calculateBodyLength;
|
|
7215
7231
|
});
|
|
7216
7232
|
|
|
7217
|
-
// ../../node_modules
|
|
7218
|
-
var require_cbor = __commonJS((exports)
|
|
7233
|
+
// ../../node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
7234
|
+
var require_cbor = __commonJS(function(exports) {
|
|
7219
7235
|
var serde = require_serde();
|
|
7220
7236
|
var utilUtf8 = require_dist_cjs10();
|
|
7221
7237
|
var protocols = require_protocols();
|
|
@@ -7245,9 +7261,9 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7245
7261
|
return typeof Buffer !== "undefined" ? Buffer.alloc(size) : new Uint8Array(size);
|
|
7246
7262
|
}
|
|
7247
7263
|
var tagSymbol = Symbol("@smithy/core/cbor::tagSymbol");
|
|
7248
|
-
function tag(
|
|
7249
|
-
|
|
7250
|
-
return
|
|
7264
|
+
function tag(data) {
|
|
7265
|
+
data[tagSymbol] = true;
|
|
7266
|
+
return data;
|
|
7251
7267
|
}
|
|
7252
7268
|
var USE_TEXT_DECODER = typeof TextDecoder !== "undefined";
|
|
7253
7269
|
var USE_BUFFER$1 = typeof Buffer !== "undefined";
|
|
@@ -7468,10 +7484,10 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7468
7484
|
const vector = [];
|
|
7469
7485
|
for (const base = at;at < to; ) {
|
|
7470
7486
|
if (payload[at] === 255) {
|
|
7471
|
-
const
|
|
7472
|
-
|
|
7487
|
+
const data = alloc(vector.length);
|
|
7488
|
+
data.set(vector, 0);
|
|
7473
7489
|
_offset = at - base + 2;
|
|
7474
|
-
return bytesToUtf8(
|
|
7490
|
+
return bytesToUtf8(data, 0, data.length);
|
|
7475
7491
|
}
|
|
7476
7492
|
const major = (payload[at] & 224) >> 5;
|
|
7477
7493
|
const minor = payload[at] & 31;
|
|
@@ -7506,10 +7522,10 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7506
7522
|
const vector = [];
|
|
7507
7523
|
for (const base = at;at < to; ) {
|
|
7508
7524
|
if (payload[at] === 255) {
|
|
7509
|
-
const
|
|
7510
|
-
|
|
7525
|
+
const data = alloc(vector.length);
|
|
7526
|
+
data.set(vector, 0);
|
|
7511
7527
|
_offset = at - base + 2;
|
|
7512
|
-
return
|
|
7528
|
+
return data;
|
|
7513
7529
|
}
|
|
7514
7530
|
const major = (payload[at] & 224) >> 5;
|
|
7515
7531
|
const minor = payload[at] & 31;
|
|
@@ -7843,9 +7859,9 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7843
7859
|
}
|
|
7844
7860
|
}
|
|
7845
7861
|
var cbor = {
|
|
7846
|
-
deserialize(
|
|
7847
|
-
setPayload(
|
|
7848
|
-
return decode(0,
|
|
7862
|
+
deserialize(payload) {
|
|
7863
|
+
setPayload(payload);
|
|
7864
|
+
return decode(0, payload.length);
|
|
7849
7865
|
},
|
|
7850
7866
|
serialize(input) {
|
|
7851
7867
|
try {
|
|
@@ -7886,7 +7902,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7886
7902
|
value.message = value.message ?? value.Message;
|
|
7887
7903
|
return value;
|
|
7888
7904
|
};
|
|
7889
|
-
var loadSmithyRpcV2CborErrorCode = (output,
|
|
7905
|
+
var loadSmithyRpcV2CborErrorCode = (output, data) => {
|
|
7890
7906
|
const sanitizeErrorCode = (rawValue) => {
|
|
7891
7907
|
let cleanValue = rawValue;
|
|
7892
7908
|
if (typeof cleanValue === "number") {
|
|
@@ -7903,12 +7919,12 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7903
7919
|
}
|
|
7904
7920
|
return cleanValue;
|
|
7905
7921
|
};
|
|
7906
|
-
if (
|
|
7907
|
-
return sanitizeErrorCode(
|
|
7922
|
+
if (data["__type"] !== undefined) {
|
|
7923
|
+
return sanitizeErrorCode(data["__type"]);
|
|
7908
7924
|
}
|
|
7909
|
-
const codeKey = Object.keys(
|
|
7910
|
-
if (codeKey &&
|
|
7911
|
-
return sanitizeErrorCode(
|
|
7925
|
+
const codeKey = Object.keys(data).find((key) => key.toLowerCase() === "code");
|
|
7926
|
+
if (codeKey && data[codeKey] !== undefined) {
|
|
7927
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
7912
7928
|
}
|
|
7913
7929
|
};
|
|
7914
7930
|
var checkCborResponse = (response) => {
|
|
@@ -7955,8 +7971,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
7955
7971
|
|
|
7956
7972
|
class CborShapeSerializer extends protocols.SerdeContext {
|
|
7957
7973
|
value;
|
|
7958
|
-
write(
|
|
7959
|
-
this.value = this.serialize(
|
|
7974
|
+
write(schema, value) {
|
|
7975
|
+
this.value = this.serialize(schema, value);
|
|
7960
7976
|
}
|
|
7961
7977
|
serialize(schema$1, source) {
|
|
7962
7978
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
@@ -8028,9 +8044,9 @@ var require_cbor = __commonJS((exports) => {
|
|
|
8028
8044
|
}
|
|
8029
8045
|
|
|
8030
8046
|
class CborShapeDeserializer extends protocols.SerdeContext {
|
|
8031
|
-
read(
|
|
8032
|
-
const
|
|
8033
|
-
return this.readValue(
|
|
8047
|
+
read(schema, bytes) {
|
|
8048
|
+
const data = cbor.deserialize(bytes);
|
|
8049
|
+
return this.readValue(schema, data);
|
|
8034
8050
|
}
|
|
8035
8051
|
readValue(_schema, value) {
|
|
8036
8052
|
const ns = schema.NormalizedSchema.of(_schema);
|
|
@@ -8158,8 +8174,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
8158
8174
|
const synthetic = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
8159
8175
|
const baseExceptionSchema = synthetic.getBaseException();
|
|
8160
8176
|
if (baseExceptionSchema) {
|
|
8161
|
-
const
|
|
8162
|
-
throw Object.assign(new
|
|
8177
|
+
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema);
|
|
8178
|
+
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
8163
8179
|
}
|
|
8164
8180
|
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
8165
8181
|
}
|
|
@@ -8195,8 +8211,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
8195
8211
|
exports.tagSymbol = tagSymbol;
|
|
8196
8212
|
});
|
|
8197
8213
|
|
|
8198
|
-
// ../../node_modules
|
|
8199
|
-
var require_dist_cjs27 = __commonJS((exports)
|
|
8214
|
+
// ../../node_modules/@smithy/middleware-stack/dist-cjs/index.js
|
|
8215
|
+
var require_dist_cjs27 = __commonJS(function(exports) {
|
|
8200
8216
|
var getAllAliases = (name, aliases) => {
|
|
8201
8217
|
const _aliases = [];
|
|
8202
8218
|
if (name) {
|
|
@@ -8344,7 +8360,7 @@ var require_dist_cjs27 = __commonJS((exports) => {
|
|
|
8344
8360
|
if (!override)
|
|
8345
8361
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
8346
8362
|
for (const alias of aliases) {
|
|
8347
|
-
const toOverrideIndex = absoluteEntries.findIndex((
|
|
8363
|
+
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
8348
8364
|
if (toOverrideIndex === -1) {
|
|
8349
8365
|
continue;
|
|
8350
8366
|
}
|
|
@@ -8373,7 +8389,7 @@ var require_dist_cjs27 = __commonJS((exports) => {
|
|
|
8373
8389
|
if (!override)
|
|
8374
8390
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
8375
8391
|
for (const alias of aliases) {
|
|
8376
|
-
const toOverrideIndex = relativeEntries.findIndex((
|
|
8392
|
+
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
8377
8393
|
if (toOverrideIndex === -1) {
|
|
8378
8394
|
continue;
|
|
8379
8395
|
}
|
|
@@ -8463,8 +8479,8 @@ var require_dist_cjs27 = __commonJS((exports) => {
|
|
|
8463
8479
|
exports.constructStack = constructStack;
|
|
8464
8480
|
});
|
|
8465
8481
|
|
|
8466
|
-
// ../../node_modules
|
|
8467
|
-
var require_dist_cjs28 = __commonJS((exports)
|
|
8482
|
+
// ../../node_modules/@smithy/smithy-client/dist-cjs/index.js
|
|
8483
|
+
var require_dist_cjs28 = __commonJS(function(exports) {
|
|
8468
8484
|
var middlewareStack = require_dist_cjs27();
|
|
8469
8485
|
var protocols = require_protocols();
|
|
8470
8486
|
var types = require_dist_cjs();
|
|
@@ -8665,23 +8681,23 @@ var require_dist_cjs28 = __commonJS((exports) => {
|
|
|
8665
8681
|
}
|
|
8666
8682
|
}
|
|
8667
8683
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
8668
|
-
var createAggregatedClient = (commands,
|
|
8684
|
+
var createAggregatedClient = (commands, Client) => {
|
|
8669
8685
|
for (const command of Object.keys(commands)) {
|
|
8670
8686
|
const CommandCtor = commands[command];
|
|
8671
8687
|
const methodImpl = async function(args, optionsOrCb, cb) {
|
|
8672
|
-
const
|
|
8688
|
+
const command = new CommandCtor(args);
|
|
8673
8689
|
if (typeof optionsOrCb === "function") {
|
|
8674
|
-
this.send(
|
|
8690
|
+
this.send(command, optionsOrCb);
|
|
8675
8691
|
} else if (typeof cb === "function") {
|
|
8676
8692
|
if (typeof optionsOrCb !== "object")
|
|
8677
8693
|
throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
|
|
8678
|
-
this.send(
|
|
8694
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
8679
8695
|
} else {
|
|
8680
|
-
return this.send(
|
|
8696
|
+
return this.send(command, optionsOrCb);
|
|
8681
8697
|
}
|
|
8682
8698
|
};
|
|
8683
8699
|
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
8684
|
-
|
|
8700
|
+
Client.prototype[methodName] = methodImpl;
|
|
8685
8701
|
}
|
|
8686
8702
|
};
|
|
8687
8703
|
|
|
@@ -8916,8 +8932,8 @@ var require_dist_cjs28 = __commonJS((exports) => {
|
|
|
8916
8932
|
if (typeof instruction === "function") {
|
|
8917
8933
|
instruction = [, instruction];
|
|
8918
8934
|
}
|
|
8919
|
-
const [
|
|
8920
|
-
if (typeof
|
|
8935
|
+
const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;
|
|
8936
|
+
if (typeof filter === "function" && filter(source[sourceKey]) || typeof filter !== "function" && !!filter) {
|
|
8921
8937
|
target[targetKey] = valueFn(source[sourceKey]);
|
|
8922
8938
|
}
|
|
8923
8939
|
return;
|
|
@@ -9027,845 +9043,845 @@ var require_dist_cjs28 = __commonJS((exports) => {
|
|
|
9027
9043
|
});
|
|
9028
9044
|
});
|
|
9029
9045
|
|
|
9030
|
-
// ../../node_modules
|
|
9031
|
-
var require_fxp = __commonJS((exports, module)
|
|
9046
|
+
// ../../node_modules/fast-xml-parser/lib/fxp.cjs
|
|
9047
|
+
var require_fxp = __commonJS(function(exports, module) {
|
|
9032
9048
|
(() => {
|
|
9033
|
-
var t = { d: (
|
|
9034
|
-
for (var
|
|
9035
|
-
t.o(
|
|
9036
|
-
}, o: (
|
|
9037
|
-
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(
|
|
9049
|
+
var t = { d: (e, n) => {
|
|
9050
|
+
for (var i in n)
|
|
9051
|
+
t.o(n, i) && !t.o(e, i) && Object.defineProperty(e, i, { enumerable: true, get: n[i] });
|
|
9052
|
+
}, o: (t, e) => Object.prototype.hasOwnProperty.call(t, e), r: (t) => {
|
|
9053
|
+
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: true });
|
|
9038
9054
|
} }, e = {};
|
|
9039
9055
|
t.r(e), t.d(e, { XMLBuilder: () => ft, XMLParser: () => st, XMLValidator: () => mt });
|
|
9040
9056
|
const n = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i = new RegExp("^[" + n + "][" + n + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
|
|
9041
|
-
function s(
|
|
9042
|
-
const
|
|
9043
|
-
let
|
|
9044
|
-
for (;
|
|
9045
|
-
const
|
|
9046
|
-
|
|
9047
|
-
const
|
|
9048
|
-
for (let
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
}
|
|
9052
|
-
return
|
|
9053
|
-
}
|
|
9054
|
-
const r = function(
|
|
9055
|
-
return !(i.exec(
|
|
9057
|
+
function s(t, e) {
|
|
9058
|
+
const n = [];
|
|
9059
|
+
let i = e.exec(t);
|
|
9060
|
+
for (;i; ) {
|
|
9061
|
+
const s = [];
|
|
9062
|
+
s.startIndex = e.lastIndex - i[0].length;
|
|
9063
|
+
const r = i.length;
|
|
9064
|
+
for (let t = 0;t < r; t++)
|
|
9065
|
+
s.push(i[t]);
|
|
9066
|
+
n.push(s), i = e.exec(t);
|
|
9067
|
+
}
|
|
9068
|
+
return n;
|
|
9069
|
+
}
|
|
9070
|
+
const r = function(t) {
|
|
9071
|
+
return !(i.exec(t) == null);
|
|
9056
9072
|
}, o = { allowBooleanAttributes: false, unpairedTags: [] };
|
|
9057
|
-
function a(
|
|
9058
|
-
|
|
9059
|
-
const
|
|
9060
|
-
let
|
|
9061
|
-
|
|
9062
|
-
for (let
|
|
9063
|
-
if (
|
|
9064
|
-
if (
|
|
9065
|
-
return
|
|
9073
|
+
function a(t, e) {
|
|
9074
|
+
e = Object.assign({}, o, e);
|
|
9075
|
+
const n = [];
|
|
9076
|
+
let i = false, s = false;
|
|
9077
|
+
t[0] === "\uFEFF" && (t = t.substr(1));
|
|
9078
|
+
for (let o = 0;o < t.length; o++)
|
|
9079
|
+
if (t[o] === "<" && t[o + 1] === "?") {
|
|
9080
|
+
if (o += 2, o = u(t, o), o.err)
|
|
9081
|
+
return o;
|
|
9066
9082
|
} else {
|
|
9067
|
-
if (
|
|
9068
|
-
if (l(
|
|
9083
|
+
if (t[o] !== "<") {
|
|
9084
|
+
if (l(t[o]))
|
|
9069
9085
|
continue;
|
|
9070
|
-
return x("InvalidChar", "char '" +
|
|
9086
|
+
return x("InvalidChar", "char '" + t[o] + "' is not expected.", N(t, o));
|
|
9071
9087
|
}
|
|
9072
9088
|
{
|
|
9073
|
-
let
|
|
9074
|
-
if (
|
|
9075
|
-
|
|
9089
|
+
let a = o;
|
|
9090
|
+
if (o++, t[o] === "!") {
|
|
9091
|
+
o = h(t, o);
|
|
9076
9092
|
continue;
|
|
9077
9093
|
}
|
|
9078
9094
|
{
|
|
9079
|
-
let
|
|
9080
|
-
|
|
9081
|
-
let
|
|
9082
|
-
for (;
|
|
9083
|
-
` &&
|
|
9084
|
-
|
|
9085
|
-
if (
|
|
9086
|
-
let
|
|
9087
|
-
return
|
|
9095
|
+
let d = false;
|
|
9096
|
+
t[o] === "/" && (d = true, o++);
|
|
9097
|
+
let f = "";
|
|
9098
|
+
for (;o < t.length && t[o] !== ">" && t[o] !== " " && t[o] !== "\t" && t[o] !== `
|
|
9099
|
+
` && t[o] !== "\r"; o++)
|
|
9100
|
+
f += t[o];
|
|
9101
|
+
if (f = f.trim(), f[f.length - 1] === "/" && (f = f.substring(0, f.length - 1), o--), !r(f)) {
|
|
9102
|
+
let e;
|
|
9103
|
+
return e = f.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + f + "' is an invalid name.", x("InvalidTag", e, N(t, o));
|
|
9088
9104
|
}
|
|
9089
|
-
const
|
|
9090
|
-
if (
|
|
9091
|
-
return x("InvalidAttr", "Attributes for '" +
|
|
9092
|
-
let
|
|
9093
|
-
if (
|
|
9094
|
-
const
|
|
9095
|
-
|
|
9096
|
-
const
|
|
9097
|
-
if (
|
|
9098
|
-
return x(
|
|
9099
|
-
|
|
9100
|
-
} else if (
|
|
9101
|
-
if (!
|
|
9102
|
-
return x("InvalidTag", "Closing tag '" +
|
|
9103
|
-
if (
|
|
9104
|
-
return x("InvalidTag", "Closing tag '" +
|
|
9105
|
-
if (
|
|
9106
|
-
return x("InvalidTag", "Closing tag '" +
|
|
9105
|
+
const p = c(t, o);
|
|
9106
|
+
if (p === false)
|
|
9107
|
+
return x("InvalidAttr", "Attributes for '" + f + "' have open quote.", N(t, o));
|
|
9108
|
+
let b = p.value;
|
|
9109
|
+
if (o = p.index, b[b.length - 1] === "/") {
|
|
9110
|
+
const n = o - b.length;
|
|
9111
|
+
b = b.substring(0, b.length - 1);
|
|
9112
|
+
const s = g(b, e);
|
|
9113
|
+
if (s !== true)
|
|
9114
|
+
return x(s.err.code, s.err.msg, N(t, n + s.err.line));
|
|
9115
|
+
i = true;
|
|
9116
|
+
} else if (d) {
|
|
9117
|
+
if (!p.tagClosed)
|
|
9118
|
+
return x("InvalidTag", "Closing tag '" + f + "' doesn't have proper closing.", N(t, o));
|
|
9119
|
+
if (b.trim().length > 0)
|
|
9120
|
+
return x("InvalidTag", "Closing tag '" + f + "' can't have attributes or invalid starting.", N(t, a));
|
|
9121
|
+
if (n.length === 0)
|
|
9122
|
+
return x("InvalidTag", "Closing tag '" + f + "' has not been opened.", N(t, a));
|
|
9107
9123
|
{
|
|
9108
|
-
const
|
|
9109
|
-
if (
|
|
9110
|
-
let
|
|
9111
|
-
return x("InvalidTag", "Expected closing tag '" +
|
|
9124
|
+
const e = n.pop();
|
|
9125
|
+
if (f !== e.tagName) {
|
|
9126
|
+
let n = N(t, e.tagStartPos);
|
|
9127
|
+
return x("InvalidTag", "Expected closing tag '" + e.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + f + "'.", N(t, a));
|
|
9112
9128
|
}
|
|
9113
|
-
|
|
9129
|
+
n.length == 0 && (s = true);
|
|
9114
9130
|
}
|
|
9115
9131
|
} else {
|
|
9116
|
-
const
|
|
9117
|
-
if (
|
|
9118
|
-
return x(
|
|
9119
|
-
if (
|
|
9120
|
-
return x("InvalidXml", "Multiple possible root nodes found.", N(
|
|
9121
|
-
|
|
9132
|
+
const r = g(b, e);
|
|
9133
|
+
if (r !== true)
|
|
9134
|
+
return x(r.err.code, r.err.msg, N(t, o - b.length + r.err.line));
|
|
9135
|
+
if (s === true)
|
|
9136
|
+
return x("InvalidXml", "Multiple possible root nodes found.", N(t, o));
|
|
9137
|
+
e.unpairedTags.indexOf(f) !== -1 || n.push({ tagName: f, tagStartPos: a }), i = true;
|
|
9122
9138
|
}
|
|
9123
|
-
for (
|
|
9124
|
-
if (
|
|
9125
|
-
if (
|
|
9126
|
-
|
|
9139
|
+
for (o++;o < t.length; o++)
|
|
9140
|
+
if (t[o] === "<") {
|
|
9141
|
+
if (t[o + 1] === "!") {
|
|
9142
|
+
o++, o = h(t, o);
|
|
9127
9143
|
continue;
|
|
9128
9144
|
}
|
|
9129
|
-
if (
|
|
9145
|
+
if (t[o + 1] !== "?")
|
|
9130
9146
|
break;
|
|
9131
|
-
if (
|
|
9132
|
-
return
|
|
9133
|
-
} else if (
|
|
9134
|
-
const
|
|
9135
|
-
if (
|
|
9136
|
-
return x("InvalidChar", "char '&' is not expected.", N(
|
|
9137
|
-
|
|
9138
|
-
} else if (
|
|
9139
|
-
return x("InvalidXml", "Extra text at the end", N(
|
|
9140
|
-
|
|
9147
|
+
if (o = u(t, ++o), o.err)
|
|
9148
|
+
return o;
|
|
9149
|
+
} else if (t[o] === "&") {
|
|
9150
|
+
const e = m(t, o);
|
|
9151
|
+
if (e == -1)
|
|
9152
|
+
return x("InvalidChar", "char '&' is not expected.", N(t, o));
|
|
9153
|
+
o = e;
|
|
9154
|
+
} else if (s === true && !l(t[o]))
|
|
9155
|
+
return x("InvalidXml", "Extra text at the end", N(t, o));
|
|
9156
|
+
t[o] === "<" && o--;
|
|
9141
9157
|
}
|
|
9142
9158
|
}
|
|
9143
9159
|
}
|
|
9144
|
-
return
|
|
9160
|
+
return i ? n.length == 1 ? x("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", N(t, n[0].tagStartPos)) : !(n.length > 0) || x("InvalidXml", "Invalid '" + JSON.stringify(n.map((t) => t.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : x("InvalidXml", "Start tag expected.", 1);
|
|
9145
9161
|
}
|
|
9146
|
-
function l(
|
|
9147
|
-
return
|
|
9148
|
-
` ||
|
|
9162
|
+
function l(t) {
|
|
9163
|
+
return t === " " || t === "\t" || t === `
|
|
9164
|
+
` || t === "\r";
|
|
9149
9165
|
}
|
|
9150
|
-
function u(
|
|
9151
|
-
const
|
|
9152
|
-
for (;
|
|
9153
|
-
if (
|
|
9166
|
+
function u(t, e) {
|
|
9167
|
+
const n = e;
|
|
9168
|
+
for (;e < t.length; e++)
|
|
9169
|
+
if (t[e] != "?" && t[e] != " ")
|
|
9154
9170
|
;
|
|
9155
9171
|
else {
|
|
9156
|
-
const
|
|
9157
|
-
if (
|
|
9158
|
-
return x("InvalidXml", "XML declaration allowed only at the start of the document.", N(
|
|
9159
|
-
if (
|
|
9160
|
-
|
|
9172
|
+
const i = t.substr(n, e - n);
|
|
9173
|
+
if (e > 5 && i === "xml")
|
|
9174
|
+
return x("InvalidXml", "XML declaration allowed only at the start of the document.", N(t, e));
|
|
9175
|
+
if (t[e] == "?" && t[e + 1] == ">") {
|
|
9176
|
+
e++;
|
|
9161
9177
|
break;
|
|
9162
9178
|
}
|
|
9163
9179
|
}
|
|
9164
|
-
return
|
|
9180
|
+
return e;
|
|
9165
9181
|
}
|
|
9166
|
-
function h(
|
|
9167
|
-
if (
|
|
9168
|
-
for (
|
|
9169
|
-
if (
|
|
9170
|
-
|
|
9182
|
+
function h(t, e) {
|
|
9183
|
+
if (t.length > e + 5 && t[e + 1] === "-" && t[e + 2] === "-") {
|
|
9184
|
+
for (e += 3;e < t.length; e++)
|
|
9185
|
+
if (t[e] === "-" && t[e + 1] === "-" && t[e + 2] === ">") {
|
|
9186
|
+
e += 2;
|
|
9171
9187
|
break;
|
|
9172
9188
|
}
|
|
9173
|
-
} else if (
|
|
9174
|
-
let
|
|
9175
|
-
for (
|
|
9176
|
-
if (
|
|
9177
|
-
|
|
9178
|
-
else if (
|
|
9189
|
+
} else if (t.length > e + 8 && t[e + 1] === "D" && t[e + 2] === "O" && t[e + 3] === "C" && t[e + 4] === "T" && t[e + 5] === "Y" && t[e + 6] === "P" && t[e + 7] === "E") {
|
|
9190
|
+
let n = 1;
|
|
9191
|
+
for (e += 8;e < t.length; e++)
|
|
9192
|
+
if (t[e] === "<")
|
|
9193
|
+
n++;
|
|
9194
|
+
else if (t[e] === ">" && (n--, n === 0))
|
|
9179
9195
|
break;
|
|
9180
|
-
} else if (
|
|
9181
|
-
for (
|
|
9182
|
-
if (
|
|
9183
|
-
|
|
9196
|
+
} else if (t.length > e + 9 && t[e + 1] === "[" && t[e + 2] === "C" && t[e + 3] === "D" && t[e + 4] === "A" && t[e + 5] === "T" && t[e + 6] === "A" && t[e + 7] === "[") {
|
|
9197
|
+
for (e += 8;e < t.length; e++)
|
|
9198
|
+
if (t[e] === "]" && t[e + 1] === "]" && t[e + 2] === ">") {
|
|
9199
|
+
e += 2;
|
|
9184
9200
|
break;
|
|
9185
9201
|
}
|
|
9186
9202
|
}
|
|
9187
|
-
return
|
|
9203
|
+
return e;
|
|
9188
9204
|
}
|
|
9189
9205
|
const d = '"', f = "'";
|
|
9190
|
-
function c(
|
|
9191
|
-
let
|
|
9192
|
-
for (;
|
|
9193
|
-
if (
|
|
9194
|
-
|
|
9195
|
-
else if (
|
|
9196
|
-
|
|
9206
|
+
function c(t, e) {
|
|
9207
|
+
let n = "", i = "", s = false;
|
|
9208
|
+
for (;e < t.length; e++) {
|
|
9209
|
+
if (t[e] === d || t[e] === f)
|
|
9210
|
+
i === "" ? i = t[e] : i !== t[e] || (i = "");
|
|
9211
|
+
else if (t[e] === ">" && i === "") {
|
|
9212
|
+
s = true;
|
|
9197
9213
|
break;
|
|
9198
9214
|
}
|
|
9199
|
-
|
|
9215
|
+
n += t[e];
|
|
9200
9216
|
}
|
|
9201
|
-
return
|
|
9217
|
+
return i === "" && { value: n, index: e, tagClosed: s };
|
|
9202
9218
|
}
|
|
9203
9219
|
const p = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
9204
|
-
function g(
|
|
9205
|
-
const
|
|
9206
|
-
for (let
|
|
9207
|
-
if (
|
|
9208
|
-
return x("InvalidAttr", "Attribute '" +
|
|
9209
|
-
if (
|
|
9210
|
-
return x("InvalidAttr", "Attribute '" +
|
|
9211
|
-
if (
|
|
9212
|
-
return x("InvalidAttr", "boolean attribute '" +
|
|
9213
|
-
const
|
|
9214
|
-
if (!b(
|
|
9215
|
-
return x("InvalidAttr", "Attribute '" +
|
|
9216
|
-
if (
|
|
9217
|
-
return x("InvalidAttr", "Attribute '" +
|
|
9218
|
-
|
|
9220
|
+
function g(t, e) {
|
|
9221
|
+
const n = s(t, p), i = {};
|
|
9222
|
+
for (let t = 0;t < n.length; t++) {
|
|
9223
|
+
if (n[t][1].length === 0)
|
|
9224
|
+
return x("InvalidAttr", "Attribute '" + n[t][2] + "' has no space in starting.", E(n[t]));
|
|
9225
|
+
if (n[t][3] !== undefined && n[t][4] === undefined)
|
|
9226
|
+
return x("InvalidAttr", "Attribute '" + n[t][2] + "' is without value.", E(n[t]));
|
|
9227
|
+
if (n[t][3] === undefined && !e.allowBooleanAttributes)
|
|
9228
|
+
return x("InvalidAttr", "boolean attribute '" + n[t][2] + "' is not allowed.", E(n[t]));
|
|
9229
|
+
const s = n[t][2];
|
|
9230
|
+
if (!b(s))
|
|
9231
|
+
return x("InvalidAttr", "Attribute '" + s + "' is an invalid name.", E(n[t]));
|
|
9232
|
+
if (i.hasOwnProperty(s))
|
|
9233
|
+
return x("InvalidAttr", "Attribute '" + s + "' is repeated.", E(n[t]));
|
|
9234
|
+
i[s] = 1;
|
|
9219
9235
|
}
|
|
9220
9236
|
return true;
|
|
9221
9237
|
}
|
|
9222
|
-
function m(
|
|
9223
|
-
if (
|
|
9238
|
+
function m(t, e) {
|
|
9239
|
+
if (t[++e] === ";")
|
|
9224
9240
|
return -1;
|
|
9225
|
-
if (
|
|
9226
|
-
return function(
|
|
9227
|
-
let
|
|
9228
|
-
for (
|
|
9229
|
-
if (
|
|
9230
|
-
return
|
|
9231
|
-
if (!
|
|
9241
|
+
if (t[e] === "#")
|
|
9242
|
+
return function(t, e) {
|
|
9243
|
+
let n = /\d/;
|
|
9244
|
+
for (t[e] === "x" && (e++, n = /[\da-fA-F]/);e < t.length; e++) {
|
|
9245
|
+
if (t[e] === ";")
|
|
9246
|
+
return e;
|
|
9247
|
+
if (!t[e].match(n))
|
|
9232
9248
|
break;
|
|
9233
9249
|
}
|
|
9234
9250
|
return -1;
|
|
9235
|
-
}(
|
|
9236
|
-
let
|
|
9237
|
-
for (;
|
|
9238
|
-
if (!(
|
|
9239
|
-
if (
|
|
9251
|
+
}(t, ++e);
|
|
9252
|
+
let n = 0;
|
|
9253
|
+
for (;e < t.length; e++, n++)
|
|
9254
|
+
if (!(t[e].match(/\w/) && n < 20)) {
|
|
9255
|
+
if (t[e] === ";")
|
|
9240
9256
|
break;
|
|
9241
9257
|
return -1;
|
|
9242
9258
|
}
|
|
9243
|
-
return
|
|
9259
|
+
return e;
|
|
9244
9260
|
}
|
|
9245
|
-
function x(
|
|
9246
|
-
return { err: { code:
|
|
9261
|
+
function x(t, e, n) {
|
|
9262
|
+
return { err: { code: t, msg: e, line: n.line || n, col: n.col } };
|
|
9247
9263
|
}
|
|
9248
|
-
function b(
|
|
9249
|
-
return r(
|
|
9264
|
+
function b(t) {
|
|
9265
|
+
return r(t);
|
|
9250
9266
|
}
|
|
9251
|
-
function N(
|
|
9252
|
-
const
|
|
9253
|
-
return { line:
|
|
9267
|
+
function N(t, e) {
|
|
9268
|
+
const n = t.substring(0, e).split(/\r?\n/);
|
|
9269
|
+
return { line: n.length, col: n[n.length - 1].length + 1 };
|
|
9254
9270
|
}
|
|
9255
|
-
function E(
|
|
9256
|
-
return
|
|
9271
|
+
function E(t) {
|
|
9272
|
+
return t.startIndex + t[1].length;
|
|
9257
9273
|
}
|
|
9258
|
-
const v = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(
|
|
9259
|
-
return
|
|
9260
|
-
}, attributeValueProcessor: function(
|
|
9261
|
-
return
|
|
9262
|
-
}, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(
|
|
9263
|
-
return
|
|
9274
|
+
const v = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t, e) {
|
|
9275
|
+
return e;
|
|
9276
|
+
}, attributeValueProcessor: function(t, e) {
|
|
9277
|
+
return e;
|
|
9278
|
+
}, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t, e, n) {
|
|
9279
|
+
return t;
|
|
9264
9280
|
}, captureMetaData: false };
|
|
9265
9281
|
let y;
|
|
9266
9282
|
y = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
|
|
9267
9283
|
|
|
9268
9284
|
class T {
|
|
9269
|
-
constructor(
|
|
9270
|
-
this.tagname =
|
|
9285
|
+
constructor(t) {
|
|
9286
|
+
this.tagname = t, this.child = [], this[":@"] = {};
|
|
9271
9287
|
}
|
|
9272
|
-
add(
|
|
9273
|
-
|
|
9288
|
+
add(t, e) {
|
|
9289
|
+
t === "__proto__" && (t = "#__proto__"), this.child.push({ [t]: e });
|
|
9274
9290
|
}
|
|
9275
|
-
addChild(
|
|
9276
|
-
|
|
9291
|
+
addChild(t, e) {
|
|
9292
|
+
t.tagname === "__proto__" && (t.tagname = "#__proto__"), t[":@"] && Object.keys(t[":@"]).length > 0 ? this.child.push({ [t.tagname]: t.child, ":@": t[":@"] }) : this.child.push({ [t.tagname]: t.child }), e !== undefined && (this.child[this.child.length - 1][y] = { startIndex: e });
|
|
9277
9293
|
}
|
|
9278
9294
|
static getMetaDataSymbol() {
|
|
9279
9295
|
return y;
|
|
9280
9296
|
}
|
|
9281
9297
|
}
|
|
9282
|
-
function w(
|
|
9283
|
-
const
|
|
9284
|
-
if (
|
|
9298
|
+
function w(t, e) {
|
|
9299
|
+
const n = {};
|
|
9300
|
+
if (t[e + 3] !== "O" || t[e + 4] !== "C" || t[e + 5] !== "T" || t[e + 6] !== "Y" || t[e + 7] !== "P" || t[e + 8] !== "E")
|
|
9285
9301
|
throw new Error("Invalid Tag instead of DOCTYPE");
|
|
9286
9302
|
{
|
|
9287
|
-
|
|
9288
|
-
let
|
|
9289
|
-
for (;
|
|
9290
|
-
if (
|
|
9291
|
-
if (
|
|
9292
|
-
if (
|
|
9303
|
+
e += 9;
|
|
9304
|
+
let i = 1, s = false, r = false, o = "";
|
|
9305
|
+
for (;e < t.length; e++)
|
|
9306
|
+
if (t[e] !== "<" || r)
|
|
9307
|
+
if (t[e] === ">") {
|
|
9308
|
+
if (r ? t[e - 1] === "-" && t[e - 2] === "-" && (r = false, i--) : i--, i === 0)
|
|
9293
9309
|
break;
|
|
9294
9310
|
} else
|
|
9295
|
-
|
|
9311
|
+
t[e] === "[" ? s = true : o += t[e];
|
|
9296
9312
|
else {
|
|
9297
|
-
if (
|
|
9298
|
-
let
|
|
9299
|
-
|
|
9300
|
-
} else if (
|
|
9301
|
-
|
|
9302
|
-
const { index:
|
|
9303
|
-
|
|
9304
|
-
} else if (
|
|
9305
|
-
|
|
9306
|
-
else if (
|
|
9307
|
-
|
|
9308
|
-
const { index:
|
|
9309
|
-
|
|
9313
|
+
if (s && C(t, "!ENTITY", e)) {
|
|
9314
|
+
let i, s;
|
|
9315
|
+
e += 7, [i, s, e] = O(t, e + 1), s.indexOf("&") === -1 && (n[i] = { regx: RegExp(`&${i};`, "g"), val: s });
|
|
9316
|
+
} else if (s && C(t, "!ELEMENT", e)) {
|
|
9317
|
+
e += 8;
|
|
9318
|
+
const { index: n } = S(t, e + 1);
|
|
9319
|
+
e = n;
|
|
9320
|
+
} else if (s && C(t, "!ATTLIST", e))
|
|
9321
|
+
e += 8;
|
|
9322
|
+
else if (s && C(t, "!NOTATION", e)) {
|
|
9323
|
+
e += 9;
|
|
9324
|
+
const { index: n } = A(t, e + 1);
|
|
9325
|
+
e = n;
|
|
9310
9326
|
} else {
|
|
9311
|
-
if (!C(
|
|
9327
|
+
if (!C(t, "!--", e))
|
|
9312
9328
|
throw new Error("Invalid DOCTYPE");
|
|
9313
|
-
|
|
9329
|
+
r = true;
|
|
9314
9330
|
}
|
|
9315
|
-
|
|
9331
|
+
i++, o = "";
|
|
9316
9332
|
}
|
|
9317
|
-
if (
|
|
9333
|
+
if (i !== 0)
|
|
9318
9334
|
throw new Error("Unclosed DOCTYPE");
|
|
9319
9335
|
}
|
|
9320
|
-
return { entities:
|
|
9336
|
+
return { entities: n, i: e };
|
|
9321
9337
|
}
|
|
9322
|
-
const P = (
|
|
9323
|
-
for (;
|
|
9324
|
-
|
|
9325
|
-
return
|
|
9338
|
+
const P = (t, e) => {
|
|
9339
|
+
for (;e < t.length && /\s/.test(t[e]); )
|
|
9340
|
+
e++;
|
|
9341
|
+
return e;
|
|
9326
9342
|
};
|
|
9327
|
-
function O(
|
|
9328
|
-
|
|
9329
|
-
let
|
|
9330
|
-
for (;
|
|
9331
|
-
|
|
9332
|
-
if ($(
|
|
9343
|
+
function O(t, e) {
|
|
9344
|
+
e = P(t, e);
|
|
9345
|
+
let n = "";
|
|
9346
|
+
for (;e < t.length && !/\s/.test(t[e]) && t[e] !== '"' && t[e] !== "'"; )
|
|
9347
|
+
n += t[e], e++;
|
|
9348
|
+
if ($(n), e = P(t, e), t.substring(e, e + 6).toUpperCase() === "SYSTEM")
|
|
9333
9349
|
throw new Error("External entities are not supported");
|
|
9334
|
-
if (
|
|
9350
|
+
if (t[e] === "%")
|
|
9335
9351
|
throw new Error("Parameter entities are not supported");
|
|
9336
|
-
let
|
|
9337
|
-
return [
|
|
9338
|
-
}
|
|
9339
|
-
function A(
|
|
9340
|
-
|
|
9341
|
-
let
|
|
9342
|
-
for (;
|
|
9343
|
-
|
|
9344
|
-
$(
|
|
9345
|
-
const
|
|
9346
|
-
if (
|
|
9347
|
-
throw new Error(`Expected SYSTEM or PUBLIC, found "${
|
|
9348
|
-
|
|
9349
|
-
let
|
|
9350
|
-
if (
|
|
9351
|
-
[
|
|
9352
|
-
else if (
|
|
9352
|
+
let i = "";
|
|
9353
|
+
return [e, i] = I(t, e, "entity"), [n, i, --e];
|
|
9354
|
+
}
|
|
9355
|
+
function A(t, e) {
|
|
9356
|
+
e = P(t, e);
|
|
9357
|
+
let n = "";
|
|
9358
|
+
for (;e < t.length && !/\s/.test(t[e]); )
|
|
9359
|
+
n += t[e], e++;
|
|
9360
|
+
$(n), e = P(t, e);
|
|
9361
|
+
const i = t.substring(e, e + 6).toUpperCase();
|
|
9362
|
+
if (i !== "SYSTEM" && i !== "PUBLIC")
|
|
9363
|
+
throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
|
|
9364
|
+
e += i.length, e = P(t, e);
|
|
9365
|
+
let s = null, r = null;
|
|
9366
|
+
if (i === "PUBLIC")
|
|
9367
|
+
[e, s] = I(t, e, "publicIdentifier"), t[e = P(t, e)] !== '"' && t[e] !== "'" || ([e, r] = I(t, e, "systemIdentifier"));
|
|
9368
|
+
else if (i === "SYSTEM" && ([e, r] = I(t, e, "systemIdentifier"), !r))
|
|
9353
9369
|
throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
9354
|
-
return { notationName:
|
|
9355
|
-
}
|
|
9356
|
-
function I(
|
|
9357
|
-
let
|
|
9358
|
-
const
|
|
9359
|
-
if (
|
|
9360
|
-
throw new Error(`Expected quoted string, found "${
|
|
9361
|
-
for (
|
|
9362
|
-
|
|
9363
|
-
if (
|
|
9364
|
-
throw new Error(`Unterminated ${
|
|
9365
|
-
return [++
|
|
9366
|
-
}
|
|
9367
|
-
function S(
|
|
9368
|
-
|
|
9369
|
-
let
|
|
9370
|
-
for (;
|
|
9371
|
-
|
|
9372
|
-
if (!$(
|
|
9373
|
-
throw new Error(`Invalid element name: "${
|
|
9374
|
-
let
|
|
9375
|
-
if (
|
|
9376
|
-
|
|
9377
|
-
else if (
|
|
9378
|
-
|
|
9370
|
+
return { notationName: n, publicIdentifier: s, systemIdentifier: r, index: --e };
|
|
9371
|
+
}
|
|
9372
|
+
function I(t, e, n) {
|
|
9373
|
+
let i = "";
|
|
9374
|
+
const s = t[e];
|
|
9375
|
+
if (s !== '"' && s !== "'")
|
|
9376
|
+
throw new Error(`Expected quoted string, found "${s}"`);
|
|
9377
|
+
for (e++;e < t.length && t[e] !== s; )
|
|
9378
|
+
i += t[e], e++;
|
|
9379
|
+
if (t[e] !== s)
|
|
9380
|
+
throw new Error(`Unterminated ${n} value`);
|
|
9381
|
+
return [++e, i];
|
|
9382
|
+
}
|
|
9383
|
+
function S(t, e) {
|
|
9384
|
+
e = P(t, e);
|
|
9385
|
+
let n = "";
|
|
9386
|
+
for (;e < t.length && !/\s/.test(t[e]); )
|
|
9387
|
+
n += t[e], e++;
|
|
9388
|
+
if (!$(n))
|
|
9389
|
+
throw new Error(`Invalid element name: "${n}"`);
|
|
9390
|
+
let i = "";
|
|
9391
|
+
if (t[e = P(t, e)] === "E" && C(t, "MPTY", e))
|
|
9392
|
+
e += 4;
|
|
9393
|
+
else if (t[e] === "A" && C(t, "NY", e))
|
|
9394
|
+
e += 2;
|
|
9379
9395
|
else {
|
|
9380
|
-
if (
|
|
9381
|
-
throw new Error(`Invalid Element Expression, found "${
|
|
9382
|
-
for (
|
|
9383
|
-
|
|
9384
|
-
if (
|
|
9396
|
+
if (t[e] !== "(")
|
|
9397
|
+
throw new Error(`Invalid Element Expression, found "${t[e]}"`);
|
|
9398
|
+
for (e++;e < t.length && t[e] !== ")"; )
|
|
9399
|
+
i += t[e], e++;
|
|
9400
|
+
if (t[e] !== ")")
|
|
9385
9401
|
throw new Error("Unterminated content model");
|
|
9386
9402
|
}
|
|
9387
|
-
return { elementName:
|
|
9403
|
+
return { elementName: n, contentModel: i.trim(), index: e };
|
|
9388
9404
|
}
|
|
9389
|
-
function C(
|
|
9390
|
-
for (let
|
|
9391
|
-
if (
|
|
9405
|
+
function C(t, e, n) {
|
|
9406
|
+
for (let i = 0;i < e.length; i++)
|
|
9407
|
+
if (e[i] !== t[n + i + 1])
|
|
9392
9408
|
return false;
|
|
9393
9409
|
return true;
|
|
9394
9410
|
}
|
|
9395
|
-
function $(
|
|
9396
|
-
if (r(
|
|
9397
|
-
return
|
|
9398
|
-
throw new Error(`Invalid entity name ${
|
|
9411
|
+
function $(t) {
|
|
9412
|
+
if (r(t))
|
|
9413
|
+
return t;
|
|
9414
|
+
throw new Error(`Invalid entity name ${t}`);
|
|
9399
9415
|
}
|
|
9400
9416
|
const j = /^[-+]?0x[a-fA-F0-9]+$/, D = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
|
|
9401
9417
|
const M = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
9402
|
-
function _(
|
|
9403
|
-
return typeof
|
|
9404
|
-
for (const
|
|
9405
|
-
if (typeof
|
|
9418
|
+
function _(t) {
|
|
9419
|
+
return typeof t == "function" ? t : Array.isArray(t) ? (e) => {
|
|
9420
|
+
for (const n of t) {
|
|
9421
|
+
if (typeof n == "string" && e === n)
|
|
9406
9422
|
return true;
|
|
9407
|
-
if (
|
|
9423
|
+
if (n instanceof RegExp && n.test(e))
|
|
9408
9424
|
return true;
|
|
9409
9425
|
}
|
|
9410
9426
|
} : () => false;
|
|
9411
9427
|
}
|
|
9412
9428
|
|
|
9413
9429
|
class k {
|
|
9414
|
-
constructor(
|
|
9415
|
-
this.options =
|
|
9430
|
+
constructor(t) {
|
|
9431
|
+
this.options = t, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t, e) => String.fromCodePoint(Number.parseInt(e, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t, e) => String.fromCodePoint(Number.parseInt(e, 16)) } }, this.addExternalEntities = F, this.parseXml = X, this.parseTextData = L, this.resolveNameSpace = B, this.buildAttributesMap = G, this.isItStopNode = Z, this.replaceEntitiesValue = R, this.readStopNodeData = J, this.saveTextToParentTag = q, this.addChild = Y, this.ignoreAttributesFn = _(this.options.ignoreAttributes);
|
|
9416
9432
|
}
|
|
9417
9433
|
}
|
|
9418
|
-
function F(
|
|
9419
|
-
const
|
|
9420
|
-
for (let
|
|
9421
|
-
const
|
|
9422
|
-
this.lastEntities[
|
|
9434
|
+
function F(t) {
|
|
9435
|
+
const e = Object.keys(t);
|
|
9436
|
+
for (let n = 0;n < e.length; n++) {
|
|
9437
|
+
const i = e[n];
|
|
9438
|
+
this.lastEntities[i] = { regex: new RegExp("&" + i + ";", "g"), val: t[i] };
|
|
9423
9439
|
}
|
|
9424
9440
|
}
|
|
9425
|
-
function L(
|
|
9426
|
-
if (
|
|
9427
|
-
|
|
9428
|
-
const
|
|
9429
|
-
return
|
|
9441
|
+
function L(t, e, n, i, s, r, o) {
|
|
9442
|
+
if (t !== undefined && (this.options.trimValues && !i && (t = t.trim()), t.length > 0)) {
|
|
9443
|
+
o || (t = this.replaceEntitiesValue(t));
|
|
9444
|
+
const i = this.options.tagValueProcessor(e, t, n, s, r);
|
|
9445
|
+
return i == null ? t : typeof i != typeof t || i !== t ? i : this.options.trimValues || t.trim() === t ? H(t, this.options.parseTagValue, this.options.numberParseOptions) : t;
|
|
9430
9446
|
}
|
|
9431
9447
|
}
|
|
9432
|
-
function B(
|
|
9448
|
+
function B(t) {
|
|
9433
9449
|
if (this.options.removeNSPrefix) {
|
|
9434
|
-
const
|
|
9435
|
-
if (
|
|
9450
|
+
const e = t.split(":"), n = t.charAt(0) === "/" ? "/" : "";
|
|
9451
|
+
if (e[0] === "xmlns")
|
|
9436
9452
|
return "";
|
|
9437
|
-
|
|
9453
|
+
e.length === 2 && (t = n + e[1]);
|
|
9438
9454
|
}
|
|
9439
|
-
return
|
|
9455
|
+
return t;
|
|
9440
9456
|
}
|
|
9441
9457
|
const U = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
9442
|
-
function G(
|
|
9443
|
-
if (this.options.ignoreAttributes !== true && typeof
|
|
9444
|
-
const
|
|
9445
|
-
for (let
|
|
9446
|
-
const
|
|
9447
|
-
if (this.ignoreAttributesFn(
|
|
9458
|
+
function G(t, e, n) {
|
|
9459
|
+
if (this.options.ignoreAttributes !== true && typeof t == "string") {
|
|
9460
|
+
const n = s(t, U), i = n.length, r = {};
|
|
9461
|
+
for (let t = 0;t < i; t++) {
|
|
9462
|
+
const i = this.resolveNameSpace(n[t][1]);
|
|
9463
|
+
if (this.ignoreAttributesFn(i, e))
|
|
9448
9464
|
continue;
|
|
9449
|
-
let
|
|
9450
|
-
if (
|
|
9451
|
-
if (this.options.transformAttributeName && (
|
|
9452
|
-
this.options.trimValues && (
|
|
9453
|
-
const
|
|
9454
|
-
|
|
9465
|
+
let s = n[t][4], o = this.options.attributeNamePrefix + i;
|
|
9466
|
+
if (i.length)
|
|
9467
|
+
if (this.options.transformAttributeName && (o = this.options.transformAttributeName(o)), o === "__proto__" && (o = "#__proto__"), s !== undefined) {
|
|
9468
|
+
this.options.trimValues && (s = s.trim()), s = this.replaceEntitiesValue(s);
|
|
9469
|
+
const t = this.options.attributeValueProcessor(i, s, e);
|
|
9470
|
+
r[o] = t == null ? s : typeof t != typeof s || t !== s ? t : H(s, this.options.parseAttributeValue, this.options.numberParseOptions);
|
|
9455
9471
|
} else
|
|
9456
|
-
this.options.allowBooleanAttributes && (
|
|
9472
|
+
this.options.allowBooleanAttributes && (r[o] = true);
|
|
9457
9473
|
}
|
|
9458
|
-
if (!Object.keys(
|
|
9474
|
+
if (!Object.keys(r).length)
|
|
9459
9475
|
return;
|
|
9460
9476
|
if (this.options.attributesGroupName) {
|
|
9461
|
-
const
|
|
9462
|
-
return
|
|
9477
|
+
const t = {};
|
|
9478
|
+
return t[this.options.attributesGroupName] = r, t;
|
|
9463
9479
|
}
|
|
9464
|
-
return
|
|
9480
|
+
return r;
|
|
9465
9481
|
}
|
|
9466
9482
|
}
|
|
9467
|
-
const X = function(
|
|
9468
|
-
|
|
9483
|
+
const X = function(t) {
|
|
9484
|
+
t = t.replace(/\r\n?/g, `
|
|
9469
9485
|
`);
|
|
9470
|
-
const
|
|
9471
|
-
let
|
|
9472
|
-
for (let
|
|
9473
|
-
if (
|
|
9474
|
-
if (
|
|
9475
|
-
const
|
|
9476
|
-
let
|
|
9486
|
+
const e = new T("!xml");
|
|
9487
|
+
let n = e, i = "", s = "";
|
|
9488
|
+
for (let r = 0;r < t.length; r++)
|
|
9489
|
+
if (t[r] === "<")
|
|
9490
|
+
if (t[r + 1] === "/") {
|
|
9491
|
+
const e = W(t, ">", r, "Closing Tag is not closed.");
|
|
9492
|
+
let o = t.substring(r + 2, e).trim();
|
|
9477
9493
|
if (this.options.removeNSPrefix) {
|
|
9478
|
-
const
|
|
9479
|
-
|
|
9494
|
+
const t = o.indexOf(":");
|
|
9495
|
+
t !== -1 && (o = o.substr(t + 1));
|
|
9480
9496
|
}
|
|
9481
|
-
this.options.transformTagName && (
|
|
9482
|
-
const
|
|
9483
|
-
if (
|
|
9484
|
-
throw new Error(`Unpaired tag can not be used as closing tag: </${
|
|
9485
|
-
let
|
|
9486
|
-
|
|
9487
|
-
} else if (
|
|
9488
|
-
let
|
|
9489
|
-
if (!
|
|
9497
|
+
this.options.transformTagName && (o = this.options.transformTagName(o)), n && (i = this.saveTextToParentTag(i, n, s));
|
|
9498
|
+
const a = s.substring(s.lastIndexOf(".") + 1);
|
|
9499
|
+
if (o && this.options.unpairedTags.indexOf(o) !== -1)
|
|
9500
|
+
throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);
|
|
9501
|
+
let l = 0;
|
|
9502
|
+
a && this.options.unpairedTags.indexOf(a) !== -1 ? (l = s.lastIndexOf(".", s.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l = s.lastIndexOf("."), s = s.substring(0, l), n = this.tagsNodeStack.pop(), i = "", r = e;
|
|
9503
|
+
} else if (t[r + 1] === "?") {
|
|
9504
|
+
let e = z(t, r, false, "?>");
|
|
9505
|
+
if (!e)
|
|
9490
9506
|
throw new Error("Pi Tag is not closed.");
|
|
9491
|
-
if (
|
|
9507
|
+
if (i = this.saveTextToParentTag(i, n, s), this.options.ignoreDeclaration && e.tagName === "?xml" || this.options.ignorePiTags)
|
|
9492
9508
|
;
|
|
9493
9509
|
else {
|
|
9494
|
-
const
|
|
9495
|
-
|
|
9510
|
+
const t = new T(e.tagName);
|
|
9511
|
+
t.add(this.options.textNodeName, ""), e.tagName !== e.tagExp && e.attrExpPresent && (t[":@"] = this.buildAttributesMap(e.tagExp, s, e.tagName)), this.addChild(n, t, s, r);
|
|
9496
9512
|
}
|
|
9497
|
-
|
|
9498
|
-
} else if (
|
|
9499
|
-
const
|
|
9513
|
+
r = e.closeIndex + 1;
|
|
9514
|
+
} else if (t.substr(r + 1, 3) === "!--") {
|
|
9515
|
+
const e = W(t, "-->", r + 4, "Comment is not closed.");
|
|
9500
9516
|
if (this.options.commentPropName) {
|
|
9501
|
-
const
|
|
9502
|
-
|
|
9517
|
+
const o = t.substring(r + 4, e - 2);
|
|
9518
|
+
i = this.saveTextToParentTag(i, n, s), n.add(this.options.commentPropName, [{ [this.options.textNodeName]: o }]);
|
|
9503
9519
|
}
|
|
9504
|
-
|
|
9505
|
-
} else if (
|
|
9506
|
-
const
|
|
9507
|
-
this.docTypeEntities =
|
|
9508
|
-
} else if (
|
|
9509
|
-
const
|
|
9510
|
-
|
|
9511
|
-
let
|
|
9512
|
-
|
|
9520
|
+
r = e;
|
|
9521
|
+
} else if (t.substr(r + 1, 2) === "!D") {
|
|
9522
|
+
const e = w(t, r);
|
|
9523
|
+
this.docTypeEntities = e.entities, r = e.i;
|
|
9524
|
+
} else if (t.substr(r + 1, 2) === "![") {
|
|
9525
|
+
const e = W(t, "]]>", r, "CDATA is not closed.") - 2, o = t.substring(r + 9, e);
|
|
9526
|
+
i = this.saveTextToParentTag(i, n, s);
|
|
9527
|
+
let a = this.parseTextData(o, n.tagname, s, true, false, true, true);
|
|
9528
|
+
a == null && (a = ""), this.options.cdataPropName ? n.add(this.options.cdataPropName, [{ [this.options.textNodeName]: o }]) : n.add(this.options.textNodeName, a), r = e + 2;
|
|
9513
9529
|
} else {
|
|
9514
|
-
let
|
|
9515
|
-
const
|
|
9516
|
-
let { tagExp:
|
|
9517
|
-
this.options.transformTagName && (
|
|
9518
|
-
const
|
|
9519
|
-
|
|
9520
|
-
const
|
|
9521
|
-
if (this.isItStopNode(this.options.stopNodes,
|
|
9522
|
-
let
|
|
9523
|
-
if (
|
|
9524
|
-
|
|
9525
|
-
else if (this.options.unpairedTags.indexOf(
|
|
9526
|
-
|
|
9530
|
+
let o = z(t, r, this.options.removeNSPrefix), a = o.tagName;
|
|
9531
|
+
const l = o.rawTagName;
|
|
9532
|
+
let { tagExp: u, attrExpPresent: h, closeIndex: d } = o;
|
|
9533
|
+
this.options.transformTagName && (a = this.options.transformTagName(a)), n && i && n.tagname !== "!xml" && (i = this.saveTextToParentTag(i, n, s, false));
|
|
9534
|
+
const f = n;
|
|
9535
|
+
f && this.options.unpairedTags.indexOf(f.tagname) !== -1 && (n = this.tagsNodeStack.pop(), s = s.substring(0, s.lastIndexOf("."))), a !== e.tagname && (s += s ? "." + a : a);
|
|
9536
|
+
const c = r;
|
|
9537
|
+
if (this.isItStopNode(this.options.stopNodes, s, a)) {
|
|
9538
|
+
let e = "";
|
|
9539
|
+
if (u.length > 0 && u.lastIndexOf("/") === u.length - 1)
|
|
9540
|
+
a[a.length - 1] === "/" ? (a = a.substr(0, a.length - 1), s = s.substr(0, s.length - 1), u = a) : u = u.substr(0, u.length - 1), r = o.closeIndex;
|
|
9541
|
+
else if (this.options.unpairedTags.indexOf(a) !== -1)
|
|
9542
|
+
r = o.closeIndex;
|
|
9527
9543
|
else {
|
|
9528
|
-
const
|
|
9529
|
-
if (!
|
|
9530
|
-
throw new Error(`Unexpected end of ${
|
|
9531
|
-
|
|
9544
|
+
const n = this.readStopNodeData(t, l, d + 1);
|
|
9545
|
+
if (!n)
|
|
9546
|
+
throw new Error(`Unexpected end of ${l}`);
|
|
9547
|
+
r = n.i, e = n.tagContent;
|
|
9532
9548
|
}
|
|
9533
|
-
const
|
|
9534
|
-
|
|
9549
|
+
const i = new T(a);
|
|
9550
|
+
a !== u && h && (i[":@"] = this.buildAttributesMap(u, s, a)), e && (e = this.parseTextData(e, a, s, true, h, true, true)), s = s.substr(0, s.lastIndexOf(".")), i.add(this.options.textNodeName, e), this.addChild(n, i, s, c);
|
|
9535
9551
|
} else {
|
|
9536
|
-
if (
|
|
9537
|
-
|
|
9538
|
-
const
|
|
9539
|
-
|
|
9552
|
+
if (u.length > 0 && u.lastIndexOf("/") === u.length - 1) {
|
|
9553
|
+
a[a.length - 1] === "/" ? (a = a.substr(0, a.length - 1), s = s.substr(0, s.length - 1), u = a) : u = u.substr(0, u.length - 1), this.options.transformTagName && (a = this.options.transformTagName(a));
|
|
9554
|
+
const t = new T(a);
|
|
9555
|
+
a !== u && h && (t[":@"] = this.buildAttributesMap(u, s, a)), this.addChild(n, t, s, c), s = s.substr(0, s.lastIndexOf("."));
|
|
9540
9556
|
} else {
|
|
9541
|
-
const
|
|
9542
|
-
this.tagsNodeStack.push(
|
|
9557
|
+
const t = new T(a);
|
|
9558
|
+
this.tagsNodeStack.push(n), a !== u && h && (t[":@"] = this.buildAttributesMap(u, s, a)), this.addChild(n, t, s, c), n = t;
|
|
9543
9559
|
}
|
|
9544
|
-
|
|
9560
|
+
i = "", r = d;
|
|
9545
9561
|
}
|
|
9546
9562
|
}
|
|
9547
9563
|
else
|
|
9548
|
-
|
|
9549
|
-
return
|
|
9564
|
+
i += t[r];
|
|
9565
|
+
return e.child;
|
|
9550
9566
|
};
|
|
9551
|
-
function Y(
|
|
9552
|
-
this.options.captureMetaData || (
|
|
9553
|
-
const
|
|
9554
|
-
|
|
9567
|
+
function Y(t, e, n, i) {
|
|
9568
|
+
this.options.captureMetaData || (i = undefined);
|
|
9569
|
+
const s = this.options.updateTag(e.tagname, n, e[":@"]);
|
|
9570
|
+
s === false || (typeof s == "string" ? (e.tagname = s, t.addChild(e, i)) : t.addChild(e, i));
|
|
9555
9571
|
}
|
|
9556
|
-
const R = function(
|
|
9572
|
+
const R = function(t) {
|
|
9557
9573
|
if (this.options.processEntities) {
|
|
9558
|
-
for (let
|
|
9559
|
-
const
|
|
9560
|
-
|
|
9574
|
+
for (let e in this.docTypeEntities) {
|
|
9575
|
+
const n = this.docTypeEntities[e];
|
|
9576
|
+
t = t.replace(n.regx, n.val);
|
|
9561
9577
|
}
|
|
9562
|
-
for (let
|
|
9563
|
-
const
|
|
9564
|
-
|
|
9578
|
+
for (let e in this.lastEntities) {
|
|
9579
|
+
const n = this.lastEntities[e];
|
|
9580
|
+
t = t.replace(n.regex, n.val);
|
|
9565
9581
|
}
|
|
9566
9582
|
if (this.options.htmlEntities)
|
|
9567
|
-
for (let
|
|
9568
|
-
const
|
|
9569
|
-
|
|
9583
|
+
for (let e in this.htmlEntities) {
|
|
9584
|
+
const n = this.htmlEntities[e];
|
|
9585
|
+
t = t.replace(n.regex, n.val);
|
|
9570
9586
|
}
|
|
9571
|
-
|
|
9587
|
+
t = t.replace(this.ampEntity.regex, this.ampEntity.val);
|
|
9572
9588
|
}
|
|
9573
|
-
return
|
|
9589
|
+
return t;
|
|
9574
9590
|
};
|
|
9575
|
-
function q(
|
|
9576
|
-
return
|
|
9577
|
-
}
|
|
9578
|
-
function Z(
|
|
9579
|
-
const
|
|
9580
|
-
for (const
|
|
9581
|
-
const
|
|
9582
|
-
if (
|
|
9591
|
+
function q(t, e, n, i) {
|
|
9592
|
+
return t && (i === undefined && (i = e.child.length === 0), (t = this.parseTextData(t, e.tagname, n, false, !!e[":@"] && Object.keys(e[":@"]).length !== 0, i)) !== undefined && t !== "" && e.add(this.options.textNodeName, t), t = ""), t;
|
|
9593
|
+
}
|
|
9594
|
+
function Z(t, e, n) {
|
|
9595
|
+
const i = "*." + n;
|
|
9596
|
+
for (const n in t) {
|
|
9597
|
+
const s = t[n];
|
|
9598
|
+
if (i === s || e === s)
|
|
9583
9599
|
return true;
|
|
9584
9600
|
}
|
|
9585
9601
|
return false;
|
|
9586
9602
|
}
|
|
9587
|
-
function W(
|
|
9588
|
-
const
|
|
9589
|
-
if (
|
|
9590
|
-
throw new Error(
|
|
9591
|
-
return
|
|
9592
|
-
}
|
|
9593
|
-
function z(
|
|
9594
|
-
const
|
|
9595
|
-
let
|
|
9596
|
-
for (let
|
|
9597
|
-
let
|
|
9598
|
-
if (
|
|
9599
|
-
|
|
9600
|
-
else if (
|
|
9601
|
-
|
|
9602
|
-
else if (
|
|
9603
|
-
if (!
|
|
9604
|
-
return { data:
|
|
9605
|
-
if (
|
|
9606
|
-
return { data:
|
|
9603
|
+
function W(t, e, n, i) {
|
|
9604
|
+
const s = t.indexOf(e, n);
|
|
9605
|
+
if (s === -1)
|
|
9606
|
+
throw new Error(i);
|
|
9607
|
+
return s + e.length - 1;
|
|
9608
|
+
}
|
|
9609
|
+
function z(t, e, n, i = ">") {
|
|
9610
|
+
const s = function(t, e, n = ">") {
|
|
9611
|
+
let i, s = "";
|
|
9612
|
+
for (let r = e;r < t.length; r++) {
|
|
9613
|
+
let e = t[r];
|
|
9614
|
+
if (i)
|
|
9615
|
+
e === i && (i = "");
|
|
9616
|
+
else if (e === '"' || e === "'")
|
|
9617
|
+
i = e;
|
|
9618
|
+
else if (e === n[0]) {
|
|
9619
|
+
if (!n[1])
|
|
9620
|
+
return { data: s, index: r };
|
|
9621
|
+
if (t[r + 1] === n[1])
|
|
9622
|
+
return { data: s, index: r };
|
|
9607
9623
|
} else
|
|
9608
|
-
|
|
9609
|
-
|
|
9624
|
+
e === "\t" && (e = " ");
|
|
9625
|
+
s += e;
|
|
9610
9626
|
}
|
|
9611
|
-
}(
|
|
9612
|
-
if (!
|
|
9627
|
+
}(t, e + 1, i);
|
|
9628
|
+
if (!s)
|
|
9613
9629
|
return;
|
|
9614
|
-
let
|
|
9615
|
-
const
|
|
9616
|
-
let
|
|
9617
|
-
|
|
9618
|
-
const
|
|
9619
|
-
if (
|
|
9620
|
-
const
|
|
9621
|
-
|
|
9622
|
-
}
|
|
9623
|
-
return { tagName:
|
|
9624
|
-
}
|
|
9625
|
-
function J(
|
|
9626
|
-
const
|
|
9627
|
-
let
|
|
9628
|
-
for (;
|
|
9629
|
-
if (
|
|
9630
|
-
if (
|
|
9631
|
-
const
|
|
9632
|
-
if (
|
|
9633
|
-
return { tagContent:
|
|
9634
|
-
|
|
9635
|
-
} else if (
|
|
9636
|
-
|
|
9637
|
-
else if (
|
|
9638
|
-
|
|
9639
|
-
else if (
|
|
9640
|
-
|
|
9630
|
+
let r = s.data;
|
|
9631
|
+
const o = s.index, a = r.search(/\s/);
|
|
9632
|
+
let l = r, u = true;
|
|
9633
|
+
a !== -1 && (l = r.substring(0, a), r = r.substring(a + 1).trimStart());
|
|
9634
|
+
const h = l;
|
|
9635
|
+
if (n) {
|
|
9636
|
+
const t = l.indexOf(":");
|
|
9637
|
+
t !== -1 && (l = l.substr(t + 1), u = l !== s.data.substr(t + 1));
|
|
9638
|
+
}
|
|
9639
|
+
return { tagName: l, tagExp: r, closeIndex: o, attrExpPresent: u, rawTagName: h };
|
|
9640
|
+
}
|
|
9641
|
+
function J(t, e, n) {
|
|
9642
|
+
const i = n;
|
|
9643
|
+
let s = 1;
|
|
9644
|
+
for (;n < t.length; n++)
|
|
9645
|
+
if (t[n] === "<")
|
|
9646
|
+
if (t[n + 1] === "/") {
|
|
9647
|
+
const r = W(t, ">", n, `${e} is not closed`);
|
|
9648
|
+
if (t.substring(n + 2, r).trim() === e && (s--, s === 0))
|
|
9649
|
+
return { tagContent: t.substring(i, n), i: r };
|
|
9650
|
+
n = r;
|
|
9651
|
+
} else if (t[n + 1] === "?")
|
|
9652
|
+
n = W(t, "?>", n + 1, "StopNode is not closed.");
|
|
9653
|
+
else if (t.substr(n + 1, 3) === "!--")
|
|
9654
|
+
n = W(t, "-->", n + 3, "StopNode is not closed.");
|
|
9655
|
+
else if (t.substr(n + 1, 2) === "![")
|
|
9656
|
+
n = W(t, "]]>", n, "StopNode is not closed.") - 2;
|
|
9641
9657
|
else {
|
|
9642
|
-
const
|
|
9643
|
-
|
|
9658
|
+
const i = z(t, n, ">");
|
|
9659
|
+
i && ((i && i.tagName) === e && i.tagExp[i.tagExp.length - 1] !== "/" && s++, n = i.closeIndex);
|
|
9644
9660
|
}
|
|
9645
9661
|
}
|
|
9646
|
-
function H(
|
|
9647
|
-
if (
|
|
9648
|
-
const
|
|
9649
|
-
return
|
|
9650
|
-
if (
|
|
9651
|
-
return
|
|
9652
|
-
let
|
|
9653
|
-
if (
|
|
9654
|
-
return
|
|
9655
|
-
if (
|
|
9662
|
+
function H(t, e, n) {
|
|
9663
|
+
if (e && typeof t == "string") {
|
|
9664
|
+
const e = t.trim();
|
|
9665
|
+
return e === "true" || e !== "false" && function(t, e = {}) {
|
|
9666
|
+
if (e = Object.assign({}, V, e), !t || typeof t != "string")
|
|
9667
|
+
return t;
|
|
9668
|
+
let n = t.trim();
|
|
9669
|
+
if (e.skipLike !== undefined && e.skipLike.test(n))
|
|
9670
|
+
return t;
|
|
9671
|
+
if (t === "0")
|
|
9656
9672
|
return 0;
|
|
9657
|
-
if (
|
|
9658
|
-
return function(
|
|
9673
|
+
if (e.hex && j.test(n))
|
|
9674
|
+
return function(t) {
|
|
9659
9675
|
if (parseInt)
|
|
9660
|
-
return parseInt(
|
|
9676
|
+
return parseInt(t, 16);
|
|
9661
9677
|
if (Number.parseInt)
|
|
9662
|
-
return Number.parseInt(
|
|
9678
|
+
return Number.parseInt(t, 16);
|
|
9663
9679
|
if (window && window.parseInt)
|
|
9664
|
-
return window.parseInt(
|
|
9680
|
+
return window.parseInt(t, 16);
|
|
9665
9681
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
9666
|
-
}(
|
|
9667
|
-
if (
|
|
9668
|
-
return function(
|
|
9669
|
-
if (!
|
|
9670
|
-
return
|
|
9671
|
-
const
|
|
9672
|
-
if (
|
|
9673
|
-
let
|
|
9674
|
-
const
|
|
9675
|
-
return
|
|
9682
|
+
}(n);
|
|
9683
|
+
if (n.search(/.+[eE].+/) !== -1)
|
|
9684
|
+
return function(t, e, n) {
|
|
9685
|
+
if (!n.eNotation)
|
|
9686
|
+
return t;
|
|
9687
|
+
const i = e.match(M);
|
|
9688
|
+
if (i) {
|
|
9689
|
+
let s = i[1] || "";
|
|
9690
|
+
const r = i[3].indexOf("e") === -1 ? "E" : "e", o = i[2], a = s ? t[o.length + 1] === r : t[o.length] === r;
|
|
9691
|
+
return o.length > 1 && a ? t : o.length !== 1 || !i[3].startsWith(`.${r}`) && i[3][0] !== r ? n.leadingZeros && !a ? (e = (i[1] || "") + i[3], Number(e)) : t : Number(e);
|
|
9676
9692
|
}
|
|
9677
|
-
return
|
|
9678
|
-
}(
|
|
9693
|
+
return t;
|
|
9694
|
+
}(t, n, e);
|
|
9679
9695
|
{
|
|
9680
|
-
const
|
|
9681
|
-
if (
|
|
9682
|
-
const
|
|
9683
|
-
let
|
|
9684
|
-
const
|
|
9685
|
-
if (!
|
|
9686
|
-
return
|
|
9696
|
+
const s = D.exec(n);
|
|
9697
|
+
if (s) {
|
|
9698
|
+
const r = s[1] || "", o = s[2];
|
|
9699
|
+
let a = (i = s[3]) && i.indexOf(".") !== -1 ? ((i = i.replace(/0+$/, "")) === "." ? i = "0" : i[0] === "." ? i = "0" + i : i[i.length - 1] === "." && (i = i.substring(0, i.length - 1)), i) : i;
|
|
9700
|
+
const l = r ? t[o.length + 1] === "." : t[o.length] === ".";
|
|
9701
|
+
if (!e.leadingZeros && (o.length > 1 || o.length === 1 && !l))
|
|
9702
|
+
return t;
|
|
9687
9703
|
{
|
|
9688
|
-
const
|
|
9689
|
-
if (
|
|
9690
|
-
return
|
|
9691
|
-
if (
|
|
9692
|
-
return
|
|
9693
|
-
if (
|
|
9694
|
-
return
|
|
9695
|
-
let
|
|
9696
|
-
return
|
|
9704
|
+
const i = Number(n), s = String(i);
|
|
9705
|
+
if (i === 0 || i === -0)
|
|
9706
|
+
return i;
|
|
9707
|
+
if (s.search(/[eE]/) !== -1)
|
|
9708
|
+
return e.eNotation ? i : t;
|
|
9709
|
+
if (n.indexOf(".") !== -1)
|
|
9710
|
+
return s === "0" || s === a || s === `${r}${a}` ? i : t;
|
|
9711
|
+
let l = o ? a : n;
|
|
9712
|
+
return o ? l === s || r + l === s ? i : t : l === s || l === r + s ? i : t;
|
|
9697
9713
|
}
|
|
9698
9714
|
}
|
|
9699
|
-
return
|
|
9715
|
+
return t;
|
|
9700
9716
|
}
|
|
9701
|
-
var
|
|
9702
|
-
}(
|
|
9717
|
+
var i;
|
|
9718
|
+
}(t, n);
|
|
9703
9719
|
}
|
|
9704
|
-
return
|
|
9720
|
+
return t !== undefined ? t : "";
|
|
9705
9721
|
}
|
|
9706
9722
|
const K = T.getMetaDataSymbol();
|
|
9707
|
-
function Q(
|
|
9708
|
-
return tt(
|
|
9709
|
-
}
|
|
9710
|
-
function tt(
|
|
9711
|
-
let
|
|
9712
|
-
const
|
|
9713
|
-
for (let
|
|
9714
|
-
const
|
|
9715
|
-
let
|
|
9716
|
-
if (
|
|
9717
|
-
|
|
9723
|
+
function Q(t, e) {
|
|
9724
|
+
return tt(t, e);
|
|
9725
|
+
}
|
|
9726
|
+
function tt(t, e, n) {
|
|
9727
|
+
let i;
|
|
9728
|
+
const s = {};
|
|
9729
|
+
for (let r = 0;r < t.length; r++) {
|
|
9730
|
+
const o = t[r], a = et(o);
|
|
9731
|
+
let l = "";
|
|
9732
|
+
if (l = n === undefined ? a : n + "." + a, a === e.textNodeName)
|
|
9733
|
+
i === undefined ? i = o[a] : i += "" + o[a];
|
|
9718
9734
|
else {
|
|
9719
|
-
if (
|
|
9735
|
+
if (a === undefined)
|
|
9720
9736
|
continue;
|
|
9721
|
-
if (
|
|
9722
|
-
let
|
|
9723
|
-
const
|
|
9724
|
-
|
|
9737
|
+
if (o[a]) {
|
|
9738
|
+
let t = tt(o[a], e, l);
|
|
9739
|
+
const n = it(t, e);
|
|
9740
|
+
o[K] !== undefined && (t[K] = o[K]), o[":@"] ? nt(t, o[":@"], l, e) : Object.keys(t).length !== 1 || t[e.textNodeName] === undefined || e.alwaysCreateTextNode ? Object.keys(t).length === 0 && (e.alwaysCreateTextNode ? t[e.textNodeName] = "" : t = "") : t = t[e.textNodeName], s[a] !== undefined && s.hasOwnProperty(a) ? (Array.isArray(s[a]) || (s[a] = [s[a]]), s[a].push(t)) : e.isArray(a, l, n) ? s[a] = [t] : s[a] = t;
|
|
9725
9741
|
}
|
|
9726
9742
|
}
|
|
9727
9743
|
}
|
|
9728
|
-
return typeof
|
|
9744
|
+
return typeof i == "string" ? i.length > 0 && (s[e.textNodeName] = i) : i !== undefined && (s[e.textNodeName] = i), s;
|
|
9729
9745
|
}
|
|
9730
|
-
function et(
|
|
9731
|
-
const
|
|
9732
|
-
for (let
|
|
9733
|
-
const
|
|
9734
|
-
if (
|
|
9735
|
-
return
|
|
9746
|
+
function et(t) {
|
|
9747
|
+
const e = Object.keys(t);
|
|
9748
|
+
for (let t = 0;t < e.length; t++) {
|
|
9749
|
+
const n = e[t];
|
|
9750
|
+
if (n !== ":@")
|
|
9751
|
+
return n;
|
|
9736
9752
|
}
|
|
9737
9753
|
}
|
|
9738
|
-
function nt(
|
|
9739
|
-
if (
|
|
9740
|
-
const
|
|
9741
|
-
for (let
|
|
9742
|
-
const
|
|
9743
|
-
|
|
9754
|
+
function nt(t, e, n, i) {
|
|
9755
|
+
if (e) {
|
|
9756
|
+
const s = Object.keys(e), r = s.length;
|
|
9757
|
+
for (let o = 0;o < r; o++) {
|
|
9758
|
+
const r = s[o];
|
|
9759
|
+
i.isArray(r, n + "." + r, true, true) ? t[r] = [e[r]] : t[r] = e[r];
|
|
9744
9760
|
}
|
|
9745
9761
|
}
|
|
9746
9762
|
}
|
|
9747
|
-
function it(
|
|
9748
|
-
const { textNodeName:
|
|
9749
|
-
return
|
|
9763
|
+
function it(t, e) {
|
|
9764
|
+
const { textNodeName: n } = e, i = Object.keys(t).length;
|
|
9765
|
+
return i === 0 || !(i !== 1 || !t[n] && typeof t[n] != "boolean" && t[n] !== 0);
|
|
9750
9766
|
}
|
|
9751
9767
|
|
|
9752
9768
|
class st {
|
|
9753
|
-
constructor(
|
|
9754
|
-
this.externalEntities = {}, this.options = function(
|
|
9755
|
-
return Object.assign({}, v,
|
|
9756
|
-
}(
|
|
9769
|
+
constructor(t) {
|
|
9770
|
+
this.externalEntities = {}, this.options = function(t) {
|
|
9771
|
+
return Object.assign({}, v, t);
|
|
9772
|
+
}(t);
|
|
9757
9773
|
}
|
|
9758
|
-
parse(
|
|
9759
|
-
if (typeof
|
|
9774
|
+
parse(t, e) {
|
|
9775
|
+
if (typeof t == "string")
|
|
9760
9776
|
;
|
|
9761
9777
|
else {
|
|
9762
|
-
if (!
|
|
9778
|
+
if (!t.toString)
|
|
9763
9779
|
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
9764
|
-
|
|
9780
|
+
t = t.toString();
|
|
9765
9781
|
}
|
|
9766
|
-
if (
|
|
9767
|
-
|
|
9768
|
-
const
|
|
9769
|
-
if (
|
|
9770
|
-
throw Error(`${
|
|
9782
|
+
if (e) {
|
|
9783
|
+
e === true && (e = {});
|
|
9784
|
+
const n = a(t, e);
|
|
9785
|
+
if (n !== true)
|
|
9786
|
+
throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
9771
9787
|
}
|
|
9772
|
-
const
|
|
9773
|
-
|
|
9774
|
-
const
|
|
9775
|
-
return this.options.preserveOrder ||
|
|
9788
|
+
const n = new k(this.options);
|
|
9789
|
+
n.addExternalEntities(this.externalEntities);
|
|
9790
|
+
const i = n.parseXml(t);
|
|
9791
|
+
return this.options.preserveOrder || i === undefined ? i : Q(i, this.options);
|
|
9776
9792
|
}
|
|
9777
|
-
addEntity(
|
|
9778
|
-
if (
|
|
9793
|
+
addEntity(t, e) {
|
|
9794
|
+
if (e.indexOf("&") !== -1)
|
|
9779
9795
|
throw new Error("Entity value can't have '&'");
|
|
9780
|
-
if (
|
|
9796
|
+
if (t.indexOf("&") !== -1 || t.indexOf(";") !== -1)
|
|
9781
9797
|
throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");
|
|
9782
|
-
if (
|
|
9798
|
+
if (e === "&")
|
|
9783
9799
|
throw new Error("An entity with value '&' is not permitted");
|
|
9784
|
-
this.externalEntities[
|
|
9800
|
+
this.externalEntities[t] = e;
|
|
9785
9801
|
}
|
|
9786
9802
|
static getMetaDataSymbol() {
|
|
9787
9803
|
return T.getMetaDataSymbol();
|
|
9788
9804
|
}
|
|
9789
9805
|
}
|
|
9790
|
-
function rt(
|
|
9791
|
-
let
|
|
9792
|
-
return
|
|
9793
|
-
`), ot(
|
|
9806
|
+
function rt(t, e) {
|
|
9807
|
+
let n = "";
|
|
9808
|
+
return e.format && e.indentBy.length > 0 && (n = `
|
|
9809
|
+
`), ot(t, e, "", n);
|
|
9794
9810
|
}
|
|
9795
|
-
function ot(
|
|
9796
|
-
let
|
|
9797
|
-
for (let
|
|
9798
|
-
const
|
|
9799
|
-
if (
|
|
9811
|
+
function ot(t, e, n, i) {
|
|
9812
|
+
let s = "", r = false;
|
|
9813
|
+
for (let o = 0;o < t.length; o++) {
|
|
9814
|
+
const a = t[o], l = at(a);
|
|
9815
|
+
if (l === undefined)
|
|
9800
9816
|
continue;
|
|
9801
|
-
let
|
|
9802
|
-
if (
|
|
9803
|
-
let
|
|
9804
|
-
ut(
|
|
9817
|
+
let u = "";
|
|
9818
|
+
if (u = n.length === 0 ? l : `${n}.${l}`, l === e.textNodeName) {
|
|
9819
|
+
let t = a[l];
|
|
9820
|
+
ut(u, e) || (t = e.tagValueProcessor(l, t), t = ht(t, e)), r && (s += i), s += t, r = false;
|
|
9805
9821
|
continue;
|
|
9806
9822
|
}
|
|
9807
|
-
if (
|
|
9808
|
-
|
|
9823
|
+
if (l === e.cdataPropName) {
|
|
9824
|
+
r && (s += i), s += `<![CDATA[${a[l][0][e.textNodeName]}]]>`, r = false;
|
|
9809
9825
|
continue;
|
|
9810
9826
|
}
|
|
9811
|
-
if (
|
|
9812
|
-
|
|
9827
|
+
if (l === e.commentPropName) {
|
|
9828
|
+
s += i + `<!--${a[l][0][e.textNodeName]}-->`, r = true;
|
|
9813
9829
|
continue;
|
|
9814
9830
|
}
|
|
9815
|
-
if (
|
|
9816
|
-
const
|
|
9817
|
-
let
|
|
9818
|
-
|
|
9831
|
+
if (l[0] === "?") {
|
|
9832
|
+
const t = lt(a[":@"], e), n = l === "?xml" ? "" : i;
|
|
9833
|
+
let o = a[l][0][e.textNodeName];
|
|
9834
|
+
o = o.length !== 0 ? " " + o : "", s += n + `<${l}${o}${t}?>`, r = true;
|
|
9819
9835
|
continue;
|
|
9820
9836
|
}
|
|
9821
|
-
let
|
|
9822
|
-
|
|
9823
|
-
const
|
|
9824
|
-
|
|
9837
|
+
let h = i;
|
|
9838
|
+
h !== "" && (h += e.indentBy);
|
|
9839
|
+
const d = i + `<${l}${lt(a[":@"], e)}`, f = ot(a[l], e, u, h);
|
|
9840
|
+
e.unpairedTags.indexOf(l) !== -1 ? e.suppressUnpairedNode ? s += d + ">" : s += d + "/>" : f && f.length !== 0 || !e.suppressEmptyNode ? f && f.endsWith(">") ? s += d + `>${f}${i}</${l}>` : (s += d + ">", f && i !== "" && (f.includes("/>") || f.includes("</")) ? s += i + e.indentBy + f + i : s += f, s += `</${l}>`) : s += d + "/>", r = true;
|
|
9825
9841
|
}
|
|
9826
|
-
return
|
|
9842
|
+
return s;
|
|
9827
9843
|
}
|
|
9828
|
-
function at(
|
|
9829
|
-
const
|
|
9830
|
-
for (let
|
|
9831
|
-
const
|
|
9832
|
-
if (
|
|
9833
|
-
return
|
|
9844
|
+
function at(t) {
|
|
9845
|
+
const e = Object.keys(t);
|
|
9846
|
+
for (let n = 0;n < e.length; n++) {
|
|
9847
|
+
const i = e[n];
|
|
9848
|
+
if (t.hasOwnProperty(i) && i !== ":@")
|
|
9849
|
+
return i;
|
|
9834
9850
|
}
|
|
9835
9851
|
}
|
|
9836
|
-
function lt(
|
|
9837
|
-
let
|
|
9838
|
-
if (
|
|
9839
|
-
for (let
|
|
9840
|
-
if (!
|
|
9852
|
+
function lt(t, e) {
|
|
9853
|
+
let n = "";
|
|
9854
|
+
if (t && !e.ignoreAttributes)
|
|
9855
|
+
for (let i in t) {
|
|
9856
|
+
if (!t.hasOwnProperty(i))
|
|
9841
9857
|
continue;
|
|
9842
|
-
let
|
|
9843
|
-
|
|
9858
|
+
let s = e.attributeValueProcessor(i, t[i]);
|
|
9859
|
+
s = ht(s, e), s === true && e.suppressBooleanAttributes ? n += ` ${i.substr(e.attributeNamePrefix.length)}` : n += ` ${i.substr(e.attributeNamePrefix.length)}="${s}"`;
|
|
9844
9860
|
}
|
|
9845
|
-
return
|
|
9861
|
+
return n;
|
|
9846
9862
|
}
|
|
9847
|
-
function ut(
|
|
9848
|
-
let
|
|
9849
|
-
for (let
|
|
9850
|
-
if (
|
|
9863
|
+
function ut(t, e) {
|
|
9864
|
+
let n = (t = t.substr(0, t.length - e.textNodeName.length - 1)).substr(t.lastIndexOf(".") + 1);
|
|
9865
|
+
for (let i in e.stopNodes)
|
|
9866
|
+
if (e.stopNodes[i] === t || e.stopNodes[i] === "*." + n)
|
|
9851
9867
|
return true;
|
|
9852
9868
|
return false;
|
|
9853
9869
|
}
|
|
9854
|
-
function ht(
|
|
9855
|
-
if (
|
|
9856
|
-
for (let
|
|
9857
|
-
const
|
|
9858
|
-
|
|
9870
|
+
function ht(t, e) {
|
|
9871
|
+
if (t && t.length > 0 && e.processEntities)
|
|
9872
|
+
for (let n = 0;n < e.entities.length; n++) {
|
|
9873
|
+
const i = e.entities[n];
|
|
9874
|
+
t = t.replace(i.regex, i.val);
|
|
9859
9875
|
}
|
|
9860
|
-
return
|
|
9876
|
+
return t;
|
|
9861
9877
|
}
|
|
9862
|
-
const dt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(
|
|
9863
|
-
return
|
|
9864
|
-
}, attributeValueProcessor: function(
|
|
9865
|
-
return
|
|
9878
|
+
const dt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t, e) {
|
|
9879
|
+
return e;
|
|
9880
|
+
}, attributeValueProcessor: function(t, e) {
|
|
9881
|
+
return e;
|
|
9866
9882
|
}, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&" }, { regex: new RegExp(">", "g"), val: ">" }, { regex: new RegExp("<", "g"), val: "<" }, { regex: new RegExp("'", "g"), val: "'" }, { regex: new RegExp('"', "g"), val: """ }], processEntities: true, stopNodes: [], oneListGroup: false };
|
|
9867
|
-
function ft(
|
|
9868
|
-
this.options = Object.assign({}, dt,
|
|
9883
|
+
function ft(t) {
|
|
9884
|
+
this.options = Object.assign({}, dt, t), this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
9869
9885
|
return false;
|
|
9870
9886
|
} : (this.ignoreAttributesFn = _(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = gt), this.processTextOrObjNode = ct, this.options.format ? (this.indentate = pt, this.tagEndChar = `>
|
|
9871
9887
|
`, this.newLine = `
|
|
@@ -9873,106 +9889,106 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
9873
9889
|
return "";
|
|
9874
9890
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
9875
9891
|
}
|
|
9876
|
-
function ct(
|
|
9877
|
-
const
|
|
9878
|
-
return
|
|
9879
|
-
}
|
|
9880
|
-
function pt(
|
|
9881
|
-
return this.options.indentBy.repeat(
|
|
9882
|
-
}
|
|
9883
|
-
function gt(
|
|
9884
|
-
return !(!
|
|
9885
|
-
}
|
|
9886
|
-
ft.prototype.build = function(
|
|
9887
|
-
return this.options.preserveOrder ? rt(
|
|
9888
|
-
}, ft.prototype.j2x = function(
|
|
9889
|
-
let
|
|
9890
|
-
const
|
|
9891
|
-
for (let
|
|
9892
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
9893
|
-
if (
|
|
9894
|
-
this.isAttribute(
|
|
9895
|
-
else if (
|
|
9896
|
-
this.isAttribute(
|
|
9897
|
-
else if (
|
|
9898
|
-
|
|
9899
|
-
else if (typeof
|
|
9900
|
-
const
|
|
9901
|
-
if (
|
|
9902
|
-
|
|
9903
|
-
else if (!
|
|
9904
|
-
if (
|
|
9905
|
-
let
|
|
9906
|
-
|
|
9892
|
+
function ct(t, e, n, i) {
|
|
9893
|
+
const s = this.j2x(t, n + 1, i.concat(e));
|
|
9894
|
+
return t[this.options.textNodeName] !== undefined && Object.keys(t).length === 1 ? this.buildTextValNode(t[this.options.textNodeName], e, s.attrStr, n) : this.buildObjectNode(s.val, e, s.attrStr, n);
|
|
9895
|
+
}
|
|
9896
|
+
function pt(t) {
|
|
9897
|
+
return this.options.indentBy.repeat(t);
|
|
9898
|
+
}
|
|
9899
|
+
function gt(t) {
|
|
9900
|
+
return !(!t.startsWith(this.options.attributeNamePrefix) || t === this.options.textNodeName) && t.substr(this.attrPrefixLen);
|
|
9901
|
+
}
|
|
9902
|
+
ft.prototype.build = function(t) {
|
|
9903
|
+
return this.options.preserveOrder ? rt(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = { [this.options.arrayNodeName]: t }), this.j2x(t, 0, []).val);
|
|
9904
|
+
}, ft.prototype.j2x = function(t, e, n) {
|
|
9905
|
+
let i = "", s = "";
|
|
9906
|
+
const r = n.join(".");
|
|
9907
|
+
for (let o in t)
|
|
9908
|
+
if (Object.prototype.hasOwnProperty.call(t, o))
|
|
9909
|
+
if (t[o] === undefined)
|
|
9910
|
+
this.isAttribute(o) && (s += "");
|
|
9911
|
+
else if (t[o] === null)
|
|
9912
|
+
this.isAttribute(o) || o === this.options.cdataPropName ? s += "" : o[0] === "?" ? s += this.indentate(e) + "<" + o + "?" + this.tagEndChar : s += this.indentate(e) + "<" + o + "/" + this.tagEndChar;
|
|
9913
|
+
else if (t[o] instanceof Date)
|
|
9914
|
+
s += this.buildTextValNode(t[o], o, "", e);
|
|
9915
|
+
else if (typeof t[o] != "object") {
|
|
9916
|
+
const n = this.isAttribute(o);
|
|
9917
|
+
if (n && !this.ignoreAttributesFn(n, r))
|
|
9918
|
+
i += this.buildAttrPairStr(n, "" + t[o]);
|
|
9919
|
+
else if (!n)
|
|
9920
|
+
if (o === this.options.textNodeName) {
|
|
9921
|
+
let e = this.options.tagValueProcessor(o, "" + t[o]);
|
|
9922
|
+
s += this.replaceEntitiesValue(e);
|
|
9907
9923
|
} else
|
|
9908
|
-
|
|
9909
|
-
} else if (Array.isArray(
|
|
9910
|
-
const
|
|
9911
|
-
let
|
|
9912
|
-
for (let
|
|
9913
|
-
const
|
|
9914
|
-
if (
|
|
9924
|
+
s += this.buildTextValNode(t[o], o, "", e);
|
|
9925
|
+
} else if (Array.isArray(t[o])) {
|
|
9926
|
+
const i = t[o].length;
|
|
9927
|
+
let r = "", a = "";
|
|
9928
|
+
for (let l = 0;l < i; l++) {
|
|
9929
|
+
const i = t[o][l];
|
|
9930
|
+
if (i === undefined)
|
|
9915
9931
|
;
|
|
9916
|
-
else if (
|
|
9917
|
-
|
|
9918
|
-
else if (typeof
|
|
9932
|
+
else if (i === null)
|
|
9933
|
+
o[0] === "?" ? s += this.indentate(e) + "<" + o + "?" + this.tagEndChar : s += this.indentate(e) + "<" + o + "/" + this.tagEndChar;
|
|
9934
|
+
else if (typeof i == "object")
|
|
9919
9935
|
if (this.options.oneListGroup) {
|
|
9920
|
-
const
|
|
9921
|
-
|
|
9936
|
+
const t = this.j2x(i, e + 1, n.concat(o));
|
|
9937
|
+
r += t.val, this.options.attributesGroupName && i.hasOwnProperty(this.options.attributesGroupName) && (a += t.attrStr);
|
|
9922
9938
|
} else
|
|
9923
|
-
|
|
9939
|
+
r += this.processTextOrObjNode(i, o, e, n);
|
|
9924
9940
|
else if (this.options.oneListGroup) {
|
|
9925
|
-
let
|
|
9926
|
-
|
|
9941
|
+
let t = this.options.tagValueProcessor(o, i);
|
|
9942
|
+
t = this.replaceEntitiesValue(t), r += t;
|
|
9927
9943
|
} else
|
|
9928
|
-
|
|
9944
|
+
r += this.buildTextValNode(i, o, "", e);
|
|
9929
9945
|
}
|
|
9930
|
-
this.options.oneListGroup && (
|
|
9931
|
-
} else if (this.options.attributesGroupName &&
|
|
9932
|
-
const
|
|
9933
|
-
for (let
|
|
9934
|
-
|
|
9946
|
+
this.options.oneListGroup && (r = this.buildObjectNode(r, o, a, e)), s += r;
|
|
9947
|
+
} else if (this.options.attributesGroupName && o === this.options.attributesGroupName) {
|
|
9948
|
+
const e = Object.keys(t[o]), n = e.length;
|
|
9949
|
+
for (let s = 0;s < n; s++)
|
|
9950
|
+
i += this.buildAttrPairStr(e[s], "" + t[o][e[s]]);
|
|
9935
9951
|
} else
|
|
9936
|
-
|
|
9937
|
-
return { attrStr:
|
|
9938
|
-
}, ft.prototype.buildAttrPairStr = function(
|
|
9939
|
-
return
|
|
9940
|
-
}, ft.prototype.buildObjectNode = function(
|
|
9941
|
-
if (
|
|
9942
|
-
return
|
|
9952
|
+
s += this.processTextOrObjNode(t[o], o, e, n);
|
|
9953
|
+
return { attrStr: i, val: s };
|
|
9954
|
+
}, ft.prototype.buildAttrPairStr = function(t, e) {
|
|
9955
|
+
return e = this.options.attributeValueProcessor(t, "" + e), e = this.replaceEntitiesValue(e), this.options.suppressBooleanAttributes && e === "true" ? " " + t : " " + t + '="' + e + '"';
|
|
9956
|
+
}, ft.prototype.buildObjectNode = function(t, e, n, i) {
|
|
9957
|
+
if (t === "")
|
|
9958
|
+
return e[0] === "?" ? this.indentate(i) + "<" + e + n + "?" + this.tagEndChar : this.indentate(i) + "<" + e + n + this.closeTag(e) + this.tagEndChar;
|
|
9943
9959
|
{
|
|
9944
|
-
let
|
|
9945
|
-
return
|
|
9946
|
-
}
|
|
9947
|
-
}, ft.prototype.closeTag = function(
|
|
9948
|
-
let
|
|
9949
|
-
return this.options.unpairedTags.indexOf(
|
|
9950
|
-
}, ft.prototype.buildTextValNode = function(
|
|
9951
|
-
if (this.options.cdataPropName !== false &&
|
|
9952
|
-
return this.indentate(
|
|
9953
|
-
if (this.options.commentPropName !== false &&
|
|
9954
|
-
return this.indentate(
|
|
9955
|
-
if (
|
|
9956
|
-
return this.indentate(
|
|
9960
|
+
let s = "</" + e + this.tagEndChar, r = "";
|
|
9961
|
+
return e[0] === "?" && (r = "?", s = ""), !n && n !== "" || t.indexOf("<") !== -1 ? this.options.commentPropName !== false && e === this.options.commentPropName && r.length === 0 ? this.indentate(i) + `<!--${t}-->` + this.newLine : this.indentate(i) + "<" + e + n + r + this.tagEndChar + t + this.indentate(i) + s : this.indentate(i) + "<" + e + n + r + ">" + t + s;
|
|
9962
|
+
}
|
|
9963
|
+
}, ft.prototype.closeTag = function(t) {
|
|
9964
|
+
let e = "";
|
|
9965
|
+
return this.options.unpairedTags.indexOf(t) !== -1 ? this.options.suppressUnpairedNode || (e = "/") : e = this.options.suppressEmptyNode ? "/" : `></${t}`, e;
|
|
9966
|
+
}, ft.prototype.buildTextValNode = function(t, e, n, i) {
|
|
9967
|
+
if (this.options.cdataPropName !== false && e === this.options.cdataPropName)
|
|
9968
|
+
return this.indentate(i) + `<![CDATA[${t}]]>` + this.newLine;
|
|
9969
|
+
if (this.options.commentPropName !== false && e === this.options.commentPropName)
|
|
9970
|
+
return this.indentate(i) + `<!--${t}-->` + this.newLine;
|
|
9971
|
+
if (e[0] === "?")
|
|
9972
|
+
return this.indentate(i) + "<" + e + n + "?" + this.tagEndChar;
|
|
9957
9973
|
{
|
|
9958
|
-
let
|
|
9959
|
-
return
|
|
9974
|
+
let s = this.options.tagValueProcessor(e, t);
|
|
9975
|
+
return s = this.replaceEntitiesValue(s), s === "" ? this.indentate(i) + "<" + e + n + this.closeTag(e) + this.tagEndChar : this.indentate(i) + "<" + e + n + ">" + s + "</" + e + this.tagEndChar;
|
|
9960
9976
|
}
|
|
9961
|
-
}, ft.prototype.replaceEntitiesValue = function(
|
|
9962
|
-
if (
|
|
9963
|
-
for (let
|
|
9964
|
-
const
|
|
9965
|
-
|
|
9977
|
+
}, ft.prototype.replaceEntitiesValue = function(t) {
|
|
9978
|
+
if (t && t.length > 0 && this.options.processEntities)
|
|
9979
|
+
for (let e = 0;e < this.options.entities.length; e++) {
|
|
9980
|
+
const n = this.options.entities[e];
|
|
9981
|
+
t = t.replace(n.regex, n.val);
|
|
9966
9982
|
}
|
|
9967
|
-
return
|
|
9983
|
+
return t;
|
|
9968
9984
|
};
|
|
9969
9985
|
const mt = { validate: a };
|
|
9970
9986
|
module.exports = e;
|
|
9971
9987
|
})();
|
|
9972
9988
|
});
|
|
9973
9989
|
|
|
9974
|
-
// ../../node_modules
|
|
9975
|
-
var require_xml_parser = __commonJS((exports)
|
|
9990
|
+
// ../../node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
|
|
9991
|
+
var require_xml_parser = __commonJS(function(exports) {
|
|
9976
9992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9977
9993
|
exports.parseXML = parseXML;
|
|
9978
9994
|
var fast_xml_parser_1 = require_fxp();
|
|
@@ -9994,8 +10010,8 @@ var require_xml_parser = __commonJS((exports) => {
|
|
|
9994
10010
|
}
|
|
9995
10011
|
});
|
|
9996
10012
|
|
|
9997
|
-
// ../../node_modules
|
|
9998
|
-
var require_dist_cjs29 = __commonJS((exports)
|
|
10013
|
+
// ../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
10014
|
+
var require_dist_cjs29 = __commonJS(function(exports) {
|
|
9999
10015
|
var xmlParser = require_xml_parser();
|
|
10000
10016
|
function escapeAttribute(value) {
|
|
10001
10017
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
@@ -10110,8 +10126,8 @@ var require_dist_cjs29 = __commonJS((exports) => {
|
|
|
10110
10126
|
exports.XmlText = XmlText;
|
|
10111
10127
|
});
|
|
10112
10128
|
|
|
10113
|
-
// ../../node_modules
|
|
10114
|
-
var require_dist_cjs30 = __commonJS((exports)
|
|
10129
|
+
// ../../node_modules/@aws-sdk/core/dist-cjs/index.js
|
|
10130
|
+
var require_dist_cjs30 = __commonJS(function(exports) {
|
|
10115
10131
|
var protocolHttp = require_dist_cjs2();
|
|
10116
10132
|
var core = require_dist_cjs19();
|
|
10117
10133
|
var propertyProvider = require_dist_cjs24();
|
|
@@ -10681,11 +10697,11 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
10681
10697
|
super();
|
|
10682
10698
|
this.settings = settings;
|
|
10683
10699
|
}
|
|
10684
|
-
async read(
|
|
10685
|
-
return this._read(
|
|
10700
|
+
async read(schema, data) {
|
|
10701
|
+
return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
|
|
10686
10702
|
}
|
|
10687
|
-
readObject(
|
|
10688
|
-
return this._read(
|
|
10703
|
+
readObject(schema, data) {
|
|
10704
|
+
return this._read(schema, data);
|
|
10689
10705
|
}
|
|
10690
10706
|
_read(schema$1, value) {
|
|
10691
10707
|
const isObject = value !== null && typeof value === "object";
|
|
@@ -11207,16 +11223,16 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
11207
11223
|
const flat = !!traits.xmlFlattened;
|
|
11208
11224
|
if (ns.isListSchema()) {
|
|
11209
11225
|
const listValue = ns.getValueSchema();
|
|
11210
|
-
const
|
|
11226
|
+
const buffer = [];
|
|
11211
11227
|
const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
|
|
11212
11228
|
const source = flat ? value : (value[0] ?? value)[sourceKey];
|
|
11213
11229
|
const sourceArray = Array.isArray(source) ? source : [source];
|
|
11214
11230
|
for (const v of sourceArray) {
|
|
11215
11231
|
if (v != null || sparse) {
|
|
11216
|
-
|
|
11232
|
+
buffer.push(this.readSchema(listValue, v));
|
|
11217
11233
|
}
|
|
11218
11234
|
}
|
|
11219
|
-
return
|
|
11235
|
+
return buffer;
|
|
11220
11236
|
}
|
|
11221
11237
|
const buffer = {};
|
|
11222
11238
|
if (ns.isMapSchema()) {
|
|
@@ -11232,9 +11248,9 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
11232
11248
|
const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
|
|
11233
11249
|
for (const entry of entries) {
|
|
11234
11250
|
const key = entry[keyProperty];
|
|
11235
|
-
const
|
|
11236
|
-
if (
|
|
11237
|
-
buffer[key] = this.readSchema(memberNs,
|
|
11251
|
+
const value = entry[valueProperty];
|
|
11252
|
+
if (value != null || sparse) {
|
|
11253
|
+
buffer[key] = this.readSchema(memberNs, value);
|
|
11238
11254
|
}
|
|
11239
11255
|
}
|
|
11240
11256
|
return buffer;
|
|
@@ -11484,9 +11500,9 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
11484
11500
|
const ns = schema.NormalizedSchema.of(operationSchema.output);
|
|
11485
11501
|
const dataObject = {};
|
|
11486
11502
|
if (response.statusCode >= 300) {
|
|
11487
|
-
const
|
|
11488
|
-
if (
|
|
11489
|
-
Object.assign(dataObject, await deserializer.read(15,
|
|
11503
|
+
const bytes = await protocols.collectBody(response.body, context);
|
|
11504
|
+
if (bytes.byteLength > 0) {
|
|
11505
|
+
Object.assign(dataObject, await deserializer.read(15, bytes));
|
|
11490
11506
|
}
|
|
11491
11507
|
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
11492
11508
|
}
|
|
@@ -11703,18 +11719,18 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
11703
11719
|
const sparse = !!listValueTraits.sparse;
|
|
11704
11720
|
const flat = !!listTraits.xmlFlattened;
|
|
11705
11721
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
|
|
11706
|
-
const writeItem = (
|
|
11722
|
+
const writeItem = (container, value) => {
|
|
11707
11723
|
if (listValueSchema.isListSchema()) {
|
|
11708
|
-
this.writeList(listValueSchema, Array.isArray(value) ? value : [value],
|
|
11724
|
+
this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
|
|
11709
11725
|
} else if (listValueSchema.isMapSchema()) {
|
|
11710
|
-
this.writeMap(listValueSchema, value,
|
|
11726
|
+
this.writeMap(listValueSchema, value, container, xmlns);
|
|
11711
11727
|
} else if (listValueSchema.isStructSchema()) {
|
|
11712
11728
|
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
11713
|
-
|
|
11729
|
+
container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
|
|
11714
11730
|
} else {
|
|
11715
11731
|
const listItemNode = xmlBuilder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
|
|
11716
11732
|
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
11717
|
-
|
|
11733
|
+
container.addChildNode(listItemNode);
|
|
11718
11734
|
}
|
|
11719
11735
|
};
|
|
11720
11736
|
if (flat) {
|
|
@@ -11994,8 +12010,8 @@ More information can be found at: https://a.co/74kJMmI`);
|
|
|
11994
12010
|
exports.validateSigningProperties = validateSigningProperties;
|
|
11995
12011
|
});
|
|
11996
12012
|
|
|
11997
|
-
// ../../node_modules
|
|
11998
|
-
var require_dist_cjs31 = __commonJS((exports)
|
|
12013
|
+
// ../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
|
|
12014
|
+
var require_dist_cjs31 = __commonJS(function(exports) {
|
|
11999
12015
|
var core = require_dist_cjs19();
|
|
12000
12016
|
var utilEndpoints = require_dist_cjs23();
|
|
12001
12017
|
var protocolHttp = require_dist_cjs2();
|
|
@@ -12170,8 +12186,8 @@ var require_dist_cjs31 = __commonJS((exports) => {
|
|
|
12170
12186
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
12171
12187
|
});
|
|
12172
12188
|
|
|
12173
|
-
// ../../node_modules
|
|
12174
|
-
var require_dist_cjs32 = __commonJS((exports)
|
|
12189
|
+
// ../../node_modules/@smithy/util-config-provider/dist-cjs/index.js
|
|
12190
|
+
var require_dist_cjs32 = __commonJS(function(exports) {
|
|
12175
12191
|
var booleanSelector = (obj, key, type) => {
|
|
12176
12192
|
if (!(key in obj))
|
|
12177
12193
|
return;
|
|
@@ -12199,8 +12215,8 @@ var require_dist_cjs32 = __commonJS((exports) => {
|
|
|
12199
12215
|
exports.numberSelector = numberSelector;
|
|
12200
12216
|
});
|
|
12201
12217
|
|
|
12202
|
-
// ../../node_modules
|
|
12203
|
-
var require_dist_cjs33 = __commonJS((exports)
|
|
12218
|
+
// ../../node_modules/@smithy/config-resolver/dist-cjs/index.js
|
|
12219
|
+
var require_dist_cjs33 = __commonJS(function(exports) {
|
|
12204
12220
|
var utilConfigProvider = require_dist_cjs32();
|
|
12205
12221
|
var utilMiddleware = require_dist_cjs6();
|
|
12206
12222
|
var utilEndpoints = require_dist_cjs20();
|
|
@@ -12358,8 +12374,8 @@ var require_dist_cjs33 = __commonJS((exports) => {
|
|
|
12358
12374
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
12359
12375
|
});
|
|
12360
12376
|
|
|
12361
|
-
// ../../node_modules
|
|
12362
|
-
var require_dist_cjs34 = __commonJS((exports)
|
|
12377
|
+
// ../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js
|
|
12378
|
+
var require_dist_cjs34 = __commonJS(function(exports) {
|
|
12363
12379
|
var protocolHttp = require_dist_cjs2();
|
|
12364
12380
|
var CONTENT_LENGTH_HEADER = "content-length";
|
|
12365
12381
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
@@ -12399,8 +12415,8 @@ var require_dist_cjs34 = __commonJS((exports) => {
|
|
|
12399
12415
|
exports.getContentLengthPlugin = getContentLengthPlugin;
|
|
12400
12416
|
});
|
|
12401
12417
|
|
|
12402
|
-
// ../../node_modules
|
|
12403
|
-
var require_getHomeDir = __commonJS((exports)
|
|
12418
|
+
// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js
|
|
12419
|
+
var require_getHomeDir = __commonJS(function(exports) {
|
|
12404
12420
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12405
12421
|
exports.getHomeDir = undefined;
|
|
12406
12422
|
var os_1 = __require("os");
|
|
@@ -12428,8 +12444,8 @@ var require_getHomeDir = __commonJS((exports) => {
|
|
|
12428
12444
|
exports.getHomeDir = getHomeDir;
|
|
12429
12445
|
});
|
|
12430
12446
|
|
|
12431
|
-
// ../../node_modules
|
|
12432
|
-
var require_getSSOTokenFilepath = __commonJS((exports)
|
|
12447
|
+
// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
|
|
12448
|
+
var require_getSSOTokenFilepath = __commonJS(function(exports) {
|
|
12433
12449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12434
12450
|
exports.getSSOTokenFilepath = undefined;
|
|
12435
12451
|
var crypto_1 = __require("crypto");
|
|
@@ -12443,8 +12459,8 @@ var require_getSSOTokenFilepath = __commonJS((exports) => {
|
|
|
12443
12459
|
exports.getSSOTokenFilepath = getSSOTokenFilepath;
|
|
12444
12460
|
});
|
|
12445
12461
|
|
|
12446
|
-
// ../../node_modules
|
|
12447
|
-
var require_getSSOTokenFromFile = __commonJS((exports)
|
|
12462
|
+
// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
|
|
12463
|
+
var require_getSSOTokenFromFile = __commonJS(function(exports) {
|
|
12448
12464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12449
12465
|
exports.getSSOTokenFromFile = exports.tokenIntercept = undefined;
|
|
12450
12466
|
var fs_1 = __require("fs");
|
|
@@ -12462,8 +12478,8 @@ var require_getSSOTokenFromFile = __commonJS((exports) => {
|
|
|
12462
12478
|
exports.getSSOTokenFromFile = getSSOTokenFromFile;
|
|
12463
12479
|
});
|
|
12464
12480
|
|
|
12465
|
-
// ../../node_modules
|
|
12466
|
-
var require_slurpFile = __commonJS((exports)
|
|
12481
|
+
// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js
|
|
12482
|
+
var require_slurpFile = __commonJS(function(exports) {
|
|
12467
12483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12468
12484
|
exports.slurpFile = exports.fileIntercept = exports.filePromisesHash = undefined;
|
|
12469
12485
|
var fs_1 = __require("fs");
|
|
@@ -12482,8 +12498,8 @@ var require_slurpFile = __commonJS((exports) => {
|
|
|
12482
12498
|
exports.slurpFile = slurpFile;
|
|
12483
12499
|
});
|
|
12484
12500
|
|
|
12485
|
-
// ../../node_modules
|
|
12486
|
-
var require_dist_cjs35 = __commonJS((exports)
|
|
12501
|
+
// ../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js
|
|
12502
|
+
var require_dist_cjs35 = __commonJS(function(exports) {
|
|
12487
12503
|
var getHomeDir = require_getHomeDir();
|
|
12488
12504
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
12489
12505
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
@@ -12609,8 +12625,8 @@ var require_dist_cjs35 = __commonJS((exports) => {
|
|
|
12609
12625
|
getFileRecord() {
|
|
12610
12626
|
return slurpFile.fileIntercept;
|
|
12611
12627
|
},
|
|
12612
|
-
interceptFile(
|
|
12613
|
-
slurpFile.fileIntercept[
|
|
12628
|
+
interceptFile(path, contents) {
|
|
12629
|
+
slurpFile.fileIntercept[path] = Promise.resolve(contents);
|
|
12614
12630
|
},
|
|
12615
12631
|
getTokenRecord() {
|
|
12616
12632
|
return getSSOTokenFromFile.tokenIntercept;
|
|
@@ -12653,8 +12669,8 @@ var require_dist_cjs35 = __commonJS((exports) => {
|
|
|
12653
12669
|
});
|
|
12654
12670
|
});
|
|
12655
12671
|
|
|
12656
|
-
// ../../node_modules
|
|
12657
|
-
var require_dist_cjs36 = __commonJS((exports)
|
|
12672
|
+
// ../../node_modules/@smithy/node-config-provider/dist-cjs/index.js
|
|
12673
|
+
var require_dist_cjs36 = __commonJS(function(exports) {
|
|
12658
12674
|
var propertyProvider = require_dist_cjs24();
|
|
12659
12675
|
var sharedIniFileLoader = require_dist_cjs35();
|
|
12660
12676
|
function getSelectorName(functionString) {
|
|
@@ -12706,8 +12722,8 @@ var require_dist_cjs36 = __commonJS((exports) => {
|
|
|
12706
12722
|
exports.loadConfig = loadConfig;
|
|
12707
12723
|
});
|
|
12708
12724
|
|
|
12709
|
-
// ../../node_modules
|
|
12710
|
-
var require_getEndpointUrlConfig = __commonJS((exports)
|
|
12725
|
+
// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
|
|
12726
|
+
var require_getEndpointUrlConfig = __commonJS(function(exports) {
|
|
12711
12727
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12712
12728
|
exports.getEndpointUrlConfig = undefined;
|
|
12713
12729
|
var shared_ini_file_loader_1 = require_dist_cjs35();
|
|
@@ -12729,9 +12745,9 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
|
|
|
12729
12745
|
const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
|
|
12730
12746
|
if (servicesSection) {
|
|
12731
12747
|
const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
|
|
12732
|
-
const
|
|
12733
|
-
if (
|
|
12734
|
-
return
|
|
12748
|
+
const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
|
|
12749
|
+
if (endpointUrl)
|
|
12750
|
+
return endpointUrl;
|
|
12735
12751
|
}
|
|
12736
12752
|
}
|
|
12737
12753
|
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
@@ -12744,8 +12760,8 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
|
|
|
12744
12760
|
exports.getEndpointUrlConfig = getEndpointUrlConfig;
|
|
12745
12761
|
});
|
|
12746
12762
|
|
|
12747
|
-
// ../../node_modules
|
|
12748
|
-
var require_getEndpointFromConfig = __commonJS((exports)
|
|
12763
|
+
// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
|
|
12764
|
+
var require_getEndpointFromConfig = __commonJS(function(exports) {
|
|
12749
12765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12750
12766
|
exports.getEndpointFromConfig = undefined;
|
|
12751
12767
|
var node_config_provider_1 = require_dist_cjs36();
|
|
@@ -12754,8 +12770,8 @@ var require_getEndpointFromConfig = __commonJS((exports) => {
|
|
|
12754
12770
|
exports.getEndpointFromConfig = getEndpointFromConfig;
|
|
12755
12771
|
});
|
|
12756
12772
|
|
|
12757
|
-
// ../../node_modules
|
|
12758
|
-
var require_dist_cjs37 = __commonJS((exports)
|
|
12773
|
+
// ../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
|
|
12774
|
+
var require_dist_cjs37 = __commonJS(function(exports) {
|
|
12759
12775
|
var getEndpointFromConfig = require_getEndpointFromConfig();
|
|
12760
12776
|
var urlParser = require_dist_cjs22();
|
|
12761
12777
|
var core = require_dist_cjs19();
|
|
@@ -12982,8 +12998,8 @@ var require_dist_cjs37 = __commonJS((exports) => {
|
|
|
12982
12998
|
exports.toEndpointV1 = toEndpointV1;
|
|
12983
12999
|
});
|
|
12984
13000
|
|
|
12985
|
-
// ../../node_modules
|
|
12986
|
-
var require_dist_cjs38 = __commonJS((exports)
|
|
13001
|
+
// ../../node_modules/@smithy/service-error-classification/dist-cjs/index.js
|
|
13002
|
+
var require_dist_cjs38 = __commonJS(function(exports) {
|
|
12987
13003
|
var CLOCK_SKEW_ERROR_CODES = [
|
|
12988
13004
|
"AuthFailure",
|
|
12989
13005
|
"InvalidSignatureException",
|
|
@@ -13050,8 +13066,8 @@ var require_dist_cjs38 = __commonJS((exports) => {
|
|
|
13050
13066
|
exports.isTransientError = isTransientError;
|
|
13051
13067
|
});
|
|
13052
13068
|
|
|
13053
|
-
// ../../node_modules
|
|
13054
|
-
var require_dist_cjs39 = __commonJS((exports)
|
|
13069
|
+
// ../../node_modules/@smithy/util-retry/dist-cjs/index.js
|
|
13070
|
+
var require_dist_cjs39 = __commonJS(function(exports) {
|
|
13055
13071
|
var serviceErrorClassification = require_dist_cjs38();
|
|
13056
13072
|
exports.RETRY_MODES = undefined;
|
|
13057
13073
|
(function(RETRY_MODES) {
|
|
@@ -13318,8 +13334,8 @@ var require_dist_cjs39 = __commonJS((exports) => {
|
|
|
13318
13334
|
exports.TIMEOUT_RETRY_COST = TIMEOUT_RETRY_COST;
|
|
13319
13335
|
});
|
|
13320
13336
|
|
|
13321
|
-
// ../../node_modules
|
|
13322
|
-
var require_isStreamingPayload = __commonJS((exports)
|
|
13337
|
+
// ../../node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
|
|
13338
|
+
var require_isStreamingPayload = __commonJS(function(exports) {
|
|
13323
13339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13324
13340
|
exports.isStreamingPayload = undefined;
|
|
13325
13341
|
var stream_1 = __require("stream");
|
|
@@ -13327,8 +13343,8 @@ var require_isStreamingPayload = __commonJS((exports) => {
|
|
|
13327
13343
|
exports.isStreamingPayload = isStreamingPayload;
|
|
13328
13344
|
});
|
|
13329
13345
|
|
|
13330
|
-
// ../../node_modules
|
|
13331
|
-
var require_dist_cjs40 = __commonJS((exports)
|
|
13346
|
+
// ../../node_modules/@smithy/middleware-retry/dist-cjs/index.js
|
|
13347
|
+
var require_dist_cjs40 = __commonJS(function(exports) {
|
|
13332
13348
|
var utilRetry = require_dist_cjs39();
|
|
13333
13349
|
var protocolHttp = require_dist_cjs2();
|
|
13334
13350
|
var serviceErrorClassification = require_dist_cjs38();
|
|
@@ -13672,8 +13688,8 @@ var require_dist_cjs40 = __commonJS((exports) => {
|
|
|
13672
13688
|
exports.retryMiddlewareOptions = retryMiddlewareOptions;
|
|
13673
13689
|
});
|
|
13674
13690
|
|
|
13675
|
-
// ../../node_modules
|
|
13676
|
-
var require_httpAuthSchemeProvider = __commonJS((exports)
|
|
13691
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
|
|
13692
|
+
var require_httpAuthSchemeProvider = __commonJS(function(exports) {
|
|
13677
13693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13678
13694
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = undefined;
|
|
13679
13695
|
var core_1 = require_dist_cjs30();
|
|
@@ -13742,8 +13758,8 @@ var require_httpAuthSchemeProvider = __commonJS((exports) => {
|
|
|
13742
13758
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
13743
13759
|
});
|
|
13744
13760
|
|
|
13745
|
-
// ../../node_modules
|
|
13746
|
-
var require_package = __commonJS((exports, module)
|
|
13761
|
+
// ../../node_modules/@aws-sdk/client-sso/package.json
|
|
13762
|
+
var require_package = __commonJS(function(exports, module) {
|
|
13747
13763
|
module.exports = {
|
|
13748
13764
|
name: "@aws-sdk/client-sso",
|
|
13749
13765
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
@@ -13844,8 +13860,8 @@ var require_package = __commonJS((exports, module) => {
|
|
|
13844
13860
|
};
|
|
13845
13861
|
});
|
|
13846
13862
|
|
|
13847
|
-
// ../../node_modules
|
|
13848
|
-
var require_dist_cjs41 = __commonJS((exports)
|
|
13863
|
+
// ../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
|
|
13864
|
+
var require_dist_cjs41 = __commonJS(function(exports) {
|
|
13849
13865
|
var os = __require("os");
|
|
13850
13866
|
var process2 = __require("process");
|
|
13851
13867
|
var middlewareUserAgent = require_dist_cjs31();
|
|
@@ -13899,8 +13915,8 @@ var require_dist_cjs41 = __commonJS((exports) => {
|
|
|
13899
13915
|
exports.defaultUserAgent = defaultUserAgent;
|
|
13900
13916
|
});
|
|
13901
13917
|
|
|
13902
|
-
// ../../node_modules
|
|
13903
|
-
var require_dist_cjs42 = __commonJS((exports)
|
|
13918
|
+
// ../../node_modules/@smithy/hash-node/dist-cjs/index.js
|
|
13919
|
+
var require_dist_cjs42 = __commonJS(function(exports) {
|
|
13904
13920
|
var utilBufferFrom = require_dist_cjs9();
|
|
13905
13921
|
var utilUtf8 = require_dist_cjs10();
|
|
13906
13922
|
var buffer = __require("buffer");
|
|
@@ -13940,8 +13956,8 @@ var require_dist_cjs42 = __commonJS((exports) => {
|
|
|
13940
13956
|
exports.Hash = Hash;
|
|
13941
13957
|
});
|
|
13942
13958
|
|
|
13943
|
-
// ../../node_modules
|
|
13944
|
-
var require_dist_cjs43 = __commonJS((exports)
|
|
13959
|
+
// ../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js
|
|
13960
|
+
var require_dist_cjs43 = __commonJS(function(exports) {
|
|
13945
13961
|
var node_fs = __require("node:fs");
|
|
13946
13962
|
var calculateBodyLength = (body) => {
|
|
13947
13963
|
if (!body) {
|
|
@@ -13967,8 +13983,8 @@ var require_dist_cjs43 = __commonJS((exports) => {
|
|
|
13967
13983
|
exports.calculateBodyLength = calculateBodyLength;
|
|
13968
13984
|
});
|
|
13969
13985
|
|
|
13970
|
-
// ../../node_modules
|
|
13971
|
-
var require_ruleset = __commonJS((exports)
|
|
13986
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
|
|
13987
|
+
var require_ruleset = __commonJS(function(exports) {
|
|
13972
13988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13973
13989
|
exports.ruleSet = undefined;
|
|
13974
13990
|
var u = "required";
|
|
@@ -13999,8 +14015,8 @@ var require_ruleset = __commonJS((exports) => {
|
|
|
13999
14015
|
exports.ruleSet = _data;
|
|
14000
14016
|
});
|
|
14001
14017
|
|
|
14002
|
-
// ../../node_modules
|
|
14003
|
-
var require_endpointResolver = __commonJS((exports)
|
|
14018
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
|
|
14019
|
+
var require_endpointResolver = __commonJS(function(exports) {
|
|
14004
14020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14005
14021
|
exports.defaultEndpointResolver = undefined;
|
|
14006
14022
|
var util_endpoints_1 = require_dist_cjs23();
|
|
@@ -14020,8 +14036,8 @@ var require_endpointResolver = __commonJS((exports) => {
|
|
|
14020
14036
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
14021
14037
|
});
|
|
14022
14038
|
|
|
14023
|
-
// ../../node_modules
|
|
14024
|
-
var require_runtimeConfig_shared = __commonJS((exports)
|
|
14039
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
|
|
14040
|
+
var require_runtimeConfig_shared = __commonJS(function(exports) {
|
|
14025
14041
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14026
14042
|
exports.getRuntimeConfig = undefined;
|
|
14027
14043
|
var core_1 = require_dist_cjs30();
|
|
@@ -14063,8 +14079,8 @@ var require_runtimeConfig_shared = __commonJS((exports) => {
|
|
|
14063
14079
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
14064
14080
|
});
|
|
14065
14081
|
|
|
14066
|
-
// ../../node_modules
|
|
14067
|
-
var require_dist_cjs44 = __commonJS((exports)
|
|
14082
|
+
// ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
|
|
14083
|
+
var require_dist_cjs44 = __commonJS(function(exports) {
|
|
14068
14084
|
var propertyProvider = require_dist_cjs24();
|
|
14069
14085
|
var url = __require("url");
|
|
14070
14086
|
var buffer = __require("buffer");
|
|
@@ -14145,11 +14161,11 @@ var require_dist_cjs44 = __commonJS((exports) => {
|
|
|
14145
14161
|
Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
|
|
14146
14162
|
};
|
|
14147
14163
|
}
|
|
14148
|
-
const
|
|
14164
|
+
const buffer = await httpRequest({
|
|
14149
14165
|
...options,
|
|
14150
14166
|
timeout
|
|
14151
14167
|
});
|
|
14152
|
-
return
|
|
14168
|
+
return buffer.toString();
|
|
14153
14169
|
};
|
|
14154
14170
|
var CMDS_IP = "169.254.170.2";
|
|
14155
14171
|
var GREENGRASS_HOSTS = {
|
|
@@ -14214,9 +14230,9 @@ var require_dist_cjs44 = __commonJS((exports) => {
|
|
|
14214
14230
|
default: undefined
|
|
14215
14231
|
};
|
|
14216
14232
|
var EndpointMode;
|
|
14217
|
-
(function(
|
|
14218
|
-
|
|
14219
|
-
|
|
14233
|
+
(function(EndpointMode) {
|
|
14234
|
+
EndpointMode["IPv4"] = "IPv4";
|
|
14235
|
+
EndpointMode["IPv6"] = "IPv6";
|
|
14220
14236
|
})(EndpointMode || (EndpointMode = {}));
|
|
14221
14237
|
var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
14222
14238
|
var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
|
|
@@ -14285,7 +14301,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
14285
14301
|
let disableFetchToken = false;
|
|
14286
14302
|
const { logger, profile } = init;
|
|
14287
14303
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
14288
|
-
const getCredentials = async (
|
|
14304
|
+
const getCredentials = async (maxRetries, options) => {
|
|
14289
14305
|
const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
|
|
14290
14306
|
if (isImdsV1Fallback) {
|
|
14291
14307
|
let fallbackBlockedFromProfile = false;
|
|
@@ -14299,8 +14315,8 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
14299
14315
|
}
|
|
14300
14316
|
return fallbackBlockedFromProcessEnv;
|
|
14301
14317
|
},
|
|
14302
|
-
configFileSelector: (
|
|
14303
|
-
const profileValue =
|
|
14318
|
+
configFileSelector: (profile) => {
|
|
14319
|
+
const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
|
|
14304
14320
|
fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
|
|
14305
14321
|
return fallbackBlockedFromProfile;
|
|
14306
14322
|
},
|
|
@@ -14320,17 +14336,17 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
14320
14336
|
}
|
|
14321
14337
|
}
|
|
14322
14338
|
const imdsProfile = (await retry(async () => {
|
|
14323
|
-
let
|
|
14339
|
+
let profile;
|
|
14324
14340
|
try {
|
|
14325
|
-
|
|
14341
|
+
profile = await getProfile(options);
|
|
14326
14342
|
} catch (err) {
|
|
14327
14343
|
if (err.statusCode === 401) {
|
|
14328
14344
|
disableFetchToken = false;
|
|
14329
14345
|
}
|
|
14330
14346
|
throw err;
|
|
14331
14347
|
}
|
|
14332
|
-
return
|
|
14333
|
-
},
|
|
14348
|
+
return profile;
|
|
14349
|
+
}, maxRetries)).trim();
|
|
14334
14350
|
return retry(async () => {
|
|
14335
14351
|
let creds;
|
|
14336
14352
|
try {
|
|
@@ -14342,7 +14358,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
14342
14358
|
throw err;
|
|
14343
14359
|
}
|
|
14344
14360
|
return creds;
|
|
14345
|
-
},
|
|
14361
|
+
}, maxRetries);
|
|
14346
14362
|
};
|
|
14347
14363
|
return async () => {
|
|
14348
14364
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
@@ -14407,8 +14423,8 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
|
|
|
14407
14423
|
exports.providerConfigFromInit = providerConfigFromInit;
|
|
14408
14424
|
});
|
|
14409
14425
|
|
|
14410
|
-
// ../../node_modules
|
|
14411
|
-
var require_dist_cjs45 = __commonJS((exports)
|
|
14426
|
+
// ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
|
|
14427
|
+
var require_dist_cjs45 = __commonJS(function(exports) {
|
|
14412
14428
|
var configResolver = require_dist_cjs33();
|
|
14413
14429
|
var nodeConfigProvider = require_dist_cjs36();
|
|
14414
14430
|
var propertyProvider = require_dist_cjs24();
|
|
@@ -14476,8 +14492,8 @@ var require_dist_cjs45 = __commonJS((exports) => {
|
|
|
14476
14492
|
exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
|
|
14477
14493
|
});
|
|
14478
14494
|
|
|
14479
|
-
// ../../node_modules
|
|
14480
|
-
var require_runtimeConfig = __commonJS((exports)
|
|
14495
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
|
|
14496
|
+
var require_runtimeConfig = __commonJS(function(exports) {
|
|
14481
14497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14482
14498
|
exports.getRuntimeConfig = undefined;
|
|
14483
14499
|
var tslib_1 = require_tslib();
|
|
@@ -14530,8 +14546,8 @@ var require_runtimeConfig = __commonJS((exports) => {
|
|
|
14530
14546
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
14531
14547
|
});
|
|
14532
14548
|
|
|
14533
|
-
// ../../node_modules
|
|
14534
|
-
var require_stsRegionDefaultResolver = __commonJS((exports)
|
|
14549
|
+
// ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js
|
|
14550
|
+
var require_stsRegionDefaultResolver = __commonJS(function(exports) {
|
|
14535
14551
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14536
14552
|
exports.warning = undefined;
|
|
14537
14553
|
exports.stsRegionDefaultResolver = stsRegionDefaultResolver;
|
|
@@ -14553,8 +14569,8 @@ var require_stsRegionDefaultResolver = __commonJS((exports) => {
|
|
|
14553
14569
|
};
|
|
14554
14570
|
});
|
|
14555
14571
|
|
|
14556
|
-
// ../../node_modules
|
|
14557
|
-
var require_dist_cjs46 = __commonJS((exports)
|
|
14572
|
+
// ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
|
|
14573
|
+
var require_dist_cjs46 = __commonJS(function(exports) {
|
|
14558
14574
|
var configResolver = require_dist_cjs33();
|
|
14559
14575
|
var stsRegionDefaultResolver = require_stsRegionDefaultResolver();
|
|
14560
14576
|
var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
|
|
@@ -14615,8 +14631,8 @@ var require_dist_cjs46 = __commonJS((exports) => {
|
|
|
14615
14631
|
});
|
|
14616
14632
|
});
|
|
14617
14633
|
|
|
14618
|
-
// ../../node_modules
|
|
14619
|
-
var require_dist_cjs47 = __commonJS((exports)
|
|
14634
|
+
// ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js
|
|
14635
|
+
var require_dist_cjs47 = __commonJS(function(exports) {
|
|
14620
14636
|
var middlewareHostHeader = require_dist_cjs3();
|
|
14621
14637
|
var middlewareLogger = require_dist_cjs4();
|
|
14622
14638
|
var middlewareRecursionDetection = require_dist_cjs5();
|
|
@@ -14646,10 +14662,10 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
14646
14662
|
Region: { type: "builtInParams", name: "region" },
|
|
14647
14663
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
14648
14664
|
};
|
|
14649
|
-
var getHttpAuthExtensionConfiguration = (
|
|
14650
|
-
const _httpAuthSchemes =
|
|
14651
|
-
let _httpAuthSchemeProvider =
|
|
14652
|
-
let _credentials =
|
|
14665
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
14666
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
14667
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
14668
|
+
let _credentials = runtimeConfig.credentials;
|
|
14653
14669
|
return {
|
|
14654
14670
|
setHttpAuthScheme(httpAuthScheme) {
|
|
14655
14671
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -14662,8 +14678,8 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
14662
14678
|
httpAuthSchemes() {
|
|
14663
14679
|
return _httpAuthSchemes;
|
|
14664
14680
|
},
|
|
14665
|
-
setHttpAuthSchemeProvider(
|
|
14666
|
-
_httpAuthSchemeProvider =
|
|
14681
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
14682
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
14667
14683
|
},
|
|
14668
14684
|
httpAuthSchemeProvider() {
|
|
14669
14685
|
return _httpAuthSchemeProvider;
|
|
@@ -14683,10 +14699,10 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
14683
14699
|
credentials: config.credentials()
|
|
14684
14700
|
};
|
|
14685
14701
|
};
|
|
14686
|
-
var resolveRuntimeExtensions = (
|
|
14687
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(
|
|
14702
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
14703
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
14688
14704
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14689
|
-
return Object.assign(
|
|
14705
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
14690
14706
|
};
|
|
14691
14707
|
|
|
14692
14708
|
class SSOClient extends smithyClient.Client {
|
|
@@ -15087,8 +15103,8 @@ var require_dist_cjs47 = __commonJS((exports) => {
|
|
|
15087
15103
|
exports.paginateListAccounts = paginateListAccounts;
|
|
15088
15104
|
});
|
|
15089
15105
|
|
|
15090
|
-
// ../../node_modules
|
|
15091
|
-
var require_httpAuthSchemeProvider2 = __commonJS((exports)
|
|
15106
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
|
15107
|
+
var require_httpAuthSchemeProvider2 = __commonJS(function(exports) {
|
|
15092
15108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15093
15109
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
|
|
15094
15110
|
var core_1 = require_dist_cjs30();
|
|
@@ -15153,8 +15169,8 @@ var require_httpAuthSchemeProvider2 = __commonJS((exports) => {
|
|
|
15153
15169
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
15154
15170
|
});
|
|
15155
15171
|
|
|
15156
|
-
// ../../node_modules
|
|
15157
|
-
var require_package2 = __commonJS((exports, module)
|
|
15172
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/package.json
|
|
15173
|
+
var require_package2 = __commonJS(function(exports, module) {
|
|
15158
15174
|
module.exports = {
|
|
15159
15175
|
name: "@aws-sdk/client-sso-oidc",
|
|
15160
15176
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
@@ -15256,8 +15272,8 @@ var require_package2 = __commonJS((exports, module) => {
|
|
|
15256
15272
|
};
|
|
15257
15273
|
});
|
|
15258
15274
|
|
|
15259
|
-
// ../../node_modules
|
|
15260
|
-
var require_dist_cjs48 = __commonJS((exports)
|
|
15275
|
+
// ../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
|
|
15276
|
+
var require_dist_cjs48 = __commonJS(function(exports) {
|
|
15261
15277
|
var client = require_client();
|
|
15262
15278
|
var propertyProvider = require_dist_cjs24();
|
|
15263
15279
|
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
@@ -15297,8 +15313,8 @@ var require_dist_cjs48 = __commonJS((exports) => {
|
|
|
15297
15313
|
exports.fromEnv = fromEnv;
|
|
15298
15314
|
});
|
|
15299
15315
|
|
|
15300
|
-
// ../../node_modules
|
|
15301
|
-
var require_checkUrl = __commonJS((exports)
|
|
15316
|
+
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
|
|
15317
|
+
var require_checkUrl = __commonJS(function(exports) {
|
|
15302
15318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15303
15319
|
exports.checkUrl = undefined;
|
|
15304
15320
|
var property_provider_1 = require_dist_cjs24();
|
|
@@ -15337,8 +15353,8 @@ var require_checkUrl = __commonJS((exports) => {
|
|
|
15337
15353
|
exports.checkUrl = checkUrl;
|
|
15338
15354
|
});
|
|
15339
15355
|
|
|
15340
|
-
// ../../node_modules
|
|
15341
|
-
var require_requestHelpers = __commonJS((exports)
|
|
15356
|
+
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
|
|
15357
|
+
var require_requestHelpers = __commonJS(function(exports) {
|
|
15342
15358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15343
15359
|
exports.createGetRequest = createGetRequest;
|
|
15344
15360
|
exports.getCredentials = getCredentials;
|
|
@@ -15388,8 +15404,8 @@ var require_requestHelpers = __commonJS((exports) => {
|
|
|
15388
15404
|
}
|
|
15389
15405
|
});
|
|
15390
15406
|
|
|
15391
|
-
// ../../node_modules
|
|
15392
|
-
var require_retry_wrapper = __commonJS((exports)
|
|
15407
|
+
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
|
|
15408
|
+
var require_retry_wrapper = __commonJS(function(exports) {
|
|
15393
15409
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15394
15410
|
exports.retryWrapper = undefined;
|
|
15395
15411
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
@@ -15407,8 +15423,8 @@ var require_retry_wrapper = __commonJS((exports) => {
|
|
|
15407
15423
|
exports.retryWrapper = retryWrapper;
|
|
15408
15424
|
});
|
|
15409
15425
|
|
|
15410
|
-
// ../../node_modules
|
|
15411
|
-
var require_fromHttp = __commonJS((exports)
|
|
15426
|
+
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
|
|
15427
|
+
var require_fromHttp = __commonJS(function(exports) {
|
|
15412
15428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15413
15429
|
exports.fromHttp = undefined;
|
|
15414
15430
|
var tslib_1 = require_tslib();
|
|
@@ -15472,8 +15488,8 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
15472
15488
|
exports.fromHttp = fromHttp;
|
|
15473
15489
|
});
|
|
15474
15490
|
|
|
15475
|
-
// ../../node_modules
|
|
15476
|
-
var require_dist_cjs49 = __commonJS((exports)
|
|
15491
|
+
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
|
15492
|
+
var require_dist_cjs49 = __commonJS(function(exports) {
|
|
15477
15493
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15478
15494
|
exports.fromHttp = undefined;
|
|
15479
15495
|
var fromHttp_1 = require_fromHttp();
|
|
@@ -15482,8 +15498,8 @@ var require_dist_cjs49 = __commonJS((exports) => {
|
|
|
15482
15498
|
} });
|
|
15483
15499
|
});
|
|
15484
15500
|
|
|
15485
|
-
// ../../node_modules
|
|
15486
|
-
var require_httpAuthSchemes = __commonJS((exports)
|
|
15501
|
+
// ../../node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
15502
|
+
var require_httpAuthSchemes = __commonJS(function(exports) {
|
|
15487
15503
|
var protocolHttp = require_dist_cjs2();
|
|
15488
15504
|
var core = require_dist_cjs19();
|
|
15489
15505
|
var propertyProvider = require_dist_cjs24();
|
|
@@ -15764,8 +15780,8 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
15764
15780
|
exports.validateSigningProperties = validateSigningProperties;
|
|
15765
15781
|
});
|
|
15766
15782
|
|
|
15767
|
-
// ../../node_modules
|
|
15768
|
-
var require_httpAuthSchemeProvider3 = __commonJS((exports)
|
|
15783
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
|
|
15784
|
+
var require_httpAuthSchemeProvider3 = __commonJS(function(exports) {
|
|
15769
15785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15770
15786
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
|
|
15771
15787
|
var core_1 = require_dist_cjs30();
|
|
@@ -15822,8 +15838,8 @@ var require_httpAuthSchemeProvider3 = __commonJS((exports) => {
|
|
|
15822
15838
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
15823
15839
|
});
|
|
15824
15840
|
|
|
15825
|
-
// ../../node_modules
|
|
15826
|
-
var require_package3 = __commonJS((exports, module)
|
|
15841
|
+
// ../../node_modules/@aws-sdk/nested-clients/package.json
|
|
15842
|
+
var require_package3 = __commonJS(function(exports, module) {
|
|
15827
15843
|
module.exports = {
|
|
15828
15844
|
name: "@aws-sdk/nested-clients",
|
|
15829
15845
|
version: "3.925.0",
|
|
@@ -15942,8 +15958,8 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
15942
15958
|
};
|
|
15943
15959
|
});
|
|
15944
15960
|
|
|
15945
|
-
// ../../node_modules
|
|
15946
|
-
var require_ruleset2 = __commonJS((exports)
|
|
15961
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
|
|
15962
|
+
var require_ruleset2 = __commonJS(function(exports) {
|
|
15947
15963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15948
15964
|
exports.ruleSet = undefined;
|
|
15949
15965
|
var u = "required";
|
|
@@ -15974,8 +15990,8 @@ var require_ruleset2 = __commonJS((exports) => {
|
|
|
15974
15990
|
exports.ruleSet = _data;
|
|
15975
15991
|
});
|
|
15976
15992
|
|
|
15977
|
-
// ../../node_modules
|
|
15978
|
-
var require_endpointResolver2 = __commonJS((exports)
|
|
15993
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
|
|
15994
|
+
var require_endpointResolver2 = __commonJS(function(exports) {
|
|
15979
15995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15980
15996
|
exports.defaultEndpointResolver = undefined;
|
|
15981
15997
|
var util_endpoints_1 = require_dist_cjs23();
|
|
@@ -15995,8 +16011,8 @@ var require_endpointResolver2 = __commonJS((exports) => {
|
|
|
15995
16011
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
15996
16012
|
});
|
|
15997
16013
|
|
|
15998
|
-
// ../../node_modules
|
|
15999
|
-
var require_runtimeConfig_shared2 = __commonJS((exports)
|
|
16014
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
|
|
16015
|
+
var require_runtimeConfig_shared2 = __commonJS(function(exports) {
|
|
16000
16016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16001
16017
|
exports.getRuntimeConfig = undefined;
|
|
16002
16018
|
var core_1 = require_dist_cjs30();
|
|
@@ -16038,8 +16054,8 @@ var require_runtimeConfig_shared2 = __commonJS((exports) => {
|
|
|
16038
16054
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
16039
16055
|
});
|
|
16040
16056
|
|
|
16041
|
-
// ../../node_modules
|
|
16042
|
-
var require_runtimeConfig2 = __commonJS((exports)
|
|
16057
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
|
|
16058
|
+
var require_runtimeConfig2 = __commonJS(function(exports) {
|
|
16043
16059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16044
16060
|
exports.getRuntimeConfig = undefined;
|
|
16045
16061
|
var tslib_1 = require_tslib();
|
|
@@ -16092,8 +16108,8 @@ var require_runtimeConfig2 = __commonJS((exports) => {
|
|
|
16092
16108
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
16093
16109
|
});
|
|
16094
16110
|
|
|
16095
|
-
// ../../node_modules
|
|
16096
|
-
var require_sso_oidc = __commonJS((exports)
|
|
16111
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
16112
|
+
var require_sso_oidc = __commonJS(function(exports) {
|
|
16097
16113
|
var middlewareHostHeader = require_dist_cjs3();
|
|
16098
16114
|
var middlewareLogger = require_dist_cjs4();
|
|
16099
16115
|
var middlewareRecursionDetection = require_dist_cjs5();
|
|
@@ -16123,10 +16139,10 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
16123
16139
|
Region: { type: "builtInParams", name: "region" },
|
|
16124
16140
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
16125
16141
|
};
|
|
16126
|
-
var getHttpAuthExtensionConfiguration = (
|
|
16127
|
-
const _httpAuthSchemes =
|
|
16128
|
-
let _httpAuthSchemeProvider =
|
|
16129
|
-
let _credentials =
|
|
16142
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
16143
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
16144
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
16145
|
+
let _credentials = runtimeConfig.credentials;
|
|
16130
16146
|
return {
|
|
16131
16147
|
setHttpAuthScheme(httpAuthScheme) {
|
|
16132
16148
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -16139,8 +16155,8 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
16139
16155
|
httpAuthSchemes() {
|
|
16140
16156
|
return _httpAuthSchemes;
|
|
16141
16157
|
},
|
|
16142
|
-
setHttpAuthSchemeProvider(
|
|
16143
|
-
_httpAuthSchemeProvider =
|
|
16158
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
16159
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
16144
16160
|
},
|
|
16145
16161
|
httpAuthSchemeProvider() {
|
|
16146
16162
|
return _httpAuthSchemeProvider;
|
|
@@ -16160,10 +16176,10 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
16160
16176
|
credentials: config.credentials()
|
|
16161
16177
|
};
|
|
16162
16178
|
};
|
|
16163
|
-
var resolveRuntimeExtensions = (
|
|
16164
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(
|
|
16179
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
16180
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
16165
16181
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
16166
|
-
return Object.assign(
|
|
16182
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
16167
16183
|
};
|
|
16168
16184
|
|
|
16169
16185
|
class SSOOIDCClient extends smithyClient.Client {
|
|
@@ -16717,8 +16733,8 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
16717
16733
|
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
16718
16734
|
});
|
|
16719
16735
|
|
|
16720
|
-
// ../../node_modules
|
|
16721
|
-
var require_dist_cjs50 = __commonJS((exports)
|
|
16736
|
+
// ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
|
16737
|
+
var require_dist_cjs50 = __commonJS(function(exports) {
|
|
16722
16738
|
var client = require_client();
|
|
16723
16739
|
var httpAuthSchemes = require_httpAuthSchemes();
|
|
16724
16740
|
var propertyProvider = require_dist_cjs24();
|
|
@@ -16867,8 +16883,8 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
16867
16883
|
exports.nodeProvider = nodeProvider;
|
|
16868
16884
|
});
|
|
16869
16885
|
|
|
16870
|
-
// ../../node_modules
|
|
16871
|
-
var require_loadSso_CVy8iqsZ = __commonJS((exports)
|
|
16886
|
+
// ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js
|
|
16887
|
+
var require_loadSso_CVy8iqsZ = __commonJS(function(exports) {
|
|
16872
16888
|
var clientSso = require_dist_cjs47();
|
|
16873
16889
|
Object.defineProperty(exports, "GetRoleCredentialsCommand", {
|
|
16874
16890
|
enumerable: true,
|
|
@@ -16884,8 +16900,8 @@ var require_loadSso_CVy8iqsZ = __commonJS((exports) => {
|
|
|
16884
16900
|
});
|
|
16885
16901
|
});
|
|
16886
16902
|
|
|
16887
|
-
// ../../node_modules
|
|
16888
|
-
var require_dist_cjs51 = __commonJS((exports)
|
|
16903
|
+
// ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
|
16904
|
+
var require_dist_cjs51 = __commonJS(function(exports) {
|
|
16889
16905
|
var propertyProvider = require_dist_cjs24();
|
|
16890
16906
|
var sharedIniFileLoader = require_dist_cjs35();
|
|
16891
16907
|
var client = require_client();
|
|
@@ -17059,8 +17075,8 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
17059
17075
|
exports.validateSsoProfile = validateSsoProfile;
|
|
17060
17076
|
});
|
|
17061
17077
|
|
|
17062
|
-
// ../../node_modules
|
|
17063
|
-
var require_httpAuthSchemeProvider4 = __commonJS((exports)
|
|
17078
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
|
|
17079
|
+
var require_httpAuthSchemeProvider4 = __commonJS(function(exports) {
|
|
17064
17080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17065
17081
|
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = undefined;
|
|
17066
17082
|
var core_1 = require_dist_cjs30();
|
|
@@ -17123,8 +17139,8 @@ var require_httpAuthSchemeProvider4 = __commonJS((exports) => {
|
|
|
17123
17139
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
17124
17140
|
});
|
|
17125
17141
|
|
|
17126
|
-
// ../../node_modules
|
|
17127
|
-
var require_EndpointParameters = __commonJS((exports)
|
|
17142
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
|
|
17143
|
+
var require_EndpointParameters = __commonJS(function(exports) {
|
|
17128
17144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17129
17145
|
exports.commonParams = exports.resolveClientEndpointParameters = undefined;
|
|
17130
17146
|
var resolveClientEndpointParameters = (options) => {
|
|
@@ -17145,8 +17161,8 @@ var require_EndpointParameters = __commonJS((exports) => {
|
|
|
17145
17161
|
};
|
|
17146
17162
|
});
|
|
17147
17163
|
|
|
17148
|
-
// ../../node_modules
|
|
17149
|
-
var require_ruleset3 = __commonJS((exports)
|
|
17164
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js
|
|
17165
|
+
var require_ruleset3 = __commonJS(function(exports) {
|
|
17150
17166
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17151
17167
|
exports.ruleSet = undefined;
|
|
17152
17168
|
var F = "required";
|
|
@@ -17189,8 +17205,8 @@ var require_ruleset3 = __commonJS((exports) => {
|
|
|
17189
17205
|
exports.ruleSet = _data;
|
|
17190
17206
|
});
|
|
17191
17207
|
|
|
17192
|
-
// ../../node_modules
|
|
17193
|
-
var require_endpointResolver3 = __commonJS((exports)
|
|
17208
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js
|
|
17209
|
+
var require_endpointResolver3 = __commonJS(function(exports) {
|
|
17194
17210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17195
17211
|
exports.defaultEndpointResolver = undefined;
|
|
17196
17212
|
var util_endpoints_1 = require_dist_cjs23();
|
|
@@ -17210,8 +17226,8 @@ var require_endpointResolver3 = __commonJS((exports) => {
|
|
|
17210
17226
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
17211
17227
|
});
|
|
17212
17228
|
|
|
17213
|
-
// ../../node_modules
|
|
17214
|
-
var require_runtimeConfig_shared3 = __commonJS((exports)
|
|
17229
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js
|
|
17230
|
+
var require_runtimeConfig_shared3 = __commonJS(function(exports) {
|
|
17215
17231
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17216
17232
|
exports.getRuntimeConfig = undefined;
|
|
17217
17233
|
var core_1 = require_dist_cjs30();
|
|
@@ -17253,8 +17269,8 @@ var require_runtimeConfig_shared3 = __commonJS((exports) => {
|
|
|
17253
17269
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
17254
17270
|
});
|
|
17255
17271
|
|
|
17256
|
-
// ../../node_modules
|
|
17257
|
-
var require_runtimeConfig3 = __commonJS((exports)
|
|
17272
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js
|
|
17273
|
+
var require_runtimeConfig3 = __commonJS(function(exports) {
|
|
17258
17274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17259
17275
|
exports.getRuntimeConfig = undefined;
|
|
17260
17276
|
var tslib_1 = require_tslib();
|
|
@@ -17320,8 +17336,8 @@ var require_runtimeConfig3 = __commonJS((exports) => {
|
|
|
17320
17336
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
17321
17337
|
});
|
|
17322
17338
|
|
|
17323
|
-
// ../../node_modules
|
|
17324
|
-
var require_httpAuthExtensionConfiguration = __commonJS((exports)
|
|
17339
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js
|
|
17340
|
+
var require_httpAuthExtensionConfiguration = __commonJS(function(exports) {
|
|
17325
17341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17326
17342
|
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = undefined;
|
|
17327
17343
|
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
@@ -17365,8 +17381,8 @@ var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
|
|
|
17365
17381
|
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
17366
17382
|
});
|
|
17367
17383
|
|
|
17368
|
-
// ../../node_modules
|
|
17369
|
-
var require_runtimeExtensions = __commonJS((exports)
|
|
17384
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js
|
|
17385
|
+
var require_runtimeExtensions = __commonJS(function(exports) {
|
|
17370
17386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17371
17387
|
exports.resolveRuntimeExtensions = undefined;
|
|
17372
17388
|
var region_config_resolver_1 = require_dist_cjs46();
|
|
@@ -17381,8 +17397,8 @@ var require_runtimeExtensions = __commonJS((exports) => {
|
|
|
17381
17397
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
17382
17398
|
});
|
|
17383
17399
|
|
|
17384
|
-
// ../../node_modules
|
|
17385
|
-
var require_STSClient = __commonJS((exports)
|
|
17400
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js
|
|
17401
|
+
var require_STSClient = __commonJS(function(exports) {
|
|
17386
17402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17387
17403
|
exports.STSClient = exports.__Client = undefined;
|
|
17388
17404
|
var middleware_host_header_1 = require_dist_cjs3();
|
|
@@ -17439,8 +17455,8 @@ var require_STSClient = __commonJS((exports) => {
|
|
|
17439
17455
|
exports.STSClient = STSClient;
|
|
17440
17456
|
});
|
|
17441
17457
|
|
|
17442
|
-
// ../../node_modules
|
|
17443
|
-
var require_sts = __commonJS((exports)
|
|
17458
|
+
// ../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
17459
|
+
var require_sts = __commonJS(function(exports) {
|
|
17444
17460
|
var STSClient = require_STSClient();
|
|
17445
17461
|
var smithyClient = require_dist_cjs28();
|
|
17446
17462
|
var middlewareEndpoint = require_dist_cjs37();
|
|
@@ -18121,7 +18137,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
18121
18137
|
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
|
18122
18138
|
return region ?? parentRegion ?? stsDefaultRegion;
|
|
18123
18139
|
};
|
|
18124
|
-
var getDefaultRoleAssumer$1 = (stsOptions,
|
|
18140
|
+
var getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
|
|
18125
18141
|
let stsClient;
|
|
18126
18142
|
let closureSourceCreds;
|
|
18127
18143
|
return async (sourceCreds, params) => {
|
|
@@ -18133,7 +18149,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
18133
18149
|
profile
|
|
18134
18150
|
});
|
|
18135
18151
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
18136
|
-
stsClient = new
|
|
18152
|
+
stsClient = new STSClient({
|
|
18137
18153
|
...stsOptions,
|
|
18138
18154
|
userAgentAppId,
|
|
18139
18155
|
profile,
|
|
@@ -18160,7 +18176,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
18160
18176
|
return credentials;
|
|
18161
18177
|
};
|
|
18162
18178
|
};
|
|
18163
|
-
var getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions,
|
|
18179
|
+
var getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
|
|
18164
18180
|
let stsClient;
|
|
18165
18181
|
return async (params) => {
|
|
18166
18182
|
if (!stsClient) {
|
|
@@ -18170,7 +18186,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
18170
18186
|
profile
|
|
18171
18187
|
});
|
|
18172
18188
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
18173
|
-
stsClient = new
|
|
18189
|
+
stsClient = new STSClient({
|
|
18174
18190
|
...stsOptions,
|
|
18175
18191
|
userAgentAppId,
|
|
18176
18192
|
profile,
|
|
@@ -18257,8 +18273,8 @@ var require_sts = __commonJS((exports) => {
|
|
|
18257
18273
|
});
|
|
18258
18274
|
});
|
|
18259
18275
|
|
|
18260
|
-
// ../../node_modules
|
|
18261
|
-
var require_dist_cjs52 = __commonJS((exports)
|
|
18276
|
+
// ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
|
18277
|
+
var require_dist_cjs52 = __commonJS(function(exports) {
|
|
18262
18278
|
var sharedIniFileLoader = require_dist_cjs35();
|
|
18263
18279
|
var propertyProvider = require_dist_cjs24();
|
|
18264
18280
|
var child_process = __require("child_process");
|
|
@@ -18330,8 +18346,8 @@ var require_dist_cjs52 = __commonJS((exports) => {
|
|
|
18330
18346
|
exports.fromProcess = fromProcess;
|
|
18331
18347
|
});
|
|
18332
18348
|
|
|
18333
|
-
// ../../node_modules
|
|
18334
|
-
var require_fromWebToken = __commonJS((exports)
|
|
18349
|
+
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
|
|
18350
|
+
var require_fromWebToken = __commonJS(function(exports) {
|
|
18335
18351
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
18336
18352
|
if (k2 === undefined)
|
|
18337
18353
|
k2 = k;
|
|
@@ -18354,10 +18370,10 @@ var require_fromWebToken = __commonJS((exports) => {
|
|
|
18354
18370
|
});
|
|
18355
18371
|
var __importStar = exports && exports.__importStar || function() {
|
|
18356
18372
|
var ownKeys = function(o) {
|
|
18357
|
-
ownKeys = Object.getOwnPropertyNames || function(
|
|
18373
|
+
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
18358
18374
|
var ar = [];
|
|
18359
|
-
for (var k in
|
|
18360
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
18375
|
+
for (var k in o)
|
|
18376
|
+
if (Object.prototype.hasOwnProperty.call(o, k))
|
|
18361
18377
|
ar[ar.length] = k;
|
|
18362
18378
|
return ar;
|
|
18363
18379
|
};
|
|
@@ -18406,8 +18422,8 @@ var require_fromWebToken = __commonJS((exports) => {
|
|
|
18406
18422
|
exports.fromWebToken = fromWebToken;
|
|
18407
18423
|
});
|
|
18408
18424
|
|
|
18409
|
-
// ../../node_modules
|
|
18410
|
-
var require_fromTokenFile = __commonJS((exports)
|
|
18425
|
+
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
|
|
18426
|
+
var require_fromTokenFile = __commonJS(function(exports) {
|
|
18411
18427
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18412
18428
|
exports.fromTokenFile = undefined;
|
|
18413
18429
|
var client_1 = require_client();
|
|
@@ -18442,8 +18458,8 @@ var require_fromTokenFile = __commonJS((exports) => {
|
|
|
18442
18458
|
exports.fromTokenFile = fromTokenFile;
|
|
18443
18459
|
});
|
|
18444
18460
|
|
|
18445
|
-
// ../../node_modules
|
|
18446
|
-
var require_dist_cjs53 = __commonJS((exports)
|
|
18461
|
+
// ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
|
|
18462
|
+
var require_dist_cjs53 = __commonJS(function(exports) {
|
|
18447
18463
|
var fromTokenFile = require_fromTokenFile();
|
|
18448
18464
|
var fromWebToken = require_fromWebToken();
|
|
18449
18465
|
Object.keys(fromTokenFile).forEach(function(k) {
|
|
@@ -18466,8 +18482,8 @@ var require_dist_cjs53 = __commonJS((exports) => {
|
|
|
18466
18482
|
});
|
|
18467
18483
|
});
|
|
18468
18484
|
|
|
18469
|
-
// ../../node_modules
|
|
18470
|
-
var require_dist_cjs54 = __commonJS((exports)
|
|
18485
|
+
// ../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
|
18486
|
+
var require_dist_cjs54 = __commonJS(function(exports) {
|
|
18471
18487
|
var sharedIniFileLoader = require_dist_cjs35();
|
|
18472
18488
|
var propertyProvider = require_dist_cjs24();
|
|
18473
18489
|
var client = require_client();
|
|
@@ -18514,7 +18530,7 @@ var require_dist_cjs54 = __commonJS((exports) => {
|
|
|
18514
18530
|
}
|
|
18515
18531
|
return withProviderProfile;
|
|
18516
18532
|
};
|
|
18517
|
-
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {},
|
|
18533
|
+
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}, resolveProfileData) => {
|
|
18518
18534
|
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
18519
18535
|
const profileData = profiles[profileName];
|
|
18520
18536
|
const { source_profile, region } = profileData;
|
|
@@ -18533,7 +18549,7 @@ var require_dist_cjs54 = __commonJS((exports) => {
|
|
|
18533
18549
|
throw new propertyProvider.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${sharedIniFileLoader.getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
18534
18550
|
}
|
|
18535
18551
|
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
18536
|
-
const sourceCredsProvider = source_profile ?
|
|
18552
|
+
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
18537
18553
|
...visitedProfiles,
|
|
18538
18554
|
[source_profile]: true
|
|
18539
18555
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
@@ -18642,8 +18658,8 @@ var require_dist_cjs54 = __commonJS((exports) => {
|
|
|
18642
18658
|
exports.fromIni = fromIni;
|
|
18643
18659
|
});
|
|
18644
18660
|
|
|
18645
|
-
// ../../node_modules
|
|
18646
|
-
var require_dist_cjs55 = __commonJS((exports)
|
|
18661
|
+
// ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
|
18662
|
+
var require_dist_cjs55 = __commonJS(function(exports) {
|
|
18647
18663
|
var credentialProviderEnv = require_dist_cjs48();
|
|
18648
18664
|
var propertyProvider = require_dist_cjs24();
|
|
18649
18665
|
var sharedIniFileLoader = require_dist_cjs35();
|
|
@@ -18785,8 +18801,8 @@ var require_dist_cjs55 = __commonJS((exports) => {
|
|
|
18785
18801
|
exports.defaultProvider = defaultProvider;
|
|
18786
18802
|
});
|
|
18787
18803
|
|
|
18788
|
-
// ../../node_modules
|
|
18789
|
-
var require_ruleset4 = __commonJS((exports)
|
|
18804
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
|
18805
|
+
var require_ruleset4 = __commonJS(function(exports) {
|
|
18790
18806
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18791
18807
|
exports.ruleSet = undefined;
|
|
18792
18808
|
var u = "required";
|
|
@@ -18817,8 +18833,8 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
18817
18833
|
exports.ruleSet = _data;
|
|
18818
18834
|
});
|
|
18819
18835
|
|
|
18820
|
-
// ../../node_modules
|
|
18821
|
-
var require_endpointResolver4 = __commonJS((exports)
|
|
18836
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
|
18837
|
+
var require_endpointResolver4 = __commonJS(function(exports) {
|
|
18822
18838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18823
18839
|
exports.defaultEndpointResolver = undefined;
|
|
18824
18840
|
var util_endpoints_1 = require_dist_cjs23();
|
|
@@ -18838,8 +18854,8 @@ var require_endpointResolver4 = __commonJS((exports) => {
|
|
|
18838
18854
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
18839
18855
|
});
|
|
18840
18856
|
|
|
18841
|
-
// ../../node_modules
|
|
18842
|
-
var require_runtimeConfig_shared4 = __commonJS((exports)
|
|
18857
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
|
18858
|
+
var require_runtimeConfig_shared4 = __commonJS(function(exports) {
|
|
18843
18859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18844
18860
|
exports.getRuntimeConfig = undefined;
|
|
18845
18861
|
var core_1 = require_dist_cjs30();
|
|
@@ -18881,8 +18897,8 @@ var require_runtimeConfig_shared4 = __commonJS((exports) => {
|
|
|
18881
18897
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
18882
18898
|
});
|
|
18883
18899
|
|
|
18884
|
-
// ../../node_modules
|
|
18885
|
-
var require_runtimeConfig4 = __commonJS((exports)
|
|
18900
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
|
18901
|
+
var require_runtimeConfig4 = __commonJS(function(exports) {
|
|
18886
18902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18887
18903
|
exports.getRuntimeConfig = undefined;
|
|
18888
18904
|
var tslib_1 = require_tslib();
|
|
@@ -18937,8 +18953,8 @@ var require_runtimeConfig4 = __commonJS((exports) => {
|
|
|
18937
18953
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
18938
18954
|
});
|
|
18939
18955
|
|
|
18940
|
-
// ../../node_modules
|
|
18941
|
-
var require_dist_cjs56 = __commonJS((exports)
|
|
18956
|
+
// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
|
18957
|
+
var require_dist_cjs56 = __commonJS(function(exports) {
|
|
18942
18958
|
var middlewareHostHeader = require_dist_cjs3();
|
|
18943
18959
|
var middlewareLogger = require_dist_cjs4();
|
|
18944
18960
|
var middlewareRecursionDetection = require_dist_cjs5();
|
|
@@ -18968,10 +18984,10 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
18968
18984
|
Region: { type: "builtInParams", name: "region" },
|
|
18969
18985
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
18970
18986
|
};
|
|
18971
|
-
var getHttpAuthExtensionConfiguration = (
|
|
18972
|
-
const _httpAuthSchemes =
|
|
18973
|
-
let _httpAuthSchemeProvider =
|
|
18974
|
-
let _credentials =
|
|
18987
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
18988
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
18989
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
18990
|
+
let _credentials = runtimeConfig.credentials;
|
|
18975
18991
|
return {
|
|
18976
18992
|
setHttpAuthScheme(httpAuthScheme) {
|
|
18977
18993
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -18984,8 +19000,8 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
18984
19000
|
httpAuthSchemes() {
|
|
18985
19001
|
return _httpAuthSchemes;
|
|
18986
19002
|
},
|
|
18987
|
-
setHttpAuthSchemeProvider(
|
|
18988
|
-
_httpAuthSchemeProvider =
|
|
19003
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19004
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
18989
19005
|
},
|
|
18990
19006
|
httpAuthSchemeProvider() {
|
|
18991
19007
|
return _httpAuthSchemeProvider;
|
|
@@ -19005,10 +19021,10 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
19005
19021
|
credentials: config.credentials()
|
|
19006
19022
|
};
|
|
19007
19023
|
};
|
|
19008
|
-
var resolveRuntimeExtensions = (
|
|
19009
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(
|
|
19024
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
19025
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
19010
19026
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
19011
|
-
return Object.assign(
|
|
19027
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
19012
19028
|
};
|
|
19013
19029
|
|
|
19014
19030
|
class SSOOIDCClient extends smithyClient.Client {
|
|
@@ -20493,7 +20509,7 @@ function createAwsesh(options) {
|
|
|
20493
20509
|
await storage.remove("credentials/last-set");
|
|
20494
20510
|
}
|
|
20495
20511
|
},
|
|
20496
|
-
async setCredential(
|
|
20512
|
+
async setCredential(options) {
|
|
20497
20513
|
const {
|
|
20498
20514
|
credentials,
|
|
20499
20515
|
sessionName,
|
|
@@ -20502,7 +20518,7 @@ function createAwsesh(options) {
|
|
|
20502
20518
|
roleName,
|
|
20503
20519
|
region,
|
|
20504
20520
|
profileName: customProfileName
|
|
20505
|
-
} =
|
|
20521
|
+
} = options;
|
|
20506
20522
|
const configuredProfile = customProfileName === undefined ? await storage.read("preference/profile-names").then((data) => data?.[sessionName]?.[accountName]?.[roleName]) : undefined;
|
|
20507
20523
|
const profileName = customProfileName || configuredProfile || "default";
|
|
20508
20524
|
const isDefault = !customProfileName && !configuredProfile;
|
|
@@ -20596,9 +20612,9 @@ function createAwsesh(options) {
|
|
|
20596
20612
|
};
|
|
20597
20613
|
}
|
|
20598
20614
|
export {
|
|
20599
|
-
|
|
20600
|
-
Storage,
|
|
20601
|
-
Sessions,
|
|
20615
|
+
AWSClient,
|
|
20602
20616
|
Credentials,
|
|
20603
|
-
|
|
20617
|
+
Sessions,
|
|
20618
|
+
Storage,
|
|
20619
|
+
createAwsesh
|
|
20604
20620
|
};
|