fastapi-rtk 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@ var Dd = Object.defineProperty;
2
2
  var Md = (e, t, r) => t in e ? Dd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ms = (e, t, r) => (Md(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import * as lt from "react";
5
- import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as ke, useMemo as wt, useReducer as Dc, createContext as Mc, useContext as Co, forwardRef as Nc, createElement as gs, memo as Ao, Fragment as Fd } from "react";
6
- import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as Pe, Checkbox as fi, LoadingOverlay as Vd, Tabs as Tr, Paper as Da, Grid as rt, Skeleton as Bd, useMantineTheme as Wd, Pagination as Hd, NumberInput as Gd, Menu as ar, UnstyledButton as qd } from "@mantine/core";
5
+ import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as $e, useMemo as wt, useReducer as Dc, createContext as Mc, useContext as Co, forwardRef as Nc, createElement as gs, memo as Ao, Fragment as Fd } from "react";
6
+ import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as Re, Checkbox as fi, LoadingOverlay as Vd, Tabs as Tr, Paper as Da, Grid as rt, Skeleton as Bd, useMantineTheme as Wd, Pagination as Hd, NumberInput as Gd, Menu as ar, UnstyledButton as qd } from "@mantine/core";
7
7
  import { useForm as di } from "@mantine/form";
8
8
  import { DateInput as Ro, DateTimePicker as Uc } from "@mantine/dates";
9
9
  import { randomId as Gn, useHover as Yd } from "@mantine/hooks";
@@ -11,7 +11,7 @@ import { withJsonFormsControlProps as fr, JsonFormsDispatch as Kd, useJsonForms
11
11
  import { rankWith as Ie, isDateControl as Gc, isDateTimeControl as qc, getAjv as Zd, isNumberControl as Yc, isIntegerControl as Kc, isStringControl as Xc, isBooleanControl as Jc, isEnumControl as Zc, createDefaultValue as Qd, Resolve as ep, encode as xs, Paths as Qc, formatErrorMessage as tp, errorsAt as rp, or as np, isObjectArrayControl as op, isPrimitiveArrayControl as ap, and as _s, uiTypeIs as pi, schemaMatches as ip, hasType as sp, schemaSubPathMatches as lp, resolveSchema as cp } from "@jsonforms/core";
12
12
  import { withEmotionCache as up, ThemeContext as eu, CacheProvider as fp, Global as dp, css as pp, keyframes as hp } from "@emotion/react";
13
13
  import { useNavigate as mp } from "react-router-dom";
14
- var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
+ var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
15
15
  function Ut(e) {
16
16
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
17
17
  }
@@ -53,14 +53,14 @@ function gp() {
53
53
  Es = 1;
54
54
  var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
55
55
  function i(s, l, c) {
56
- var u, f = {}, p = null, y = null;
57
- c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (y = l.ref);
56
+ var u, f = {}, p = null, g = null;
57
+ c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (g = l.ref);
58
58
  for (u in l)
59
59
  n.call(l, u) && !a.hasOwnProperty(u) && (f[u] = l[u]);
60
60
  if (s && s.defaultProps)
61
61
  for (u in l = s.defaultProps, l)
62
62
  f[u] === void 0 && (f[u] = l[u]);
63
- return { $$typeof: t, type: s, key: p, ref: y, props: f, _owner: o.current };
63
+ return { $$typeof: t, type: s, key: p, ref: g, props: f, _owner: o.current };
64
64
  }
65
65
  return rn.Fragment = r, rn.jsx = i, rn.jsxs = i, rn;
66
66
  }
@@ -77,11 +77,11 @@ var nn = {};
77
77
  var Ts;
78
78
  function yp() {
79
79
  return Ts || (Ts = 1, process.env.NODE_ENV !== "production" && function() {
80
- var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
80
+ var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
81
81
  function b(m) {
82
82
  if (m === null || typeof m != "object")
83
83
  return null;
84
- var _ = g && m[g] || m[h];
84
+ var _ = y && m[y] || m[h];
85
85
  return typeof _ == "function" ? _ : null;
86
86
  }
87
87
  var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -89,10 +89,10 @@ function yp() {
89
89
  {
90
90
  for (var _ = arguments.length, R = new Array(_ > 1 ? _ - 1 : 0), z = 1; z < _; z++)
91
91
  R[z - 1] = arguments[z];
92
- D("error", m, R);
92
+ j("error", m, R);
93
93
  }
94
94
  }
95
- function D(m, _, R) {
95
+ function j(m, _, R) {
96
96
  {
97
97
  var z = T.ReactDebugCurrentFrame, Q = z.getStackAddendum();
98
98
  Q !== "" && (_ += "%s", R = R.concat([Q]));
@@ -102,10 +102,10 @@ function yp() {
102
102
  oe.unshift("Warning: " + _), Function.prototype.apply.call(console[m], console, oe);
103
103
  }
104
104
  }
105
- var I = !1, x = !1, O = !1, k = !1, J = !1, ee;
105
+ var D = !1, x = !1, O = !1, k = !1, J = !1, ee;
106
106
  ee = Symbol.for("react.module.reference");
107
107
  function _e(m) {
108
- return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m === y || I || x || O || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || // This needs to include all possible module reference object
108
+ return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m === g || D || x || O || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || // This needs to include all possible module reference object
109
109
  // types supported by any Flight configuration anywhere since
110
110
  // we don't know which Flight build this will end up being used
111
111
  // with.
@@ -318,10 +318,10 @@ function yp() {
318
318
  var ye = m ? m.displayName || m.name : "", he = ye ? H(ye) : "";
319
319
  return typeof m == "function" && G.set(m, he), he;
320
320
  }
321
- function $e(m, _, R) {
321
+ function Pe(m, _, R) {
322
322
  return P(m, !1);
323
323
  }
324
- function j(m) {
324
+ function I(m) {
325
325
  var _ = m.prototype;
326
326
  return !!(_ && _.isReactComponent);
327
327
  }
@@ -329,7 +329,7 @@ function yp() {
329
329
  if (m == null)
330
330
  return "";
331
331
  if (typeof m == "function")
332
- return P(m, j(m));
332
+ return P(m, I(m));
333
333
  if (typeof m == "string")
334
334
  return H(m);
335
335
  switch (m) {
@@ -341,7 +341,7 @@ function yp() {
341
341
  if (typeof m == "object")
342
342
  switch (m.$$typeof) {
343
343
  case l:
344
- return $e(m.render);
344
+ return Pe(m.render);
345
345
  case f:
346
346
  return Ge(m.type, _, R);
347
347
  case p: {
@@ -717,31 +717,31 @@ function Oe(...e) {
717
717
  const t = Array.from(Array.isArray(e[0]) ? e[0] : e);
718
718
  return vp(t);
719
719
  }
720
- function hi(e, { autoInvoke: t = !0, ...r }) {
721
- const [n, o] = fe(null), [a, i] = fe(!1), [s, l] = fe(null), c = Nd(null), u = Te(() => {
720
+ function hi(e, { autoInvoke: t = !0, initialLoading: r = !1, ...n }) {
721
+ const [o, a] = fe(null), [i, s] = fe(r), [l, c] = fe(null), u = Nd(null), f = Te(() => {
722
722
  if (e)
723
- return l(null), c.current && c.current.abort(), c.current = new AbortController(), i(!0), fetch(e, { signal: c.current.signal, ...r }).then(async (p) => {
724
- const y = await p.json();
725
- if (!p.ok)
723
+ return c(null), u.current && u.current.abort(), u.current = new AbortController(), s(!0), fetch(e, { signal: u.current.signal, ...n }).then(async (g) => {
724
+ const y = await g.json();
725
+ if (!g.ok)
726
726
  throw new Error(y.detail);
727
- return o(y), y;
728
- }).catch((p) => (p.name !== "AbortError" && l(p), p)).finally(() => {
729
- i(!1);
727
+ return a(y), y;
728
+ }).catch((g) => (g.name !== "AbortError" && c(g), g)).finally(() => {
729
+ s(!1);
730
730
  });
731
- }, [e]), f = Te(() => {
732
- var p;
733
- c.current && ((p = c.current) == null || p.abort(""));
731
+ }, [e]), p = Te(() => {
732
+ var g;
733
+ u.current && ((g = u.current) == null || g.abort(""));
734
734
  }, []);
735
- return ke(() => (t && u(), () => {
736
- c.current && c.current.abort("");
737
- }), [u, t]), { data: n, loading: a, error: s, refetch: u, abort: f };
735
+ return $e(() => (t && f(), () => {
736
+ u.current && u.current.abort("");
737
+ }), [f, t]), { data: o, loading: i, error: l, refetch: f, abort: p };
738
738
  }
739
- function bp({ path: e, autoInvoke: t = !0 }) {
740
- const { fetchPath: r, options: n } = wt(
739
+ function bp({ path: e, autoInvoke: t = !0, initialLoading: r = !0 }) {
740
+ const { fetchPath: n, options: o } = wt(
741
741
  () => Ye({ path: Oe(e, "auth/user"), method: "GET" }),
742
742
  [e]
743
- ), { data: o, loading: a, refetch: i, error: s } = hi(r, { autoInvoke: t, ...n });
744
- return { user: o, loading: a, refetch: i, error: s };
743
+ ), { data: a, loading: i, refetch: s, error: l } = hi(n, { autoInvoke: t, initialLoading: r, ...o });
744
+ return { user: a, loading: i, refetch: s, error: l };
745
745
  }
746
746
  function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
747
747
  const { fetchPath: n, options: o } = wt(
@@ -756,52 +756,36 @@ function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
756
756
  if (!a)
757
757
  return null;
758
758
  const u = a.result.map((f, p) => {
759
- const y = a.ids[p];
760
- return typeof y == "object" ? { ...f, ...y } : { ...f, id: y };
759
+ const g = a.ids[p];
760
+ return typeof g == "object" ? { ...f, ...g } : { ...f, id: g };
761
761
  });
762
762
  return { ...a, result: u };
763
763
  }, [a]), loading: i, refetch: s, error: l };
764
764
  }
765
765
  const _p = async (e, t) => {
766
- try {
767
- const { fetchPath: r, options: n } = Ye({
768
- path: Oe(e, "/"),
769
- method: "POST",
770
- body: t
771
- }), o = await fetch(r, n), a = await o.json();
772
- if (o.ok)
773
- return a;
774
- throw new Error(a.detail);
775
- } catch (r) {
776
- throw new Error(r);
777
- }
766
+ const { fetchPath: r, options: n } = Ye({
767
+ path: Oe(e, "/"),
768
+ method: "POST",
769
+ body: t
770
+ }), o = await fetch(r, n), a = await o.json();
771
+ if (o.ok)
772
+ return a;
773
+ throw new Error(a.detail);
778
774
  }, Ep = async (e, t) => {
779
- try {
780
- const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "DELETE" }), o = await fetch(r, n), a = await o.json();
781
- if (o.ok)
782
- return a;
783
- throw new Error(a.detail);
784
- } catch (r) {
785
- throw new Error(r);
786
- }
775
+ const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "DELETE" }), o = await fetch(r, n), a = await o.json();
776
+ if (o.ok)
777
+ return a;
778
+ throw new Error(a.detail);
787
779
  }, Tp = async (e, t) => {
788
- try {
789
- const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "GET" }), o = await fetch(r, n), a = await o.json();
790
- if (o.ok)
791
- return a;
792
- throw new Error(a.detail);
793
- } catch (r) {
794
- throw new Error(r);
795
- }
780
+ const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "GET" }), o = await fetch(r, n), a = await o.json();
781
+ if (o.ok)
782
+ return a;
783
+ throw new Error(a.detail);
796
784
  }, Sp = async (e, t, r) => {
797
- try {
798
- const { fetchPath: n, options: o } = Ye({ path: Oe(e, t.toString()), method: "PUT", body: r }), a = await fetch(n, o), i = await a.json();
799
- if (a.ok)
800
- return i;
801
- throw new Error(i.detail);
802
- } catch (n) {
803
- throw new Error(n);
804
- }
785
+ const { fetchPath: n, options: o } = Ye({ path: Oe(e, t.toString()), method: "PUT", body: r }), a = await fetch(n, o), i = await a.json();
786
+ if (a.ok)
787
+ return i;
788
+ throw new Error(i.detail);
805
789
  }, Ue = (e) => e && typeof e == "object" ? JSON.stringify(e) : e;
806
790
  function Ss(e, t) {
807
791
  const r = e || {
@@ -955,12 +939,12 @@ function nu(e, t) {
955
939
  throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(c));
956
940
  if (!o[u]) {
957
941
  o[u] = !0;
958
- var y = i.get(c) || /* @__PURE__ */ new Set();
959
- if (y = Array.from(y), u = y.length) {
942
+ var g = i.get(c) || /* @__PURE__ */ new Set();
943
+ if (g = Array.from(g), u = g.length) {
960
944
  f.add(c);
961
945
  do {
962
- var g = y[--u];
963
- l(g, s.get(g), f);
946
+ var y = g[--u];
947
+ l(y, s.get(y), f);
964
948
  } while (u);
965
949
  f.delete(c);
966
950
  }
@@ -1222,18 +1206,18 @@ function Sr(e) {
1222
1206
  test: u,
1223
1207
  params: f,
1224
1208
  message: p,
1225
- skipAbsent: y
1209
+ skipAbsent: g
1226
1210
  } = e;
1227
1211
  let {
1228
- parent: g,
1212
+ parent: y,
1229
1213
  context: h,
1230
1214
  abortEarly: b = i.spec.abortEarly,
1231
1215
  disableStackTrace: T = i.spec.disableStackTrace
1232
1216
  } = o;
1233
1217
  function A(F) {
1234
- return Jt.isRef(F) ? F.getValue(r, g, h) : F;
1218
+ return Jt.isRef(F) ? F.getValue(r, y, h) : F;
1235
1219
  }
1236
- function D(F = {}) {
1220
+ function j(F = {}) {
1237
1221
  const te = Object.assign({
1238
1222
  value: r,
1239
1223
  originalValue: a,
@@ -1247,24 +1231,24 @@ function Sr(e) {
1247
1231
  const ce = new ze(ze.formatError(F.message || p, te), r, te.path, F.type || c, te.disableStackTrace);
1248
1232
  return ce.params = te, ce;
1249
1233
  }
1250
- const I = b ? s : l;
1234
+ const D = b ? s : l;
1251
1235
  let x = {
1252
1236
  path: n,
1253
- parent: g,
1237
+ parent: y,
1254
1238
  type: c,
1255
1239
  from: o.from,
1256
- createError: D,
1240
+ createError: j,
1257
1241
  resolve: A,
1258
1242
  options: o,
1259
1243
  originalValue: a,
1260
1244
  schema: i
1261
1245
  };
1262
1246
  const O = (F) => {
1263
- ze.isError(F) ? I(F) : F ? l(null) : I(D());
1247
+ ze.isError(F) ? D(F) : F ? l(null) : D(j());
1264
1248
  }, k = (F) => {
1265
- ze.isError(F) ? I(F) : s(F);
1249
+ ze.isError(F) ? D(F) : s(F);
1266
1250
  };
1267
- if (y && St(r))
1251
+ if (g && St(r))
1268
1252
  return O(!0);
1269
1253
  let ee;
1270
1254
  try {
@@ -1513,10 +1497,10 @@ attempted value: ${i}
1513
1497
  o || (o = !0, r(h, i));
1514
1498
  }, f = (h) => {
1515
1499
  o || (o = !0, n(h, i));
1516
- }, p = a.length, y = [];
1500
+ }, p = a.length, g = [];
1517
1501
  if (!p)
1518
1502
  return f([]);
1519
- let g = {
1503
+ let y = {
1520
1504
  value: i,
1521
1505
  originalValue: s,
1522
1506
  path: l,
@@ -1525,8 +1509,8 @@ attempted value: ${i}
1525
1509
  };
1526
1510
  for (let h = 0; h < a.length; h++) {
1527
1511
  const b = a[h];
1528
- b(g, u, function(A) {
1529
- A && (Array.isArray(A) ? y.push(...A) : y.push(A)), --p <= 0 && f(y);
1512
+ b(y, u, function(A) {
1513
+ A && (Array.isArray(A) ? g.push(...A) : g.push(A)), --p <= 0 && f(g);
1530
1514
  });
1531
1515
  }
1532
1516
  }
@@ -1558,7 +1542,7 @@ attempted value: ${i}
1558
1542
  [l ? "index" : "key"]: s,
1559
1543
  path: l || s.includes(".") ? `${o || ""}[${l ? s : `"${s}"`}]` : (o ? `${o}.` : "") + t
1560
1544
  });
1561
- return (f, p, y) => this.resolve(u)._validate(c, u, p, y);
1545
+ return (f, p, g) => this.resolve(u)._validate(c, u, p, g);
1562
1546
  }
1563
1547
  validate(t, r) {
1564
1548
  var n;
@@ -2370,9 +2354,9 @@ class wi extends Ve {
2370
2354
  __validating: r.__validating || !1
2371
2355
  }), u = !1;
2372
2356
  for (const f of s) {
2373
- let p = a[f], y = f in o;
2357
+ let p = a[f], g = f in o;
2374
2358
  if (p) {
2375
- let g, h = o[f];
2359
+ let y, h = o[f];
2376
2360
  c.path = (r.path ? `${r.path}.` : "") + f, p = p.resolve({
2377
2361
  value: h,
2378
2362
  context: r.context,
@@ -2383,13 +2367,13 @@ class wi extends Ve {
2383
2367
  u = u || f in o;
2384
2368
  continue;
2385
2369
  }
2386
- g = !r.__validating || !T ? (
2370
+ y = !r.__validating || !T ? (
2387
2371
  // TODO: use _cast, this is double resolving
2388
2372
  p.cast(o[f], c)
2389
- ) : o[f], g !== void 0 && (l[f] = g);
2373
+ ) : o[f], y !== void 0 && (l[f] = y);
2390
2374
  } else
2391
- y && !i && (l[f] = o[f]);
2392
- (y !== f in l || l[f] !== o[f]) && (u = !0);
2375
+ g && !i && (l[f] = o[f]);
2376
+ (g !== f in l || l[f] !== o[f]) && (u = !0);
2393
2377
  }
2394
2378
  return u ? l : o;
2395
2379
  }
@@ -2598,11 +2582,11 @@ class Ci extends Ve {
2598
2582
  return;
2599
2583
  }
2600
2584
  let f = new Array(c.length);
2601
- for (let y = 0; y < c.length; y++) {
2585
+ for (let g = 0; g < c.length; g++) {
2602
2586
  var p;
2603
- f[y] = i.asNestedTest({
2587
+ f[g] = i.asNestedTest({
2604
2588
  options: r,
2605
- index: y,
2589
+ index: g,
2606
2590
  parent: c,
2607
2591
  parentPath: r.path,
2608
2592
  originalParent: (p = r.originalValue) != null ? p : t
@@ -2613,7 +2597,7 @@ class Ci extends Ve {
2613
2597
  tests: f,
2614
2598
  originalValue: (u = r.originalValue) != null ? u : t,
2615
2599
  options: r
2616
- }, n, (y) => o(y.concat(l), c));
2600
+ }, n, (g) => o(g.concat(l), c));
2617
2601
  });
2618
2602
  }
2619
2603
  clone(t) {
@@ -2959,7 +2943,7 @@ function _h(e, t) {
2959
2943
  case "initCall":
2960
2944
  return { ...mu };
2961
2945
  case "setUser":
2962
- return { ...e, user: t.payload, loading: !1, error: null };
2946
+ return { ...e, user: t.payload, error: null };
2963
2947
  case "setError":
2964
2948
  return { ...e, loading: !1, error: t.payload };
2965
2949
  case "setLoading":
@@ -2969,98 +2953,102 @@ function _h(e, t) {
2969
2953
  }
2970
2954
  }
2971
2955
  function Eh(e) {
2972
- const [t, r] = Dc(_h, mu), { user: n, refetch: o } = bp({ path: e });
2973
- ke(() => {
2956
+ const [t, r] = Dc(_h, mu), { user: n, refetch: o, loading: a } = bp({ path: e });
2957
+ $e(() => {
2958
+ r({ type: "setLoading", payload: a });
2959
+ }, [a]), $e(() => {
2974
2960
  r({ type: "setUser", payload: n });
2975
2961
  }, [n]);
2976
- const a = Te(
2977
- async ({ username: u, password: f }) => {
2962
+ const i = Te(
2963
+ async ({ username: f, password: p }) => {
2978
2964
  r({ type: "initCall" });
2979
2965
  try {
2980
- const p = new FormData();
2981
- p.append("username", u), p.append("password", f);
2982
- const { fetchPath: y, options: g } = Ye({
2966
+ const g = new FormData();
2967
+ g.append("username", f), g.append("password", p);
2968
+ const { fetchPath: y, options: h } = Ye({
2983
2969
  path: Oe(e, "auth/login"),
2984
2970
  method: "POST"
2985
2971
  });
2986
2972
  (await fetch(y, {
2987
- ...g,
2973
+ ...h,
2988
2974
  headers: {
2989
2975
  "Content-Type": "application/x-www-form-urlencoded"
2990
2976
  },
2991
- body: new URLSearchParams(p)
2977
+ body: new URLSearchParams(g)
2992
2978
  })).ok ? o() : r({ type: "setError", payload: "Username or password wrong." });
2993
- } catch (p) {
2994
- console.error("signin error", p), r({ type: "setError", payload: "Failed to fetch" });
2979
+ } catch (g) {
2980
+ console.error("signin error", g), r({ type: "setError", payload: "Failed to fetch" });
2995
2981
  }
2996
2982
  },
2997
2983
  [e, o]
2998
- ), i = Te(async () => {
2984
+ ), s = Te(async () => {
2999
2985
  r({ type: "initCall" });
3000
2986
  try {
3001
- const { fetchPath: u, options: f } = Ye({ path: Oe(e, "auth/logout"), method: "POST" });
3002
- (await fetch(u, f)).ok ? r({ type: "setUser", payload: null }) : r({ type: "setError", payload: "Couldn't sign out user" });
3003
- } catch (u) {
3004
- console.error("signout error", u), r({ type: "setError", payload: "Failed to fetch" });
2987
+ const { fetchPath: f, options: p } = Ye({ path: Oe(e, "auth/logout"), method: "POST" });
2988
+ (await fetch(f, p)).ok ? r({ type: "setUser", payload: null }) : r({ type: "setError", payload: "Couldn't sign out user" });
2989
+ } catch (f) {
2990
+ console.error("signout error", f), r({ type: "setError", payload: "Failed to fetch" });
2991
+ } finally {
2992
+ r({ type: "setLoading", payload: !1 });
3005
2993
  }
3006
- }, [e]), s = Te(
3007
- async (u) => {
2994
+ }, [e]), l = Te(
2995
+ async (f) => {
3008
2996
  r({ type: "initCall" });
3009
2997
  try {
3010
- const { fetchPath: f, options: p } = Ye({
2998
+ const { fetchPath: p, options: g } = Ye({
3011
2999
  path: Oe(e, "auth/user"),
3012
3000
  method: "PUT",
3013
- body: u
3001
+ body: f
3014
3002
  });
3015
- (await fetch(f, p)).ok && o(), r({ type: "setError", payload: "Couldn't update user data" });
3016
- } catch (f) {
3017
- console.error("update error", f), r({ type: "setError", payload: "Failed to post" });
3003
+ (await fetch(p, g)).ok && o(), r({ type: "setError", payload: "Couldn't update user data" });
3004
+ } catch (p) {
3005
+ console.error("update error", p), r({ type: "setError", payload: "Failed to post" });
3018
3006
  }
3019
3007
  },
3020
3008
  [e, o]
3021
- ), l = Te(
3022
- async (u) => {
3009
+ ), c = Te(
3010
+ async (f) => {
3023
3011
  if (!n.email)
3024
3012
  return r({ type: "setError", payload: "No email found" });
3025
3013
  try {
3026
- const { fetchPath: f, options: p } = Ye({
3014
+ const { fetchPath: p, options: g } = Ye({
3027
3015
  path: Oe(e, "auth/forgot-password"),
3028
3016
  method: "POST",
3029
3017
  body: { email: n.email }
3030
- }), y = await fetch(f, p);
3018
+ }), y = await fetch(p, g);
3031
3019
  if (!y.ok) {
3032
3020
  r({ type: "setError", payload: "Couldn't request token to reset password" });
3033
3021
  return;
3034
3022
  }
3035
- const g = await y.json(), { token: h } = g, { fetchPath: b, options: T } = Ye({
3023
+ const h = await y.json(), { token: b } = h, { fetchPath: T, options: A } = Ye({
3036
3024
  path: Oe(e, "auth/reset-password"),
3037
3025
  method: "POST",
3038
- body: { token: h, password: u }
3026
+ body: { token: b, password: f }
3039
3027
  });
3040
- if (!(await fetch(b, T)).ok) {
3028
+ if (!(await fetch(T, A)).ok) {
3041
3029
  r({ type: "setError", payload: "Couldn't reset password" });
3042
3030
  return;
3043
3031
  }
3044
3032
  o();
3045
- } catch (f) {
3046
- console.error("resetPassword error", f), r({ type: "setError", payload: "Failed to post" });
3033
+ } catch (p) {
3034
+ console.error("resetPassword error", p), r({ type: "setError", payload: "Failed to post" });
3047
3035
  }
3048
3036
  },
3049
3037
  [e, o, n == null ? void 0 : n.email]
3050
- ), c = Te(
3051
- (u, f) => {
3052
- const p = Oe(e, "auth/login", u);
3053
- if (f) {
3054
- const h = window.screenLeft + window.outerWidth / 2 - 250, b = window.screenTop + window.outerHeight / 2 - 500 / 2, T = window.open(
3055
- p + "?popup=true",
3038
+ ), u = Te(
3039
+ (f, p) => {
3040
+ const g = Oe(e, "auth/login", f);
3041
+ if (p) {
3042
+ const b = window.screenLeft + window.outerWidth / 2 - 250, T = window.screenTop + window.outerHeight / 2 - 500 / 2, A = window.open(
3043
+ g + "?popup=true",
3056
3044
  "auth",
3057
- `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${b}, left=${h}`
3058
- ), A = window.setInterval(function() {
3059
- T.closed !== !1 && (window.clearInterval(A), o());
3045
+ `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${T}, left=${b}`
3046
+ ), j = window.setInterval(function() {
3047
+ A.closed !== !1 && (window.clearInterval(j), o());
3060
3048
  }, 200);
3061
3049
  return;
3062
3050
  }
3063
- window.location.href = Oe(e, "auth/login", u);
3051
+ window.location.href = Oe(e, "auth/login", f);
3064
3052
  },
3065
3053
  [e, o]
3066
3054
  );
@@ -3068,25 +3056,25 @@ function Eh(e) {
3068
3056
  user: t.user,
3069
3057
  loading: t.loading,
3070
3058
  error: t.error,
3071
- signin: a,
3072
- signout: i,
3073
- update: s,
3074
- resetPassword: l,
3075
- oauth_signin: c
3059
+ signin: i,
3060
+ signout: s,
3061
+ update: l,
3062
+ resetPassword: c,
3063
+ oauth_signin: u
3076
3064
  };
3077
3065
  }
3078
3066
  function Th(e, t) {
3079
3067
  const { user: r } = t, [n, o] = fe(null), [a, i] = fe(!0), [s, l] = fe({ error: "401 Not authorized", message: "User is not logged in." });
3080
- ke(() => {
3068
+ $e(() => {
3081
3069
  r && c(e);
3082
3070
  }, [r]);
3083
3071
  const c = async (u) => {
3084
3072
  i(!0);
3085
3073
  try {
3086
- const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }), y = await fetch(f, p);
3087
- if (y.ok) {
3088
- const g = await y.json();
3089
- o(g);
3074
+ const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }), g = await fetch(f, p);
3075
+ if (g.ok) {
3076
+ const y = await g.json();
3077
+ o(y);
3090
3078
  } else
3091
3079
  l({ error: "404 Not Found", message: "Couldn't fetch info" });
3092
3080
  } catch {
@@ -3112,15 +3100,11 @@ function GR(e) {
3112
3100
  return /* @__PURE__ */ d.jsx(Pi.Provider, { value: { auth: o, info: a }, children: n });
3113
3101
  }
3114
3102
  const Oh = async (e, t, r) => {
3115
- try {
3116
- const { fetchPath: n, options: o } = Ye({ path: Oe(t, "/download"), method: "POST" }), a = await fetch(n, { ...o, body: JSON.stringify(r) });
3117
- if (!a.ok)
3118
- throw new Error(a.statusText);
3119
- const i = await a.blob(), s = document.createElement("a"), l = URL.createObjectURL(i);
3120
- s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
3121
- } catch (n) {
3122
- throw new Error(n);
3123
- }
3103
+ const { fetchPath: n, options: o } = Ye({ path: Oe(t, "/download"), method: "POST" }), a = await fetch(n, { ...o, body: JSON.stringify(r) });
3104
+ if (!a.ok)
3105
+ throw new Error(a.statusText);
3106
+ const i = await a.blob(), s = document.createElement("a"), l = URL.createObjectURL(i);
3107
+ s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
3124
3108
  }, Ds = {
3125
3109
  queryParams: null,
3126
3110
  loading: !1,
@@ -3158,11 +3142,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3158
3142
  error: f
3159
3143
  } = xh({ path: e, autoInvoke: n }), {
3160
3144
  data: p,
3161
- loading: y,
3162
- refetch: g,
3145
+ loading: g,
3146
+ refetch: y,
3163
3147
  error: h
3164
3148
  } = xp({ path: e, queryParams: i, autoInvoke: s });
3165
- ke(() => {
3149
+ $e(() => {
3166
3150
  if (f) {
3167
3151
  a({ type: "setError", payload: { message: "Couldn't fetch info", originalError: f } });
3168
3152
  return;
@@ -3172,9 +3156,9 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3172
3156
  return;
3173
3157
  }
3174
3158
  a({ type: "setError", payload: Ds.error });
3175
- }, [f, h]), ke(() => {
3176
- a({ type: "setLoading", payload: c || y });
3177
- }, [y, c]);
3159
+ }, [f, h]), $e(() => {
3160
+ a({ type: "setLoading", payload: c || g });
3161
+ }, [g, c]);
3178
3162
  const b = Te(
3179
3163
  (O) => {
3180
3164
  const k = Ss(o.queryParams, O);
@@ -3194,17 +3178,17 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3194
3178
  async (O, k) => {
3195
3179
  try {
3196
3180
  const J = await _p(e, O);
3197
- return k || (u(), g()), J;
3181
+ return k || (u(), y()), J;
3198
3182
  } catch (J) {
3199
3183
  a({ type: "setError", payload: { message: "Couldnt add item.", originalError: J } });
3200
3184
  }
3201
3185
  },
3202
- [g, u, e]
3203
- ), D = Te(
3186
+ [y, u, e]
3187
+ ), j = Te(
3204
3188
  async (O, k, J) => {
3205
3189
  try {
3206
3190
  const ee = await Sp(e, Ue(O), k);
3207
- return J || (u(), g()), ee;
3191
+ return J || (u(), y()), ee;
3208
3192
  } catch (ee) {
3209
3193
  a({
3210
3194
  type: "setError",
@@ -3212,12 +3196,12 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3212
3196
  });
3213
3197
  }
3214
3198
  },
3215
- [g, u, e]
3216
- ), I = Te(
3199
+ [y, u, e]
3200
+ ), D = Te(
3217
3201
  async (O, k) => {
3218
3202
  try {
3219
3203
  const J = await Ep(e, Ue(O));
3220
- return k || (u(), g()), J;
3204
+ return k || (u(), y()), J;
3221
3205
  } catch (J) {
3222
3206
  a({
3223
3207
  type: "setError",
@@ -3225,7 +3209,7 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3225
3209
  });
3226
3210
  }
3227
3211
  },
3228
- [g, u, e]
3212
+ [y, u, e]
3229
3213
  ), x = Te(
3230
3214
  async (O) => {
3231
3215
  try {
@@ -3244,11 +3228,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3244
3228
  loading: o.loading,
3245
3229
  error: o.error,
3246
3230
  setQueryParams: b,
3247
- refetch: g,
3231
+ refetch: y,
3248
3232
  getEntry: T,
3249
3233
  addEntry: A,
3250
- updateEntry: D,
3251
- deleteEntry: I,
3234
+ updateEntry: j,
3235
+ deleteEntry: D,
3252
3236
  download: x
3253
3237
  };
3254
3238
  }
@@ -3492,7 +3476,7 @@ function Lh({ opened: e, onClose: t, ...r }) {
3492
3476
  }), u = async (f) => {
3493
3477
  await o(f), c.reset(), t();
3494
3478
  };
3495
- return ke(() => {
3479
+ return $e(() => {
3496
3480
  c.setInitialValues(n.add.defaultValues), c.reset();
3497
3481
  }, [n.add.defaultValues]), /* @__PURE__ */ d.jsx(
3498
3482
  Nr,
@@ -3537,8 +3521,8 @@ function zh() {
3537
3521
  if (Ns)
3538
3522
  return ae;
3539
3523
  Ns = 1;
3540
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3541
- function D(x) {
3524
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3525
+ function j(x) {
3542
3526
  if (typeof x == "object" && x !== null) {
3543
3527
  var O = x.$$typeof;
3544
3528
  switch (O) {
@@ -3555,8 +3539,8 @@ function zh() {
3555
3539
  switch (x = x && x.$$typeof, x) {
3556
3540
  case s:
3557
3541
  case u:
3558
- case g:
3559
3542
  case y:
3543
+ case g:
3560
3544
  case i:
3561
3545
  return x;
3562
3546
  default:
@@ -3568,36 +3552,36 @@ function zh() {
3568
3552
  }
3569
3553
  }
3570
3554
  }
3571
- function I(x) {
3572
- return D(x) === c;
3555
+ function D(x) {
3556
+ return j(x) === c;
3573
3557
  }
3574
- return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy = g, ae.Memo = y, ae.Portal = r, ae.Profiler = a, ae.StrictMode = o, ae.Suspense = f, ae.isAsyncMode = function(x) {
3575
- return I(x) || D(x) === l;
3576
- }, ae.isConcurrentMode = I, ae.isContextConsumer = function(x) {
3577
- return D(x) === s;
3558
+ return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy = y, ae.Memo = g, ae.Portal = r, ae.Profiler = a, ae.StrictMode = o, ae.Suspense = f, ae.isAsyncMode = function(x) {
3559
+ return D(x) || j(x) === l;
3560
+ }, ae.isConcurrentMode = D, ae.isContextConsumer = function(x) {
3561
+ return j(x) === s;
3578
3562
  }, ae.isContextProvider = function(x) {
3579
- return D(x) === i;
3563
+ return j(x) === i;
3580
3564
  }, ae.isElement = function(x) {
3581
3565
  return typeof x == "object" && x !== null && x.$$typeof === t;
3582
3566
  }, ae.isForwardRef = function(x) {
3583
- return D(x) === u;
3567
+ return j(x) === u;
3584
3568
  }, ae.isFragment = function(x) {
3585
- return D(x) === n;
3569
+ return j(x) === n;
3586
3570
  }, ae.isLazy = function(x) {
3587
- return D(x) === g;
3571
+ return j(x) === y;
3588
3572
  }, ae.isMemo = function(x) {
3589
- return D(x) === y;
3573
+ return j(x) === g;
3590
3574
  }, ae.isPortal = function(x) {
3591
- return D(x) === r;
3575
+ return j(x) === r;
3592
3576
  }, ae.isProfiler = function(x) {
3593
- return D(x) === a;
3577
+ return j(x) === a;
3594
3578
  }, ae.isStrictMode = function(x) {
3595
- return D(x) === o;
3579
+ return j(x) === o;
3596
3580
  }, ae.isSuspense = function(x) {
3597
- return D(x) === f;
3581
+ return j(x) === f;
3598
3582
  }, ae.isValidElementType = function(x) {
3599
- return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === g || x.$$typeof === y || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === b || x.$$typeof === T || x.$$typeof === A || x.$$typeof === h);
3600
- }, ae.typeOf = D, ae;
3583
+ return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === g || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === b || x.$$typeof === T || x.$$typeof === A || x.$$typeof === h);
3584
+ }, ae.typeOf = j, ae;
3601
3585
  }
3602
3586
  var ie = {};
3603
3587
  /** @license React v16.13.1
@@ -3611,84 +3595,84 @@ var ie = {};
3611
3595
  var Fs;
3612
3596
  function Uh() {
3613
3597
  return Fs || (Fs = 1, process.env.NODE_ENV !== "production" && function() {
3614
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3615
- function D(P) {
3598
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3599
+ function j(P) {
3616
3600
  return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3617
- P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === y || P.$$typeof === i || P.$$typeof === s || P.$$typeof === u || P.$$typeof === b || P.$$typeof === T || P.$$typeof === A || P.$$typeof === h);
3601
+ P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === g || P.$$typeof === i || P.$$typeof === s || P.$$typeof === u || P.$$typeof === b || P.$$typeof === T || P.$$typeof === A || P.$$typeof === h);
3618
3602
  }
3619
- function I(P) {
3603
+ function D(P) {
3620
3604
  if (typeof P == "object" && P !== null) {
3621
- var $e = P.$$typeof;
3622
- switch ($e) {
3605
+ var Pe = P.$$typeof;
3606
+ switch (Pe) {
3623
3607
  case t:
3624
- var j = P.type;
3625
- switch (j) {
3608
+ var I = P.type;
3609
+ switch (I) {
3626
3610
  case l:
3627
3611
  case c:
3628
3612
  case n:
3629
3613
  case a:
3630
3614
  case o:
3631
3615
  case f:
3632
- return j;
3616
+ return I;
3633
3617
  default:
3634
- var Ge = j && j.$$typeof;
3618
+ var Ge = I && I.$$typeof;
3635
3619
  switch (Ge) {
3636
3620
  case s:
3637
3621
  case u:
3638
- case g:
3639
3622
  case y:
3623
+ case g:
3640
3624
  case i:
3641
3625
  return Ge;
3642
3626
  default:
3643
- return $e;
3627
+ return Pe;
3644
3628
  }
3645
3629
  }
3646
3630
  case r:
3647
- return $e;
3631
+ return Pe;
3648
3632
  }
3649
3633
  }
3650
3634
  }
3651
- var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te = g, ce = y, pe = r, He = a, Ae = o, Ze = f, it = !1;
3635
+ var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te = y, ce = g, pe = r, He = a, Ae = o, Ze = f, it = !1;
3652
3636
  function xt(P) {
3653
- return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(P) || I(P) === l;
3637
+ return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(P) || D(P) === l;
3654
3638
  }
3655
3639
  function S(P) {
3656
- return I(P) === c;
3640
+ return D(P) === c;
3657
3641
  }
3658
3642
  function C(P) {
3659
- return I(P) === s;
3643
+ return D(P) === s;
3660
3644
  }
3661
3645
  function W(P) {
3662
- return I(P) === i;
3646
+ return D(P) === i;
3663
3647
  }
3664
3648
  function M(P) {
3665
3649
  return typeof P == "object" && P !== null && P.$$typeof === t;
3666
3650
  }
3667
3651
  function U(P) {
3668
- return I(P) === u;
3652
+ return D(P) === u;
3669
3653
  }
3670
3654
  function N(P) {
3671
- return I(P) === n;
3655
+ return D(P) === n;
3672
3656
  }
3673
3657
  function L(P) {
3674
- return I(P) === g;
3658
+ return D(P) === y;
3675
3659
  }
3676
3660
  function B(P) {
3677
- return I(P) === y;
3661
+ return D(P) === g;
3678
3662
  }
3679
3663
  function H(P) {
3680
- return I(P) === r;
3664
+ return D(P) === r;
3681
3665
  }
3682
3666
  function q(P) {
3683
- return I(P) === a;
3667
+ return D(P) === a;
3684
3668
  }
3685
3669
  function G(P) {
3686
- return I(P) === o;
3670
+ return D(P) === o;
3687
3671
  }
3688
3672
  function Ee(P) {
3689
- return I(P) === f;
3673
+ return D(P) === f;
3690
3674
  }
3691
- ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType = D, ie.typeOf = I;
3675
+ ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType = j, ie.typeOf = D;
3692
3676
  }()), ie;
3693
3677
  }
3694
3678
  var Ls;
@@ -3790,16 +3774,16 @@ function Bh() {
3790
3774
  throw p.name = "Invariant Violation", p;
3791
3775
  }
3792
3776
  f = a[u](i, u, l, s, null, t);
3793
- } catch (g) {
3794
- f = g;
3777
+ } catch (y) {
3778
+ f = y;
3795
3779
  }
3796
3780
  if (f && !(f instanceof Error) && e(
3797
3781
  (l || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
3798
3782
  ), f instanceof Error && !(f.message in r)) {
3799
3783
  r[f.message] = !0;
3800
- var y = c ? c() : "";
3784
+ var g = c ? c() : "";
3801
3785
  e(
3802
- "Failed " + s + " type: " + f.message + (y ?? "")
3786
+ "Failed " + s + " type: " + f.message + (g ?? "")
3803
3787
  );
3804
3788
  }
3805
3789
  }
@@ -3834,7 +3818,7 @@ function Wh() {
3834
3818
  if (typeof C == "function")
3835
3819
  return C;
3836
3820
  }
3837
- var p = "<<anonymous>>", y = {
3821
+ var p = "<<anonymous>>", g = {
3838
3822
  array: T("array"),
3839
3823
  bigint: T("bigint"),
3840
3824
  bool: T("boolean"),
@@ -3844,8 +3828,8 @@ function Wh() {
3844
3828
  string: T("string"),
3845
3829
  symbol: T("symbol"),
3846
3830
  any: A(),
3847
- arrayOf: D,
3848
- element: I(),
3831
+ arrayOf: j,
3832
+ element: D(),
3849
3833
  elementType: x(),
3850
3834
  instanceOf: O,
3851
3835
  node: _e(),
@@ -3855,7 +3839,7 @@ function Wh() {
3855
3839
  shape: te,
3856
3840
  exact: ce
3857
3841
  };
3858
- function g(S, C) {
3842
+ function y(S, C) {
3859
3843
  return S === C ? S !== 0 || 1 / S === 1 / C : S !== S && C !== C;
3860
3844
  }
3861
3845
  function h(S, C) {
@@ -3873,11 +3857,11 @@ function Wh() {
3873
3857
  );
3874
3858
  throw P.name = "Invariant Violation", P;
3875
3859
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
3876
- var $e = H + ":" + B;
3877
- !C[$e] && // Avoid spamming the console because they are often not actionable except for lib authors
3860
+ var Pe = H + ":" + B;
3861
+ !C[Pe] && // Avoid spamming the console because they are often not actionable except for lib authors
3878
3862
  W < 3 && (a(
3879
3863
  "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
3880
- ), C[$e] = !0, W++);
3864
+ ), C[Pe] = !0, W++);
3881
3865
  }
3882
3866
  }
3883
3867
  return L[B] == null ? N ? L[B] === null ? new h("The " + q + " `" + G + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new h("The " + q + " `" + G + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : S(L, B, H, q, G);
@@ -3902,7 +3886,7 @@ function Wh() {
3902
3886
  function A() {
3903
3887
  return b(i);
3904
3888
  }
3905
- function D(S) {
3889
+ function j(S) {
3906
3890
  function C(W, M, U, N, L) {
3907
3891
  if (typeof S != "function")
3908
3892
  return new h("Property `" + L + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
@@ -3920,7 +3904,7 @@ function Wh() {
3920
3904
  }
3921
3905
  return b(C);
3922
3906
  }
3923
- function I() {
3907
+ function D() {
3924
3908
  function S(C, W, M, U, N) {
3925
3909
  var L = C[W];
3926
3910
  if (!s(L)) {
@@ -3959,11 +3943,11 @@ function Wh() {
3959
3943
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
3960
3944
  function C(W, M, U, N, L) {
3961
3945
  for (var B = W[M], H = 0; H < S.length; H++)
3962
- if (g(B, S[H]))
3946
+ if (y(B, S[H]))
3963
3947
  return null;
3964
3948
  var q = JSON.stringify(S, function(Ee, P) {
3965
- var $e = Ze(P);
3966
- return $e === "symbol" ? String(P) : P;
3949
+ var Pe = Ze(P);
3950
+ return Pe === "symbol" ? String(P) : P;
3967
3951
  });
3968
3952
  return new h("Invalid " + N + " `" + L + "` of value `" + String(B) + "` " + ("supplied to `" + U + "`, expected one of " + q + "."));
3969
3953
  }
@@ -4003,8 +3987,8 @@ function Wh() {
4003
3987
  return null;
4004
3988
  P.data && n(P.data, "expectedType") && q.push(P.data.expectedType);
4005
3989
  }
4006
- var $e = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
4007
- return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" + $e + "."));
3990
+ var Pe = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
3991
+ return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" + Pe + "."));
4008
3992
  }
4009
3993
  return b(M);
4010
3994
  }
@@ -4128,7 +4112,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
4128
4112
  function xt(S) {
4129
4113
  return !S.constructor || !S.constructor.name ? p : S.constructor.name;
4130
4114
  }
4131
- return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
4115
+ return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
4132
4116
  }, ga;
4133
4117
  }
4134
4118
  var ya, Hs;
@@ -4227,7 +4211,7 @@ var Kh = {
4227
4211
  strokeWidth: c,
4228
4212
  className: `tabler-icon tabler-icon-${e}`
4229
4213
  }), f),
4230
- [...r.map(([p, y]) => gs(p, y)), ...u || []]
4214
+ [...r.map(([p, g]) => gs(p, g)), ...u || []]
4231
4215
  );
4232
4216
  }
4233
4217
  );
@@ -4408,8 +4392,8 @@ function pm({ form: e, name: t, ...r }) {
4408
4392
  onDropdownOpen: () => n.updateSelectedOptionIndex("active")
4409
4393
  }), [o, a] = fe([]), [i, s] = fe(""), l = (f) => {
4410
4394
  i !== "" && (o.includes(i) || a((p) => [...p, i]), s(""));
4411
- }, c = (f) => a((p) => p.filter((y) => y !== f)), u = o.map((f) => /* @__PURE__ */ d.jsx(ys, { withRemoveButton: !0, onRemove: () => c(f), children: f }, f));
4412
- return ke(() => {
4395
+ }, c = (f) => a((p) => p.filter((g) => g !== f)), u = o.map((f) => /* @__PURE__ */ d.jsx(ys, { withRemoveButton: !0, onRemove: () => c(f), children: f }, f));
4396
+ return $e(() => {
4413
4397
  if (e.getInputProps(t).value)
4414
4398
  try {
4415
4399
  const f = JSON.parse(String(e.getInputProps(t).value));
@@ -4419,7 +4403,7 @@ function pm({ form: e, name: t, ...r }) {
4419
4403
  }
4420
4404
  else
4421
4405
  e.getInputProps(t).onChange([]);
4422
- }, []), ke(() => {
4406
+ }, []), $e(() => {
4423
4407
  e.getInputProps(t).onChange(o);
4424
4408
  }, [o]), /* @__PURE__ */ d.jsxs(
4425
4409
  Er,
@@ -4477,9 +4461,9 @@ function hm({ onClose: e, ...t }) {
4477
4461
  size: "sm",
4478
4462
  c: "gray"
4479
4463
  }, t);
4480
- ke(() => {
4464
+ $e(() => {
4481
4465
  i.setValues({ filters: [] }), i.reset();
4482
- }, [a]), ke(() => {
4466
+ }, [a]), $e(() => {
4483
4467
  if (n.filters && n.filters.length) {
4484
4468
  const f = n.filters.map((p) => ({
4485
4469
  ...p,
@@ -4489,8 +4473,8 @@ function hm({ onClose: e, ...t }) {
4489
4473
  }
4490
4474
  }, [n.filters]);
4491
4475
  const c = (f) => {
4492
- const p = f.filters.map(({ key: g, ...h }) => h), y = JSON.parse(JSON.stringify(p));
4493
- o({ filters: y, page: 0 }), e();
4476
+ const p = f.filters.map(({ key: y, ...h }) => h), g = JSON.parse(JSON.stringify(p));
4477
+ o({ filters: g, page: 0 }), e();
4494
4478
  }, u = i.values.filters.map((f, p) => /* @__PURE__ */ d.jsxs(Me, { px: "sm", children: [
4495
4479
  /* @__PURE__ */ d.jsxs(Po, { my: "md", gap: "md", style: { whiteSpace: "nowrap" }, children: [
4496
4480
  /* @__PURE__ */ d.jsx(Me, { style: { width: "192px" }, children: r && r.filters && /* @__PURE__ */ d.jsx(
@@ -4498,12 +4482,12 @@ function hm({ onClose: e, ...t }) {
4498
4482
  {
4499
4483
  form: i,
4500
4484
  name: `filters.${p}.col`,
4501
- items: Object.entries(r.filters).map(([y, g]) => ({
4502
- label: g.label,
4503
- value: String(y)
4485
+ items: Object.entries(r.filters).map(([g, y]) => ({
4486
+ label: y.label,
4487
+ value: String(g)
4504
4488
  })),
4505
- onChange: (y) => {
4506
- i.setFieldValue(`filters.${p}`, { col: y, opr: "", value: "", key: Gn() });
4489
+ onChange: (g) => {
4490
+ i.setFieldValue(`filters.${p}`, { col: g, opr: "", value: "", key: Gn() });
4507
4491
  }
4508
4492
  }
4509
4493
  ) }),
@@ -4512,14 +4496,14 @@ function hm({ onClose: e, ...t }) {
4512
4496
  {
4513
4497
  form: i,
4514
4498
  name: `filters.${p}.opr`,
4515
- items: r.filters[f.col].filters.map((y) => ({
4516
- label: y.name,
4517
- value: y.operator
4499
+ items: r.filters[f.col].filters.map((g) => ({
4500
+ label: g.name,
4501
+ value: g.operator
4518
4502
  })),
4519
- onChange: (y) => {
4503
+ onChange: (g) => {
4520
4504
  i.setFieldValue(`filters.${p}`, {
4521
4505
  col: i.values.filters[p].col,
4522
- opr: y,
4506
+ opr: g,
4523
4507
  value: "",
4524
4508
  key: Gn()
4525
4509
  });
@@ -4643,29 +4627,29 @@ function va({
4643
4627
  customElement: l,
4644
4628
  ...c
4645
4629
  }) {
4646
- const { queryParams: u, setQueryParams: f, loading: p } = We(), y = {
4630
+ const { queryParams: u, setQueryParams: f, loading: p } = We(), g = {
4647
4631
  fw: 700,
4648
4632
  size: "sm",
4649
4633
  color: "gray.8",
4650
4634
  hoverColor: "gray.6",
4651
4635
  selectedColor: "blue"
4652
- }, g = ui({
4636
+ }, y = ui({
4653
4637
  name: "FieldTitle",
4654
4638
  classes: Js,
4655
4639
  classNames: i,
4656
4640
  styles: s,
4657
4641
  props: c
4658
- }), h = Be("FieldTitle", y, c), { hovered: b, ref: T } = Yd(), A = r && u.order_column === r;
4642
+ }), h = Be("FieldTitle", g, c), { hovered: b, ref: T } = Yd(), A = r && u.order_column === r;
4659
4643
  return /* @__PURE__ */ d.jsx(
4660
- Pe.Th,
4644
+ Re.Th,
4661
4645
  {
4662
4646
  className: Js.fieldTitleRoot,
4663
- ...g("root"),
4647
+ ...y("root"),
4664
4648
  onClick: r && !p ? () => f({
4665
4649
  order_column: r,
4666
4650
  order_direction: u.order_direction === "asc" ? "desc" : "asc"
4667
4651
  }) : null,
4668
- children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...g("wrapper"), children: e === "Checkbox" ? /* @__PURE__ */ d.jsx(fi, { pb: 5, pl: 2, onChange: o, checked: a }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4652
+ children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...y("wrapper"), children: e === "Checkbox" ? /* @__PURE__ */ d.jsx(fi, { pb: 5, pl: 2, onChange: o, checked: a }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4669
4653
  /* @__PURE__ */ d.jsx(
4670
4654
  Me,
4671
4655
  {
@@ -4681,9 +4665,9 @@ function va({
4681
4665
  {
4682
4666
  label: "rel",
4683
4667
  style: { indicator: { top: "-1px !important", right: "-2px !important", padding: "4px" } },
4684
- children: /* @__PURE__ */ d.jsx(Me, { ...g("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4668
+ children: /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4685
4669
  }
4686
- ) }) : /* @__PURE__ */ d.jsx(Me, { ...g("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4670
+ ) }) : /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4687
4671
  ] }) })
4688
4672
  }
4689
4673
  );
@@ -4692,19 +4676,19 @@ const Eu = Ao(
4692
4676
  ({ data: e, info: t, settings: r, hideActions: n, hideCheckbox: o, allChecked: a, toggleAll: i, headerCustomizer: s }) => {
4693
4677
  const l = e.list_columns.includes("actions") ? "_actions" : "actions";
4694
4678
  let c = s == null ? void 0 : s[l];
4695
- return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(Pe.Thead, { children: /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
4679
+ return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(Re.Thead, { children: /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
4696
4680
  o ? null : /* @__PURE__ */ d.jsx(va, { data: e, column: "Checkbox", allChecked: a, toggleAll: i }),
4697
4681
  n ? null : /* @__PURE__ */ d.jsx(va, { column: "Actions", customElement: c }),
4698
4682
  e.list_columns.map((u, f) => {
4699
- var y;
4683
+ var g;
4700
4684
  let p = s == null ? void 0 : s[u];
4701
4685
  return typeof p == "function" && (p = p(e.label_columns[u])), p === null ? null : /* @__PURE__ */ d.jsx(
4702
4686
  va,
4703
4687
  {
4704
4688
  column: u,
4705
4689
  label: e.label_columns[u],
4706
- orderColumn: e.order_columns.find((g) => g === u) || e.order_columns.find((g) => g.startsWith(`${u}.`)),
4707
- related: ((y = t.filters[u]) == null ? void 0 : y.schema.type) === "Nested",
4690
+ orderColumn: e.order_columns.find((y) => y === u) || e.order_columns.find((y) => y.startsWith(`${u}.`)),
4691
+ related: ((g = t.filters[u]) == null ? void 0 : g.schema.type) === "Nested",
4708
4692
  customElement: p
4709
4693
  },
4710
4694
  u
@@ -4840,20 +4824,20 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
4840
4824
  initialValues: t.edit.defaultValues,
4841
4825
  validate: ki(t.edit.schema)
4842
4826
  }), f = () => {
4843
- const y = {};
4844
- return Object.keys(u.values).forEach((g) => {
4845
- u.isDirty(g) && (y[g] = !0);
4846
- }), y;
4827
+ const g = {};
4828
+ return Object.keys(u.values).forEach((y) => {
4829
+ u.isDirty(y) && (g[y] = !0);
4830
+ }), g;
4847
4831
  };
4848
- ke(() => {
4849
- e && wm(e, t).then((y) => {
4850
- u.setValues(y), u.resetDirty(y);
4832
+ $e(() => {
4833
+ e && wm(e, t).then((g) => {
4834
+ u.setValues(g), u.resetDirty(g);
4851
4835
  });
4852
4836
  }, [e, t.edit.columns]);
4853
- const p = async (y) => {
4854
- y = Su(f(), y), await a(e.id, y), n();
4837
+ const p = async (g) => {
4838
+ g = Su(f(), g), await a(e.id, g), n();
4855
4839
  };
4856
- return ke(() => {
4840
+ return $e(() => {
4857
4841
  u.setInitialValues(t.edit.defaultValues), u.reset();
4858
4842
  }, [t.edit.defaultValues]), e ? /* @__PURE__ */ d.jsx(
4859
4843
  Nr,
@@ -4867,17 +4851,17 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
4867
4851
  centered: !0,
4868
4852
  ...s,
4869
4853
  children: /* @__PURE__ */ d.jsx(Me, { component: "form", onSubmit: u.onSubmit(p), children: /* @__PURE__ */ d.jsx($o, { spacing: "md", ...l, children: /* @__PURE__ */ d.jsxs(Sn.Autosize, { mah: 450, type: "auto", children: [
4870
- t.edit.columns.map((y, g) => /* @__PURE__ */ d.jsx(
4854
+ t.edit.columns.map((g, y) => /* @__PURE__ */ d.jsx(
4871
4855
  ji,
4872
4856
  {
4873
4857
  form: u,
4874
- name: y.name,
4875
- label: y.label,
4876
- description: y.description,
4877
- schema: y,
4878
- withAsterisk: y.required
4858
+ name: g.name,
4859
+ label: g.label,
4860
+ description: g.description,
4861
+ schema: g,
4862
+ withAsterisk: g.required
4879
4863
  },
4880
- g
4864
+ y
4881
4865
  )),
4882
4866
  /* @__PURE__ */ d.jsx(Fr, { position: "right", mt: "xl", children: /* @__PURE__ */ d.jsx(Yt, { type: "submit", ...c, children: "Save" }) })
4883
4867
  ] }) }) })
@@ -4983,7 +4967,7 @@ var Mi = {}, Ni = {};
4983
4967
  }
4984
4968
  e.isTag = r, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
4985
4969
  })(Ni);
4986
- var X = {}, Zt = Re && Re.__extends || function() {
4970
+ var X = {}, Zt = ke && ke.__extends || function() {
4987
4971
  var e = function(t, r) {
4988
4972
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
4989
4973
  n.__proto__ = o;
@@ -5001,7 +4985,7 @@ var X = {}, Zt = Re && Re.__extends || function() {
5001
4985
  }
5002
4986
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
5003
4987
  };
5004
- }(), hn = Re && Re.__assign || function() {
4988
+ }(), hn = ke && ke.__assign || function() {
5005
4989
  return hn = Object.assign || function(e) {
5006
4990
  for (var t, r = 1, n = arguments.length; r < n; r++) {
5007
4991
  t = arguments[r];
@@ -5335,7 +5319,7 @@ function ba(e) {
5335
5319
  return t;
5336
5320
  }
5337
5321
  (function(e) {
5338
- var t = Re && Re.__createBinding || (Object.create ? function(s, l, c, u) {
5322
+ var t = ke && ke.__createBinding || (Object.create ? function(s, l, c, u) {
5339
5323
  u === void 0 && (u = c);
5340
5324
  var f = Object.getOwnPropertyDescriptor(l, c);
5341
5325
  (!f || ("get" in f ? !l.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
@@ -5343,7 +5327,7 @@ function ba(e) {
5343
5327
  } }), Object.defineProperty(s, u, f);
5344
5328
  } : function(s, l, c, u) {
5345
5329
  u === void 0 && (u = c), s[u] = l[c];
5346
- }), r = Re && Re.__exportStar || function(s, l) {
5330
+ }), r = ke && ke.__exportStar || function(s, l) {
5347
5331
  for (var c in s)
5348
5332
  c !== "default" && !Object.prototype.hasOwnProperty.call(l, c) && t(l, s, c);
5349
5333
  };
@@ -5555,7 +5539,7 @@ function Lu(e, t, r) {
5555
5539
  return r && (o = new Zn.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), o.next = n[0] || null, o.parent = t, n.unshift(o), n[1] && (n[1].prev = n[0])), n;
5556
5540
  }
5557
5541
  Dr.formatDOM = Lu;
5558
- var Lm = Re && Re.__importDefault || function(e) {
5542
+ var Lm = ke && ke.__importDefault || function(e) {
5559
5543
  return e && e.__esModule ? e : { default: e };
5560
5544
  };
5561
5545
  Object.defineProperty(zi, "__esModule", { value: !0 });
@@ -6500,31 +6484,31 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6500
6484
  return [];
6501
6485
  t = t || {};
6502
6486
  var r = 1, n = 1;
6503
- function o(g) {
6504
- var h = g.match(tg);
6487
+ function o(y) {
6488
+ var h = y.match(tg);
6505
6489
  h && (r += h.length);
6506
- var b = g.lastIndexOf(lg);
6507
- n = ~b ? g.length - b : n + g.length;
6490
+ var b = y.lastIndexOf(lg);
6491
+ n = ~b ? y.length - b : n + y.length;
6508
6492
  }
6509
6493
  function a() {
6510
- var g = { line: r, column: n };
6494
+ var y = { line: r, column: n };
6511
6495
  return function(h) {
6512
- return h.position = new i(g), c(), h;
6496
+ return h.position = new i(y), c(), h;
6513
6497
  };
6514
6498
  }
6515
- function i(g) {
6516
- this.start = g, this.end = { line: r, column: n }, this.source = t.source;
6499
+ function i(y) {
6500
+ this.start = y, this.end = { line: r, column: n }, this.source = t.source;
6517
6501
  }
6518
6502
  i.prototype.content = e;
6519
- function s(g) {
6503
+ function s(y) {
6520
6504
  var h = new Error(
6521
- t.source + ":" + r + ":" + n + ": " + g
6505
+ t.source + ":" + r + ":" + n + ": " + y
6522
6506
  );
6523
- if (h.reason = g, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
6507
+ if (h.reason = y, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
6524
6508
  throw h;
6525
6509
  }
6526
- function l(g) {
6527
- var h = g.exec(e);
6510
+ function l(y) {
6511
+ var h = y.exec(e);
6528
6512
  if (h) {
6529
6513
  var b = h[0];
6530
6514
  return o(b), e = e.slice(b.length), h;
@@ -6533,32 +6517,32 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6533
6517
  function c() {
6534
6518
  l(rg);
6535
6519
  }
6536
- function u(g) {
6520
+ function u(y) {
6537
6521
  var h;
6538
- for (g = g || []; h = f(); )
6539
- h !== !1 && g.push(h);
6540
- return g;
6522
+ for (y = y || []; h = f(); )
6523
+ h !== !1 && y.push(h);
6524
+ return y;
6541
6525
  }
6542
6526
  function f() {
6543
- var g = a();
6527
+ var y = a();
6544
6528
  if (!(il != e.charAt(0) || sl != e.charAt(1))) {
6545
6529
  for (var h = 2; lr != e.charAt(h) && (sl != e.charAt(h) || il != e.charAt(h + 1)); )
6546
6530
  ++h;
6547
6531
  if (h += 2, lr === e.charAt(h - 1))
6548
6532
  return s("End of comment missing");
6549
6533
  var b = e.slice(2, h - 2);
6550
- return n += 2, o(b), e = e.slice(h), n += 2, g({
6534
+ return n += 2, o(b), e = e.slice(h), n += 2, y({
6551
6535
  type: cg,
6552
6536
  comment: b
6553
6537
  });
6554
6538
  }
6555
6539
  }
6556
6540
  function p() {
6557
- var g = a(), h = l(ng);
6541
+ var y = a(), h = l(ng);
6558
6542
  if (h) {
6559
6543
  if (f(), !l(og))
6560
6544
  return s("property missing ':'");
6561
- var b = l(ag), T = g({
6545
+ var b = l(ag), T = y({
6562
6546
  type: ug,
6563
6547
  property: ll(h[0].replace(al, lr)),
6564
6548
  value: b ? ll(b[0].replace(al, lr)) : lr
@@ -6566,19 +6550,19 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6566
6550
  return l(ig), T;
6567
6551
  }
6568
6552
  }
6569
- function y() {
6570
- var g = [];
6571
- u(g);
6553
+ function g() {
6554
+ var y = [];
6555
+ u(y);
6572
6556
  for (var h; h = p(); )
6573
- h !== !1 && (g.push(h), u(g));
6574
- return g;
6557
+ h !== !1 && (y.push(h), u(y));
6558
+ return y;
6575
6559
  }
6576
- return c(), y();
6560
+ return c(), g();
6577
6561
  };
6578
6562
  function ll(e) {
6579
6563
  return e ? e.replace(sg, lr) : lr;
6580
6564
  }
6581
- var dg = Re && Re.__importDefault || function(e) {
6565
+ var dg = ke && ke.__importDefault || function(e) {
6582
6566
  return e && e.__esModule ? e : { default: e };
6583
6567
  };
6584
6568
  Object.defineProperty(Gi, "__esModule", { value: !0 });
@@ -6609,7 +6593,7 @@ var mg = /^--[a-zA-Z0-9-]+$/, gg = /-([a-z])/g, yg = /^[^-]+$/, vg = /^-(webkit|
6609
6593
  return t === void 0 && (t = {}), xg(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(bg, cl) : e = e.replace(vg, cl), e.replace(gg, _g));
6610
6594
  };
6611
6595
  Lo.camelCase = Eg;
6612
- var Tg = Re && Re.__importDefault || function(e) {
6596
+ var Tg = ke && ke.__importDefault || function(e) {
6613
6597
  return e && e.__esModule ? e : { default: e };
6614
6598
  };
6615
6599
  Object.defineProperty(Hi, "__esModule", { value: !0 });
@@ -6699,7 +6683,7 @@ function fl(e) {
6699
6683
  var Lg = je, zg = Hu, yn = Wu, Ug = yn.setStyleProp, Vg = yn.canTextBeChildOfNode;
6700
6684
  function Gu(e, t) {
6701
6685
  t = t || {};
6702
- for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p, y, g = t.trim, h = 0, b = e.length; h < b; h++) {
6686
+ for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p, g, y = t.trim, h = 0, b = e.length; h < b; h++) {
6703
6687
  if (s = e[h], c && (f = t.replace(s), a(f))) {
6704
6688
  b > 1 && (f = n(f, {
6705
6689
  key: f.key || h
@@ -6707,12 +6691,12 @@ function Gu(e, t) {
6707
6691
  continue;
6708
6692
  }
6709
6693
  if (s.type === "text") {
6710
- if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) || g && l)
6694
+ if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) || y && l)
6711
6695
  continue;
6712
6696
  i.push(u(s.data, s, h));
6713
6697
  continue;
6714
6698
  }
6715
- switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)), y = null, s.type) {
6699
+ switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)), g = null, s.type) {
6716
6700
  case "script":
6717
6701
  case "style":
6718
6702
  s.children[0] && (p.dangerouslySetInnerHTML = {
@@ -6720,12 +6704,12 @@ function Gu(e, t) {
6720
6704
  });
6721
6705
  break;
6722
6706
  case "tag":
6723
- s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (y = Gu(s.children, t));
6707
+ s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (g = Gu(s.children, t));
6724
6708
  break;
6725
6709
  default:
6726
6710
  continue;
6727
6711
  }
6728
- b > 1 && (p.key = h), i.push(u(o(s.name, p, y), s, h));
6712
+ b > 1 && (p.key = h), i.push(u(o(s.name, p, g), s, h));
6729
6713
  }
6730
6714
  return i.length === 1 ? i[0] : i;
6731
6715
  }
@@ -6920,13 +6904,13 @@ function Zu() {
6920
6904
  NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap,
6921
6905
  HTMLFormElement: f,
6922
6906
  DOMParser: p,
6923
- trustedTypes: y
6924
- } = e, g = l.prototype, h = ln(g, "cloneNode"), b = ln(g, "remove"), T = ln(g, "nextSibling"), A = ln(g, "childNodes"), D = ln(g, "parentNode");
6907
+ trustedTypes: g
6908
+ } = e, y = l.prototype, h = ln(y, "cloneNode"), b = ln(y, "remove"), T = ln(y, "nextSibling"), A = ln(y, "childNodes"), j = ln(y, "parentNode");
6925
6909
  if (typeof i == "function") {
6926
6910
  const w = r.createElement("template");
6927
6911
  w.content && w.content.ownerDocument && (r = w.content.ownerDocument);
6928
6912
  }
6929
- let I, x = "";
6913
+ let D, x = "";
6930
6914
  const {
6931
6915
  implementation: O,
6932
6916
  createNodeIterator: k,
@@ -6936,7 +6920,7 @@ function Zu() {
6936
6920
  importNode: _e
6937
6921
  } = n;
6938
6922
  let F = {};
6939
- t.isSupported = typeof Yu == "function" && typeof D == "function" && O && O.createHTMLDocument !== void 0;
6923
+ t.isSupported = typeof Yu == "function" && typeof j == "function" && O && O.createHTMLDocument !== void 0;
6940
6924
  const {
6941
6925
  MUSTACHE_EXPR: te,
6942
6926
  ERB_EXPR: ce,
@@ -6972,7 +6956,7 @@ function Zu() {
6972
6956
  enumerable: !0,
6973
6957
  value: !1
6974
6958
  }
6975
- })), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1, $e = !0, j = !1, Ge = !1, Qe = !1, dt = !1, rr = !1, Dt = !1, kn = !0, jn = !1;
6959
+ })), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1, Pe = !0, I = !1, Ge = !1, Qe = !1, dt = !1, rr = !1, Dt = !1, kn = !0, jn = !1;
6976
6960
  const Xr = "user-content-";
6977
6961
  let Jr = !0, nr = !1, Mt = {}, Nt = null;
6978
6962
  const Bt = K({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -7005,18 +6989,18 @@ function Zu() {
7005
6989
  // eslint-disable-line indent
7006
6990
  ve
7007
6991
  // eslint-disable-line indent
7008
- ) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1, $e = v.SAFE_FOR_XML !== !1, j = v.WHOLE_DOCUMENT || !1, dt = v.RETURN_DOM || !1, rr = v.RETURN_DOM_FRAGMENT || !1, Dt = v.RETURN_TRUSTED_TYPE || !1, Qe = v.FORCE_BODY || !1, kn = v.SANITIZE_DOM !== !1, jn = v.SANITIZE_NAMED_PROPS || !1, Jr = v.KEEP_CONTENT !== !1, nr = v.IN_PLACE || !1, S = v.ALLOWED_URI_REGEXP || Xu, Wt = v.NAMESPACE || _t, N = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (q = !1), rr && (dt = !0), Mt && (C = K({}, gl), M = [], Mt.html === !0 && (K(C, ml), K(M, yl)), Mt.svg === !0 && (K(C, _a), K(M, Sa), K(M, eo)), Mt.svgFilters === !0 && (K(C, Ea), K(M, Sa), K(M, eo)), Mt.mathMl === !0 && (K(C, Ta), K(M, vl), K(M, eo))), v.ADD_TAGS && (C === W && (C = ir(C)), K(C, v.ADD_TAGS, ve)), v.ADD_ATTR && (M === U && (M = ir(M)), K(M, v.ADD_ATTR, ve)), v.ADD_URI_SAFE_ATTR && K(gr, v.ADD_URI_SAFE_ATTR, ve), v.FORBID_CONTENTS && (Nt === Bt && (Nt = ir(Nt)), K(Nt, v.FORBID_CONTENTS, ve)), Jr && (C["#text"] = !0), j && K(C, ["html", "head", "body"]), C.table && (K(C, ["tbody"]), delete L.tbody), v.TRUSTED_TYPES_POLICY) {
6992
+ ) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1, Pe = v.SAFE_FOR_XML !== !1, I = v.WHOLE_DOCUMENT || !1, dt = v.RETURN_DOM || !1, rr = v.RETURN_DOM_FRAGMENT || !1, Dt = v.RETURN_TRUSTED_TYPE || !1, Qe = v.FORCE_BODY || !1, kn = v.SANITIZE_DOM !== !1, jn = v.SANITIZE_NAMED_PROPS || !1, Jr = v.KEEP_CONTENT !== !1, nr = v.IN_PLACE || !1, S = v.ALLOWED_URI_REGEXP || Xu, Wt = v.NAMESPACE || _t, N = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (q = !1), rr && (dt = !0), Mt && (C = K({}, gl), M = [], Mt.html === !0 && (K(C, ml), K(M, yl)), Mt.svg === !0 && (K(C, _a), K(M, Sa), K(M, eo)), Mt.svgFilters === !0 && (K(C, Ea), K(M, Sa), K(M, eo)), Mt.mathMl === !0 && (K(C, Ta), K(M, vl), K(M, eo))), v.ADD_TAGS && (C === W && (C = ir(C)), K(C, v.ADD_TAGS, ve)), v.ADD_ATTR && (M === U && (M = ir(M)), K(M, v.ADD_ATTR, ve)), v.ADD_URI_SAFE_ATTR && K(gr, v.ADD_URI_SAFE_ATTR, ve), v.FORBID_CONTENTS && (Nt === Bt && (Nt = ir(Nt)), K(Nt, v.FORBID_CONTENTS, ve)), Jr && (C["#text"] = !0), I && K(C, ["html", "head", "body"]), C.table && (K(C, ["tbody"]), delete L.tbody), v.TRUSTED_TYPES_POLICY) {
7009
6993
  if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
7010
6994
  throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
7011
6995
  if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
7012
6996
  throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
7013
- I = v.TRUSTED_TYPES_POLICY, x = I.createHTML("");
6997
+ D = v.TRUSTED_TYPES_POLICY, x = D.createHTML("");
7014
6998
  } else
7015
- I === void 0 && (I = dy(y, o)), I !== null && typeof x == "string" && (x = I.createHTML(""));
6999
+ D === void 0 && (D = dy(g, o)), D !== null && typeof x == "string" && (x = D.createHTML(""));
7016
7000
  Ke && Ke(v), At = v;
7017
7001
  }
7018
7002
  }, Fn = K({}, ["mi", "mo", "mn", "ms", "mtext"]), tn = K({}, ["foreignobject", "annotation-xml"]), Ln = K({}, ["title", "style", "font", "a", "script"]), zn = K({}, [..._a, ...Ea, ...ty]), Un = K({}, [...Ta, ...ry]), Vn = function(v) {
7019
- let E = D(v);
7003
+ let E = j(v);
7020
7004
  (!E || !E.tagName) && (E = {
7021
7005
  namespaceURI: Wt,
7022
7006
  tagName: "template"
@@ -7028,7 +7012,7 @@ function Zu() {
7028
7012
  element: v
7029
7013
  });
7030
7014
  try {
7031
- D(v).removeChild(v);
7015
+ j(v).removeChild(v);
7032
7016
  } catch {
7033
7017
  b(v);
7034
7018
  }
@@ -7064,7 +7048,7 @@ function Zu() {
7064
7048
  $ = he && he[0];
7065
7049
  }
7066
7050
  Ft === "application/xhtml+xml" && Wt === _t && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
7067
- const Y = I ? I.createHTML(v) : v;
7051
+ const Y = D ? D.createHTML(v) : v;
7068
7052
  if (Wt === _t)
7069
7053
  try {
7070
7054
  E = new p().parseFromString(Y, Ft);
@@ -7078,7 +7062,7 @@ function Zu() {
7078
7062
  }
7079
7063
  }
7080
7064
  const ye = E.body || E.documentElement;
7081
- return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E, j ? "html" : "body")[0] : j ? E.documentElement : ye;
7065
+ return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E, I ? "html" : "body")[0] : I ? E.documentElement : ye;
7082
7066
  }, Wn = function(v) {
7083
7067
  return k.call(
7084
7068
  v.ownerDocument || v,
@@ -7103,13 +7087,13 @@ function Zu() {
7103
7087
  if (_("uponSanitizeElement", v, {
7104
7088
  tagName: $,
7105
7089
  allowedTags: C
7106
- }), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction || $e && v.nodeType === cn.comment && qe(/<[/\w]/g, v.data))
7090
+ }), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction || Pe && v.nodeType === cn.comment && qe(/<[/\w]/g, v.data))
7107
7091
  return st(v), !0;
7108
7092
  if (!C[$] || L[$]) {
7109
7093
  if (!L[$] && Q($) && (N.tagNameCheck instanceof RegExp && qe(N.tagNameCheck, $) || N.tagNameCheck instanceof Function && N.tagNameCheck($)))
7110
7094
  return !1;
7111
7095
  if (Jr && !Nt[$]) {
7112
- const Y = D(v) || v.parentNode, ye = A(v) || v.childNodes;
7096
+ const Y = j(v) || v.parentNode, ye = A(v) || v.childNodes;
7113
7097
  if (ye && Y) {
7114
7098
  const he = ye.length;
7115
7099
  for (let ue = he - 1; ue >= 0; --ue) {
@@ -7176,7 +7160,7 @@ function Zu() {
7176
7160
  value: et
7177
7161
  } = ye, or = ve(he);
7178
7162
  let De = he === "value" ? et : Zg(et);
7179
- if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue, $e && qe(/((--!?|])>)|<\/(style|title)/i, De)) {
7163
+ if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue, Pe && qe(/((--!?|])>)|<\/(style|title)/i, De)) {
7180
7164
  _r(he, v);
7181
7165
  continue;
7182
7166
  }
@@ -7191,14 +7175,14 @@ function Zu() {
7191
7175
  });
7192
7176
  const ps = ve(v.nodeName);
7193
7177
  if (z(ps, or, De)) {
7194
- if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De), I && typeof y == "object" && typeof y.getAttributeType == "function" && !ue)
7195
- switch (y.getAttributeType(ps, or)) {
7178
+ if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De), D && typeof g == "object" && typeof g.getAttributeType == "function" && !ue)
7179
+ switch (g.getAttributeType(ps, or)) {
7196
7180
  case "TrustedHTML": {
7197
- De = I.createHTML(De);
7181
+ De = D.createHTML(De);
7198
7182
  break;
7199
7183
  }
7200
7184
  case "TrustedScriptURL": {
7201
- De = I.createScriptURL(De);
7185
+ De = D.createScriptURL(De);
7202
7186
  break;
7203
7187
  }
7204
7188
  }
@@ -7235,9 +7219,9 @@ function Zu() {
7235
7219
  } else if (w instanceof s)
7236
7220
  E = Bn("<!---->"), $ = E.ownerDocument.importNode(w, !0), $.nodeType === cn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? E = $ : E.appendChild($);
7237
7221
  else {
7238
- if (!dt && !P && !j && // eslint-disable-next-line unicorn/prefer-includes
7222
+ if (!dt && !P && !I && // eslint-disable-next-line unicorn/prefer-includes
7239
7223
  w.indexOf("<") === -1)
7240
- return I && Dt ? I.createHTML(w) : w;
7224
+ return D && Dt ? D.createHTML(w) : w;
7241
7225
  if (E = Bn(w), !E)
7242
7226
  return dt ? null : Dt ? x : "";
7243
7227
  }
@@ -7255,11 +7239,11 @@ function Zu() {
7255
7239
  ye = E;
7256
7240
  return (M.shadowroot || M.shadowrootmode) && (ye = _e.call(n, ye, !0)), ye;
7257
7241
  }
7258
- let ue = j ? E.outerHTML : E.innerHTML;
7259
- return j && C["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && qe(Ju, E.ownerDocument.doctype.name) && (ue = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
7242
+ let ue = I ? E.outerHTML : E.innerHTML;
7243
+ return I && C["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && qe(Ju, E.ownerDocument.doctype.name) && (ue = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
7260
7244
  ` + ue), P && Qn([te, ce, pe], (et) => {
7261
7245
  ue = an(ue, et, " ");
7262
- }), I && Dt ? I.createHTML(ue) : ue;
7246
+ }), D && Dt ? D.createHTML(ue) : ue;
7263
7247
  }, t.setConfig = function() {
7264
7248
  let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7265
7249
  xr(w), Ge = !0;
@@ -7290,17 +7274,17 @@ const hy = "_field_zdaf7_1", my = "_rtl_zdaf7_7", gy = "_borderRight_zdaf7_12",
7290
7274
  const c = {
7291
7275
  text: { style: { whiteSpace: "nowrap", overflow: "ellipsis" } }
7292
7276
  }, { text: u } = Be("Field", c, l), f = {};
7293
- Object.entries(u).forEach(([g, h]) => {
7294
- typeof h == "function" && (f[g] = h(t));
7277
+ Object.entries(u).forEach(([y, h]) => {
7278
+ typeof h == "function" && (f[y] = h(t));
7295
7279
  });
7296
7280
  let p;
7297
7281
  s && (p = py.sanitize(o));
7298
- const y = ui({
7282
+ const g = ui({
7299
7283
  name: "Field",
7300
7284
  props: l,
7301
7285
  classes: yy
7302
7286
  });
7303
- return /* @__PURE__ */ d.jsx(Pe.Td, { ...y("field"), onClick: a ? () => a(e, t) : null, ...l, children: /* @__PURE__ */ d.jsx(Me, { w: "100%", children: /* @__PURE__ */ d.jsx(Bd, { visible: r, children: i || (typeof o != "object" ? /* @__PURE__ */ d.jsx(nt, { ...u, ...f, children: p || o }) : p || o) }) }) });
7287
+ return /* @__PURE__ */ d.jsx(Re.Td, { ...g("field"), onClick: a ? () => a(e, t) : null, ...l, children: /* @__PURE__ */ d.jsx(Me, { w: "100%", children: /* @__PURE__ */ d.jsx(Bd, { visible: r, children: i || (typeof o != "object" ? /* @__PURE__ */ d.jsx(nt, { ...u, ...f, children: p || o }) : p || o) }) }) });
7304
7288
  }
7305
7289
  );
7306
7290
  io.displayName = "Field";
@@ -7318,7 +7302,7 @@ function xy({ entry: e, selected: t, children: r }) {
7318
7302
  });
7319
7303
  var { className: a, style: i } = n("row");
7320
7304
  return a = `${a} ${t ? xl.selected : ""}`, /* @__PURE__ */ d.jsx(
7321
- Pe.Tr,
7305
+ Re.Tr,
7322
7306
  {
7323
7307
  className: a,
7324
7308
  style: { ...i },
@@ -7333,7 +7317,7 @@ function _y({ bodyCustomizer: e, actionColumn: t, id: r, entry: n }) {
7333
7317
  }
7334
7318
  function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o, toggleRow: a, onClickEntry: i, bodyCustomizer: s }) {
7335
7319
  const l = e.list_columns.includes("actions") ? "_actions" : "actions";
7336
- return /* @__PURE__ */ d.jsx(Pe.Tbody, { children: e.result.length ? e.result.map((c, u) => {
7320
+ return /* @__PURE__ */ d.jsx(Re.Tbody, { children: e.result.length ? e.result.map((c, u) => {
7337
7321
  const f = e.ids[u];
7338
7322
  return /* @__PURE__ */ d.jsxs(xy, { entry: { ...c, id: f }, children: [
7339
7323
  n ? null : /* @__PURE__ */ d.jsx(io, { loading: t, children: /* @__PURE__ */ d.jsx(
@@ -7355,20 +7339,20 @@ function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o
7355
7339
  entry: c
7356
7340
  }
7357
7341
  ) }),
7358
- e.list_columns.map((p, y) => {
7359
- let g = s == null ? void 0 : s[p];
7360
- return typeof g == "function" && (g = g({ id: f, ...c })), g === null ? null : /* @__PURE__ */ d.jsx(
7342
+ e.list_columns.map((p, g) => {
7343
+ let y = s == null ? void 0 : s[p];
7344
+ return typeof y == "function" && (y = y({ id: f, ...c })), y === null ? null : /* @__PURE__ */ d.jsx(
7361
7345
  io,
7362
7346
  {
7363
7347
  id: Ue(f),
7364
7348
  entry: c,
7365
7349
  loading: t,
7366
7350
  onClickEntry: i,
7367
- customElement: g,
7351
+ customElement: y,
7368
7352
  sanitize: !0,
7369
7353
  children: Tu(c, p)
7370
7354
  },
7371
- y
7355
+ g
7372
7356
  );
7373
7357
  })
7374
7358
  ] }, Ue(f));
@@ -7396,50 +7380,50 @@ function wy({
7396
7380
  bodyCustomizer: l,
7397
7381
  ...c
7398
7382
  }) {
7399
- const u = Wd(), f = Pe.extend({
7383
+ const u = Wd(), f = Re.extend({
7400
7384
  highlightOnHover: !0,
7401
7385
  striped: !0,
7402
7386
  horizontalSpacing: "md",
7403
7387
  verticalSpacing: "sm"
7404
- }), p = Be("DatagridTable", f, c), { data: y, info: g } = We(), [h, b] = fe([]), [T, A] = fe(!1), D = (x) => {
7388
+ }), p = Be("DatagridTable", f, c), { data: g, info: y } = We(), [h, b] = fe([]), [T, A] = fe(!1), j = (x) => {
7405
7389
  b((O) => O.includes(x) ? O.filter((k) => k !== x) : [...O, x]);
7406
- }, I = () => {
7407
- b((x) => x.length === y.ids.length ? [] : y.ids.map((O, k) => O));
7390
+ }, D = () => {
7391
+ b((x) => x.length === g.ids.length ? [] : g.ids.map((O, k) => O));
7408
7392
  };
7409
- return ke(() => {
7410
- A(h.length === y.result.length && h.length > 0), n && n(h), e == null || e.setSelectedIds(h.map((x) => x));
7411
- }, [h]), ke(() => {
7393
+ return $e(() => {
7394
+ A(h.length === g.result.length && h.length > 0), n && n(h), e == null || e.setSelectedIds(h.map((x) => x));
7395
+ }, [h]), $e(() => {
7412
7396
  b([]), n && n([]);
7413
- }, [y]), /* @__PURE__ */ d.jsx(
7397
+ }, [g]), /* @__PURE__ */ d.jsx(
7414
7398
  Sn,
7415
7399
  {
7416
7400
  options: { className: u.colorScheme === "dark" ? "os-theme-light" : void 0 },
7417
7401
  style: { flex: 1, flexDirection: "column" },
7418
7402
  classNames: Sy,
7419
- children: /* @__PURE__ */ d.jsxs(Pe, { stickyHeader: !0, ...p, children: [
7403
+ children: /* @__PURE__ */ d.jsxs(Re, { stickyHeader: !0, ...p, children: [
7420
7404
  /* @__PURE__ */ d.jsx(
7421
7405
  Eu,
7422
7406
  {
7423
- data: y,
7424
- info: g,
7407
+ data: g,
7408
+ info: y,
7425
7409
  hideActions: t,
7426
7410
  hideCheckbox: a,
7427
7411
  allChecked: T,
7428
7412
  setSelection: b,
7429
- toggleAll: I,
7413
+ toggleAll: D,
7430
7414
  headerCustomizer: s
7431
7415
  }
7432
7416
  ),
7433
7417
  /* @__PURE__ */ d.jsx(
7434
7418
  Ey,
7435
7419
  {
7436
- data: y,
7420
+ data: g,
7437
7421
  loading: r,
7438
7422
  hideActions: t,
7439
7423
  hideCheckbox: a,
7440
7424
  selection: h,
7441
7425
  setSelection: b,
7442
- toggleRow: D,
7426
+ toggleRow: j,
7443
7427
  onClickEntry: o,
7444
7428
  bodyCustomizer: l
7445
7429
  }
@@ -7454,7 +7438,7 @@ const Qu = Ao(({ ...e }) => {
7454
7438
  { value: "25", label: "25" },
7455
7439
  { value: "50", label: "50" }
7456
7440
  ], a = String(r.page_size), [i, s] = fe(r.page);
7457
- ke(() => {
7441
+ $e(() => {
7458
7442
  s(r.page);
7459
7443
  }, [r.page]);
7460
7444
  const l = (u) => {
@@ -7537,7 +7521,7 @@ const Qu = Ao(({ ...e }) => {
7537
7521
  Qu.displayName = "Pagination";
7538
7522
  function Oy() {
7539
7523
  const { error: e } = We(), [t, r] = fe(!1);
7540
- return ke(() => {
7524
+ return $e(() => {
7541
7525
  e && r(!0);
7542
7526
  }, [e]), /* @__PURE__ */ d.jsx(
7543
7527
  Nr,
@@ -7561,19 +7545,19 @@ const ef = Nc((e, t) => {
7561
7545
  hideSettings: u = !1,
7562
7546
  hideActions: f = !1,
7563
7547
  hidePagination: p = !1,
7564
- hideError: y = !1,
7565
- hideDownload: g = !0,
7548
+ hideError: g = !1,
7549
+ hideDownload: y = !0,
7566
7550
  onSelectCheckbox: h = null,
7567
7551
  onClickEntry: b = null,
7568
7552
  fetchOnMount: T = !0,
7569
7553
  bulkActions: A = null,
7570
- styles: D,
7571
- headerCustomizer: I = {},
7554
+ styles: j,
7555
+ headerCustomizer: D = {},
7572
7556
  bodyCustomizer: x = {},
7573
7557
  toolbarCustomizer: O = {}
7574
7558
  // Add more props here
7575
7559
  } = e;
7576
- if (ke(() => {
7560
+ if ($e(() => {
7577
7561
  !n && T && i({});
7578
7562
  }, [n]), !a)
7579
7563
  return;
@@ -7582,7 +7566,7 @@ const ef = Nc((e, t) => {
7582
7566
  Da,
7583
7567
  {
7584
7568
  ref: t,
7585
- style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...D },
7569
+ style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...j },
7586
7570
  children: [
7587
7571
  s ? null : /* @__PURE__ */ d.jsx(
7588
7572
  _u,
@@ -7590,7 +7574,7 @@ const ef = Nc((e, t) => {
7590
7574
  hideFilter: l,
7591
7575
  hideAdd: c,
7592
7576
  hideSettings: u,
7593
- hideDownload: g,
7577
+ hideDownload: y,
7594
7578
  toolbarCustomizer: O
7595
7579
  }
7596
7580
  ),
@@ -7603,13 +7587,13 @@ const ef = Nc((e, t) => {
7603
7587
  onSelectCheckbox: h,
7604
7588
  onClickEntry: b,
7605
7589
  hideCheckbox: k,
7606
- hideDownload: g,
7607
- headerCustomizer: I,
7590
+ hideDownload: y,
7591
+ headerCustomizer: D,
7608
7592
  bodyCustomizer: x
7609
7593
  }
7610
7594
  ) : null,
7611
7595
  !p && n ? /* @__PURE__ */ d.jsx(Qu, {}) : null,
7612
- y ? null : /* @__PURE__ */ d.jsx(Oy, {})
7596
+ g ? null : /* @__PURE__ */ d.jsx(Oy, {})
7613
7597
  ]
7614
7598
  }
7615
7599
  );
@@ -7676,7 +7660,7 @@ function By(e) {
7676
7660
  Vy.call(e, r) && r != "constructor" && t.push(r);
7677
7661
  return t;
7678
7662
  }
7679
- var Wy = By, Hy = typeof Re == "object" && Re && Re.Object === Object && Re, rf = Hy, Gy = rf, qy = typeof self == "object" && self && self.Object === Object && self, Yy = Gy || qy || Function("return this")(), Ct = Yy, Ky = Ct, Xy = Ky.Symbol, Vo = Xy, _l = Vo, nf = Object.prototype, Jy = nf.hasOwnProperty, Zy = nf.toString, un = _l ? _l.toStringTag : void 0;
7663
+ var Wy = By, Hy = typeof ke == "object" && ke && ke.Object === Object && ke, rf = Hy, Gy = rf, qy = typeof self == "object" && self && self.Object === Object && self, Yy = Gy || qy || Function("return this")(), Ct = Yy, Ky = Ct, Xy = Ky.Symbol, Vo = Xy, _l = Vo, nf = Object.prototype, Jy = nf.hasOwnProperty, Zy = nf.toString, un = _l ? _l.toStringTag : void 0;
7680
7664
  function Qy(e) {
7681
7665
  var t = Jy.call(e, un), r = e[un];
7682
7666
  try {
@@ -7887,12 +7871,12 @@ function t1(e, t, r) {
7887
7871
  if (typeof e != "function")
7888
7872
  throw new TypeError(Zb);
7889
7873
  t = Dl(t) || 0, Jb(r) && (u = !!r.leading, f = "maxWait" in r, a = f ? Qb(Dl(r.maxWait) || 0, t) : a, p = "trailing" in r ? !!r.trailing : p);
7890
- function y(O) {
7874
+ function g(O) {
7891
7875
  var k = n, J = o;
7892
7876
  return n = o = void 0, c = O, i = e.apply(J, k), i;
7893
7877
  }
7894
- function g(O) {
7895
- return c = O, s = setTimeout(T, t), u ? y(O) : i;
7878
+ function y(O) {
7879
+ return c = O, s = setTimeout(T, t), u ? g(O) : i;
7896
7880
  }
7897
7881
  function h(O) {
7898
7882
  var k = O - l, J = O - c, ee = t - k;
@@ -7909,30 +7893,30 @@ function t1(e, t, r) {
7909
7893
  s = setTimeout(T, h(O));
7910
7894
  }
7911
7895
  function A(O) {
7912
- return s = void 0, p && n ? y(O) : (n = o = void 0, i);
7896
+ return s = void 0, p && n ? g(O) : (n = o = void 0, i);
7913
7897
  }
7914
- function D() {
7898
+ function j() {
7915
7899
  s !== void 0 && clearTimeout(s), c = 0, n = l = o = s = void 0;
7916
7900
  }
7917
- function I() {
7901
+ function D() {
7918
7902
  return s === void 0 ? i : A(Oa());
7919
7903
  }
7920
7904
  function x() {
7921
7905
  var O = Oa(), k = b(O);
7922
7906
  if (n = arguments, o = this, l = O, k) {
7923
7907
  if (s === void 0)
7924
- return g(l);
7908
+ return y(l);
7925
7909
  if (f)
7926
- return clearTimeout(s), s = setTimeout(T, t), y(l);
7910
+ return clearTimeout(s), s = setTimeout(T, t), g(l);
7927
7911
  }
7928
7912
  return s === void 0 && (s = setTimeout(T, t)), i;
7929
7913
  }
7930
- return x.cancel = D, x.flush = I, x;
7914
+ return x.cancel = j, x.flush = D, x;
7931
7915
  }
7932
7916
  var r1 = t1;
7933
7917
  const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7934
7918
  const [i, s] = fe(r ?? t);
7935
- ke(() => {
7919
+ $e(() => {
7936
7920
  s(r ?? t);
7937
7921
  }, [r]);
7938
7922
  const l = Te(
@@ -7961,7 +7945,7 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7961
7945
  path: u,
7962
7946
  required: f,
7963
7947
  hideControls: p
7964
- } = t, [y, g] = o1(l, "", o, u, i1);
7948
+ } = t, [g, y] = o1(l, "", o, u, i1);
7965
7949
  return /* @__PURE__ */ d.jsx(
7966
7950
  Gd,
7967
7951
  {
@@ -7969,8 +7953,8 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7969
7953
  description: a,
7970
7954
  error: i,
7971
7955
  required: f,
7972
- value: y,
7973
- onChange: g,
7956
+ value: g,
7957
+ onChange: y,
7974
7958
  className: n,
7975
7959
  disabled: !s,
7976
7960
  allowDecimal: r,
@@ -8321,8 +8305,8 @@ function YE(e, t, r, n, o, a, i) {
8321
8305
  }
8322
8306
  var u = a ? a(s, l, r + "", e, t, i) : void 0, f = u === void 0;
8323
8307
  if (f) {
8324
- var p = Bl(l), y = !p && VE(l), g = !p && !y && GE(l);
8325
- u = l, p || y || g ? Bl(s) ? u = s : UE(s) ? u = LE(s) : y ? (f = !1, u = NE(l, !0)) : g ? (f = !1, u = FE(l, !0)) : u = [] : HE(l) || Vl(l) ? (u = s, Vl(s) ? u = qE(s) : (!WE(s) || BE(s)) && (u = zE(l))) : f = !1;
8308
+ var p = Bl(l), g = !p && VE(l), y = !p && !g && GE(l);
8309
+ u = l, p || g || y ? Bl(s) ? u = s : UE(s) ? u = LE(s) : g ? (f = !1, u = NE(l, !0)) : y ? (f = !1, u = FE(l, !0)) : u = [] : HE(l) || Vl(l) ? (u = s, Vl(s) ? u = qE(s) : (!WE(s) || BE(s)) && (u = zE(l))) : f = !1;
8326
8310
  }
8327
8311
  f && (i.set(l, u), o(u, l, n, a, i), i.delete(l)), Ul(e, r, u);
8328
8312
  }
@@ -8427,8 +8411,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
8427
8411
  error: s,
8428
8412
  required: p,
8429
8413
  value: a || "",
8430
- onChange: (g) => {
8431
- u(c, g.currentTarget.value);
8414
+ onChange: (y) => {
8415
+ u(c, y.currentTarget.value);
8432
8416
  },
8433
8417
  className: r,
8434
8418
  disabled: !l,
@@ -8442,8 +8426,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
8442
8426
  error: s,
8443
8427
  required: p,
8444
8428
  value: a || "",
8445
- onChange: (g) => {
8446
- u(c, g.currentTarget.value);
8429
+ onChange: (y) => {
8430
+ u(c, y.currentTarget.value);
8447
8431
  },
8448
8432
  className: r,
8449
8433
  disabled: !l,
@@ -8993,8 +8977,8 @@ function jC() {
8993
8977
  if (nc)
8994
8978
  return se;
8995
8979
  nc = 1;
8996
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g;
8997
- g = Symbol.for("react.module.reference");
8980
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y;
8981
+ y = Symbol.for("react.module.reference");
8998
8982
  function h(b) {
8999
8983
  if (typeof b == "object" && b !== null) {
9000
8984
  var T = b.$$typeof;
@@ -9054,7 +9038,7 @@ function jC() {
9054
9038
  }, se.isSuspenseList = function(b) {
9055
9039
  return h(b) === u;
9056
9040
  }, se.isValidElementType = function(b) {
9057
- return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b === y || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === l || b.$$typeof === g || b.getModuleId !== void 0);
9041
+ return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b === g || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === l || b.$$typeof === y || b.getModuleId !== void 0);
9058
9042
  }, se.typeOf = h, se;
9059
9043
  }
9060
9044
  var le = {};
@@ -9070,21 +9054,21 @@ var le = {};
9070
9054
  var oc;
9071
9055
  function IC() {
9072
9056
  return oc || (oc = 1, process.env.NODE_ENV !== "production" && function() {
9073
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, h = !1, b = !1, T = !1, A = !1, D;
9074
- D = Symbol.for("react.module.reference");
9075
- function I(j) {
9076
- return !!(typeof j == "string" || typeof j == "function" || j === r || j === o || A || j === n || j === c || j === u || T || j === y || g || h || b || typeof j == "object" && j !== null && (j.$$typeof === p || j.$$typeof === f || j.$$typeof === a || j.$$typeof === i || j.$$typeof === l || // This needs to include all possible module reference object
9057
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = !1, h = !1, b = !1, T = !1, A = !1, j;
9058
+ j = Symbol.for("react.module.reference");
9059
+ function D(I) {
9060
+ return !!(typeof I == "string" || typeof I == "function" || I === r || I === o || A || I === n || I === c || I === u || T || I === g || y || h || b || typeof I == "object" && I !== null && (I.$$typeof === p || I.$$typeof === f || I.$$typeof === a || I.$$typeof === i || I.$$typeof === l || // This needs to include all possible module reference object
9077
9061
  // types supported by any Flight configuration anywhere since
9078
9062
  // we don't know which Flight build this will end up being used
9079
9063
  // with.
9080
- j.$$typeof === D || j.getModuleId !== void 0));
9064
+ I.$$typeof === j || I.getModuleId !== void 0));
9081
9065
  }
9082
- function x(j) {
9083
- if (typeof j == "object" && j !== null) {
9084
- var Ge = j.$$typeof;
9066
+ function x(I) {
9067
+ if (typeof I == "object" && I !== null) {
9068
+ var Ge = I.$$typeof;
9085
9069
  switch (Ge) {
9086
9070
  case e:
9087
- var Qe = j.type;
9071
+ var Qe = I.type;
9088
9072
  switch (Qe) {
9089
9073
  case r:
9090
9074
  case o:
@@ -9112,49 +9096,49 @@ function IC() {
9112
9096
  }
9113
9097
  }
9114
9098
  var O = i, k = a, J = e, ee = l, _e = r, F = p, te = f, ce = t, pe = o, He = n, Ae = c, Ze = u, it = !1, xt = !1;
9115
- function S(j) {
9099
+ function S(I) {
9116
9100
  return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
9117
9101
  }
9118
- function C(j) {
9102
+ function C(I) {
9119
9103
  return xt || (xt = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
9120
9104
  }
9121
- function W(j) {
9122
- return x(j) === i;
9105
+ function W(I) {
9106
+ return x(I) === i;
9123
9107
  }
9124
- function M(j) {
9125
- return x(j) === a;
9108
+ function M(I) {
9109
+ return x(I) === a;
9126
9110
  }
9127
- function U(j) {
9128
- return typeof j == "object" && j !== null && j.$$typeof === e;
9111
+ function U(I) {
9112
+ return typeof I == "object" && I !== null && I.$$typeof === e;
9129
9113
  }
9130
- function N(j) {
9131
- return x(j) === l;
9114
+ function N(I) {
9115
+ return x(I) === l;
9132
9116
  }
9133
- function L(j) {
9134
- return x(j) === r;
9117
+ function L(I) {
9118
+ return x(I) === r;
9135
9119
  }
9136
- function B(j) {
9137
- return x(j) === p;
9120
+ function B(I) {
9121
+ return x(I) === p;
9138
9122
  }
9139
- function H(j) {
9140
- return x(j) === f;
9123
+ function H(I) {
9124
+ return x(I) === f;
9141
9125
  }
9142
- function q(j) {
9143
- return x(j) === t;
9126
+ function q(I) {
9127
+ return x(I) === t;
9144
9128
  }
9145
- function G(j) {
9146
- return x(j) === o;
9129
+ function G(I) {
9130
+ return x(I) === o;
9147
9131
  }
9148
- function Ee(j) {
9149
- return x(j) === n;
9132
+ function Ee(I) {
9133
+ return x(I) === n;
9150
9134
  }
9151
- function P(j) {
9152
- return x(j) === c;
9135
+ function P(I) {
9136
+ return x(I) === c;
9153
9137
  }
9154
- function $e(j) {
9155
- return x(j) === u;
9138
+ function Pe(I) {
9139
+ return x(I) === u;
9156
9140
  }
9157
- le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList = $e, le.isValidElementType = I, le.typeOf = x;
9141
+ le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList = Pe, le.isValidElementType = D, le.typeOf = x;
9158
9142
  }()), le;
9159
9143
  }
9160
9144
  process.env.NODE_ENV === "production" ? ri.exports = jC() : ri.exports = IC();
@@ -9566,8 +9550,8 @@ function bn(e, t, r) {
9566
9550
  case "string":
9567
9551
  if (process.env.NODE_ENV !== "production") {
9568
9552
  var s = [], l = r.replace(sd, function(u, f, p) {
9569
- var y = "animation" + s.length;
9570
- return s.push("const " + y + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + y + "}";
9553
+ var g = "animation" + s.length;
9554
+ return s.push("const " + g + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + g + "}";
9571
9555
  });
9572
9556
  s.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(s, ["`" + l + "`"]).join(`
9573
9557
  `) + `
@@ -9686,39 +9670,39 @@ You may have forgotten to import it.`);
9686
9670
  f.push.apply(f, u);
9687
9671
  else {
9688
9672
  process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(gc), f.push(u[0][0]);
9689
- for (var p = u.length, y = 1; y < p; y++)
9690
- process.env.NODE_ENV !== "production" && u[0][y] === void 0 && console.error(gc), f.push(u[y], u[0][y]);
9673
+ for (var p = u.length, g = 1; g < p; g++)
9674
+ process.env.NODE_ENV !== "production" && u[0][g] === void 0 && console.error(gc), f.push(u[g], u[0][g]);
9691
9675
  }
9692
- var g = up(function(h, b, T) {
9693
- var A = c && h.as || o, D = "", I = [], x = h;
9676
+ var y = up(function(h, b, T) {
9677
+ var A = c && h.as || o, j = "", D = [], x = h;
9694
9678
  if (h.theme == null) {
9695
9679
  x = {};
9696
9680
  for (var O in h)
9697
9681
  x[O] = h[O];
9698
9682
  x.theme = lt.useContext(eu);
9699
9683
  }
9700
- typeof h.className == "string" ? D = nA(b.registered, I, h.className) : h.className != null && (D = h.className + " ");
9701
- var k = mA(f.concat(I), b.registered, x);
9702
- D += b.key + "-" + k.name, i !== void 0 && (D += " " + i);
9684
+ typeof h.className == "string" ? j = nA(b.registered, D, h.className) : h.className != null && (j = h.className + " ");
9685
+ var k = mA(f.concat(D), b.registered, x);
9686
+ j += b.key + "-" + k.name, i !== void 0 && (j += " " + i);
9703
9687
  var J = c && s === void 0 ? hc(A) : l, ee = {};
9704
9688
  for (var _e in h)
9705
9689
  c && _e === "as" || // $FlowFixMe
9706
9690
  J(_e) && (ee[_e] = h[_e]);
9707
- return ee.className = D, ee.ref = T, /* @__PURE__ */ lt.createElement(lt.Fragment, null, /* @__PURE__ */ lt.createElement(_A, {
9691
+ return ee.className = j, ee.ref = T, /* @__PURE__ */ lt.createElement(lt.Fragment, null, /* @__PURE__ */ lt.createElement(_A, {
9708
9692
  cache: b,
9709
9693
  serialized: k,
9710
9694
  isStringTag: typeof A == "string"
9711
9695
  }), /* @__PURE__ */ lt.createElement(A, ee));
9712
9696
  });
9713
- return g.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", g.defaultProps = t.defaultProps, g.__emotion_real = g, g.__emotion_base = o, g.__emotion_styles = f, g.__emotion_forwardProp = s, Object.defineProperty(g, "toString", {
9697
+ return y.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles = f, y.__emotion_forwardProp = s, Object.defineProperty(y, "toString", {
9714
9698
  value: function() {
9715
9699
  return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
9716
9700
  }
9717
- }), g.withComponent = function(h, b) {
9701
+ }), y.withComponent = function(h, b) {
9718
9702
  return e(h, de({}, r, b, {
9719
- shouldForwardProp: mc(g, b, !0)
9703
+ shouldForwardProp: mc(y, b, !0)
9720
9704
  })).apply(void 0, f);
9721
- }, g;
9705
+ }, y;
9722
9706
  };
9723
9707
  }, TA = [
9724
9708
  "a",
@@ -10048,10 +10032,10 @@ function zA(e) {
10048
10032
  return hd(co("", null, null, null, [""], e = pd(e), 0, [0], e));
10049
10033
  }
10050
10034
  function co(e, t, r, n, o, a, i, s, l) {
10051
- for (var c = 0, u = 0, f = i, p = 0, y = 0, g = 0, h = 1, b = 1, T = 1, A = 0, D = "", I = o, x = a, O = n, k = D; b; )
10052
- switch (g = A, A = ut()) {
10035
+ for (var c = 0, u = 0, f = i, p = 0, g = 0, y = 0, h = 1, b = 1, T = 1, A = 0, j = "", D = o, x = a, O = n, k = j; b; )
10036
+ switch (y = A, A = ut()) {
10053
10037
  case 40:
10054
- if (g != 108 && Ne(k, f - 1) == 58) {
10038
+ if (y != 108 && Ne(k, f - 1) == 58) {
10055
10039
  ai(k += ne(lo(A), "&", "&\f"), "&\f") != -1 && (T = -1);
10056
10040
  break;
10057
10041
  }
@@ -10064,7 +10048,7 @@ function co(e, t, r, n, o, a, i, s, l) {
10064
10048
  case 10:
10065
10049
  case 13:
10066
10050
  case 32:
10067
- k += MA(g);
10051
+ k += MA(y);
10068
10052
  break;
10069
10053
  case 92:
10070
10054
  k += NA(so() - 1, 7);
@@ -10089,30 +10073,30 @@ function co(e, t, r, n, o, a, i, s, l) {
10089
10073
  case 125:
10090
10074
  b = 0;
10091
10075
  case 59 + u:
10092
- T == -1 && (k = ne(k, /\f/g, "")), y > 0 && Pt(k) - f && to(y > 32 ? vc(k + ";", n, r, f - 1) : vc(ne(k, " ", "") + ";", n, r, f - 2), l);
10076
+ T == -1 && (k = ne(k, /\f/g, "")), g > 0 && Pt(k) - f && to(g > 32 ? vc(k + ";", n, r, f - 1) : vc(ne(k, " ", "") + ";", n, r, f - 2), l);
10093
10077
  break;
10094
10078
  case 59:
10095
10079
  k += ";";
10096
10080
  default:
10097
- if (to(O = yc(k, t, r, c, u, o, s, D, I = [], x = [], f), a), A === 123)
10081
+ if (to(O = yc(k, t, r, c, u, o, s, j, D = [], x = [], f), a), A === 123)
10098
10082
  if (u === 0)
10099
- co(k, t, O, O, I, a, f, s, x);
10083
+ co(k, t, O, O, D, a, f, s, x);
10100
10084
  else
10101
10085
  switch (p === 99 && Ne(k, 3) === 110 ? 100 : p) {
10102
10086
  case 100:
10103
10087
  case 108:
10104
10088
  case 109:
10105
10089
  case 115:
10106
- co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s, D, o, I = [], f), x), o, x, f, s, n ? I : x);
10090
+ co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s, j, o, D = [], f), x), o, x, f, s, n ? D : x);
10107
10091
  break;
10108
10092
  default:
10109
10093
  co(k, O, O, O, [""], x, 0, s, x);
10110
10094
  }
10111
10095
  }
10112
- c = u = y = 0, h = T = 1, D = k = "", f = i;
10096
+ c = u = g = 0, h = T = 1, j = k = "", f = i;
10113
10097
  break;
10114
10098
  case 58:
10115
- f = 1 + Pt(k), y = g;
10099
+ f = 1 + Pt(k), g = y;
10116
10100
  default:
10117
10101
  if (h < 1) {
10118
10102
  if (A == 123)
@@ -10128,18 +10112,18 @@ function co(e, t, r, n, o, a, i, s, l) {
10128
10112
  s[c++] = (Pt(k) - 1) * T, T = 1;
10129
10113
  break;
10130
10114
  case 64:
10131
- jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(D = k += LA(so())), A++;
10115
+ jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(j = k += LA(so())), A++;
10132
10116
  break;
10133
10117
  case 45:
10134
- g === 45 && Pt(k) == 2 && (h = 0);
10118
+ y === 45 && Pt(k) == 2 && (h = 0);
10135
10119
  }
10136
10120
  }
10137
10121
  return a;
10138
10122
  }
10139
10123
  function yc(e, t, r, n, o, a, i, s, l, c, u) {
10140
- for (var f = o - 1, p = o === 0 ? a : [""], y = os(p), g = 0, h = 0, b = 0; g < n; ++g)
10141
- for (var T = 0, A = xn(e, f + 1, f = $A(h = i[g])), D = e; T < y; ++T)
10142
- (D = fd(h > 0 ? p[T] + " " + A : ne(A, /&\f/g, p[T]))) && (l[b++] = D);
10124
+ for (var f = o - 1, p = o === 0 ? a : [""], g = os(p), y = 0, h = 0, b = 0; y < n; ++y)
10125
+ for (var T = 0, A = xn(e, f + 1, f = $A(h = i[y])), j = e; T < g; ++T)
10126
+ (j = fd(h > 0 ? p[T] + " " + A : ne(A, /&\f/g, p[T]))) && (l[b++] = j);
10143
10127
  return Qo(e, t, r, o === 0 ? rs : s, l, c, u);
10144
10128
  }
10145
10129
  function UA(e, t, r) {
@@ -10442,7 +10426,7 @@ If multiple caches share the same key they might "fight" for each other's style
10442
10426
  var l, c = [YA, KA];
10443
10427
  process.env.NODE_ENV !== "production" && c.push(ZA({
10444
10428
  get compat() {
10445
- return g.compat;
10429
+ return y.compat;
10446
10430
  }
10447
10431
  }), e$);
10448
10432
  {
@@ -10450,18 +10434,18 @@ If multiple caches share the same key they might "fight" for each other's style
10450
10434
  h.root || (h.return ? u.insert(h.return) : h.value && h.type !== ts && u.insert(h.value + "{}"));
10451
10435
  } : WA(function(h) {
10452
10436
  u.insert(h);
10453
- })], p = BA(c.concat(o, f)), y = function(b) {
10437
+ })], p = BA(c.concat(o, f)), g = function(b) {
10454
10438
  return jr(zA(b), p);
10455
10439
  };
10456
- l = function(b, T, A, D) {
10440
+ l = function(b, T, A, j) {
10457
10441
  u = A, process.env.NODE_ENV !== "production" && T.map !== void 0 && (u = {
10458
10442
  insert: function(x) {
10459
10443
  A.insert(x + T.map);
10460
10444
  }
10461
- }), y(b ? b + "{" + T.styles + "}" : T.styles), D && (g.inserted[T.name] = !0);
10445
+ }), g(b ? b + "{" + T.styles + "}" : T.styles), j && (y.inserted[T.name] = !0);
10462
10446
  };
10463
10447
  }
10464
- var g = {
10448
+ var y = {
10465
10449
  key: r,
10466
10450
  sheet: new OA({
10467
10451
  key: r,
@@ -10476,7 +10460,7 @@ If multiple caches share the same key they might "fight" for each other's style
10476
10460
  registered: {},
10477
10461
  insert: l
10478
10462
  };
10479
- return g.sheet.hydrate(s), g;
10463
+ return y.sheet.hydrate(s), y;
10480
10464
  };
10481
10465
  let si;
10482
10466
  typeof document == "object" && (si = n$({
@@ -10581,16 +10565,16 @@ function bd(e) {
10581
10565
  function l(p) {
10582
10566
  return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
10583
10567
  }
10584
- function c(p, y) {
10585
- const g = i.indexOf(y);
10586
- return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(g !== -1 && typeof t[i[g]] == "number" ? t[i[g]] : y) - n / 100}${r})`;
10568
+ function c(p, g) {
10569
+ const y = i.indexOf(g);
10570
+ return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(y !== -1 && typeof t[i[y]] == "number" ? t[i[y]] : g) - n / 100}${r})`;
10587
10571
  }
10588
10572
  function u(p) {
10589
10573
  return i.indexOf(p) + 1 < i.length ? c(p, i[i.indexOf(p) + 1]) : s(p);
10590
10574
  }
10591
10575
  function f(p) {
10592
- const y = i.indexOf(p);
10593
- return y === 0 ? s(i[1]) : y === i.length - 1 ? l(i[y]) : c(p, i[i.indexOf(p) + 1]).replace("@media", "@media not all and");
10576
+ const g = i.indexOf(p);
10577
+ return g === 0 ? s(i[1]) : g === i.length - 1 ? l(i[g]) : c(p, i[i.indexOf(p) + 1]).replace("@media", "@media not all and");
10594
10578
  }
10595
10579
  return de({
10596
10580
  keys: i,
@@ -11252,9 +11236,9 @@ function Ed() {
11252
11236
  [r]: n
11253
11237
  };
11254
11238
  const p = ea(o, c) || {};
11255
- return f ? f(i) : zt(i, n, (g) => {
11256
- let h = wo(p, u, g);
11257
- return g === h && typeof g == "string" && (h = wo(p, u, `${r}${g === "default" ? "" : ur(g)}`, g)), l === !1 ? h : {
11239
+ return f ? f(i) : zt(i, n, (y) => {
11240
+ let h = wo(p, u, y);
11241
+ return y === h && typeof y == "string" && (h = wo(p, u, `${r}${y === "default" ? "" : ur(y)}`, y)), l === !1 ? h : {
11258
11242
  [l]: h
11259
11243
  };
11260
11244
  });
@@ -11278,25 +11262,25 @@ function Ed() {
11278
11262
  return null;
11279
11263
  const u = y$(a.breakpoints), f = Object.keys(u);
11280
11264
  let p = u;
11281
- return Object.keys(c).forEach((y) => {
11282
- const g = a2(c[y], a);
11283
- if (g != null)
11284
- if (typeof g == "object")
11285
- if (i[y])
11286
- p = mn(p, e(y, g, a, i));
11265
+ return Object.keys(c).forEach((g) => {
11266
+ const y = a2(c[g], a);
11267
+ if (y != null)
11268
+ if (typeof y == "object")
11269
+ if (i[g])
11270
+ p = mn(p, e(g, y, a, i));
11287
11271
  else {
11288
11272
  const h = zt({
11289
11273
  theme: a
11290
- }, g, (b) => ({
11291
- [y]: b
11274
+ }, y, (b) => ({
11275
+ [g]: b
11292
11276
  }));
11293
- o2(h, g) ? p[y] = t({
11294
- sx: g,
11277
+ o2(h, y) ? p[g] = t({
11278
+ sx: y,
11295
11279
  theme: a
11296
11280
  }) : p = mn(p, h);
11297
11281
  }
11298
11282
  else
11299
- p = mn(p, e(y, g, a, i));
11283
+ p = mn(p, e(g, y, a, i));
11300
11284
  }), v$(f, p);
11301
11285
  }
11302
11286
  return Array.isArray(o) ? o.map(s) : s(o);
@@ -11482,7 +11466,7 @@ function A2(e = {}) {
11482
11466
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
11483
11467
  // For more details: https://github.com/mui/material-ui/pull/37908
11484
11468
  overridesResolver: p = C2(Sc(c))
11485
- } = s, y = (0, li.default)(s, E2), g = u !== void 0 ? u : (
11469
+ } = s, g = (0, li.default)(s, E2), y = u !== void 0 ? u : (
11486
11470
  // TODO v6: remove `Root` in the next major release
11487
11471
  // For more details: https://github.com/mui/material-ui/pull/37908
11488
11472
  c && c !== "Root" && c !== "root" || !1
@@ -11494,15 +11478,15 @@ function A2(e = {}) {
11494
11478
  const A = (0, Tc.default)(i, (0, pt.default)({
11495
11479
  shouldForwardProp: T,
11496
11480
  label: b
11497
- }, y)), D = (x) => typeof x == "function" && x.__emotion_real !== x || (0, m2.isPlainObject)(x) ? (O) => fo(x, (0, pt.default)({}, O, {
11481
+ }, g)), j = (x) => typeof x == "function" && x.__emotion_real !== x || (0, m2.isPlainObject)(x) ? (O) => fo(x, (0, pt.default)({}, O, {
11498
11482
  theme: ro({
11499
11483
  theme: O.theme,
11500
11484
  defaultTheme: r,
11501
11485
  themeId: t
11502
11486
  })
11503
- })) : x, I = (x, ...O) => {
11504
- let k = D(x);
11505
- const J = O ? O.map(D) : [];
11487
+ })) : x, D = (x, ...O) => {
11488
+ let k = j(x);
11489
+ const J = O ? O.map(j) : [];
11506
11490
  l && p && J.push((F) => {
11507
11491
  const te = ro((0, pt.default)({}, F, {
11508
11492
  defaultTheme: r,
@@ -11516,7 +11500,7 @@ function A2(e = {}) {
11516
11500
  theme: te
11517
11501
  }));
11518
11502
  }), p(F, pe);
11519
- }), l && !g && J.push((F) => {
11503
+ }), l && !y && J.push((F) => {
11520
11504
  var te;
11521
11505
  const ce = ro((0, pt.default)({}, F, {
11522
11506
  defaultTheme: r,
@@ -11540,7 +11524,7 @@ function A2(e = {}) {
11540
11524
  }
11541
11525
  return i.muiName && (_e.muiName = i.muiName), _e;
11542
11526
  };
11543
- return A.withConfig && (I.withConfig = A.withConfig), I;
11527
+ return A.withConfig && (D.withConfig = A.withConfig), D;
11544
11528
  };
11545
11529
  }
11546
11530
  function $2(e, t) {
@@ -11992,7 +11976,7 @@ function iP(e) {
11992
11976
  name: b,
11993
11977
  mainShade: T = 500,
11994
11978
  lightShade: A = 300,
11995
- darkShade: D = 700
11979
+ darkShade: j = 700
11996
11980
  }) => {
11997
11981
  if (h = de({}, h), !h.main && h[T] && (h.main = h[T]), !h.hasOwnProperty("main"))
11998
11982
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${b ? ` (${b})` : ""} provided to augmentColor(color) is invalid.
@@ -12012,12 +11996,12 @@ const theme1 = createTheme({ palette: {
12012
11996
  const theme2 = createTheme({ palette: {
12013
11997
  primary: { main: green[500] },
12014
11998
  } });` : vn(12, b ? ` (${b})` : "", JSON.stringify(h.main)));
12015
- return Ac(h, "light", A, n), Ac(h, "dark", D, n), h.contrastText || (h.contrastText = f(h.main)), h;
12016
- }, y = {
11999
+ return Ac(h, "light", A, n), Ac(h, "dark", j, n), h.contrastText || (h.contrastText = f(h.main)), h;
12000
+ }, g = {
12017
12001
  dark: ka,
12018
12002
  light: Cc
12019
12003
  };
12020
- return process.env.NODE_ENV !== "production" && (y[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), kt(de({
12004
+ return process.env.NODE_ENV !== "production" && (g[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), kt(de({
12021
12005
  // A collection of common colors.
12022
12006
  common: de({}, En),
12023
12007
  // prevent mutable object.
@@ -12069,7 +12053,7 @@ const theme2 = createTheme({ palette: {
12069
12053
  // two indexes within its tonal palette.
12070
12054
  // E.g., shift from Red 500 to Red 300 or Red 700.
12071
12055
  tonalOffset: n
12072
- }, y[t]), o);
12056
+ }, g[t]), o);
12073
12057
  }
12074
12058
  const sP = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
12075
12059
  function lP(e) {
@@ -12096,14 +12080,14 @@ function cP(e, t) {
12096
12080
  pxToRem: f
12097
12081
  } = r, p = er(r, sP);
12098
12082
  process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
12099
- const y = o / 14, g = f || ((T) => `${T / c * y}rem`), h = (T, A, D, I, x) => de({
12083
+ const g = o / 14, y = f || ((T) => `${T / c * g}rem`), h = (T, A, j, D, x) => de({
12100
12084
  fontFamily: n,
12101
12085
  fontWeight: T,
12102
- fontSize: g(A),
12086
+ fontSize: y(A),
12103
12087
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
12104
- lineHeight: D
12088
+ lineHeight: j
12105
12089
  }, n === Pc ? {
12106
- letterSpacing: `${lP(I / A)}em`
12090
+ letterSpacing: `${lP(D / A)}em`
12107
12091
  } : {}, x, u), b = {
12108
12092
  h1: h(a, 96, 1.167, -1.5),
12109
12093
  h2: h(a, 60, 1.2, -0.5),
@@ -12129,7 +12113,7 @@ function cP(e, t) {
12129
12113
  };
12130
12114
  return kt(de({
12131
12115
  htmlFontSize: c,
12132
- pxToRem: g,
12116
+ pxToRem: y,
12133
12117
  fontFamily: n,
12134
12118
  fontSize: o,
12135
12119
  fontWeightLight: a,
@@ -12229,27 +12213,27 @@ function TP(e = {}, ...t) {
12229
12213
  zIndex: de({}, _P)
12230
12214
  });
12231
12215
  if (c = kt(c, i), c = t.reduce((u, f) => kt(u, f), c), process.env.NODE_ENV !== "production") {
12232
- const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p, y) => {
12233
- let g;
12234
- for (g in p) {
12235
- const h = p[g];
12236
- if (u.indexOf(g) !== -1 && Object.keys(h).length > 0) {
12216
+ const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p, g) => {
12217
+ let y;
12218
+ for (y in p) {
12219
+ const h = p[y];
12220
+ if (u.indexOf(y) !== -1 && Object.keys(h).length > 0) {
12237
12221
  if (process.env.NODE_ENV !== "production") {
12238
- const b = Qi("", g);
12239
- console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${g}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
12222
+ const b = Qi("", y);
12223
+ console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
12240
12224
  root: {
12241
12225
  [`&.${b}`]: h
12242
12226
  }
12243
12227
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
12244
12228
  `));
12245
12229
  }
12246
- p[g] = {};
12230
+ p[y] = {};
12247
12231
  }
12248
12232
  }
12249
12233
  };
12250
12234
  Object.keys(c.components).forEach((p) => {
12251
- const y = c.components[p].styleOverrides;
12252
- y && p.indexOf("Mui") === 0 && f(y, p);
12235
+ const g = c.components[p].styleOverrides;
12236
+ g && p.indexOf("Mui") === 0 && f(g, p);
12253
12237
  });
12254
12238
  }
12255
12239
  return c.unstable_sxConfig = de({}, Rn, i == null ? void 0 : i.unstable_sxConfig), c.unstable_sx = function(f) {
@@ -12294,7 +12278,7 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12294
12278
  theme: e,
12295
12279
  ownerState: t
12296
12280
  }) => {
12297
- var r, n, o, a, i, s, l, c, u, f, p, y, g;
12281
+ var r, n, o, a, i, s, l, c, u, f, p, g, y;
12298
12282
  return {
12299
12283
  userSelect: "none",
12300
12284
  width: "1em",
@@ -12315,8 +12299,8 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12315
12299
  }[t.fontSize],
12316
12300
  // TODO v5 deprecate, v6 remove for sx
12317
12301
  color: (f = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? f : {
12318
- action: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.active,
12319
- disabled: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.disabled,
12302
+ action: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.active,
12303
+ disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
12320
12304
  inherit: void 0
12321
12305
  }[t.color]
12322
12306
  };
@@ -12334,14 +12318,14 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12334
12318
  inheritViewBox: u = !1,
12335
12319
  titleAccess: f,
12336
12320
  viewBox: p = "0 0 24 24"
12337
- } = n, y = er(n, jP), g = /* @__PURE__ */ lt.isValidElement(o) && o.type === "svg", h = de({}, n, {
12321
+ } = n, g = er(n, jP), y = /* @__PURE__ */ lt.isValidElement(o) && o.type === "svg", h = de({}, n, {
12338
12322
  color: i,
12339
12323
  component: s,
12340
12324
  fontSize: l,
12341
12325
  instanceFontSize: t.fontSize,
12342
12326
  inheritViewBox: u,
12343
12327
  viewBox: p,
12344
- hasSvgAsChild: g
12328
+ hasSvgAsChild: y
12345
12329
  }), b = {};
12346
12330
  u || (b.viewBox = p);
12347
12331
  const T = IP(h);
@@ -12353,9 +12337,9 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12353
12337
  "aria-hidden": f ? void 0 : !0,
12354
12338
  role: f ? "img" : void 0,
12355
12339
  ref: r
12356
- }, b, y, g && o.props, {
12340
+ }, b, g, y && o.props, {
12357
12341
  ownerState: h,
12358
- children: [g ? o.props.children : o, f ? /* @__PURE__ */ d.jsx("title", {
12342
+ children: [y ? o.props.children : o, f ? /* @__PURE__ */ d.jsx("title", {
12359
12343
  children: f
12360
12344
  }) : null]
12361
12345
  }));
@@ -12451,7 +12435,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12451
12435
  d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
12452
12436
  }), "ArrowUpward"), FP = ds(/* @__PURE__ */ d.jsx("path", {
12453
12437
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
12454
- }), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Pe.Td, { ...t, children: e }), LP = ({ errorMessages: e, id: t }) => /* @__PURE__ */ d.jsx(mt, { id: t, title: e, children: /* @__PURE__ */ d.jsx(ci, { label: e.split(`
12438
+ }), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Re.Td, { ...t, children: e }), LP = ({ errorMessages: e, id: t }) => /* @__PURE__ */ d.jsx(mt, { id: t, title: e, children: /* @__PURE__ */ d.jsx(ci, { label: e.split(`
12455
12439
  `).length, children: /* @__PURE__ */ d.jsx(om, {}) }) }), zP = {
12456
12440
  paddingLeft: 0,
12457
12441
  paddingRight: 0
@@ -12472,7 +12456,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12472
12456
  size: "sm",
12473
12457
  c: "gray"
12474
12458
  }, {});
12475
- return /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12459
+ return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12476
12460
  /* @__PURE__ */ d.jsx(Tn, { colSpan: t, children: /* @__PURE__ */ d.jsxs($o, { children: [
12477
12461
  /* @__PURE__ */ d.jsxs(rt, { justify: "flex-start", align: "center", gutter: "sm", children: [
12478
12462
  /* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(nt, { children: n }) }),
@@ -12530,8 +12514,8 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12530
12514
  };
12531
12515
  return /* @__PURE__ */ d.jsx(e, { ...a }, r);
12532
12516
  }
12533
- }, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(Pe.Tr, { children: /* @__PURE__ */ d.jsx(Tn, { colSpan: e, children: /* @__PURE__ */ d.jsx(nt, { align: "center", children: t.noDataMessage }) }) }), BP = je.memo(function({ title: t }) {
12534
- return /* @__PURE__ */ d.jsx(Pe.Th, { children: t });
12517
+ }, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(Re.Tr, { children: /* @__PURE__ */ d.jsx(Tn, { colSpan: e, children: /* @__PURE__ */ d.jsx(nt, { align: "center", children: t.noDataMessage }) }) }), BP = je.memo(function({ title: t }) {
12518
+ return /* @__PURE__ */ d.jsx(Re.Th, { children: t });
12535
12519
  }), WP = (e, t) => {
12536
12520
  const r = t.rowPath + (t.schema.type === "object" ? "." + t.propName : ""), n = tp(
12537
12521
  rw(rp(r, t.schema, (o) => o === r)(e.core.errors).map((o) => o.message))
@@ -12604,12 +12588,12 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12604
12588
  path: f,
12605
12589
  translations: p
12606
12590
  }) => {
12607
- const g = Be("ActionIcon", {
12591
+ const y = Be("ActionIcon", {
12608
12592
  bg: "transparent",
12609
12593
  size: "sm",
12610
12594
  c: "gray"
12611
12595
  }, {}), h = wt(() => o(f, r), [o, f, r]), b = wt(() => a(f, r), [a, f, r]);
12612
- return /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12596
+ return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12613
12597
  jd(GP, t, e, c, u),
12614
12598
  c ? /* @__PURE__ */ d.jsx(Tn, { style: l ? jc.fixedCell : jc.fixedCellSmall, children: /* @__PURE__ */ d.jsxs(rt, { justify: "flex-end", align: "center", children: [
12615
12599
  l ? /* @__PURE__ */ d.jsxs(Fd, { children: [
@@ -12623,9 +12607,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12623
12607
  children: /* @__PURE__ */ d.jsx(
12624
12608
  gt,
12625
12609
  {
12626
- bg: g.bg,
12627
- size: g.size,
12628
- c: g.c,
12610
+ bg: y.bg,
12611
+ size: y.size,
12612
+ c: y.c,
12629
12613
  "aria-label": p.upAriaLabel,
12630
12614
  onClick: h,
12631
12615
  disabled: !i,
@@ -12644,9 +12628,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12644
12628
  children: /* @__PURE__ */ d.jsx(
12645
12629
  gt,
12646
12630
  {
12647
- bg: g.bg,
12648
- size: g.size,
12649
- c: g.c,
12631
+ bg: y.bg,
12632
+ size: y.size,
12633
+ c: y.c,
12650
12634
  "aria-label": p.downAriaLabel,
12651
12635
  onClick: b,
12652
12636
  disabled: !s,
@@ -12659,9 +12643,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12659
12643
  /* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(mt, { id: "tooltip-remove", title: p.removeTooltip, position: "bottom", children: /* @__PURE__ */ d.jsx(
12660
12644
  gt,
12661
12645
  {
12662
- bg: g.bg,
12663
- size: g.size,
12664
- c: g.c,
12646
+ bg: y.bg,
12647
+ size: y.size,
12648
+ c: y.c,
12665
12649
  "aria-label": p.removeAriaLabel,
12666
12650
  onClick: () => n(e, r),
12667
12651
  children: /* @__PURE__ */ d.jsx(FP, {})
@@ -12685,26 +12669,26 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12685
12669
  if (e === 0)
12686
12670
  return /* @__PURE__ */ d.jsx(VP, { numColumns: Id(r).length + 1, translations: u });
12687
12671
  const p = Cf({}, s, i.options);
12688
- return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((y) => {
12689
- const g = Qc.compose(t, `${y}`);
12672
+ return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((g) => {
12673
+ const y = Qc.compose(t, `${g}`);
12690
12674
  return /* @__PURE__ */ d.jsx(
12691
12675
  YP,
12692
12676
  {
12693
- childPath: g,
12694
- rowIndex: y,
12677
+ childPath: y,
12678
+ rowIndex: g,
12695
12679
  schema: r,
12696
12680
  openDeleteDialog: n,
12697
12681
  moveUpCreator: o,
12698
12682
  moveDownCreator: a,
12699
- enableUp: y !== 0,
12700
- enableDown: y !== e - 1,
12683
+ enableUp: g !== 0,
12684
+ enableDown: g !== e - 1,
12701
12685
  showSortButtons: p.showSortButtons || p.showArrayTableSortButtons,
12702
12686
  enabled: l,
12703
12687
  cells: c,
12704
12688
  path: t,
12705
12689
  translations: u
12706
12690
  },
12707
- g
12691
+ y
12708
12692
  );
12709
12693
  }) });
12710
12694
  };
@@ -12726,10 +12710,10 @@ class XP extends je.Component {
12726
12710
  visible: u,
12727
12711
  enabled: f,
12728
12712
  cells: p,
12729
- translations: y
12730
- } = this.props, g = s, h = a.type === "object", b = h ? jd(BP, a, o, f, p) : void 0;
12731
- return u ? /* @__PURE__ */ d.jsxs(Pe, { children: [
12732
- /* @__PURE__ */ d.jsxs(Pe.Thead, { children: [
12713
+ translations: g
12714
+ } = this.props, y = s, h = a.type === "object", b = h ? jd(BP, a, o, f, p) : void 0;
12715
+ return u ? /* @__PURE__ */ d.jsxs(Re, { children: [
12716
+ /* @__PURE__ */ d.jsxs(Re.Thead, { children: [
12733
12717
  /* @__PURE__ */ d.jsx(
12734
12718
  UP,
12735
12719
  {
@@ -12739,19 +12723,19 @@ class XP extends je.Component {
12739
12723
  addItem: this.addItem,
12740
12724
  numColumns: h ? b.length : 1,
12741
12725
  path: o,
12742
- uischema: g,
12726
+ uischema: y,
12743
12727
  schema: a,
12744
12728
  rootSchema: i,
12745
12729
  enabled: f,
12746
- translations: y
12730
+ translations: g
12747
12731
  }
12748
12732
  ),
12749
- h && /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12733
+ h && /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12750
12734
  b,
12751
- f ? /* @__PURE__ */ d.jsx(Pe.Th, {}) : null
12735
+ f ? /* @__PURE__ */ d.jsx(Re.Th, {}) : null
12752
12736
  ] })
12753
12737
  ] }),
12754
- /* @__PURE__ */ d.jsx(Pe.Tbody, { children: /* @__PURE__ */ d.jsx(KP, { openDeleteDialog: c, translations: y, ...this.props }) })
12738
+ /* @__PURE__ */ d.jsx(Re.Tbody, { children: /* @__PURE__ */ d.jsx(KP, { openDeleteDialog: c, translations: g, ...this.props }) })
12755
12739
  ] }) : null;
12756
12740
  }
12757
12741
  }
@@ -12774,13 +12758,13 @@ const JP = je.memo(function({
12774
12758
  ] });
12775
12759
  }), ZP = (e) => {
12776
12760
  const [t, r] = fe(!1), [n, o] = fe(void 0), [a, i] = fe(void 0), { removeItems: s, visible: l } = e, c = Te(
12777
- (y, g) => {
12778
- r(!0), o(y), i(g);
12761
+ (g, y) => {
12762
+ r(!0), o(g), i(y);
12779
12763
  },
12780
12764
  [r, o, i]
12781
12765
  ), u = Te(() => r(!1), [r]), f = Te(() => {
12782
- const y = n.substring(0, n.lastIndexOf("."));
12783
- s(y, [a])(), r(!1);
12766
+ const g = n.substring(0, n.lastIndexOf("."));
12767
+ s(g, [a])(), r(!1);
12784
12768
  }, [r, n, a]), p = Te(() => r(!1), [r]);
12785
12769
  return l ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
12786
12770
  /* @__PURE__ */ d.jsx(XP, { ...e, openDeleteDialog: c }),