@digipair/skill-s3 0.136.3 → 0.136.4

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.
@@ -0,0 +1,2057 @@
1
+ import { a as awsEndpointFunctions, N as NODE_APP_ID_CONFIG_OPTIONS, H as Hash, c as createDefaultUserAgentProvider, p as packageInfo, D as DEFAULT_RETRY_MODE, g as getAwsRegionExtensionConfiguration, r as resolveAwsRegionExtensionConfiguration, b as resolveUserAgentConfig, d as resolveEndpointConfig, e as resolveHostHeaderConfig, f as getUserAgentPlugin, h as getContentLengthPlugin, i as getHostHeaderPlugin, j as getLoggerPlugin, k as getRecursionDetectionPlugin, l as getEndpointPlugin, m as createAggregatedClient } from './index.esm20.js';
2
+ import { u as resolveAwsSdkSigV4Config, q as normalizeProvider, m as getSmithyContext, E as EndpointCache, y as resolveEndpoint, h as customEndpointFunctions, S as ServiceException, T as TypeRegistry, t as toUtf8, f as fromUtf8, p as parseUrl, z as NoOpLogger, A as AwsSdkSigV4Signer, B as toBase64, D as fromBase64, F as emitWarningIfUnsupportedVersion, G as resolveDefaultsModeConfig, I as emitWarningIfUnsupportedVersion$1, l as loadConfig, J as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, K as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, L as streamCollector, N as NodeHttpHandler, M as NODE_REGION_CONFIG_OPTIONS, O as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Q as calculateBodyLength, R as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, U as loadConfigsForDefaultMode, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as NODE_REGION_CONFIG_FILE_OPTIONS, X as getDefaultExtensionConfiguration, Y as getHttpHandlerExtensionConfiguration, Z as resolveDefaultRuntimeConfig, _ as resolveHttpHandlerRuntimeConfig, $ as resolveRetryConfig, a0 as resolveRegionConfig, a1 as getSchemaSerdePlugin, a2 as getRetryPlugin, a3 as getHttpAuthSchemeEndpointRuleSetPlugin, a4 as getHttpSigningPlugin, a5 as Client, a6 as DefaultIdentityProviderConfig, a7 as Command } from './index.esm2.js';
3
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol.esm.js';
4
+ import { N as NoAuthSigner } from './noAuth.esm.js';
5
+ import 'os';
6
+ import 'process';
7
+ import 'buffer';
8
+ import 'crypto';
9
+ import 'path';
10
+ import 'node:fs/promises';
11
+ import 'stream';
12
+ import 'node:stream';
13
+ import 'http';
14
+ import 'https';
15
+ import 'node:fs';
16
+ import 'zlib';
17
+
18
+ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
19
+ try {
20
+ var info = gen[key](arg);
21
+ var value = info.value;
22
+ } catch (error) {
23
+ reject(error);
24
+ return;
25
+ }
26
+ if (info.done) {
27
+ resolve(value);
28
+ } else {
29
+ Promise.resolve(value).then(_next, _throw);
30
+ }
31
+ }
32
+ function _async_to_generator$3(fn) {
33
+ return function() {
34
+ var self = this, args = arguments;
35
+ return new Promise(function(resolve, reject) {
36
+ var gen = fn.apply(self, args);
37
+ function _next(value) {
38
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
39
+ }
40
+ function _throw(err) {
41
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
42
+ }
43
+ _next(undefined);
44
+ });
45
+ };
46
+ }
47
+ function _ts_generator$3(thisArg, body) {
48
+ var f, y, t, g, _ = {
49
+ label: 0,
50
+ sent: function() {
51
+ if (t[0] & 1) throw t[1];
52
+ return t[1];
53
+ },
54
+ trys: [],
55
+ ops: []
56
+ };
57
+ return g = {
58
+ next: verb(0),
59
+ "throw": verb(1),
60
+ "return": verb(2)
61
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
62
+ return this;
63
+ }), g;
64
+ function verb(n) {
65
+ return function(v) {
66
+ return step([
67
+ n,
68
+ v
69
+ ]);
70
+ };
71
+ }
72
+ function step(op) {
73
+ if (f) throw new TypeError("Generator is already executing.");
74
+ while(_)try {
75
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
76
+ if (y = 0, t) op = [
77
+ op[0] & 2,
78
+ t.value
79
+ ];
80
+ switch(op[0]){
81
+ case 0:
82
+ case 1:
83
+ t = op;
84
+ break;
85
+ case 4:
86
+ _.label++;
87
+ return {
88
+ value: op[1],
89
+ done: false
90
+ };
91
+ case 5:
92
+ _.label++;
93
+ y = op[1];
94
+ op = [
95
+ 0
96
+ ];
97
+ continue;
98
+ case 7:
99
+ op = _.ops.pop();
100
+ _.trys.pop();
101
+ continue;
102
+ default:
103
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
104
+ _ = 0;
105
+ continue;
106
+ }
107
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
108
+ _.label = op[1];
109
+ break;
110
+ }
111
+ if (op[0] === 6 && _.label < t[1]) {
112
+ _.label = t[1];
113
+ t = op;
114
+ break;
115
+ }
116
+ if (t && _.label < t[2]) {
117
+ _.label = t[2];
118
+ _.ops.push(op);
119
+ break;
120
+ }
121
+ if (t[2]) _.ops.pop();
122
+ _.trys.pop();
123
+ continue;
124
+ }
125
+ op = body.call(thisArg, _);
126
+ } catch (e) {
127
+ op = [
128
+ 6,
129
+ e
130
+ ];
131
+ y = 0;
132
+ } finally{
133
+ f = t = 0;
134
+ }
135
+ if (op[0] & 5) throw op[1];
136
+ return {
137
+ value: op[0] ? op[1] : void 0,
138
+ done: true
139
+ };
140
+ }
141
+ }
142
+ var defaultSigninHttpAuthSchemeParametersProvider = function() {
143
+ var _ref = _async_to_generator$3(function(config, context, input) {
144
+ var _tmp;
145
+ return _ts_generator$3(this, function(_state) {
146
+ switch(_state.label){
147
+ case 0:
148
+ _tmp = {
149
+ operation: getSmithyContext(context).operation
150
+ };
151
+ return [
152
+ 4,
153
+ normalizeProvider(config.region)()
154
+ ];
155
+ case 1:
156
+ return [
157
+ 2,
158
+ (_tmp.region = _state.sent() || function() {
159
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
160
+ }(), _tmp)
161
+ ];
162
+ }
163
+ });
164
+ });
165
+ return function defaultSigninHttpAuthSchemeParametersProvider(config, context, input) {
166
+ return _ref.apply(this, arguments);
167
+ };
168
+ }();
169
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
170
+ return {
171
+ schemeId: "aws.auth#sigv4",
172
+ signingProperties: {
173
+ name: "signin",
174
+ region: authParameters.region
175
+ },
176
+ propertiesExtractor: function(config, context) {
177
+ return {
178
+ signingProperties: {
179
+ config: config,
180
+ context: context
181
+ }
182
+ };
183
+ }
184
+ };
185
+ }
186
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
187
+ return {
188
+ schemeId: "smithy.api#noAuth"
189
+ };
190
+ }
191
+ var defaultSigninHttpAuthSchemeProvider = function(authParameters) {
192
+ var options = [];
193
+ switch(authParameters.operation){
194
+ case "CreateOAuth2Token":
195
+ {
196
+ options.push(createSmithyApiNoAuthHttpAuthOption());
197
+ break;
198
+ }
199
+ default:
200
+ {
201
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
202
+ }
203
+ }
204
+ return options;
205
+ };
206
+ var resolveHttpAuthSchemeConfig = function(config) {
207
+ var config_0 = resolveAwsSdkSigV4Config(config);
208
+ var _config_authSchemePreference;
209
+ return Object.assign(config_0, {
210
+ authSchemePreference: normalizeProvider((_config_authSchemePreference = config.authSchemePreference) !== null && _config_authSchemePreference !== void 0 ? _config_authSchemePreference : [])
211
+ });
212
+ };
213
+
214
+ var resolveClientEndpointParameters = function(options) {
215
+ var _options_useDualstackEndpoint, _options_useFipsEndpoint;
216
+ return Object.assign(options, {
217
+ useDualstackEndpoint: (_options_useDualstackEndpoint = options.useDualstackEndpoint) !== null && _options_useDualstackEndpoint !== void 0 ? _options_useDualstackEndpoint : false,
218
+ useFipsEndpoint: (_options_useFipsEndpoint = options.useFipsEndpoint) !== null && _options_useFipsEndpoint !== void 0 ? _options_useFipsEndpoint : false,
219
+ defaultSigningName: "signin"
220
+ });
221
+ };
222
+ var commonParams = {
223
+ UseFIPS: {
224
+ type: "builtInParams",
225
+ name: "useFipsEndpoint"
226
+ },
227
+ Endpoint: {
228
+ type: "builtInParams",
229
+ name: "endpoint"
230
+ },
231
+ Region: {
232
+ type: "builtInParams",
233
+ name: "region"
234
+ },
235
+ UseDualStack: {
236
+ type: "builtInParams",
237
+ name: "useDualstackEndpoint"
238
+ }
239
+ };
240
+
241
+ function _define_property$4(obj, key, value) {
242
+ if (key in obj) {
243
+ Object.defineProperty(obj, key, {
244
+ value: value,
245
+ enumerable: true,
246
+ configurable: true,
247
+ writable: true
248
+ });
249
+ } else {
250
+ obj[key] = value;
251
+ }
252
+ return obj;
253
+ }
254
+ var u = "required", v = "fn", w = "argv", x = "ref";
255
+ var _obj$1, _obj1$1, _obj2$1, _obj3, _obj4, _obj5, _obj6, _obj7, _obj8, _obj9;
256
+ var a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = (_obj$1 = {}, _define_property$4(_obj$1, u, true), _define_property$4(_obj$1, "default", false), _define_property$4(_obj$1, "type", "boolean"), _obj$1), j = (_obj1$1 = {}, _define_property$4(_obj1$1, u, false), _define_property$4(_obj1$1, "type", "string"), _obj1$1), k = _define_property$4({}, x, "Endpoint"), l = (_obj2$1 = {}, _define_property$4(_obj2$1, v, c), _define_property$4(_obj2$1, w, [
257
+ _define_property$4({}, x, "UseFIPS"),
258
+ true
259
+ ]), _obj2$1), m = (_obj3 = {}, _define_property$4(_obj3, v, c), _define_property$4(_obj3, w, [
260
+ _define_property$4({}, x, "UseDualStack"),
261
+ true
262
+ ]), _obj3), n = {}, o = (_obj4 = {}, _define_property$4(_obj4, v, "getAttr"), _define_property$4(_obj4, w, [
263
+ _define_property$4({}, x, g),
264
+ "name"
265
+ ]), _obj4), p = (_obj5 = {}, _define_property$4(_obj5, v, c), _define_property$4(_obj5, w, [
266
+ _define_property$4({}, x, "UseFIPS"),
267
+ false
268
+ ]), _obj5), q = (_obj6 = {}, _define_property$4(_obj6, v, c), _define_property$4(_obj6, w, [
269
+ _define_property$4({}, x, "UseDualStack"),
270
+ false
271
+ ]), _obj6), r = (_obj7 = {}, _define_property$4(_obj7, v, "getAttr"), _define_property$4(_obj7, w, [
272
+ _define_property$4({}, x, g),
273
+ "supportsFIPS"
274
+ ]), _obj7), s = (_obj9 = {}, _define_property$4(_obj9, v, c), _define_property$4(_obj9, w, [
275
+ true,
276
+ (_obj8 = {}, _define_property$4(_obj8, v, "getAttr"), _define_property$4(_obj8, w, [
277
+ _define_property$4({}, x, g),
278
+ "supportsDualStack"
279
+ ]), _obj8)
280
+ ]), _obj9), t = [
281
+ _define_property$4({}, x, "Region")
282
+ ];
283
+ var _obj10, _obj11, _obj12, _obj13, _obj14, _obj15, _obj16, _obj17;
284
+ var _data = {
285
+ parameters: {
286
+ UseDualStack: i,
287
+ UseFIPS: i,
288
+ Endpoint: j,
289
+ Region: j
290
+ },
291
+ rules: [
292
+ {
293
+ conditions: [
294
+ (_obj10 = {}, _define_property$4(_obj10, v, b), _define_property$4(_obj10, w, [
295
+ k
296
+ ]), _obj10)
297
+ ],
298
+ rules: [
299
+ {
300
+ conditions: [
301
+ l
302
+ ],
303
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
304
+ type: d
305
+ },
306
+ {
307
+ rules: [
308
+ {
309
+ conditions: [
310
+ m
311
+ ],
312
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
313
+ type: d
314
+ },
315
+ {
316
+ endpoint: {
317
+ url: k,
318
+ properties: n,
319
+ headers: n
320
+ },
321
+ type: e
322
+ }
323
+ ],
324
+ type: f
325
+ }
326
+ ],
327
+ type: f
328
+ },
329
+ {
330
+ rules: [
331
+ {
332
+ conditions: [
333
+ (_obj11 = {}, _define_property$4(_obj11, v, b), _define_property$4(_obj11, w, t), _obj11)
334
+ ],
335
+ rules: [
336
+ {
337
+ conditions: [
338
+ (_obj12 = {}, _define_property$4(_obj12, v, "aws.partition"), _define_property$4(_obj12, w, t), _define_property$4(_obj12, "assign", g), _obj12)
339
+ ],
340
+ rules: [
341
+ {
342
+ conditions: [
343
+ (_obj13 = {}, _define_property$4(_obj13, v, h), _define_property$4(_obj13, w, [
344
+ o,
345
+ "aws"
346
+ ]), _obj13),
347
+ p,
348
+ q
349
+ ],
350
+ endpoint: {
351
+ url: "https://{Region}.signin.aws.amazon.com",
352
+ properties: n,
353
+ headers: n
354
+ },
355
+ type: e
356
+ },
357
+ {
358
+ conditions: [
359
+ (_obj14 = {}, _define_property$4(_obj14, v, h), _define_property$4(_obj14, w, [
360
+ o,
361
+ "aws-cn"
362
+ ]), _obj14),
363
+ p,
364
+ q
365
+ ],
366
+ endpoint: {
367
+ url: "https://{Region}.signin.amazonaws.cn",
368
+ properties: n,
369
+ headers: n
370
+ },
371
+ type: e
372
+ },
373
+ {
374
+ conditions: [
375
+ (_obj15 = {}, _define_property$4(_obj15, v, h), _define_property$4(_obj15, w, [
376
+ o,
377
+ "aws-us-gov"
378
+ ]), _obj15),
379
+ p,
380
+ q
381
+ ],
382
+ endpoint: {
383
+ url: "https://{Region}.signin.amazonaws-us-gov.com",
384
+ properties: n,
385
+ headers: n
386
+ },
387
+ type: e
388
+ },
389
+ {
390
+ conditions: [
391
+ l,
392
+ m
393
+ ],
394
+ rules: [
395
+ {
396
+ conditions: [
397
+ (_obj16 = {}, _define_property$4(_obj16, v, c), _define_property$4(_obj16, w, [
398
+ a,
399
+ r
400
+ ]), _obj16),
401
+ s
402
+ ],
403
+ rules: [
404
+ {
405
+ endpoint: {
406
+ url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
407
+ properties: n,
408
+ headers: n
409
+ },
410
+ type: e
411
+ }
412
+ ],
413
+ type: f
414
+ },
415
+ {
416
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
417
+ type: d
418
+ }
419
+ ],
420
+ type: f
421
+ },
422
+ {
423
+ conditions: [
424
+ l,
425
+ q
426
+ ],
427
+ rules: [
428
+ {
429
+ conditions: [
430
+ (_obj17 = {}, _define_property$4(_obj17, v, c), _define_property$4(_obj17, w, [
431
+ r,
432
+ a
433
+ ]), _obj17)
434
+ ],
435
+ rules: [
436
+ {
437
+ endpoint: {
438
+ url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
439
+ properties: n,
440
+ headers: n
441
+ },
442
+ type: e
443
+ }
444
+ ],
445
+ type: f
446
+ },
447
+ {
448
+ error: "FIPS is enabled but this partition does not support FIPS",
449
+ type: d
450
+ }
451
+ ],
452
+ type: f
453
+ },
454
+ {
455
+ conditions: [
456
+ p,
457
+ m
458
+ ],
459
+ rules: [
460
+ {
461
+ conditions: [
462
+ s
463
+ ],
464
+ rules: [
465
+ {
466
+ endpoint: {
467
+ url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
468
+ properties: n,
469
+ headers: n
470
+ },
471
+ type: e
472
+ }
473
+ ],
474
+ type: f
475
+ },
476
+ {
477
+ error: "DualStack is enabled but this partition does not support DualStack",
478
+ type: d
479
+ }
480
+ ],
481
+ type: f
482
+ },
483
+ {
484
+ endpoint: {
485
+ url: "https://signin.{Region}.{PartitionResult#dnsSuffix}",
486
+ properties: n,
487
+ headers: n
488
+ },
489
+ type: e
490
+ }
491
+ ],
492
+ type: f
493
+ }
494
+ ],
495
+ type: f
496
+ },
497
+ {
498
+ error: "Invalid Configuration: Missing Region",
499
+ type: d
500
+ }
501
+ ],
502
+ type: f
503
+ }
504
+ ]
505
+ };
506
+ var ruleSet = _data;
507
+
508
+ var cache = new EndpointCache({
509
+ size: 50,
510
+ params: [
511
+ "Endpoint",
512
+ "Region",
513
+ "UseDualStack",
514
+ "UseFIPS"
515
+ ]
516
+ });
517
+ var defaultEndpointResolver = function(endpointParams) {
518
+ var context = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
519
+ return cache.get(endpointParams, function() {
520
+ return resolveEndpoint(ruleSet, {
521
+ endpointParams: endpointParams,
522
+ logger: context.logger
523
+ });
524
+ });
525
+ };
526
+ customEndpointFunctions.aws = awsEndpointFunctions;
527
+
528
+ function _assert_this_initialized$4(self) {
529
+ if (self === void 0) {
530
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
531
+ }
532
+ return self;
533
+ }
534
+ function _class_call_check$4(instance, Constructor) {
535
+ if (!(instance instanceof Constructor)) {
536
+ throw new TypeError("Cannot call a class as a function");
537
+ }
538
+ }
539
+ function _get_prototype_of$4(o) {
540
+ _get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
541
+ return o.__proto__ || Object.getPrototypeOf(o);
542
+ };
543
+ return _get_prototype_of$4(o);
544
+ }
545
+ function _inherits$4(subClass, superClass) {
546
+ if (typeof superClass !== "function" && superClass !== null) {
547
+ throw new TypeError("Super expression must either be null or a function");
548
+ }
549
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
550
+ constructor: {
551
+ value: subClass,
552
+ writable: true,
553
+ configurable: true
554
+ }
555
+ });
556
+ if (superClass) _set_prototype_of$4(subClass, superClass);
557
+ }
558
+ function _possible_constructor_return$4(self, call) {
559
+ if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
560
+ return call;
561
+ }
562
+ return _assert_this_initialized$4(self);
563
+ }
564
+ function _set_prototype_of$4(o, p) {
565
+ _set_prototype_of$4 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
566
+ o.__proto__ = p;
567
+ return o;
568
+ };
569
+ return _set_prototype_of$4(o, p);
570
+ }
571
+ function _type_of$4(obj) {
572
+ "@swc/helpers - typeof";
573
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
574
+ }
575
+ function _is_native_reflect_construct$4() {
576
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
577
+ if (Reflect.construct.sham) return false;
578
+ if (typeof Proxy === "function") return true;
579
+ try {
580
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
581
+ return true;
582
+ } catch (e) {
583
+ return false;
584
+ }
585
+ }
586
+ function _create_super$4(Derived) {
587
+ var hasNativeReflectConstruct = _is_native_reflect_construct$4();
588
+ return function _createSuperInternal() {
589
+ var Super = _get_prototype_of$4(Derived), result;
590
+ if (hasNativeReflectConstruct) {
591
+ var NewTarget = _get_prototype_of$4(this).constructor;
592
+ result = Reflect.construct(Super, arguments, NewTarget);
593
+ } else {
594
+ result = Super.apply(this, arguments);
595
+ }
596
+ return _possible_constructor_return$4(this, result);
597
+ };
598
+ }
599
+ var SigninServiceException = /*#__PURE__*/ function(__ServiceException) {
600
+ _inherits$4(SigninServiceException, __ServiceException);
601
+ var _super = _create_super$4(SigninServiceException);
602
+ function SigninServiceException(options) {
603
+ _class_call_check$4(this, SigninServiceException);
604
+ var _this;
605
+ _this = _super.call(this, options);
606
+ Object.setPrototypeOf(_assert_this_initialized$4(_this), SigninServiceException.prototype);
607
+ return _this;
608
+ }
609
+ return SigninServiceException;
610
+ }(ServiceException);
611
+
612
+ function _assert_this_initialized$3(self) {
613
+ if (self === void 0) {
614
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
615
+ }
616
+ return self;
617
+ }
618
+ function _class_call_check$3(instance, Constructor) {
619
+ if (!(instance instanceof Constructor)) {
620
+ throw new TypeError("Cannot call a class as a function");
621
+ }
622
+ }
623
+ function _define_property$3(obj, key, value) {
624
+ if (key in obj) {
625
+ Object.defineProperty(obj, key, {
626
+ value: value,
627
+ enumerable: true,
628
+ configurable: true,
629
+ writable: true
630
+ });
631
+ } else {
632
+ obj[key] = value;
633
+ }
634
+ return obj;
635
+ }
636
+ function _get_prototype_of$3(o) {
637
+ _get_prototype_of$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
638
+ return o.__proto__ || Object.getPrototypeOf(o);
639
+ };
640
+ return _get_prototype_of$3(o);
641
+ }
642
+ function _inherits$3(subClass, superClass) {
643
+ if (typeof superClass !== "function" && superClass !== null) {
644
+ throw new TypeError("Super expression must either be null or a function");
645
+ }
646
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
647
+ constructor: {
648
+ value: subClass,
649
+ writable: true,
650
+ configurable: true
651
+ }
652
+ });
653
+ if (superClass) _set_prototype_of$3(subClass, superClass);
654
+ }
655
+ function _object_spread$1(target) {
656
+ for(var i = 1; i < arguments.length; i++){
657
+ var source = arguments[i] != null ? arguments[i] : {};
658
+ var ownKeys = Object.keys(source);
659
+ if (typeof Object.getOwnPropertySymbols === "function") {
660
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
661
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
662
+ }));
663
+ }
664
+ ownKeys.forEach(function(key) {
665
+ _define_property$3(target, key, source[key]);
666
+ });
667
+ }
668
+ return target;
669
+ }
670
+ function _possible_constructor_return$3(self, call) {
671
+ if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
672
+ return call;
673
+ }
674
+ return _assert_this_initialized$3(self);
675
+ }
676
+ function _set_prototype_of$3(o, p) {
677
+ _set_prototype_of$3 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
678
+ o.__proto__ = p;
679
+ return o;
680
+ };
681
+ return _set_prototype_of$3(o, p);
682
+ }
683
+ function _type_of$3(obj) {
684
+ "@swc/helpers - typeof";
685
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
686
+ }
687
+ function _is_native_reflect_construct$3() {
688
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
689
+ if (Reflect.construct.sham) return false;
690
+ if (typeof Proxy === "function") return true;
691
+ try {
692
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
693
+ return true;
694
+ } catch (e) {
695
+ return false;
696
+ }
697
+ }
698
+ function _create_super$3(Derived) {
699
+ var hasNativeReflectConstruct = _is_native_reflect_construct$3();
700
+ return function _createSuperInternal() {
701
+ var Super = _get_prototype_of$3(Derived), result;
702
+ if (hasNativeReflectConstruct) {
703
+ var NewTarget = _get_prototype_of$3(this).constructor;
704
+ result = Reflect.construct(Super, arguments, NewTarget);
705
+ } else {
706
+ result = Super.apply(this, arguments);
707
+ }
708
+ return _possible_constructor_return$3(this, result);
709
+ };
710
+ }
711
+ var AccessDeniedException = /*#__PURE__*/ function(__BaseException) {
712
+ _inherits$3(AccessDeniedException, __BaseException);
713
+ var _super = _create_super$3(AccessDeniedException);
714
+ function AccessDeniedException(opts) {
715
+ _class_call_check$3(this, AccessDeniedException);
716
+ var _this;
717
+ _this = _super.call(this, _object_spread$1({
718
+ name: "AccessDeniedException",
719
+ $fault: "client"
720
+ }, opts));
721
+ _define_property$3(_assert_this_initialized$3(_this), "name", "AccessDeniedException");
722
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
723
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
724
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), AccessDeniedException.prototype);
725
+ _this.error = opts.error;
726
+ return _this;
727
+ }
728
+ return AccessDeniedException;
729
+ }(SigninServiceException);
730
+ var InternalServerException = /*#__PURE__*/ function(__BaseException) {
731
+ _inherits$3(InternalServerException, __BaseException);
732
+ var _super = _create_super$3(InternalServerException);
733
+ function InternalServerException(opts) {
734
+ _class_call_check$3(this, InternalServerException);
735
+ var _this;
736
+ _this = _super.call(this, _object_spread$1({
737
+ name: "InternalServerException",
738
+ $fault: "server"
739
+ }, opts));
740
+ _define_property$3(_assert_this_initialized$3(_this), "name", "InternalServerException");
741
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "server");
742
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
743
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), InternalServerException.prototype);
744
+ _this.error = opts.error;
745
+ return _this;
746
+ }
747
+ return InternalServerException;
748
+ }(SigninServiceException);
749
+ var TooManyRequestsError = /*#__PURE__*/ function(__BaseException) {
750
+ _inherits$3(TooManyRequestsError, __BaseException);
751
+ var _super = _create_super$3(TooManyRequestsError);
752
+ function TooManyRequestsError(opts) {
753
+ _class_call_check$3(this, TooManyRequestsError);
754
+ var _this;
755
+ _this = _super.call(this, _object_spread$1({
756
+ name: "TooManyRequestsError",
757
+ $fault: "client"
758
+ }, opts));
759
+ _define_property$3(_assert_this_initialized$3(_this), "name", "TooManyRequestsError");
760
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
761
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
762
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), TooManyRequestsError.prototype);
763
+ _this.error = opts.error;
764
+ return _this;
765
+ }
766
+ return TooManyRequestsError;
767
+ }(SigninServiceException);
768
+ var ValidationException = /*#__PURE__*/ function(__BaseException) {
769
+ _inherits$3(ValidationException, __BaseException);
770
+ var _super = _create_super$3(ValidationException);
771
+ function ValidationException(opts) {
772
+ _class_call_check$3(this, ValidationException);
773
+ var _this;
774
+ _this = _super.call(this, _object_spread$1({
775
+ name: "ValidationException",
776
+ $fault: "client"
777
+ }, opts));
778
+ _define_property$3(_assert_this_initialized$3(_this), "name", "ValidationException");
779
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
780
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
781
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), ValidationException.prototype);
782
+ _this.error = opts.error;
783
+ return _this;
784
+ }
785
+ return ValidationException;
786
+ }(SigninServiceException);
787
+
788
+ function _define_property$2(obj, key, value) {
789
+ if (key in obj) {
790
+ Object.defineProperty(obj, key, {
791
+ value: value,
792
+ enumerable: true,
793
+ configurable: true,
794
+ writable: true
795
+ });
796
+ } else {
797
+ obj[key] = value;
798
+ }
799
+ return obj;
800
+ }
801
+ var _ADE = "AccessDeniedException";
802
+ var _AT = "AccessToken";
803
+ var _COAT = "CreateOAuth2Token";
804
+ var _COATR = "CreateOAuth2TokenRequest";
805
+ var _COATRB = "CreateOAuth2TokenRequestBody";
806
+ var _COATRBr = "CreateOAuth2TokenResponseBody";
807
+ var _COATRr = "CreateOAuth2TokenResponse";
808
+ var _ISE = "InternalServerException";
809
+ var _RT = "RefreshToken";
810
+ var _TMRE = "TooManyRequestsError";
811
+ var _VE = "ValidationException";
812
+ var _aKI = "accessKeyId";
813
+ var _aT = "accessToken";
814
+ var _c = "client";
815
+ var _cI = "clientId";
816
+ var _cV = "codeVerifier";
817
+ var _co = "code";
818
+ var _e = "error";
819
+ var _eI = "expiresIn";
820
+ var _gT = "grantType";
821
+ var _h = "http";
822
+ var _hE = "httpError";
823
+ var _iT = "idToken";
824
+ var _jN = "jsonName";
825
+ var _m = "message";
826
+ var _rT = "refreshToken";
827
+ var _rU = "redirectUri";
828
+ var _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
829
+ var _sAK = "secretAccessKey";
830
+ var _sT = "sessionToken";
831
+ var _se = "server";
832
+ var _tI = "tokenInput";
833
+ var _tO = "tokenOutput";
834
+ var _tT = "tokenType";
835
+ var n0 = "com.amazonaws.signin";
836
+ var _s_registry = TypeRegistry.for(_s);
837
+ var SigninServiceException$ = [
838
+ -3,
839
+ _s,
840
+ "SigninServiceException",
841
+ 0,
842
+ [],
843
+ []
844
+ ];
845
+ _s_registry.registerError(SigninServiceException$, SigninServiceException);
846
+ var n0_registry = TypeRegistry.for(n0);
847
+ var AccessDeniedException$ = [
848
+ -3,
849
+ n0,
850
+ _ADE,
851
+ _define_property$2({}, _e, _c),
852
+ [
853
+ _e,
854
+ _m
855
+ ],
856
+ [
857
+ 0,
858
+ 0
859
+ ],
860
+ 2
861
+ ];
862
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
863
+ var _obj;
864
+ var InternalServerException$ = [
865
+ -3,
866
+ n0,
867
+ _ISE,
868
+ (_obj = {}, _define_property$2(_obj, _e, _se), _define_property$2(_obj, _hE, 500), _obj),
869
+ [
870
+ _e,
871
+ _m
872
+ ],
873
+ [
874
+ 0,
875
+ 0
876
+ ],
877
+ 2
878
+ ];
879
+ n0_registry.registerError(InternalServerException$, InternalServerException);
880
+ var _obj1;
881
+ var TooManyRequestsError$ = [
882
+ -3,
883
+ n0,
884
+ _TMRE,
885
+ (_obj1 = {}, _define_property$2(_obj1, _e, _c), _define_property$2(_obj1, _hE, 429), _obj1),
886
+ [
887
+ _e,
888
+ _m
889
+ ],
890
+ [
891
+ 0,
892
+ 0
893
+ ],
894
+ 2
895
+ ];
896
+ n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
897
+ var _obj2;
898
+ var ValidationException$ = [
899
+ -3,
900
+ n0,
901
+ _VE,
902
+ (_obj2 = {}, _define_property$2(_obj2, _e, _c), _define_property$2(_obj2, _hE, 400), _obj2),
903
+ [
904
+ _e,
905
+ _m
906
+ ],
907
+ [
908
+ 0,
909
+ 0
910
+ ],
911
+ 2
912
+ ];
913
+ n0_registry.registerError(ValidationException$, ValidationException);
914
+ var errorTypeRegistries = [
915
+ _s_registry,
916
+ n0_registry
917
+ ];
918
+ var RefreshToken = [
919
+ 0,
920
+ n0,
921
+ _RT,
922
+ 8,
923
+ 0
924
+ ];
925
+ var AccessToken$ = [
926
+ 3,
927
+ n0,
928
+ _AT,
929
+ 8,
930
+ [
931
+ _aKI,
932
+ _sAK,
933
+ _sT
934
+ ],
935
+ [
936
+ [
937
+ 0,
938
+ _define_property$2({}, _jN, _aKI)
939
+ ],
940
+ [
941
+ 0,
942
+ _define_property$2({}, _jN, _sAK)
943
+ ],
944
+ [
945
+ 0,
946
+ _define_property$2({}, _jN, _sT)
947
+ ]
948
+ ],
949
+ 3
950
+ ];
951
+ var CreateOAuth2TokenRequest$ = [
952
+ 3,
953
+ n0,
954
+ _COATR,
955
+ 0,
956
+ [
957
+ _tI
958
+ ],
959
+ [
960
+ [
961
+ function() {
962
+ return CreateOAuth2TokenRequestBody$;
963
+ },
964
+ 16
965
+ ]
966
+ ],
967
+ 1
968
+ ];
969
+ var CreateOAuth2TokenRequestBody$ = [
970
+ 3,
971
+ n0,
972
+ _COATRB,
973
+ 0,
974
+ [
975
+ _cI,
976
+ _gT,
977
+ _co,
978
+ _rU,
979
+ _cV,
980
+ _rT
981
+ ],
982
+ [
983
+ [
984
+ 0,
985
+ _define_property$2({}, _jN, _cI)
986
+ ],
987
+ [
988
+ 0,
989
+ _define_property$2({}, _jN, _gT)
990
+ ],
991
+ 0,
992
+ [
993
+ 0,
994
+ _define_property$2({}, _jN, _rU)
995
+ ],
996
+ [
997
+ 0,
998
+ _define_property$2({}, _jN, _cV)
999
+ ],
1000
+ [
1001
+ function() {
1002
+ return RefreshToken;
1003
+ },
1004
+ _define_property$2({}, _jN, _rT)
1005
+ ]
1006
+ ],
1007
+ 2
1008
+ ];
1009
+ var CreateOAuth2TokenResponse$ = [
1010
+ 3,
1011
+ n0,
1012
+ _COATRr,
1013
+ 0,
1014
+ [
1015
+ _tO
1016
+ ],
1017
+ [
1018
+ [
1019
+ function() {
1020
+ return CreateOAuth2TokenResponseBody$;
1021
+ },
1022
+ 16
1023
+ ]
1024
+ ],
1025
+ 1
1026
+ ];
1027
+ var CreateOAuth2TokenResponseBody$ = [
1028
+ 3,
1029
+ n0,
1030
+ _COATRBr,
1031
+ 0,
1032
+ [
1033
+ _aT,
1034
+ _tT,
1035
+ _eI,
1036
+ _rT,
1037
+ _iT
1038
+ ],
1039
+ [
1040
+ [
1041
+ function() {
1042
+ return AccessToken$;
1043
+ },
1044
+ _define_property$2({}, _jN, _aT)
1045
+ ],
1046
+ [
1047
+ 0,
1048
+ _define_property$2({}, _jN, _tT)
1049
+ ],
1050
+ [
1051
+ 1,
1052
+ _define_property$2({}, _jN, _eI)
1053
+ ],
1054
+ [
1055
+ function() {
1056
+ return RefreshToken;
1057
+ },
1058
+ _define_property$2({}, _jN, _rT)
1059
+ ],
1060
+ [
1061
+ 0,
1062
+ _define_property$2({}, _jN, _iT)
1063
+ ]
1064
+ ],
1065
+ 4
1066
+ ];
1067
+ var CreateOAuth2Token$ = [
1068
+ 9,
1069
+ n0,
1070
+ _COAT,
1071
+ _define_property$2({}, _h, [
1072
+ "POST",
1073
+ "/v1/token",
1074
+ 200
1075
+ ]),
1076
+ function() {
1077
+ return CreateOAuth2TokenRequest$;
1078
+ },
1079
+ function() {
1080
+ return CreateOAuth2TokenResponse$;
1081
+ }
1082
+ ];
1083
+
1084
+ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
1085
+ try {
1086
+ var info = gen[key](arg);
1087
+ var value = info.value;
1088
+ } catch (error) {
1089
+ reject(error);
1090
+ return;
1091
+ }
1092
+ if (info.done) {
1093
+ resolve(value);
1094
+ } else {
1095
+ Promise.resolve(value).then(_next, _throw);
1096
+ }
1097
+ }
1098
+ function _async_to_generator$2(fn) {
1099
+ return function() {
1100
+ var self = this, args = arguments;
1101
+ return new Promise(function(resolve, reject) {
1102
+ var gen = fn.apply(self, args);
1103
+ function _next(value) {
1104
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
1105
+ }
1106
+ function _throw(err) {
1107
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
1108
+ }
1109
+ _next(undefined);
1110
+ });
1111
+ };
1112
+ }
1113
+ function _ts_generator$2(thisArg, body) {
1114
+ var f, y, t, g, _ = {
1115
+ label: 0,
1116
+ sent: function() {
1117
+ if (t[0] & 1) throw t[1];
1118
+ return t[1];
1119
+ },
1120
+ trys: [],
1121
+ ops: []
1122
+ };
1123
+ return g = {
1124
+ next: verb(0),
1125
+ "throw": verb(1),
1126
+ "return": verb(2)
1127
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1128
+ return this;
1129
+ }), g;
1130
+ function verb(n) {
1131
+ return function(v) {
1132
+ return step([
1133
+ n,
1134
+ v
1135
+ ]);
1136
+ };
1137
+ }
1138
+ function step(op) {
1139
+ if (f) throw new TypeError("Generator is already executing.");
1140
+ while(_)try {
1141
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1142
+ if (y = 0, t) op = [
1143
+ op[0] & 2,
1144
+ t.value
1145
+ ];
1146
+ switch(op[0]){
1147
+ case 0:
1148
+ case 1:
1149
+ t = op;
1150
+ break;
1151
+ case 4:
1152
+ _.label++;
1153
+ return {
1154
+ value: op[1],
1155
+ done: false
1156
+ };
1157
+ case 5:
1158
+ _.label++;
1159
+ y = op[1];
1160
+ op = [
1161
+ 0
1162
+ ];
1163
+ continue;
1164
+ case 7:
1165
+ op = _.ops.pop();
1166
+ _.trys.pop();
1167
+ continue;
1168
+ default:
1169
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1170
+ _ = 0;
1171
+ continue;
1172
+ }
1173
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
1174
+ _.label = op[1];
1175
+ break;
1176
+ }
1177
+ if (op[0] === 6 && _.label < t[1]) {
1178
+ _.label = t[1];
1179
+ t = op;
1180
+ break;
1181
+ }
1182
+ if (t && _.label < t[2]) {
1183
+ _.label = t[2];
1184
+ _.ops.push(op);
1185
+ break;
1186
+ }
1187
+ if (t[2]) _.ops.pop();
1188
+ _.trys.pop();
1189
+ continue;
1190
+ }
1191
+ op = body.call(thisArg, _);
1192
+ } catch (e) {
1193
+ op = [
1194
+ 6,
1195
+ e
1196
+ ];
1197
+ y = 0;
1198
+ } finally{
1199
+ f = t = 0;
1200
+ }
1201
+ if (op[0] & 5) throw op[1];
1202
+ return {
1203
+ value: op[0] ? op[1] : void 0,
1204
+ done: true
1205
+ };
1206
+ }
1207
+ }
1208
+ var getRuntimeConfig$1 = function(config) {
1209
+ var _config_base64Decoder, _config_base64Encoder, _config_disableHostPrefix, _config_endpointProvider, _config_extensions, _config_httpAuthSchemeProvider, _config_httpAuthSchemes, _config_logger, _config_protocol, _config_protocolSettings, _config_serviceId, _config_urlParser, _config_utf8Decoder, _config_utf8Encoder;
1210
+ return {
1211
+ apiVersion: "2023-01-01",
1212
+ base64Decoder: (_config_base64Decoder = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _config_base64Decoder !== void 0 ? _config_base64Decoder : fromBase64,
1213
+ base64Encoder: (_config_base64Encoder = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _config_base64Encoder !== void 0 ? _config_base64Encoder : toBase64,
1214
+ disableHostPrefix: (_config_disableHostPrefix = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _config_disableHostPrefix !== void 0 ? _config_disableHostPrefix : false,
1215
+ endpointProvider: (_config_endpointProvider = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _config_endpointProvider !== void 0 ? _config_endpointProvider : defaultEndpointResolver,
1216
+ extensions: (_config_extensions = config === null || config === void 0 ? void 0 : config.extensions) !== null && _config_extensions !== void 0 ? _config_extensions : [],
1217
+ httpAuthSchemeProvider: (_config_httpAuthSchemeProvider = config === null || config === void 0 ? void 0 : config.httpAuthSchemeProvider) !== null && _config_httpAuthSchemeProvider !== void 0 ? _config_httpAuthSchemeProvider : defaultSigninHttpAuthSchemeProvider,
1218
+ httpAuthSchemes: (_config_httpAuthSchemes = config === null || config === void 0 ? void 0 : config.httpAuthSchemes) !== null && _config_httpAuthSchemes !== void 0 ? _config_httpAuthSchemes : [
1219
+ {
1220
+ schemeId: "aws.auth#sigv4",
1221
+ identityProvider: function(ipc) {
1222
+ return ipc.getIdentityProvider("aws.auth#sigv4");
1223
+ },
1224
+ signer: new AwsSdkSigV4Signer()
1225
+ },
1226
+ {
1227
+ schemeId: "smithy.api#noAuth",
1228
+ identityProvider: function(ipc) {
1229
+ return ipc.getIdentityProvider("smithy.api#noAuth") || /*#__PURE__*/ _async_to_generator$2(function() {
1230
+ return _ts_generator$2(this, function(_state) {
1231
+ return [
1232
+ 2,
1233
+ {}
1234
+ ];
1235
+ });
1236
+ });
1237
+ },
1238
+ signer: new NoAuthSigner()
1239
+ }
1240
+ ],
1241
+ logger: (_config_logger = config === null || config === void 0 ? void 0 : config.logger) !== null && _config_logger !== void 0 ? _config_logger : new NoOpLogger(),
1242
+ protocol: (_config_protocol = config === null || config === void 0 ? void 0 : config.protocol) !== null && _config_protocol !== void 0 ? _config_protocol : AwsRestJsonProtocol,
1243
+ protocolSettings: (_config_protocolSettings = config === null || config === void 0 ? void 0 : config.protocolSettings) !== null && _config_protocolSettings !== void 0 ? _config_protocolSettings : {
1244
+ defaultNamespace: "com.amazonaws.signin",
1245
+ errorTypeRegistries: errorTypeRegistries,
1246
+ version: "2023-01-01",
1247
+ serviceTarget: "Signin"
1248
+ },
1249
+ serviceId: (_config_serviceId = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _config_serviceId !== void 0 ? _config_serviceId : "Signin",
1250
+ urlParser: (_config_urlParser = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _config_urlParser !== void 0 ? _config_urlParser : parseUrl,
1251
+ utf8Decoder: (_config_utf8Decoder = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _config_utf8Decoder !== void 0 ? _config_utf8Decoder : fromUtf8,
1252
+ utf8Encoder: (_config_utf8Encoder = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _config_utf8Encoder !== void 0 ? _config_utf8Encoder : toUtf8
1253
+ };
1254
+ };
1255
+
1256
+ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
1257
+ try {
1258
+ var info = gen[key](arg);
1259
+ var value = info.value;
1260
+ } catch (error) {
1261
+ reject(error);
1262
+ return;
1263
+ }
1264
+ if (info.done) {
1265
+ resolve(value);
1266
+ } else {
1267
+ Promise.resolve(value).then(_next, _throw);
1268
+ }
1269
+ }
1270
+ function _async_to_generator$1(fn) {
1271
+ return function() {
1272
+ var self = this, args = arguments;
1273
+ return new Promise(function(resolve, reject) {
1274
+ var gen = fn.apply(self, args);
1275
+ function _next(value) {
1276
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
1277
+ }
1278
+ function _throw(err) {
1279
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
1280
+ }
1281
+ _next(undefined);
1282
+ });
1283
+ };
1284
+ }
1285
+ function _define_property$1(obj, key, value) {
1286
+ if (key in obj) {
1287
+ Object.defineProperty(obj, key, {
1288
+ value: value,
1289
+ enumerable: true,
1290
+ configurable: true,
1291
+ writable: true
1292
+ });
1293
+ } else {
1294
+ obj[key] = value;
1295
+ }
1296
+ return obj;
1297
+ }
1298
+ function _object_spread(target) {
1299
+ for(var i = 1; i < arguments.length; i++){
1300
+ var source = arguments[i] != null ? arguments[i] : {};
1301
+ var ownKeys = Object.keys(source);
1302
+ if (typeof Object.getOwnPropertySymbols === "function") {
1303
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1304
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1305
+ }));
1306
+ }
1307
+ ownKeys.forEach(function(key) {
1308
+ _define_property$1(target, key, source[key]);
1309
+ });
1310
+ }
1311
+ return target;
1312
+ }
1313
+ function ownKeys(object, enumerableOnly) {
1314
+ var keys = Object.keys(object);
1315
+ if (Object.getOwnPropertySymbols) {
1316
+ var symbols = Object.getOwnPropertySymbols(object);
1317
+ keys.push.apply(keys, symbols);
1318
+ }
1319
+ return keys;
1320
+ }
1321
+ function _object_spread_props(target, source) {
1322
+ source = source != null ? source : {};
1323
+ if (Object.getOwnPropertyDescriptors) {
1324
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1325
+ } else {
1326
+ ownKeys(Object(source)).forEach(function(key) {
1327
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1328
+ });
1329
+ }
1330
+ return target;
1331
+ }
1332
+ function _ts_generator$1(thisArg, body) {
1333
+ var f, y, t, g, _ = {
1334
+ label: 0,
1335
+ sent: function() {
1336
+ if (t[0] & 1) throw t[1];
1337
+ return t[1];
1338
+ },
1339
+ trys: [],
1340
+ ops: []
1341
+ };
1342
+ return g = {
1343
+ next: verb(0),
1344
+ "throw": verb(1),
1345
+ "return": verb(2)
1346
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1347
+ return this;
1348
+ }), g;
1349
+ function verb(n) {
1350
+ return function(v) {
1351
+ return step([
1352
+ n,
1353
+ v
1354
+ ]);
1355
+ };
1356
+ }
1357
+ function step(op) {
1358
+ if (f) throw new TypeError("Generator is already executing.");
1359
+ while(_)try {
1360
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1361
+ if (y = 0, t) op = [
1362
+ op[0] & 2,
1363
+ t.value
1364
+ ];
1365
+ switch(op[0]){
1366
+ case 0:
1367
+ case 1:
1368
+ t = op;
1369
+ break;
1370
+ case 4:
1371
+ _.label++;
1372
+ return {
1373
+ value: op[1],
1374
+ done: false
1375
+ };
1376
+ case 5:
1377
+ _.label++;
1378
+ y = op[1];
1379
+ op = [
1380
+ 0
1381
+ ];
1382
+ continue;
1383
+ case 7:
1384
+ op = _.ops.pop();
1385
+ _.trys.pop();
1386
+ continue;
1387
+ default:
1388
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1389
+ _ = 0;
1390
+ continue;
1391
+ }
1392
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
1393
+ _.label = op[1];
1394
+ break;
1395
+ }
1396
+ if (op[0] === 6 && _.label < t[1]) {
1397
+ _.label = t[1];
1398
+ t = op;
1399
+ break;
1400
+ }
1401
+ if (t && _.label < t[2]) {
1402
+ _.label = t[2];
1403
+ _.ops.push(op);
1404
+ break;
1405
+ }
1406
+ if (t[2]) _.ops.pop();
1407
+ _.trys.pop();
1408
+ continue;
1409
+ }
1410
+ op = body.call(thisArg, _);
1411
+ } catch (e) {
1412
+ op = [
1413
+ 6,
1414
+ e
1415
+ ];
1416
+ y = 0;
1417
+ } finally{
1418
+ f = t = 0;
1419
+ }
1420
+ if (op[0] & 5) throw op[1];
1421
+ return {
1422
+ value: op[0] ? op[1] : void 0,
1423
+ done: true
1424
+ };
1425
+ }
1426
+ }
1427
+ var getRuntimeConfig = function(config) {
1428
+ emitWarningIfUnsupportedVersion(process.version);
1429
+ var defaultsMode = resolveDefaultsModeConfig(config);
1430
+ var defaultConfigProvider = function() {
1431
+ return defaultsMode().then(loadConfigsForDefaultMode);
1432
+ };
1433
+ var clientSharedValues = getRuntimeConfig$1(config);
1434
+ emitWarningIfUnsupportedVersion$1(process.version);
1435
+ var loaderConfig = {
1436
+ profile: config === null || config === void 0 ? void 0 : config.profile,
1437
+ logger: clientSharedValues.logger
1438
+ };
1439
+ var _config_authSchemePreference, _config_bodyLengthChecker, _config_defaultUserAgentProvider, _config_maxAttempts, _config_region, _config_requestHandler, _config_retryMode, _config_sha256, _config_streamCollector, _config_useDualstackEndpoint, _config_useFipsEndpoint, _config_userAgentAppId;
1440
+ return _object_spread_props(_object_spread({}, clientSharedValues, config), {
1441
+ runtime: "node",
1442
+ defaultsMode: defaultsMode,
1443
+ authSchemePreference: (_config_authSchemePreference = config === null || config === void 0 ? void 0 : config.authSchemePreference) !== null && _config_authSchemePreference !== void 0 ? _config_authSchemePreference : loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1444
+ bodyLengthChecker: (_config_bodyLengthChecker = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _config_bodyLengthChecker !== void 0 ? _config_bodyLengthChecker : calculateBodyLength,
1445
+ defaultUserAgentProvider: (_config_defaultUserAgentProvider = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _config_defaultUserAgentProvider !== void 0 ? _config_defaultUserAgentProvider : createDefaultUserAgentProvider({
1446
+ serviceId: clientSharedValues.serviceId,
1447
+ clientVersion: packageInfo.version
1448
+ }),
1449
+ maxAttempts: (_config_maxAttempts = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _config_maxAttempts !== void 0 ? _config_maxAttempts : loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1450
+ region: (_config_region = config === null || config === void 0 ? void 0 : config.region) !== null && _config_region !== void 0 ? _config_region : loadConfig(NODE_REGION_CONFIG_OPTIONS, _object_spread({}, NODE_REGION_CONFIG_FILE_OPTIONS, loaderConfig)),
1451
+ requestHandler: NodeHttpHandler.create((_config_requestHandler = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _config_requestHandler !== void 0 ? _config_requestHandler : defaultConfigProvider),
1452
+ retryMode: (_config_retryMode = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _config_retryMode !== void 0 ? _config_retryMode : loadConfig(_object_spread_props(_object_spread({}, NODE_RETRY_MODE_CONFIG_OPTIONS), {
1453
+ default: /*#__PURE__*/ _async_to_generator$1(function() {
1454
+ return _ts_generator$1(this, function(_state) {
1455
+ switch(_state.label){
1456
+ case 0:
1457
+ return [
1458
+ 4,
1459
+ defaultConfigProvider()
1460
+ ];
1461
+ case 1:
1462
+ return [
1463
+ 2,
1464
+ _state.sent().retryMode || DEFAULT_RETRY_MODE
1465
+ ];
1466
+ }
1467
+ });
1468
+ })
1469
+ }), config),
1470
+ sha256: (_config_sha256 = config === null || config === void 0 ? void 0 : config.sha256) !== null && _config_sha256 !== void 0 ? _config_sha256 : Hash.bind(null, "sha256"),
1471
+ streamCollector: (_config_streamCollector = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _config_streamCollector !== void 0 ? _config_streamCollector : streamCollector,
1472
+ useDualstackEndpoint: (_config_useDualstackEndpoint = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _config_useDualstackEndpoint !== void 0 ? _config_useDualstackEndpoint : loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1473
+ useFipsEndpoint: (_config_useFipsEndpoint = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _config_useFipsEndpoint !== void 0 ? _config_useFipsEndpoint : loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1474
+ userAgentAppId: (_config_userAgentAppId = config === null || config === void 0 ? void 0 : config.userAgentAppId) !== null && _config_userAgentAppId !== void 0 ? _config_userAgentAppId : loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
1475
+ });
1476
+ };
1477
+
1478
+ var getHttpAuthExtensionConfiguration = function(runtimeConfig) {
1479
+ var _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
1480
+ var _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
1481
+ var _credentials = runtimeConfig.credentials;
1482
+ return {
1483
+ setHttpAuthScheme: function setHttpAuthScheme(httpAuthScheme) {
1484
+ var index = _httpAuthSchemes.findIndex(function(scheme) {
1485
+ return scheme.schemeId === httpAuthScheme.schemeId;
1486
+ });
1487
+ if (index === -1) {
1488
+ _httpAuthSchemes.push(httpAuthScheme);
1489
+ } else {
1490
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
1491
+ }
1492
+ },
1493
+ httpAuthSchemes: function httpAuthSchemes() {
1494
+ return _httpAuthSchemes;
1495
+ },
1496
+ setHttpAuthSchemeProvider: function setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
1497
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
1498
+ },
1499
+ httpAuthSchemeProvider: function httpAuthSchemeProvider() {
1500
+ return _httpAuthSchemeProvider;
1501
+ },
1502
+ setCredentials: function setCredentials(credentials) {
1503
+ _credentials = credentials;
1504
+ },
1505
+ credentials: function credentials() {
1506
+ return _credentials;
1507
+ }
1508
+ };
1509
+ };
1510
+ var resolveHttpAuthRuntimeConfig = function(config) {
1511
+ return {
1512
+ httpAuthSchemes: config.httpAuthSchemes(),
1513
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
1514
+ credentials: config.credentials()
1515
+ };
1516
+ };
1517
+
1518
+ var resolveRuntimeExtensions = function(runtimeConfig, extensions) {
1519
+ var extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
1520
+ extensions.forEach(function(extension) {
1521
+ return extension.configure(extensionConfiguration);
1522
+ });
1523
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
1524
+ };
1525
+
1526
+ function _array_like_to_array(arr, len) {
1527
+ if (len == null || len > arr.length) len = arr.length;
1528
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1529
+ return arr2;
1530
+ }
1531
+ function _array_with_holes(arr) {
1532
+ if (Array.isArray(arr)) return arr;
1533
+ }
1534
+ function _assert_this_initialized$2(self) {
1535
+ if (self === void 0) {
1536
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1537
+ }
1538
+ return self;
1539
+ }
1540
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1541
+ try {
1542
+ var info = gen[key](arg);
1543
+ var value = info.value;
1544
+ } catch (error) {
1545
+ reject(error);
1546
+ return;
1547
+ }
1548
+ if (info.done) {
1549
+ resolve(value);
1550
+ } else {
1551
+ Promise.resolve(value).then(_next, _throw);
1552
+ }
1553
+ }
1554
+ function _async_to_generator(fn) {
1555
+ return function() {
1556
+ var self = this, args = arguments;
1557
+ return new Promise(function(resolve, reject) {
1558
+ var gen = fn.apply(self, args);
1559
+ function _next(value) {
1560
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1561
+ }
1562
+ function _throw(err) {
1563
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1564
+ }
1565
+ _next(undefined);
1566
+ });
1567
+ };
1568
+ }
1569
+ function _class_call_check$2(instance, Constructor) {
1570
+ if (!(instance instanceof Constructor)) {
1571
+ throw new TypeError("Cannot call a class as a function");
1572
+ }
1573
+ }
1574
+ function _defineProperties(target, props) {
1575
+ for(var i = 0; i < props.length; i++){
1576
+ var descriptor = props[i];
1577
+ descriptor.enumerable = descriptor.enumerable || false;
1578
+ descriptor.configurable = true;
1579
+ if ("value" in descriptor) descriptor.writable = true;
1580
+ Object.defineProperty(target, descriptor.key, descriptor);
1581
+ }
1582
+ }
1583
+ function _create_class(Constructor, protoProps, staticProps) {
1584
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1585
+ return Constructor;
1586
+ }
1587
+ function _define_property(obj, key, value) {
1588
+ if (key in obj) {
1589
+ Object.defineProperty(obj, key, {
1590
+ value: value,
1591
+ enumerable: true,
1592
+ configurable: true,
1593
+ writable: true
1594
+ });
1595
+ } else {
1596
+ obj[key] = value;
1597
+ }
1598
+ return obj;
1599
+ }
1600
+ function _get(target, property, receiver) {
1601
+ if (typeof Reflect !== "undefined" && Reflect.get) {
1602
+ _get = Reflect.get;
1603
+ } else {
1604
+ _get = function get(target, property, receiver) {
1605
+ var base = _super_prop_base(target, property);
1606
+ if (!base) return;
1607
+ var desc = Object.getOwnPropertyDescriptor(base, property);
1608
+ if (desc.get) {
1609
+ return desc.get.call(receiver || target);
1610
+ }
1611
+ return desc.value;
1612
+ };
1613
+ }
1614
+ return _get(target, property, receiver || target);
1615
+ }
1616
+ function _get_prototype_of$2(o) {
1617
+ _get_prototype_of$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1618
+ return o.__proto__ || Object.getPrototypeOf(o);
1619
+ };
1620
+ return _get_prototype_of$2(o);
1621
+ }
1622
+ function _inherits$2(subClass, superClass) {
1623
+ if (typeof superClass !== "function" && superClass !== null) {
1624
+ throw new TypeError("Super expression must either be null or a function");
1625
+ }
1626
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1627
+ constructor: {
1628
+ value: subClass,
1629
+ writable: true,
1630
+ configurable: true
1631
+ }
1632
+ });
1633
+ if (superClass) _set_prototype_of$2(subClass, superClass);
1634
+ }
1635
+ function _iterable_to_array_limit(arr, i) {
1636
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1637
+ if (_i == null) return;
1638
+ var _arr = [];
1639
+ var _n = true;
1640
+ var _d = false;
1641
+ var _s, _e;
1642
+ try {
1643
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
1644
+ _arr.push(_s.value);
1645
+ if (i && _arr.length === i) break;
1646
+ }
1647
+ } catch (err) {
1648
+ _d = true;
1649
+ _e = err;
1650
+ } finally{
1651
+ try {
1652
+ if (!_n && _i["return"] != null) _i["return"]();
1653
+ } finally{
1654
+ if (_d) throw _e;
1655
+ }
1656
+ }
1657
+ return _arr;
1658
+ }
1659
+ function _non_iterable_rest() {
1660
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1661
+ }
1662
+ function _possible_constructor_return$2(self, call) {
1663
+ if (call && (_type_of$2(call) === "object" || typeof call === "function")) {
1664
+ return call;
1665
+ }
1666
+ return _assert_this_initialized$2(self);
1667
+ }
1668
+ function _set_prototype_of$2(o, p) {
1669
+ _set_prototype_of$2 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1670
+ o.__proto__ = p;
1671
+ return o;
1672
+ };
1673
+ return _set_prototype_of$2(o, p);
1674
+ }
1675
+ function _sliced_to_array(arr, i) {
1676
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1677
+ }
1678
+ function _super_prop_base(object, property) {
1679
+ while(!Object.prototype.hasOwnProperty.call(object, property)){
1680
+ object = _get_prototype_of$2(object);
1681
+ if (object === null) break;
1682
+ }
1683
+ return object;
1684
+ }
1685
+ function _type_of$2(obj) {
1686
+ "@swc/helpers - typeof";
1687
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1688
+ }
1689
+ function _unsupported_iterable_to_array(o, minLen) {
1690
+ if (!o) return;
1691
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
1692
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1693
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1694
+ if (n === "Map" || n === "Set") return Array.from(n);
1695
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
1696
+ }
1697
+ function _is_native_reflect_construct$2() {
1698
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1699
+ if (Reflect.construct.sham) return false;
1700
+ if (typeof Proxy === "function") return true;
1701
+ try {
1702
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1703
+ return true;
1704
+ } catch (e) {
1705
+ return false;
1706
+ }
1707
+ }
1708
+ function _create_super$2(Derived) {
1709
+ var hasNativeReflectConstruct = _is_native_reflect_construct$2();
1710
+ return function _createSuperInternal() {
1711
+ var Super = _get_prototype_of$2(Derived), result;
1712
+ if (hasNativeReflectConstruct) {
1713
+ var NewTarget = _get_prototype_of$2(this).constructor;
1714
+ result = Reflect.construct(Super, arguments, NewTarget);
1715
+ } else {
1716
+ result = Super.apply(this, arguments);
1717
+ }
1718
+ return _possible_constructor_return$2(this, result);
1719
+ };
1720
+ }
1721
+ function _ts_generator(thisArg, body) {
1722
+ var f, y, t, g, _ = {
1723
+ label: 0,
1724
+ sent: function() {
1725
+ if (t[0] & 1) throw t[1];
1726
+ return t[1];
1727
+ },
1728
+ trys: [],
1729
+ ops: []
1730
+ };
1731
+ return g = {
1732
+ next: verb(0),
1733
+ "throw": verb(1),
1734
+ "return": verb(2)
1735
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1736
+ return this;
1737
+ }), g;
1738
+ function verb(n) {
1739
+ return function(v) {
1740
+ return step([
1741
+ n,
1742
+ v
1743
+ ]);
1744
+ };
1745
+ }
1746
+ function step(op) {
1747
+ if (f) throw new TypeError("Generator is already executing.");
1748
+ while(_)try {
1749
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1750
+ if (y = 0, t) op = [
1751
+ op[0] & 2,
1752
+ t.value
1753
+ ];
1754
+ switch(op[0]){
1755
+ case 0:
1756
+ case 1:
1757
+ t = op;
1758
+ break;
1759
+ case 4:
1760
+ _.label++;
1761
+ return {
1762
+ value: op[1],
1763
+ done: false
1764
+ };
1765
+ case 5:
1766
+ _.label++;
1767
+ y = op[1];
1768
+ op = [
1769
+ 0
1770
+ ];
1771
+ continue;
1772
+ case 7:
1773
+ op = _.ops.pop();
1774
+ _.trys.pop();
1775
+ continue;
1776
+ default:
1777
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1778
+ _ = 0;
1779
+ continue;
1780
+ }
1781
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
1782
+ _.label = op[1];
1783
+ break;
1784
+ }
1785
+ if (op[0] === 6 && _.label < t[1]) {
1786
+ _.label = t[1];
1787
+ t = op;
1788
+ break;
1789
+ }
1790
+ if (t && _.label < t[2]) {
1791
+ _.label = t[2];
1792
+ _.ops.push(op);
1793
+ break;
1794
+ }
1795
+ if (t[2]) _.ops.pop();
1796
+ _.trys.pop();
1797
+ continue;
1798
+ }
1799
+ op = body.call(thisArg, _);
1800
+ } catch (e) {
1801
+ op = [
1802
+ 6,
1803
+ e
1804
+ ];
1805
+ y = 0;
1806
+ } finally{
1807
+ f = t = 0;
1808
+ }
1809
+ if (op[0] & 5) throw op[1];
1810
+ return {
1811
+ value: op[0] ? op[1] : void 0,
1812
+ done: true
1813
+ };
1814
+ }
1815
+ }
1816
+ var SigninClient = /*#__PURE__*/ function(__Client) {
1817
+ _inherits$2(SigninClient, __Client);
1818
+ var _super = _create_super$2(SigninClient);
1819
+ function SigninClient() {
1820
+ for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){
1821
+ _tmp[_key] = arguments[_key];
1822
+ }
1823
+ var _tmp1 = _sliced_to_array(_tmp, 1), configuration = _tmp1[0];
1824
+ _class_call_check$2(this, SigninClient);
1825
+ var _this;
1826
+ var _config_0 = getRuntimeConfig(configuration || {});
1827
+ _this = _super.call(this, _config_0);
1828
+ _define_property(_assert_this_initialized$2(_this), "config", void 0);
1829
+ _this.initConfig = _config_0;
1830
+ var _config_1 = resolveClientEndpointParameters(_config_0);
1831
+ var _config_2 = resolveUserAgentConfig(_config_1);
1832
+ var _config_3 = resolveRetryConfig(_config_2);
1833
+ var _config_4 = resolveRegionConfig(_config_3);
1834
+ var _config_5 = resolveHostHeaderConfig(_config_4);
1835
+ var _config_6 = resolveEndpointConfig(_config_5);
1836
+ var _config_7 = resolveHttpAuthSchemeConfig(_config_6);
1837
+ var _config_8 = resolveRuntimeExtensions(_config_7, (configuration === null || configuration === void 0 ? void 0 : configuration.extensions) || []);
1838
+ _this.config = _config_8;
1839
+ _this.middlewareStack.use(getSchemaSerdePlugin(_this.config));
1840
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
1841
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
1842
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
1843
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
1844
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
1845
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
1846
+ _this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(_this.config, {
1847
+ httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
1848
+ identityProviderConfigProvider: function() {
1849
+ var _ref = _async_to_generator(function(config) {
1850
+ return _ts_generator(this, function(_state) {
1851
+ return [
1852
+ 2,
1853
+ new DefaultIdentityProviderConfig({
1854
+ "aws.auth#sigv4": config.credentials
1855
+ })
1856
+ ];
1857
+ });
1858
+ });
1859
+ return function(config) {
1860
+ return _ref.apply(this, arguments);
1861
+ };
1862
+ }()
1863
+ }));
1864
+ _this.middlewareStack.use(getHttpSigningPlugin(_this.config));
1865
+ return _this;
1866
+ }
1867
+ _create_class(SigninClient, [
1868
+ {
1869
+ key: "destroy",
1870
+ value: function destroy() {
1871
+ _get(_get_prototype_of$2(SigninClient.prototype), "destroy", this).call(this);
1872
+ }
1873
+ }
1874
+ ]);
1875
+ return SigninClient;
1876
+ }(Client);
1877
+
1878
+ function _assert_this_initialized$1(self) {
1879
+ if (self === void 0) {
1880
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1881
+ }
1882
+ return self;
1883
+ }
1884
+ function _class_call_check$1(instance, Constructor) {
1885
+ if (!(instance instanceof Constructor)) {
1886
+ throw new TypeError("Cannot call a class as a function");
1887
+ }
1888
+ }
1889
+ function _get_prototype_of$1(o) {
1890
+ _get_prototype_of$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1891
+ return o.__proto__ || Object.getPrototypeOf(o);
1892
+ };
1893
+ return _get_prototype_of$1(o);
1894
+ }
1895
+ function _inherits$1(subClass, superClass) {
1896
+ if (typeof superClass !== "function" && superClass !== null) {
1897
+ throw new TypeError("Super expression must either be null or a function");
1898
+ }
1899
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1900
+ constructor: {
1901
+ value: subClass,
1902
+ writable: true,
1903
+ configurable: true
1904
+ }
1905
+ });
1906
+ if (superClass) _set_prototype_of$1(subClass, superClass);
1907
+ }
1908
+ function _possible_constructor_return$1(self, call) {
1909
+ if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
1910
+ return call;
1911
+ }
1912
+ return _assert_this_initialized$1(self);
1913
+ }
1914
+ function _set_prototype_of$1(o, p) {
1915
+ _set_prototype_of$1 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1916
+ o.__proto__ = p;
1917
+ return o;
1918
+ };
1919
+ return _set_prototype_of$1(o, p);
1920
+ }
1921
+ function _type_of$1(obj) {
1922
+ "@swc/helpers - typeof";
1923
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1924
+ }
1925
+ function _is_native_reflect_construct$1() {
1926
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1927
+ if (Reflect.construct.sham) return false;
1928
+ if (typeof Proxy === "function") return true;
1929
+ try {
1930
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1931
+ return true;
1932
+ } catch (e) {
1933
+ return false;
1934
+ }
1935
+ }
1936
+ function _create_super$1(Derived) {
1937
+ var hasNativeReflectConstruct = _is_native_reflect_construct$1();
1938
+ return function _createSuperInternal() {
1939
+ var Super = _get_prototype_of$1(Derived), result;
1940
+ if (hasNativeReflectConstruct) {
1941
+ var NewTarget = _get_prototype_of$1(this).constructor;
1942
+ result = Reflect.construct(Super, arguments, NewTarget);
1943
+ } else {
1944
+ result = Super.apply(this, arguments);
1945
+ }
1946
+ return _possible_constructor_return$1(this, result);
1947
+ };
1948
+ }
1949
+ var CreateOAuth2TokenCommand = /*#__PURE__*/ function(_$Command_classBuilder_ep_m_s_n_sc_build) {
1950
+ _inherits$1(CreateOAuth2TokenCommand, _$Command_classBuilder_ep_m_s_n_sc_build);
1951
+ var _super = _create_super$1(CreateOAuth2TokenCommand);
1952
+ function CreateOAuth2TokenCommand() {
1953
+ _class_call_check$1(this, CreateOAuth2TokenCommand);
1954
+ return _super.apply(this, arguments);
1955
+ }
1956
+ return CreateOAuth2TokenCommand;
1957
+ }(Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1958
+ return [
1959
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions())
1960
+ ];
1961
+ }).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build());
1962
+
1963
+ function _assert_this_initialized(self) {
1964
+ if (self === void 0) {
1965
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1966
+ }
1967
+ return self;
1968
+ }
1969
+ function _class_call_check(instance, Constructor) {
1970
+ if (!(instance instanceof Constructor)) {
1971
+ throw new TypeError("Cannot call a class as a function");
1972
+ }
1973
+ }
1974
+ function _get_prototype_of(o) {
1975
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
1976
+ return o.__proto__ || Object.getPrototypeOf(o);
1977
+ };
1978
+ return _get_prototype_of(o);
1979
+ }
1980
+ function _inherits(subClass, superClass) {
1981
+ if (typeof superClass !== "function" && superClass !== null) {
1982
+ throw new TypeError("Super expression must either be null or a function");
1983
+ }
1984
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1985
+ constructor: {
1986
+ value: subClass,
1987
+ writable: true,
1988
+ configurable: true
1989
+ }
1990
+ });
1991
+ if (superClass) _set_prototype_of(subClass, superClass);
1992
+ }
1993
+ function _possible_constructor_return(self, call) {
1994
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
1995
+ return call;
1996
+ }
1997
+ return _assert_this_initialized(self);
1998
+ }
1999
+ function _set_prototype_of(o, p) {
2000
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2001
+ o.__proto__ = p;
2002
+ return o;
2003
+ };
2004
+ return _set_prototype_of(o, p);
2005
+ }
2006
+ function _type_of(obj) {
2007
+ "@swc/helpers - typeof";
2008
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2009
+ }
2010
+ function _is_native_reflect_construct() {
2011
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
2012
+ if (Reflect.construct.sham) return false;
2013
+ if (typeof Proxy === "function") return true;
2014
+ try {
2015
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2016
+ return true;
2017
+ } catch (e) {
2018
+ return false;
2019
+ }
2020
+ }
2021
+ function _create_super(Derived) {
2022
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
2023
+ return function _createSuperInternal() {
2024
+ var Super = _get_prototype_of(Derived), result;
2025
+ if (hasNativeReflectConstruct) {
2026
+ var NewTarget = _get_prototype_of(this).constructor;
2027
+ result = Reflect.construct(Super, arguments, NewTarget);
2028
+ } else {
2029
+ result = Super.apply(this, arguments);
2030
+ }
2031
+ return _possible_constructor_return(this, result);
2032
+ };
2033
+ }
2034
+ var commands = {
2035
+ CreateOAuth2TokenCommand: CreateOAuth2TokenCommand
2036
+ };
2037
+ var Signin = /*#__PURE__*/ function(SigninClient) {
2038
+ _inherits(Signin, SigninClient);
2039
+ var _super = _create_super(Signin);
2040
+ function Signin() {
2041
+ _class_call_check(this, Signin);
2042
+ return _super.apply(this, arguments);
2043
+ }
2044
+ return Signin;
2045
+ }(SigninClient);
2046
+ createAggregatedClient(commands, Signin);
2047
+
2048
+ var OAuth2ErrorCode = {
2049
+ AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
2050
+ INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
2051
+ INVALID_REQUEST: "INVALID_REQUEST",
2052
+ SERVER_ERROR: "server_error",
2053
+ TOKEN_EXPIRED: "TOKEN_EXPIRED",
2054
+ USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
2055
+ };
2056
+
2057
+ export { Command as $Command, AccessDeniedException, AccessDeniedException$, AccessToken$, CreateOAuth2Token$, CreateOAuth2TokenCommand, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, InternalServerException, InternalServerException$, OAuth2ErrorCode, Signin, SigninClient, SigninServiceException, SigninServiceException$, TooManyRequestsError, TooManyRequestsError$, ValidationException, ValidationException$, Client as __Client, errorTypeRegistries };