@mindbowser_inc/ui-feedback-plugin 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +310 -61
  2. package/dist/aws-CkWYvUhs.mjs +134 -0
  3. package/dist/aws-CkWYvUhs.mjs.map +1 -0
  4. package/dist/html2canvas-pro.esm-QETbiPYt.mjs +7587 -0
  5. package/dist/html2canvas-pro.esm-QETbiPYt.mjs.map +1 -0
  6. package/dist/index-B-1NC_TX.mjs +12047 -0
  7. package/dist/index-B-1NC_TX.mjs.map +1 -0
  8. package/dist/index-ClYqXfVs.mjs +183 -0
  9. package/dist/index-ClYqXfVs.mjs.map +1 -0
  10. package/dist/{index-BcqBbswO.mjs → index-D6dCjvzy.mjs} +147 -181
  11. package/dist/index-D6dCjvzy.mjs.map +1 -0
  12. package/dist/index.browser-CKeO7JYa.mjs +190 -0
  13. package/dist/index.browser-CKeO7JYa.mjs.map +1 -0
  14. package/dist/index.d.ts +27 -23
  15. package/dist/loadCognitoIdentity-V6H3EoBY.mjs +957 -0
  16. package/dist/loadCognitoIdentity-V6H3EoBY.mjs.map +1 -0
  17. package/dist/stream-collector-mh16BUWl.mjs +4032 -0
  18. package/dist/stream-collector-mh16BUWl.mjs.map +1 -0
  19. package/dist/{supabase-BUHP2OkK.mjs → supabase-CbB80UVb.mjs} +2 -2
  20. package/dist/{supabase-BUHP2OkK.mjs.map → supabase-CbB80UVb.mjs.map} +1 -1
  21. package/dist/tslib.es6-BNkLP3y-.mjs +112 -0
  22. package/dist/tslib.es6-BNkLP3y-.mjs.map +1 -0
  23. package/dist/ui-feedback-plugin.es.js +4 -4
  24. package/dist/ui-feedback-plugin.es.js.map +1 -1
  25. package/dist/ui-feedback-plugin.umd.js +253 -243
  26. package/dist/ui-feedback-plugin.umd.js.map +1 -1
  27. package/package.json +9 -5
  28. package/dist/html2canvas.esm-d2sM-0Wm.mjs +0 -4871
  29. package/dist/html2canvas.esm-d2sM-0Wm.mjs.map +0 -1
  30. package/dist/index-BcqBbswO.mjs.map +0 -1
  31. package/dist/s3-4V57aJiZ.mjs +0 -66
  32. package/dist/s3-4V57aJiZ.mjs.map +0 -1
@@ -0,0 +1,957 @@
1
+ var we = Object.defineProperty;
2
+ var Ce = (t, r, s) => r in t ? we(t, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[r] = s;
3
+ var u = (t, r, s) => Ce(t, typeof r != "symbol" ? r + "" : r, s);
4
+ import { H as xe, N as k, c as be, e as j, h as P, b as ie, y as U, U as Pe, f as oe, L as ae, g as ce, av as _e, u as Re, aw as Ae, t as L, k as ve, j as ke, P as De, ax as Te, K as Ne, p as de, x as ze, E as Me, F as Oe, G as $e, I as Fe, J as je, O as Le, T as ue, i as Ue, Y as He, q as Ge, A as Je, Z as qe, _ as Be, $ as Ke, a0 as Ve, a1 as Qe, a2 as We, a3 as Ze, a4 as Xe, a5 as Ye, a6 as et, a7 as tt, a8 as st, a9 as rt, aa as nt, ab as it, ac as ot, ad as at, ae as ct, af as dt, ag as ut, ah as pt, ai as ht, aj as lt, ak as mt, al as ft, am as yt, an as gt, ao as St, ap as Et, aq as It, ar as wt, au as Ct, as as xt, at as bt, Q as pe, R as he } from "./stream-collector-mh16BUWl.mjs";
5
+ class Pt extends xe {
6
+ async serializeRequest(r, s, e) {
7
+ const o = this.serializer, n = {}, i = {}, c = await e.endpoint(), d = k.of(r == null ? void 0 : r.input), a = d.getSchema();
8
+ let p;
9
+ const h = s && typeof s == "object" ? s : {}, l = new be({
10
+ protocol: "",
11
+ hostname: "",
12
+ port: void 0,
13
+ path: "/",
14
+ fragment: void 0,
15
+ query: n,
16
+ headers: i,
17
+ body: void 0
18
+ });
19
+ if (c && (this.updateServiceEndpoint(l, c), this.setHostPrefix(l, r, h)), h) {
20
+ const y = d.getEventStreamMember();
21
+ if (y) {
22
+ if (h[y]) {
23
+ const f = {};
24
+ for (const [m, I] of d.structIterator())
25
+ m !== y && h[m] && (o.write(I, h[m]), f[m] = o.flush());
26
+ p = await this.serializeEventStream({
27
+ eventStream: h[y],
28
+ requestSchema: d,
29
+ initialRequest: f
30
+ });
31
+ }
32
+ } else
33
+ o.write(a, h), p = o.flush();
34
+ }
35
+ return l.headers = Object.assign(l.headers, i), l.query = n, l.body = p, l.method = "POST", l;
36
+ }
37
+ async deserializeResponse(r, s, e) {
38
+ const o = this.deserializer, n = k.of(r.output), i = {};
39
+ if (e.statusCode >= 300) {
40
+ const d = await j(e.body, s);
41
+ throw d.byteLength > 0 && Object.assign(i, await o.read(15, d)), await this.handleError(r, s, e, i, this.deserializeMetadata(e)), new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
42
+ }
43
+ for (const d in e.headers) {
44
+ const a = e.headers[d];
45
+ delete e.headers[d], e.headers[d.toLowerCase()] = a;
46
+ }
47
+ const c = n.getEventStreamMember();
48
+ if (c)
49
+ i[c] = await this.deserializeEventStream({
50
+ response: e,
51
+ responseSchema: n,
52
+ initialResponseContainer: i
53
+ });
54
+ else {
55
+ const d = await j(e.body, s);
56
+ d.byteLength > 0 && Object.assign(i, await o.read(n, d));
57
+ }
58
+ return i.$metadata = this.deserializeMetadata(e), i;
59
+ }
60
+ }
61
+ class _t {
62
+ async sign(r, s, e) {
63
+ return r;
64
+ }
65
+ }
66
+ function Rt(t, r, s) {
67
+ if (s != null && s.source) {
68
+ const e = s.source;
69
+ if (typeof r == "number" && (r > Number.MAX_SAFE_INTEGER || r < Number.MIN_SAFE_INTEGER || e !== String(r)))
70
+ return e.includes(".") ? new P(e, "bigDecimal") : BigInt(e);
71
+ }
72
+ return r;
73
+ }
74
+ const At = (t, r) => j(t, r).then((s) => ((r == null ? void 0 : r.utf8Encoder) ?? ie)(s)), vt = (t, r) => At(t, r).then((s) => {
75
+ if (s.length)
76
+ try {
77
+ return JSON.parse(s);
78
+ } catch (e) {
79
+ throw (e == null ? void 0 : e.name) === "SyntaxError" && Object.defineProperty(e, "$responseBodyText", {
80
+ value: s
81
+ }), e;
82
+ }
83
+ return {};
84
+ }), X = (t, r) => Object.keys(t).find((s) => s.toLowerCase() === r.toLowerCase()), O = (t) => {
85
+ let r = t;
86
+ return typeof r == "number" && (r = r.toString()), r.indexOf(",") >= 0 && (r = r.split(",")[0]), r.indexOf(":") >= 0 && (r = r.split(":")[0]), r.indexOf("#") >= 0 && (r = r.split("#")[1]), r;
87
+ }, kt = (t, r, s = !1) => Dt(t, r, s ? ["code", "header", "type"] : ["type", "code", "header"]), Dt = ({ headers: t }, r, s) => {
88
+ for (; s.length > 0; )
89
+ switch (s.shift()) {
90
+ case "header":
91
+ const o = X(t ?? {}, "x-amzn-errortype");
92
+ if (o !== void 0)
93
+ return O(t[o]);
94
+ break;
95
+ case "code":
96
+ const n = X(r ?? {}, "code");
97
+ if (n && r[n] !== void 0)
98
+ return O(r[n]);
99
+ break;
100
+ case "type":
101
+ if ((r == null ? void 0 : r.__type) !== void 0)
102
+ return O(r.__type);
103
+ break;
104
+ }
105
+ };
106
+ class Tt extends U {
107
+ constructor(s) {
108
+ super();
109
+ u(this, "settings");
110
+ this.settings = s;
111
+ }
112
+ async read(s, e) {
113
+ return this._read(s, typeof e == "string" ? JSON.parse(e, Rt) : await vt(e, this.serdeContext));
114
+ }
115
+ readObject(s, e) {
116
+ return this._read(s, e);
117
+ }
118
+ _read(s, e) {
119
+ const o = e !== null && typeof e == "object", n = k.of(s);
120
+ if (o) {
121
+ if (n.isStructSchema()) {
122
+ const c = e, d = n.isUnionSchema(), a = {};
123
+ let p;
124
+ const { jsonName: h } = this.settings;
125
+ h && (p = {});
126
+ let l;
127
+ d && (l = new Pe(c, a));
128
+ for (const [y, f] of n.structIterator()) {
129
+ let m = y;
130
+ h && (m = f.getMergedTraits().jsonName ?? m, p[m] = y), d && l.mark(m), c[m] != null && (a[y] = this._read(f, c[m]));
131
+ }
132
+ if (d)
133
+ l.writeUnknown();
134
+ else if (typeof c.__type == "string")
135
+ for (const y in c) {
136
+ const f = c[y], m = h ? p[y] ?? y : y;
137
+ m in a || (a[m] = f);
138
+ }
139
+ return a;
140
+ }
141
+ if (Array.isArray(e) && n.isListSchema()) {
142
+ const c = n.getValueSchema(), d = [];
143
+ for (const a of e)
144
+ d.push(this._read(c, a));
145
+ return d;
146
+ }
147
+ if (n.isMapSchema()) {
148
+ const c = n.getValueSchema(), d = {};
149
+ for (const a in e)
150
+ d[a] = this._read(c, e[a]);
151
+ return d;
152
+ }
153
+ }
154
+ if (n.isBlobSchema() && typeof e == "string")
155
+ return oe(e);
156
+ const i = n.getMergedTraits().mediaType;
157
+ if (n.isStringSchema() && typeof e == "string" && i)
158
+ return i === "application/json" || i.endsWith("+json") ? ae.from(e) : e;
159
+ if (n.isTimestampSchema() && e != null)
160
+ switch (ce(n, this.settings)) {
161
+ case 5:
162
+ return Ae(e);
163
+ case 6:
164
+ return Re(e);
165
+ case 7:
166
+ return _e(e);
167
+ default:
168
+ return console.warn("Missing timestamp format, parsing value with Date constructor:", e), new Date(e);
169
+ }
170
+ if (n.isBigIntegerSchema() && (typeof e == "number" || typeof e == "string"))
171
+ return BigInt(e);
172
+ if (n.isBigDecimalSchema() && e != null) {
173
+ if (e instanceof P)
174
+ return e;
175
+ const c = e;
176
+ return c.type === "bigDecimal" && "string" in c ? new P(c.string, c.type) : new P(String(e), "bigDecimal");
177
+ }
178
+ if (n.isNumericSchema() && typeof e == "string") {
179
+ switch (e) {
180
+ case "Infinity":
181
+ return 1 / 0;
182
+ case "-Infinity":
183
+ return -1 / 0;
184
+ case "NaN":
185
+ return NaN;
186
+ }
187
+ return e;
188
+ }
189
+ if (n.isDocumentSchema())
190
+ if (o) {
191
+ const c = Array.isArray(e) ? [] : {};
192
+ for (const d in e) {
193
+ const a = e[d];
194
+ a instanceof P ? c[d] = a : c[d] = this._read(n, a);
195
+ }
196
+ return c;
197
+ } else
198
+ return structuredClone(e);
199
+ return e;
200
+ }
201
+ }
202
+ const Y = "Ν";
203
+ class Nt {
204
+ constructor() {
205
+ u(this, "values", /* @__PURE__ */ new Map());
206
+ u(this, "counter", 0);
207
+ u(this, "stage", 0);
208
+ }
209
+ createReplacer() {
210
+ if (this.stage === 1)
211
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
212
+ if (this.stage === 2)
213
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
214
+ return this.stage = 1, (r, s) => {
215
+ if (s instanceof P) {
216
+ const e = `${Y + "nv" + this.counter++}_` + s.string;
217
+ return this.values.set(`"${e}"`, s.string), e;
218
+ }
219
+ if (typeof s == "bigint") {
220
+ const e = s.toString(), o = `${Y + "b" + this.counter++}_` + e;
221
+ return this.values.set(`"${o}"`, e), o;
222
+ }
223
+ return s;
224
+ };
225
+ }
226
+ replaceInJson(r) {
227
+ if (this.stage === 0)
228
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
229
+ if (this.stage === 2)
230
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
231
+ if (this.stage = 2, this.counter === 0)
232
+ return r;
233
+ for (const [s, e] of this.values)
234
+ r = r.replace(s, e);
235
+ return r;
236
+ }
237
+ }
238
+ class zt extends U {
239
+ constructor(s) {
240
+ super();
241
+ u(this, "settings");
242
+ u(this, "buffer");
243
+ u(this, "useReplacer", !1);
244
+ u(this, "rootSchema");
245
+ this.settings = s;
246
+ }
247
+ write(s, e) {
248
+ this.rootSchema = k.of(s), this.buffer = this._write(this.rootSchema, e);
249
+ }
250
+ flush() {
251
+ const { rootSchema: s, useReplacer: e } = this;
252
+ if (this.rootSchema = void 0, this.useReplacer = !1, s != null && s.isStructSchema() || s != null && s.isDocumentSchema()) {
253
+ if (!e)
254
+ return JSON.stringify(this.buffer);
255
+ const o = new Nt();
256
+ return o.replaceInJson(JSON.stringify(this.buffer, o.createReplacer(), 0));
257
+ }
258
+ return this.buffer;
259
+ }
260
+ writeDiscriminatedDocument(s, e) {
261
+ this.write(s, e), typeof this.buffer == "object" && (this.buffer.__type = k.of(s).getName(!0));
262
+ }
263
+ _write(s, e, o) {
264
+ var c, d;
265
+ const n = e !== null && typeof e == "object", i = k.of(s);
266
+ if (n) {
267
+ if (i.isStructSchema()) {
268
+ const a = e, p = {}, { jsonName: h } = this.settings;
269
+ let l;
270
+ h && (l = {});
271
+ let y = 0;
272
+ for (const [f, m] of i.structIterator()) {
273
+ const I = this._write(m, a[f], i);
274
+ if (I !== void 0) {
275
+ let A = f;
276
+ h && (A = m.getMergedTraits().jsonName ?? f, l[f] = A), p[A] = I, y++;
277
+ }
278
+ }
279
+ if (i.isUnionSchema() && y === 0) {
280
+ const { $unknown: f } = a;
281
+ if (Array.isArray(f)) {
282
+ const [m, I] = f;
283
+ p[m] = this._write(15, I);
284
+ }
285
+ } else if (typeof a.__type == "string")
286
+ for (const f in a) {
287
+ const m = a[f], I = h ? l[f] ?? f : f;
288
+ I in p || (p[I] = this._write(15, m));
289
+ }
290
+ return p;
291
+ }
292
+ if (Array.isArray(e) && i.isListSchema()) {
293
+ const a = i.getValueSchema(), p = [], h = !!i.getMergedTraits().sparse;
294
+ for (const l of e)
295
+ (h || l != null) && p.push(this._write(a, l));
296
+ return p;
297
+ }
298
+ if (i.isMapSchema()) {
299
+ const a = i.getValueSchema(), p = {}, h = !!i.getMergedTraits().sparse;
300
+ for (const l in e) {
301
+ const y = e[l];
302
+ (h || y != null) && (p[l] = this._write(a, y));
303
+ }
304
+ return p;
305
+ }
306
+ if (e instanceof Uint8Array && (i.isBlobSchema() || i.isDocumentSchema()))
307
+ return i === this.rootSchema ? e : (((c = this.serdeContext) == null ? void 0 : c.base64Encoder) ?? L)(e);
308
+ if (e instanceof Date && (i.isTimestampSchema() || i.isDocumentSchema()))
309
+ switch (ce(i, this.settings)) {
310
+ case 5:
311
+ return e.toISOString().replace(".000Z", "Z");
312
+ case 6:
313
+ return ve(e);
314
+ case 7:
315
+ return e.getTime() / 1e3;
316
+ default:
317
+ return console.warn("Missing timestamp format, using epoch seconds", e), e.getTime() / 1e3;
318
+ }
319
+ e instanceof P && (this.useReplacer = !0);
320
+ }
321
+ if (!(e === null && (o != null && o.isStructSchema()))) {
322
+ if (i.isStringSchema()) {
323
+ if (typeof e > "u" && i.isIdempotencyToken())
324
+ return ke();
325
+ const a = i.getMergedTraits().mediaType;
326
+ return e != null && a && (a === "application/json" || a.endsWith("+json")) ? ae.from(e) : e;
327
+ }
328
+ if (typeof e == "number" && i.isNumericSchema())
329
+ return Math.abs(e) === 1 / 0 || isNaN(e) ? String(e) : e;
330
+ if (typeof e == "string" && i.isBlobSchema())
331
+ return i === this.rootSchema ? e : (((d = this.serdeContext) == null ? void 0 : d.base64Encoder) ?? L)(e);
332
+ if (typeof e == "bigint" && (this.useReplacer = !0), i.isDocumentSchema())
333
+ if (n) {
334
+ const a = Array.isArray(e) ? [] : {};
335
+ for (const p in e) {
336
+ const h = e[p];
337
+ h instanceof P ? (this.useReplacer = !0, a[p] = h) : a[p] = this._write(i, h);
338
+ }
339
+ return a;
340
+ } else
341
+ return structuredClone(e);
342
+ return e;
343
+ }
344
+ }
345
+ }
346
+ class Mt extends U {
347
+ constructor(s) {
348
+ super();
349
+ u(this, "settings");
350
+ this.settings = s;
351
+ }
352
+ createSerializer() {
353
+ const s = new zt(this.settings);
354
+ return s.setSerdeContext(this.serdeContext), s;
355
+ }
356
+ createDeserializer() {
357
+ const s = new Tt(this.settings);
358
+ return s.setSerdeContext(this.serdeContext), s;
359
+ }
360
+ }
361
+ class Ot extends Pt {
362
+ constructor({ defaultNamespace: s, errorTypeRegistries: e, serviceTarget: o, awsQueryCompatible: n, jsonCodec: i }) {
363
+ super({
364
+ defaultNamespace: s,
365
+ errorTypeRegistries: e
366
+ });
367
+ u(this, "serializer");
368
+ u(this, "deserializer");
369
+ u(this, "serviceTarget");
370
+ u(this, "codec");
371
+ u(this, "mixin");
372
+ u(this, "awsQueryCompatible");
373
+ this.serviceTarget = o, this.codec = i ?? new Mt({
374
+ timestampFormat: {
375
+ useTrait: !0,
376
+ default: 7
377
+ },
378
+ jsonName: !1
379
+ }), this.serializer = this.codec.createSerializer(), this.deserializer = this.codec.createDeserializer(), this.awsQueryCompatible = !!n, this.mixin = new De(this.awsQueryCompatible);
380
+ }
381
+ async serializeRequest(s, e, o) {
382
+ const n = await super.serializeRequest(s, e, o);
383
+ return n.path.endsWith("/") || (n.path += "/"), n.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`, n.headers["x-amz-target"] = `${this.serviceTarget}.${s.name}`, this.awsQueryCompatible && (n.headers["x-amzn-query-mode"] = "true"), (Te(s.input) === "unit" || !n.body) && (n.body = "{}"), n;
384
+ }
385
+ getPayloadCodec() {
386
+ return this.codec;
387
+ }
388
+ async handleError(s, e, o, n, i) {
389
+ const { awsQueryCompatible: c } = this;
390
+ c && this.mixin.setQueryCompatError(n, o);
391
+ const d = kt(o, n, c) ?? "Unknown";
392
+ this.mixin.compose(this.compositeErrorRegistry, d, this.options.defaultNamespace);
393
+ const { errorSchema: a, errorMetadata: p } = await this.mixin.getErrorSchemaOrThrowBaseException(d, this.options.defaultNamespace, o, n, i, c ? this.mixin.findQueryCompatibleError : void 0), h = k.of(a), l = n.message ?? n.Message ?? "UnknownError", y = this.compositeErrorRegistry.getErrorCtor(a) ?? Error, f = new y({}), m = {}, I = this.codec.createDeserializer();
394
+ for (const [A, Ie] of h.structIterator())
395
+ n[A] != null && (m[A] = I.readObject(Ie, n[A]));
396
+ throw c && this.mixin.queryCompatOutput(n, m), this.mixin.decorateServiceException(Object.assign(f, p, {
397
+ $fault: h.getMergedTraits().error,
398
+ message: l
399
+ }, m), n);
400
+ }
401
+ }
402
+ class $t extends Ot {
403
+ constructor({ defaultNamespace: r, errorTypeRegistries: s, serviceTarget: e, awsQueryCompatible: o, jsonCodec: n }) {
404
+ super({
405
+ defaultNamespace: r,
406
+ errorTypeRegistries: s,
407
+ serviceTarget: e,
408
+ awsQueryCompatible: o,
409
+ jsonCodec: n
410
+ });
411
+ }
412
+ getShapeId() {
413
+ return "aws.protocols#awsJson1_1";
414
+ }
415
+ getJsonRpcVersion() {
416
+ return "1.1";
417
+ }
418
+ getDefaultContentType() {
419
+ return "application/x-amz-json-1.1";
420
+ }
421
+ }
422
+ const Ft = async (t, r, s) => ({
423
+ operation: ze(r).operation,
424
+ region: await de(t.region)() || (() => {
425
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
426
+ })()
427
+ });
428
+ function jt(t) {
429
+ return {
430
+ schemeId: "aws.auth#sigv4",
431
+ signingProperties: {
432
+ name: "cognito-identity",
433
+ region: t.region
434
+ },
435
+ propertiesExtractor: (r, s) => ({
436
+ signingProperties: {
437
+ config: r,
438
+ context: s
439
+ }
440
+ })
441
+ };
442
+ }
443
+ function ee(t) {
444
+ return {
445
+ schemeId: "smithy.api#noAuth"
446
+ };
447
+ }
448
+ const Lt = (t) => {
449
+ const r = [];
450
+ switch (t.operation) {
451
+ case "GetCredentialsForIdentity": {
452
+ r.push(ee());
453
+ break;
454
+ }
455
+ case "GetId": {
456
+ r.push(ee());
457
+ break;
458
+ }
459
+ default:
460
+ r.push(jt(t));
461
+ }
462
+ return r;
463
+ }, Ut = (t) => {
464
+ const r = Ne(t);
465
+ return Object.assign(r, {
466
+ authSchemePreference: de(t.authSchemePreference ?? [])
467
+ });
468
+ }, Ht = (t) => Object.assign(t, {
469
+ useDualstackEndpoint: t.useDualstackEndpoint ?? !1,
470
+ useFipsEndpoint: t.useFipsEndpoint ?? !1,
471
+ defaultSigningName: "cognito-identity"
472
+ }), le = {
473
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
474
+ Endpoint: { type: "builtInParams", name: "endpoint" },
475
+ Region: { type: "builtInParams", name: "region" },
476
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
477
+ }, Gt = "3.997.23", Jt = {
478
+ version: Gt
479
+ }, N = "ref", v = -1, z = !0, te = "isSet", me = "PartitionResult", M = "booleanEquals", $ = "getAttr", D = "stringEquals", se = { [N]: "Endpoint" }, F = { [N]: me }, T = { [N]: "Region" }, w = {}, re = [T], ne = {
480
+ conditions: [
481
+ [te, [se]],
482
+ [te, re],
483
+ ["aws.partition", re, me],
484
+ [M, [{ [N]: "UseFIPS" }, z]],
485
+ [M, [{ fn: $, argv: [F, "supportsFIPS"] }, z]],
486
+ [M, [{ [N]: "UseDualStack" }, z]],
487
+ [M, [{ fn: $, argv: [F, "supportsDualStack"] }, z]],
488
+ [D, [{ fn: $, argv: [F, "name"] }, "aws"]],
489
+ [D, [T, "us-east-1"]],
490
+ [D, [T, "us-east-2"]],
491
+ [D, [T, "us-west-1"]],
492
+ [D, [T, "us-west-2"]]
493
+ ],
494
+ results: [
495
+ [v],
496
+ [v, "Invalid Configuration: FIPS and custom endpoint are not supported"],
497
+ [v, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
498
+ [se, w],
499
+ ["https://cognito-identity-fips.us-east-1.amazonaws.com", w],
500
+ ["https://cognito-identity-fips.us-east-2.amazonaws.com", w],
501
+ ["https://cognito-identity-fips.us-west-1.amazonaws.com", w],
502
+ ["https://cognito-identity-fips.us-west-2.amazonaws.com", w],
503
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", w],
504
+ [v, "FIPS and DualStack are enabled, but this partition does not support one or both"],
505
+ ["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", w],
506
+ [v, "FIPS is enabled but this partition does not support FIPS"],
507
+ ["https://cognito-identity.{Region}.amazonaws.com", w],
508
+ ["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", w],
509
+ [v, "DualStack is enabled but this partition does not support DualStack"],
510
+ ["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", w],
511
+ [v, "Invalid Configuration: Missing Region"]
512
+ ]
513
+ }, qt = 2, S = 1e8, Bt = new Int32Array([
514
+ -1,
515
+ 1,
516
+ -1,
517
+ 0,
518
+ 17,
519
+ 3,
520
+ 1,
521
+ 4,
522
+ S + 16,
523
+ 2,
524
+ 5,
525
+ S + 16,
526
+ 3,
527
+ 9,
528
+ 6,
529
+ 5,
530
+ 7,
531
+ S + 15,
532
+ 6,
533
+ 8,
534
+ S + 14,
535
+ 7,
536
+ S + 12,
537
+ S + 13,
538
+ 4,
539
+ 11,
540
+ 10,
541
+ 5,
542
+ S + 9,
543
+ S + 11,
544
+ 5,
545
+ 12,
546
+ S + 10,
547
+ 6,
548
+ 13,
549
+ S + 9,
550
+ 8,
551
+ S + 4,
552
+ 14,
553
+ 9,
554
+ S + 5,
555
+ 15,
556
+ 10,
557
+ S + 6,
558
+ 16,
559
+ 11,
560
+ S + 7,
561
+ S + 8,
562
+ 3,
563
+ S + 1,
564
+ 18,
565
+ 5,
566
+ S + 2,
567
+ S + 3
568
+ ]), Kt = Me.from(Bt, qt, ne.conditions, ne.results), Vt = new Oe({
569
+ size: 50,
570
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
571
+ }), Qt = (t, r = {}) => Vt.get(t, () => $e(Kt, {
572
+ endpointParams: t,
573
+ logger: r.logger
574
+ }));
575
+ je.aws = Fe;
576
+ class E extends Le {
577
+ constructor(r) {
578
+ super(r), Object.setPrototypeOf(this, E.prototype);
579
+ }
580
+ }
581
+ class H extends E {
582
+ constructor(s) {
583
+ super({
584
+ name: "ExternalServiceException",
585
+ $fault: "client",
586
+ ...s
587
+ });
588
+ u(this, "name", "ExternalServiceException");
589
+ u(this, "$fault", "client");
590
+ Object.setPrototypeOf(this, H.prototype);
591
+ }
592
+ }
593
+ class G extends E {
594
+ constructor(s) {
595
+ super({
596
+ name: "InternalErrorException",
597
+ $fault: "server",
598
+ ...s
599
+ });
600
+ u(this, "name", "InternalErrorException");
601
+ u(this, "$fault", "server");
602
+ Object.setPrototypeOf(this, G.prototype);
603
+ }
604
+ }
605
+ class J extends E {
606
+ constructor(s) {
607
+ super({
608
+ name: "InvalidIdentityPoolConfigurationException",
609
+ $fault: "client",
610
+ ...s
611
+ });
612
+ u(this, "name", "InvalidIdentityPoolConfigurationException");
613
+ u(this, "$fault", "client");
614
+ Object.setPrototypeOf(this, J.prototype);
615
+ }
616
+ }
617
+ class q extends E {
618
+ constructor(s) {
619
+ super({
620
+ name: "InvalidParameterException",
621
+ $fault: "client",
622
+ ...s
623
+ });
624
+ u(this, "name", "InvalidParameterException");
625
+ u(this, "$fault", "client");
626
+ Object.setPrototypeOf(this, q.prototype);
627
+ }
628
+ }
629
+ class B extends E {
630
+ constructor(s) {
631
+ super({
632
+ name: "NotAuthorizedException",
633
+ $fault: "client",
634
+ ...s
635
+ });
636
+ u(this, "name", "NotAuthorizedException");
637
+ u(this, "$fault", "client");
638
+ Object.setPrototypeOf(this, B.prototype);
639
+ }
640
+ }
641
+ class K extends E {
642
+ constructor(s) {
643
+ super({
644
+ name: "ResourceConflictException",
645
+ $fault: "client",
646
+ ...s
647
+ });
648
+ u(this, "name", "ResourceConflictException");
649
+ u(this, "$fault", "client");
650
+ Object.setPrototypeOf(this, K.prototype);
651
+ }
652
+ }
653
+ class V extends E {
654
+ constructor(s) {
655
+ super({
656
+ name: "ResourceNotFoundException",
657
+ $fault: "client",
658
+ ...s
659
+ });
660
+ u(this, "name", "ResourceNotFoundException");
661
+ u(this, "$fault", "client");
662
+ Object.setPrototypeOf(this, V.prototype);
663
+ }
664
+ }
665
+ class Q extends E {
666
+ constructor(s) {
667
+ super({
668
+ name: "TooManyRequestsException",
669
+ $fault: "client",
670
+ ...s
671
+ });
672
+ u(this, "name", "TooManyRequestsException");
673
+ u(this, "$fault", "client");
674
+ Object.setPrototypeOf(this, Q.prototype);
675
+ }
676
+ }
677
+ class W extends E {
678
+ constructor(s) {
679
+ super({
680
+ name: "LimitExceededException",
681
+ $fault: "client",
682
+ ...s
683
+ });
684
+ u(this, "name", "LimitExceededException");
685
+ u(this, "$fault", "client");
686
+ Object.setPrototypeOf(this, W.prototype);
687
+ }
688
+ }
689
+ const Wt = "AccountId", Zt = "AccessKeyId", fe = "Credentials", Xt = "CustomRoleArn", Yt = "Expiration", es = "ExternalServiceException", ts = "GetCredentialsForIdentity", ss = "GetCredentialsForIdentityInput", rs = "GetCredentialsForIdentityResponse", ns = "GetId", is = "GetIdInput", os = "GetIdResponse", as = "InternalErrorException", Z = "IdentityId", cs = "InvalidIdentityPoolConfigurationException", ds = "InvalidParameterException", us = "IdentityPoolId", ps = "IdentityProviderToken", ye = "Logins", hs = "LimitExceededException", ls = "LoginsMap", ms = "NotAuthorizedException", fs = "ResourceConflictException", ys = "ResourceNotFoundException", gs = "SecretKey", Ss = "SecretKeyString", Es = "SessionToken", Is = "TooManyRequestsException", _ = "client", x = "error", R = "httpError", b = "message", ge = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity", ws = "server", g = "com.amazonaws.cognitoidentity", Se = ue.for(ge);
690
+ var Cs = [-3, ge, "CognitoIdentityServiceException", 0, [], []];
691
+ Se.registerError(Cs, E);
692
+ const C = ue.for(g);
693
+ var xs = [
694
+ -3,
695
+ g,
696
+ es,
697
+ { [x]: _, [R]: 400 },
698
+ [b],
699
+ [0]
700
+ ];
701
+ C.registerError(xs, H);
702
+ var bs = [
703
+ -3,
704
+ g,
705
+ as,
706
+ { [x]: ws },
707
+ [b],
708
+ [0]
709
+ ];
710
+ C.registerError(bs, G);
711
+ var Ps = [
712
+ -3,
713
+ g,
714
+ cs,
715
+ { [x]: _, [R]: 400 },
716
+ [b],
717
+ [0]
718
+ ];
719
+ C.registerError(Ps, J);
720
+ var _s = [
721
+ -3,
722
+ g,
723
+ ds,
724
+ { [x]: _, [R]: 400 },
725
+ [b],
726
+ [0]
727
+ ];
728
+ C.registerError(_s, q);
729
+ var Rs = [
730
+ -3,
731
+ g,
732
+ hs,
733
+ { [x]: _, [R]: 400 },
734
+ [b],
735
+ [0]
736
+ ];
737
+ C.registerError(Rs, W);
738
+ var As = [
739
+ -3,
740
+ g,
741
+ ms,
742
+ { [x]: _, [R]: 403 },
743
+ [b],
744
+ [0]
745
+ ];
746
+ C.registerError(As, B);
747
+ var vs = [
748
+ -3,
749
+ g,
750
+ fs,
751
+ { [x]: _, [R]: 409 },
752
+ [b],
753
+ [0]
754
+ ];
755
+ C.registerError(vs, K);
756
+ var ks = [
757
+ -3,
758
+ g,
759
+ ys,
760
+ { [x]: _, [R]: 404 },
761
+ [b],
762
+ [0]
763
+ ];
764
+ C.registerError(ks, V);
765
+ var Ds = [
766
+ -3,
767
+ g,
768
+ Is,
769
+ { [x]: _, [R]: 429 },
770
+ [b],
771
+ [0]
772
+ ];
773
+ C.registerError(Ds, Q);
774
+ const Ts = [
775
+ Se,
776
+ C
777
+ ];
778
+ var Ns = [0, g, ps, 8, 0], zs = [0, g, Ss, 8, 0], Ms = [
779
+ 3,
780
+ g,
781
+ fe,
782
+ 0,
783
+ [Zt, gs, Es, Yt],
784
+ [0, [() => zs, 0], 0, 4]
785
+ ], Os = [
786
+ 3,
787
+ g,
788
+ ss,
789
+ 0,
790
+ [Z, ye, Xt],
791
+ [0, [() => Ee, 0], 0],
792
+ 1
793
+ ], $s = [
794
+ 3,
795
+ g,
796
+ rs,
797
+ 0,
798
+ [Z, fe],
799
+ [0, [() => Ms, 0]]
800
+ ], Fs = [
801
+ 3,
802
+ g,
803
+ is,
804
+ 0,
805
+ [us, Wt, ye],
806
+ [0, 0, [() => Ee, 0]],
807
+ 1
808
+ ], js = [
809
+ 3,
810
+ g,
811
+ os,
812
+ 0,
813
+ [Z],
814
+ [0]
815
+ ], Ee = [
816
+ 2,
817
+ g,
818
+ ls,
819
+ 0,
820
+ [
821
+ 0,
822
+ 0
823
+ ],
824
+ [
825
+ () => Ns,
826
+ 0
827
+ ]
828
+ ], Ls = [
829
+ 9,
830
+ g,
831
+ ts,
832
+ 0,
833
+ () => Os,
834
+ () => $s
835
+ ], Us = [
836
+ 9,
837
+ g,
838
+ ns,
839
+ 0,
840
+ () => Fs,
841
+ () => js
842
+ ];
843
+ const Hs = (t) => ({
844
+ apiVersion: "2014-06-30",
845
+ base64Decoder: (t == null ? void 0 : t.base64Decoder) ?? oe,
846
+ base64Encoder: (t == null ? void 0 : t.base64Encoder) ?? L,
847
+ disableHostPrefix: (t == null ? void 0 : t.disableHostPrefix) ?? !1,
848
+ endpointProvider: (t == null ? void 0 : t.endpointProvider) ?? Qt,
849
+ extensions: (t == null ? void 0 : t.extensions) ?? [],
850
+ httpAuthSchemeProvider: (t == null ? void 0 : t.httpAuthSchemeProvider) ?? Lt,
851
+ httpAuthSchemes: (t == null ? void 0 : t.httpAuthSchemes) ?? [
852
+ {
853
+ schemeId: "aws.auth#sigv4",
854
+ identityProvider: (r) => r.getIdentityProvider("aws.auth#sigv4"),
855
+ signer: new Je()
856
+ },
857
+ {
858
+ schemeId: "smithy.api#noAuth",
859
+ identityProvider: (r) => r.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
860
+ signer: new _t()
861
+ }
862
+ ],
863
+ logger: (t == null ? void 0 : t.logger) ?? new Ge(),
864
+ protocol: (t == null ? void 0 : t.protocol) ?? $t,
865
+ protocolSettings: (t == null ? void 0 : t.protocolSettings) ?? {
866
+ defaultNamespace: "com.amazonaws.cognitoidentity",
867
+ errorTypeRegistries: Ts,
868
+ xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
869
+ version: "2014-06-30",
870
+ serviceTarget: "AWSCognitoIdentityService"
871
+ },
872
+ serviceId: (t == null ? void 0 : t.serviceId) ?? "Cognito Identity",
873
+ urlParser: (t == null ? void 0 : t.urlParser) ?? He,
874
+ utf8Decoder: (t == null ? void 0 : t.utf8Decoder) ?? Ue,
875
+ utf8Encoder: (t == null ? void 0 : t.utf8Encoder) ?? ie
876
+ }), Gs = (t) => {
877
+ const r = qe(t), s = () => r().then(st), e = Hs(t);
878
+ return {
879
+ ...e,
880
+ ...t,
881
+ runtime: "browser",
882
+ defaultsMode: r,
883
+ bodyLengthChecker: (t == null ? void 0 : t.bodyLengthChecker) ?? We,
884
+ defaultUserAgentProvider: (t == null ? void 0 : t.defaultUserAgentProvider) ?? tt({ serviceId: e.serviceId, clientVersion: Jt.version }),
885
+ maxAttempts: (t == null ? void 0 : t.maxAttempts) ?? Qe,
886
+ region: (t == null ? void 0 : t.region) ?? et("Region is missing"),
887
+ requestHandler: Ye.create((t == null ? void 0 : t.requestHandler) ?? s),
888
+ retryMode: (t == null ? void 0 : t.retryMode) ?? (async () => (await s()).retryMode || Ve),
889
+ sha256: (t == null ? void 0 : t.sha256) ?? Ke,
890
+ streamCollector: (t == null ? void 0 : t.streamCollector) ?? Be,
891
+ useDualstackEndpoint: (t == null ? void 0 : t.useDualstackEndpoint) ?? (() => Promise.resolve(Xe)),
892
+ useFipsEndpoint: (t == null ? void 0 : t.useFipsEndpoint) ?? (() => Promise.resolve(Ze))
893
+ };
894
+ }, Js = (t) => {
895
+ const r = t.httpAuthSchemes;
896
+ let s = t.httpAuthSchemeProvider, e = t.credentials;
897
+ return {
898
+ setHttpAuthScheme(o) {
899
+ const n = r.findIndex((i) => i.schemeId === o.schemeId);
900
+ n === -1 ? r.push(o) : r.splice(n, 1, o);
901
+ },
902
+ httpAuthSchemes() {
903
+ return r;
904
+ },
905
+ setHttpAuthSchemeProvider(o) {
906
+ s = o;
907
+ },
908
+ httpAuthSchemeProvider() {
909
+ return s;
910
+ },
911
+ setCredentials(o) {
912
+ e = o;
913
+ },
914
+ credentials() {
915
+ return e;
916
+ }
917
+ };
918
+ }, qs = (t) => ({
919
+ httpAuthSchemes: t.httpAuthSchemes(),
920
+ httpAuthSchemeProvider: t.httpAuthSchemeProvider(),
921
+ credentials: t.credentials()
922
+ }), Bs = (t, r) => {
923
+ const s = Object.assign(rt(t), nt(t), it(t), Js(t));
924
+ return r.forEach((e) => e.configure(s)), Object.assign(t, ot(s), at(s), ct(s), qs(s));
925
+ };
926
+ class Qs extends dt {
927
+ constructor(...[s]) {
928
+ const e = Gs(s || {});
929
+ super(e);
930
+ u(this, "config");
931
+ this.initConfig = e;
932
+ const o = Ht(e), n = ut(o), i = pt(n), c = ht(i), d = bt(c), a = lt(d), p = Ut(a), h = Bs(p, (s == null ? void 0 : s.extensions) || []);
933
+ this.config = h, this.middlewareStack.use(mt(this.config)), this.middlewareStack.use(ft(this.config)), this.middlewareStack.use(yt(this.config)), this.middlewareStack.use(gt(this.config)), this.middlewareStack.use(St(this.config)), this.middlewareStack.use(Et(this.config)), this.middlewareStack.use(It(this.config)), this.middlewareStack.use(wt(this.config, {
934
+ httpAuthSchemeParametersProvider: Ft,
935
+ identityProviderConfigProvider: async (l) => new Ct({
936
+ "aws.auth#sigv4": l.credentials
937
+ })
938
+ })), this.middlewareStack.use(xt(this.config));
939
+ }
940
+ destroy() {
941
+ super.destroy();
942
+ }
943
+ }
944
+ class Ws extends pe.classBuilder().ep(le).m(function(r, s, e, o) {
945
+ return [he(e, r.getEndpointParameterInstructions())];
946
+ }).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").sc(Ls).build() {
947
+ }
948
+ class Zs extends pe.classBuilder().ep(le).m(function(r, s, e, o) {
949
+ return [he(e, r.getEndpointParameterInstructions())];
950
+ }).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").sc(Us).build() {
951
+ }
952
+ export {
953
+ Qs as CognitoIdentityClient,
954
+ Ws as GetCredentialsForIdentityCommand,
955
+ Zs as GetIdCommand
956
+ };
957
+ //# sourceMappingURL=loadCognitoIdentity-V6H3EoBY.mjs.map