@luminix/mui-cms 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mui-cms.js CHANGED
@@ -2,11 +2,11 @@ var gr = Object.defineProperty;
2
2
  var br = (e, t, n) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $e = (e, t, n) => br(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { Str as T, Obj as J, DateTime as Oe, Query as mn, Func as yr, MakeFacade as St, Reducible as gn, ServiceProvider as bn } from "@luminix/support";
5
- import { config as oe, collect as V, app as k, model as ye, App as At, Model as Re, Route as wr, Config as re } from "@luminix/core";
5
+ import { config as oe, collect as W, app as k, model as we, App as xt, Model as Re, Route as wr, Config as re } from "@luminix/core";
6
6
  import { jsx as i, jsxs as w, Fragment as B } from "react/jsx-runtime";
7
- import { Outlet as Sr, useParams as Ar, useNavigate as xt, useSearchParams as G, Link as Pe, Form as xr } from "react-router-dom";
8
- import { useCollection as yn, PaginationProvider as Cr, usePagination as Se, ModelForm as Er, useApplyReducers as Ct, Forms as Tr, LuminixProvider as kr } from "@luminix/react";
9
- import { useMediaQuery as Me, Dialog as Et, DialogTitle as Tt, DialogContent as kt, DialogContentText as Dr, DialogActions as Dt, Button as M, Snackbar as Or, Alert as Rr, IconButton as q, AlertTitle as Pr, Box as H, Unstable_Grid2 as Q, Fab as vr, SpeedDial as Fr, SpeedDialIcon as Lr, SpeedDialAction as Br, ButtonGroup as Ir, Popper as Mr, Grow as Nr, Paper as Ot, ClickAwayListener as jr, MenuList as Ur, MenuItem as se, AppBar as wn, Toolbar as qr, Typography as $, Drawer as Sn, Divider as ve, Autocomplete as _r, TextField as Ae, CircularProgress as Hr, Switch as zr, Stack as N, FormControl as at, InputLabel as it, Select as Fe, Badge as Rt, Popover as Wr, Link as lt, Collapse as An, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Vr, Table as $r, TableHead as Kr, TableRow as fe, Checkbox as Pt, TableSortLabel as Yr, Skeleton as Kt, TableBody as Jr, TableFooter as Gr, Tabs as Zr, Tab as Yt, Breadcrumbs as Xr, List as Qr, ListItem as eo, ListItemButton as to, ListItemIcon as xn, ListItemText as Cn, Menu as En, Avatar as no, CssBaseline as ro } from "@mui/material";
7
+ import { Outlet as Sr, useParams as xr, useNavigate as At, useSearchParams as G, Link as Pe, Form as Ar } from "react-router-dom";
8
+ import { useCollection as yn, PaginationProvider as Cr, usePagination as xe, ModelForm as Er, useApplyReducers as Ct, Forms as Tr, LuminixProvider as kr } from "@luminix/react";
9
+ import { useMediaQuery as Me, Dialog as Et, DialogTitle as Tt, DialogContent as kt, DialogContentText as Dr, TextField as fe, DialogActions as Dt, Button as M, Snackbar as Or, Alert as Rr, IconButton as q, AlertTitle as Pr, Box as H, Unstable_Grid2 as Q, Fab as vr, SpeedDial as Fr, SpeedDialIcon as Lr, SpeedDialAction as Br, ButtonGroup as Ir, Popper as Mr, Grow as Nr, Paper as Ot, ClickAwayListener as jr, MenuList as Ur, MenuItem as se, AppBar as wn, Toolbar as qr, Typography as $, Drawer as Sn, Divider as ve, Autocomplete as _r, CircularProgress as Hr, Switch as zr, Stack as N, FormControl as at, InputLabel as it, Select as Fe, Badge as Rt, Popover as Vr, Link as lt, Collapse as xn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Wr, Table as $r, TableHead as Kr, TableRow as he, Checkbox as Pt, TableSortLabel as Yr, Skeleton as Kt, TableBody as Jr, TableFooter as Gr, Tabs as Zr, Tab as Yt, Breadcrumbs as Xr, List as Qr, ListItem as eo, ListItemButton as to, ListItemIcon as An, ListItemText as Cn, Menu as En, Avatar as no, CssBaseline as ro } from "@mui/material";
10
10
  import p, { useContext as Tn, useMemo as oo } from "react";
11
11
  import { useTranslation as L, initReactI18next as so } from "react-i18next";
12
12
  import { Close as Ne, ArrowDropDown as kn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as Dn, FilterList as On, Menu as Rn, LastPage as Pn, FirstPage as vn, Search as ut, SwapVert as Fn, ArrowUpward as Ln, ArrowDownward as Bn, MoreVert as vt, ExpandLess as In, ExpandMore as Mn, Add as ao, CategoryOutlined as io, DashboardOutlined as lo, PeopleOutlined as co } from "@mui/icons-material";
@@ -29,7 +29,7 @@ const ho = {
29
29
  setShowBackButton: () => {
30
30
  }
31
31
  }, X = p.createContext(ho), Je = document.title, po = ({ children: e }) => {
32
- const [t, n] = p.useState(!1), [r, o] = p.useState(""), [s, a] = p.useState(!1), [l, d] = p.useState(!1), c = oe("luminix.cms.layout", {}), u = Me((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
32
+ const [t, n] = p.useState(!1), [r, o] = p.useState(""), [s, a] = p.useState(!1), [l, d] = p.useState(!1), c = oe("luminix.cms.layout", {}), u = Me((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), f = {
33
33
  open: t,
34
34
  setOpen: n,
35
35
  layout: c,
@@ -43,7 +43,7 @@ const ho = {
43
43
  };
44
44
  return p.useEffect(() => (document.title = r ? `${r} | ${oe("app.name", Je)}` : oe("app.name", Je), () => {
45
45
  document.title = Je;
46
- }), [r]), /* @__PURE__ */ i(X.Provider, { value: h, children: e });
46
+ }), [r]), /* @__PURE__ */ i(X.Provider, { value: f, children: e });
47
47
  }, Nn = p.createContext({
48
48
  Model: null
49
49
  }), Ge = ({ Model: e, children: t }) => /* @__PURE__ */ i(Nn.Provider, { value: { Model: e }, children: t }), jn = p.createContext({
@@ -60,21 +60,23 @@ function mo(e) {
60
60
  }, [e]), e || t;
61
61
  }
62
62
  function go({ children: e, ...t }) {
63
- const [{ current: n, resolve: r }, o] = p.useState({}), s = mo(n), a = p.useCallback((u) => new Promise((h) => {
64
- o({
65
- current: typeof u == "string" ? { message: u } : u,
66
- resolve: h
63
+ const [{ current: n, resolve: r }, o] = p.useState({}), [s, a] = p.useState(""), l = mo(n), { type: d = "alert" } = l ?? {}, c = p.useCallback((S) => new Promise((b) => {
64
+ typeof S != "string" && S.type === "prompt" && a(S.defaultValue ?? ""), o({
65
+ current: typeof S == "string" ? { message: S } : S,
66
+ resolve: b
67
67
  });
68
- }), []), { t: l } = L(), d = () => {
68
+ }), []), { t: u } = L(), f = () => {
69
69
  r && r(!1), o({});
70
- }, c = () => {
71
- r && r(!0), o({});
70
+ }, y = () => {
71
+ r && r(
72
+ d === "prompt" ? s : !0
73
+ ), o({});
72
74
  };
73
75
  return /* @__PURE__ */ w(jn.Provider, { value: {
74
76
  isOpen: !!n,
75
77
  current: n,
76
- dialog: a,
77
- dismissDialog: d
78
+ dialog: c,
79
+ dismissDialog: f
78
80
  }, children: [
79
81
  e,
80
82
  /* @__PURE__ */ w(
@@ -83,17 +85,32 @@ function go({ children: e, ...t }) {
83
85
  open: !!n,
84
86
  "aria-labelledby": "alert-dialog-title",
85
87
  "aria-describedby": "alert-dialog-description",
86
- ...(n == null ? void 0 : n.dismissable) ?? !0 ? { onClose: d } : {},
88
+ ...(n == null ? void 0 : n.dismissable) ?? !0 ? { onClose: f } : {},
87
89
  ...t,
88
90
  children: [
89
- (s == null ? void 0 : s.title) && /* @__PURE__ */ i(Tt, { id: "alert-dialog-title", children: s.title }),
90
- /* @__PURE__ */ i(kt, { children: /* @__PURE__ */ i(Dr, { id: "alert-dialog-description", children: s == null ? void 0 : s.message }) }),
91
+ (l == null ? void 0 : l.title) && /* @__PURE__ */ i(Tt, { id: "alert-dialog-title", children: l.title }),
92
+ /* @__PURE__ */ w(kt, { children: [
93
+ /* @__PURE__ */ i(Dr, { id: "alert-dialog-description", children: l == null ? void 0 : l.message }),
94
+ d === "prompt" && /* @__PURE__ */ i(
95
+ fe,
96
+ {
97
+ autoFocus: !0,
98
+ margin: "dense",
99
+ id: "name",
100
+ label: l == null ? void 0 : l.message,
101
+ type: "text",
102
+ fullWidth: !0,
103
+ value: s,
104
+ onChange: (S) => a(S.target.value)
105
+ }
106
+ )
107
+ ] }),
91
108
  /* @__PURE__ */ w(Dt, { children: [
92
- (s == null ? void 0 : s.type) === "confirm" && /* @__PURE__ */ w(B, { children: [
93
- /* @__PURE__ */ i(M, { onClick: d, children: (s == null ? void 0 : s.cancelText) ?? l("No") }),
94
- /* @__PURE__ */ i(M, { onClick: c, autoFocus: !0, children: (s == null ? void 0 : s.confirmText) ?? l("Yes") })
109
+ d === "confirm" && /* @__PURE__ */ w(B, { children: [
110
+ /* @__PURE__ */ i(M, { onClick: f, children: (l == null ? void 0 : l.cancelText) ?? u("No") }),
111
+ /* @__PURE__ */ i(M, { onClick: y, autoFocus: !0, children: (l == null ? void 0 : l.confirmText) ?? u("Yes") })
95
112
  ] }),
96
- ((s == null ? void 0 : s.type) ?? "alert") === "alert" && /* @__PURE__ */ i(M, { onClick: d, autoFocus: !0, children: (s == null ? void 0 : s.confirmText) ?? l("Ok") })
113
+ ["alert", "prompt"].includes(d) && /* @__PURE__ */ i(M, { onClick: f, autoFocus: !0, children: (l == null ? void 0 : l.confirmText) ?? u("Ok") })
97
114
  ] })
98
115
  ]
99
116
  }
@@ -115,7 +132,7 @@ const Lt = p.createContext({
115
132
  displacement: "8px",
116
133
  setDisplacement: () => {
117
134
  }
118
- }), dt = V([]), bo = (e) => {
135
+ }), dt = W([]), bo = (e) => {
119
136
  dt.push(
120
137
  typeof e == "string" ? { message: e } : e
121
138
  );
@@ -127,13 +144,13 @@ const Lt = p.createContext({
127
144
  sx: o,
128
145
  ...s
129
146
  }) => {
130
- const a = yn(dt), l = v(), c = Ft().spacing(l ? 3 : 1), [u, h] = p.useState(), [y, S] = p.useState(c), { vertical: b = "bottom" } = r || {}, m = (g, x) => {
131
- x !== "clickaway" && h(void 0);
147
+ const a = yn(dt), l = v(), c = Ft().spacing(l ? 3 : 1), [u, f] = p.useState(), [y, S] = p.useState(c), { vertical: b = "bottom" } = r || {}, m = (g, A) => {
148
+ A !== "clickaway" && f(void 0);
132
149
  };
133
150
  return p.useEffect(() => {
134
151
  if (!u && a.isNotEmpty()) {
135
152
  const g = setTimeout(() => {
136
- h(dt.pull(0) ?? void 0);
153
+ f(dt.pull(0) ?? void 0);
137
154
  }, 100);
138
155
  return () => clearTimeout(g);
139
156
  }
@@ -167,15 +184,15 @@ const Lt = p.createContext({
167
184
  variant: n,
168
185
  sx: { width: "100%" },
169
186
  action: u.actions && [
170
- ...u.actions.map(({ label: g, callback: x }, A) => /* @__PURE__ */ i(
187
+ ...u.actions.map(({ label: g, callback: A }, x) => /* @__PURE__ */ i(
171
188
  M,
172
189
  {
173
190
  color: "inherit",
174
191
  size: "small",
175
- onClick: x,
192
+ onClick: A,
176
193
  children: g
177
194
  },
178
- A
195
+ x
179
196
  )),
180
197
  /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: m, children: /* @__PURE__ */ i(Ne, {}) }, "close")
181
198
  ],
@@ -242,10 +259,10 @@ function Bt(e) {
242
259
  t("");
243
260
  }), [e, t]);
244
261
  }
245
- const Ao = () => {
262
+ const xo = () => {
246
263
  const { t: e } = L();
247
264
  return Bt(e("Dashboard")), /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: "Dashboard" });
248
- }, xo = ({ error: e }) => /* @__PURE__ */ w("div", { children: [
265
+ }, Ao = ({ error: e }) => /* @__PURE__ */ w("div", { children: [
249
266
  /* @__PURE__ */ i("h1", { children: "Ops..." }),
250
267
  /* @__PURE__ */ i("p", { children: "Something went wrong" }),
251
268
  k().hasDebugModeEnabled() && e && /* @__PURE__ */ i(B, { children: /* @__PURE__ */ w("pre", { style: { whiteSpace: "pre-wrap" }, children: [
@@ -314,7 +331,7 @@ const ko = () => {
314
331
  data: t,
315
332
  error: n,
316
333
  loading: r
317
- } = Se();
334
+ } = xe();
318
335
  Bt(e.plural()), To();
319
336
  const o = v(), {
320
337
  Breadcrumbs: s,
@@ -323,7 +340,7 @@ const ko = () => {
323
340
  ["ModelIndex.Table"]: d,
324
341
  ["ModelIndex.Table.TableBody"]: c,
325
342
  ["ModelIndex.Table.TableHead"]: u,
326
- ["ModelIndex.Table.TableFooter"]: h,
343
+ ["ModelIndex.Table.TableFooter"]: f,
327
344
  ["ModelIndex.Table.TableToolbar"]: y,
328
345
  ["ModelIndex.Table.TableBody.TableRow"]: S,
329
346
  ["ModelIndex.Tabs"]: b
@@ -360,7 +377,7 @@ const ko = () => {
360
377
  children: [
361
378
  /* @__PURE__ */ i(u, { children: /* @__PURE__ */ i(y, {}) }),
362
379
  /* @__PURE__ */ i(c, { children: (m) => /* @__PURE__ */ i(S, { item: m }, m.getKey()) }),
363
- /* @__PURE__ */ i(h, {})
380
+ /* @__PURE__ */ i(f, {})
364
381
  ]
365
382
  }
366
383
  ) })
@@ -380,9 +397,9 @@ function Un(e, t) {
380
397
  const { toString: Oo } = Object.prototype, { getPrototypeOf: It } = Object, qe = /* @__PURE__ */ ((e) => (t) => {
381
398
  const n = Oo.call(t);
382
399
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
383
- })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: he } = Array, we = _e("undefined");
400
+ })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: pe } = Array, Se = _e("undefined");
384
401
  function Ro(e) {
385
- return e !== null && !we(e) && e.constructor !== null && !we(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
402
+ return e !== null && !Se(e) && e.constructor !== null && !Se(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
386
403
  }
387
404
  const qn = K("ArrayBuffer");
388
405
  function Po(e) {
@@ -398,12 +415,12 @@ const vo = _e("string"), _ = _e("function"), _n = _e("number"), He = (e) => e !=
398
415
  let t;
399
416
  return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
400
417
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
401
- }, Uo = K("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
402
- function xe(e, t, { allOwnKeys: n = !1 } = {}) {
418
+ }, Uo = K("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Vo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
419
+ function Ae(e, t, { allOwnKeys: n = !1 } = {}) {
403
420
  if (e === null || typeof e > "u")
404
421
  return;
405
422
  let r, o;
406
- if (typeof e != "object" && (e = [e]), he(e))
423
+ if (typeof e != "object" && (e = [e]), pe(e))
407
424
  for (r = 0, o = e.length; r < o; r++)
408
425
  t.call(null, e[r], r, e);
409
426
  else {
@@ -422,17 +439,17 @@ function Hn(e, t) {
422
439
  return o;
423
440
  return null;
424
441
  }
425
- const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zn = (e) => !we(e) && e !== ie;
442
+ const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zn = (e) => !Se(e) && e !== ie;
426
443
  function ft() {
427
444
  const { caseless: e } = zn(this) && this || {}, t = {}, n = (r, o) => {
428
445
  const s = e && Hn(t, o) || o;
429
- ke(t[s]) && ke(r) ? t[s] = ft(t[s], r) : ke(r) ? t[s] = ft({}, r) : he(r) ? t[s] = r.slice() : t[s] = r;
446
+ ke(t[s]) && ke(r) ? t[s] = ft(t[s], r) : ke(r) ? t[s] = ft({}, r) : pe(r) ? t[s] = r.slice() : t[s] = r;
430
447
  };
431
448
  for (let r = 0, o = arguments.length; r < o; r++)
432
- arguments[r] && xe(arguments[r], n);
449
+ arguments[r] && Ae(arguments[r], n);
433
450
  return t;
434
451
  }
435
- const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
452
+ const Wo = (e, t, n, { allOwnKeys: r } = {}) => (Ae(t, (o, s) => {
436
453
  n && _(o) ? e[s] = Un(o, n) : e[s] = o;
437
454
  }, { allOwnKeys: r }), e), $o = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ko = (e, t, n, r) => {
438
455
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -454,7 +471,7 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
454
471
  return r !== -1 && r === n;
455
472
  }, Go = (e) => {
456
473
  if (!e) return null;
457
- if (he(e)) return e;
474
+ if (pe(e)) return e;
458
475
  let t = e.length;
459
476
  if (!_n(t)) return null;
460
477
  const n = new Array(t);
@@ -479,14 +496,14 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
479
496
  function(n, r, o) {
480
497
  return r.toUpperCase() + o;
481
498
  }
482
- ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = K("RegExp"), Wn = (e, t) => {
499
+ ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = K("RegExp"), Vn = (e, t) => {
483
500
  const n = Object.getOwnPropertyDescriptors(e), r = {};
484
- xe(n, (o, s) => {
501
+ Ae(n, (o, s) => {
485
502
  let a;
486
503
  (a = t(o, s, e)) !== !1 && (r[s] = a || o);
487
504
  }), Object.defineProperties(e, r);
488
505
  }, rs = (e) => {
489
- Wn(e, (t, n) => {
506
+ Vn(e, (t, n) => {
490
507
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
491
508
  return !1;
492
509
  const r = e[n];
@@ -506,13 +523,13 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
506
523
  n[s] = !0;
507
524
  });
508
525
  };
509
- return he(e) ? r(e) : r(String(e).split(t)), n;
526
+ return pe(e) ? r(e) : r(String(e).split(t)), n;
510
527
  }, ss = () => {
511
- }, as = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ze = "abcdefghijklmnopqrstuvwxyz", Zt = "0123456789", Vn = {
528
+ }, as = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ze = "abcdefghijklmnopqrstuvwxyz", Zt = "0123456789", Wn = {
512
529
  DIGIT: Zt,
513
530
  ALPHA: Ze,
514
531
  ALPHA_DIGIT: Ze + Ze.toUpperCase() + Zt
515
- }, is = (e = 16, t = Vn.ALPHA_DIGIT) => {
532
+ }, is = (e = 16, t = Wn.ALPHA_DIGIT) => {
516
533
  let n = "";
517
534
  const { length: r } = t;
518
535
  for (; e--; )
@@ -529,10 +546,10 @@ const cs = (e) => {
529
546
  return;
530
547
  if (!("toJSON" in r)) {
531
548
  t[o] = r;
532
- const s = he(r) ? [] : {};
533
- return xe(r, (a, l) => {
549
+ const s = pe(r) ? [] : {};
550
+ return Ae(r, (a, l) => {
534
551
  const d = n(a, o + 1);
535
- !we(d) && (s[l] = d);
552
+ !Se(d) && (s[l] = d);
536
553
  }), t[o] = void 0, s;
537
554
  }
538
555
  }
@@ -546,8 +563,8 @@ const cs = (e) => {
546
563
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
547
564
  typeof setImmediate == "function",
548
565
  _(ie.postMessage)
549
- ), fs = typeof queueMicrotask < "u" ? queueMicrotask.bind(ie) : typeof process < "u" && process.nextTick || $n, f = {
550
- isArray: he,
566
+ ), fs = typeof queueMicrotask < "u" ? queueMicrotask.bind(ie) : typeof process < "u" && process.nextTick || $n, h = {
567
+ isArray: pe,
551
568
  isArrayBuffer: qn,
552
569
  isBuffer: Ro,
553
570
  isFormData: jo,
@@ -561,7 +578,7 @@ const cs = (e) => {
561
578
  isRequest: _o,
562
579
  isResponse: Ho,
563
580
  isHeaders: zo,
564
- isUndefined: we,
581
+ isUndefined: Se,
565
582
  isDate: Lo,
566
583
  isFile: Bo,
567
584
  isBlob: Io,
@@ -571,10 +588,10 @@ const cs = (e) => {
571
588
  isURLSearchParams: Uo,
572
589
  isTypedArray: Zo,
573
590
  isFileList: Mo,
574
- forEach: xe,
591
+ forEach: Ae,
575
592
  merge: ft,
576
- extend: Vo,
577
- trim: Wo,
593
+ extend: Wo,
594
+ trim: Vo,
578
595
  stripBOM: $o,
579
596
  inherits: Ko,
580
597
  toFlatObject: Yo,
@@ -588,7 +605,7 @@ const cs = (e) => {
588
605
  hasOwnProperty: Gt,
589
606
  hasOwnProp: Gt,
590
607
  // an alias to avoid ESLint no-prototype-builtins detection
591
- reduceDescriptors: Wn,
608
+ reduceDescriptors: Vn,
592
609
  freezeMethods: rs,
593
610
  toObjectSet: os,
594
611
  toCamelCase: ts,
@@ -597,7 +614,7 @@ const cs = (e) => {
597
614
  findKey: Hn,
598
615
  global: ie,
599
616
  isContextDefined: zn,
600
- ALPHABET: Vn,
617
+ ALPHABET: Wn,
601
618
  generateString: is,
602
619
  isSpecCompliantForm: ls,
603
620
  toJSONObject: cs,
@@ -609,7 +626,7 @@ const cs = (e) => {
609
626
  function C(e, t, n, r, o) {
610
627
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
611
628
  }
612
- f.inherits(C, Error, {
629
+ h.inherits(C, Error, {
613
630
  toJSON: function() {
614
631
  return {
615
632
  // Standard
@@ -624,7 +641,7 @@ f.inherits(C, Error, {
624
641
  columnNumber: this.columnNumber,
625
642
  stack: this.stack,
626
643
  // Axios
627
- config: f.toJSONObject(this.config),
644
+ config: h.toJSONObject(this.config),
628
645
  code: this.code,
629
646
  status: this.status
630
647
  };
@@ -652,16 +669,16 @@ Object.defineProperties(C, Yn);
652
669
  Object.defineProperty(Kn, "isAxiosError", { value: !0 });
653
670
  C.from = (e, t, n, r, o, s) => {
654
671
  const a = Object.create(Kn);
655
- return f.toFlatObject(e, a, function(d) {
672
+ return h.toFlatObject(e, a, function(d) {
656
673
  return d !== Error.prototype;
657
674
  }, (l) => l !== "isAxiosError"), C.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
658
675
  };
659
676
  const hs = null;
660
677
  function ht(e) {
661
- return f.isPlainObject(e) || f.isArray(e);
678
+ return h.isPlainObject(e) || h.isArray(e);
662
679
  }
663
680
  function Jn(e) {
664
- return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
681
+ return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
665
682
  }
666
683
  function Xt(e, t, n) {
667
684
  return e ? e.concat(t).map(function(o, s) {
@@ -669,40 +686,40 @@ function Xt(e, t, n) {
669
686
  }).join(n ? "." : "") : t;
670
687
  }
671
688
  function ps(e) {
672
- return f.isArray(e) && !e.some(ht);
689
+ return h.isArray(e) && !e.some(ht);
673
690
  }
674
- const ms = f.toFlatObject(f, {}, null, function(t) {
691
+ const ms = h.toFlatObject(h, {}, null, function(t) {
675
692
  return /^is[A-Z]/.test(t);
676
693
  });
677
694
  function ze(e, t, n) {
678
- if (!f.isObject(e))
695
+ if (!h.isObject(e))
679
696
  throw new TypeError("target must be an object");
680
- t = t || new FormData(), n = f.toFlatObject(n, {
697
+ t = t || new FormData(), n = h.toFlatObject(n, {
681
698
  metaTokens: !0,
682
699
  dots: !1,
683
700
  indexes: !1
684
701
  }, !1, function(m, g) {
685
- return !f.isUndefined(g[m]);
702
+ return !h.isUndefined(g[m]);
686
703
  });
687
- const r = n.metaTokens, o = n.visitor || u, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
688
- if (!f.isFunction(o))
704
+ const r = n.metaTokens, o = n.visitor || u, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
705
+ if (!h.isFunction(o))
689
706
  throw new TypeError("visitor must be a function");
690
707
  function c(b) {
691
708
  if (b === null) return "";
692
- if (f.isDate(b))
709
+ if (h.isDate(b))
693
710
  return b.toISOString();
694
- if (!d && f.isBlob(b))
711
+ if (!d && h.isBlob(b))
695
712
  throw new C("Blob is not supported. Use a Buffer instead.");
696
- return f.isArrayBuffer(b) || f.isTypedArray(b) ? d && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
713
+ return h.isArrayBuffer(b) || h.isTypedArray(b) ? d && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
697
714
  }
698
715
  function u(b, m, g) {
699
- let x = b;
716
+ let A = b;
700
717
  if (b && !g && typeof b == "object") {
701
- if (f.endsWith(m, "{}"))
718
+ if (h.endsWith(m, "{}"))
702
719
  m = r ? m : m.slice(0, -2), b = JSON.stringify(b);
703
- else if (f.isArray(b) && ps(b) || (f.isFileList(b) || f.endsWith(m, "[]")) && (x = f.toArray(b)))
704
- return m = Jn(m), x.forEach(function(E, P) {
705
- !(f.isUndefined(E) || E === null) && t.append(
720
+ else if (h.isArray(b) && ps(b) || (h.isFileList(b) || h.endsWith(m, "[]")) && (A = h.toArray(b)))
721
+ return m = Jn(m), A.forEach(function(E, P) {
722
+ !(h.isUndefined(E) || E === null) && t.append(
706
723
  // eslint-disable-next-line no-nested-ternary
707
724
  a === !0 ? Xt([m], P, s) : a === null ? m : m + "[]",
708
725
  c(E)
@@ -711,27 +728,27 @@ function ze(e, t, n) {
711
728
  }
712
729
  return ht(b) ? !0 : (t.append(Xt(g, m, s), c(b)), !1);
713
730
  }
714
- const h = [], y = Object.assign(ms, {
731
+ const f = [], y = Object.assign(ms, {
715
732
  defaultVisitor: u,
716
733
  convertValue: c,
717
734
  isVisitable: ht
718
735
  });
719
736
  function S(b, m) {
720
- if (!f.isUndefined(b)) {
721
- if (h.indexOf(b) !== -1)
737
+ if (!h.isUndefined(b)) {
738
+ if (f.indexOf(b) !== -1)
722
739
  throw Error("Circular reference detected in " + m.join("."));
723
- h.push(b), f.forEach(b, function(x, A) {
724
- (!(f.isUndefined(x) || x === null) && o.call(
740
+ f.push(b), h.forEach(b, function(A, x) {
741
+ (!(h.isUndefined(A) || A === null) && o.call(
725
742
  t,
726
- x,
727
- f.isString(A) ? A.trim() : A,
743
+ A,
744
+ h.isString(x) ? x.trim() : x,
728
745
  m,
729
746
  y
730
- )) === !0 && S(x, m ? m.concat(A) : [A]);
731
- }), h.pop();
747
+ )) === !0 && S(A, m ? m.concat(x) : [x]);
748
+ }), f.pop();
732
749
  }
733
750
  }
734
- if (!f.isObject(e))
751
+ if (!h.isObject(e))
735
752
  throw new TypeError("data must be an object");
736
753
  return S(e), t;
737
754
  }
@@ -772,7 +789,7 @@ function Zn(e, t, n) {
772
789
  return e;
773
790
  const r = n && n.encode || gs, o = n && n.serialize;
774
791
  let s;
775
- if (o ? s = o(t, n) : s = f.isURLSearchParams(t) ? t.toString() : new Mt(t, n).toString(r), s) {
792
+ if (o ? s = o(t, n) : s = h.isURLSearchParams(t) ? t.toString() : new Mt(t, n).toString(r), s) {
776
793
  const a = e.indexOf("#");
777
794
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
778
795
  }
@@ -827,7 +844,7 @@ class en {
827
844
  * @returns {void}
828
845
  */
829
846
  forEach(t) {
830
- f.forEach(this.handlers, function(r) {
847
+ h.forEach(this.handlers, function(r) {
831
848
  r !== null && t(r);
832
849
  });
833
850
  }
@@ -844,12 +861,12 @@ const Xn = {
844
861
  Blob: ws
845
862
  },
846
863
  protocols: ["http", "https", "file", "blob", "url", "data"]
847
- }, Nt = typeof window < "u" && typeof document < "u", pt = typeof navigator == "object" && navigator || void 0, As = Nt && (!pt || ["ReactNative", "NativeScript", "NS"].indexOf(pt.product) < 0), xs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
864
+ }, Nt = typeof window < "u" && typeof document < "u", pt = typeof navigator == "object" && navigator || void 0, xs = Nt && (!pt || ["ReactNative", "NativeScript", "NS"].indexOf(pt.product) < 0), As = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
848
865
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs = Nt && window.location.href || "http://localhost", Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
849
866
  __proto__: null,
850
867
  hasBrowserEnv: Nt,
851
- hasStandardBrowserEnv: As,
852
- hasStandardBrowserWebWorkerEnv: xs,
868
+ hasStandardBrowserEnv: xs,
869
+ hasStandardBrowserWebWorkerEnv: As,
853
870
  navigator: pt,
854
871
  origin: Cs
855
872
  }, Symbol.toStringTag, { value: "Module" })), j = {
@@ -859,12 +876,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs
859
876
  function Ts(e, t) {
860
877
  return ze(e, new j.classes.URLSearchParams(), Object.assign({
861
878
  visitor: function(n, r, o, s) {
862
- return j.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
879
+ return j.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
863
880
  }
864
881
  }, t));
865
882
  }
866
883
  function ks(e) {
867
- return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
884
+ return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
868
885
  }
869
886
  function Ds(e) {
870
887
  const t = {}, n = Object.keys(e);
@@ -880,20 +897,20 @@ function Qn(e) {
880
897
  let a = n[s++];
881
898
  if (a === "__proto__") return !0;
882
899
  const l = Number.isFinite(+a), d = s >= n.length;
883
- return a = !a && f.isArray(o) ? o.length : a, d ? (f.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !l) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && f.isArray(o[a]) && (o[a] = Ds(o[a])), !l);
900
+ return a = !a && h.isArray(o) ? o.length : a, d ? (h.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !l) : ((!o[a] || !h.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && h.isArray(o[a]) && (o[a] = Ds(o[a])), !l);
884
901
  }
885
- if (f.isFormData(e) && f.isFunction(e.entries)) {
902
+ if (h.isFormData(e) && h.isFunction(e.entries)) {
886
903
  const n = {};
887
- return f.forEachEntry(e, (r, o) => {
904
+ return h.forEachEntry(e, (r, o) => {
888
905
  t(ks(r), o, n, 0);
889
906
  }), n;
890
907
  }
891
908
  return null;
892
909
  }
893
910
  function Os(e, t, n) {
894
- if (f.isString(e))
911
+ if (h.isString(e))
895
912
  try {
896
- return (t || JSON.parse)(e), f.trim(e);
913
+ return (t || JSON.parse)(e), h.trim(e);
897
914
  } catch (r) {
898
915
  if (r.name !== "SyntaxError")
899
916
  throw r;
@@ -904,20 +921,20 @@ const Ce = {
904
921
  transitional: Xn,
905
922
  adapter: ["xhr", "http", "fetch"],
906
923
  transformRequest: [function(t, n) {
907
- const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = f.isObject(t);
908
- if (s && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
924
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = h.isObject(t);
925
+ if (s && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
909
926
  return o ? JSON.stringify(Qn(t)) : t;
910
- if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
927
+ if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
911
928
  return t;
912
- if (f.isArrayBufferView(t))
929
+ if (h.isArrayBufferView(t))
913
930
  return t.buffer;
914
- if (f.isURLSearchParams(t))
931
+ if (h.isURLSearchParams(t))
915
932
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
916
933
  let l;
917
934
  if (s) {
918
935
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
919
936
  return Ts(t, this.formSerializer).toString();
920
- if ((l = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
937
+ if ((l = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
921
938
  const d = this.env && this.env.FormData;
922
939
  return ze(
923
940
  l ? { "files[]": t } : t,
@@ -930,9 +947,9 @@ const Ce = {
930
947
  }],
931
948
  transformResponse: [function(t) {
932
949
  const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
933
- if (f.isResponse(t) || f.isReadableStream(t))
950
+ if (h.isResponse(t) || h.isReadableStream(t))
934
951
  return t;
935
- if (t && f.isString(t) && (r && !this.responseType || o)) {
952
+ if (t && h.isString(t) && (r && !this.responseType || o)) {
936
953
  const a = !(n && n.silentJSONParsing) && o;
937
954
  try {
938
955
  return JSON.parse(t);
@@ -966,10 +983,10 @@ const Ce = {
966
983
  }
967
984
  }
968
985
  };
969
- f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
986
+ h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
970
987
  Ce.headers[e] = {};
971
988
  });
972
- const Rs = f.toObjectSet([
989
+ const Rs = h.toObjectSet([
973
990
  "age",
974
991
  "authorization",
975
992
  "content-length",
@@ -995,11 +1012,11 @@ const Rs = f.toObjectSet([
995
1012
  o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Rs[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
996
1013
  }), t;
997
1014
  }, tn = Symbol("internals");
998
- function ge(e) {
1015
+ function be(e) {
999
1016
  return e && String(e).trim().toLowerCase();
1000
1017
  }
1001
1018
  function De(e) {
1002
- return e === !1 || e == null ? e : f.isArray(e) ? e.map(De) : String(e);
1019
+ return e === !1 || e == null ? e : h.isArray(e) ? e.map(De) : String(e);
1003
1020
  }
1004
1021
  function vs(e) {
1005
1022
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1010,12 +1027,12 @@ function vs(e) {
1010
1027
  }
1011
1028
  const Fs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1012
1029
  function Xe(e, t, n, r, o) {
1013
- if (f.isFunction(r))
1030
+ if (h.isFunction(r))
1014
1031
  return r.call(this, t, n);
1015
- if (o && (t = n), !!f.isString(t)) {
1016
- if (f.isString(r))
1032
+ if (o && (t = n), !!h.isString(t)) {
1033
+ if (h.isString(r))
1017
1034
  return t.indexOf(r) !== -1;
1018
- if (f.isRegExp(r))
1035
+ if (h.isRegExp(r))
1019
1036
  return r.test(t);
1020
1037
  }
1021
1038
  }
@@ -1023,7 +1040,7 @@ function Ls(e) {
1023
1040
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1024
1041
  }
1025
1042
  function Bs(e, t) {
1026
- const n = f.toCamelCase(" " + t);
1043
+ const n = h.toCamelCase(" " + t);
1027
1044
  ["get", "set", "has"].forEach((r) => {
1028
1045
  Object.defineProperty(e, r + n, {
1029
1046
  value: function(o, s, a) {
@@ -1040,18 +1057,18 @@ let U = class {
1040
1057
  set(t, n, r) {
1041
1058
  const o = this;
1042
1059
  function s(l, d, c) {
1043
- const u = ge(d);
1060
+ const u = be(d);
1044
1061
  if (!u)
1045
1062
  throw new Error("header name must be a non-empty string");
1046
- const h = f.findKey(o, u);
1047
- (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = De(l));
1063
+ const f = h.findKey(o, u);
1064
+ (!f || o[f] === void 0 || c === !0 || c === void 0 && o[f] !== !1) && (o[f || d] = De(l));
1048
1065
  }
1049
- const a = (l, d) => f.forEach(l, (c, u) => s(c, u, d));
1050
- if (f.isPlainObject(t) || t instanceof this.constructor)
1066
+ const a = (l, d) => h.forEach(l, (c, u) => s(c, u, d));
1067
+ if (h.isPlainObject(t) || t instanceof this.constructor)
1051
1068
  a(t, n);
1052
- else if (f.isString(t) && (t = t.trim()) && !Fs(t))
1069
+ else if (h.isString(t) && (t = t.trim()) && !Fs(t))
1053
1070
  a(Ps(t), n);
1054
- else if (f.isHeaders(t))
1071
+ else if (h.isHeaders(t))
1055
1072
  for (const [l, d] of t.entries())
1056
1073
  s(d, l, r);
1057
1074
  else
@@ -1059,25 +1076,25 @@ let U = class {
1059
1076
  return this;
1060
1077
  }
1061
1078
  get(t, n) {
1062
- if (t = ge(t), t) {
1063
- const r = f.findKey(this, t);
1079
+ if (t = be(t), t) {
1080
+ const r = h.findKey(this, t);
1064
1081
  if (r) {
1065
1082
  const o = this[r];
1066
1083
  if (!n)
1067
1084
  return o;
1068
1085
  if (n === !0)
1069
1086
  return vs(o);
1070
- if (f.isFunction(n))
1087
+ if (h.isFunction(n))
1071
1088
  return n.call(this, o, r);
1072
- if (f.isRegExp(n))
1089
+ if (h.isRegExp(n))
1073
1090
  return n.exec(o);
1074
1091
  throw new TypeError("parser must be boolean|regexp|function");
1075
1092
  }
1076
1093
  }
1077
1094
  }
1078
1095
  has(t, n) {
1079
- if (t = ge(t), t) {
1080
- const r = f.findKey(this, t);
1096
+ if (t = be(t), t) {
1097
+ const r = h.findKey(this, t);
1081
1098
  return !!(r && this[r] !== void 0 && (!n || Xe(this, this[r], r, n)));
1082
1099
  }
1083
1100
  return !1;
@@ -1086,12 +1103,12 @@ let U = class {
1086
1103
  const r = this;
1087
1104
  let o = !1;
1088
1105
  function s(a) {
1089
- if (a = ge(a), a) {
1090
- const l = f.findKey(r, a);
1106
+ if (a = be(a), a) {
1107
+ const l = h.findKey(r, a);
1091
1108
  l && (!n || Xe(r, r[l], l, n)) && (delete r[l], o = !0);
1092
1109
  }
1093
1110
  }
1094
- return f.isArray(t) ? t.forEach(s) : s(t), o;
1111
+ return h.isArray(t) ? t.forEach(s) : s(t), o;
1095
1112
  }
1096
1113
  clear(t) {
1097
1114
  const n = Object.keys(this);
@@ -1104,8 +1121,8 @@ let U = class {
1104
1121
  }
1105
1122
  normalize(t) {
1106
1123
  const n = this, r = {};
1107
- return f.forEach(this, (o, s) => {
1108
- const a = f.findKey(r, s);
1124
+ return h.forEach(this, (o, s) => {
1125
+ const a = h.findKey(r, s);
1109
1126
  if (a) {
1110
1127
  n[a] = De(o), delete n[s];
1111
1128
  return;
@@ -1119,8 +1136,8 @@ let U = class {
1119
1136
  }
1120
1137
  toJSON(t) {
1121
1138
  const n = /* @__PURE__ */ Object.create(null);
1122
- return f.forEach(this, (r, o) => {
1123
- r != null && r !== !1 && (n[o] = t && f.isArray(r) ? r.join(", ") : r);
1139
+ return h.forEach(this, (r, o) => {
1140
+ r != null && r !== !1 && (n[o] = t && h.isArray(r) ? r.join(", ") : r);
1124
1141
  }), n;
1125
1142
  }
1126
1143
  [Symbol.iterator]() {
@@ -1145,14 +1162,14 @@ let U = class {
1145
1162
  accessors: {}
1146
1163
  }).accessors, o = this.prototype;
1147
1164
  function s(a) {
1148
- const l = ge(a);
1165
+ const l = be(a);
1149
1166
  r[l] || (Bs(o, a), r[l] = !0);
1150
1167
  }
1151
- return f.isArray(t) ? t.forEach(s) : s(t), this;
1168
+ return h.isArray(t) ? t.forEach(s) : s(t), this;
1152
1169
  }
1153
1170
  };
1154
1171
  U.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1155
- f.reduceDescriptors(U.prototype, ({ value: e }, t) => {
1172
+ h.reduceDescriptors(U.prototype, ({ value: e }, t) => {
1156
1173
  let n = t[0].toUpperCase() + t.slice(1);
1157
1174
  return {
1158
1175
  get: () => e,
@@ -1161,21 +1178,21 @@ f.reduceDescriptors(U.prototype, ({ value: e }, t) => {
1161
1178
  }
1162
1179
  };
1163
1180
  });
1164
- f.freezeMethods(U);
1181
+ h.freezeMethods(U);
1165
1182
  function Qe(e, t) {
1166
1183
  const n = this || Ce, r = t || n, o = U.from(r.headers);
1167
1184
  let s = r.data;
1168
- return f.forEach(e, function(l) {
1185
+ return h.forEach(e, function(l) {
1169
1186
  s = l.call(n, s, o.normalize(), t ? t.status : void 0);
1170
1187
  }), o.normalize(), s;
1171
1188
  }
1172
1189
  function er(e) {
1173
1190
  return !!(e && e.__CANCEL__);
1174
1191
  }
1175
- function pe(e, t, n) {
1192
+ function me(e, t, n) {
1176
1193
  C.call(this, e ?? "canceled", C.ERR_CANCELED, t, n), this.name = "CanceledError";
1177
1194
  }
1178
- f.inherits(pe, C, {
1195
+ h.inherits(me, C, {
1179
1196
  __CANCEL__: !0
1180
1197
  });
1181
1198
  function tr(e, t, n) {
@@ -1199,9 +1216,9 @@ function Ms(e, t) {
1199
1216
  return t = t !== void 0 ? t : 1e3, function(d) {
1200
1217
  const c = Date.now(), u = r[s];
1201
1218
  a || (a = c), n[o] = d, r[o] = c;
1202
- let h = s, y = 0;
1203
- for (; h !== o; )
1204
- y += n[h++], h = h % e;
1219
+ let f = s, y = 0;
1220
+ for (; f !== o; )
1221
+ y += n[f++], f = f % e;
1205
1222
  if (o = (o + 1) % e, o === s && (s = (s + 1) % e), c - a < t)
1206
1223
  return;
1207
1224
  const S = u && c - u;
@@ -1214,10 +1231,10 @@ function Ns(e, t) {
1214
1231
  n = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, c);
1215
1232
  };
1216
1233
  return [(...c) => {
1217
- const u = Date.now(), h = u - n;
1218
- h >= r ? a(c, u) : (o = c, s || (s = setTimeout(() => {
1234
+ const u = Date.now(), f = u - n;
1235
+ f >= r ? a(c, u) : (o = c, s || (s = setTimeout(() => {
1219
1236
  s = null, a(o);
1220
- }, r - h)));
1237
+ }, r - f)));
1221
1238
  }, () => o && a(o)];
1222
1239
  }
1223
1240
  const Le = (e, t, n = 3) => {
@@ -1226,7 +1243,7 @@ const Le = (e, t, n = 3) => {
1226
1243
  return Ns((s) => {
1227
1244
  const a = s.loaded, l = s.lengthComputable ? s.total : void 0, d = a - r, c = o(d), u = a <= l;
1228
1245
  r = a;
1229
- const h = {
1246
+ const f = {
1230
1247
  loaded: a,
1231
1248
  total: l,
1232
1249
  progress: l ? a / l : void 0,
@@ -1237,7 +1254,7 @@ const Le = (e, t, n = 3) => {
1237
1254
  lengthComputable: l != null,
1238
1255
  [t ? "download" : "upload"]: !0
1239
1256
  };
1240
- e(h);
1257
+ e(f);
1241
1258
  }, n);
1242
1259
  }, nn = (e, t) => {
1243
1260
  const n = e != null;
@@ -1246,7 +1263,7 @@ const Le = (e, t, n = 3) => {
1246
1263
  total: e,
1247
1264
  loaded: r
1248
1265
  }), t[1]];
1249
- }, rn = (e) => (...t) => f.asap(() => e(...t)), js = j.hasStandardBrowserEnv ? (
1266
+ }, rn = (e) => (...t) => h.asap(() => e(...t)), js = j.hasStandardBrowserEnv ? (
1250
1267
  // Standard browser envs have full support of the APIs needed to test
1251
1268
  // whether the request URL is of the same origin as current location.
1252
1269
  function() {
@@ -1266,7 +1283,7 @@ const Le = (e, t, n = 3) => {
1266
1283
  };
1267
1284
  }
1268
1285
  return r = o(window.location.href), function(a) {
1269
- const l = f.isString(a) ? o(a) : a;
1286
+ const l = h.isString(a) ? o(a) : a;
1270
1287
  return l.protocol === r.protocol && l.host === r.host;
1271
1288
  };
1272
1289
  }()
@@ -1282,7 +1299,7 @@ const Le = (e, t, n = 3) => {
1282
1299
  {
1283
1300
  write(e, t, n, r, o, s) {
1284
1301
  const a = [e + "=" + encodeURIComponent(t)];
1285
- f.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), f.isString(r) && a.push("path=" + r), f.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; ");
1302
+ h.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), h.isString(r) && a.push("path=" + r), h.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; ");
1286
1303
  },
1287
1304
  read(e) {
1288
1305
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -1317,29 +1334,29 @@ const on = (e) => e instanceof U ? { ...e } : e;
1317
1334
  function ue(e, t) {
1318
1335
  t = t || {};
1319
1336
  const n = {};
1320
- function r(c, u, h) {
1321
- return f.isPlainObject(c) && f.isPlainObject(u) ? f.merge.call({ caseless: h }, c, u) : f.isPlainObject(u) ? f.merge({}, u) : f.isArray(u) ? u.slice() : u;
1337
+ function r(c, u, f) {
1338
+ return h.isPlainObject(c) && h.isPlainObject(u) ? h.merge.call({ caseless: f }, c, u) : h.isPlainObject(u) ? h.merge({}, u) : h.isArray(u) ? u.slice() : u;
1322
1339
  }
1323
- function o(c, u, h) {
1324
- if (f.isUndefined(u)) {
1325
- if (!f.isUndefined(c))
1326
- return r(void 0, c, h);
1327
- } else return r(c, u, h);
1340
+ function o(c, u, f) {
1341
+ if (h.isUndefined(u)) {
1342
+ if (!h.isUndefined(c))
1343
+ return r(void 0, c, f);
1344
+ } else return r(c, u, f);
1328
1345
  }
1329
1346
  function s(c, u) {
1330
- if (!f.isUndefined(u))
1347
+ if (!h.isUndefined(u))
1331
1348
  return r(void 0, u);
1332
1349
  }
1333
1350
  function a(c, u) {
1334
- if (f.isUndefined(u)) {
1335
- if (!f.isUndefined(c))
1351
+ if (h.isUndefined(u)) {
1352
+ if (!h.isUndefined(c))
1336
1353
  return r(void 0, c);
1337
1354
  } else return r(void 0, u);
1338
1355
  }
1339
- function l(c, u, h) {
1340
- if (h in t)
1356
+ function l(c, u, f) {
1357
+ if (f in t)
1341
1358
  return r(c, u);
1342
- if (h in e)
1359
+ if (f in e)
1343
1360
  return r(void 0, c);
1344
1361
  }
1345
1362
  const d = {
@@ -1373,9 +1390,9 @@ function ue(e, t) {
1373
1390
  validateStatus: l,
1374
1391
  headers: (c, u) => o(on(c), on(u), !0)
1375
1392
  };
1376
- return f.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
1377
- const h = d[u] || o, y = h(e[u], t[u], u);
1378
- f.isUndefined(y) && h !== l || (n[u] = y);
1393
+ return h.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
1394
+ const f = d[u] || o, y = f(e[u], t[u], u);
1395
+ h.isUndefined(y) && f !== l || (n[u] = y);
1379
1396
  }), n;
1380
1397
  }
1381
1398
  const rr = (e) => {
@@ -1386,15 +1403,15 @@ const rr = (e) => {
1386
1403
  "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
1387
1404
  );
1388
1405
  let d;
1389
- if (f.isFormData(n)) {
1406
+ if (h.isFormData(n)) {
1390
1407
  if (j.hasStandardBrowserEnv || j.hasStandardBrowserWebWorkerEnv)
1391
1408
  a.setContentType(void 0);
1392
1409
  else if ((d = a.getContentType()) !== !1) {
1393
- const [c, ...u] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
1410
+ const [c, ...u] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
1394
1411
  a.setContentType([c || "multipart/form-data", ...u].join("; "));
1395
1412
  }
1396
1413
  }
1397
- if (j.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && js(t.url))) {
1414
+ if (j.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 && js(t.url))) {
1398
1415
  const c = o && s && Us.read(s);
1399
1416
  c && a.set(o, c);
1400
1417
  }
@@ -1404,13 +1421,13 @@ const rr = (e) => {
1404
1421
  const o = rr(e);
1405
1422
  let s = o.data;
1406
1423
  const a = U.from(o.headers).normalize();
1407
- let { responseType: l, onUploadProgress: d, onDownloadProgress: c } = o, u, h, y, S, b;
1424
+ let { responseType: l, onUploadProgress: d, onDownloadProgress: c } = o, u, f, y, S, b;
1408
1425
  function m() {
1409
1426
  S && S(), b && b(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1410
1427
  }
1411
1428
  let g = new XMLHttpRequest();
1412
1429
  g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
1413
- function x() {
1430
+ function A() {
1414
1431
  if (!g)
1415
1432
  return;
1416
1433
  const E = U.from(
@@ -1429,8 +1446,8 @@ const rr = (e) => {
1429
1446
  r(D), m();
1430
1447
  }, O), g = null;
1431
1448
  }
1432
- "onloadend" in g ? g.onloadend = x : g.onreadystatechange = function() {
1433
- !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(x);
1449
+ "onloadend" in g ? g.onloadend = A : g.onreadystatechange = function() {
1450
+ !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(A);
1434
1451
  }, g.onabort = function() {
1435
1452
  g && (r(new C("Request aborted", C.ECONNABORTED, e, g)), g = null);
1436
1453
  }, g.onerror = function() {
@@ -1444,19 +1461,19 @@ const rr = (e) => {
1444
1461
  e,
1445
1462
  g
1446
1463
  )), g = null;
1447
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(P, O) {
1464
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && h.forEach(a.toJSON(), function(P, O) {
1448
1465
  g.setRequestHeader(O, P);
1449
- }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Le(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Le(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1450
- g && (r(!E || E.type ? new pe(null, e, g) : E), g.abort(), g = null);
1466
+ }), h.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Le(c, !0), g.addEventListener("progress", y)), d && g.upload && ([f, S] = Le(d), g.upload.addEventListener("progress", f), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1467
+ g && (r(!E || E.type ? new me(null, e, g) : E), g.abort(), g = null);
1451
1468
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1452
- const A = Is(o.url);
1453
- if (A && j.protocols.indexOf(A) === -1) {
1454
- r(new C("Unsupported protocol " + A + ":", C.ERR_BAD_REQUEST, e));
1469
+ const x = Is(o.url);
1470
+ if (x && j.protocols.indexOf(x) === -1) {
1471
+ r(new C("Unsupported protocol " + x + ":", C.ERR_BAD_REQUEST, e));
1455
1472
  return;
1456
1473
  }
1457
1474
  g.send(s || null);
1458
1475
  });
1459
- }, Ws = (e, t) => {
1476
+ }, Vs = (e, t) => {
1460
1477
  const { length: n } = e = e ? e.filter(Boolean) : [];
1461
1478
  if (t || n) {
1462
1479
  let r = new AbortController(), o;
@@ -1464,7 +1481,7 @@ const rr = (e) => {
1464
1481
  if (!o) {
1465
1482
  o = !0, l();
1466
1483
  const u = c instanceof Error ? c : this.reason;
1467
- r.abort(u instanceof C ? u : new pe(u instanceof Error ? u.message : u));
1484
+ r.abort(u instanceof C ? u : new me(u instanceof Error ? u.message : u));
1468
1485
  }
1469
1486
  };
1470
1487
  let a = t && setTimeout(() => {
@@ -1477,9 +1494,9 @@ const rr = (e) => {
1477
1494
  };
1478
1495
  e.forEach((c) => c.addEventListener("abort", s));
1479
1496
  const { signal: d } = r;
1480
- return d.unsubscribe = () => f.asap(l), d;
1497
+ return d.unsubscribe = () => h.asap(l), d;
1481
1498
  }
1482
- }, Vs = function* (e, t) {
1499
+ }, Ws = function* (e, t) {
1483
1500
  let n = e.byteLength;
1484
1501
  if (n < t) {
1485
1502
  yield e;
@@ -1490,7 +1507,7 @@ const rr = (e) => {
1490
1507
  o = r + t, yield e.slice(r, o), r = o;
1491
1508
  }, $s = async function* (e, t) {
1492
1509
  for await (const n of Ks(e))
1493
- yield* Vs(n, t);
1510
+ yield* Ws(n, t);
1494
1511
  }, Ks = async function* (e) {
1495
1512
  if (e[Symbol.asyncIterator]) {
1496
1513
  yield* e;
@@ -1520,9 +1537,9 @@ const rr = (e) => {
1520
1537
  l(), d.close();
1521
1538
  return;
1522
1539
  }
1523
- let h = u.byteLength;
1540
+ let f = u.byteLength;
1524
1541
  if (n) {
1525
- let y = s += h;
1542
+ let y = s += f;
1526
1543
  n(y);
1527
1544
  }
1528
1545
  d.enqueue(new Uint8Array(u));
@@ -1536,7 +1553,7 @@ const rr = (e) => {
1536
1553
  }, {
1537
1554
  highWaterMark: 2
1538
1555
  });
1539
- }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", or = We && typeof ReadableStream == "function", Ys = We && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), sr = (e, ...t) => {
1556
+ }, Ve = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", or = Ve && typeof ReadableStream == "function", Ys = Ve && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), sr = (e, ...t) => {
1540
1557
  try {
1541
1558
  return !!e(...t);
1542
1559
  } catch {
@@ -1552,12 +1569,12 @@ const rr = (e) => {
1552
1569
  }
1553
1570
  }).headers.has("Content-Type");
1554
1571
  return e && !t;
1555
- }), an = 64 * 1024, mt = or && sr(() => f.isReadableStream(new Response("").body)), Be = {
1572
+ }), an = 64 * 1024, mt = or && sr(() => h.isReadableStream(new Response("").body)), Be = {
1556
1573
  stream: mt && ((e) => e.body)
1557
1574
  };
1558
- We && ((e) => {
1575
+ Ve && ((e) => {
1559
1576
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1560
- !Be[t] && (Be[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1577
+ !Be[t] && (Be[t] = h.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1561
1578
  throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r);
1562
1579
  });
1563
1580
  });
@@ -1565,21 +1582,21 @@ We && ((e) => {
1565
1582
  const Gs = async (e) => {
1566
1583
  if (e == null)
1567
1584
  return 0;
1568
- if (f.isBlob(e))
1585
+ if (h.isBlob(e))
1569
1586
  return e.size;
1570
- if (f.isSpecCompliantForm(e))
1587
+ if (h.isSpecCompliantForm(e))
1571
1588
  return (await new Request(j.origin, {
1572
1589
  method: "POST",
1573
1590
  body: e
1574
1591
  }).arrayBuffer()).byteLength;
1575
- if (f.isArrayBufferView(e) || f.isArrayBuffer(e))
1592
+ if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
1576
1593
  return e.byteLength;
1577
- if (f.isURLSearchParams(e) && (e = e + ""), f.isString(e))
1594
+ if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
1578
1595
  return (await Ys(e)).byteLength;
1579
1596
  }, Zs = async (e, t) => {
1580
- const n = f.toFiniteNumber(e.getContentLength());
1597
+ const n = h.toFiniteNumber(e.getContentLength());
1581
1598
  return n ?? Gs(t);
1582
- }, Xs = We && (async (e) => {
1599
+ }, Xs = Ve && (async (e) => {
1583
1600
  let {
1584
1601
  url: t,
1585
1602
  method: n,
@@ -1591,11 +1608,11 @@ const Gs = async (e) => {
1591
1608
  onUploadProgress: d,
1592
1609
  responseType: c,
1593
1610
  headers: u,
1594
- withCredentials: h = "same-origin",
1611
+ withCredentials: f = "same-origin",
1595
1612
  fetchOptions: y
1596
1613
  } = rr(e);
1597
1614
  c = c ? (c + "").toLowerCase() : "text";
1598
- let S = Ws([o, s && s.toAbortSignal()], a), b;
1615
+ let S = Vs([o, s && s.toAbortSignal()], a), b;
1599
1616
  const m = S && S.unsubscribe && (() => {
1600
1617
  S.unsubscribe();
1601
1618
  });
@@ -1607,16 +1624,16 @@ const Gs = async (e) => {
1607
1624
  body: r,
1608
1625
  duplex: "half"
1609
1626
  }), R;
1610
- if (f.isFormData(r) && (R = O.headers.get("content-type")) && u.setContentType(R), O.body) {
1611
- const [D, W] = nn(
1627
+ if (h.isFormData(r) && (R = O.headers.get("content-type")) && u.setContentType(R), O.body) {
1628
+ const [D, V] = nn(
1612
1629
  g,
1613
1630
  Le(rn(d))
1614
1631
  );
1615
- r = sn(O.body, an, D, W);
1632
+ r = sn(O.body, an, D, V);
1616
1633
  }
1617
1634
  }
1618
- f.isString(h) || (h = h ? "include" : "omit");
1619
- const x = "credentials" in Request.prototype;
1635
+ h.isString(f) || (f = f ? "include" : "omit");
1636
+ const A = "credentials" in Request.prototype;
1620
1637
  b = new Request(t, {
1621
1638
  ...y,
1622
1639
  signal: S,
@@ -1624,52 +1641,52 @@ const Gs = async (e) => {
1624
1641
  headers: u.normalize().toJSON(),
1625
1642
  body: r,
1626
1643
  duplex: "half",
1627
- credentials: x ? h : void 0
1644
+ credentials: A ? f : void 0
1628
1645
  });
1629
- let A = await fetch(b);
1646
+ let x = await fetch(b);
1630
1647
  const E = mt && (c === "stream" || c === "response");
1631
1648
  if (mt && (l || E && m)) {
1632
1649
  const O = {};
1633
1650
  ["status", "statusText", "headers"].forEach((Ee) => {
1634
- O[Ee] = A[Ee];
1651
+ O[Ee] = x[Ee];
1635
1652
  });
1636
- const R = f.toFiniteNumber(A.headers.get("content-length")), [D, W] = l && nn(
1653
+ const R = h.toFiniteNumber(x.headers.get("content-length")), [D, V] = l && nn(
1637
1654
  R,
1638
1655
  Le(rn(l), !0)
1639
1656
  ) || [];
1640
- A = new Response(
1641
- sn(A.body, an, D, () => {
1642
- W && W(), m && m();
1657
+ x = new Response(
1658
+ sn(x.body, an, D, () => {
1659
+ V && V(), m && m();
1643
1660
  }),
1644
1661
  O
1645
1662
  );
1646
1663
  }
1647
1664
  c = c || "text";
1648
- let P = await Be[f.findKey(Be, c) || "text"](A, e);
1665
+ let P = await Be[h.findKey(Be, c) || "text"](x, e);
1649
1666
  return !E && m && m(), await new Promise((O, R) => {
1650
1667
  tr(O, R, {
1651
1668
  data: P,
1652
- headers: U.from(A.headers),
1653
- status: A.status,
1654
- statusText: A.statusText,
1669
+ headers: U.from(x.headers),
1670
+ status: x.status,
1671
+ statusText: x.statusText,
1655
1672
  config: e,
1656
1673
  request: b
1657
1674
  });
1658
1675
  });
1659
- } catch (x) {
1660
- throw m && m(), x && x.name === "TypeError" && /fetch/i.test(x.message) ? Object.assign(
1676
+ } catch (A) {
1677
+ throw m && m(), A && A.name === "TypeError" && /fetch/i.test(A.message) ? Object.assign(
1661
1678
  new C("Network Error", C.ERR_NETWORK, e, b),
1662
1679
  {
1663
- cause: x.cause || x
1680
+ cause: A.cause || A
1664
1681
  }
1665
- ) : C.from(x, x && x.code, e, b);
1682
+ ) : C.from(A, A && A.code, e, b);
1666
1683
  }
1667
1684
  }), gt = {
1668
1685
  http: hs,
1669
1686
  xhr: zs,
1670
1687
  fetch: Xs
1671
1688
  };
1672
- f.forEach(gt, (e, t) => {
1689
+ h.forEach(gt, (e, t) => {
1673
1690
  if (e) {
1674
1691
  try {
1675
1692
  Object.defineProperty(e, "name", { value: t });
@@ -1678,9 +1695,9 @@ f.forEach(gt, (e, t) => {
1678
1695
  Object.defineProperty(e, "adapterName", { value: t });
1679
1696
  }
1680
1697
  });
1681
- const ln = (e) => `- ${e}`, Qs = (e) => f.isFunction(e) || e === null || e === !1, ar = {
1698
+ const ln = (e) => `- ${e}`, Qs = (e) => h.isFunction(e) || e === null || e === !1, ar = {
1682
1699
  getAdapter: (e) => {
1683
- e = f.isArray(e) ? e : [e];
1700
+ e = h.isArray(e) ? e : [e];
1684
1701
  const { length: t } = e;
1685
1702
  let n, r;
1686
1703
  const o = {};
@@ -1711,7 +1728,7 @@ const ln = (e) => `- ${e}`, Qs = (e) => f.isFunction(e) || e === null || e === !
1711
1728
  };
1712
1729
  function et(e) {
1713
1730
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1714
- throw new pe(null, e);
1731
+ throw new me(null, e);
1715
1732
  }
1716
1733
  function cn(e) {
1717
1734
  return et(e), e.headers = U.from(e.headers), e.data = Qe.call(
@@ -1816,17 +1833,17 @@ let le = class {
1816
1833
  silentJSONParsing: ne.transitional(ne.boolean),
1817
1834
  forcedJSONParsing: ne.transitional(ne.boolean),
1818
1835
  clarifyTimeoutError: ne.transitional(ne.boolean)
1819
- }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1836
+ }, !1), o != null && (h.isFunction(o) ? n.paramsSerializer = {
1820
1837
  serialize: o
1821
1838
  } : bt.assertOptions(o, {
1822
1839
  encode: ne.function,
1823
1840
  serialize: ne.function
1824
1841
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1825
- let a = s && f.merge(
1842
+ let a = s && h.merge(
1826
1843
  s.common,
1827
1844
  s[n.method]
1828
1845
  );
1829
- s && f.forEach(
1846
+ s && h.forEach(
1830
1847
  ["delete", "get", "head", "post", "put", "patch", "common"],
1831
1848
  (b) => {
1832
1849
  delete s[b];
@@ -1841,17 +1858,17 @@ let le = class {
1841
1858
  this.interceptors.response.forEach(function(m) {
1842
1859
  c.push(m.fulfilled, m.rejected);
1843
1860
  });
1844
- let u, h = 0, y;
1861
+ let u, f = 0, y;
1845
1862
  if (!d) {
1846
1863
  const b = [cn.bind(this), void 0];
1847
- for (b.unshift.apply(b, l), b.push.apply(b, c), y = b.length, u = Promise.resolve(n); h < y; )
1848
- u = u.then(b[h++], b[h++]);
1864
+ for (b.unshift.apply(b, l), b.push.apply(b, c), y = b.length, u = Promise.resolve(n); f < y; )
1865
+ u = u.then(b[f++], b[f++]);
1849
1866
  return u;
1850
1867
  }
1851
1868
  y = l.length;
1852
1869
  let S = n;
1853
- for (h = 0; h < y; ) {
1854
- const b = l[h++], m = l[h++];
1870
+ for (f = 0; f < y; ) {
1871
+ const b = l[f++], m = l[f++];
1855
1872
  try {
1856
1873
  S = b(S);
1857
1874
  } catch (g) {
@@ -1864,8 +1881,8 @@ let le = class {
1864
1881
  } catch (b) {
1865
1882
  return Promise.reject(b);
1866
1883
  }
1867
- for (h = 0, y = c.length; h < y; )
1868
- u = u.then(c[h++], c[h++]);
1884
+ for (f = 0, y = c.length; f < y; )
1885
+ u = u.then(c[f++], c[f++]);
1869
1886
  return u;
1870
1887
  }
1871
1888
  getUri(t) {
@@ -1874,7 +1891,7 @@ let le = class {
1874
1891
  return Zn(n, t.params, t.paramsSerializer);
1875
1892
  }
1876
1893
  };
1877
- f.forEach(["delete", "get", "head", "options"], function(t) {
1894
+ h.forEach(["delete", "get", "head", "options"], function(t) {
1878
1895
  le.prototype[t] = function(n, r) {
1879
1896
  return this.request(ue(r || {}, {
1880
1897
  method: t,
@@ -1883,7 +1900,7 @@ f.forEach(["delete", "get", "head", "options"], function(t) {
1883
1900
  }));
1884
1901
  };
1885
1902
  });
1886
- f.forEach(["post", "put", "patch"], function(t) {
1903
+ h.forEach(["post", "put", "patch"], function(t) {
1887
1904
  function n(r) {
1888
1905
  return function(s, a, l) {
1889
1906
  return this.request(ue(l || {}, {
@@ -1922,7 +1939,7 @@ let ta = class lr {
1922
1939
  r.unsubscribe(s);
1923
1940
  }, a;
1924
1941
  }, t(function(s, a, l) {
1925
- r.reason || (r.reason = new pe(s, a, l), n(r.reason));
1942
+ r.reason || (r.reason = new me(s, a, l), n(r.reason));
1926
1943
  });
1927
1944
  }
1928
1945
  /**
@@ -1977,7 +1994,7 @@ function na(e) {
1977
1994
  };
1978
1995
  }
1979
1996
  function ra(e) {
1980
- return f.isObject(e) && e.isAxiosError === !0;
1997
+ return h.isObject(e) && e.isAxiosError === !0;
1981
1998
  }
1982
1999
  const yt = {
1983
2000
  Continue: 100,
@@ -2049,13 +2066,13 @@ Object.entries(yt).forEach(([e, t]) => {
2049
2066
  });
2050
2067
  function cr(e) {
2051
2068
  const t = new le(e), n = Un(le.prototype.request, t);
2052
- return f.extend(n, le.prototype, t, { allOwnKeys: !0 }), f.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2069
+ return h.extend(n, le.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2053
2070
  return cr(ue(e, o));
2054
2071
  }, n;
2055
2072
  }
2056
2073
  const F = cr(Ce);
2057
2074
  F.Axios = le;
2058
- F.CanceledError = pe;
2075
+ F.CanceledError = me;
2059
2076
  F.CancelToken = ta;
2060
2077
  F.isCancel = er;
2061
2078
  F.VERSION = ir;
@@ -2069,7 +2086,7 @@ F.spread = na;
2069
2086
  F.isAxiosError = ra;
2070
2087
  F.mergeConfig = ue;
2071
2088
  F.AxiosHeaders = U;
2072
- F.formToJSON = (e) => Qn(f.isHTMLForm(e) ? new FormData(e) : e);
2089
+ F.formToJSON = (e) => Qn(h.isHTMLForm(e) ? new FormData(e) : e);
2073
2090
  F.getAdapter = ar.getAdapter;
2074
2091
  F.HttpStatusCode = yt;
2075
2092
  F.default = F;
@@ -2085,8 +2102,8 @@ const {
2085
2102
  isAxiosError: oa,
2086
2103
  spread: Hi,
2087
2104
  toFormData: zi,
2088
- AxiosHeaders: Wi,
2089
- HttpStatusCode: Vi,
2105
+ AxiosHeaders: Vi,
2106
+ HttpStatusCode: Wi,
2090
2107
  formToJSON: $i,
2091
2108
  getAdapter: Ki,
2092
2109
  mergeConfig: Yi
@@ -2112,7 +2129,7 @@ function sa() {
2112
2129
  }, [e]);
2113
2130
  }
2114
2131
  const aa = ({ create: e = !1 }) => {
2115
- const [t, n] = p.useState(), { id: r } = Ar(), { t: o } = L(), s = Ut(), a = xt(), l = te(), d = z("breakpoint", "md");
2132
+ const [t, n] = p.useState(), { id: r } = xr(), { t: o } = L(), s = Ut(), a = At(), l = te(), d = z("breakpoint", "md");
2116
2133
  Bt(
2117
2134
  t != null && t.exists ? o("Edit :model “:label“", { model: l.singular(), label: (t == null ? void 0 : t.getLabel()) || "..." }) : o("Create :model", { model: l.singular() })
2118
2135
  ), Do();
@@ -2122,7 +2139,7 @@ const aa = ({ create: e = !1 }) => {
2122
2139
  }, [r, l, e]);
2123
2140
  const u = p.useCallback(() => {
2124
2141
  s(o(":model saved successfully", { model: l.singular() })), t != null && t.wasRecentlyCreated && a(`/${T.kebab(l.plural())}/${t.getKey()}`);
2125
- }, [s, a, l, t, o]), h = sa(), y = p.useMemo(() => k("cms").getModelFormProps(t), [t]);
2142
+ }, [s, a, l, t, o]), f = sa(), y = p.useMemo(() => k("cms").getModelFormProps(t), [t]);
2126
2143
  return t ? /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, children: [
2127
2144
  /* @__PURE__ */ i(Q, { xs: 12, children: /* @__PURE__ */ i(
2128
2145
  c,
@@ -2145,7 +2162,7 @@ const aa = ({ create: e = !1 }) => {
2145
2162
  ...y,
2146
2163
  item: t,
2147
2164
  onSuccess: u,
2148
- onError: h
2165
+ onError: f
2149
2166
  }
2150
2167
  )
2151
2168
  }
@@ -2164,7 +2181,7 @@ function la() {
2164
2181
  return p.useContext(jn).dialog;
2165
2182
  }
2166
2183
  function qt() {
2167
- const e = xt(), t = Ut(), n = la(), { t: r } = L(), { refresh: o } = Se();
2184
+ const e = At(), t = Ut(), n = la(), { t: r } = L(), { refresh: o } = xe();
2168
2185
  return { navigate: e, notify: t, dialog: n, t: r, refresh: o };
2169
2186
  }
2170
2187
  const ca = Z(vr)(({ theme: e }) => ({
@@ -2176,10 +2193,10 @@ const ca = Z(vr)(({ theme: e }) => ({
2176
2193
  bottom: e.spacing(2),
2177
2194
  right: e.spacing(2)
2178
2195
  })), da = ({ variant: e = "default" }) => {
2179
- const t = te(), n = v(), [r] = G(), o = r.get("tab") ?? "all", [s, a] = p.useState(!1), l = p.useRef(null), [d, c] = p.useState(0), u = qt(), h = p.useMemo(() => k("cms").getStaticActions(t, o), [t, o]);
2196
+ const t = te(), n = v(), [r] = G(), o = r.get("tab") ?? "all", [s, a] = p.useState(!1), l = p.useRef(null), [d, c] = p.useState(0), u = qt(), f = p.useMemo(() => k("cms").getStaticActions(t, o), [t, o]);
2180
2197
  if (ia(
2181
- e === "fab" && h.length > 0 ? n ? 12 : 10 : !1
2182
- ), h.length === 0)
2198
+ e === "fab" && f.length > 0 ? n ? 12 : 10 : !1
2199
+ ), f.length === 0)
2183
2200
  return null;
2184
2201
  const y = (m, g) => {
2185
2202
  c(g), a(!1);
@@ -2188,13 +2205,13 @@ const ca = Z(vr)(({ theme: e }) => ({
2188
2205
  }, b = (m) => {
2189
2206
  l.current && l.current.contains(m.target) || a(!1);
2190
2207
  };
2191
- return e === "fab" ? h.length === 1 ? Jt.createPortal(
2208
+ return e === "fab" ? f.length === 1 ? Jt.createPortal(
2192
2209
  /* @__PURE__ */ i(
2193
2210
  ca,
2194
2211
  {
2195
2212
  color: "primary",
2196
- onClick: () => h[0].callback(u),
2197
- children: h[0].icon || h[0].label.charAt(0).toUpperCase()
2213
+ onClick: () => f[0].callback(u),
2214
+ children: f[0].icon || f[0].label.charAt(0).toUpperCase()
2198
2215
  }
2199
2216
  ),
2200
2217
  document.body
@@ -2208,7 +2225,7 @@ const ca = Z(vr)(({ theme: e }) => ({
2208
2225
  onClose: () => a(!1),
2209
2226
  onOpen: () => a(!0),
2210
2227
  open: s,
2211
- children: h.map((m) => /* @__PURE__ */ i(
2228
+ children: f.map((m) => /* @__PURE__ */ i(
2212
2229
  Br,
2213
2230
  {
2214
2231
  icon: m.icon || m.label.charAt(0).toUpperCase(),
@@ -2226,10 +2243,10 @@ const ca = Z(vr)(({ theme: e }) => ({
2226
2243
  {
2227
2244
  variant: "contained",
2228
2245
  ref: l,
2229
- "aria-label": h[d].label,
2246
+ "aria-label": f[d].label,
2230
2247
  children: [
2231
- /* @__PURE__ */ i(M, { onClick: () => h[d].callback(u), children: h[d].label }),
2232
- h.length > 1 && /* @__PURE__ */ i(
2248
+ /* @__PURE__ */ i(M, { onClick: () => f[d].callback(u), children: f[d].label }),
2249
+ f.length > 1 && /* @__PURE__ */ i(
2233
2250
  M,
2234
2251
  {
2235
2252
  variant: "contained",
@@ -2259,14 +2276,14 @@ const ca = Z(vr)(({ theme: e }) => ({
2259
2276
  style: {
2260
2277
  transformOrigin: g === "bottom" ? "center top" : "center bottom"
2261
2278
  },
2262
- children: /* @__PURE__ */ i(Ot, { children: /* @__PURE__ */ i(jr, { onClickAway: b, children: /* @__PURE__ */ i(Ur, { id: "split-button-menu", children: h.map((x, A) => /* @__PURE__ */ i(
2279
+ children: /* @__PURE__ */ i(Ot, { children: /* @__PURE__ */ i(jr, { onClickAway: b, children: /* @__PURE__ */ i(Ur, { id: "split-button-menu", children: f.map((A, x) => /* @__PURE__ */ i(
2263
2280
  se,
2264
2281
  {
2265
- selected: A === d,
2266
- onClick: (E) => y(E, A),
2267
- children: x.label
2282
+ selected: x === d,
2283
+ onClick: (E) => y(E, x),
2284
+ children: A.label
2268
2285
  },
2269
- x.label
2286
+ A.label
2270
2287
  )) }) }) })
2271
2288
  }
2272
2289
  )
@@ -2328,7 +2345,7 @@ const fa = Z(
2328
2345
  ["Layout.SearchBar"]: s,
2329
2346
  ["Layout.BackButton"]: a,
2330
2347
  ["Layout.AppLogo"]: l
2331
- } = k("cms").getComponents(), { open: d } = _t(), c = dr(), u = fr(), h = z("appBar.height"), y = z("drawer.width", 280), {
2348
+ } = k("cms").getComponents(), { open: d } = _t(), c = dr(), u = fr(), f = z("appBar.height"), y = z("drawer.width", 280), {
2332
2349
  start: S = null,
2333
2350
  //: title = config('app.name', document.title),
2334
2351
  end: b = null
@@ -2337,7 +2354,7 @@ const fa = Z(
2337
2354
  r,
2338
2355
  {
2339
2356
  open: d,
2340
- height: h,
2357
+ height: f,
2341
2358
  drawerWidth: y,
2342
2359
  ...t,
2343
2360
  children: /* @__PURE__ */ w(qr, { children: [
@@ -2493,7 +2510,7 @@ const dn = (e, t) => ({
2493
2510
  },
2494
2511
  clearFilters: () => {
2495
2512
  }
2496
- }), me = p.createContext({
2513
+ }), ge = p.createContext({
2497
2514
  key: "",
2498
2515
  type: "",
2499
2516
  operator: "",
@@ -2510,18 +2527,18 @@ const dn = (e, t) => ({
2510
2527
  },
2511
2528
  setIsRelation: () => {
2512
2529
  }
2513
- }), Aa = (e) => {
2530
+ }), xa = (e) => {
2514
2531
  if (!Array.isArray(e))
2515
2532
  return e;
2516
2533
  let t;
2517
2534
  return J.isEmpty(e) ? t = "" : t = e[0], t;
2518
- }, xa = (e) => {
2535
+ }, Aa = (e) => {
2519
2536
  if (Array.isArray(e))
2520
2537
  return e;
2521
2538
  let t;
2522
2539
  return J.isEmpty(e) ? t = [] : t = [e, ""], t;
2523
2540
  }, Ca = async (e, t, n) => {
2524
- const r = e.getSchema().relations[t], o = ye().make(r.model), s = o.getSchema().primaryKey, a = [];
2541
+ const r = e.getSchema().relations[t], o = we().make(r.model), s = o.getSchema().primaryKey, a = [];
2525
2542
  for (const l of n) {
2526
2543
  const d = await o.where(s, l).first();
2527
2544
  a.push(d);
@@ -2529,14 +2546,14 @@ const dn = (e, t) => ({
2529
2546
  return a;
2530
2547
  };
2531
2548
  function Ea(e, t) {
2532
- const n = k("filter"), { Model: r, setColumnsFilter: o } = p.useContext(Ht), [s, a] = p.useState(t.key), [l, d] = p.useState(t.operator), [c, u] = p.useState(t.type), [h, y] = p.useState(t.value), [S, b] = p.useState(t.nullable), [m, g] = p.useState(t.is_relation), x = p.useMemo(() => n.getFilterableColumns(r), [r]), A = (O) => () => {
2533
- o((R) => R.filter((D, W) => W !== O));
2549
+ const n = k("filter"), { Model: r, setColumnsFilter: o } = p.useContext(Ht), [s, a] = p.useState(t.key), [l, d] = p.useState(t.operator), [c, u] = p.useState(t.type), [f, y] = p.useState(t.value), [S, b] = p.useState(t.nullable), [m, g] = p.useState(t.is_relation), A = p.useMemo(() => n.getFilterableColumns(r), [r]), x = (O) => () => {
2550
+ o((R) => R.filter((D, V) => V !== O));
2534
2551
  }, E = async (O) => {
2535
- const R = O.target.value, D = x.find((mr) => mr.key === R), W = (D == null ? void 0 : D.type) ?? "text", Ee = (D == null ? void 0 : D.nullable) ?? !1, Vt = (D == null ? void 0 : D.is_relation) ?? !1;
2536
- Vt ? (d("relation"), y([])) : m && d("equals"), g(Vt), b(Ee), W !== c && (d("equals"), y(() => {
2552
+ const R = O.target.value, D = A.find((mr) => mr.key === R), V = (D == null ? void 0 : D.type) ?? "text", Ee = (D == null ? void 0 : D.nullable) ?? !1, Wt = (D == null ? void 0 : D.is_relation) ?? !1;
2553
+ Wt ? (d("relation"), y([])) : m && d("equals"), g(Wt), b(Ee), V !== c && (d("equals"), y(() => {
2537
2554
  if (["between", "notBetween"].includes(l))
2538
2555
  return [];
2539
- switch (n.getInputType(W)) {
2556
+ switch (n.getInputType(V)) {
2540
2557
  case "number":
2541
2558
  return 0;
2542
2559
  case "boolean":
@@ -2544,41 +2561,41 @@ function Ea(e, t) {
2544
2561
  default:
2545
2562
  return "";
2546
2563
  }
2547
- })), a(R), u(W);
2564
+ })), a(R), u(V);
2548
2565
  }, P = async (O) => {
2549
2566
  const R = O.target.value;
2550
2567
  l !== R && y((D) => {
2551
2568
  switch (R) {
2552
2569
  case "between":
2553
2570
  case "notBetween":
2554
- return xa(D);
2571
+ return Aa(D);
2555
2572
  case "null":
2556
2573
  case "notNull":
2557
2574
  return "1";
2558
2575
  default:
2559
- return Aa(D);
2576
+ return xa(D);
2560
2577
  }
2561
2578
  }), d(R);
2562
2579
  };
2563
2580
  return p.useEffect(() => {
2564
- o((O) => O.map((D, W) => e === W ? {
2581
+ o((O) => O.map((D, V) => e === V ? {
2565
2582
  ...D,
2566
2583
  key: s,
2567
2584
  operator: l,
2568
2585
  type: c,
2569
- value: h,
2586
+ value: f,
2570
2587
  nullable: S,
2571
2588
  is_relation: m
2572
2589
  } : D));
2573
- }, [s, l, c, h, S, m]), {
2574
- columns: x,
2590
+ }, [s, l, c, f, S, m]), {
2591
+ columns: A,
2575
2592
  key: s,
2576
2593
  setKey: a,
2577
2594
  operator: l,
2578
2595
  setOperator: d,
2579
2596
  type: c,
2580
2597
  setType: u,
2581
- value: h,
2598
+ value: f,
2582
2599
  setValue: y,
2583
2600
  nullable: S,
2584
2601
  setNullable: b,
@@ -2586,37 +2603,37 @@ function Ea(e, t) {
2586
2603
  setIsRelation: g,
2587
2604
  handleKey: E,
2588
2605
  handleOperator: P,
2589
- handleRemoveColumn: A
2606
+ handleRemoveColumn: x
2590
2607
  };
2591
2608
  }
2592
2609
  const hn = async (e, t, n) => {
2593
- const r = e.getSchema().relations[t].model, { data: o } = await ye().make(r).get(), s = o.all().filter((c) => !n.find((u) => u.getKey() === c.getKey())), a = s.length, l = n.length, d = 15;
2594
- return a + l > d ? V([...n, ...s.slice(0, d - l)]) : V([...n, ...s]);
2610
+ const r = e.getSchema().relations[t].model, { data: o } = await we().make(r).get(), s = o.all().filter((c) => !n.find((u) => u.getKey() === c.getKey())), a = s.length, l = n.length, d = 15;
2611
+ return a + l > d ? W([...n, ...s.slice(0, d - l)]) : W([...n, ...s]);
2595
2612
  }, Ta = async (e, t, n = "", r) => {
2596
- const o = e.getSchema().relations[t], s = ye().make(o.model), a = s.getSchema().primaryKey, { data: l } = await s.searchBy(n).get();
2597
- return V([...r, ...l]).unique(a);
2613
+ const o = e.getSchema().relations[t], s = we().make(o.model), a = s.getSchema().primaryKey, { data: l } = await s.searchBy(n).get();
2614
+ return W([...r, ...l]).unique(a);
2598
2615
  }, ka = () => {
2599
2616
  const e = v(), t = te(), {
2600
2617
  key: n,
2601
2618
  value: r,
2602
2619
  setValue: o
2603
- } = p.useContext(me), [s, a] = p.useState(!1), [l, d] = p.useState(""), [c, u] = p.useState(V([])), [h, y] = p.useState([]), S = p.useMemo(
2620
+ } = p.useContext(ge), [s, a] = p.useState(!1), [l, d] = p.useState(""), [c, u] = p.useState(W([])), [f, y] = p.useState([]), S = p.useMemo(
2604
2621
  () => s && c.count() === 0,
2605
2622
  [s, c]
2606
2623
  ), b = async (m, g) => {
2607
- d(g), J.isEmpty(g) || u(await Ta(t, n, g, V(h)));
2624
+ d(g), J.isEmpty(g) || u(await Ta(t, n, g, W(f)));
2608
2625
  };
2609
2626
  return p.useEffect(() => {
2610
2627
  r.length > 0 && (async () => y(await Ca(t, n, r)))();
2611
2628
  }, []), p.useEffect(() => {
2612
2629
  let m = !0;
2613
2630
  if (S)
2614
- return (async () => m && u(await hn(t, n, h)))(), () => {
2631
+ return (async () => m && u(await hn(t, n, f)))(), () => {
2615
2632
  m = !1;
2616
2633
  };
2617
2634
  }, [S]), p.useEffect(() => {
2618
- o(h.map((m) => m.getKey())), J.isEmpty(l) ? (async () => u(await hn(t, n, h)))() : u(V([]));
2619
- }, [h]), /* @__PURE__ */ i(
2635
+ o(f.map((m) => m.getKey())), J.isEmpty(l) ? (async () => u(await hn(t, n, f)))() : u(W([]));
2636
+ }, [f]), /* @__PURE__ */ i(
2620
2637
  _r,
2621
2638
  {
2622
2639
  sx: { width: e ? 377 : "100%" },
@@ -2627,7 +2644,7 @@ const hn = async (e, t, n) => {
2627
2644
  onClose: () => {
2628
2645
  a(!1);
2629
2646
  },
2630
- value: h,
2647
+ value: f,
2631
2648
  onChange: (m, g) => {
2632
2649
  y(g);
2633
2650
  },
@@ -2654,7 +2671,7 @@ const hn = async (e, t, n) => {
2654
2671
  }, Da = ({ params: e, loading: t }) => {
2655
2672
  const { t: n } = L();
2656
2673
  return /* @__PURE__ */ i(
2657
- Ae,
2674
+ fe,
2658
2675
  {
2659
2676
  ...e,
2660
2677
  label: n("Value"),
@@ -2672,28 +2689,28 @@ const hn = async (e, t, n) => {
2672
2689
  type: o,
2673
2690
  value: s,
2674
2691
  setValue: a
2675
- } = p.useContext(me), d = r.getInputType(o) === "datetime-local" ? 230 : 167.5, c = e !== null ? `${t("Date")} ${e + 1}` : `${t("Date")}`, u = p.useMemo(
2692
+ } = p.useContext(ge), d = r.getInputType(o) === "datetime-local" ? 230 : 167.5, c = e !== null ? `${t("Date")} ${e + 1}` : `${t("Date")}`, u = p.useMemo(
2676
2693
  () => e !== null ? s[e] : s,
2677
2694
  [s]
2678
- ), h = (y) => {
2695
+ ), f = (y) => {
2679
2696
  a(typeof e == "number" ? (S) => {
2680
2697
  const b = S;
2681
2698
  return b[e] = y.target.value, [...b];
2682
2699
  } : y.target.value);
2683
2700
  };
2684
2701
  return /* @__PURE__ */ i(
2685
- Ae,
2702
+ fe,
2686
2703
  {
2687
2704
  type: r.getInputType(o),
2688
2705
  label: c,
2689
2706
  value: Oe.toDateTimeLocal(Oe.parse(u)),
2690
- onChange: h,
2707
+ onChange: f,
2691
2708
  size: "small",
2692
2709
  sx: { width: n ? d : "100%" }
2693
2710
  }
2694
2711
  );
2695
2712
  }, Oa = () => {
2696
- const e = v(), { value: t, setValue: n } = p.useContext(me);
2713
+ const e = v(), { value: t, setValue: n } = p.useContext(ge);
2697
2714
  return /* @__PURE__ */ w(B, { children: [
2698
2715
  /* @__PURE__ */ i(
2699
2716
  zr,
@@ -2714,17 +2731,17 @@ const hn = async (e, t, n) => {
2714
2731
  type: o,
2715
2732
  value: s,
2716
2733
  setValue: a
2717
- } = p.useContext(me), l = e !== null ? `${t("Value")} ${e + 1}` : `${t("Value")}`, d = p.useMemo(
2734
+ } = p.useContext(ge), l = e !== null ? `${t("Value")} ${e + 1}` : `${t("Value")}`, d = p.useMemo(
2718
2735
  () => e !== null ? s[e] : s,
2719
2736
  [s]
2720
2737
  ), c = (u) => {
2721
- a(typeof e == "number" ? (h) => {
2722
- const y = h;
2738
+ a(typeof e == "number" ? (f) => {
2739
+ const y = f;
2723
2740
  return y[e] = u.target.value, [...y];
2724
2741
  } : u.target.value);
2725
2742
  };
2726
2743
  return /* @__PURE__ */ i(
2727
- Ae,
2744
+ fe,
2728
2745
  {
2729
2746
  type: r.getInputType(o),
2730
2747
  label: l,
@@ -2735,7 +2752,7 @@ const hn = async (e, t, n) => {
2735
2752
  }
2736
2753
  );
2737
2754
  }, rt = () => {
2738
- const e = v(), t = k("filter"), { type: n, operator: r } = p.useContext(me), o = p.useMemo(
2755
+ const e = v(), t = k("filter"), { type: n, operator: r } = p.useContext(ge), o = p.useMemo(
2739
2756
  () => ["between", "notBetween"].includes(r),
2740
2757
  [r]
2741
2758
  );
@@ -2772,19 +2789,19 @@ const hn = async (e, t, n) => {
2772
2789
  key: d,
2773
2790
  setKey: c,
2774
2791
  operator: u,
2775
- setOperator: h,
2792
+ setOperator: f,
2776
2793
  type: y,
2777
2794
  setType: S,
2778
2795
  value: b,
2779
2796
  setValue: m,
2780
2797
  isRelation: g,
2781
- setIsRelation: x,
2782
- handleKey: A,
2798
+ setIsRelation: A,
2799
+ handleKey: x,
2783
2800
  handleOperator: E,
2784
2801
  handleRemoveColumn: P
2785
2802
  } = Ea(e, t), O = ["boolean"].includes(s.getInputType(y));
2786
2803
  return /* @__PURE__ */ i(
2787
- me.Provider,
2804
+ ge.Provider,
2788
2805
  {
2789
2806
  value: {
2790
2807
  key: d,
@@ -2792,11 +2809,11 @@ const hn = async (e, t, n) => {
2792
2809
  type: y,
2793
2810
  setType: S,
2794
2811
  operator: u,
2795
- setOperator: h,
2812
+ setOperator: f,
2796
2813
  value: b,
2797
2814
  setValue: m,
2798
2815
  isRelation: g,
2799
- setIsRelation: x
2816
+ setIsRelation: A
2800
2817
  },
2801
2818
  children: /* @__PURE__ */ w(
2802
2819
  Q,
@@ -2854,7 +2871,7 @@ const hn = async (e, t, n) => {
2854
2871
  id: "filter-column-select",
2855
2872
  value: d,
2856
2873
  label: n("Column"),
2857
- onChange: A,
2874
+ onChange: x,
2858
2875
  size: "small",
2859
2876
  children: l.map(({ key: R, label: D }) => /* @__PURE__ */ i(
2860
2877
  se,
@@ -2965,13 +2982,13 @@ const hn = async (e, t, n) => {
2965
2982
  p: e ? 0 : 2
2966
2983
  },
2967
2984
  children: [
2968
- /* @__PURE__ */ i(N, { children: s.map((u, h, y) => {
2969
- const S = h == y.length - 1;
2985
+ /* @__PURE__ */ i(N, { children: s.map((u, f, y) => {
2986
+ const S = f == y.length - 1;
2970
2987
  return /* @__PURE__ */ w(B, { children: [
2971
2988
  /* @__PURE__ */ i(
2972
2989
  Ra,
2973
2990
  {
2974
- index: h,
2991
+ index: f,
2975
2992
  column: u
2976
2993
  },
2977
2994
  `row_${u.key}`
@@ -3075,14 +3092,14 @@ const va = (e) => {
3075
3092
  let d = `:${s}`;
3076
3093
  if (["equals"].includes(s) && (d = ""), Array.isArray(a))
3077
3094
  a.forEach((c, u) => {
3078
- let h = c;
3095
+ let f = c;
3079
3096
  switch (t.getInputType(l)) {
3080
3097
  case "datetime-local": {
3081
- h = new Date(c).toISOString();
3098
+ f = new Date(c).toISOString();
3082
3099
  break;
3083
3100
  }
3084
3101
  }
3085
- n.set(`where[${o}${d}][${u}]`, h);
3102
+ n.set(`where[${o}${d}][${u}]`, f);
3086
3103
  });
3087
3104
  else {
3088
3105
  let c = a;
@@ -3096,31 +3113,31 @@ const va = (e) => {
3096
3113
  }
3097
3114
  }), n;
3098
3115
  }, Fa = () => {
3099
- const { t: e } = L(), t = k("filter"), n = v(), r = te(), [o, s] = G(), a = p.useMemo(() => "where" in mn.toObject(o), [o]), [l, d] = p.useState(null), [c, u] = p.useState([]), h = !!l, y = p.useMemo(() => t.getFilterableColumns(r), [r]), S = (A) => {
3100
- d(A.currentTarget);
3116
+ const { t: e } = L(), t = k("filter"), n = v(), r = te(), [o, s] = G(), a = p.useMemo(() => "where" in mn.toObject(o), [o]), [l, d] = p.useState(null), [c, u] = p.useState([]), f = !!l, y = p.useMemo(() => t.getFilterableColumns(r), [r]), S = (x) => {
3117
+ d(x.currentTarget);
3101
3118
  }, b = () => {
3102
3119
  d(null), setTimeout(() => {
3103
3120
  u([]);
3104
3121
  }, 300);
3105
3122
  }, m = () => {
3106
3123
  g();
3107
- const A = va(c);
3108
- s(A, { replace: !0 }), b();
3124
+ const x = va(c);
3125
+ s(x, { replace: !0 }), b();
3109
3126
  }, g = () => {
3110
- s((A) => {
3111
- const E = new URLSearchParams(A);
3112
- for (const [P] of A.entries())
3127
+ s((x) => {
3128
+ const E = new URLSearchParams(x);
3129
+ for (const [P] of x.entries())
3113
3130
  P.startsWith("where[") && E.delete(P);
3114
3131
  return E;
3115
3132
  });
3116
- }, x = () => {
3133
+ }, A = () => {
3117
3134
  g(), b(), setTimeout(() => {
3118
3135
  u([]);
3119
3136
  }, 300);
3120
3137
  };
3121
3138
  return p.useEffect(() => {
3122
- const A = Pa(y, o);
3123
- u(A);
3139
+ const x = Pa(y, o);
3140
+ u(x);
3124
3141
  }, [y, o, l]), /* @__PURE__ */ w(
3125
3142
  Ht.Provider,
3126
3143
  {
@@ -3134,7 +3151,7 @@ const va = (e) => {
3134
3151
  setSearchParams: s,
3135
3152
  handleApplyFilters: m,
3136
3153
  clearSearchParams: g,
3137
- clearFilters: x
3154
+ clearFilters: A
3138
3155
  },
3139
3156
  children: [
3140
3157
  /* @__PURE__ */ i(
@@ -3155,10 +3172,10 @@ const va = (e) => {
3155
3172
  }
3156
3173
  ),
3157
3174
  n ? /* @__PURE__ */ i(
3158
- Wr,
3175
+ Vr,
3159
3176
  {
3160
3177
  id: "model-filter-popover",
3161
- open: h,
3178
+ open: f,
3162
3179
  anchorEl: l,
3163
3180
  onClose: b,
3164
3181
  anchorOrigin: {
@@ -3170,7 +3187,7 @@ const va = (e) => {
3170
3187
  ) : /* @__PURE__ */ w(
3171
3188
  Et,
3172
3189
  {
3173
- open: h,
3190
+ open: f,
3174
3191
  onClose: b,
3175
3192
  fullWidth: !0,
3176
3193
  children: [
@@ -3190,7 +3207,7 @@ const va = (e) => {
3190
3207
  /* @__PURE__ */ i(
3191
3208
  M,
3192
3209
  {
3193
- onClick: x,
3210
+ onClick: A,
3194
3211
  sx: { mr: "auto" },
3195
3212
  children: e("Clear")
3196
3213
  }
@@ -3214,13 +3231,13 @@ const va = (e) => {
3214
3231
  }, zt = p.createContext({
3215
3232
  columns: [],
3216
3233
  columnCount: 0,
3217
- selected: V([]),
3234
+ selected: W([]),
3218
3235
  massActions: [],
3219
- items: V([]),
3236
+ items: W([]),
3220
3237
  error: new Error("Trying to access TableContext outside of TableProvider"),
3221
3238
  Model: null
3222
3239
  });
3223
- function Wt() {
3240
+ function Vt() {
3224
3241
  const {
3225
3242
  selected: e,
3226
3243
  items: t
@@ -3256,7 +3273,7 @@ function ae() {
3256
3273
  return p.useContext(zt);
3257
3274
  }
3258
3275
  function La(e) {
3259
- const [t, n] = p.useState(""), { selected: r } = Wt(), { t: o } = L(), s = qt(), { massActions: a } = ae(), l = (c) => {
3276
+ const [t, n] = p.useState(""), { selected: r } = Vt(), { t: o } = L(), s = qt(), { massActions: a } = ae(), l = (c) => {
3260
3277
  n(c.target.value);
3261
3278
  };
3262
3279
  if (p.useEffect(() => {
@@ -3335,7 +3352,7 @@ const Ba = () => {
3335
3352
  children: /* @__PURE__ */ i(Rn, {})
3336
3353
  }
3337
3354
  );
3338
- }, Ve = p.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3355
+ }, We = p.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3339
3356
  lt,
3340
3357
  {
3341
3358
  component: Pe,
@@ -3346,7 +3363,7 @@ const Ba = () => {
3346
3363
  children: t
3347
3364
  }
3348
3365
  ));
3349
- Ve.displayName = "Link";
3366
+ We.displayName = "Link";
3350
3367
  const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */ i(B, { children: {
3351
3368
  "&laquo; Previous": /* @__PURE__ */ i(je, {}),
3352
3369
  "Next &raquo;": /* @__PURE__ */ i(Ue, {}),
@@ -3360,24 +3377,24 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3360
3377
  links: c = [],
3361
3378
  last_page: u = 1
3362
3379
  } = {}
3363
- } = Se(), {
3364
- first: h,
3380
+ } = xe(), {
3381
+ first: f,
3365
3382
  prev: y,
3366
3383
  next: S,
3367
3384
  last: b
3368
- } = l || {}, m = (x) => {
3369
- x.preventDefault(), o((A) => (A.set("page", s || "1"), A));
3385
+ } = l || {}, m = (A) => {
3386
+ A.preventDefault(), o((x) => (x.set("page", s || "1"), x));
3370
3387
  }, g = [
3371
- { url: d > 1 ? h : null, label: "&laquo; First", active: !1 },
3388
+ { url: d > 1 ? f : null, label: "&laquo; First", active: !1 },
3372
3389
  { url: y, label: "&laquo; Previous", active: !1 },
3373
3390
  {
3374
3391
  element: /* @__PURE__ */ i(
3375
- xr,
3392
+ Ar,
3376
3393
  {
3377
3394
  onSubmit: m,
3378
3395
  preventScrollReset: !0,
3379
3396
  children: /* @__PURE__ */ i(
3380
- Ae,
3397
+ fe,
3381
3398
  {
3382
3399
  size: "small",
3383
3400
  type: "number",
@@ -3395,11 +3412,11 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3395
3412
  value: s,
3396
3413
  error: Number(s) > u,
3397
3414
  helperText: Number(s) > u ? `Max ${u}` : void 0,
3398
- onChange: (x) => {
3399
- !Number.isNaN(Number(x.target.value)) && Number(x.target.value) > 0 && a(x.target.value), x.target.value === "" && a("");
3415
+ onChange: (A) => {
3416
+ !Number.isNaN(Number(A.target.value)) && Number(A.target.value) > 0 && a(A.target.value), A.target.value === "" && a("");
3400
3417
  },
3401
- onBlur: (x) => {
3402
- o((A) => (A.set("page", x.target.value || "1"), A), { replace: !0 });
3418
+ onBlur: (A) => {
3419
+ o((x) => (x.set("page", A.target.value || "1"), x), { replace: !0 });
3403
3420
  },
3404
3421
  disabled: u === 1,
3405
3422
  "aria-label": "Page number"
@@ -3422,10 +3439,10 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3422
3439
  justifyContent: "center",
3423
3440
  alignItems: "center",
3424
3441
  ...t,
3425
- children: (n ? c : g).map((x, A) => x.element || /* @__PURE__ */ i(
3442
+ children: (n ? c : g).map((A, x) => A.element || /* @__PURE__ */ i(
3426
3443
  M,
3427
3444
  {
3428
- variant: x.active ? "contained" : "text",
3445
+ variant: A.active ? "contained" : "text",
3429
3446
  color: "primary",
3430
3447
  size: "small",
3431
3448
  sx: {
@@ -3434,12 +3451,12 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3434
3451
  height: 32,
3435
3452
  borderRadius: "50%"
3436
3453
  },
3437
- disabled: !x.url,
3438
- component: Ve,
3439
- to: x.url,
3440
- children: /* @__PURE__ */ i(Ia, { label: x.label })
3454
+ disabled: !A.url,
3455
+ component: We,
3456
+ to: A.url,
3457
+ children: /* @__PURE__ */ i(Ia, { label: A.label })
3441
3458
  },
3442
- A
3459
+ x
3443
3460
  ))
3444
3461
  }
3445
3462
  );
@@ -3450,7 +3467,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3450
3467
  from: n = 0,
3451
3468
  to: r = 0
3452
3469
  } = {}
3453
- } = Se();
3470
+ } = xe();
3454
3471
  return /* @__PURE__ */ i($, { variant: "caption", noWrap: !0, children: e(":from–:to of :total", {
3455
3472
  from: n,
3456
3473
  to: r,
@@ -3461,7 +3478,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3461
3478
  meta: {
3462
3479
  per_page: t = 15
3463
3480
  } = {}
3464
- } = Se(), [, n] = G(), r = (s) => {
3481
+ } = xe(), [, n] = G(), r = (s) => {
3465
3482
  n((a) => {
3466
3483
  const l = new URLSearchParams(a);
3467
3484
  return l.set("per_page", s.target.value.toString()), l;
@@ -3528,7 +3545,7 @@ function Ua(e, t) {
3528
3545
  };
3529
3546
  }, [e, t]), n;
3530
3547
  }
3531
- const qa = Z(Ae)(({ theme: e }) => ({
3548
+ const qa = Z(fe)(({ theme: e }) => ({
3532
3549
  "& .MuiInputBase-root": {
3533
3550
  backgroundColor: e.palette.background.paper
3534
3551
  }
@@ -3549,7 +3566,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3549
3566
  Ua(["Control", "/"], () => {
3550
3567
  l.current.focus();
3551
3568
  });
3552
- const h = u ? 300 : "calc(100vw - 58px)";
3569
+ const f = u ? 300 : "calc(100vw - 58px)";
3553
3570
  return /* @__PURE__ */ w(B, { children: [
3554
3571
  !u && !s && /* @__PURE__ */ i(q, { color: "inherit", onClick: () => a(!0), children: /* @__PURE__ */ i(
3555
3572
  Rt,
@@ -3565,7 +3582,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3565
3582
  }
3566
3583
  ) }),
3567
3584
  /* @__PURE__ */ i(
3568
- An,
3585
+ xn,
3569
3586
  {
3570
3587
  orientation: "horizontal",
3571
3588
  in: u || s,
@@ -3587,7 +3604,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3587
3604
  },
3588
3605
  onChange: c,
3589
3606
  onBlur: () => a(!1),
3590
- sx: { width: h },
3607
+ sx: { width: f },
3591
3608
  size: "small"
3592
3609
  }
3593
3610
  )
@@ -3602,28 +3619,28 @@ const qa = Z(Ae)(({ theme: e }) => ({
3602
3619
  ...t,
3603
3620
  children: e
3604
3621
  }
3605
- ), Wa = () => {
3622
+ ), Va = () => {
3606
3623
  const { t: e } = L(), [t, n] = G(), {
3607
3624
  columns: r,
3608
3625
  Model: o
3609
- } = ae(), s = t.get("order_by") || "", [a = "", l = ""] = s.split(":"), [d, c] = p.useState(a), [u, h] = p.useState(l), [y, S] = p.useState(!1), b = () => {
3626
+ } = ae(), s = t.get("order_by") || "", [a = "", l = ""] = s.split(":"), [d, c] = p.useState(a), [u, f] = p.useState(l), [y, S] = p.useState(!1), b = () => {
3610
3627
  S(!0);
3611
3628
  }, m = () => {
3612
- S(!1), c(a), h(l);
3629
+ S(!1), c(a), f(l);
3613
3630
  }, g = () => {
3614
3631
  if (!d || !u) {
3615
3632
  S(!1);
3616
3633
  return;
3617
3634
  }
3618
- n((A) => {
3619
- const E = new URLSearchParams(A);
3635
+ n((x) => {
3636
+ const E = new URLSearchParams(x);
3620
3637
  return E.set("order_by", `${d}:${u}`), E;
3621
3638
  }), S(!1);
3622
- }, x = () => {
3623
- n((A) => {
3624
- const E = new URLSearchParams(A);
3639
+ }, A = () => {
3640
+ n((x) => {
3641
+ const E = new URLSearchParams(x);
3625
3642
  return E.delete("order_by"), E;
3626
- }), S(!1), c(""), h("");
3643
+ }), S(!1), c(""), f("");
3627
3644
  };
3628
3645
  return /* @__PURE__ */ w(B, { children: [
3629
3646
  /* @__PURE__ */ i(q, { onClick: b, children: /* @__PURE__ */ i(
@@ -3652,20 +3669,20 @@ const qa = Z(Ae)(({ theme: e }) => ({
3652
3669
  $t,
3653
3670
  {
3654
3671
  value: d,
3655
- onChange: (A) => {
3656
- c(A.target.value), u || h("asc");
3672
+ onChange: (x) => {
3673
+ c(x.target.value), u || f("asc");
3657
3674
  },
3658
3675
  children: [
3659
3676
  /* @__PURE__ */ i($, { variant: "caption", children: e("Column") }),
3660
3677
  /* @__PURE__ */ i(ve, {}),
3661
- V(r).whereStrict("sortable", "!=", !1).map(({ key: A, label: E }) => /* @__PURE__ */ i(
3678
+ W(r).whereStrict("sortable", "!=", !1).map(({ key: x, label: E }) => /* @__PURE__ */ i(
3662
3679
  Ke,
3663
3680
  {
3664
- value: A,
3681
+ value: x,
3665
3682
  control: /* @__PURE__ */ i(Ye, {}),
3666
3683
  label: E
3667
3684
  },
3668
- A
3685
+ x
3669
3686
  ))
3670
3687
  ]
3671
3688
  }
@@ -3676,7 +3693,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3676
3693
  $t,
3677
3694
  {
3678
3695
  value: u,
3679
- onChange: (A) => h(A.target.value),
3696
+ onChange: (x) => f(x.target.value),
3680
3697
  children: [
3681
3698
  /* @__PURE__ */ i(
3682
3699
  Ke,
@@ -3705,23 +3722,23 @@ const qa = Z(Ae)(({ theme: e }) => ({
3705
3722
  )
3706
3723
  ] }),
3707
3724
  /* @__PURE__ */ w(Dt, { children: [
3708
- /* @__PURE__ */ i(M, { onClick: x, sx: { mr: "auto" }, children: e("Clear") }),
3725
+ /* @__PURE__ */ i(M, { onClick: A, sx: { mr: "auto" }, children: e("Clear") }),
3709
3726
  /* @__PURE__ */ i(M, { onClick: g, variant: "contained", children: e("Apply") })
3710
3727
  ] })
3711
3728
  ] })
3712
3729
  ] });
3713
- }, Va = ({ items: e, loading: t, children: n, error: r }) => {
3714
- const o = te(), s = p.useMemo(() => V([]), [o, e]), [a] = G(), l = a.get("tab") ?? "all", d = p.useMemo(() => [
3730
+ }, Wa = ({ items: e, loading: t, children: n, error: r }) => {
3731
+ const o = te(), s = p.useMemo(() => W([]), [o, e]), [a] = G(), l = a.get("tab") ?? "all", d = p.useMemo(() => [
3715
3732
  {
3716
3733
  key: o.getSchema().labeledBy,
3717
3734
  label: T.human(o.getSchema().labeledBy)
3718
3735
  }
3719
- ], [o]), c = v(), u = p.useMemo(() => k("cms").getMassActions(o, l), [o, l]), h = Ct(
3736
+ ], [o]), c = v(), u = p.useMemo(() => k("cms").getMassActions(o, l), [o, l]), f = Ct(
3720
3737
  k("cms"),
3721
3738
  `model${T.studly(o.getSchemaName())}Columns`,
3722
3739
  d
3723
- ), S = (c ? h.length : 1) + (u.length > 0 ? 2 : 1), b = {
3724
- columns: h,
3740
+ ), S = (c ? f.length : 1) + (u.length > 0 ? 2 : 1), b = {
3741
+ columns: f,
3725
3742
  columnCount: S,
3726
3743
  massActions: u,
3727
3744
  items: e,
@@ -3738,12 +3755,12 @@ const qa = Z(Ae)(({ theme: e }) => ({
3738
3755
  children: r,
3739
3756
  ...o
3740
3757
  }) => /* @__PURE__ */ i(
3741
- Va,
3758
+ Wa,
3742
3759
  {
3743
3760
  items: e,
3744
3761
  loading: t,
3745
3762
  error: n,
3746
- children: /* @__PURE__ */ i(Vr, { component: Ot, children: /* @__PURE__ */ i($r, { ...o, children: r }) })
3763
+ children: /* @__PURE__ */ i(Wr, { component: Ot, children: /* @__PURE__ */ i($r, { ...o, children: r }) })
3747
3764
  }
3748
3765
  ), Ka = ({ children: e, ...t }) => {
3749
3766
  const {
@@ -3754,21 +3771,21 @@ const qa = Z(Ae)(({ theme: e }) => ({
3754
3771
  indeterminate: d,
3755
3772
  allSelected: c,
3756
3773
  handleSelectToggleAll: u
3757
- } = Wt(), {
3758
- ["ModelIndex.Table.ShrinkedCell"]: h
3774
+ } = Vt(), {
3775
+ ["ModelIndex.Table.ShrinkedCell"]: f
3759
3776
  } = k("cms").getComponents(), y = a.get("order_by") || "", [S, b] = y.split(":"), m = (g) => () => {
3760
- l(S === g ? (x) => {
3761
- const A = new URLSearchParams(x);
3762
- return b ? b === "desc" ? (A.delete("order_by"), A) : (A.set("order_by", `${g}:desc`), A) : (A.set("order_by", `${g}:asc`), A);
3763
- } : (x) => {
3764
- const A = new URLSearchParams(x);
3765
- return A.set("order_by", `${g}:asc`), A;
3777
+ l(S === g ? (A) => {
3778
+ const x = new URLSearchParams(A);
3779
+ return b ? b === "desc" ? (x.delete("order_by"), x) : (x.set("order_by", `${g}:desc`), x) : (x.set("order_by", `${g}:asc`), x);
3780
+ } : (A) => {
3781
+ const x = new URLSearchParams(A);
3782
+ return x.set("order_by", `${g}:asc`), x;
3766
3783
  });
3767
3784
  };
3768
3785
  return /* @__PURE__ */ w(Kr, { ...t, children: [
3769
3786
  e,
3770
- s && /* @__PURE__ */ w(fe, { children: [
3771
- n.length > 0 && /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(
3787
+ s && /* @__PURE__ */ w(he, { children: [
3788
+ n.length > 0 && /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(
3772
3789
  Pt,
3773
3790
  {
3774
3791
  indeterminate: d,
@@ -3777,27 +3794,27 @@ const qa = Z(Ae)(({ theme: e }) => ({
3777
3794
  disabled: o && o.count() === 0
3778
3795
  }
3779
3796
  ) }),
3780
- r.map(({ key: g, label: x, sortable: A = !0, ...E }) => /* @__PURE__ */ i(
3797
+ r.map(({ key: g, label: A, sortable: x = !0, ...E }) => /* @__PURE__ */ i(
3781
3798
  ee,
3782
3799
  {
3783
- sortDirection: A && S === g && b || !1,
3800
+ sortDirection: x && S === g && b || !1,
3784
3801
  ...E,
3785
3802
  children: /* @__PURE__ */ w(
3786
3803
  Yr,
3787
3804
  {
3788
- active: A && S === g,
3805
+ active: x && S === g,
3789
3806
  direction: b,
3790
3807
  onClick: m(g),
3791
3808
  children: [
3792
- x,
3793
- A && S === g ? /* @__PURE__ */ i(H, { component: "span", sx: { visibility: "hidden", display: "none" }, children: b === "desc" ? "sorted descending" : "sorted ascending" }) : null
3809
+ A,
3810
+ x && S === g ? /* @__PURE__ */ i(H, { component: "span", sx: { visibility: "hidden", display: "none" }, children: b === "desc" ? "sorted descending" : "sorted ascending" }) : null
3794
3811
  ]
3795
3812
  }
3796
3813
  )
3797
3814
  },
3798
3815
  g
3799
3816
  )),
3800
- /* @__PURE__ */ i(h, {})
3817
+ /* @__PURE__ */ i(f, {})
3801
3818
  ] })
3802
3819
  ] });
3803
3820
  }, Ya = () => {
@@ -3808,9 +3825,9 @@ const qa = Z(Ae)(({ theme: e }) => ({
3808
3825
  } = ae(), r = v(), {
3809
3826
  ["ModelIndex.Table.ShrinkedCell"]: o
3810
3827
  } = k("cms").getComponents(), s = (n == null ? void 0 : n.count()) || 15;
3811
- return /* @__PURE__ */ i(B, { children: Array.from({ length: s }).map((a, l) => /* @__PURE__ */ w(fe, { children: [
3828
+ return /* @__PURE__ */ i(B, { children: Array.from({ length: s }).map((a, l) => /* @__PURE__ */ w(he, { children: [
3812
3829
  e.length > 0 && /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(Pt, {}) }),
3813
- r && t.map(({ key: d, label: c, sortable: u, ...h }, y) => /* @__PURE__ */ i(ee, { ...h, children: /* @__PURE__ */ i(
3830
+ r && t.map(({ key: d, label: c, sortable: u, ...f }, y) => /* @__PURE__ */ i(ee, { ...f, children: /* @__PURE__ */ i(
3814
3831
  Kt,
3815
3832
  {
3816
3833
  variant: "text",
@@ -3835,8 +3852,8 @@ const qa = Z(Ae)(({ theme: e }) => ({
3835
3852
  columnCount: a
3836
3853
  } = ae(), {
3837
3854
  ["ModelIndex.StaticActions"]: l
3838
- } = k("cms").getComponents(), d = p.isValidElement(e) ? e : (o || V([])).map(e);
3839
- return /* @__PURE__ */ i(Jr, { ...t, children: s || !(o != null && o.every((c) => c.getType() === n.getSchemaName())) ? /* @__PURE__ */ i(Ya, {}) : o && o.count() ? d : /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3855
+ } = k("cms").getComponents(), d = p.isValidElement(e) ? e : (o || W([])).map(e);
3856
+ return /* @__PURE__ */ i(Jr, { ...t, children: s || !(o != null && o.every((c) => c.getType() === n.getSchemaName())) ? /* @__PURE__ */ i(Ya, {}) : o && o.count() ? d : /* @__PURE__ */ i(he, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3840
3857
  /* @__PURE__ */ i($, { children: r("No :model found", {
3841
3858
  model: n.plural().toLocaleLowerCase()
3842
3859
  }) }),
@@ -3849,7 +3866,7 @@ class Ga {
3849
3866
  return "cms";
3850
3867
  }
3851
3868
  }
3852
- const I = St(Ga, At), de = Z($)(() => ({
3869
+ const I = St(Ga, xt), de = Z($)(() => ({
3853
3870
  whiteSpace: "nowrap",
3854
3871
  overflow: "hidden",
3855
3872
  textOverflow: "ellipsis",
@@ -3884,7 +3901,7 @@ const I = St(Ga, At), de = Z($)(() => ({
3884
3901
  " ",
3885
3902
  t
3886
3903
  ] }), Qa = ({ item: e, ...t }) => {
3887
- const n = v(), r = xt(), o = te(), { massActions: s, columns: a } = ae(), l = p.useMemo(() => a.map((y) => ({
3904
+ const n = v(), r = At(), o = te(), { massActions: s, columns: a } = ae(), l = p.useMemo(() => a.map((y) => ({
3888
3905
  ...y,
3889
3906
  content: I[`model${T.studly(e.getType())}Get${T.studly(y.key)}Content`](J.get(e, y.key), e)
3890
3907
  //
@@ -3893,10 +3910,10 @@ const I = St(Ga, At), de = Z($)(() => ({
3893
3910
  ["ModelIndex.InstanceActions"]: c
3894
3911
  } = I.getComponents(), {
3895
3912
  isSelected: u,
3896
- handleSelectToggle: h
3897
- } = Wt();
3913
+ handleSelectToggle: f
3914
+ } = Vt();
3898
3915
  return /* @__PURE__ */ w(
3899
- fe,
3916
+ he,
3900
3917
  {
3901
3918
  ...t,
3902
3919
  sx: { cursor: e.deletedAt ? "default" : "pointer" },
@@ -3907,7 +3924,7 @@ const I = St(Ga, At), de = Z($)(() => ({
3907
3924
  Pt,
3908
3925
  {
3909
3926
  checked: u(e),
3910
- onChange: () => h(e)
3927
+ onChange: () => f(e)
3911
3928
  }
3912
3929
  ) }),
3913
3930
  n && l.map(({ key: y, label: S, sortable: b, content: m, ...g }) => /* @__PURE__ */ i(
@@ -3950,7 +3967,7 @@ const I = St(Ga, At), de = Z($)(() => ({
3950
3967
  ["ModelIndex.PerPageSwitch"]: l
3951
3968
  } = k("cms").getComponents();
3952
3969
  return /* @__PURE__ */ w(Gr, { ...t, children: [
3953
- /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ee, { colSpan: n, children: /* @__PURE__ */ w(
3970
+ /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(ee, { colSpan: n, children: /* @__PURE__ */ w(
3954
3971
  N,
3955
3972
  {
3956
3973
  direction: r ? "row" : "column-reverse",
@@ -3994,7 +4011,7 @@ const I = St(Ga, At), de = Z($)(() => ({
3994
4011
  ["ModelIndex.Pagination"]: o
3995
4012
  // ['ModelIndex.PaginationDetails']: PaginationDetails,
3996
4013
  } = k("cms").getComponents(), s = v(), a = z("breakpoint", "md");
3997
- return /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ee, { colSpan: e, sx: { p: 1 }, children: /* @__PURE__ */ w(
4014
+ return /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(ee, { colSpan: e, sx: { p: 1 }, children: /* @__PURE__ */ w(
3998
4015
  N,
3999
4016
  {
4000
4017
  direction: { xs: "column", [a]: "row" },
@@ -4123,7 +4140,7 @@ const hr = ({
4123
4140
  onClick: n,
4124
4141
  ...r
4125
4142
  }) => {
4126
- const [o, s] = p.useState(null), [a, l] = p.useState(null), [d, c] = p.useState({}), u = z("drawer.width", 280), h = k("cms").getComponent("RecursiveMenu");
4143
+ const [o, s] = p.useState(null), [a, l] = p.useState(null), [d, c] = p.useState({}), u = z("drawer.width", 280), f = k("cms").getComponent("RecursiveMenu");
4127
4144
  return /* @__PURE__ */ w(Qr, { ...r, children: [
4128
4145
  t.map((y) => {
4129
4146
  const {
@@ -4131,8 +4148,8 @@ const hr = ({
4131
4148
  icon: b,
4132
4149
  element: m = null,
4133
4150
  key: g,
4134
- children: x,
4135
- to: A,
4151
+ children: A,
4152
+ to: x,
4136
4153
  onClick: E
4137
4154
  } = y;
4138
4155
  return m || /* @__PURE__ */ w(
@@ -4150,9 +4167,9 @@ const hr = ({
4150
4167
  px: 2.5
4151
4168
  },
4152
4169
  onClick: (P) => {
4153
- if (E && E(P), x) {
4170
+ if (E && E(P), A) {
4154
4171
  if (e) {
4155
- l(() => (s(P.currentTarget), x));
4172
+ l(() => (s(P.currentTarget), A));
4156
4173
  return;
4157
4174
  }
4158
4175
  c({
@@ -4163,10 +4180,10 @@ const hr = ({
4163
4180
  }
4164
4181
  n && n(P);
4165
4182
  },
4166
- ...A ? { to: A, component: Ve } : {},
4183
+ ...x ? { to: x, component: We } : {},
4167
4184
  children: [
4168
4185
  /* @__PURE__ */ w(
4169
- xn,
4186
+ An,
4170
4187
  {
4171
4188
  sx: {
4172
4189
  minWidth: 0,
@@ -4190,12 +4207,12 @@ const hr = ({
4190
4207
  }
4191
4208
  ),
4192
4209
  !e && /* @__PURE__ */ i(Cn, { primary: S }),
4193
- !e && x && (d[g] ? /* @__PURE__ */ i(In, {}) : /* @__PURE__ */ i(Mn, {}))
4210
+ !e && A && (d[g] ? /* @__PURE__ */ i(In, {}) : /* @__PURE__ */ i(Mn, {}))
4194
4211
  ]
4195
4212
  }
4196
4213
  ),
4197
- x && !e && /* @__PURE__ */ i(
4198
- An,
4214
+ A && !e && /* @__PURE__ */ i(
4215
+ xn,
4199
4216
  {
4200
4217
  in: d[g],
4201
4218
  timeout: "auto",
@@ -4203,7 +4220,7 @@ const hr = ({
4203
4220
  children: /* @__PURE__ */ i(
4204
4221
  hr,
4205
4222
  {
4206
- items: x,
4223
+ items: A,
4207
4224
  onClick: n,
4208
4225
  collapsed: e,
4209
4226
  sx: { pl: e ? 0 : 2, pb: 0 }
@@ -4217,7 +4234,7 @@ const hr = ({
4217
4234
  );
4218
4235
  }),
4219
4236
  e && /* @__PURE__ */ i(
4220
- h,
4237
+ f,
4221
4238
  {
4222
4239
  items: a || [],
4223
4240
  onClick: n,
@@ -4246,7 +4263,7 @@ const hr = ({
4246
4263
  text: d,
4247
4264
  icon: c,
4248
4265
  element: u = null,
4249
- key: h,
4266
+ key: f,
4250
4267
  children: y,
4251
4268
  onClick: S,
4252
4269
  to: b
@@ -4258,20 +4275,20 @@ const hr = ({
4258
4275
  if (S && S(m), y) {
4259
4276
  s({
4260
4277
  ...o,
4261
- [h]: o[h] ? null : m.currentTarget
4278
+ [f]: o[f] ? null : m.currentTarget
4262
4279
  });
4263
4280
  return;
4264
4281
  }
4265
4282
  n && n(m);
4266
4283
  },
4267
4284
  ...b ? {
4268
- component: Ve,
4285
+ component: We,
4269
4286
  to: b
4270
4287
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4271
4288
  } : {},
4272
4289
  children: [
4273
4290
  c && /* @__PURE__ */ i(
4274
- xn,
4291
+ An,
4275
4292
  {
4276
4293
  sx: {
4277
4294
  minWidth: 0,
@@ -4286,7 +4303,7 @@ const hr = ({
4286
4303
  !e && y && /* @__PURE__ */ i(Ue, {})
4287
4304
  ]
4288
4305
  },
4289
- h
4306
+ f
4290
4307
  );
4291
4308
  }) }),
4292
4309
  t.map((l) => {
@@ -4430,7 +4447,7 @@ class si {
4430
4447
  return "icon";
4431
4448
  }
4432
4449
  }
4433
- const Te = St(si, At);
4450
+ const Te = St(si, xt);
4434
4451
  class ai {
4435
4452
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4436
4453
  getComponents() {
@@ -4441,10 +4458,10 @@ class ai {
4441
4458
  return this.getComponents()[t];
4442
4459
  }
4443
4460
  getRoutes() {
4444
- return this.cmsRoutes([], this.getComponents(), ye().make());
4461
+ return this.cmsRoutes([], this.getComponents(), we().make());
4445
4462
  }
4446
4463
  getMenuItems() {
4447
- return this.menuItems([], ye().make());
4464
+ return this.menuItems([], we().make());
4448
4465
  }
4449
4466
  getModelFormProps(t) {
4450
4467
  return this.wireModelFormProps({}, t);
@@ -4471,7 +4488,7 @@ class ai {
4471
4488
  );
4472
4489
  }
4473
4490
  }
4474
- const ii = gn(ai), be = (e) => !(typeof e > "u" || e === null || J.isEmpty(e));
4491
+ const ii = gn(ai), ye = (e) => !(typeof e > "u" || e === null || J.isEmpty(e));
4475
4492
  class li {
4476
4493
  getInputType(t) {
4477
4494
  switch (t) {
@@ -4563,14 +4580,14 @@ class li {
4563
4580
  }
4564
4581
  checkIfCanApplyFilters(t) {
4565
4582
  return !!(t.length === 0 || t.map((r) => {
4566
- if (!be(r.key) || !be(r.operator))
4583
+ if (!ye(r.key) || !ye(r.operator))
4567
4584
  return !0;
4568
4585
  if (["boolean"].includes(this.getInputType(r.type))) {
4569
4586
  if (typeof r.value > "u" || J.isNull(r.value))
4570
4587
  return !0;
4571
- } else if (!be(r.value))
4588
+ } else if (!ye(r.value))
4572
4589
  return !0;
4573
- return !!(Array.isArray(r.value) && ["between", "notBetween"].includes(r.operator) && (!be(r.value[0]) || !be(r.value[1])));
4590
+ return !!(Array.isArray(r.value) && ["between", "notBetween"].includes(r.operator) && (!ye(r.value[0]) || !ye(r.value[1])));
4574
4591
  }).includes(!0));
4575
4592
  }
4576
4593
  }
@@ -4737,10 +4754,10 @@ const Ie = class Ie extends bn {
4737
4754
  bootComponents() {
4738
4755
  I.reducer("componentMap", () => ({
4739
4756
  Layout: Eo,
4740
- Dashboard: Ao,
4757
+ Dashboard: xo,
4741
4758
  ModelIndex: ko,
4742
4759
  ModelItem: aa,
4743
- Error: xo,
4760
+ Error: Ao,
4744
4761
  DesktopPageTitle: Sa,
4745
4762
  RecursiveList: hr,
4746
4763
  RecursiveMenu: pr,
@@ -4757,7 +4774,7 @@ const Ie = class Ie extends bn {
4757
4774
  "ModelIndex.Pagination": Ma,
4758
4775
  "ModelIndex.PaginationDetails": Na,
4759
4776
  "ModelIndex.PerPageSwitch": ja,
4760
- "ModelIndex.Sort": Wa,
4777
+ "ModelIndex.Sort": Va,
4761
4778
  "ModelIndex.StaticActions": da,
4762
4779
  "ModelIndex.Table": $a,
4763
4780
  "ModelIndex.Table.TableHead": Ka,
@@ -5020,7 +5037,7 @@ class yi {
5020
5037
  return "filter";
5021
5038
  }
5022
5039
  }
5023
- const Gi = St(yi, At);
5040
+ const Gi = St(yi, xt);
5024
5041
  export {
5025
5042
  I as Cms,
5026
5043
  wt as CmsServiceProvider,
@@ -5028,11 +5045,11 @@ export {
5028
5045
  Gi as Filter,
5029
5046
  Te as Icon,
5030
5047
  po as LayoutProvider,
5031
- Ve as Link,
5048
+ We as Link,
5032
5049
  Ji as LuminixCms,
5033
5050
  Ge as ModelProvider,
5034
5051
  yo as NotificationProvider,
5035
- Va as TableProvider,
5052
+ Wa as TableProvider,
5036
5053
  mi as i18NextServiceProvider,
5037
5054
  qt as useActionEvent,
5038
5055
  Do as useBackButton,
@@ -5047,7 +5064,7 @@ export {
5047
5064
  Ut as useNotify,
5048
5065
  ur as usePageTitle,
5049
5066
  To as useSearch,
5050
- Wt as useSelection,
5067
+ Vt as useSelection,
5051
5068
  Bt as useSetPageTitle,
5052
5069
  ae as useTable
5053
5070
  };