xtreme-ui 0.0.4 → 0.0.5

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 (36) hide show
  1. package/dist/components/base/Button/Button.d.ts +0 -1
  2. package/dist/components/base/Button/types.d.ts +13 -10
  3. package/dist/components/base/Icon/Icon.d.ts +0 -1
  4. package/dist/components/base/Icon/types.d.ts +16 -6
  5. package/dist/components/base/ProgressBar/ProgressBar.d.ts +0 -1
  6. package/dist/components/base/ProgressBar/types.d.ts.map +1 -1
  7. package/dist/components/base/Textfield/Textfield.d.ts +0 -1
  8. package/dist/components/base/Textfield/types.d.ts +3 -2
  9. package/dist/components/base/Textfield/types.d.ts.map +1 -1
  10. package/dist/components/layout/Navigation/Navigation.d.ts +0 -1
  11. package/dist/components/layout/Navigation/types.d.ts.map +1 -1
  12. package/dist/components/layout/Sider/Sider.d.ts +0 -1
  13. package/dist/components/layout/Sider/types.d.ts.map +1 -1
  14. package/dist/index.d.ts +7 -1
  15. package/dist/index.es.js +417 -414
  16. package/dist/index.umd.js +9 -9
  17. package/dist/manifest.json +2 -2
  18. package/dist/style.css +1 -1
  19. package/dist/utils/function/mergeRefs.d.ts +0 -1
  20. package/dist/utils/function/string.d.ts +2 -0
  21. package/dist/utils/helper/domHelper.d.ts +0 -1
  22. package/dist/utils/index.d.ts +2 -1
  23. package/package.json +33 -39
  24. package/dist/components/base/Button/Button.d.ts.map +0 -1
  25. package/dist/components/base/Button/types.d.ts.map +0 -1
  26. package/dist/components/base/Icon/Icon.d.ts.map +0 -1
  27. package/dist/components/base/Icon/types.d.ts.map +0 -1
  28. package/dist/components/base/ProgressBar/ProgressBar.d.ts.map +0 -1
  29. package/dist/components/base/Textfield/Textfield.d.ts.map +0 -1
  30. package/dist/components/index.d.ts +0 -8
  31. package/dist/components/index.d.ts.map +0 -1
  32. package/dist/components/layout/Navigation/Navigation.d.ts.map +0 -1
  33. package/dist/components/layout/Sider/Sider.d.ts.map +0 -1
  34. package/dist/utils/function/mergeRefs.d.ts.map +0 -1
  35. package/dist/utils/helper/domHelper.d.ts.map +0 -1
  36. package/dist/utils/index.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import ar, { forwardRef as B, useRef as Lr, useMemo as Wr } from "react";
2
- const he = typeof window < "u", V = he ? window : void 0, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", Jn = (r, n) => parseInt(Te(r, n).replace(/px/g, "")), Xn = (r, n) => {
1
+ import ar, { forwardRef as U, useRef as Ar, useMemo as Wr } from "react";
2
+ const he = typeof window < "u", Y = he ? window : void 0, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", aa = (r, n) => parseInt(Te(r, n).replace(/px/g, "")), ia = (r, n) => {
3
3
  const i = parseInt(Te(r, n).replace(/vh/g, ""));
4
- return [((V == null ? void 0 : V.innerHeight) ?? 0) * i / 100, i];
5
- }, Hn = (r, n) => {
4
+ return [((Y == null ? void 0 : Y.innerHeight) ?? 0) * i / 100, i];
5
+ }, oa = (r, n) => {
6
6
  const i = parseInt(Te(r, n).replace(/vw/g, ""));
7
- return [((V == null ? void 0 : V.innerWidth) ?? 0) * i / 100, i];
8
- }, Kn = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", Zn = (r) => new Promise((n) => {
7
+ return [((Y == null ? void 0 : Y.innerWidth) ?? 0) * i / 100, i];
8
+ }, sa = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ca = (r) => new Promise((n) => {
9
9
  let i = document.querySelector(r);
10
10
  if (i)
11
11
  return n(i);
@@ -13,23 +13,27 @@ const he = typeof window < "u", V = he ? window : void 0, Te = (r, n) => he ? ge
13
13
  i = document.querySelector(r), i && (n(i), o.disconnect());
14
14
  });
15
15
  o.observe(document.body, { childList: !0, subtree: !0 });
16
- }), Qn = (r, n) => {
16
+ }), la = (r, n) => {
17
17
  var i;
18
18
  (i = n == null ? void 0 : n.forEach) == null || i.call(n, (o) => {
19
- let l;
20
- new MutationObserver((p) => {
21
- var c;
22
- document.querySelector(o) && (l = document.querySelector(o)), (c = p == null ? void 0 : p.forEach) == null || c.call(p, (_) => {
23
- _.type === "childList" && (Array.from(_.addedNodes).indexOf(l) > -1 && r(l, "added", _), Array.from(_.removedNodes).indexOf(l) > -1 && r(l, "removed", _));
19
+ let c;
20
+ new MutationObserver((_) => {
21
+ var l;
22
+ document.querySelector(o) && (c = document.querySelector(o)), (l = _ == null ? void 0 : _.forEach) == null || l.call(_, (m) => {
23
+ m.type === "childList" && (Array.from(m.addedNodes).indexOf(c) > -1 && r(c, "added", m), Array.from(m.removedNodes).indexOf(c) > -1 && r(c, "removed", m));
24
24
  });
25
25
  }).observe(document.body, { childList: !0, subtree: !0 });
26
26
  });
27
- };
27
+ }, qr = (r) => (n) => {
28
+ r.forEach((i) => {
29
+ typeof i == "function" ? i(n) : i != null && (i.current = n);
30
+ });
31
+ }, zr = (r) => isNaN(r) || r < 0 || r > 1114111 || Math.floor(r) !== r ? "" : String.fromCodePoint(r), Mr = (r) => zr(parseInt(`0x${r}`, 16));
28
32
  var ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
29
- function qr(r) {
33
+ function Vr(r) {
30
34
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
31
35
  }
32
- var me = { exports: {} }, K = {};
36
+ var ye = { exports: {} }, K = {};
33
37
  /**
34
38
  * @license React
35
39
  * react-jsx-runtime.production.min.js
@@ -40,22 +44,22 @@ var me = { exports: {} }, K = {};
40
44
  * LICENSE file in the root directory of this source tree.
41
45
  */
42
46
  var Ge;
43
- function Mr() {
47
+ function Yr() {
44
48
  if (Ge)
45
49
  return K;
46
50
  Ge = 1;
47
- var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
48
- function p(d, c, _) {
49
- var m, b = {}, S = null, C = null;
50
- _ !== void 0 && (S = "" + _), c.key !== void 0 && (S = "" + c.key), c.ref !== void 0 && (C = c.ref);
51
- for (m in c)
52
- o.call(c, m) && !g.hasOwnProperty(m) && (b[m] = c[m]);
51
+ var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
52
+ function _(d, l, m) {
53
+ var y, b = {}, x = null, w = null;
54
+ m !== void 0 && (x = "" + m), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (w = l.ref);
55
+ for (y in l)
56
+ o.call(l, y) && !g.hasOwnProperty(y) && (b[y] = l[y]);
53
57
  if (d && d.defaultProps)
54
- for (m in c = d.defaultProps, c)
55
- b[m] === void 0 && (b[m] = c[m]);
56
- return { $$typeof: n, type: d, key: S, ref: C, props: b, _owner: l.current };
58
+ for (y in l = d.defaultProps, l)
59
+ b[y] === void 0 && (b[y] = l[y]);
60
+ return { $$typeof: n, type: d, key: x, ref: w, props: b, _owner: c.current };
57
61
  }
58
- return K.Fragment = i, K.jsx = p, K.jsxs = p, K;
62
+ return K.Fragment = i, K.jsx = _, K.jsxs = _, K;
59
63
  }
60
64
  var Z = {};
61
65
  /**
@@ -68,17 +72,17 @@ var Z = {};
68
72
  * LICENSE file in the root directory of this source tree.
69
73
  */
70
74
  var Je;
71
- function Yr() {
75
+ function Ur() {
72
76
  return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
73
- var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), q = Symbol.iterator, M = "@@iterator";
74
- function Y(e) {
77
+ var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), W = Symbol.iterator, q = "@@iterator";
78
+ function z(e) {
75
79
  if (e === null || typeof e != "object")
76
80
  return null;
77
- var t = q && e[q] || e[M];
81
+ var t = W && e[W] || e[q];
78
82
  return typeof t == "function" ? t : null;
79
83
  }
80
- var x = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
81
- function h(e) {
84
+ var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
+ function T(e) {
82
86
  {
83
87
  for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
84
88
  a[s - 1] = arguments[s];
@@ -87,18 +91,18 @@ function Yr() {
87
91
  }
88
92
  function oe(e, t, a) {
89
93
  {
90
- var s = x.ReactDebugCurrentFrame, v = s.getStackAddendum();
91
- v !== "" && (t += "%s", a = a.concat([v]));
92
- var y = a.map(function(f) {
94
+ var s = j.ReactDebugCurrentFrame, p = s.getStackAddendum();
95
+ p !== "" && (t += "%s", a = a.concat([p]));
96
+ var v = a.map(function(f) {
93
97
  return String(f);
94
98
  });
95
- y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
99
+ v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
96
100
  }
97
101
  }
98
- var se = !1, G = !1, T = !1, k = !1, F = !1, J;
102
+ var se = !1, G = !1, S = !1, P = !1, F = !1, J;
99
103
  J = Symbol.for("react.module.reference");
100
104
  function fr(e) {
101
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e === l || e === _ || e === m || k || e === C || se || G || T || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === b || e.$$typeof === p || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
105
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e === c || e === m || e === y || P || e === w || se || G || S || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === l || // This needs to include all possible module reference object
102
106
  // types supported by any Flight configuration anywhere since
103
107
  // we don't know which Flight build this will end up being used
104
108
  // with.
@@ -108,8 +112,8 @@ function Yr() {
108
112
  var s = e.displayName;
109
113
  if (s)
110
114
  return s;
111
- var v = t.displayName || t.name || "";
112
- return v !== "" ? a + "(" + v + ")" : a;
115
+ var p = t.displayName || t.name || "";
116
+ return p !== "" ? a + "(" + p + ")" : a;
113
117
  }
114
118
  function Ee(e) {
115
119
  return e.displayName || "Context";
@@ -117,7 +121,7 @@ function Yr() {
117
121
  function N(e) {
118
122
  if (e == null)
119
123
  return null;
120
- if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
124
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
121
125
  return e.displayName || e.name || null;
122
126
  if (typeof e == "string")
123
127
  return e;
@@ -128,11 +132,11 @@ function Yr() {
128
132
  return "Portal";
129
133
  case g:
130
134
  return "Profiler";
131
- case l:
135
+ case c:
132
136
  return "StrictMode";
133
- case _:
134
- return "Suspense";
135
137
  case m:
138
+ return "Suspense";
139
+ case y:
136
140
  return "SuspenseList";
137
141
  }
138
142
  if (typeof e == "object")
@@ -140,18 +144,18 @@ function Yr() {
140
144
  case d:
141
145
  var t = e;
142
146
  return Ee(t) + ".Consumer";
143
- case p:
147
+ case _:
144
148
  var a = e;
145
149
  return Ee(a._context) + ".Provider";
146
- case c:
150
+ case l:
147
151
  return dr(e, e.render, "ForwardRef");
148
152
  case b:
149
153
  var s = e.displayName || null;
150
154
  return s !== null ? s : N(e.type) || "Memo";
151
- case S: {
152
- var v = e, y = v._payload, f = v._init;
155
+ case x: {
156
+ var p = e, v = p._payload, f = p._init;
153
157
  try {
154
- return N(f(y));
158
+ return N(f(v));
155
159
  } catch {
156
160
  return null;
157
161
  }
@@ -159,14 +163,14 @@ function Yr() {
159
163
  }
160
164
  return null;
161
165
  }
162
- var A = Object.assign, X = 0, Se, xe, Oe, Ce, we, Pe, ke;
166
+ var L = Object.assign, X = 0, xe, je, Oe, we, Ce, Pe, ke;
163
167
  function Ne() {
164
168
  }
165
169
  Ne.__reactDisabledLog = !0;
166
- function vr() {
170
+ function pr() {
167
171
  {
168
172
  if (X === 0) {
169
- Se = console.log, xe = console.info, Oe = console.warn, Ce = console.error, we = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
173
+ xe = console.log, je = console.info, Oe = console.warn, we = console.error, Ce = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
170
174
  var e = {
171
175
  configurable: !0,
172
176
  enumerable: !0,
@@ -186,7 +190,7 @@ function Yr() {
186
190
  X++;
187
191
  }
188
192
  }
189
- function pr() {
193
+ function _r() {
190
194
  {
191
195
  if (X--, X === 0) {
192
196
  var e = {
@@ -195,50 +199,50 @@ function Yr() {
195
199
  writable: !0
196
200
  };
197
201
  Object.defineProperties(console, {
198
- log: A({}, e, {
199
- value: Se
200
- }),
201
- info: A({}, e, {
202
+ log: L({}, e, {
202
203
  value: xe
203
204
  }),
204
- warn: A({}, e, {
205
- value: Oe
205
+ info: L({}, e, {
206
+ value: je
206
207
  }),
207
- error: A({}, e, {
208
- value: Ce
208
+ warn: L({}, e, {
209
+ value: Oe
209
210
  }),
210
- group: A({}, e, {
211
+ error: L({}, e, {
211
212
  value: we
212
213
  }),
213
- groupCollapsed: A({}, e, {
214
+ group: L({}, e, {
215
+ value: Ce
216
+ }),
217
+ groupCollapsed: L({}, e, {
214
218
  value: Pe
215
219
  }),
216
- groupEnd: A({}, e, {
220
+ groupEnd: L({}, e, {
217
221
  value: ke
218
222
  })
219
223
  });
220
224
  }
221
- X < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
225
+ X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
222
226
  }
223
227
  }
224
- var le = x.ReactCurrentDispatcher, ce;
228
+ var ce = j.ReactCurrentDispatcher, le;
225
229
  function ee(e, t, a) {
226
230
  {
227
- if (ce === void 0)
231
+ if (le === void 0)
228
232
  try {
229
233
  throw Error();
230
- } catch (v) {
231
- var s = v.stack.trim().match(/\n( *(at )?)/);
232
- ce = s && s[1] || "";
234
+ } catch (p) {
235
+ var s = p.stack.trim().match(/\n( *(at )?)/);
236
+ le = s && s[1] || "";
233
237
  }
234
238
  return `
235
- ` + ce + e;
239
+ ` + le + e;
236
240
  }
237
241
  }
238
242
  var ue = !1, re;
239
243
  {
240
- var yr = typeof WeakMap == "function" ? WeakMap : Map;
241
- re = new yr();
244
+ var vr = typeof WeakMap == "function" ? WeakMap : Map;
245
+ re = new vr();
242
246
  }
243
247
  function $e(e, t) {
244
248
  if (!e || ue)
@@ -250,10 +254,10 @@ function Yr() {
250
254
  }
251
255
  var s;
252
256
  ue = !0;
253
- var v = Error.prepareStackTrace;
257
+ var p = Error.prepareStackTrace;
254
258
  Error.prepareStackTrace = void 0;
255
- var y;
256
- y = le.current, le.current = null, vr();
259
+ var v;
260
+ v = ce.current, ce.current = null, pr();
257
261
  try {
258
262
  if (t) {
259
263
  var f = function() {
@@ -290,31 +294,31 @@ function Yr() {
290
294
  if ($ && s && typeof $.stack == "string") {
291
295
  for (var u = $.stack.split(`
292
296
  `), O = s.stack.split(`
293
- `), j = u.length - 1, E = O.length - 1; j >= 1 && E >= 0 && u[j] !== O[E]; )
297
+ `), R = u.length - 1, E = O.length - 1; R >= 1 && E >= 0 && u[R] !== O[E]; )
294
298
  E--;
295
- for (; j >= 1 && E >= 0; j--, E--)
296
- if (u[j] !== O[E]) {
297
- if (j !== 1 || E !== 1)
299
+ for (; R >= 1 && E >= 0; R--, E--)
300
+ if (u[R] !== O[E]) {
301
+ if (R !== 1 || E !== 1)
298
302
  do
299
- if (j--, E--, E < 0 || u[j] !== O[E]) {
300
- var w = `
301
- ` + u[j].replace(" at new ", " at ");
302
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, w), w;
303
+ if (R--, E--, E < 0 || u[R] !== O[E]) {
304
+ var C = `
305
+ ` + u[R].replace(" at new ", " at ");
306
+ return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, C), C;
303
307
  }
304
- while (j >= 1 && E >= 0);
308
+ while (R >= 1 && E >= 0);
305
309
  break;
306
310
  }
307
311
  }
308
312
  } finally {
309
- ue = !1, le.current = y, pr(), Error.prepareStackTrace = v;
313
+ ue = !1, ce.current = v, _r(), Error.prepareStackTrace = p;
310
314
  }
311
- var U = e ? e.displayName || e.name : "", Be = U ? ee(U) : "";
315
+ var V = e ? e.displayName || e.name : "", Be = V ? ee(V) : "";
312
316
  return typeof e == "function" && re.set(e, Be), Be;
313
317
  }
314
- function _r(e, t, a) {
318
+ function gr(e, t, a) {
315
319
  return $e(e, !1);
316
320
  }
317
- function gr(e) {
321
+ function mr(e) {
318
322
  var t = e.prototype;
319
323
  return !!(t && t.isReactComponent);
320
324
  }
@@ -322,32 +326,32 @@ function Yr() {
322
326
  if (e == null)
323
327
  return "";
324
328
  if (typeof e == "function")
325
- return $e(e, gr(e));
329
+ return $e(e, mr(e));
326
330
  if (typeof e == "string")
327
331
  return ee(e);
328
332
  switch (e) {
329
- case _:
330
- return ee("Suspense");
331
333
  case m:
334
+ return ee("Suspense");
335
+ case y:
332
336
  return ee("SuspenseList");
333
337
  }
334
338
  if (typeof e == "object")
335
339
  switch (e.$$typeof) {
336
- case c:
337
- return _r(e.render);
340
+ case l:
341
+ return gr(e.render);
338
342
  case b:
339
343
  return te(e.type, t, a);
340
- case S: {
341
- var s = e, v = s._payload, y = s._init;
344
+ case x: {
345
+ var s = e, p = s._payload, v = s._init;
342
346
  try {
343
- return te(y(v), t, a);
347
+ return te(v(p), t, a);
344
348
  } catch {
345
349
  }
346
350
  }
347
351
  }
348
352
  return "";
349
353
  }
350
- var ne = Object.prototype.hasOwnProperty, De = {}, Ie = x.ReactDebugCurrentFrame;
354
+ var ne = Object.prototype.hasOwnProperty, De = {}, Ie = j.ReactDebugCurrentFrame;
351
355
  function ae(e) {
352
356
  if (e) {
353
357
  var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
@@ -355,11 +359,11 @@ function Yr() {
355
359
  } else
356
360
  Ie.setExtraStackFrame(null);
357
361
  }
358
- function mr(e, t, a, s, v) {
362
+ function yr(e, t, a, s, p) {
359
363
  {
360
- var y = Function.call.bind(ne);
364
+ var v = Function.call.bind(ne);
361
365
  for (var f in e)
362
- if (y(e, f)) {
366
+ if (v(e, f)) {
363
367
  var u = void 0;
364
368
  try {
365
369
  if (typeof e[f] != "function") {
@@ -367,10 +371,10 @@ function Yr() {
367
371
  throw O.name = "Invariant Violation", O;
368
372
  }
369
373
  u = e[f](t, f, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
370
- } catch (j) {
371
- u = j;
374
+ } catch (R) {
375
+ u = R;
372
376
  }
373
- u && !(u instanceof Error) && (ae(v), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", a, f, typeof u), ae(null)), u instanceof Error && !(u.message in De) && (De[u.message] = !0, ae(v), h("Failed %s type: %s", a, u.message), ae(null));
377
+ u && !(u instanceof Error) && (ae(p), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", a, f, typeof u), ae(null)), u instanceof Error && !(u.message in De) && (De[u.message] = !0, ae(p), T("Failed %s type: %s", a, u.message), ae(null));
374
378
  }
375
379
  }
376
380
  }
@@ -394,16 +398,16 @@ function Yr() {
394
398
  function Fe(e) {
395
399
  return "" + e;
396
400
  }
397
- function Ae(e) {
401
+ function Le(e) {
398
402
  if (Tr(e))
399
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Fe(e);
403
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Fe(e);
400
404
  }
401
- var H = x.ReactCurrentOwner, jr = {
405
+ var H = j.ReactCurrentOwner, Sr = {
402
406
  key: !0,
403
407
  ref: !0,
404
408
  __self: !0,
405
409
  __source: !0
406
- }, Le, We, de;
410
+ }, Ae, We, de;
407
411
  de = {};
408
412
  function Rr(e) {
409
413
  if (ne.call(e, "ref")) {
@@ -421,16 +425,16 @@ function Yr() {
421
425
  }
422
426
  return e.key !== void 0;
423
427
  }
424
- function Sr(e, t) {
428
+ function xr(e, t) {
425
429
  if (typeof e.ref == "string" && H.current && t && H.current.stateNode !== t) {
426
430
  var a = N(H.current.type);
427
- de[a] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(H.current.type), e.ref), de[a] = !0);
431
+ de[a] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(H.current.type), e.ref), de[a] = !0);
428
432
  }
429
433
  }
430
- function xr(e, t) {
434
+ function jr(e, t) {
431
435
  {
432
436
  var a = function() {
433
- Le || (Le = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
437
+ Ae || (Ae = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
434
438
  };
435
439
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
436
440
  get: a,
@@ -441,7 +445,7 @@ function Yr() {
441
445
  function Or(e, t) {
442
446
  {
443
447
  var a = function() {
444
- We || (We = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
448
+ We || (We = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
445
449
  };
446
450
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
447
451
  get: a,
@@ -449,7 +453,7 @@ function Yr() {
449
453
  });
450
454
  }
451
455
  }
452
- var Cr = function(e, t, a, s, v, y, f) {
456
+ var wr = function(e, t, a, s, p, v, f) {
453
457
  var u = {
454
458
  // This tag allows us to uniquely identify this as a React Element
455
459
  $$typeof: n,
@@ -459,7 +463,7 @@ function Yr() {
459
463
  ref: a,
460
464
  props: f,
461
465
  // Record the component responsible for creating this element.
462
- _owner: y
466
+ _owner: v
463
467
  };
464
468
  return u._store = {}, Object.defineProperty(u._store, "validated", {
465
469
  configurable: !1,
@@ -475,44 +479,44 @@ function Yr() {
475
479
  configurable: !1,
476
480
  enumerable: !1,
477
481
  writable: !1,
478
- value: v
482
+ value: p
479
483
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
480
484
  };
481
- function wr(e, t, a, s, v) {
485
+ function Cr(e, t, a, s, p) {
482
486
  {
483
- var y, f = {}, u = null, O = null;
484
- a !== void 0 && (Ae(a), u = "" + a), Er(t) && (Ae(t.key), u = "" + t.key), Rr(t) && (O = t.ref, Sr(t, v));
485
- for (y in t)
486
- ne.call(t, y) && !jr.hasOwnProperty(y) && (f[y] = t[y]);
487
+ var v, f = {}, u = null, O = null;
488
+ a !== void 0 && (Le(a), u = "" + a), Er(t) && (Le(t.key), u = "" + t.key), Rr(t) && (O = t.ref, xr(t, p));
489
+ for (v in t)
490
+ ne.call(t, v) && !Sr.hasOwnProperty(v) && (f[v] = t[v]);
487
491
  if (e && e.defaultProps) {
488
- var j = e.defaultProps;
489
- for (y in j)
490
- f[y] === void 0 && (f[y] = j[y]);
492
+ var R = e.defaultProps;
493
+ for (v in R)
494
+ f[v] === void 0 && (f[v] = R[v]);
491
495
  }
492
496
  if (u || O) {
493
497
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
494
- u && xr(f, E), O && Or(f, E);
498
+ u && jr(f, E), O && Or(f, E);
495
499
  }
496
- return Cr(e, u, O, v, s, H.current, f);
500
+ return wr(e, u, O, p, s, H.current, f);
497
501
  }
498
502
  }
499
- var ve = x.ReactCurrentOwner, qe = x.ReactDebugCurrentFrame;
500
- function z(e) {
503
+ var pe = j.ReactCurrentOwner, qe = j.ReactDebugCurrentFrame;
504
+ function M(e) {
501
505
  if (e) {
502
506
  var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
503
507
  qe.setExtraStackFrame(a);
504
508
  } else
505
509
  qe.setExtraStackFrame(null);
506
510
  }
507
- var pe;
508
- pe = !1;
509
- function ye(e) {
511
+ var _e;
512
+ _e = !1;
513
+ function ve(e) {
510
514
  return typeof e == "object" && e !== null && e.$$typeof === n;
511
515
  }
512
- function Me() {
516
+ function ze() {
513
517
  {
514
- if (ve.current) {
515
- var e = N(ve.current.type);
518
+ if (pe.current) {
519
+ var e = N(pe.current.type);
516
520
  if (e)
517
521
  return `
518
522
 
@@ -532,10 +536,10 @@ Check your code at ` + t + ":" + a + ".";
532
536
  return "";
533
537
  }
534
538
  }
535
- var Ye = {};
539
+ var Me = {};
536
540
  function kr(e) {
537
541
  {
538
- var t = Me();
542
+ var t = ze();
539
543
  if (!t) {
540
544
  var a = typeof e == "string" ? e : e.displayName || e.name;
541
545
  a && (t = `
@@ -545,35 +549,35 @@ Check the top-level render call using <` + a + ">.");
545
549
  return t;
546
550
  }
547
551
  }
548
- function ze(e, t) {
552
+ function Ve(e, t) {
549
553
  {
550
554
  if (!e._store || e._store.validated || e.key != null)
551
555
  return;
552
556
  e._store.validated = !0;
553
557
  var a = kr(t);
554
- if (Ye[a])
558
+ if (Me[a])
555
559
  return;
556
- Ye[a] = !0;
560
+ Me[a] = !0;
557
561
  var s = "";
558
- e && e._owner && e._owner !== ve.current && (s = " It was passed a child from " + N(e._owner.type) + "."), z(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), z(null);
562
+ e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), M(null);
559
563
  }
560
564
  }
561
- function Ue(e, t) {
565
+ function Ye(e, t) {
562
566
  {
563
567
  if (typeof e != "object")
564
568
  return;
565
569
  if (fe(e))
566
570
  for (var a = 0; a < e.length; a++) {
567
571
  var s = e[a];
568
- ye(s) && ze(s, t);
572
+ ve(s) && Ve(s, t);
569
573
  }
570
- else if (ye(e))
574
+ else if (ve(e))
571
575
  e._store && (e._store.validated = !0);
572
576
  else if (e) {
573
- var v = Y(e);
574
- if (typeof v == "function" && v !== e.entries)
575
- for (var y = v.call(e), f; !(f = y.next()).done; )
576
- ye(f.value) && ze(f.value, t);
577
+ var p = z(e);
578
+ if (typeof p == "function" && p !== e.entries)
579
+ for (var v = p.call(e), f; !(f = v.next()).done; )
580
+ ve(f.value) && Ve(f.value, t);
577
581
  }
578
582
  }
579
583
  }
@@ -585,7 +589,7 @@ Check the top-level render call using <` + a + ">.");
585
589
  var a;
586
590
  if (typeof t == "function")
587
591
  a = t.propTypes;
588
- else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
592
+ else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
589
593
  // Inner props are checked in the reconciler.
590
594
  t.$$typeof === b))
591
595
  a = t.propTypes;
@@ -593,13 +597,13 @@ Check the top-level render call using <` + a + ">.");
593
597
  return;
594
598
  if (a) {
595
599
  var s = N(t);
596
- mr(a, e.props, "prop", s, e);
597
- } else if (t.PropTypes !== void 0 && !pe) {
598
- pe = !0;
599
- var v = N(t);
600
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
600
+ yr(a, e.props, "prop", s, e);
601
+ } else if (t.PropTypes !== void 0 && !_e) {
602
+ _e = !0;
603
+ var p = N(t);
604
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
601
605
  }
602
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
606
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
603
607
  }
604
608
  }
605
609
  function $r(e) {
@@ -607,55 +611,55 @@ Check the top-level render call using <` + a + ">.");
607
611
  for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
608
612
  var s = t[a];
609
613
  if (s !== "children" && s !== "key") {
610
- z(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), z(null);
614
+ M(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), M(null);
611
615
  break;
612
616
  }
613
617
  }
614
- e.ref !== null && (z(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
618
+ e.ref !== null && (M(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
615
619
  }
616
620
  }
617
- function Ve(e, t, a, s, v, y) {
621
+ function Ue(e, t, a, s, p, v) {
618
622
  {
619
623
  var f = fr(e);
620
624
  if (!f) {
621
625
  var u = "";
622
626
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
623
- var O = Pr(v);
624
- O ? u += O : u += Me();
625
- var j;
626
- e === null ? j = "null" : fe(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (N(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, u);
627
+ var O = Pr(p);
628
+ O ? u += O : u += ze();
629
+ var R;
630
+ e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, u);
627
631
  }
628
- var E = wr(e, t, a, v, y);
632
+ var E = Cr(e, t, a, p, v);
629
633
  if (E == null)
630
634
  return E;
631
635
  if (f) {
632
- var w = t.children;
633
- if (w !== void 0)
636
+ var C = t.children;
637
+ if (C !== void 0)
634
638
  if (s)
635
- if (fe(w)) {
636
- for (var U = 0; U < w.length; U++)
637
- Ue(w[U], e);
638
- Object.freeze && Object.freeze(w);
639
+ if (fe(C)) {
640
+ for (var V = 0; V < C.length; V++)
641
+ Ye(C[V], e);
642
+ Object.freeze && Object.freeze(C);
639
643
  } else
640
- h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
644
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
641
645
  else
642
- Ue(w, e);
646
+ Ye(C, e);
643
647
  }
644
648
  return e === o ? $r(E) : Nr(E), E;
645
649
  }
646
650
  }
647
651
  function Dr(e, t, a) {
648
- return Ve(e, t, a, !0);
652
+ return Ue(e, t, a, !0);
649
653
  }
650
654
  function Ir(e, t, a) {
651
- return Ve(e, t, a, !1);
655
+ return Ue(e, t, a, !1);
652
656
  }
653
- var Fr = Ir, Ar = Dr;
654
- Z.Fragment = o, Z.jsx = Fr, Z.jsxs = Ar;
657
+ var Fr = Ir, Lr = Dr;
658
+ Z.Fragment = o, Z.jsx = Fr, Z.jsxs = Lr;
655
659
  }()), Z;
656
660
  }
657
- process.env.NODE_ENV === "production" ? me.exports = Mr() : me.exports = Yr();
658
- var R = me.exports;
661
+ process.env.NODE_ENV === "production" ? ye.exports = Yr() : ye.exports = Ur();
662
+ var h = ye.exports;
659
663
  function ir(r) {
660
664
  var n, i, o = "";
661
665
  if (typeof r == "string" || typeof r == "number")
@@ -669,59 +673,59 @@ function ir(r) {
669
673
  r[n] && (o && (o += " "), o += n);
670
674
  return o;
671
675
  }
672
- function I() {
676
+ function B() {
673
677
  for (var r, n, i = 0, o = ""; i < arguments.length; )
674
678
  (r = arguments[i++]) && (n = ir(r)) && (o && (o += " "), o += n);
675
679
  return o;
676
680
  }
677
- function zr(r) {
681
+ function Br(r) {
678
682
  var n = typeof r;
679
683
  return r != null && (n == "object" || n == "function");
680
684
  }
681
- var je = zr, Ur = typeof ie == "object" && ie && ie.Object === Object && ie, Vr = Ur, Br = Vr, Gr = typeof self == "object" && self && self.Object === Object && self, Jr = Br || Gr || Function("return this")(), or = Jr, Xr = or, Hr = function() {
682
- return Xr.Date.now();
683
- }, Kr = Hr, Zr = /\s/;
684
- function Qr(r) {
685
- for (var n = r.length; n-- && Zr.test(r.charAt(n)); )
685
+ var Se = Br, Gr = typeof ie == "object" && ie && ie.Object === Object && ie, Jr = Gr, Xr = Jr, Hr = typeof self == "object" && self && self.Object === Object && self, Kr = Xr || Hr || Function("return this")(), or = Kr, Zr = or, Qr = function() {
686
+ return Zr.Date.now();
687
+ }, et = Qr, rt = /\s/;
688
+ function tt(r) {
689
+ for (var n = r.length; n-- && rt.test(r.charAt(n)); )
686
690
  ;
687
691
  return n;
688
692
  }
689
- var et = Qr, rt = et, tt = /^\s+/;
690
- function nt(r) {
691
- return r && r.slice(0, rt(r) + 1).replace(tt, "");
693
+ var nt = tt, at = nt, it = /^\s+/;
694
+ function ot(r) {
695
+ return r && r.slice(0, at(r) + 1).replace(it, "");
692
696
  }
693
- var at = nt, it = or, ot = it.Symbol, sr = ot, Xe = sr, lr = Object.prototype, st = lr.hasOwnProperty, lt = lr.toString, Q = Xe ? Xe.toStringTag : void 0;
694
- function ct(r) {
695
- var n = st.call(r, Q), i = r[Q];
697
+ var st = ot, ct = or, lt = ct.Symbol, sr = lt, Xe = sr, cr = Object.prototype, ut = cr.hasOwnProperty, ft = cr.toString, Q = Xe ? Xe.toStringTag : void 0;
698
+ function dt(r) {
699
+ var n = ut.call(r, Q), i = r[Q];
696
700
  try {
697
701
  r[Q] = void 0;
698
702
  var o = !0;
699
703
  } catch {
700
704
  }
701
- var l = lt.call(r);
702
- return o && (n ? r[Q] = i : delete r[Q]), l;
705
+ var c = ft.call(r);
706
+ return o && (n ? r[Q] = i : delete r[Q]), c;
703
707
  }
704
- var ut = ct, ft = Object.prototype, dt = ft.toString;
705
- function vt(r) {
706
- return dt.call(r);
708
+ var pt = dt, _t = Object.prototype, vt = _t.toString;
709
+ function gt(r) {
710
+ return vt.call(r);
707
711
  }
708
- var pt = vt, He = sr, yt = ut, _t = pt, gt = "[object Null]", mt = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
709
- function bt(r) {
710
- return r == null ? r === void 0 ? mt : gt : Ke && Ke in Object(r) ? yt(r) : _t(r);
712
+ var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]", Tt = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
713
+ function St(r) {
714
+ return r == null ? r === void 0 ? Tt : ht : Ke && Ke in Object(r) ? yt(r) : bt(r);
711
715
  }
712
- var ht = bt;
713
- function Tt(r) {
716
+ var Rt = St;
717
+ function Et(r) {
714
718
  return r != null && typeof r == "object";
715
719
  }
716
- var jt = Tt, Rt = ht, Et = jt, St = "[object Symbol]";
717
- function xt(r) {
718
- return typeof r == "symbol" || Et(r) && Rt(r) == St;
720
+ var xt = Et, jt = Rt, Ot = xt, wt = "[object Symbol]";
721
+ function Ct(r) {
722
+ return typeof r == "symbol" || Ot(r) && jt(r) == wt;
719
723
  }
720
- var Ot = xt, Ct = at, Ze = je, wt = Ot, Qe = 0 / 0, Pt = /^[-+]0x[0-9a-f]+$/i, kt = /^0b[01]+$/i, Nt = /^0o[0-7]+$/i, $t = parseInt;
721
- function Dt(r) {
724
+ var Pt = Ct, kt = st, Ze = Se, Nt = Pt, Qe = 0 / 0, $t = /^[-+]0x[0-9a-f]+$/i, Dt = /^0b[01]+$/i, It = /^0o[0-7]+$/i, Ft = parseInt;
725
+ function Lt(r) {
722
726
  if (typeof r == "number")
723
727
  return r;
724
- if (wt(r))
728
+ if (Nt(r))
725
729
  return Qe;
726
730
  if (Ze(r)) {
727
731
  var n = typeof r.valueOf == "function" ? r.valueOf() : r;
@@ -729,309 +733,308 @@ function Dt(r) {
729
733
  }
730
734
  if (typeof r != "string")
731
735
  return r === 0 ? r : +r;
732
- r = Ct(r);
733
- var i = kt.test(r);
734
- return i || Nt.test(r) ? $t(r.slice(2), i ? 2 : 8) : Pt.test(r) ? Qe : +r;
736
+ r = kt(r);
737
+ var i = Dt.test(r);
738
+ return i || It.test(r) ? Ft(r.slice(2), i ? 2 : 8) : $t.test(r) ? Qe : +r;
735
739
  }
736
- var It = Dt, Ft = je, _e = Kr, er = It, At = "Expected a function", Lt = Math.max, Wt = Math.min;
737
- function qt(r, n, i) {
738
- var o, l, g, p, d, c, _ = 0, m = !1, b = !1, S = !0;
740
+ var At = Lt, Wt = Se, ge = et, er = At, qt = "Expected a function", zt = Math.max, Mt = Math.min;
741
+ function Vt(r, n, i) {
742
+ var o, c, g, _, d, l, m = 0, y = !1, b = !1, x = !0;
739
743
  if (typeof r != "function")
740
- throw new TypeError(At);
741
- n = er(n) || 0, Ft(i) && (m = !!i.leading, b = "maxWait" in i, g = b ? Lt(er(i.maxWait) || 0, n) : g, S = "trailing" in i ? !!i.trailing : S);
742
- function C(T) {
743
- var k = o, F = l;
744
- return o = l = void 0, _ = T, p = r.apply(F, k), p;
744
+ throw new TypeError(qt);
745
+ n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, x = "trailing" in i ? !!i.trailing : x);
746
+ function w(S) {
747
+ var P = o, F = c;
748
+ return o = c = void 0, m = S, _ = r.apply(F, P), _;
745
749
  }
746
- function q(T) {
747
- return _ = T, d = setTimeout(x, n), m ? C(T) : p;
750
+ function W(S) {
751
+ return m = S, d = setTimeout(j, n), y ? w(S) : _;
748
752
  }
749
- function M(T) {
750
- var k = T - c, F = T - _, J = n - k;
751
- return b ? Wt(J, g - F) : J;
753
+ function q(S) {
754
+ var P = S - l, F = S - m, J = n - P;
755
+ return b ? Mt(J, g - F) : J;
752
756
  }
753
- function Y(T) {
754
- var k = T - c, F = T - _;
755
- return c === void 0 || k >= n || k < 0 || b && F >= g;
757
+ function z(S) {
758
+ var P = S - l, F = S - m;
759
+ return l === void 0 || P >= n || P < 0 || b && F >= g;
756
760
  }
757
- function x() {
758
- var T = _e();
759
- if (Y(T))
760
- return h(T);
761
- d = setTimeout(x, M(T));
761
+ function j() {
762
+ var S = ge();
763
+ if (z(S))
764
+ return T(S);
765
+ d = setTimeout(j, q(S));
762
766
  }
763
- function h(T) {
764
- return d = void 0, S && o ? C(T) : (o = l = void 0, p);
767
+ function T(S) {
768
+ return d = void 0, x && o ? w(S) : (o = c = void 0, _);
765
769
  }
766
770
  function oe() {
767
- d !== void 0 && clearTimeout(d), _ = 0, o = c = l = d = void 0;
771
+ d !== void 0 && clearTimeout(d), m = 0, o = l = c = d = void 0;
768
772
  }
769
773
  function se() {
770
- return d === void 0 ? p : h(_e());
774
+ return d === void 0 ? _ : T(ge());
771
775
  }
772
776
  function G() {
773
- var T = _e(), k = Y(T);
774
- if (o = arguments, l = this, c = T, k) {
777
+ var S = ge(), P = z(S);
778
+ if (o = arguments, c = this, l = S, P) {
775
779
  if (d === void 0)
776
- return q(c);
780
+ return W(l);
777
781
  if (b)
778
- return clearTimeout(d), d = setTimeout(x, n), C(c);
782
+ return clearTimeout(d), d = setTimeout(j, n), w(l);
779
783
  }
780
- return d === void 0 && (d = setTimeout(x, n)), p;
784
+ return d === void 0 && (d = setTimeout(j, n)), _;
781
785
  }
782
786
  return G.cancel = oe, G.flush = se, G;
783
787
  }
784
- var Mt = qt, Yt = Mt, zt = je, Ut = "Expected a function";
785
- function Vt(r, n, i) {
786
- var o = !0, l = !0;
788
+ var Yt = Vt, Ut = Yt, Bt = Se, Gt = "Expected a function";
789
+ function Jt(r, n, i) {
790
+ var o = !0, c = !0;
787
791
  if (typeof r != "function")
788
- throw new TypeError(Ut);
789
- return zt(i) && (o = "leading" in i ? !!i.leading : o, l = "trailing" in i ? !!i.trailing : l), Yt(r, n, {
792
+ throw new TypeError(Gt);
793
+ return Bt(i) && (o = "leading" in i ? !!i.leading : o, c = "trailing" in i ? !!i.trailing : c), Ut(r, n, {
790
794
  leading: o,
791
795
  maxWait: n,
792
- trailing: l
796
+ trailing: c
793
797
  });
794
798
  }
795
- var Bt = Vt;
796
- const Gt = /* @__PURE__ */ qr(Bt), Jt = (r) => (n) => {
797
- r.forEach((i) => {
798
- typeof i == "function" ? i(n) : i != null && (i.current = n);
799
- });
800
- }, Xt = "_icon_1r2n7_2", Ht = "_filled_1r2n7_18", rr = {
801
- icon: Xt,
802
- filled: Ht
799
+ var Xt = Jt;
800
+ const Ht = /* @__PURE__ */ Vr(Xt), Kt = "_icon_awnbf_2", Zt = "_thin_awnbf_25", Qt = "_light_awnbf_29", en = "_regular_awnbf_33", rn = "_solid_awnbf_37", tn = "_duotone_awnbf_41", nn = "_sharpSolid_awnbf_52", an = "_sharpRegular_awnbf_56", on = "_sharpLight_awnbf_60", sn = "_brand_awnbf_64", rr = {
801
+ icon: Kt,
802
+ thin: Zt,
803
+ light: Qt,
804
+ regular: en,
805
+ solid: rn,
806
+ duotone: tn,
807
+ sharpSolid: nn,
808
+ sharpRegular: an,
809
+ sharpLight: on,
810
+ brand: sn
803
811
  };
804
- var cr = /* @__PURE__ */ ((r) => (r[r.mini = 16] = "mini", r[r.default = 24] = "default", r[r.large = 32] = "large", r))(cr || {});
805
- const Re = B((r, n) => {
806
- const { className: i, name: o, size: l, filled: g } = r, p = l ? `${typeof l == "number" ? l : cr[l]}px` : void 0, d = I(
812
+ var lr = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(lr || {});
813
+ const Re = U((r, n) => {
814
+ const { className: i, code: o, type: c = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : lr[g]}px` : void 0, d = B(
807
815
  rr.icon,
808
- i,
809
- g && rr.filled
816
+ c && rr[c],
817
+ i
810
818
  );
811
- return /* @__PURE__ */ R.jsx("span", { className: d, ref: n, style: { fontSize: p }, children: o });
819
+ return /* @__PURE__ */ h.jsx("span", { className: d, ref: n, style: { "--iconSize": _ }, "data-content": Mr(o) });
812
820
  });
813
821
  Re.displayName = "Icon";
814
- const Kt = "_progressBar_luf46_1", Zt = "_progress_luf46_1", Qt = "_intermediate_luf46_31", en = "_barberPole_luf46_1", ge = {
815
- progressBar: Kt,
816
- progress: Zt,
817
- intermediate: Qt,
818
- barberPole: en
819
- }, ur = B((r, n) => {
820
- const { className: i, progress: o = 100, intermediate: l = !1 } = r, g = l ? 150 : Math.min(Math.max(o, 0), 100), p = I(
821
- ge.progressBar,
822
- l && ge.intermediate,
822
+ const cn = "_progressBar_luf46_1", ln = "_progress_luf46_1", un = "_intermediate_luf46_31", fn = "_barberPole_luf46_1", me = {
823
+ progressBar: cn,
824
+ progress: ln,
825
+ intermediate: un,
826
+ barberPole: fn
827
+ }, ur = U((r, n) => {
828
+ const { className: i, progress: o = 100, intermediate: c = !1 } = r, g = c ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
829
+ me.progressBar,
830
+ c && me.intermediate,
823
831
  i
824
832
  );
825
- return /* @__PURE__ */ R.jsx("div", { className: p, ref: n, children: /* @__PURE__ */ R.jsx("span", { className: ge.progress, style: { width: `${g}%` } }) });
833
+ return /* @__PURE__ */ h.jsx("div", { className: _, ref: n, children: /* @__PURE__ */ h.jsx("span", { className: me.progress, style: { width: `${g}%` } }) });
826
834
  });
827
835
  ur.displayName = "ProgressBar";
828
- const rn = "_button_1qj4y_1", tn = "_label_1qj4y_17", nn = "_icon_1qj4y_23", an = "_filled_1qj4y_28", on = "_underline_1qj4y_31", sn = "_primaryType_1qj4y_54", ln = "_primaryDangerType_1qj4y_54", cn = "_secondaryType_1qj4y_59", un = "_secondaryDangerType_1qj4y_59", fn = "_linkType_1qj4y_64", dn = "_linkDangerType_1qj4y_64", vn = "_miniSize_1qj4y_93", pn = "_iconOnly_1qj4y_107", yn = "_defaultSize_1qj4y_114", _n = "_largeSize_1qj4y_135", gn = "_clicked_1qj4y_171", mn = "_ripple_1qj4y_1", bn = "_loading_1qj4y_180", hn = "_barberPole_1qj4y_1", Tn = "_spin_1qj4y_1", P = {
829
- button: rn,
830
- label: tn,
831
- icon: nn,
832
- filled: an,
833
- underline: on,
834
- primaryType: sn,
835
- primaryDangerType: ln,
836
- secondaryType: cn,
837
- secondaryDangerType: un,
838
- linkType: fn,
839
- linkDangerType: dn,
840
- miniSize: vn,
841
- iconOnly: pn,
842
- defaultSize: yn,
843
- largeSize: _n,
844
- clicked: gn,
845
- ripple: mn,
846
- loading: bn,
847
- barberPole: hn,
848
- spin: Tn
836
+ const dn = "_button_6uqr8_1", pn = "_label_6uqr8_17", _n = "_icon_6uqr8_23", vn = "_underline_6uqr8_26", gn = "_primaryType_6uqr8_49", mn = "_primaryDangerType_6uqr8_49", yn = "_secondaryType_6uqr8_54", bn = "_secondaryDangerType_6uqr8_54", hn = "_linkType_6uqr8_59", Tn = "_linkDangerType_6uqr8_59", Sn = "_miniSize_6uqr8_88", Rn = "_iconOnly_6uqr8_99", En = "_defaultSize_6uqr8_106", xn = "_largeSize_6uqr8_124", jn = "_clicked_6uqr8_157", On = "_ripple_6uqr8_1", wn = "_loading_6uqr8_166", Cn = "_barberPole_6uqr8_1", Pn = "_spin_6uqr8_1", k = {
837
+ button: dn,
838
+ label: pn,
839
+ icon: _n,
840
+ underline: vn,
841
+ primaryType: gn,
842
+ primaryDangerType: mn,
843
+ secondaryType: yn,
844
+ secondaryDangerType: bn,
845
+ linkType: hn,
846
+ linkDangerType: Tn,
847
+ miniSize: Sn,
848
+ iconOnly: Rn,
849
+ defaultSize: En,
850
+ largeSize: xn,
851
+ clicked: jn,
852
+ ripple: On,
853
+ loading: wn,
854
+ barberPole: Cn,
855
+ spin: Pn
849
856
  };
850
857
  var be = /* @__PURE__ */ ((r) => (r.primary = "primary", r.primaryDanger = "primaryDanger", r.secondary = "secondary", r.secondaryDanger = "secondaryDanger", r.link = "link", r.linkDanger = "linkDanger", r))(be || {});
851
858
  const tr = 100;
852
859
  let nr;
853
- const jn = B((r, n) => {
860
+ const kn = U((r, n) => {
854
861
  const {
855
862
  className: i,
856
863
  label: o,
857
- type: l = "primary",
864
+ type: c = "primary",
858
865
  size: g = "default",
859
- disabled: p = !1,
866
+ disabled: _ = !1,
860
867
  loading: d = !1,
861
- iconName: c,
862
- iconFilled: _ = !1,
863
- iconPosition: m = "left",
868
+ icon: l,
869
+ iconType: m,
870
+ iconPosition: y = "left",
864
871
  onClick: b
865
- } = r, S = Lr(null), C = Gt(() => {
866
- var x;
867
- clearTimeout(nr), (x = S.current) == null || x.classList.add(P.clicked), nr = window.setTimeout(() => {
868
- var h;
869
- (h = S.current) == null || h.classList.remove(P.clicked);
872
+ } = r, x = Ar(null), w = Ht(() => {
873
+ var j;
874
+ clearTimeout(nr), (j = x.current) == null || j.classList.add(k.clicked), nr = window.setTimeout(() => {
875
+ var T;
876
+ (T = x.current) == null || T.classList.remove(k.clicked);
870
877
  }, 600 + tr);
871
- }, tr), q = (x) => {
872
- b == null || b(x), l.includes(be.link) || C();
873
- }, M = () => c ? /* @__PURE__ */ R.jsx(Re, { className: I(P.icon, _ && P.filled), name: c, size: g }) : null, Y = I(
874
- P.button,
875
- P[`${l}Type`],
876
- P[`${g}Size`],
877
- !o && P.iconOnly,
878
- d && P.loading,
878
+ }, tr), W = (j) => {
879
+ b == null || b(j), c.includes(be.link) || w();
880
+ }, q = () => l ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: l, type: m, size: g }) : null, z = B(
881
+ k.button,
882
+ k[`${c}Type`],
883
+ k[`${g}Size`],
884
+ !o && k.iconOnly,
885
+ d && k.loading,
879
886
  i
880
887
  );
881
- return !o && !c ? null : /* @__PURE__ */ R.jsxs("button", { className: Y, ref: Jt([S, n]), onClick: q, disabled: p, children: [
882
- l.includes(be.link) && /* @__PURE__ */ R.jsx(ur, { className: P.underline, intermediate: d }),
883
- m === "left" && /* @__PURE__ */ R.jsx(M, {}),
884
- o && /* @__PURE__ */ R.jsx("span", { className: P.label, children: o }),
885
- m === "right" && /* @__PURE__ */ R.jsx(M, {})
888
+ return !o && !l ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([x, n]), onClick: W, disabled: _, children: [
889
+ c.includes(be.link) && /* @__PURE__ */ h.jsx(ur, { className: k.underline, intermediate: d }),
890
+ y === "left" && /* @__PURE__ */ h.jsx(q, {}),
891
+ o && /* @__PURE__ */ h.jsx("span", { className: k.label, children: o }),
892
+ y === "right" && /* @__PURE__ */ h.jsx(q, {})
886
893
  ] });
887
894
  });
888
- jn.displayName = "Button";
889
- const Rn = "_textfield_p93uo_1", En = "_icon_p93uo_28", Sn = "_filled_p93uo_38", xn = "_input_p93uo_41", On = "_textarea_p93uo_55", Cn = "_withIcon_p93uo_60", L = {
890
- textfield: Rn,
891
- icon: En,
892
- filled: Sn,
893
- input: xn,
894
- textarea: On,
895
- withIcon: Cn
896
- }, wn = B((r, n) => {
895
+ kn.displayName = "Button";
896
+ const Nn = "_textfield_7y99a_1", $n = "_icon_7y99a_27", Dn = "_input_7y99a_36", In = "_placeholder_7y99a_49", Fn = "_withIcon_7y99a_73", Ln = "_textarea_7y99a_83", An = "_hasValue_7y99a_92", D = {
897
+ textfield: Nn,
898
+ icon: $n,
899
+ input: Dn,
900
+ placeholder: In,
901
+ withIcon: Fn,
902
+ textarea: Ln,
903
+ hasValue: An
904
+ }, Wn = U((r, n) => {
897
905
  const {
898
906
  className: i,
899
907
  type: o = "text",
900
- textarea: l,
908
+ textarea: c,
901
909
  placeholder: g,
902
- autoComplete: p = "off",
910
+ autoComplete: _ = "off",
903
911
  autoFocus: d,
904
- iconName: c,
905
- iconFilled: _ = !1,
906
- value: m,
912
+ icon: l,
913
+ iconType: m = "regular",
914
+ value: y,
907
915
  onChange: b
908
- } = r, S = Wr(() => {
909
- if (l === !0)
916
+ } = r, x = Wr(() => {
917
+ if (c === !0)
910
918
  return null;
911
- if (c)
912
- return c;
919
+ if (l)
920
+ return l;
913
921
  if (o === "number")
914
- return "numbers";
922
+ return "23";
915
923
  if (o === "search")
916
- return "search";
924
+ return "f002";
917
925
  if (o === "password")
918
- return "shield";
919
- }, [l, c, o]), C = I(
920
- L.textfield,
921
- S && L.withIcon,
922
- l && L.textarea,
926
+ return "f30d";
927
+ }, [c, l, o]), w = B(
928
+ D.textfield,
929
+ x && D.withIcon,
930
+ c && D.textarea,
931
+ y && D.hasValue,
923
932
  i
924
933
  );
925
- return /* @__PURE__ */ R.jsxs("div", { className: C, ref: n, children: [
926
- !!S && !l && /* @__PURE__ */ R.jsx(
927
- Re,
928
- {
929
- className: I(L.icon, _ && L.filled),
930
- name: S,
931
- size: 20,
932
- filled: _
933
- }
934
- ),
935
- l ? /* @__PURE__ */ R.jsx(
934
+ return /* @__PURE__ */ h.jsxs("div", { className: w, ref: n, children: [
935
+ !!x && !c && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: x, type: m }),
936
+ c ? /* @__PURE__ */ h.jsx(
936
937
  "textarea",
937
938
  {
938
- className: L.input,
939
+ className: D.input,
939
940
  autoFocus: d,
940
- placeholder: g,
941
- autoComplete: p,
942
- value: m,
941
+ autoComplete: _,
942
+ value: y,
943
943
  onChange: b
944
944
  }
945
- ) : /* @__PURE__ */ R.jsx(
945
+ ) : /* @__PURE__ */ h.jsx(
946
946
  "input",
947
947
  {
948
- className: L.input,
948
+ className: D.input,
949
949
  type: o,
950
950
  autoFocus: d,
951
- placeholder: g,
952
- autoComplete: p,
953
- value: m,
951
+ autoComplete: _,
952
+ value: y,
954
953
  onChange: b
955
954
  }
956
- )
955
+ ),
956
+ /* @__PURE__ */ h.jsx("span", { className: D.placeholder, children: g })
957
957
  ] });
958
958
  });
959
- wn.displayName = "Textfield";
960
- const Pn = "_sider_9guyz_1", kn = "_leftSiderContainer_9guyz_13", Nn = "_rightSiderContainer_9guyz_20", $n = "_content_9guyz_27", Dn = "_miniLeftSider_9guyz_37", In = "_miniRightSider_9guyz_44", Fn = "_leftOpen_9guyz_51", An = "_rightOpen_9guyz_57", D = {
961
- sider: Pn,
962
- leftSiderContainer: kn,
963
- rightSiderContainer: Nn,
964
- content: $n,
965
- miniLeftSider: Dn,
966
- miniRightSider: In,
967
- leftOpen: Fn,
968
- rightOpen: An
969
- }, Ln = B((r, n) => {
959
+ Wn.displayName = "Textfield";
960
+ const qn = "_sider_9guyz_1", zn = "_leftSiderContainer_9guyz_13", Mn = "_rightSiderContainer_9guyz_20", Vn = "_content_9guyz_27", Yn = "_miniLeftSider_9guyz_37", Un = "_miniRightSider_9guyz_44", Bn = "_leftOpen_9guyz_51", Gn = "_rightOpen_9guyz_57", I = {
961
+ sider: qn,
962
+ leftSiderContainer: zn,
963
+ rightSiderContainer: Mn,
964
+ content: Vn,
965
+ miniLeftSider: Yn,
966
+ miniRightSider: Un,
967
+ leftOpen: Bn,
968
+ rightOpen: Gn
969
+ }, Jn = U((r, n) => {
970
970
  const {
971
971
  className: i,
972
972
  children: o,
973
- leftSider: l,
973
+ leftSider: c,
974
974
  showMiniLeftSider: g = !0,
975
- rightSider: p,
975
+ rightSider: _,
976
976
  showMiniRightSider: d = !1,
977
- open: c = "closed"
977
+ open: l = "closed"
978
978
  // setOpen,
979
- } = r, _ = I(
980
- D.sider,
981
- c === "left" && D.leftOpen,
982
- g && D.miniLeftSider,
983
- c === "right" && D.rightOpen,
984
- d && D.miniRightSider,
979
+ } = r, m = B(
980
+ I.sider,
981
+ l === "left" && I.leftOpen,
982
+ g && I.miniLeftSider,
983
+ l === "right" && I.rightOpen,
984
+ d && I.miniRightSider,
985
985
  i
986
986
  );
987
- return /* @__PURE__ */ R.jsxs("section", { className: _, ref: n, role: "sider", children: [
988
- /* @__PURE__ */ R.jsx("div", { className: D.leftSiderContainer, children: l }),
989
- /* @__PURE__ */ R.jsx("div", { className: D.rightSiderContainer, children: p }),
990
- /* @__PURE__ */ R.jsx("div", { className: D.content, children: o })
987
+ return /* @__PURE__ */ h.jsxs("section", { className: m, ref: n, role: "sider", children: [
988
+ /* @__PURE__ */ h.jsx("div", { className: I.leftSiderContainer, children: c }),
989
+ /* @__PURE__ */ h.jsx("div", { className: I.rightSiderContainer, children: _ }),
990
+ /* @__PURE__ */ h.jsx("div", { className: I.content, children: o })
991
991
  ] });
992
992
  });
993
- Ln.displayName = "Sider";
994
- const Wn = "_navigation_3y1yg_1", qn = "_brand_3y1yg_9", Mn = "_routeList_3y1yg_18", Yn = "_route_3y1yg_18", zn = "_icon_3y1yg_59", Un = "_label_3y1yg_71", Vn = "_active_3y1yg_83", W = {
995
- navigation: Wn,
996
- brand: qn,
997
- routeList: Mn,
998
- route: Yn,
999
- icon: zn,
1000
- label: Un,
1001
- active: Vn
1002
- }, Bn = B((r, n) => {
1003
- const { className: i, Routes: o } = r, l = I(
1004
- W.navigation,
993
+ Jn.displayName = "Sider";
994
+ const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_18", Zn = "_route_zrgjp_18", Qn = "_icon_zrgjp_59", ea = "_label_zrgjp_65", ra = "_active_zrgjp_77", A = {
995
+ navigation: Xn,
996
+ brand: Hn,
997
+ routeList: Kn,
998
+ route: Zn,
999
+ icon: Qn,
1000
+ label: ea,
1001
+ active: ra
1002
+ }, ta = U((r, n) => {
1003
+ const { className: i, Routes: o } = r, c = B(
1004
+ A.navigation,
1005
1005
  i
1006
1006
  );
1007
- return /* @__PURE__ */ R.jsxs("section", { className: l, ref: n, role: "navigation", children: [
1008
- /* @__PURE__ */ R.jsx("div", { className: W.brand, children: "🎲 XtremeUI" }),
1009
- /* @__PURE__ */ R.jsx("div", { className: W.routeList, children: !!o && /* @__PURE__ */ R.jsx(
1007
+ return /* @__PURE__ */ h.jsxs("section", { className: c, ref: n, role: "navigation", children: [
1008
+ /* @__PURE__ */ h.jsx("div", { className: A.brand, children: "🎲 XtremeUI" }),
1009
+ /* @__PURE__ */ h.jsx("div", { className: A.routeList, children: !!o && /* @__PURE__ */ h.jsx(
1010
1010
  o,
1011
1011
  {
1012
- className: W.route,
1013
- activeClassName: W.active,
1014
- iconClassName: W.icon,
1015
- labelClassName: W.label
1012
+ className: A.route,
1013
+ activeClassName: A.active,
1014
+ iconClassName: A.icon,
1015
+ labelClassName: A.label
1016
1016
  }
1017
1017
  ) })
1018
1018
  ] });
1019
1019
  });
1020
- Bn.displayName = "Navigation";
1020
+ ta.displayName = "Navigation";
1021
1021
  export {
1022
- jn as Button,
1022
+ kn as Button,
1023
1023
  Re as Icon,
1024
- Bn as Navigation,
1024
+ ta as Navigation,
1025
1025
  ur as ProgressBar,
1026
- Ln as Sider,
1027
- wn as Textfield,
1028
- V as dom,
1029
- Qn as elementObserver,
1026
+ Jn as Sider,
1027
+ Wn as Textfield,
1028
+ Y as dom,
1029
+ la as elementObserver,
1030
1030
  Te as getCssProperty,
1031
- Jn as getCssPropertyPx,
1032
- Xn as getCssPropertyVh,
1033
- Hn as getCssPropertyVw,
1031
+ aa as getCssPropertyPx,
1032
+ ia as getCssPropertyVh,
1033
+ oa as getCssPropertyVw,
1034
1034
  he as isClient,
1035
- Kn as setCssProperty,
1036
- Zn as waitForElement
1035
+ qr as mergeRefs,
1036
+ zr as safeStringFromCodePoint,
1037
+ sa as setCssProperty,
1038
+ Mr as unicodeToString,
1039
+ ca as waitForElement
1037
1040
  };