dynamic-mui 2.2.0 → 2.3.0

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 (166) hide show
  1. package/README.md +142 -5
  2. package/dist/accordion-DqBdGRim.mjs +23 -0
  3. package/dist/accordion-lvbD_BpX.js +1 -0
  4. package/dist/addressfield-CGX3UppE.mjs +152 -0
  5. package/dist/addressfield-DDG15fqJ.js +1 -0
  6. package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
  7. package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-C3QVfoig.mjs +64 -0
  11. package/dist/cascadeselect-DzbhK9en.js +1 -0
  12. package/dist/colorpicker-5qmEq7ZI.js +1 -0
  13. package/dist/colorpicker-DhNZulJY.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +99 -10
  16. package/dist/components/controls/index.d.ts +45 -79
  17. package/dist/consentfield-B7Rm8d3U.js +1 -0
  18. package/dist/consentfield-CBQUR4J5.mjs +78 -0
  19. package/dist/datatable-BIQznwQe.mjs +20 -0
  20. package/dist/datatable-BWlcUP0M.js +1 -0
  21. package/dist/dynamic-mui.cjs +1 -0
  22. package/dist/dynamic-mui.mjs +32 -0
  23. package/dist/editabletable-DCoRmsEO.js +1 -0
  24. package/dist/editabletable-DRlBV8lk.mjs +126 -0
  25. package/dist/fileupload-ByBv1UjT.mjs +172 -0
  26. package/dist/fileupload-Cze3Oc_2.js +1 -0
  27. package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
  28. package/dist/formrepeater-BxJzXoHx.js +1 -0
  29. package/dist/formwizard-BDZE1UDD.js +1 -0
  30. package/dist/formwizard-D2u1bMvK.mjs +83 -0
  31. package/dist/geofield-8WTeZk0Z.mjs +104 -0
  32. package/dist/geofield-Bw3p4NLJ.js +1 -0
  33. package/dist/group-B2mSylHd.mjs +23 -0
  34. package/dist/group-BlfO3ZZf.js +1 -0
  35. package/dist/imagelist-Bn9QhIv7.js +1 -0
  36. package/dist/imagelist-rqmJajHt.mjs +18 -0
  37. package/dist/index-CddjLTWF.mjs +12499 -0
  38. package/dist/index-D08GIfqF.js +43 -0
  39. package/dist/index.d.ts +9 -1
  40. package/dist/intlphone-B_Xn98pU.js +1 -0
  41. package/dist/intlphone-DtQZ12xk.mjs +140 -0
  42. package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
  43. package/dist/keyvaluefield-DyKCGd32.js +1 -0
  44. package/dist/line-B-DwR1hm.mjs +20 -0
  45. package/dist/line-BkymZu31.js +1 -0
  46. package/dist/lineitemlist-DGo8UOZC.js +1 -0
  47. package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
  48. package/dist/list-7uNWrepS.mjs +20 -0
  49. package/dist/list-C0FgmtQw.js +1 -0
  50. package/dist/locationfield-CeUgxLkQ.mjs +119 -0
  51. package/dist/locationfield-Duyw1ZEz.js +1 -0
  52. package/dist/markdowneditor-B1y-hfny.mjs +90 -0
  53. package/dist/markdowneditor-Db0Un1_Z.js +2 -0
  54. package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
  55. package/dist/matrixfield-CckODuPn.js +1 -0
  56. package/dist/mixChart-C3o184UT.js +1 -0
  57. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  58. package/dist/multitextbox-BYazIAeG.js +1 -0
  59. package/dist/multitextbox-ide2lvJ6.mjs +78 -0
  60. package/dist/npsscale-C2e88qk_.js +1 -0
  61. package/dist/npsscale-lndz7GEq.mjs +87 -0
  62. package/dist/numberstepper-DitbcvV9.mjs +128 -0
  63. package/dist/numberstepper-DyRjQM_K.js +1 -0
  64. package/dist/pie-CJSL8Sv5.js +1 -0
  65. package/dist/pie-CL29dlh5.mjs +20 -0
  66. package/dist/richtexteditor-CVg-MnKp.js +1 -0
  67. package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
  68. package/dist/s3Upload-B0JeoLkS.js +1 -0
  69. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  70. package/dist/signature-14OrZriO.mjs +1225 -0
  71. package/dist/signature-D582X6tB.js +2 -0
  72. package/dist/stepper-B-FpcZvT.js +1 -0
  73. package/dist/stepper-CDfEy_C6.mjs +140 -0
  74. package/dist/summaryfield-B08ZmVHh.js +1 -0
  75. package/dist/summaryfield-CTpPlZBG.mjs +96 -0
  76. package/dist/tabs-BIliqFOs.js +1 -0
  77. package/dist/tabs-DDeJCFt8.mjs +39 -0
  78. package/dist/tagsinput-D-q6rRZS.mjs +58 -0
  79. package/dist/tagsinput-qh_lhdFb.js +1 -0
  80. package/dist/util/registry.d.ts +29 -0
  81. package/dist/util/resolvers.d.ts +45 -0
  82. package/dist/util/useFormEngine.d.ts +74 -0
  83. package/dist/util/validateSchema.d.ts +23 -0
  84. package/dist/v4-BysszJq8.mjs +30 -0
  85. package/dist/v4-CqdK_b8Y.js +1 -0
  86. package/package.json +36 -11
  87. package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
  88. package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
  89. package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
  90. package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
  91. package/dist/ChartsGrid-BCRTvNTr.js +0 -3
  92. package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
  93. package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
  94. package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
  95. package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
  96. package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
  97. package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
  98. package/dist/ChartsYAxis-fpevi1sP.js +0 -1
  99. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  100. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  101. package/dist/clampAngle-BvZjnf53.mjs +0 -11
  102. package/dist/clampAngle-DpAsDoeT.js +0 -1
  103. package/dist/createSelector-B-9FwV16.mjs +0 -430
  104. package/dist/createSelector-f0oqn8Lr.js +0 -7
  105. package/dist/date-utils-CFUUt6NL.js +0 -4
  106. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  107. package/dist/dynamic-mui.cjs.js +0 -1
  108. package/dist/dynamic-mui.es.js +0 -22
  109. package/dist/index--8Zky9Oh.js +0 -299
  110. package/dist/index-6WTs1Xy_.js +0 -1
  111. package/dist/index-B1R1akM2.js +0 -1
  112. package/dist/index-BW8_rRff.js +0 -7
  113. package/dist/index-BXFVK_GX.js +0 -1
  114. package/dist/index-B_KNUTjy.js +0 -1
  115. package/dist/index-BhaKvHkU.mjs +0 -62051
  116. package/dist/index-Bif92ima.js +0 -1
  117. package/dist/index-BnZOu8CL.js +0 -1
  118. package/dist/index-CDxpgRlR.mjs +0 -7
  119. package/dist/index-CThMfvtJ.mjs +0 -2555
  120. package/dist/index-CVqLvm8B.js +0 -1
  121. package/dist/index-CodJBIn6.mjs +0 -1665
  122. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  123. package/dist/index-CslPwsrf.mjs +0 -4
  124. package/dist/index-CuV0MQzZ.mjs +0 -1173
  125. package/dist/index-DA0XouZs.mjs +0 -153
  126. package/dist/index-DKS5Sz9e.js +0 -14
  127. package/dist/index-DSkYYZuW.mjs +0 -4
  128. package/dist/index-DU78_FiA.js +0 -1
  129. package/dist/index-D_mYhgJ0.js +0 -10
  130. package/dist/index-DcWfyXJp.mjs +0 -92
  131. package/dist/index-Dlimbnxj.mjs +0 -2965
  132. package/dist/index-MllWgTJ5.mjs +0 -9372
  133. package/dist/index-in5z9hUb.js +0 -133
  134. package/dist/index-qUW7FnZ-.mjs +0 -20540
  135. package/dist/index.browser-BSu11T_q.mjs +0 -363
  136. package/dist/index.browser-By7-GABP.js +0 -4
  137. package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
  138. package/dist/isDeepEqual-CqxZGVRk.js +0 -1
  139. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  140. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  141. package/dist/loadSts-Cic6UToN.mjs +0 -593
  142. package/dist/loadSts-csbFP6zX.js +0 -1
  143. package/dist/main.d.ts +0 -1
  144. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  145. package/dist/noAuth-JPA2o4dt.js +0 -1
  146. package/dist/playground/AIContext.d.ts +0 -18
  147. package/dist/playground/AIPanel.d.ts +0 -10
  148. package/dist/playground/Builder.d.ts +0 -1
  149. package/dist/playground/Canvas.d.ts +0 -9
  150. package/dist/playground/DemoGallery.d.ts +0 -6
  151. package/dist/playground/PropertiesEditor.d.ts +0 -10
  152. package/dist/playground/Sidebar.d.ts +0 -9
  153. package/dist/playground/demoForms.d.ts +0 -3
  154. package/dist/playground/demoRecipes.d.ts +0 -15
  155. package/dist/playground/demoVariants.d.ts +0 -11
  156. package/dist/playground/documentation.d.ts +0 -6
  157. package/dist/playground/templates.d.ts +0 -7
  158. package/dist/playground/testData.d.ts +0 -2
  159. package/dist/test/setup.d.ts +0 -0
  160. package/dist/theme/theme.d.ts +0 -6
  161. package/dist/useAxis-DSbfEtO7.js +0 -3
  162. package/dist/useAxis-SiNBMMWq.mjs +0 -3010
  163. package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
  164. package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
  165. package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
  166. package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
@@ -1,393 +0,0 @@
1
- import { k as U, l as N, _ as C } from "./index-BhaKvHkU.mjs";
2
- import * as K from "react";
3
- import V from "react";
4
- const q = parseInt(K.version, 10), $ = Object.is;
5
- function ce(t, e) {
6
- if (t === e)
7
- return !0;
8
- if (!(t instanceof Object) || !(e instanceof Object))
9
- return !1;
10
- let u = 0, i = 0;
11
- for (const r in t)
12
- if (u += 1, !$(t[r], e[r]) || !(r in e))
13
- return !1;
14
- for (const r in e)
15
- i += 1;
16
- return u === i;
17
- }
18
- var A = { exports: {} }, j = {};
19
- var I;
20
- function P() {
21
- if (I) return j;
22
- I = 1;
23
- var t = V;
24
- function e(c, a) {
25
- return c === a && (c !== 0 || 1 / c === 1 / a) || c !== c && a !== a;
26
- }
27
- var u = typeof Object.is == "function" ? Object.is : e, i = t.useState, r = t.useEffect, n = t.useLayoutEffect, O = t.useDebugValue;
28
- function h(c, a) {
29
- var o = a(), s = i({ inst: { value: o, getSnapshot: a } }), f = s[0].inst, _ = s[1];
30
- return n(
31
- function() {
32
- f.value = o, f.getSnapshot = a, E(f) && _({ inst: f });
33
- },
34
- [c, o, a]
35
- ), r(
36
- function() {
37
- return E(f) && _({ inst: f }), c(function() {
38
- E(f) && _({ inst: f });
39
- });
40
- },
41
- [c]
42
- ), O(o), o;
43
- }
44
- function E(c) {
45
- var a = c.getSnapshot;
46
- c = c.value;
47
- try {
48
- var o = a();
49
- return !u(c, o);
50
- } catch {
51
- return !0;
52
- }
53
- }
54
- function d(c, a) {
55
- return a();
56
- }
57
- var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : h;
58
- return j.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, j;
59
- }
60
- var w = {};
61
- var k;
62
- function Y() {
63
- return k || (k = 1, process.env.NODE_ENV !== "production" && (function() {
64
- function t(o, s) {
65
- return o === s && (o !== 0 || 1 / o === 1 / s) || o !== o && s !== s;
66
- }
67
- function e(o, s) {
68
- l || r.startTransition === void 0 || (l = !0, console.error(
69
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
70
- ));
71
- var f = s();
72
- if (!c) {
73
- var _ = s();
74
- n(f, _) || (console.error(
75
- "The result of getSnapshot should be cached to avoid an infinite loop"
76
- ), c = !0);
77
- }
78
- _ = O({
79
- inst: { value: f, getSnapshot: s }
80
- });
81
- var p = _[0].inst, y = _[1];
82
- return E(
83
- function() {
84
- p.value = f, p.getSnapshot = s, u(p) && y({ inst: p });
85
- },
86
- [o, f, s]
87
- ), h(
88
- function() {
89
- return u(p) && y({ inst: p }), o(function() {
90
- u(p) && y({ inst: p });
91
- });
92
- },
93
- [o]
94
- ), d(f), f;
95
- }
96
- function u(o) {
97
- var s = o.getSnapshot;
98
- o = o.value;
99
- try {
100
- var f = s();
101
- return !n(o, f);
102
- } catch {
103
- return !0;
104
- }
105
- }
106
- function i(o, s) {
107
- return s();
108
- }
109
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
110
- var r = V, n = typeof Object.is == "function" ? Object.is : t, O = r.useState, h = r.useEffect, E = r.useLayoutEffect, d = r.useDebugValue, l = !1, c = !1, a = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : e;
111
- w.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
112
- })()), w;
113
- }
114
- var x;
115
- function G() {
116
- return x || (x = 1, process.env.NODE_ENV === "production" ? A.exports = P() : A.exports = Y()), A.exports;
117
- }
118
- var F = G(), T = { exports: {} }, D = {};
119
- var B;
120
- function J() {
121
- if (B) return D;
122
- B = 1;
123
- var t = V, e = G();
124
- function u(d, l) {
125
- return d === l && (d !== 0 || 1 / d === 1 / l) || d !== d && l !== l;
126
- }
127
- var i = typeof Object.is == "function" ? Object.is : u, r = e.useSyncExternalStore, n = t.useRef, O = t.useEffect, h = t.useMemo, E = t.useDebugValue;
128
- return D.useSyncExternalStoreWithSelector = function(d, l, c, a, o) {
129
- var s = n(null);
130
- if (s.current === null) {
131
- var f = { hasValue: !1, value: null };
132
- s.current = f;
133
- } else f = s.current;
134
- s = h(
135
- function() {
136
- function p(S) {
137
- if (!y) {
138
- if (y = !0, m = S, S = a(S), o !== void 0 && f.hasValue) {
139
- var v = f.value;
140
- if (o(v, S))
141
- return L = v;
142
- }
143
- return L = S;
144
- }
145
- if (v = L, i(m, S)) return v;
146
- var R = a(S);
147
- return o !== void 0 && o(v, R) ? (m = S, v) : (m = S, L = R);
148
- }
149
- var y = !1, m, L, g = c === void 0 ? null : c;
150
- return [
151
- function() {
152
- return p(l());
153
- },
154
- g === null ? void 0 : function() {
155
- return p(g());
156
- }
157
- ];
158
- },
159
- [l, c, a, o]
160
- );
161
- var _ = r(d, s[0], s[1]);
162
- return O(
163
- function() {
164
- f.hasValue = !0, f.value = _;
165
- },
166
- [_]
167
- ), E(_), _;
168
- }, D;
169
- }
170
- var b = {};
171
- var z;
172
- function Q() {
173
- return z || (z = 1, process.env.NODE_ENV !== "production" && (function() {
174
- function t(d, l) {
175
- return d === l && (d !== 0 || 1 / d === 1 / l) || d !== d && l !== l;
176
- }
177
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
178
- var e = V, u = G(), i = typeof Object.is == "function" ? Object.is : t, r = u.useSyncExternalStore, n = e.useRef, O = e.useEffect, h = e.useMemo, E = e.useDebugValue;
179
- b.useSyncExternalStoreWithSelector = function(d, l, c, a, o) {
180
- var s = n(null);
181
- if (s.current === null) {
182
- var f = { hasValue: !1, value: null };
183
- s.current = f;
184
- } else f = s.current;
185
- s = h(
186
- function() {
187
- function p(S) {
188
- if (!y) {
189
- if (y = !0, m = S, S = a(S), o !== void 0 && f.hasValue) {
190
- var v = f.value;
191
- if (o(v, S))
192
- return L = v;
193
- }
194
- return L = S;
195
- }
196
- if (v = L, i(m, S))
197
- return v;
198
- var R = a(S);
199
- return o !== void 0 && o(v, R) ? (m = S, v) : (m = S, L = R);
200
- }
201
- var y = !1, m, L, g = c === void 0 ? null : c;
202
- return [
203
- function() {
204
- return p(l());
205
- },
206
- g === null ? void 0 : function() {
207
- return p(g());
208
- }
209
- ];
210
- },
211
- [l, c, a, o]
212
- );
213
- var _ = r(d, s[0], s[1]);
214
- return O(
215
- function() {
216
- f.hasValue = !0, f.value = _;
217
- },
218
- [_]
219
- ), E(_), _;
220
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
221
- })()), b;
222
- }
223
- var H;
224
- function X() {
225
- return H || (H = 1, process.env.NODE_ENV === "production" ? T.exports = J() : T.exports = Q()), T.exports;
226
- }
227
- var Z = X();
228
- const ee = q >= 19, te = ee ? ne : ue;
229
- function re(t, e, u, i, r) {
230
- return te(t, e, u, i, r);
231
- }
232
- function ne(t, e, u, i, r) {
233
- const n = K.useCallback(() => e(t.getSnapshot(), u, i, r), [t, e, u, i, r]);
234
- return F.useSyncExternalStore(t.subscribe, n, n);
235
- }
236
- function ue(t, e, u, i, r) {
237
- return Z.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (n) => e(n, u, i, r));
238
- }
239
- const oe = () => {
240
- };
241
- function ae(t, e, u) {
242
- const i = U(ie, {
243
- store: t,
244
- selector: e
245
- }).current;
246
- i.effect = u, N(i.onMount);
247
- }
248
- function ie(t) {
249
- const {
250
- store: e,
251
- selector: u
252
- } = t;
253
- let i = u(e.state);
254
- const r = {
255
- effect: oe,
256
- dispose: null,
257
- // We want a single subscription done right away and cleared on unmount only,
258
- // but React triggers `useOnMount` multiple times in dev, so we need to manage
259
- // the subscription anyway.
260
- subscribe: () => {
261
- r.dispose ??= e.subscribe((n) => {
262
- const O = u(n);
263
- if (!Object.is(i, O)) {
264
- const h = i;
265
- i = O, r.effect(h, O);
266
- }
267
- });
268
- },
269
- onMount: () => (r.subscribe(), () => {
270
- r.dispose?.(), r.dispose = null;
271
- })
272
- };
273
- return r.subscribe(), r;
274
- }
275
- class W {
276
- // HACK: `any` fixes adding listeners that accept partial state.
277
- // Internal state to handle recursive `setState()` calls
278
- static create(e) {
279
- return new W(e);
280
- }
281
- constructor(e) {
282
- this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
283
- }
284
- subscribe = (e) => (this.listeners.add(e), () => {
285
- this.listeners.delete(e);
286
- });
287
- /**
288
- * Returns the current state snapshot. Meant for usage with `useSyncExternalStore`.
289
- * If you want to access the state, use the `state` property instead.
290
- */
291
- getSnapshot = () => this.state;
292
- setState(e) {
293
- this.state = e, this.updateTick += 1;
294
- const u = this.updateTick, i = this.listeners.values();
295
- let r;
296
- for (; r = i.next(), !r.done; ) {
297
- if (u !== this.updateTick)
298
- return;
299
- const n = r.value;
300
- n(e);
301
- }
302
- }
303
- update(e) {
304
- for (const u in e)
305
- if (!Object.is(this.state[u], e[u])) {
306
- this.setState(C({}, this.state, e));
307
- return;
308
- }
309
- }
310
- set(e, u) {
311
- Object.is(this.state[e], u) || this.setState(C({}, this.state, {
312
- [e]: u
313
- }));
314
- }
315
- use = (e, u, i, r) => re(this, e, u, i, r);
316
- }
317
- function M(t, e) {
318
- if (t === e)
319
- return !0;
320
- if (t && e && typeof t == "object" && typeof e == "object") {
321
- if (t.constructor !== e.constructor)
322
- return !1;
323
- if (Array.isArray(t)) {
324
- const r = t.length;
325
- if (r !== e.length)
326
- return !1;
327
- for (let n = 0; n < r; n += 1)
328
- if (!M(t[n], e[n]))
329
- return !1;
330
- return !0;
331
- }
332
- if (t instanceof Map && e instanceof Map) {
333
- if (t.size !== e.size)
334
- return !1;
335
- const r = Array.from(t.entries());
336
- for (let n = 0; n < r.length; n += 1)
337
- if (!e.has(r[n][0]))
338
- return !1;
339
- for (let n = 0; n < r.length; n += 1) {
340
- const O = r[n];
341
- if (!M(O[1], e.get(O[0])))
342
- return !1;
343
- }
344
- return !0;
345
- }
346
- if (t instanceof Set && e instanceof Set) {
347
- if (t.size !== e.size)
348
- return !1;
349
- const r = Array.from(t.entries());
350
- for (let n = 0; n < r.length; n += 1)
351
- if (!e.has(r[n][0]))
352
- return !1;
353
- return !0;
354
- }
355
- if (ArrayBuffer.isView(t) && ArrayBuffer.isView(e)) {
356
- const r = t.length;
357
- if (r !== e.length)
358
- return !1;
359
- for (let n = 0; n < r; n += 1)
360
- if (t[n] !== e[n])
361
- return !1;
362
- return !0;
363
- }
364
- if (t.constructor === RegExp)
365
- return t.source === e.source && t.flags === e.flags;
366
- if (t.valueOf !== Object.prototype.valueOf)
367
- return t.valueOf() === e.valueOf();
368
- if (t.toString !== Object.prototype.toString)
369
- return t.toString() === e.toString();
370
- const u = Object.keys(t), i = u.length;
371
- if (i !== Object.keys(e).length)
372
- return !1;
373
- for (let r = 0; r < i; r += 1)
374
- if (!Object.prototype.hasOwnProperty.call(e, u[r]))
375
- return !1;
376
- for (let r = 0; r < i; r += 1) {
377
- const n = u[r];
378
- if (!M(t[n], e[n]))
379
- return !1;
380
- }
381
- return !0;
382
- }
383
- return t !== t && e !== e;
384
- }
385
- export {
386
- W as S,
387
- re as a,
388
- ce as f,
389
- M as i,
390
- q as r,
391
- F as s,
392
- ae as u
393
- };
@@ -1 +0,0 @@
1
- "use strict";const b=require("./index--8Zky9Oh.js"),j=require("react");function $(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const W=$(j),U=parseInt(W.version,10),P=Object.is;function Y(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let n=0,o=0;for(const r in t)if(n+=1,!P(t[r],e[r])||!(r in e))return!1;for(const r in e)o+=1;return n===o}var A={exports:{}},w={};var I;function F(){if(I)return w;I=1;var t=j;function e(f,a){return f===a&&(f!==0||1/f===1/a)||f!==f&&a!==a}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,u=t.useLayoutEffect,O=t.useDebugValue;function h(f,a){var i=a(),s=o({inst:{value:i,getSnapshot:a}}),c=s[0].inst,S=s[1];return u(function(){c.value=i,c.getSnapshot=a,E(c)&&S({inst:c})},[f,i,a]),r(function(){return E(c)&&S({inst:c}),f(function(){E(c)&&S({inst:c})})},[f]),O(i),i}function E(f){var a=f.getSnapshot;f=f.value;try{var i=a();return!n(f,i)}catch{return!0}}function d(f,a){return a()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:h;return w.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:l,w}var D={};var k;function J(){return k||(k=1,process.env.NODE_ENV!=="production"&&(function(){function t(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}function e(i,s){l||r.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var c=s();if(!f){var S=s();u(c,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}S=O({inst:{value:c,getSnapshot:s}});var p=S[0].inst,y=S[1];return E(function(){p.value=c,p.getSnapshot=s,n(p)&&y({inst:p})},[i,c,s]),h(function(){return n(p)&&y({inst:p}),i(function(){n(p)&&y({inst:p})})},[i]),d(c),c}function n(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!u(i,c)}catch{return!0}}function o(i,s){return s()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=j,u=typeof Object.is=="function"?Object.is:t,O=r.useState,h=r.useEffect,E=r.useLayoutEffect,d=r.useDebugValue,l=!1,f=!1,a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:e;D.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),D}var B;function G(){return B||(B=1,process.env.NODE_ENV==="production"?A.exports=F():A.exports=J()),A.exports}var N=G(),T={exports:{}},M={};var z;function Q(){if(z)return M;z=1;var t=j,e=G();function n(d,l){return d===l&&(d!==0||1/d===1/l)||d!==d&&l!==l}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,u=t.useRef,O=t.useEffect,h=t.useMemo,E=t.useDebugValue;return M.useSyncExternalStoreWithSelector=function(d,l,f,a,i){var s=u(null);if(s.current===null){var c={hasValue:!1,value:null};s.current=c}else c=s.current;s=h(function(){function p(_){if(!y){if(y=!0,m=_,_=a(_),i!==void 0&&c.hasValue){var v=c.value;if(i(v,_))return g=v}return g=_}if(v=g,o(m,_))return v;var R=a(_);return i!==void 0&&i(v,R)?(m=_,v):(m=_,g=R)}var y=!1,m,g,L=f===void 0?null:f;return[function(){return p(l())},L===null?void 0:function(){return p(L())}]},[l,f,a,i]);var S=r(d,s[0],s[1]);return O(function(){c.hasValue=!0,c.value=S},[S]),E(S),S},M}var C={};var H;function X(){return H||(H=1,process.env.NODE_ENV!=="production"&&(function(){function t(d,l){return d===l&&(d!==0||1/d===1/l)||d!==d&&l!==l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=j,n=G(),o=typeof Object.is=="function"?Object.is:t,r=n.useSyncExternalStore,u=e.useRef,O=e.useEffect,h=e.useMemo,E=e.useDebugValue;C.useSyncExternalStoreWithSelector=function(d,l,f,a,i){var s=u(null);if(s.current===null){var c={hasValue:!1,value:null};s.current=c}else c=s.current;s=h(function(){function p(_){if(!y){if(y=!0,m=_,_=a(_),i!==void 0&&c.hasValue){var v=c.value;if(i(v,_))return g=v}return g=_}if(v=g,o(m,_))return v;var R=a(_);return i!==void 0&&i(v,R)?(m=_,v):(m=_,g=R)}var y=!1,m,g,L=f===void 0?null:f;return[function(){return p(l())},L===null?void 0:function(){return p(L())}]},[l,f,a,i]);var S=r(d,s[0],s[1]);return O(function(){c.hasValue=!0,c.value=S},[S]),E(S),S},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),C}var K;function Z(){return K||(K=1,process.env.NODE_ENV==="production"?T.exports=Q():T.exports=X()),T.exports}var ee=Z();const te=U>=19,re=te?ne:ue;function q(t,e,n,o,r){return re(t,e,n,o,r)}function ne(t,e,n,o,r){const u=W.useCallback(()=>e(t.getSnapshot(),n,o,r),[t,e,n,o,r]);return N.useSyncExternalStore(t.subscribe,u,u)}function ue(t,e,n,o,r){return ee.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,u=>e(u,n,o,r))}const oe=()=>{};function ie(t,e,n){const o=b.useLazyRef(se,{store:t,selector:e}).current;o.effect=n,b.useOnMount(o.onMount)}function se(t){const{store:e,selector:n}=t;let o=n(e.state);const r={effect:oe,dispose:null,subscribe:()=>{r.dispose??=e.subscribe(u=>{const O=n(u);if(!Object.is(o,O)){const h=o;o=O,r.effect(h,O)}})},onMount:()=>(r.subscribe(),()=>{r.dispose?.(),r.dispose=null})};return r.subscribe(),r}class x{static create(e){return new x(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let r;for(;r=o.next(),!r.done;){if(n!==this.updateTick)return;const u=r.value;u(e)}}update(e){for(const n in e)if(!Object.is(this.state[n],e[n])){this.setState(b._extends({},this.state,e));return}}set(e,n){Object.is(this.state[e],n)||this.setState(b._extends({},this.state,{[e]:n}))}use=(e,n,o,r)=>q(this,e,n,o,r)}function V(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)){const r=t.length;if(r!==e.length)return!1;for(let u=0;u<r;u+=1)if(!V(t[u],e[u]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const r=Array.from(t.entries());for(let u=0;u<r.length;u+=1)if(!e.has(r[u][0]))return!1;for(let u=0;u<r.length;u+=1){const O=r[u];if(!V(O[1],e.get(O[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const r=Array.from(t.entries());for(let u=0;u<r.length;u+=1)if(!e.has(r[u][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const r=t.length;if(r!==e.length)return!1;for(let u=0;u<r;u+=1)if(t[u]!==e[u])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const n=Object.keys(t),o=n.length;if(o!==Object.keys(e).length)return!1;for(let r=0;r<o;r+=1)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(let r=0;r<o;r+=1){const u=n[r];if(!V(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}exports.Store=x;exports.fastObjectShallowCompare=Y;exports.isDeepEqual=V;exports.reactMajor=U;exports.shimExports=N;exports.useStore=q;exports.useStoreEffect=ie;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-DKS5Sz9e.js"),S=require("./date-utils-CFUUt6NL.js"),ne=require("./noAuth-JPA2o4dt.js");function Ee(s,t,e){if(e?.source){const n=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||n!==String(t)))return n.includes(".")?new i.NumericValue(n,"bigDecimal"):BigInt(n)}return t}const we=(s,t)=>i.collectBody(s,t).then(e=>(t?.utf8Encoder??S.toUtf8)(e)),Ie=(s,t)=>we(s,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(n){throw n?.name==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:e}),n}return{}}),xe=(s,t)=>{const e=(a,o)=>Object.keys(a).find(c=>c.toLowerCase()===o.toLowerCase()),n=a=>{let o=a;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},r=e(s.headers,"x-amzn-errortype");if(r!==void 0)return n(s.headers[r]);if(t&&typeof t=="object"){const a=e(t,"code");if(a&&t[a]!==void 0)return n(t[a]);if(t.__type!==void 0)return n(t.__type)}};class be extends i.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,Ee):await Ie(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const n=e!==null&&typeof e=="object",r=i.NormalizedSchema.of(t);if(n){if(r.isStructSchema()){const o=e,c=r.isUnionSchema(),p={};let l;const{jsonName:d}=this.settings;d&&(l={});let y;c&&(y=new i.UnionSerde(o,p));for(const[g,I]of r.structIterator()){let w=g;d&&(w=I.getMergedTraits().jsonName??w,l[w]=g),c&&y.mark(w),o[w]!=null&&(p[g]=this._read(I,o[w]))}if(c)y.writeUnknown();else if(typeof o.__type=="string")for(const[g,I]of Object.entries(o)){const w=d?l[g]??g:g;w in p||(p[w]=I)}return p}if(Array.isArray(e)&&r.isListSchema()){const o=r.getValueSchema(),c=[],p=!!r.getMergedTraits().sparse;for(const l of e)(p||l!=null)&&c.push(this._read(o,l));return c}if(r.isMapSchema()){const o=r.getValueSchema(),c={},p=!!r.getMergedTraits().sparse;for(const[l,d]of Object.entries(e))(p||d!=null)&&(c[l]=this._read(o,d));return c}}if(r.isBlobSchema()&&typeof e=="string")return S.fromBase64(e);const a=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof e=="string"&&a)return a==="application/json"||a.endsWith("+json")?i.LazyJsonString.from(e):e;if(r.isTimestampSchema()&&e!=null)switch(i.determineTimestampFormat(r,this.settings)){case 5:return S.parseRfc3339DateTimeWithOffset(e);case 6:return S.parseRfc7231DateTime(e);case 7:return S.parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(r.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(r.isBigDecimalSchema()&&e!=null){if(e instanceof i.NumericValue)return e;const o=e;return o.type==="bigDecimal"&&"string"in o?new i.NumericValue(o.string,o.type):new i.NumericValue(String(e),"bigDecimal")}if(r.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(r.isDocumentSchema())if(n){const o=Array.isArray(e)?[]:{};for(const[c,p]of Object.entries(e))p instanceof i.NumericValue?o[c]=p:o[c]=this._read(r,p);return o}else return structuredClone(e);return e}}const W="Ν";class Ce{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof i.NumericValue){const n=`${W+"nv"+this.counter++}_`+e.string;return this.values.set(`"${n}"`,e.string),n}if(typeof e=="bigint"){const n=e.toString(),r=`${W+"b"+this.counter++}_`+n;return this.values.set(`"${r}"`,n),r}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,n]of this.values)t=t.replace(e,n);return t}}class Pe extends i.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=i.NormalizedSchema.of(t),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=i.NormalizedSchema.of(t).getName(!0))}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const n=new Ce;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}_write(t,e,n){const r=e!==null&&typeof e=="object",a=i.NormalizedSchema.of(t);if(r){if(a.isStructSchema()){const o=e,c={},{jsonName:p}=this.settings;let l;p&&(l={});for(const[d,y]of a.structIterator()){const g=this._write(y,o[d],a);if(g!==void 0){let I=d;p&&(I=y.getMergedTraits().jsonName??d,l[d]=I),c[I]=g}}if(a.isUnionSchema()&&Object.keys(c).length===0){const{$unknown:d}=o;if(Array.isArray(d)){const[y,g]=d;c[y]=this._write(15,g)}}else if(typeof o.__type=="string")for(const[d,y]of Object.entries(o)){const g=p?l[d]??d:d;g in c||(c[g]=this._write(15,y))}return c}if(Array.isArray(e)&&a.isListSchema()){const o=a.getValueSchema(),c=[],p=!!a.getMergedTraits().sparse;for(const l of e)(p||l!=null)&&c.push(this._write(o,l));return c}if(a.isMapSchema()){const o=a.getValueSchema(),c={},p=!!a.getMergedTraits().sparse;for(const[l,d]of Object.entries(e))(p||d!=null)&&(c[l]=this._write(o,d));return c}if(e instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema()))return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??S.toBase64)(e);if(e instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema()))switch(i.determineTimestampFormat(a,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return S.dateToUtcString(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof i.NumericValue&&(this.useReplacer=!0)}if(!(e===null&&n?.isStructSchema())){if(a.isStringSchema()){if(typeof e>"u"&&a.isIdempotencyToken())return i.v4();const o=a.getMergedTraits().mediaType;return e!=null&&o&&(o==="application/json"||o.endsWith("+json"))?i.LazyJsonString.from(e):e}if(typeof e=="number"&&a.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&a.isBlobSchema())return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??S.toBase64)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),a.isDocumentSchema())if(r){const o=Array.isArray(e)?[]:{};for(const[c,p]of Object.entries(e))p instanceof i.NumericValue?(this.useReplacer=!0,o[c]=p):o[c]=this._write(a,p);return o}else return structuredClone(e);return e}}}class Re extends i.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new Pe(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new be(this.settings);return t.setSerdeContext(this.serdeContext),t}}class Ae extends ne.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:n,jsonCodec:r}){super({defaultNamespace:t}),this.serviceTarget=e,this.codec=r??new Re({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new i.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,e,n){const r=await super.serializeRequest(t,e,n);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(i.deref(t.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(t,e,n,r,a){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);const o=xe(n,r)??"Unknown",{errorSchema:c,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),l=i.NormalizedSchema.of(c),d=r.message??r.Message??"Unknown",y=i.TypeRegistry.for(c[1]).getErrorCtor(c)??Error,g=new y(d),I={};for(const[w,Se]of l.structIterator())r[w]!=null&&(I[w]=this.codec.createDeserializer().readObject(Se,r[w]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,I),this.mixin.decorateServiceException(Object.assign(g,p,{$fault:l.getMergedTraits().error,message:d},I),r)}}class _e extends Ae{constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:n,jsonCodec:r}){super({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:n,jsonCodec:r})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ke=async(s,t,e)=>({operation:i.getSmithyContext(t).operation,region:await i.normalizeProvider(s.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ve(s){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:s.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}function O(s){return{schemeId:"smithy.api#noAuth"}}const Te=s=>{const t=[];switch(s.operation){case"GetCredentialsForIdentity":{t.push(O());break}case"GetId":{t.push(O());break}case"GetOpenIdToken":{t.push(O());break}case"UnlinkIdentity":{t.push(O());break}default:t.push(ve(s))}return t},De=s=>{const t=i.resolveAwsSdkSigV4Config(s);return Object.assign(t,{authSchemePreference:i.normalizeProvider(s.authSchemePreference??[])})},Oe=s=>Object.assign(s,{useDualstackEndpoint:s.useDualstackEndpoint??!1,useFipsEndpoint:s.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),ae={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ne="3.980.0",Fe={version:Ne},ce=(s,t=!1)=>{if(t){for(const e of s.split("."))if(!ce(e))return!1;return!0}return!(!i.isValidHostLabel(s)||s.length<3||s.length>63||s!==s.toLowerCase()||i.isIpAddress(s))},K=":",$e="/",Me=s=>{const t=s.split(K);if(t.length<6)return null;const[e,n,r,a,o,...c]=t;if(e!=="arn"||n===""||r===""||c.join(K)==="")return null;const p=c.map(l=>l.split($e)).flat();return{partition:n,service:r,region:a,accountId:o,resourceId:p}},Ue=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],ze={partitions:Ue};let je=ze;const Ge=s=>{const{partitions:t}=je;for(const n of t){const{regions:r,outputs:a}=n;for(const[o,c]of Object.entries(r))if(o===s)return{...a,...c}}for(const n of t){const{regionRegex:r,outputs:a}=n;if(new RegExp(r).test(s))return{...a}}const e=t.find(n=>n.id==="aws");if(!e)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...e.outputs}},ue={isVirtualHostableS3Bucket:ce,parseArn:Me,partition:Ge};i.customEndpointFunctions.aws=ue;const pe="required",h="fn",m="argv",k="ref",Q=!0,Z="isSet",D="booleanEquals",_="error",C="endpoint",A="tree",N="PartitionResult",F="getAttr",v="stringEquals",X={[pe]:!1,type:"string"},Y={[pe]:!0,default:!1,type:"boolean"},ee={[k]:"Endpoint"},de={[h]:D,[m]:[{[k]:"UseFIPS"},!0]},le={[h]:D,[m]:[{[k]:"UseDualStack"},!0]},f={},T={[k]:"Region"},te={[h]:F,[m]:[{[k]:N},"supportsFIPS"]},fe={[k]:N},se={[h]:D,[m]:[!0,{[h]:F,[m]:[fe,"supportsDualStack"]}]},ie=[de],re=[le],oe=[T],Le={parameters:{Region:X,UseDualStack:Y,UseFIPS:Y,Endpoint:X},rules:[{conditions:[{[h]:Z,[m]:[ee]}],rules:[{conditions:ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:_},{conditions:re,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:_},{endpoint:{url:ee,properties:f,headers:f},type:C}],type:A},{conditions:[{[h]:Z,[m]:oe}],rules:[{conditions:[{[h]:"aws.partition",[m]:oe,assign:N}],rules:[{conditions:[de,le],rules:[{conditions:[{[h]:D,[m]:[Q,te]},se],rules:[{conditions:[{[h]:v,[m]:[T,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:f,headers:f},type:C},{conditions:[{[h]:v,[m]:[T,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:f,headers:f},type:C},{conditions:[{[h]:v,[m]:[T,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:f,headers:f},type:C},{conditions:[{[h]:v,[m]:[T,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:f,headers:f},type:C},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:f,headers:f},type:C}],type:A},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:_}],type:A},{conditions:ie,rules:[{conditions:[{[h]:D,[m]:[te,Q]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:f,headers:f},type:C}],type:A},{error:"FIPS is enabled but this partition does not support FIPS",type:_}],type:A},{conditions:re,rules:[{conditions:[se],rules:[{conditions:[{[h]:v,[m]:["aws",{[h]:F,[m]:[fe,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:f,headers:f},type:C},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:f,headers:f},type:C}],type:A},{error:"DualStack is enabled but this partition does not support DualStack",type:_}],type:A},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:f,headers:f},type:C}],type:A}],type:A},{error:"Invalid Configuration: Missing Region",type:_}]},He=Le,Je=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Be=(s,t={})=>Je.get(s,()=>i.resolveEndpoint(He,{endpointParams:s,logger:t.logger}));i.customEndpointFunctions.aws=ue;const Ve=s=>({apiVersion:"2014-06-30",base64Decoder:s?.base64Decoder??S.fromBase64,base64Encoder:s?.base64Encoder??S.toBase64,disableHostPrefix:s?.disableHostPrefix??!1,endpointProvider:s?.endpointProvider??Be,extensions:s?.extensions??[],httpAuthSchemeProvider:s?.httpAuthSchemeProvider??Te,httpAuthSchemes:s?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new i.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ne.NoAuthSigner}],logger:s?.logger??new i.NoOpLogger,protocol:s?.protocol??_e,protocolSettings:s?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:s?.serviceId??"Cognito Identity",urlParser:s?.urlParser??i.parseUrl,utf8Decoder:s?.utf8Decoder??S.fromUtf8,utf8Encoder:s?.utf8Encoder??S.toUtf8}),qe=s=>{const t=i.resolveDefaultsModeConfig(s),e=()=>t().then(i.loadConfigsForDefaultMode),n=Ve(s);return{...n,...s,runtime:"browser",defaultsMode:t,bodyLengthChecker:s?.bodyLengthChecker??i.calculateBodyLength,credentialDefaultProvider:s?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:s?.defaultUserAgentProvider??i.createDefaultUserAgentProvider({serviceId:n.serviceId,clientVersion:Fe.version}),maxAttempts:s?.maxAttempts??i.DEFAULT_MAX_ATTEMPTS,region:s?.region??i.invalidProvider("Region is missing"),requestHandler:S.FetchHttpHandler.create(s?.requestHandler??e),retryMode:s?.retryMode??(async()=>(await e()).retryMode||i.DEFAULT_RETRY_MODE),sha256:s?.sha256??i.Sha256,streamCollector:s?.streamCollector??S.streamCollector,useDualstackEndpoint:s?.useDualstackEndpoint??(()=>Promise.resolve(i.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:s?.useFipsEndpoint??(()=>Promise.resolve(i.DEFAULT_USE_FIPS_ENDPOINT))}},We=s=>{const t=s.httpAuthSchemes;let e=s.httpAuthSchemeProvider,n=s.credentials;return{setHttpAuthScheme(r){const a=t.findIndex(o=>o.schemeId===r.schemeId);a===-1?t.push(r):t.splice(a,1,r)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(r){e=r},httpAuthSchemeProvider(){return e},setCredentials(r){n=r},credentials(){return n}}},Ke=s=>({httpAuthSchemes:s.httpAuthSchemes(),httpAuthSchemeProvider:s.httpAuthSchemeProvider(),credentials:s.credentials()}),Qe=(s,t)=>{const e=Object.assign(i.getAwsRegionExtensionConfiguration(s),i.getDefaultExtensionConfiguration(s),i.getHttpHandlerExtensionConfiguration(s),We(s));return t.forEach(n=>n.configure(e)),Object.assign(s,i.resolveAwsRegionExtensionConfiguration(e),i.resolveDefaultRuntimeConfig(e),i.resolveHttpHandlerRuntimeConfig(e),Ke(e))};class Ze extends i.Client{config;constructor(...[t]){const e=qe(t||{});super(e),this.initConfig=e;const n=Oe(e),r=i.resolveUserAgentConfig(n),a=i.resolveRetryConfig(r),o=i.resolveRegionConfig(a),c=i.resolveHostHeaderConfig(o),p=i.resolveEndpointConfig(c),l=De(p),d=Qe(l,t?.extensions||[]);this.config=d,this.middlewareStack.use(i.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(i.getUserAgentPlugin(this.config)),this.middlewareStack.use(i.getRetryPlugin(this.config)),this.middlewareStack.use(i.getContentLengthPlugin(this.config)),this.middlewareStack.use(i.getHostHeaderPlugin(this.config)),this.middlewareStack.use(i.getLoggerPlugin(this.config)),this.middlewareStack.use(i.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(i.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ke,identityProviderConfigProvider:async y=>new i.DefaultIdentityProviderConfig({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(i.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class E extends i.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,E.prototype)}}class $ extends E{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,$.prototype)}}class M extends E{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,M.prototype)}}class U extends E{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class z extends E{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,z.prototype)}}class j extends E{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class G extends E{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,G.prototype)}}class L extends E{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class H extends E{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class J extends E{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}}class B extends E{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,B.prototype)}}class V extends E{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,V.prototype)}}const Xe="AccountId",Ye="AccessKeyId",ge="Credentials",et="ConcurrentModificationException",tt="CustomRoleArn",st="DeveloperUserAlreadyRegisteredException",it="Expiration",rt="ExternalServiceException",ot="GetCredentialsForIdentity",nt="GetCredentialsForIdentityInput",at="GetCredentialsForIdentityResponse",ct="GetId",ut="GetIdInput",pt="GetIdResponse",dt="InternalErrorException",q="IdentityId",lt="InvalidIdentityPoolConfigurationException",ft="InvalidParameterException",gt="IdentityPoolId",ht="IdentityProviderToken",he="Logins",mt="LimitExceededException",yt="LoginsMap",St="NotAuthorizedException",Et="ResourceConflictException",wt="ResourceNotFoundException",It="SecretKey",xt="SecretKeyString",bt="SessionToken",Ct="TooManyRequestsException",P="client",x="error",R="httpError",b="message",Pt="server",me="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",u="com.amazonaws.cognitoidentity";var Rt=[0,u,ht,8,0],At=[0,u,xt,8,0],_t=[-3,u,et,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(_t,V);var kt=[3,u,ge,0,[Ye,It,bt,it],[0,[()=>At,0],0,4]],vt=[-3,u,st,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(vt,B);var Tt=[-3,u,rt,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(Tt,H);var Dt=[3,u,nt,0,[q,he,tt],[0,[()=>ye,0],0],1],Ot=[3,u,at,0,[q,ge],[0,[()=>kt,0]]],Nt=[3,u,ut,0,[gt,Xe,he],[0,0,[()=>ye,0]],1],Ft=[3,u,pt,0,[q],[0]],$t=[-3,u,dt,{[x]:Pt},[b],[0]];i.TypeRegistry.for(u).registerError($t,$);var Mt=[-3,u,lt,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(Mt,J);var Ut=[-3,u,ft,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(Ut,M);var zt=[-3,u,mt,{[x]:P,[R]:400},[b],[0]];i.TypeRegistry.for(u).registerError(zt,U);var jt=[-3,u,St,{[x]:P,[R]:403},[b],[0]];i.TypeRegistry.for(u).registerError(jt,z);var Gt=[-3,u,Et,{[x]:P,[R]:409},[b],[0]];i.TypeRegistry.for(u).registerError(Gt,j);var Lt=[-3,u,wt,{[x]:P,[R]:404},[b],[0]];i.TypeRegistry.for(u).registerError(Lt,L);var Ht=[-3,u,Ct,{[x]:P,[R]:429},[b],[0]];i.TypeRegistry.for(u).registerError(Ht,G);var Jt=[-3,me,"CognitoIdentityServiceException",0,[],[]];i.TypeRegistry.for(me).registerError(Jt,E);var ye=[2,u,yt,0,[0,0],[()=>Rt,0]],Bt=[9,u,ot,0,()=>Dt,()=>Ot],Vt=[9,u,ct,0,()=>Nt,()=>Ft];class qt extends i.Command.classBuilder().ep(ae).m(function(t,e,n,r){return[i.getEndpointPlugin(n,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Bt).build(){}class Wt extends i.Command.classBuilder().ep(ae).m(function(t,e,n,r){return[i.getEndpointPlugin(n,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Vt).build(){}exports.CognitoIdentityClient=Ze;exports.GetCredentialsForIdentityCommand=qt;exports.GetIdCommand=Wt;